1 #!/bin/bash 2 # 3 # ########################################################## 4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ### 5 # ########################################################## 6 # 7 #! /bin/sh 8 # Guess values for system-dependent variables and create Makefiles. 9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk8. 10 # 11 # Report bugs to <build-dev@openjdk.java.net>. 12 # 13 # 14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 15 # 16 # 17 # This configure script is free software; the Free Software Foundation 18 # gives unlimited permission to copy, distribute and modify it. 19 ## -------------------- ## 20 ## M4sh Initialization. ## 21 ## -------------------- ## 22 23 # Be more Bourne compatible 24 DUALCASE=1; export DUALCASE # for MKS sh 25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26 emulate sh 27 NULLCMD=: 28 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 29 # is contrary to our usage. Disable this feature. 30 alias -g '${1+"$@"}'='"$@"' 31 setopt NO_GLOB_SUBST 32 else 33 case `(set -o) 2>/dev/null` in #( 34 *posix*) : 35 set -o posix ;; #( 36 *) : 37 ;; 38 esac 39 fi 40 41 42 as_nl=' 43 ' 44 export as_nl 45 # Printing a long string crashes Solaris 7 /usr/bin/printf. 46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49 # Prefer a ksh shell builtin over an external printf program on Solaris, 50 # but without wasting forks for bash or zsh. 51 if test -z "$BASH_VERSION$ZSH_VERSION" \ 52 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 53 as_echo='print -r --' 54 as_echo_n='print -rn --' 55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 56 as_echo='printf %s\n' 57 as_echo_n='printf %s' 58 else 59 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 60 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 61 as_echo_n='/usr/ucb/echo -n' 62 else 63 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 64 as_echo_n_body='eval 65 arg=$1; 66 case $arg in #( 67 *"$as_nl"*) 68 expr "X$arg" : "X\\(.*\\)$as_nl"; 69 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 70 esac; 71 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 72 ' 73 export as_echo_n_body 74 as_echo_n='sh -c $as_echo_n_body as_echo' 75 fi 76 export as_echo_body 77 as_echo='sh -c $as_echo_body as_echo' 78 fi 79 80 # The user is always right. 81 if test "${PATH_SEPARATOR+set}" != set; then 82 PATH_SEPARATOR=: 83 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 84 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 85 PATH_SEPARATOR=';' 86 } 87 fi 88 89 90 # IFS 91 # We need space, tab and new line, in precisely that order. Quoting is 92 # there to prevent editors from complaining about space-tab. 93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 94 # splitting by setting IFS to empty value.) 95 IFS=" "" $as_nl" 96 97 # Find who we are. Look in the path if we contain no directory separator. 98 as_myself= 99 case $0 in #(( 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102 for as_dir in $PATH 103 do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107 done 108 IFS=$as_save_IFS 109 110 ;; 111 esac 112 # We did not find ourselves, most probably we were run as `sh COMMAND' 113 # in which case we are not to be found in the path. 114 if test "x$as_myself" = x; then 115 as_myself=$0 116 fi 117 if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 exit 1 120 fi 121 122 # Unset variables that we do not need and which cause bugs (e.g. in 123 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 124 # suppresses any "Segmentation fault" message there. '((' could 125 # trigger a bug in pdksh 5.2.14. 126 for as_var in BASH_ENV ENV MAIL MAILPATH 127 do eval test x\${$as_var+set} = xset \ 128 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 129 done 130 PS1='$ ' 131 PS2='> ' 132 PS4='+ ' 133 134 # NLS nuisances. 135 LC_ALL=C 136 export LC_ALL 137 LANGUAGE=C 138 export LANGUAGE 139 140 # CDPATH. 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 142 143 # Use a proper internal environment variable to ensure we don't fall 144 # into an infinite loop, continuously re-executing ourselves. 145 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 146 _as_can_reexec=no; export _as_can_reexec; 147 # We cannot yet assume a decent shell, so we have to provide a 148 # neutralization value for shells without unset; and this also 149 # works around shells that cannot unset nonexistent variables. 150 # Preserve -v and -x to the replacement shell. 151 BASH_ENV=/dev/null 152 ENV=/dev/null 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 154 case $- in # (((( 155 *v*x* | *x*v* ) as_opts=-vx ;; 156 *v* ) as_opts=-v ;; 157 *x* ) as_opts=-x ;; 158 * ) as_opts= ;; 159 esac 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 161 # Admittedly, this is quite paranoid, since all the known shells bail 162 # out after a failed `exec'. 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 164 as_fn_exit 255 165 fi 166 # We don't want this to propagate to other subprocesses. 167 { _as_can_reexec=; unset _as_can_reexec;} 168 if test "x$CONFIG_SHELL" = x; then 169 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 170 emulate sh 171 NULLCMD=: 172 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 173 # is contrary to our usage. Disable this feature. 174 alias -g '\${1+\"\$@\"}'='\"\$@\"' 175 setopt NO_GLOB_SUBST 176 else 177 case \`(set -o) 2>/dev/null\` in #( 178 *posix*) : 179 set -o posix ;; #( 180 *) : 181 ;; 182 esac 183 fi 184 " 185 as_required="as_fn_return () { (exit \$1); } 186 as_fn_success () { as_fn_return 0; } 187 as_fn_failure () { as_fn_return 1; } 188 as_fn_ret_success () { return 0; } 189 as_fn_ret_failure () { return 1; } 190 191 exitcode=0 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 197 198 else 199 exitcode=1; echo positional parameters were not saved. 200 fi 201 test x\$exitcode = x0 || exit 1 202 test -x / || exit 1" 203 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 204 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 205 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 206 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 207 test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210 else 211 as_have_required=no 212 fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215 else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217 as_found=false 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219 do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233 fi 234 fi 235 done;; 236 esac 237 as_found=false 238 done 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242 fi; } 243 IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249 # neutralization value for shells without unset; and this also 250 # works around shells that cannot unset nonexistent variables. 251 # Preserve -v and -x to the replacement shell. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262 # Admittedly, this is quite paranoid, since all the known shells bail 263 # out after a failed `exec'. 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265 exit 255 266 fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org and 276 $0: build-dev@openjdk.java.net about your system, including 277 $0: any error possibly output before this message. Then 278 $0: install a modern shell, or manually run the script 279 $0: under such a shell if you do have one." 280 fi 281 exit 1 282 fi 283 fi 284 fi 285 SHELL=${CONFIG_SHELL-/bin/sh} 286 export SHELL 287 # Unset more variables known to interfere with behavior of common tools. 288 CLICOLOR_FORCE= GREP_OPTIONS= 289 unset CLICOLOR_FORCE GREP_OPTIONS 290 291 ## --------------------- ## 292 ## M4sh Shell Functions. ## 293 ## --------------------- ## 294 # as_fn_unset VAR 295 # --------------- 296 # Portably unset VAR. 297 as_fn_unset () 298 { 299 { eval $1=; unset $1;} 300 } 301 as_unset=as_fn_unset 302 303 # as_fn_set_status STATUS 304 # ----------------------- 305 # Set $? to STATUS, without forking. 306 as_fn_set_status () 307 { 308 return $1 309 } # as_fn_set_status 310 311 # as_fn_exit STATUS 312 # ----------------- 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 314 as_fn_exit () 315 { 316 set +e 317 as_fn_set_status $1 318 exit $1 319 } # as_fn_exit 320 321 # as_fn_mkdir_p 322 # ------------- 323 # Create "$as_dir" as a directory, including parents if necessary. 324 as_fn_mkdir_p () 325 { 326 327 case $as_dir in #( 328 -*) as_dir=./$as_dir;; 329 esac 330 test -d "$as_dir" || eval $as_mkdir_p || { 331 as_dirs= 332 while :; do 333 case $as_dir in #( 334 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 335 *) as_qdir=$as_dir;; 336 esac 337 as_dirs="'$as_qdir' $as_dirs" 338 as_dir=`$as_dirname -- "$as_dir" || 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 340 X"$as_dir" : 'X\(//\)[^/]' \| \ 341 X"$as_dir" : 'X\(//\)$' \| \ 342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 343 $as_echo X"$as_dir" | 344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 345 s//\1/ 346 q 347 } 348 /^X\(\/\/\)[^/].*/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\/\)$/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\).*/{ 357 s//\1/ 358 q 359 } 360 s/.*/./; q'` 361 test -d "$as_dir" && break 362 done 363 test -z "$as_dirs" || eval "mkdir $as_dirs" 364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 365 366 367 } # as_fn_mkdir_p 368 369 # as_fn_executable_p FILE 370 # ----------------------- 371 # Test if FILE is an executable regular file. 372 as_fn_executable_p () 373 { 374 test -f "$1" && test -x "$1" 375 } # as_fn_executable_p 376 # as_fn_append VAR VALUE 377 # ---------------------- 378 # Append the text in VALUE to the end of the definition contained in VAR. Take 379 # advantage of any shell optimizations that allow amortized linear growth over 380 # repeated appends, instead of the typical quadratic growth present in naive 381 # implementations. 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 383 eval 'as_fn_append () 384 { 385 eval $1+=\$2 386 }' 387 else 388 as_fn_append () 389 { 390 eval $1=\$$1\$2 391 } 392 fi # as_fn_append 393 394 # as_fn_arith ARG... 395 # ------------------ 396 # Perform arithmetic evaluation on the ARGs, and store the result in the 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments 398 # must be portable across $(()) and expr. 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 400 eval 'as_fn_arith () 401 { 402 as_val=$(( $* )) 403 }' 404 else 405 as_fn_arith () 406 { 407 as_val=`expr "$@" || test $? -eq 1` 408 } 409 fi # as_fn_arith 410 411 412 # as_fn_error STATUS ERROR [LINENO LOG_FD] 413 # ---------------------------------------- 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 416 # script with STATUS, using 1 if that was 0. 417 as_fn_error () 418 { 419 as_status=$1; test $as_status -eq 0 && as_status=1 420 if test "$4"; then 421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 422 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 423 fi 424 $as_echo "$as_me: error: $2" >&2 425 as_fn_exit $as_status 426 } # as_fn_error 427 428 if expr a : '\(a\)' >/dev/null 2>&1 && 429 test "X`expr 00001 : '.*\(...\)'`" = X001; then 430 as_expr=expr 431 else 432 as_expr=false 433 fi 434 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 436 as_basename=basename 437 else 438 as_basename=false 439 fi 440 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 442 as_dirname=dirname 443 else 444 as_dirname=false 445 fi 446 447 as_me=`$as_basename -- "$0" || 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 449 X"$0" : 'X\(//\)$' \| \ 450 X"$0" : 'X\(/\)' \| . 2>/dev/null || 451 $as_echo X/"$0" | 452 sed '/^.*\/\([^/][^/]*\)\/*$/{ 453 s//\1/ 454 q 455 } 456 /^X\/\(\/\/\)$/{ 457 s//\1/ 458 q 459 } 460 /^X\/\(\/\).*/{ 461 s//\1/ 462 q 463 } 464 s/.*/./; q'` 465 466 # Avoid depending upon Character Ranges. 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 470 as_cr_digits='0123456789' 471 as_cr_alnum=$as_cr_Letters$as_cr_digits 472 473 474 as_lineno_1=$LINENO as_lineno_1a=$LINENO 475 as_lineno_2=$LINENO as_lineno_2a=$LINENO 476 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 477 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 479 sed -n ' 480 p 481 /[$]LINENO/= 482 ' <$as_myself | 483 sed ' 484 s/[$]LINENO.*/&-/ 485 t lineno 486 b 487 :lineno 488 N 489 :loop 490 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 491 t loop 492 s/-\n.*// 493 ' >$as_me.lineno && 494 chmod +x "$as_me.lineno" || 495 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 496 497 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 498 # already done that, so ensure we don't try to do so again and fall 499 # in an infinite loop. This has already happened in practice. 500 _as_can_reexec=no; export _as_can_reexec 501 # Don't try to exec as it changes $[0], causing all sort of problems 502 # (the dirname of $[0] is not the place where we might find the 503 # original and so on. Autoconf is especially sensitive to this). 504 . "./$as_me.lineno" 505 # Exit status is that of the last command. 506 exit 507 } 508 509 ECHO_C= ECHO_N= ECHO_T= 510 case `echo -n x` in #((((( 511 -n*) 512 case `echo 'xy\c'` in 513 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 514 xy) ECHO_C='\c';; 515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 516 ECHO_T=' ';; 517 esac;; 518 *) 519 ECHO_N='-n';; 520 esac 521 522 rm -f conf$$ conf$$.exe conf$$.file 523 if test -d conf$$.dir; then 524 rm -f conf$$.dir/conf$$.file 525 else 526 rm -f conf$$.dir 527 mkdir conf$$.dir 2>/dev/null 528 fi 529 if (echo >conf$$.file) 2>/dev/null; then 530 if ln -s conf$$.file conf$$ 2>/dev/null; then 531 as_ln_s='ln -s' 532 # ... but there are two gotchas: 533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 535 # In both cases, we have to default to `cp -pR'. 536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 537 as_ln_s='cp -pR' 538 elif ln conf$$.file conf$$ 2>/dev/null; then 539 as_ln_s=ln 540 else 541 as_ln_s='cp -pR' 542 fi 543 else 544 as_ln_s='cp -pR' 545 fi 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 547 rmdir conf$$.dir 2>/dev/null 548 549 if mkdir -p . 2>/dev/null; then 550 as_mkdir_p='mkdir -p "$as_dir"' 551 else 552 test -d ./-p && rmdir ./-p 553 as_mkdir_p=false 554 fi 555 556 as_test_x='test -x' 557 as_executable_p=as_fn_executable_p 558 559 # Sed expression to map a string onto a valid CPP name. 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 561 562 # Sed expression to map a string onto a valid variable name. 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 564 565 566 test -n "$DJDIR" || exec 7<&0 </dev/null 567 exec 6>&1 568 569 # Name of the host. 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 571 # so uname gets run too. 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 573 574 # 575 # Initializations. 576 # 577 ac_default_prefix=/usr/local 578 ac_clean_files= 579 ac_config_libobj_dir=. 580 LIBOBJS= 581 cross_compiling=no 582 subdirs= 583 MFLAGS= 584 MAKEFLAGS= 585 586 # Identity of this package. 587 PACKAGE_NAME='OpenJDK' 588 PACKAGE_TARNAME='openjdk' 589 PACKAGE_VERSION='jdk8' 590 PACKAGE_STRING='OpenJDK jdk8' 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net' 592 PACKAGE_URL='http://openjdk.java.net' 593 594 # Factoring default headers for most tests. 595 ac_includes_default="\ 596 #include <stdio.h> 597 #ifdef HAVE_SYS_TYPES_H 598 # include <sys/types.h> 599 #endif 600 #ifdef HAVE_SYS_STAT_H 601 # include <sys/stat.h> 602 #endif 603 #ifdef STDC_HEADERS 604 # include <stdlib.h> 605 # include <stddef.h> 606 #else 607 # ifdef HAVE_STDLIB_H 608 # include <stdlib.h> 609 # endif 610 #endif 611 #ifdef HAVE_STRING_H 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 613 # include <memory.h> 614 # endif 615 # include <string.h> 616 #endif 617 #ifdef HAVE_STRINGS_H 618 # include <strings.h> 619 #endif 620 #ifdef HAVE_INTTYPES_H 621 # include <inttypes.h> 622 #endif 623 #ifdef HAVE_STDINT_H 624 # include <stdint.h> 625 #endif 626 #ifdef HAVE_UNISTD_H 627 # include <unistd.h> 628 #endif" 629 630 ac_subst_vars='LTLIBOBJS 631 LIBOBJS 632 CCACHE 633 USE_PRECOMPILED_HEADER 634 SJAVAC_SERVER_DIR 635 ENABLE_SJAVAC 636 SJAVAC_SERVER_JAVA 637 JOBS 638 MEMORY_SIZE 639 NUM_CORES 640 ENABLE_INTREE_EC 641 SALIB_NAME 642 HOTSPOT_MAKE_ARGS 643 UCRT_DLL_DIR 644 MSVCP_DLL 645 MSVCR_DLL 646 LIBCXX 647 LLVM_LIBS 648 LLVM_LDFLAGS 649 LLVM_CFLAGS 650 LLVM_CONFIG 651 LIBFFI_LIBS 652 LIBFFI_CFLAGS 653 STATIC_CXX_SETTING 654 LIBDL 655 LIBM 656 LIBZIP_CAN_USE_MMAP 657 USE_EXTERNAL_LIBZ 658 USE_EXTERNAL_LIBGIF 659 USE_EXTERNAL_LIBJPEG 660 FONTCONFIG_CFLAGS 661 ALSA_LIBS 662 ALSA_CFLAGS 663 FREETYPE_BUNDLE_LIB_PATH 664 FREETYPE_LIBS 665 FREETYPE_CFLAGS 666 CUPS_CFLAGS 667 X_EXTRA_LIBS 668 X_LIBS 669 X_PRE_LIBS 670 X_CFLAGS 671 XMKMF 672 FIXPATH 673 ZIP_DEBUGINFO_FILES 674 DEBUG_BINARIES 675 STRIP_POLICY 676 ENABLE_DEBUG_SYMBOLS 677 COMPILER_SUPPORTS_TARGET_BITS_FLAG 678 ZERO_ARCHFLAG 679 LDFLAGS_CXX_JDK 680 LDFLAGS_JDKEXE_SUFFIX 681 LDFLAGS_JDKLIB_SUFFIX 682 LDFLAGS_JDKEXE 683 LDFLAGS_JDKLIB 684 CXXFLAGS_JDKEXE 685 CXXFLAGS_JDKLIB 686 CFLAGS_JDKEXE 687 CFLAGS_JDKLIB 688 MACOSX_VERSION_MIN 689 FDLIBM_CFLAGS 690 NO_LIFETIME_DSE_CFLAG 691 NO_DELETE_NULL_POINTER_CHECKS_CFLAG 692 LEGACY_EXTRA_ASFLAGS 693 LEGACY_EXTRA_LDFLAGS 694 LEGACY_EXTRA_CXXFLAGS 695 LEGACY_EXTRA_CFLAGS 696 CXXSTD_CXXFLAG 697 CXX_O_FLAG_NONE 698 CXX_O_FLAG_NORM 699 CXX_O_FLAG_HI 700 CXX_O_FLAG_HIGHEST 701 C_O_FLAG_NONE 702 C_O_FLAG_NORM 703 C_O_FLAG_HI 704 C_O_FLAG_HIGHEST 705 CXXFLAGS_DEBUG_SYMBOLS 706 CFLAGS_DEBUG_SYMBOLS 707 ASFLAGS_DEBUG_SYMBOLS 708 CXX_FLAG_DEPS 709 C_FLAG_DEPS 710 SET_SHARED_LIBRARY_MAPFILE 711 SET_SHARED_LIBRARY_NAME 712 SET_SHARED_LIBRARY_ORIGIN 713 SET_EXECUTABLE_ORIGIN 714 SHARED_LIBRARY_FLAGS 715 CXX_FLAG_REORDER 716 C_FLAG_REORDER 717 SYSROOT_LDFLAGS 718 SYSROOT_CFLAGS 719 RC_FLAGS 720 AR_OUT_OPTION 721 LD_OUT_OPTION 722 EXE_OUT_OPTION 723 CC_OUT_OPTION 724 POST_MCS_CMD 725 POST_STRIP_CMD 726 ARFLAGS 727 COMPILER_TARGET_BITS_FLAG 728 JT_HOME 729 JTREGEXE 730 USING_BROKEN_SUSE_LD 731 PACKAGE_PATH 732 LDEXECXX 733 LDEXE 734 USE_CLANG 735 HOTSPOT_LD 736 HOTSPOT_CXX 737 HOTSPOT_RC 738 HOTSPOT_MT 739 BUILD_LD 740 BUILD_CXX 741 BUILD_CC 742 ac_ct_OBJDUMP 743 OBJDUMP 744 ac_ct_OBJCOPY 745 OBJCOPY 746 ac_ct_NM 747 OTOOL 748 ac_ct_STRIP 749 MCS 750 GNM 751 NM 752 STRIP 753 MSBUILD 754 DUMPBIN 755 RC 756 MT 757 LIPO 758 ac_ct_OBJC 759 OBJCFLAGS 760 OBJC 761 ac_ct_AR 762 AR 763 AS 764 LDCXX 765 LD 766 CXXCPP 767 CPP 768 CXX_VERSION_NUMBER 769 CC_VERSION_NUMBER 770 ac_ct_CXX 771 CXXFLAGS 772 CXX 773 ac_ct_PROPER_COMPILER_CXX 774 PROPER_COMPILER_CXX 775 TOOLCHAIN_PATH_CXX 776 POTENTIAL_CXX 777 OBJEXT 778 EXEEXT 779 ac_ct_CC 780 CPPFLAGS 781 LDFLAGS 782 CFLAGS 783 CC 784 ac_ct_PROPER_COMPILER_CC 785 PROPER_COMPILER_CC 786 TOOLCHAIN_PATH_CC 787 POTENTIAL_CC 788 SDKPATH 789 XCODEBUILD 790 SET_DEVELOPER_DIR 791 VS_LIB 792 VS_INCLUDE 793 VS_PATH 794 CYGWIN_LINK 795 EXE_SUFFIX 796 OBJ_SUFFIX 797 STATIC_LIBRARY 798 SHARED_LIBRARY 799 STATIC_LIBRARY_SUFFIX 800 SHARED_LIBRARY_SUFFIX 801 LIBRARY_PREFIX 802 TOOLCHAIN_TYPE 803 BUILD_HOTSPOT 804 HOTSPOT_DIST 805 BUILD_OUTPUT 806 OVERRIDE_SRC_ROOT 807 ADD_SRC_ROOT 808 JDK_TOPDIR 809 NASHORN_TOPDIR 810 HOTSPOT_TOPDIR 811 JAXWS_TOPDIR 812 JAXP_TOPDIR 813 CORBA_TOPDIR 814 LANGTOOLS_TOPDIR 815 JAVA_FLAGS_SMALL 816 JAVA_FLAGS_BIG 817 JAVA_FLAGS 818 BOOT_JDK_BITS 819 JAVAC_FLAGS 820 BOOT_JDK_SOURCETARGET 821 BOOT_JDK 822 BOOT_TOOLSJAR 823 BOOT_RTJAR 824 JAVA_CHECK 825 JAVAC_CHECK 826 COOKED_BUILD_NUMBER 827 COOKED_JDK_UPDATE_VERSION 828 JDK_VERSION 829 COPYRIGHT_YEAR 830 VENDOR_URL_VM_BUG 831 VENDOR_URL_BUG 832 VENDOR_URL 833 COMPANY_NAME 834 MACOSX_BUNDLE_ID_BASE 835 MACOSX_BUNDLE_NAME_BASE 836 JDK_RC_PLATFORM_NAME 837 PRODUCT_SUFFIX 838 PRODUCT_NAME 839 LAUNCHER_NAME 840 MILESTONE 841 JDK_BUILD_NUMBER 842 JDK_UPDATE_VERSION 843 JDK_MICRO_VERSION 844 JDK_MINOR_VERSION 845 JDK_MAJOR_VERSION 846 USER_RELEASE_SUFFIX 847 ENABLE_JFR 848 COMPRESS_JARS 849 UNLIMITED_CRYPTO 850 CACERTS_FILE 851 TEST_IN_BUILD 852 BUILD_HEADLESS 853 SUPPORT_HEADFUL 854 SUPPORT_HEADLESS 855 BDEPS_FTP 856 BDEPS_UNZIP 857 OS_VERSION_MICRO 858 OS_VERSION_MINOR 859 OS_VERSION_MAJOR 860 PKG_CONFIG 861 CODESIGN 862 XATTR 863 DSYMUTIL 864 IS_GNU_TIME 865 TIME 866 STAT 867 HG 868 READELF 869 LDD 870 ZIP 871 UNZIP 872 FIND_DELETE 873 MAKE 874 CHECK_TOOLSDIR_MAKE 875 CHECK_TOOLSDIR_GMAKE 876 CHECK_MAKE 877 CHECK_GMAKE 878 PKGHANDLER 879 OUTPUT_ROOT 880 CONF_NAME 881 SPEC 882 DEVKIT_LIB_DIR 883 BUILD_VARIANT_RELEASE 884 DEBUG_CLASSFILES 885 FASTDEBUG 886 VARIANT 887 DEBUG_LEVEL 888 MACOSX_UNIVERSAL 889 INCLUDE_SA 890 JVM_VARIANT_CORE 891 JVM_VARIANT_ZEROSHARK 892 JVM_VARIANT_ZERO 893 JVM_VARIANT_KERNEL 894 JVM_VARIANT_MINIMAL1 895 JVM_VARIANT_CLIENT 896 JVM_VARIANT_SERVER 897 JVM_VARIANTS 898 JVM_INTERPRETER 899 JDK_VARIANT 900 SET_OPENJDK 901 BUILD_LOG_WRAPPER 902 BUILD_LOG_PREVIOUS 903 BUILD_LOG 904 TOPDIR 905 PATH_SEP 906 ZERO_ARCHDEF 907 DEFINE_CROSS_COMPILE_ARCH 908 LP64 909 OPENJDK_TARGET_OS_EXPORT_DIR 910 OPENJDK_TARGET_OS_API_DIR 911 OPENJDK_TARGET_CPU_JLI_CFLAGS 912 OPENJDK_TARGET_CPU_OSARCH 913 OPENJDK_TARGET_CPU_ISADIR 914 OPENJDK_TARGET_CPU_LIBDIR 915 OPENJDK_TARGET_CPU_LEGACY_LIB 916 OPENJDK_TARGET_CPU_LEGACY 917 REQUIRED_OS_VERSION 918 REQUIRED_OS_NAME 919 COMPILE_TYPE 920 OPENJDK_TARGET_CPU_ENDIAN 921 OPENJDK_TARGET_CPU_BITS 922 OPENJDK_TARGET_CPU_ARCH 923 OPENJDK_TARGET_CPU 924 OPENJDK_TARGET_OS_ENV 925 OPENJDK_TARGET_OS_API 926 OPENJDK_TARGET_OS 927 OPENJDK_BUILD_CPU_ENDIAN 928 OPENJDK_BUILD_CPU_BITS 929 OPENJDK_BUILD_CPU_ARCH 930 OPENJDK_BUILD_CPU 931 OPENJDK_BUILD_OS_ENV 932 OPENJDK_BUILD_OS_API 933 OPENJDK_BUILD_OS 934 OPENJDK_BUILD_AUTOCONF_NAME 935 OPENJDK_TARGET_AUTOCONF_NAME 936 target_os 937 target_vendor 938 target_cpu 939 target 940 host_os 941 host_vendor 942 host_cpu 943 host 944 build_os 945 build_vendor 946 build_cpu 947 build 948 CPIO 949 SETFILE 950 DF 951 READLINK 952 CYGPATH 953 SED 954 FGREP 955 EGREP 956 GREP 957 AWK 958 XARGS 959 WHICH 960 WC 961 UNIQ 962 UNAME 963 TR 964 TOUCH 965 TEE 966 TAR 967 TAIL 968 SORT 969 SH 970 RM 971 PRINTF 972 NAWK 973 MV 974 MKTEMP 975 MKDIR 976 LS 977 LN 978 HEAD 979 FIND 980 FILE 981 EXPR 982 ECHO 983 DIRNAME 984 DIFF 985 DATE 986 CUT 987 CP 988 COMM 989 CMP 990 CHMOD 991 CAT 992 BASH 993 BASENAME 994 DATE_WHEN_CONFIGURED 995 CONFIGURE_COMMAND_LINE 996 CUSTOM_MAKE_DIR 997 target_alias 998 host_alias 999 build_alias 1000 LIBS 1001 ECHO_T 1002 ECHO_N 1003 ECHO_C 1004 DEFS 1005 mandir 1006 localedir 1007 libdir 1008 psdir 1009 pdfdir 1010 dvidir 1011 htmldir 1012 infodir 1013 docdir 1014 oldincludedir 1015 includedir 1016 runstatedir 1017 localstatedir 1018 sharedstatedir 1019 sysconfdir 1020 datadir 1021 datarootdir 1022 libexecdir 1023 sbindir 1024 bindir 1025 program_transform_name 1026 prefix 1027 exec_prefix 1028 PACKAGE_URL 1029 PACKAGE_BUGREPORT 1030 PACKAGE_STRING 1031 PACKAGE_VERSION 1032 PACKAGE_TARNAME 1033 PACKAGE_NAME 1034 PATH_SEPARATOR 1035 SHELL' 1036 ac_subst_files='' 1037 ac_user_opts=' 1038 enable_option_checking 1039 with_custom_make_dir 1040 with_target_bits 1041 enable_openjdk_only 1042 with_jdk_variant 1043 with_jvm_interpreter 1044 with_jvm_variants 1045 enable_debug 1046 with_debug_level 1047 with_devkit 1048 with_sys_root 1049 with_sysroot 1050 with_tools_dir 1051 with_toolchain_path 1052 with_extra_path 1053 with_xcode_path 1054 with_conf_name 1055 with_builddeps_conf 1056 with_builddeps_server 1057 with_builddeps_dir 1058 with_builddeps_group 1059 enable_headful 1060 enable_hotspot_test_in_build 1061 with_cacerts_file 1062 enable_unlimited_crypto 1063 enable_jfr 1064 with_milestone 1065 with_update_version 1066 with_user_release_suffix 1067 with_build_number 1068 with_vendor_name 1069 with_vendor_url 1070 with_vendor_bug_url 1071 with_vendor_vm_bug_url 1072 with_copyright_year 1073 with_boot_jdk 1074 with_boot_jdk_jvmargs 1075 with_add_source_root 1076 with_override_source_root 1077 with_adds_and_overrides 1078 with_override_langtools 1079 with_override_corba 1080 with_override_jaxp 1081 with_override_jaxws 1082 with_override_hotspot 1083 with_override_nashorn 1084 with_override_jdk 1085 with_import_hotspot 1086 with_toolchain_type 1087 with_toolchain_version 1088 with_jtreg 1089 with_extra_cflags 1090 with_extra_cxxflags 1091 with_extra_ldflags 1092 with_extra_asflags 1093 enable_debug_symbols 1094 enable_zip_debug_info 1095 with_native_debug_symbols 1096 enable_macosx_runtime_support 1097 with_x 1098 with_cups 1099 with_cups_include 1100 with_freetype 1101 with_freetype_include 1102 with_freetype_lib 1103 with_freetype_src 1104 enable_freetype_bundling 1105 with_alsa 1106 with_alsa_include 1107 with_alsa_lib 1108 with_fontconfig 1109 with_fontconfig_include 1110 with_giflib 1111 with_zlib 1112 with_stdc__lib 1113 with_msvcr_dll 1114 with_msvcp_dll 1115 with_ucrt_dll_dir 1116 with_dxsdk 1117 with_dxsdk_lib 1118 with_dxsdk_include 1119 with_num_cores 1120 with_memory_size 1121 with_jobs 1122 with_sjavac_server_java 1123 enable_sjavac 1124 enable_precompiled_headers 1125 enable_ccache 1126 with_ccache_dir 1127 ' 1128 ac_precious_vars='build_alias 1129 host_alias 1130 target_alias 1131 BASENAME 1132 BASH 1133 CAT 1134 CHMOD 1135 CMP 1136 COMM 1137 CP 1138 CUT 1139 DATE 1140 DIFF 1141 DIRNAME 1142 ECHO 1143 EXPR 1144 FILE 1145 FIND 1146 HEAD 1147 LN 1148 LS 1149 MKDIR 1150 MKTEMP 1151 MV 1152 NAWK 1153 PRINTF 1154 RM 1155 SH 1156 SORT 1157 TAIL 1158 TAR 1159 TEE 1160 TOUCH 1161 TR 1162 UNAME 1163 UNIQ 1164 WC 1165 WHICH 1166 XARGS 1167 AWK 1168 GREP 1169 EGREP 1170 FGREP 1171 SED 1172 CYGPATH 1173 READLINK 1174 DF 1175 SETFILE 1176 CPIO 1177 UNZIP 1178 ZIP 1179 LDD 1180 READELF 1181 HG 1182 STAT 1183 TIME 1184 DSYMUTIL 1185 XATTR 1186 CODESIGN 1187 PKG_CONFIG 1188 CC 1189 CFLAGS 1190 LDFLAGS 1191 LIBS 1192 CPPFLAGS 1193 CXX 1194 CXXFLAGS 1195 CCC 1196 CPP 1197 CXXCPP 1198 AS 1199 AR 1200 OBJC 1201 OBJCFLAGS 1202 LIPO 1203 STRIP 1204 NM 1205 GNM 1206 MCS 1207 OBJCOPY 1208 OBJDUMP 1209 BUILD_CC 1210 BUILD_CXX 1211 BUILD_LD 1212 JTREGEXE 1213 XMKMF 1214 FREETYPE_CFLAGS 1215 FREETYPE_LIBS 1216 ALSA_CFLAGS 1217 ALSA_LIBS 1218 LIBFFI_CFLAGS 1219 LIBFFI_LIBS 1220 CCACHE' 1221 1222 1223 # Initialize some variables set by options. 1224 ac_init_help= 1225 ac_init_version=false 1226 ac_unrecognized_opts= 1227 ac_unrecognized_sep= 1228 # The variables have the same names as the options, with 1229 # dashes changed to underlines. 1230 cache_file=/dev/null 1231 exec_prefix=NONE 1232 no_create= 1233 no_recursion= 1234 prefix=NONE 1235 program_prefix=NONE 1236 program_suffix=NONE 1237 program_transform_name=s,x,x, 1238 silent= 1239 site= 1240 srcdir= 1241 verbose= 1242 x_includes=NONE 1243 x_libraries=NONE 1244 1245 # Installation directory options. 1246 # These are left unexpanded so users can "make install exec_prefix=/foo" 1247 # and all the variables that are supposed to be based on exec_prefix 1248 # by default will actually change. 1249 # Use braces instead of parens because sh, perl, etc. also accept them. 1250 # (The list follows the same order as the GNU Coding Standards.) 1251 bindir='${exec_prefix}/bin' 1252 sbindir='${exec_prefix}/sbin' 1253 libexecdir='${exec_prefix}/libexec' 1254 datarootdir='${prefix}/share' 1255 datadir='${datarootdir}' 1256 sysconfdir='${prefix}/etc' 1257 sharedstatedir='${prefix}/com' 1258 localstatedir='${prefix}/var' 1259 runstatedir='${localstatedir}/run' 1260 includedir='${prefix}/include' 1261 oldincludedir='/usr/include' 1262 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1263 infodir='${datarootdir}/info' 1264 htmldir='${docdir}' 1265 dvidir='${docdir}' 1266 pdfdir='${docdir}' 1267 psdir='${docdir}' 1268 libdir='${exec_prefix}/lib' 1269 localedir='${datarootdir}/locale' 1270 mandir='${datarootdir}/man' 1271 1272 ac_prev= 1273 ac_dashdash= 1274 for ac_option 1275 do 1276 # If the previous option needs an argument, assign it. 1277 if test -n "$ac_prev"; then 1278 eval $ac_prev=\$ac_option 1279 ac_prev= 1280 continue 1281 fi 1282 1283 case $ac_option in 1284 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1285 *=) ac_optarg= ;; 1286 *) ac_optarg=yes ;; 1287 esac 1288 1289 # Accept the important Cygnus configure options, so we can diagnose typos. 1290 1291 case $ac_dashdash$ac_option in 1292 --) 1293 ac_dashdash=yes ;; 1294 1295 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1296 ac_prev=bindir ;; 1297 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1298 bindir=$ac_optarg ;; 1299 1300 -build | --build | --buil | --bui | --bu) 1301 ac_prev=build_alias ;; 1302 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1303 build_alias=$ac_optarg ;; 1304 1305 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1306 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1307 ac_prev=cache_file ;; 1308 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1309 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1310 cache_file=$ac_optarg ;; 1311 1312 --config-cache | -C) 1313 cache_file=config.cache ;; 1314 1315 -datadir | --datadir | --datadi | --datad) 1316 ac_prev=datadir ;; 1317 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1318 datadir=$ac_optarg ;; 1319 1320 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1321 | --dataroo | --dataro | --datar) 1322 ac_prev=datarootdir ;; 1323 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1324 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1325 datarootdir=$ac_optarg ;; 1326 1327 -disable-* | --disable-*) 1328 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1329 # Reject names that are not valid shell variable names. 1330 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1331 as_fn_error $? "invalid feature name: $ac_useropt" 1332 ac_useropt_orig=$ac_useropt 1333 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1334 case $ac_user_opts in 1335 *" 1336 "enable_$ac_useropt" 1337 "*) ;; 1338 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1339 ac_unrecognized_sep=', ';; 1340 esac 1341 eval enable_$ac_useropt=no ;; 1342 1343 -docdir | --docdir | --docdi | --doc | --do) 1344 ac_prev=docdir ;; 1345 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1346 docdir=$ac_optarg ;; 1347 1348 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1349 ac_prev=dvidir ;; 1350 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1351 dvidir=$ac_optarg ;; 1352 1353 -enable-* | --enable-*) 1354 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1355 # Reject names that are not valid shell variable names. 1356 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1357 as_fn_error $? "invalid feature name: $ac_useropt" 1358 ac_useropt_orig=$ac_useropt 1359 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1360 case $ac_user_opts in 1361 *" 1362 "enable_$ac_useropt" 1363 "*) ;; 1364 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1365 ac_unrecognized_sep=', ';; 1366 esac 1367 eval enable_$ac_useropt=\$ac_optarg ;; 1368 1369 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1370 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1371 | --exec | --exe | --ex) 1372 ac_prev=exec_prefix ;; 1373 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1374 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1375 | --exec=* | --exe=* | --ex=*) 1376 exec_prefix=$ac_optarg ;; 1377 1378 -gas | --gas | --ga | --g) 1379 # Obsolete; use --with-gas. 1380 with_gas=yes ;; 1381 1382 -help | --help | --hel | --he | -h) 1383 ac_init_help=long ;; 1384 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1385 ac_init_help=recursive ;; 1386 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1387 ac_init_help=short ;; 1388 1389 -host | --host | --hos | --ho) 1390 ac_prev=host_alias ;; 1391 -host=* | --host=* | --hos=* | --ho=*) 1392 host_alias=$ac_optarg ;; 1393 1394 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1395 ac_prev=htmldir ;; 1396 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1397 | --ht=*) 1398 htmldir=$ac_optarg ;; 1399 1400 -includedir | --includedir | --includedi | --included | --include \ 1401 | --includ | --inclu | --incl | --inc) 1402 ac_prev=includedir ;; 1403 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1404 | --includ=* | --inclu=* | --incl=* | --inc=*) 1405 includedir=$ac_optarg ;; 1406 1407 -infodir | --infodir | --infodi | --infod | --info | --inf) 1408 ac_prev=infodir ;; 1409 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1410 infodir=$ac_optarg ;; 1411 1412 -libdir | --libdir | --libdi | --libd) 1413 ac_prev=libdir ;; 1414 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1415 libdir=$ac_optarg ;; 1416 1417 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1418 | --libexe | --libex | --libe) 1419 ac_prev=libexecdir ;; 1420 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1421 | --libexe=* | --libex=* | --libe=*) 1422 libexecdir=$ac_optarg ;; 1423 1424 -localedir | --localedir | --localedi | --localed | --locale) 1425 ac_prev=localedir ;; 1426 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1427 localedir=$ac_optarg ;; 1428 1429 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1430 | --localstate | --localstat | --localsta | --localst | --locals) 1431 ac_prev=localstatedir ;; 1432 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1433 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1434 localstatedir=$ac_optarg ;; 1435 1436 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1437 ac_prev=mandir ;; 1438 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1439 mandir=$ac_optarg ;; 1440 1441 -nfp | --nfp | --nf) 1442 # Obsolete; use --without-fp. 1443 with_fp=no ;; 1444 1445 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1446 | --no-cr | --no-c | -n) 1447 no_create=yes ;; 1448 1449 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1450 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1451 no_recursion=yes ;; 1452 1453 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1454 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1455 | --oldin | --oldi | --old | --ol | --o) 1456 ac_prev=oldincludedir ;; 1457 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1458 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1459 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1460 oldincludedir=$ac_optarg ;; 1461 1462 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1463 ac_prev=prefix ;; 1464 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1465 prefix=$ac_optarg ;; 1466 1467 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1468 | --program-pre | --program-pr | --program-p) 1469 ac_prev=program_prefix ;; 1470 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1471 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1472 program_prefix=$ac_optarg ;; 1473 1474 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1475 | --program-suf | --program-su | --program-s) 1476 ac_prev=program_suffix ;; 1477 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1478 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1479 program_suffix=$ac_optarg ;; 1480 1481 -program-transform-name | --program-transform-name \ 1482 | --program-transform-nam | --program-transform-na \ 1483 | --program-transform-n | --program-transform- \ 1484 | --program-transform | --program-transfor \ 1485 | --program-transfo | --program-transf \ 1486 | --program-trans | --program-tran \ 1487 | --progr-tra | --program-tr | --program-t) 1488 ac_prev=program_transform_name ;; 1489 -program-transform-name=* | --program-transform-name=* \ 1490 | --program-transform-nam=* | --program-transform-na=* \ 1491 | --program-transform-n=* | --program-transform-=* \ 1492 | --program-transform=* | --program-transfor=* \ 1493 | --program-transfo=* | --program-transf=* \ 1494 | --program-trans=* | --program-tran=* \ 1495 | --progr-tra=* | --program-tr=* | --program-t=*) 1496 program_transform_name=$ac_optarg ;; 1497 1498 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1499 ac_prev=pdfdir ;; 1500 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1501 pdfdir=$ac_optarg ;; 1502 1503 -psdir | --psdir | --psdi | --psd | --ps) 1504 ac_prev=psdir ;; 1505 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1506 psdir=$ac_optarg ;; 1507 1508 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1509 | -silent | --silent | --silen | --sile | --sil) 1510 silent=yes ;; 1511 1512 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1513 | --runstate | --runstat | --runsta | --runst | --runs \ 1514 | --run | --ru | --r) 1515 ac_prev=runstatedir ;; 1516 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1517 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1518 | --run=* | --ru=* | --r=*) 1519 runstatedir=$ac_optarg ;; 1520 1521 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1522 ac_prev=sbindir ;; 1523 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1524 | --sbi=* | --sb=*) 1525 sbindir=$ac_optarg ;; 1526 1527 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1528 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1529 | --sharedst | --shareds | --shared | --share | --shar \ 1530 | --sha | --sh) 1531 ac_prev=sharedstatedir ;; 1532 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1533 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1534 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1535 | --sha=* | --sh=*) 1536 sharedstatedir=$ac_optarg ;; 1537 1538 -site | --site | --sit) 1539 ac_prev=site ;; 1540 -site=* | --site=* | --sit=*) 1541 site=$ac_optarg ;; 1542 1543 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1544 ac_prev=srcdir ;; 1545 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1546 srcdir=$ac_optarg ;; 1547 1548 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1549 | --syscon | --sysco | --sysc | --sys | --sy) 1550 ac_prev=sysconfdir ;; 1551 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1552 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1553 sysconfdir=$ac_optarg ;; 1554 1555 -target | --target | --targe | --targ | --tar | --ta | --t) 1556 ac_prev=target_alias ;; 1557 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1558 target_alias=$ac_optarg ;; 1559 1560 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1561 verbose=yes ;; 1562 1563 -version | --version | --versio | --versi | --vers | -V) 1564 ac_init_version=: ;; 1565 1566 -with-* | --with-*) 1567 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1568 # Reject names that are not valid shell variable names. 1569 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1570 as_fn_error $? "invalid package name: $ac_useropt" 1571 ac_useropt_orig=$ac_useropt 1572 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1573 case $ac_user_opts in 1574 *" 1575 "with_$ac_useropt" 1576 "*) ;; 1577 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1578 ac_unrecognized_sep=', ';; 1579 esac 1580 eval with_$ac_useropt=\$ac_optarg ;; 1581 1582 -without-* | --without-*) 1583 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1584 # Reject names that are not valid shell variable names. 1585 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1586 as_fn_error $? "invalid package name: $ac_useropt" 1587 ac_useropt_orig=$ac_useropt 1588 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1589 case $ac_user_opts in 1590 *" 1591 "with_$ac_useropt" 1592 "*) ;; 1593 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1594 ac_unrecognized_sep=', ';; 1595 esac 1596 eval with_$ac_useropt=no ;; 1597 1598 --x) 1599 # Obsolete; use --with-x. 1600 with_x=yes ;; 1601 1602 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1603 | --x-incl | --x-inc | --x-in | --x-i) 1604 ac_prev=x_includes ;; 1605 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1606 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1607 x_includes=$ac_optarg ;; 1608 1609 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1610 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1611 ac_prev=x_libraries ;; 1612 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1613 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1614 x_libraries=$ac_optarg ;; 1615 1616 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1617 Try \`$0 --help' for more information" 1618 ;; 1619 1620 *=*) 1621 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1622 # Reject names that are not valid shell variable names. 1623 case $ac_envvar in #( 1624 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1625 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1626 esac 1627 eval $ac_envvar=\$ac_optarg 1628 export $ac_envvar ;; 1629 1630 *) 1631 # FIXME: should be removed in autoconf 3.0. 1632 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1633 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1634 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1635 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1636 ;; 1637 1638 esac 1639 done 1640 1641 if test -n "$ac_prev"; then 1642 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1643 as_fn_error $? "missing argument to $ac_option" 1644 fi 1645 1646 if test -n "$ac_unrecognized_opts"; then 1647 case $enable_option_checking in 1648 no) ;; 1649 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1650 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1651 esac 1652 fi 1653 1654 # Check all directory arguments for consistency. 1655 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1656 datadir sysconfdir sharedstatedir localstatedir includedir \ 1657 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1658 libdir localedir mandir runstatedir 1659 do 1660 eval ac_val=\$$ac_var 1661 # Remove trailing slashes. 1662 case $ac_val in 1663 */ ) 1664 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1665 eval $ac_var=\$ac_val;; 1666 esac 1667 # Be sure to have absolute directory names. 1668 case $ac_val in 1669 [\\/$]* | ?:[\\/]* ) continue;; 1670 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1671 esac 1672 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1673 done 1674 1675 # There might be people who depend on the old broken behavior: `$host' 1676 # used to hold the argument of --host etc. 1677 # FIXME: To remove some day. 1678 build=$build_alias 1679 host=$host_alias 1680 target=$target_alias 1681 1682 # FIXME: To remove some day. 1683 if test "x$host_alias" != x; then 1684 if test "x$build_alias" = x; then 1685 cross_compiling=maybe 1686 elif test "x$build_alias" != "x$host_alias"; then 1687 cross_compiling=yes 1688 fi 1689 fi 1690 1691 ac_tool_prefix= 1692 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1693 1694 test "$silent" = yes && exec 6>/dev/null 1695 1696 1697 ac_pwd=`pwd` && test -n "$ac_pwd" && 1698 ac_ls_di=`ls -di .` && 1699 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1700 as_fn_error $? "working directory cannot be determined" 1701 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1702 as_fn_error $? "pwd does not report name of working directory" 1703 1704 1705 # Find the source files, if location was not specified. 1706 if test -z "$srcdir"; then 1707 ac_srcdir_defaulted=yes 1708 # Try the directory containing this script, then the parent directory. 1709 ac_confdir=`$as_dirname -- "$as_myself" || 1710 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1711 X"$as_myself" : 'X\(//\)[^/]' \| \ 1712 X"$as_myself" : 'X\(//\)$' \| \ 1713 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1714 $as_echo X"$as_myself" | 1715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1716 s//\1/ 1717 q 1718 } 1719 /^X\(\/\/\)[^/].*/{ 1720 s//\1/ 1721 q 1722 } 1723 /^X\(\/\/\)$/{ 1724 s//\1/ 1725 q 1726 } 1727 /^X\(\/\).*/{ 1728 s//\1/ 1729 q 1730 } 1731 s/.*/./; q'` 1732 srcdir=$ac_confdir 1733 if test ! -r "$srcdir/$ac_unique_file"; then 1734 srcdir=.. 1735 fi 1736 else 1737 ac_srcdir_defaulted=no 1738 fi 1739 if test ! -r "$srcdir/$ac_unique_file"; then 1740 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1741 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1742 fi 1743 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1744 ac_abs_confdir=`( 1745 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1746 pwd)` 1747 # When building in place, set srcdir=. 1748 if test "$ac_abs_confdir" = "$ac_pwd"; then 1749 srcdir=. 1750 fi 1751 # Remove unnecessary trailing slashes from srcdir. 1752 # Double slashes in file names in object file debugging info 1753 # mess up M-x gdb in Emacs. 1754 case $srcdir in 1755 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1756 esac 1757 for ac_var in $ac_precious_vars; do 1758 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1759 eval ac_env_${ac_var}_value=\$${ac_var} 1760 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1761 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1762 done 1763 1764 # 1765 # Report the --help message. 1766 # 1767 if test "$ac_init_help" = "long"; then 1768 # Omit some internal or obsolete options to make the list less imposing. 1769 # This message is too long to be a string in the A/UX 3.1 sh. 1770 cat <<_ACEOF 1771 \`configure' configures OpenJDK jdk8 to adapt to many kinds of systems. 1772 1773 Usage: $0 [OPTION]... [VAR=VALUE]... 1774 1775 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1776 VAR=VALUE. See below for descriptions of some of the useful variables. 1777 1778 Defaults for the options are specified in brackets. 1779 1780 Configuration: 1781 -h, --help display this help and exit 1782 --help=short display options specific to this package 1783 --help=recursive display the short help of all the included packages 1784 -V, --version display version information and exit 1785 -q, --quiet, --silent do not print \`checking ...' messages 1786 --cache-file=FILE cache test results in FILE [disabled] 1787 -C, --config-cache alias for \`--cache-file=config.cache' 1788 -n, --no-create do not create output files 1789 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1790 1791 Installation directories: 1792 --prefix=PREFIX install architecture-independent files in PREFIX 1793 [$ac_default_prefix] 1794 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1795 [PREFIX] 1796 1797 By default, \`make install' will install all the files in 1798 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1799 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1800 for instance \`--prefix=\$HOME'. 1801 1802 For better control, use the options below. 1803 1804 Fine tuning of the installation directories: 1805 --bindir=DIR user executables [EPREFIX/bin] 1806 --sbindir=DIR system admin executables [EPREFIX/sbin] 1807 --libexecdir=DIR program executables [EPREFIX/libexec] 1808 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1809 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1810 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1811 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1812 --libdir=DIR object code libraries [EPREFIX/lib] 1813 --includedir=DIR C header files [PREFIX/include] 1814 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1815 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1816 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1817 --infodir=DIR info documentation [DATAROOTDIR/info] 1818 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1819 --mandir=DIR man documentation [DATAROOTDIR/man] 1820 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1821 --htmldir=DIR html documentation [DOCDIR] 1822 --dvidir=DIR dvi documentation [DOCDIR] 1823 --pdfdir=DIR pdf documentation [DOCDIR] 1824 --psdir=DIR ps documentation [DOCDIR] 1825 _ACEOF 1826 1827 cat <<\_ACEOF 1828 1829 X features: 1830 --x-includes=DIR X include files are in DIR 1831 --x-libraries=DIR X library files are in DIR 1832 1833 System types: 1834 --build=BUILD configure for building on BUILD [guessed] 1835 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1836 --target=TARGET configure for building compilers for TARGET [HOST] 1837 _ACEOF 1838 fi 1839 1840 if test -n "$ac_init_help"; then 1841 case $ac_init_help in 1842 short | recursive ) echo "Configuration of OpenJDK jdk8:";; 1843 esac 1844 cat <<\_ACEOF 1845 1846 Optional Features: 1847 --disable-option-checking ignore unrecognized --enable/--with options 1848 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1849 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1850 --enable-openjdk-only suppress building custom source even if present 1851 [disabled] 1852 --enable-debug set the debug level to fastdebug (shorthand for 1853 --with-debug-level=fastdebug) [disabled] 1854 --disable-headful disable building headful support (graphical UI 1855 support) [enabled] 1856 --enable-hotspot-test-in-build 1857 run the Queens test after Hotspot build [disabled] 1858 --enable-unlimited-crypto 1859 Enable unlimited crypto policy [disabled] 1860 --disable-jfr Disable Java Flight Recorder support [enabled] 1861 --disable-debug-symbols disable generation of debug symbols [enabled] 1862 --disable-zip-debug-info 1863 disable zipping of debug-info files [enabled] 1864 --enable-macosx-runtime-support 1865 Deprecated. Option is kept for backwards 1866 compatibility and is ignored 1867 --disable-freetype-bundling 1868 disable bundling of the freetype library with the 1869 build result [enabled on Windows or when using 1870 --with-freetype, disabled otherwise] 1871 --enable-sjavac use sjavac to do fast incremental compiles 1872 [disabled] 1873 --disable-precompiled-headers 1874 disable using precompiled headers when compiling C++ 1875 [enabled] 1876 --enable-ccache enable using ccache to speed up recompilations 1877 [disabled] 1878 1879 Optional Packages: 1880 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1881 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1882 --with-custom-make-dir use this directory for custom build/make files 1883 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 1884 support it), e.g. --with-target-bits=32 [guessed] 1885 --with-jdk-variant JDK variant to build (normal) [normal] 1886 --with-jvm-interpreter JVM interpreter to build (template, cpp) [template] 1887 --with-jvm-variants JVM variants (separated by commas) to build (server, 1888 client, minimal1, kernel, zero, zeroshark, core) 1889 [server] 1890 --with-debug-level set the debug level (release, fastdebug, slowdebug) 1891 [release] 1892 --with-devkit use this devkit for compilers, tools and resources 1893 --with-sys-root alias for --with-sysroot for backwards compatability 1894 --with-sysroot use this directory as sysroot) 1895 --with-tools-dir alias for --with-toolchain-path for backwards 1896 compatibility 1897 --with-toolchain-path prepend these directories when searching for 1898 toolchain binaries (compilers etc) 1899 --with-extra-path prepend these directories to the default path 1900 --with-xcode-path explicit path to Xcode 4 (generally for building on 1901 10.9 and later) 1902 --with-conf-name use this as the name of the configuration [generated 1903 from important configuration options] 1904 --with-builddeps-conf use this configuration file for the builddeps 1905 --with-builddeps-server download and use build dependencies from this server 1906 url 1907 --with-builddeps-dir store downloaded build dependencies here 1908 [/localhome/builddeps] 1909 --with-builddeps-group chgrp the downloaded build dependencies to this 1910 group 1911 --with-cacerts-file specify alternative cacerts file 1912 --with-milestone Set milestone value for build [internal] 1913 --with-update-version Set update version value for build [b00] 1914 --with-user-release-suffix 1915 Add a custom string to the version string if build 1916 number isn't set.[username_builddateb00] 1917 --with-build-number Set build number value for build [b00] 1918 --with-vendor-name Set vendor name. Among others, used to set the 1919 'java.vendor' and 'java.vm.vendor' system 1920 properties. [not specified] 1921 --with-vendor-url Set the 'java.vendor.url' system property [not 1922 specified] 1923 --with-vendor-bug-url Set the 'java.vendor.url.bug' system property [not 1924 specified] 1925 --with-vendor-vm-bug-url 1926 Sets the bug URL which will be displayed when the VM 1927 crashes [not specified] 1928 --with-copyright-year Set copyright year value for build [current year] 1929 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1930 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all 1931 invocations of the Boot JDK, overriding the default 1932 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 1933 -enableassertions" 1934 --with-add-source-root for each and every source directory, look in this 1935 additional source root for the same directory; if it 1936 exists and have files in it, include it in the build 1937 --with-override-source-root 1938 for each and every source directory, look in this 1939 override source root for the same directory; if it 1940 exists, use that directory instead and ignore the 1941 directory in the original source root 1942 --with-adds-and-overrides 1943 use the subdirs 'adds' and 'overrides' in the 1944 specified directory as add-source-root and 1945 override-source-root 1946 --with-override-langtools 1947 use this langtools dir for the build 1948 --with-override-corba use this corba dir for the build 1949 --with-override-jaxp use this jaxp dir for the build 1950 --with-override-jaxws use this jaxws dir for the build 1951 --with-override-hotspot use this hotspot dir for the build 1952 --with-override-nashorn use this nashorn dir for the build 1953 --with-override-jdk use this jdk dir for the build 1954 --with-import-hotspot import hotspot binaries from this jdk image or 1955 hotspot build dist dir instead of building from 1956 source 1957 --with-toolchain-type the toolchain type (or family) to use, use '--help' 1958 to show possible values [platform dependent] 1959 --with-toolchain-version 1960 the version of the toolchain to look for, use 1961 '--help' to show possible values [platform 1962 dependent] 1963 --with-jtreg Regression Test Harness [probed] 1964 --with-extra-cflags extra flags to be used when compiling jdk c-files 1965 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 1966 --with-extra-ldflags extra flags to be used when linking jdk 1967 --with-extra-asflags extra flags to be passed to the assembler 1968 --with-native-debug-symbols 1969 set the native debug symbol configuration (none, 1970 internal, external, zipped) [varying] 1971 --with-x use the X Window System 1972 --with-cups specify prefix directory for the cups package 1973 (expecting the headers under PATH/include) 1974 --with-cups-include specify directory for the cups include files 1975 --with-freetype specify prefix directory for the freetype package 1976 (expecting the libraries under PATH/lib and the 1977 headers under PATH/include) 1978 --with-freetype-include specify directory for the freetype include files 1979 --with-freetype-lib specify directory for the freetype library 1980 --with-freetype-src specify directory with freetype sources to 1981 automatically build the library (experimental, 1982 Windows-only) 1983 --with-alsa specify prefix directory for the alsa package 1984 (expecting the libraries under PATH/lib and the 1985 headers under PATH/include) 1986 --with-alsa-include specify directory for the alsa include files 1987 --with-alsa-lib specify directory for the alsa library 1988 --with-fontconfig specify prefix directory for the fontconfig package 1989 (expecting the headers under PATH/include) 1990 --with-fontconfig-include 1991 specify directory for the fontconfig include files 1992 --with-giflib use giflib from build system or OpenJDK source 1993 (system, bundled) [bundled] 1994 --with-zlib use zlib from build system or OpenJDK source 1995 (system, bundled) [bundled] 1996 --with-stdc++lib=<static>,<dynamic>,<default> 1997 force linking of the C++ runtime on Linux to either 1998 static or dynamic, default is static with dynamic as 1999 fallback 2000 --with-msvcr-dll path to microsoft C runtime dll (msvcr*.dll) 2001 (Windows only) [probed] 2002 --with-msvcp-dll path to microsoft C++ runtime dll (msvcp*.dll) 2003 (Windows only) [probed] 2004 --with-ucrt-dll-dir path to Microsoft Windows Kit UCRT DLL dir (Windows 2005 only) [probed] 2006 --with-dxsdk Deprecated. Option is kept for backwards 2007 compatibility and is ignored 2008 --with-dxsdk-lib Deprecated. Option is kept for backwards 2009 compatibility and is ignored 2010 --with-dxsdk-include Deprecated. Option is kept for backwards 2011 compatibility and is ignored 2012 --with-num-cores number of cores in the build system, e.g. 2013 --with-num-cores=8 [probed] 2014 --with-memory-size memory (in MB) available in the build system, e.g. 2015 --with-memory-size=1024 [probed] 2016 --with-jobs number of parallel jobs to let make run [calculated 2017 based on cores and memory] 2018 --with-sjavac-server-java 2019 use this java binary for running the sjavac 2020 background server [Boot JDK java] 2021 --with-ccache-dir where to store ccache files [~/.ccache] 2022 2023 Some influential environment variables: 2024 BASENAME Override default value for BASENAME 2025 BASH Override default value for BASH 2026 CAT Override default value for CAT 2027 CHMOD Override default value for CHMOD 2028 CMP Override default value for CMP 2029 COMM Override default value for COMM 2030 CP Override default value for CP 2031 CUT Override default value for CUT 2032 DATE Override default value for DATE 2033 DIFF Override default value for DIFF 2034 DIRNAME Override default value for DIRNAME 2035 ECHO Override default value for ECHO 2036 EXPR Override default value for EXPR 2037 FILE Override default value for FILE 2038 FIND Override default value for FIND 2039 HEAD Override default value for HEAD 2040 LN Override default value for LN 2041 LS Override default value for LS 2042 MKDIR Override default value for MKDIR 2043 MKTEMP Override default value for MKTEMP 2044 MV Override default value for MV 2045 NAWK Override default value for NAWK 2046 PRINTF Override default value for PRINTF 2047 RM Override default value for RM 2048 SH Override default value for SH 2049 SORT Override default value for SORT 2050 TAIL Override default value for TAIL 2051 TAR Override default value for TAR 2052 TEE Override default value for TEE 2053 TOUCH Override default value for TOUCH 2054 TR Override default value for TR 2055 UNAME Override default value for UNAME 2056 UNIQ Override default value for UNIQ 2057 WC Override default value for WC 2058 WHICH Override default value for WHICH 2059 XARGS Override default value for XARGS 2060 AWK Override default value for AWK 2061 GREP Override default value for GREP 2062 EGREP Override default value for EGREP 2063 FGREP Override default value for FGREP 2064 SED Override default value for SED 2065 CYGPATH Override default value for CYGPATH 2066 READLINK Override default value for READLINK 2067 DF Override default value for DF 2068 SETFILE Override default value for SETFILE 2069 CPIO Override default value for CPIO 2070 UNZIP Override default value for UNZIP 2071 ZIP Override default value for ZIP 2072 LDD Override default value for LDD 2073 READELF Override default value for READELF 2074 HG Override default value for HG 2075 STAT Override default value for STAT 2076 TIME Override default value for TIME 2077 DSYMUTIL Override default value for DSYMUTIL 2078 XATTR Override default value for XATTR 2079 CODESIGN Override default value for CODESIGN 2080 PKG_CONFIG path to pkg-config utility 2081 CC C compiler command 2082 CFLAGS C compiler flags 2083 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2084 nonstandard directory <lib dir> 2085 LIBS libraries to pass to the linker, e.g. -l<library> 2086 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2087 you have headers in a nonstandard directory <include dir> 2088 CXX C++ compiler command 2089 CXXFLAGS C++ compiler flags 2090 CPP C preprocessor 2091 CXXCPP C++ preprocessor 2092 AS Override default value for AS 2093 AR Override default value for AR 2094 OBJC Objective C compiler command 2095 OBJCFLAGS Objective C compiler flags 2096 LIPO Override default value for LIPO 2097 STRIP Override default value for STRIP 2098 NM Override default value for NM 2099 GNM Override default value for GNM 2100 MCS Override default value for MCS 2101 OBJCOPY Override default value for OBJCOPY 2102 OBJDUMP Override default value for OBJDUMP 2103 BUILD_CC Override default value for BUILD_CC 2104 BUILD_CXX Override default value for BUILD_CXX 2105 BUILD_LD Override default value for BUILD_LD 2106 JTREGEXE Override default value for JTREGEXE 2107 XMKMF Path to xmkmf, Makefile generator for X Window System 2108 FREETYPE_CFLAGS 2109 C compiler flags for FREETYPE, overriding pkg-config 2110 FREETYPE_LIBS 2111 linker flags for FREETYPE, overriding pkg-config 2112 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2113 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2114 LIBFFI_CFLAGS 2115 C compiler flags for LIBFFI, overriding pkg-config 2116 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2117 CCACHE Override default value for CCACHE 2118 2119 Use these variables to override the choices made by `configure' or to help 2120 it to find libraries and programs with nonstandard names/locations. 2121 2122 Report bugs to <build-dev@openjdk.java.net>. 2123 OpenJDK home page: <http://openjdk.java.net>. 2124 _ACEOF 2125 ac_status=$? 2126 fi 2127 2128 if test "$ac_init_help" = "recursive"; then 2129 # If there are subdirs, report their specific --help. 2130 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2131 test -d "$ac_dir" || 2132 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2133 continue 2134 ac_builddir=. 2135 2136 case "$ac_dir" in 2137 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2138 *) 2139 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2140 # A ".." for each directory in $ac_dir_suffix. 2141 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2142 case $ac_top_builddir_sub in 2143 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2144 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2145 esac ;; 2146 esac 2147 ac_abs_top_builddir=$ac_pwd 2148 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2149 # for backward compatibility: 2150 ac_top_builddir=$ac_top_build_prefix 2151 2152 case $srcdir in 2153 .) # We are building in place. 2154 ac_srcdir=. 2155 ac_top_srcdir=$ac_top_builddir_sub 2156 ac_abs_top_srcdir=$ac_pwd ;; 2157 [\\/]* | ?:[\\/]* ) # Absolute name. 2158 ac_srcdir=$srcdir$ac_dir_suffix; 2159 ac_top_srcdir=$srcdir 2160 ac_abs_top_srcdir=$srcdir ;; 2161 *) # Relative name. 2162 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2163 ac_top_srcdir=$ac_top_build_prefix$srcdir 2164 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2165 esac 2166 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2167 2168 cd "$ac_dir" || { ac_status=$?; continue; } 2169 # Check for guested configure. 2170 if test -f "$ac_srcdir/configure.gnu"; then 2171 echo && 2172 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2173 elif test -f "$ac_srcdir/configure"; then 2174 echo && 2175 $SHELL "$ac_srcdir/configure" --help=recursive 2176 else 2177 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2178 fi || ac_status=$? 2179 cd "$ac_pwd" || { ac_status=$?; break; } 2180 done 2181 fi 2182 2183 test -n "$ac_init_help" && exit $ac_status 2184 if $ac_init_version; then 2185 cat <<\_ACEOF 2186 OpenJDK configure jdk8 2187 generated by GNU Autoconf 2.69 2188 2189 Copyright (C) 2012 Free Software Foundation, Inc. 2190 This configure script is free software; the Free Software Foundation 2191 gives unlimited permission to copy, distribute and modify it. 2192 _ACEOF 2193 exit 2194 fi 2195 2196 ## ------------------------ ## 2197 ## Autoconf initialization. ## 2198 ## ------------------------ ## 2199 2200 # ac_fn_c_try_compile LINENO 2201 # -------------------------- 2202 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2203 ac_fn_c_try_compile () 2204 { 2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2206 rm -f conftest.$ac_objext 2207 if { { ac_try="$ac_compile" 2208 case "(($ac_try" in 2209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2210 *) ac_try_echo=$ac_try;; 2211 esac 2212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2213 $as_echo "$ac_try_echo"; } >&5 2214 (eval "$ac_compile") 2>conftest.err 2215 ac_status=$? 2216 if test -s conftest.err; then 2217 grep -v '^ *+' conftest.err >conftest.er1 2218 cat conftest.er1 >&5 2219 mv -f conftest.er1 conftest.err 2220 fi 2221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2222 test $ac_status = 0; } && { 2223 test -z "$ac_c_werror_flag" || 2224 test ! -s conftest.err 2225 } && test -s conftest.$ac_objext; then : 2226 ac_retval=0 2227 else 2228 $as_echo "$as_me: failed program was:" >&5 2229 sed 's/^/| /' conftest.$ac_ext >&5 2230 2231 ac_retval=1 2232 fi 2233 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2234 as_fn_set_status $ac_retval 2235 2236 } # ac_fn_c_try_compile 2237 2238 # ac_fn_cxx_try_compile LINENO 2239 # ---------------------------- 2240 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2241 ac_fn_cxx_try_compile () 2242 { 2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2244 rm -f conftest.$ac_objext 2245 if { { ac_try="$ac_compile" 2246 case "(($ac_try" in 2247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2248 *) ac_try_echo=$ac_try;; 2249 esac 2250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2251 $as_echo "$ac_try_echo"; } >&5 2252 (eval "$ac_compile") 2>conftest.err 2253 ac_status=$? 2254 if test -s conftest.err; then 2255 grep -v '^ *+' conftest.err >conftest.er1 2256 cat conftest.er1 >&5 2257 mv -f conftest.er1 conftest.err 2258 fi 2259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2260 test $ac_status = 0; } && { 2261 test -z "$ac_cxx_werror_flag" || 2262 test ! -s conftest.err 2263 } && test -s conftest.$ac_objext; then : 2264 ac_retval=0 2265 else 2266 $as_echo "$as_me: failed program was:" >&5 2267 sed 's/^/| /' conftest.$ac_ext >&5 2268 2269 ac_retval=1 2270 fi 2271 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2272 as_fn_set_status $ac_retval 2273 2274 } # ac_fn_cxx_try_compile 2275 2276 # ac_fn_c_try_cpp LINENO 2277 # ---------------------- 2278 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2279 ac_fn_c_try_cpp () 2280 { 2281 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2282 if { { ac_try="$ac_cpp conftest.$ac_ext" 2283 case "(($ac_try" in 2284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2285 *) ac_try_echo=$ac_try;; 2286 esac 2287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2288 $as_echo "$ac_try_echo"; } >&5 2289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2290 ac_status=$? 2291 if test -s conftest.err; then 2292 grep -v '^ *+' conftest.err >conftest.er1 2293 cat conftest.er1 >&5 2294 mv -f conftest.er1 conftest.err 2295 fi 2296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2297 test $ac_status = 0; } > conftest.i && { 2298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2299 test ! -s conftest.err 2300 }; then : 2301 ac_retval=0 2302 else 2303 $as_echo "$as_me: failed program was:" >&5 2304 sed 's/^/| /' conftest.$ac_ext >&5 2305 2306 ac_retval=1 2307 fi 2308 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2309 as_fn_set_status $ac_retval 2310 2311 } # ac_fn_c_try_cpp 2312 2313 # ac_fn_cxx_try_cpp LINENO 2314 # ------------------------ 2315 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2316 ac_fn_cxx_try_cpp () 2317 { 2318 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2319 if { { ac_try="$ac_cpp conftest.$ac_ext" 2320 case "(($ac_try" in 2321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2322 *) ac_try_echo=$ac_try;; 2323 esac 2324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2325 $as_echo "$ac_try_echo"; } >&5 2326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2327 ac_status=$? 2328 if test -s conftest.err; then 2329 grep -v '^ *+' conftest.err >conftest.er1 2330 cat conftest.er1 >&5 2331 mv -f conftest.er1 conftest.err 2332 fi 2333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2334 test $ac_status = 0; } > conftest.i && { 2335 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2336 test ! -s conftest.err 2337 }; then : 2338 ac_retval=0 2339 else 2340 $as_echo "$as_me: failed program was:" >&5 2341 sed 's/^/| /' conftest.$ac_ext >&5 2342 2343 ac_retval=1 2344 fi 2345 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2346 as_fn_set_status $ac_retval 2347 2348 } # ac_fn_cxx_try_cpp 2349 2350 # ac_fn_objc_try_compile LINENO 2351 # ----------------------------- 2352 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2353 ac_fn_objc_try_compile () 2354 { 2355 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2356 rm -f conftest.$ac_objext 2357 if { { ac_try="$ac_compile" 2358 case "(($ac_try" in 2359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2360 *) ac_try_echo=$ac_try;; 2361 esac 2362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2363 $as_echo "$ac_try_echo"; } >&5 2364 (eval "$ac_compile") 2>conftest.err 2365 ac_status=$? 2366 if test -s conftest.err; then 2367 grep -v '^ *+' conftest.err >conftest.er1 2368 cat conftest.er1 >&5 2369 mv -f conftest.er1 conftest.err 2370 fi 2371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2372 test $ac_status = 0; } && { 2373 test -z "$ac_objc_werror_flag" || 2374 test ! -s conftest.err 2375 } && test -s conftest.$ac_objext; then : 2376 ac_retval=0 2377 else 2378 $as_echo "$as_me: failed program was:" >&5 2379 sed 's/^/| /' conftest.$ac_ext >&5 2380 2381 ac_retval=1 2382 fi 2383 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2384 as_fn_set_status $ac_retval 2385 2386 } # ac_fn_objc_try_compile 2387 2388 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2389 # --------------------------------------------------------- 2390 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2391 # the include files in INCLUDES and setting the cache variable VAR 2392 # accordingly. 2393 ac_fn_cxx_check_header_mongrel () 2394 { 2395 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2396 if eval \${$3+:} false; then : 2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2398 $as_echo_n "checking for $2... " >&6; } 2399 if eval \${$3+:} false; then : 2400 $as_echo_n "(cached) " >&6 2401 fi 2402 eval ac_res=\$$3 2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2404 $as_echo "$ac_res" >&6; } 2405 else 2406 # Is the header compilable? 2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2408 $as_echo_n "checking $2 usability... " >&6; } 2409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2410 /* end confdefs.h. */ 2411 $4 2412 #include <$2> 2413 _ACEOF 2414 if ac_fn_cxx_try_compile "$LINENO"; then : 2415 ac_header_compiler=yes 2416 else 2417 ac_header_compiler=no 2418 fi 2419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2421 $as_echo "$ac_header_compiler" >&6; } 2422 2423 # Is the header present? 2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2425 $as_echo_n "checking $2 presence... " >&6; } 2426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2427 /* end confdefs.h. */ 2428 #include <$2> 2429 _ACEOF 2430 if ac_fn_cxx_try_cpp "$LINENO"; then : 2431 ac_header_preproc=yes 2432 else 2433 ac_header_preproc=no 2434 fi 2435 rm -f conftest.err conftest.i conftest.$ac_ext 2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2437 $as_echo "$ac_header_preproc" >&6; } 2438 2439 # So? What about this header? 2440 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2441 yes:no: ) 2442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2443 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2445 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2446 ;; 2447 no:yes:* ) 2448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2449 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2451 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2453 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2455 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2457 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2458 ( $as_echo "## ----------------------------------------- ## 2459 ## Report this to build-dev@openjdk.java.net ## 2460 ## ----------------------------------------- ##" 2461 ) | sed "s/^/$as_me: WARNING: /" >&2 2462 ;; 2463 esac 2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2465 $as_echo_n "checking for $2... " >&6; } 2466 if eval \${$3+:} false; then : 2467 $as_echo_n "(cached) " >&6 2468 else 2469 eval "$3=\$ac_header_compiler" 2470 fi 2471 eval ac_res=\$$3 2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2473 $as_echo "$ac_res" >&6; } 2474 fi 2475 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2476 2477 } # ac_fn_cxx_check_header_mongrel 2478 2479 # ac_fn_cxx_try_run LINENO 2480 # ------------------------ 2481 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2482 # that executables *can* be run. 2483 ac_fn_cxx_try_run () 2484 { 2485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2486 if { { ac_try="$ac_link" 2487 case "(($ac_try" in 2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2489 *) ac_try_echo=$ac_try;; 2490 esac 2491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2492 $as_echo "$ac_try_echo"; } >&5 2493 (eval "$ac_link") 2>&5 2494 ac_status=$? 2495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2496 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2497 { { case "(($ac_try" in 2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2499 *) ac_try_echo=$ac_try;; 2500 esac 2501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2502 $as_echo "$ac_try_echo"; } >&5 2503 (eval "$ac_try") 2>&5 2504 ac_status=$? 2505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2506 test $ac_status = 0; }; }; then : 2507 ac_retval=0 2508 else 2509 $as_echo "$as_me: program exited with status $ac_status" >&5 2510 $as_echo "$as_me: failed program was:" >&5 2511 sed 's/^/| /' conftest.$ac_ext >&5 2512 2513 ac_retval=$ac_status 2514 fi 2515 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2516 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2517 as_fn_set_status $ac_retval 2518 2519 } # ac_fn_cxx_try_run 2520 2521 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2522 # --------------------------------------------------------- 2523 # Tests whether HEADER exists and can be compiled using the include files in 2524 # INCLUDES, setting the cache variable VAR accordingly. 2525 ac_fn_cxx_check_header_compile () 2526 { 2527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2529 $as_echo_n "checking for $2... " >&6; } 2530 if eval \${$3+:} false; then : 2531 $as_echo_n "(cached) " >&6 2532 else 2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2534 /* end confdefs.h. */ 2535 $4 2536 #include <$2> 2537 _ACEOF 2538 if ac_fn_cxx_try_compile "$LINENO"; then : 2539 eval "$3=yes" 2540 else 2541 eval "$3=no" 2542 fi 2543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2544 fi 2545 eval ac_res=\$$3 2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2547 $as_echo "$ac_res" >&6; } 2548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2549 2550 } # ac_fn_cxx_check_header_compile 2551 2552 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2553 # ---------------------------------------------- 2554 # Tries to find the compile-time value of EXPR in a program that includes 2555 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2556 # computed 2557 ac_fn_cxx_compute_int () 2558 { 2559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2560 if test "$cross_compiling" = yes; then 2561 # Depending upon the size, compute the lo and hi bounds. 2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2563 /* end confdefs.h. */ 2564 $4 2565 int 2566 main () 2567 { 2568 static int test_array [1 - 2 * !(($2) >= 0)]; 2569 test_array [0] = 0; 2570 return test_array [0]; 2571 2572 ; 2573 return 0; 2574 } 2575 _ACEOF 2576 if ac_fn_cxx_try_compile "$LINENO"; then : 2577 ac_lo=0 ac_mid=0 2578 while :; do 2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2580 /* end confdefs.h. */ 2581 $4 2582 int 2583 main () 2584 { 2585 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2586 test_array [0] = 0; 2587 return test_array [0]; 2588 2589 ; 2590 return 0; 2591 } 2592 _ACEOF 2593 if ac_fn_cxx_try_compile "$LINENO"; then : 2594 ac_hi=$ac_mid; break 2595 else 2596 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2597 if test $ac_lo -le $ac_mid; then 2598 ac_lo= ac_hi= 2599 break 2600 fi 2601 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2602 fi 2603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2604 done 2605 else 2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2607 /* end confdefs.h. */ 2608 $4 2609 int 2610 main () 2611 { 2612 static int test_array [1 - 2 * !(($2) < 0)]; 2613 test_array [0] = 0; 2614 return test_array [0]; 2615 2616 ; 2617 return 0; 2618 } 2619 _ACEOF 2620 if ac_fn_cxx_try_compile "$LINENO"; then : 2621 ac_hi=-1 ac_mid=-1 2622 while :; do 2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2624 /* end confdefs.h. */ 2625 $4 2626 int 2627 main () 2628 { 2629 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2630 test_array [0] = 0; 2631 return test_array [0]; 2632 2633 ; 2634 return 0; 2635 } 2636 _ACEOF 2637 if ac_fn_cxx_try_compile "$LINENO"; then : 2638 ac_lo=$ac_mid; break 2639 else 2640 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2641 if test $ac_mid -le $ac_hi; then 2642 ac_lo= ac_hi= 2643 break 2644 fi 2645 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2646 fi 2647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2648 done 2649 else 2650 ac_lo= ac_hi= 2651 fi 2652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2653 fi 2654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2655 # Binary search between lo and hi bounds. 2656 while test "x$ac_lo" != "x$ac_hi"; do 2657 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2659 /* end confdefs.h. */ 2660 $4 2661 int 2662 main () 2663 { 2664 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2665 test_array [0] = 0; 2666 return test_array [0]; 2667 2668 ; 2669 return 0; 2670 } 2671 _ACEOF 2672 if ac_fn_cxx_try_compile "$LINENO"; then : 2673 ac_hi=$ac_mid 2674 else 2675 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2676 fi 2677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2678 done 2679 case $ac_lo in #(( 2680 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2681 '') ac_retval=1 ;; 2682 esac 2683 else 2684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2685 /* end confdefs.h. */ 2686 $4 2687 static long int longval () { return $2; } 2688 static unsigned long int ulongval () { return $2; } 2689 #include <stdio.h> 2690 #include <stdlib.h> 2691 int 2692 main () 2693 { 2694 2695 FILE *f = fopen ("conftest.val", "w"); 2696 if (! f) 2697 return 1; 2698 if (($2) < 0) 2699 { 2700 long int i = longval (); 2701 if (i != ($2)) 2702 return 1; 2703 fprintf (f, "%ld", i); 2704 } 2705 else 2706 { 2707 unsigned long int i = ulongval (); 2708 if (i != ($2)) 2709 return 1; 2710 fprintf (f, "%lu", i); 2711 } 2712 /* Do not output a trailing newline, as this causes \r\n confusion 2713 on some platforms. */ 2714 return ferror (f) || fclose (f) != 0; 2715 2716 ; 2717 return 0; 2718 } 2719 _ACEOF 2720 if ac_fn_cxx_try_run "$LINENO"; then : 2721 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2722 else 2723 ac_retval=1 2724 fi 2725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2726 conftest.$ac_objext conftest.beam conftest.$ac_ext 2727 rm -f conftest.val 2728 2729 fi 2730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2731 as_fn_set_status $ac_retval 2732 2733 } # ac_fn_cxx_compute_int 2734 2735 # ac_fn_cxx_try_link LINENO 2736 # ------------------------- 2737 # Try to link conftest.$ac_ext, and return whether this succeeded. 2738 ac_fn_cxx_try_link () 2739 { 2740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2741 rm -f conftest.$ac_objext conftest$ac_exeext 2742 if { { ac_try="$ac_link" 2743 case "(($ac_try" in 2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2745 *) ac_try_echo=$ac_try;; 2746 esac 2747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2748 $as_echo "$ac_try_echo"; } >&5 2749 (eval "$ac_link") 2>conftest.err 2750 ac_status=$? 2751 if test -s conftest.err; then 2752 grep -v '^ *+' conftest.err >conftest.er1 2753 cat conftest.er1 >&5 2754 mv -f conftest.er1 conftest.err 2755 fi 2756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2757 test $ac_status = 0; } && { 2758 test -z "$ac_cxx_werror_flag" || 2759 test ! -s conftest.err 2760 } && test -s conftest$ac_exeext && { 2761 test "$cross_compiling" = yes || 2762 test -x conftest$ac_exeext 2763 }; then : 2764 ac_retval=0 2765 else 2766 $as_echo "$as_me: failed program was:" >&5 2767 sed 's/^/| /' conftest.$ac_ext >&5 2768 2769 ac_retval=1 2770 fi 2771 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2772 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2773 # interfere with the next link command; also delete a directory that is 2774 # left behind by Apple's compiler. We do this before executing the actions. 2775 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2777 as_fn_set_status $ac_retval 2778 2779 } # ac_fn_cxx_try_link 2780 2781 # ac_fn_cxx_check_func LINENO FUNC VAR 2782 # ------------------------------------ 2783 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2784 ac_fn_cxx_check_func () 2785 { 2786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2788 $as_echo_n "checking for $2... " >&6; } 2789 if eval \${$3+:} false; then : 2790 $as_echo_n "(cached) " >&6 2791 else 2792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2793 /* end confdefs.h. */ 2794 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2795 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2796 #define $2 innocuous_$2 2797 2798 /* System header to define __stub macros and hopefully few prototypes, 2799 which can conflict with char $2 (); below. 2800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2801 <limits.h> exists even on freestanding compilers. */ 2802 2803 #ifdef __STDC__ 2804 # include <limits.h> 2805 #else 2806 # include <assert.h> 2807 #endif 2808 2809 #undef $2 2810 2811 /* Override any GCC internal prototype to avoid an error. 2812 Use char because int might match the return type of a GCC 2813 builtin and then its argument prototype would still apply. */ 2814 #ifdef __cplusplus 2815 extern "C" 2816 #endif 2817 char $2 (); 2818 /* The GNU C library defines this for functions which it implements 2819 to always fail with ENOSYS. Some functions are actually named 2820 something starting with __ and the normal name is an alias. */ 2821 #if defined __stub_$2 || defined __stub___$2 2822 choke me 2823 #endif 2824 2825 int 2826 main () 2827 { 2828 return $2 (); 2829 ; 2830 return 0; 2831 } 2832 _ACEOF 2833 if ac_fn_cxx_try_link "$LINENO"; then : 2834 eval "$3=yes" 2835 else 2836 eval "$3=no" 2837 fi 2838 rm -f core conftest.err conftest.$ac_objext \ 2839 conftest$ac_exeext conftest.$ac_ext 2840 fi 2841 eval ac_res=\$$3 2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2843 $as_echo "$ac_res" >&6; } 2844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2845 2846 } # ac_fn_cxx_check_func 2847 2848 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2849 # ------------------------------------------------------- 2850 # Tests whether HEADER exists and can be compiled using the include files in 2851 # INCLUDES, setting the cache variable VAR accordingly. 2852 ac_fn_c_check_header_compile () 2853 { 2854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2856 $as_echo_n "checking for $2... " >&6; } 2857 if eval \${$3+:} false; then : 2858 $as_echo_n "(cached) " >&6 2859 else 2860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2861 /* end confdefs.h. */ 2862 $4 2863 #include <$2> 2864 _ACEOF 2865 if ac_fn_c_try_compile "$LINENO"; then : 2866 eval "$3=yes" 2867 else 2868 eval "$3=no" 2869 fi 2870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2871 fi 2872 eval ac_res=\$$3 2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2874 $as_echo "$ac_res" >&6; } 2875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2876 2877 } # ac_fn_c_check_header_compile 2878 cat >config.log <<_ACEOF 2879 This file contains any messages produced by compilers while 2880 running configure, to aid debugging if configure makes a mistake. 2881 2882 It was created by OpenJDK $as_me jdk8, which was 2883 generated by GNU Autoconf 2.69. Invocation command line was 2884 2885 $ $0 $@ 2886 2887 _ACEOF 2888 exec 5>>config.log 2889 { 2890 cat <<_ASUNAME 2891 ## --------- ## 2892 ## Platform. ## 2893 ## --------- ## 2894 2895 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2896 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2897 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2898 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2899 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2900 2901 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2902 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2903 2904 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2905 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2906 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2907 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2908 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2909 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2910 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2911 2912 _ASUNAME 2913 2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2915 for as_dir in $PATH 2916 do 2917 IFS=$as_save_IFS 2918 test -z "$as_dir" && as_dir=. 2919 $as_echo "PATH: $as_dir" 2920 done 2921 IFS=$as_save_IFS 2922 2923 } >&5 2924 2925 cat >&5 <<_ACEOF 2926 2927 2928 ## ----------- ## 2929 ## Core tests. ## 2930 ## ----------- ## 2931 2932 _ACEOF 2933 2934 2935 # Keep a trace of the command line. 2936 # Strip out --no-create and --no-recursion so they do not pile up. 2937 # Strip out --silent because we don't want to record it for future runs. 2938 # Also quote any args containing shell meta-characters. 2939 # Make two passes to allow for proper duplicate-argument suppression. 2940 ac_configure_args= 2941 ac_configure_args0= 2942 ac_configure_args1= 2943 ac_must_keep_next=false 2944 for ac_pass in 1 2 2945 do 2946 for ac_arg 2947 do 2948 case $ac_arg in 2949 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2951 | -silent | --silent | --silen | --sile | --sil) 2952 continue ;; 2953 *\'*) 2954 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2955 esac 2956 case $ac_pass in 2957 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2958 2) 2959 as_fn_append ac_configure_args1 " '$ac_arg'" 2960 if test $ac_must_keep_next = true; then 2961 ac_must_keep_next=false # Got value, back to normal. 2962 else 2963 case $ac_arg in 2964 *=* | --config-cache | -C | -disable-* | --disable-* \ 2965 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2966 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2967 | -with-* | --with-* | -without-* | --without-* | --x) 2968 case "$ac_configure_args0 " in 2969 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2970 esac 2971 ;; 2972 -* ) ac_must_keep_next=true ;; 2973 esac 2974 fi 2975 as_fn_append ac_configure_args " '$ac_arg'" 2976 ;; 2977 esac 2978 done 2979 done 2980 { ac_configure_args0=; unset ac_configure_args0;} 2981 { ac_configure_args1=; unset ac_configure_args1;} 2982 2983 # When interrupted or exit'd, cleanup temporary files, and complete 2984 # config.log. We remove comments because anyway the quotes in there 2985 # would cause problems or look ugly. 2986 # WARNING: Use '\'' to represent an apostrophe within the trap. 2987 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2988 trap 'exit_status=$? 2989 # Save into config.log some information that might help in debugging. 2990 { 2991 echo 2992 2993 $as_echo "## ---------------- ## 2994 ## Cache variables. ## 2995 ## ---------------- ##" 2996 echo 2997 # The following way of writing the cache mishandles newlines in values, 2998 ( 2999 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3000 eval ac_val=\$$ac_var 3001 case $ac_val in #( 3002 *${as_nl}*) 3003 case $ac_var in #( 3004 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3005 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3006 esac 3007 case $ac_var in #( 3008 _ | IFS | as_nl) ;; #( 3009 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3010 *) { eval $ac_var=; unset $ac_var;} ;; 3011 esac ;; 3012 esac 3013 done 3014 (set) 2>&1 | 3015 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3016 *${as_nl}ac_space=\ *) 3017 sed -n \ 3018 "s/'\''/'\''\\\\'\'''\''/g; 3019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3020 ;; #( 3021 *) 3022 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3023 ;; 3024 esac | 3025 sort 3026 ) 3027 echo 3028 3029 $as_echo "## ----------------- ## 3030 ## Output variables. ## 3031 ## ----------------- ##" 3032 echo 3033 for ac_var in $ac_subst_vars 3034 do 3035 eval ac_val=\$$ac_var 3036 case $ac_val in 3037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3038 esac 3039 $as_echo "$ac_var='\''$ac_val'\''" 3040 done | sort 3041 echo 3042 3043 if test -n "$ac_subst_files"; then 3044 $as_echo "## ------------------- ## 3045 ## File substitutions. ## 3046 ## ------------------- ##" 3047 echo 3048 for ac_var in $ac_subst_files 3049 do 3050 eval ac_val=\$$ac_var 3051 case $ac_val in 3052 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3053 esac 3054 $as_echo "$ac_var='\''$ac_val'\''" 3055 done | sort 3056 echo 3057 fi 3058 3059 if test -s confdefs.h; then 3060 $as_echo "## ----------- ## 3061 ## confdefs.h. ## 3062 ## ----------- ##" 3063 echo 3064 cat confdefs.h 3065 echo 3066 fi 3067 test "$ac_signal" != 0 && 3068 $as_echo "$as_me: caught signal $ac_signal" 3069 $as_echo "$as_me: exit $exit_status" 3070 } >&5 3071 rm -f core *.core core.conftest.* && 3072 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3073 exit $exit_status 3074 ' 0 3075 for ac_signal in 1 2 13 15; do 3076 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3077 done 3078 ac_signal=0 3079 3080 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3081 rm -f -r conftest* confdefs.h 3082 3083 $as_echo "/* confdefs.h */" > confdefs.h 3084 3085 # Predefined preprocessor variables. 3086 3087 cat >>confdefs.h <<_ACEOF 3088 #define PACKAGE_NAME "$PACKAGE_NAME" 3089 _ACEOF 3090 3091 cat >>confdefs.h <<_ACEOF 3092 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3093 _ACEOF 3094 3095 cat >>confdefs.h <<_ACEOF 3096 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3097 _ACEOF 3098 3099 cat >>confdefs.h <<_ACEOF 3100 #define PACKAGE_STRING "$PACKAGE_STRING" 3101 _ACEOF 3102 3103 cat >>confdefs.h <<_ACEOF 3104 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3105 _ACEOF 3106 3107 cat >>confdefs.h <<_ACEOF 3108 #define PACKAGE_URL "$PACKAGE_URL" 3109 _ACEOF 3110 3111 3112 # Let the site file select an alternate cache file if it wants to. 3113 # Prefer an explicitly selected file to automatically selected ones. 3114 ac_site_file1=NONE 3115 ac_site_file2=NONE 3116 if test -n "$CONFIG_SITE"; then 3117 # We do not want a PATH search for config.site. 3118 case $CONFIG_SITE in #(( 3119 -*) ac_site_file1=./$CONFIG_SITE;; 3120 */*) ac_site_file1=$CONFIG_SITE;; 3121 *) ac_site_file1=./$CONFIG_SITE;; 3122 esac 3123 elif test "x$prefix" != xNONE; then 3124 ac_site_file1=$prefix/share/config.site 3125 ac_site_file2=$prefix/etc/config.site 3126 else 3127 ac_site_file1=$ac_default_prefix/share/config.site 3128 ac_site_file2=$ac_default_prefix/etc/config.site 3129 fi 3130 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3131 do 3132 test "x$ac_site_file" = xNONE && continue 3133 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3134 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3135 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3136 sed 's/^/| /' "$ac_site_file" >&5 3137 . "$ac_site_file" \ 3138 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3140 as_fn_error $? "failed to load site script $ac_site_file 3141 See \`config.log' for more details" "$LINENO" 5; } 3142 fi 3143 done 3144 3145 if test -r "$cache_file"; then 3146 # Some versions of bash will fail to source /dev/null (special files 3147 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3148 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3149 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3150 $as_echo "$as_me: loading cache $cache_file" >&6;} 3151 case $cache_file in 3152 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3153 *) . "./$cache_file";; 3154 esac 3155 fi 3156 else 3157 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3158 $as_echo "$as_me: creating cache $cache_file" >&6;} 3159 >$cache_file 3160 fi 3161 3162 # Check that the precious variables saved in the cache have kept the same 3163 # value. 3164 ac_cache_corrupted=false 3165 for ac_var in $ac_precious_vars; do 3166 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3167 eval ac_new_set=\$ac_env_${ac_var}_set 3168 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3169 eval ac_new_val=\$ac_env_${ac_var}_value 3170 case $ac_old_set,$ac_new_set in 3171 set,) 3172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3173 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3174 ac_cache_corrupted=: ;; 3175 ,set) 3176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3177 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3178 ac_cache_corrupted=: ;; 3179 ,);; 3180 *) 3181 if test "x$ac_old_val" != "x$ac_new_val"; then 3182 # differences in whitespace do not lead to failure. 3183 ac_old_val_w=`echo x $ac_old_val` 3184 ac_new_val_w=`echo x $ac_new_val` 3185 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3187 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3188 ac_cache_corrupted=: 3189 else 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3191 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3192 eval $ac_var=\$ac_old_val 3193 fi 3194 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3195 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3196 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3197 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3198 fi;; 3199 esac 3200 # Pass precious variables to config.status. 3201 if test "$ac_new_set" = set; then 3202 case $ac_new_val in 3203 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3204 *) ac_arg=$ac_var=$ac_new_val ;; 3205 esac 3206 case " $ac_configure_args " in 3207 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3208 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3209 esac 3210 fi 3211 done 3212 if $ac_cache_corrupted; then 3213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3216 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3217 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3218 fi 3219 ## -------------------- ## 3220 ## Main body of script. ## 3221 ## -------------------- ## 3222 3223 ac_ext=c 3224 ac_cpp='$CPP $CPPFLAGS' 3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3228 3229 3230 3231 ac_aux_dir= 3232 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3233 if test -f "$ac_dir/install-sh"; then 3234 ac_aux_dir=$ac_dir 3235 ac_install_sh="$ac_aux_dir/install-sh -c" 3236 break 3237 elif test -f "$ac_dir/install.sh"; then 3238 ac_aux_dir=$ac_dir 3239 ac_install_sh="$ac_aux_dir/install.sh -c" 3240 break 3241 elif test -f "$ac_dir/shtool"; then 3242 ac_aux_dir=$ac_dir 3243 ac_install_sh="$ac_aux_dir/shtool install -c" 3244 break 3245 fi 3246 done 3247 if test -z "$ac_aux_dir"; then 3248 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $TOPDIR/common/autoconf/build-aux \"$srcdir\"/$TOPDIR/common/autoconf/build-aux" "$LINENO" 5 3249 fi 3250 3251 # These three variables are undocumented and unsupported, 3252 # and are intended to be withdrawn in a future Autoconf release. 3253 # They can cause serious problems if a builder's source tree is in a directory 3254 # whose full name contains unusual characters. 3255 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3256 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3257 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3258 3259 3260 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3261 3262 # 3263 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3264 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3265 # 3266 # This code is free software; you can redistribute it and/or modify it 3267 # under the terms of the GNU General Public License version 2 only, as 3268 # published by the Free Software Foundation. Oracle designates this 3269 # particular file as subject to the "Classpath" exception as provided 3270 # by Oracle in the LICENSE file that accompanied this code. 3271 # 3272 # This code is distributed in the hope that it will be useful, but WITHOUT 3273 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3274 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3275 # version 2 for more details (a copy is included in the LICENSE file that 3276 # accompanied this code). 3277 # 3278 # You should have received a copy of the GNU General Public License version 3279 # 2 along with this work; if not, write to the Free Software Foundation, 3280 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3281 # 3282 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3283 # or visit www.oracle.com if you need additional information or have any 3284 # questions. 3285 # 3286 3287 # 3288 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3289 # 3290 # This program is free software; you can redistribute it and/or modify 3291 # it under the terms of the GNU General Public License as published by 3292 # the Free Software Foundation; either version 2 of the License, or 3293 # (at your option) any later version. 3294 # 3295 # This program is distributed in the hope that it will be useful, but 3296 # WITHOUT ANY WARRANTY; without even the implied warranty of 3297 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3298 # General Public License for more details. 3299 # 3300 # You should have received a copy of the GNU General Public License 3301 # along with this program; if not, write to the Free Software 3302 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3303 # 3304 # As a special exception to the GNU General Public License, if you 3305 # distribute this file as part of a program that contains a 3306 # configuration script generated by Autoconf, you may include it under 3307 # the same distribution terms that you use for the rest of that program. 3308 3309 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3310 # ---------------------------------- 3311 # PKG_PROG_PKG_CONFIG 3312 3313 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3314 # 3315 # Check to see whether a particular set of modules exists. Similar 3316 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3317 # 3318 # 3319 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3320 # this or PKG_CHECK_MODULES is called, or make sure to call 3321 # PKG_CHECK_EXISTS manually 3322 # -------------------------------------------------------------- 3323 3324 3325 3326 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3327 # --------------------------------------------- 3328 # _PKG_CONFIG 3329 3330 # _PKG_SHORT_ERRORS_SUPPORTED 3331 # ----------------------------- 3332 # _PKG_SHORT_ERRORS_SUPPORTED 3333 3334 3335 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3336 # [ACTION-IF-NOT-FOUND]) 3337 # 3338 # 3339 # Note that if there is a possibility the first call to 3340 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3341 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3342 # 3343 # 3344 # -------------------------------------------------------------- 3345 # PKG_CHECK_MODULES 3346 3347 3348 # Include these first... 3349 # 3350 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3351 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3352 # 3353 # This code is free software; you can redistribute it and/or modify it 3354 # under the terms of the GNU General Public License version 2 only, as 3355 # published by the Free Software Foundation. Oracle designates this 3356 # particular file as subject to the "Classpath" exception as provided 3357 # by Oracle in the LICENSE file that accompanied this code. 3358 # 3359 # This code is distributed in the hope that it will be useful, but WITHOUT 3360 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3361 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3362 # version 2 for more details (a copy is included in the LICENSE file that 3363 # accompanied this code). 3364 # 3365 # You should have received a copy of the GNU General Public License version 3366 # 2 along with this work; if not, write to the Free Software Foundation, 3367 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3368 # 3369 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3370 # or visit www.oracle.com if you need additional information or have any 3371 # questions. 3372 # 3373 3374 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3375 # If so, then append $1 to $2 \ 3376 # Also set JVM_ARG_OK to true/false depending on outcome. 3377 3378 3379 # Appends a string to a path variable, only adding the : when needed. 3380 3381 3382 # Prepends a string to a path variable, only adding the : when needed. 3383 3384 3385 # This will make sure the given variable points to a full and proper 3386 # path. This means: 3387 # 1) There will be no spaces in the path. On posix platforms, 3388 # spaces in the path will result in an error. On Windows, 3389 # the path will be rewritten using short-style to be space-free. 3390 # 2) The path will be absolute, and it will be in unix-style (on 3391 # cygwin). 3392 # $1: The name of the variable to fix 3393 3394 3395 # This will make sure the given variable points to a executable 3396 # with a full and proper path. This means: 3397 # 1) There will be no spaces in the path. On posix platforms, 3398 # spaces in the path will result in an error. On Windows, 3399 # the path will be rewritten using short-style to be space-free. 3400 # 2) The path will be absolute, and it will be in unix-style (on 3401 # cygwin). 3402 # Any arguments given to the executable is preserved. 3403 # If the input variable does not have a directory specification, then 3404 # it need to be in the PATH. 3405 # $1: The name of the variable to fix 3406 3407 3408 3409 3410 # Register a --with argument but mark it as deprecated 3411 # $1: The name of the with argument to deprecate, not including --with- 3412 3413 3414 # Register a --enable argument but mark it as deprecated 3415 # $1: The name of the with argument to deprecate, not including --enable- 3416 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3417 3418 3419 3420 3421 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3422 # $1: variable to check 3423 3424 3425 # Check that there are no unprocessed overridden variables left. 3426 # If so, they are an incorrect argument and we will exit with an error. 3427 3428 3429 # Setup a tool for the given variable. If correctly specified by the user, 3430 # use that value, otherwise search for the tool using the supplied code snippet. 3431 # $1: variable to set 3432 # $2: code snippet to call to look for the tool 3433 3434 3435 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3436 # $1: variable to set 3437 # $2: executable name (or list of names) to look for 3438 3439 3440 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3441 # $1: variable to set 3442 # $2: executable name (or list of names) to look for 3443 3444 3445 # Like BASIC_PATH_PROGS but fails if no tool was found. 3446 # $1: variable to set 3447 # $2: executable name (or list of names) to look for 3448 3449 3450 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3451 # $1: variable to set 3452 # $2: autoconf macro to call to look for the special tool 3453 3454 3455 # Setup the most fundamental tools that relies on not much else to set up, 3456 # but is used by much of the early bootstrap code. 3457 3458 3459 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3460 3461 3462 # Evaluates platform specific overrides for devkit variables. 3463 # $1: Name of variable 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 #%%% Simple tools %%% 3474 3475 # Check if we have found a usable version of make 3476 # $1: the path to a potential make binary (or empty) 3477 # $2: the description on how we found this 3478 3479 3480 # Goes looking for a usable version of GNU make. 3481 3482 3483 3484 3485 3486 3487 # Check if build directory is on local disk. If not possible to determine, 3488 # we prefer to claim it's local. 3489 # Argument 1: directory to test 3490 # Argument 2: what to do if it is on local disk 3491 # Argument 3: what to do otherwise (remote disk or failure) 3492 3493 3494 # Check that source files have basic read permissions set. This might 3495 # not be the case in cygwin in certain conditions. 3496 3497 3498 3499 3500 # Code to run after AC_OUTPUT 3501 3502 3503 # 3504 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3505 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3506 # 3507 # This code is free software; you can redistribute it and/or modify it 3508 # under the terms of the GNU General Public License version 2 only, as 3509 # published by the Free Software Foundation. Oracle designates this 3510 # particular file as subject to the "Classpath" exception as provided 3511 # by Oracle in the LICENSE file that accompanied this code. 3512 # 3513 # This code is distributed in the hope that it will be useful, but WITHOUT 3514 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3515 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3516 # version 2 for more details (a copy is included in the LICENSE file that 3517 # accompanied this code). 3518 # 3519 # You should have received a copy of the GNU General Public License version 3520 # 2 along with this work; if not, write to the Free Software Foundation, 3521 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3522 # 3523 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3524 # or visit www.oracle.com if you need additional information or have any 3525 # questions. 3526 # 3527 3528 3529 3530 3531 3532 # Helper function which possibly converts a path using DOS-style short mode. 3533 # If so, the updated path is stored in $new_path. 3534 # $1: The path to check 3535 3536 3537 # Helper function which possibly converts a path using DOS-style short mode. 3538 # If so, the updated path is stored in $new_path. 3539 # $1: The path to check 3540 3541 3542 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3543 # and could probably be heavily simplified. However, all changes in this 3544 # area tend to need lot of testing in different scenarios, and in lack of 3545 # proper unit testing, cleaning this up has not been deemed worth the effort 3546 # at the moment. 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3557 3558 3559 3560 3561 # 3562 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3563 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3564 # 3565 # This code is free software; you can redistribute it and/or modify it 3566 # under the terms of the GNU General Public License version 2 only, as 3567 # published by the Free Software Foundation. Oracle designates this 3568 # particular file as subject to the "Classpath" exception as provided 3569 # by Oracle in the LICENSE file that accompanied this code. 3570 # 3571 # This code is distributed in the hope that it will be useful, but WITHOUT 3572 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3573 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3574 # version 2 for more details (a copy is included in the LICENSE file that 3575 # accompanied this code). 3576 # 3577 # You should have received a copy of the GNU General Public License version 3578 # 2 along with this work; if not, write to the Free Software Foundation, 3579 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3580 # 3581 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3582 # or visit www.oracle.com if you need additional information or have any 3583 # questions. 3584 # 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 # ... then the rest 3597 # 3598 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3599 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3600 # 3601 # This code is free software; you can redistribute it and/or modify it 3602 # under the terms of the GNU General Public License version 2 only, as 3603 # published by the Free Software Foundation. Oracle designates this 3604 # particular file as subject to the "Classpath" exception as provided 3605 # by Oracle in the LICENSE file that accompanied this code. 3606 # 3607 # This code is distributed in the hope that it will be useful, but WITHOUT 3608 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3609 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3610 # version 2 for more details (a copy is included in the LICENSE file that 3611 # accompanied this code). 3612 # 3613 # You should have received a copy of the GNU General Public License version 3614 # 2 along with this work; if not, write to the Free Software Foundation, 3615 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3616 # 3617 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3618 # or visit www.oracle.com if you need additional information or have any 3619 # questions. 3620 # 3621 3622 # Execute the check given as argument, and verify the result 3623 # If the Boot JDK was previously found, do nothing 3624 # $1 A command line (typically autoconf macro) to execute 3625 3626 3627 # Test: Is bootjdk explicitely set by command line arguments? 3628 3629 3630 # Test: Is bootjdk available from builddeps? 3631 3632 3633 # Test: Is $JAVA_HOME set? 3634 3635 3636 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3637 3638 3639 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3640 3641 3642 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3643 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3644 # $1 = Path to directory containing jdk installations. 3645 # $2 = String to append to the found JDK directory to get the proper JDK home 3646 3647 3648 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3649 # environmental variable as base for where to look. 3650 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3651 3652 3653 # Test: Is there a JDK installed in default, well-known locations? 3654 3655 3656 # Check that a command-line tool in the Boot JDK is correct 3657 # $1 = name of variable to assign 3658 # $2 = name of binary 3659 3660 3661 ############################################################################### 3662 # 3663 # We need a Boot JDK to bootstrap the build. 3664 # 3665 3666 3667 3668 3669 3670 # 3671 # Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved. 3672 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3673 # 3674 # This code is free software; you can redistribute it and/or modify it 3675 # under the terms of the GNU General Public License version 2 only, as 3676 # published by the Free Software Foundation. Oracle designates this 3677 # particular file as subject to the "Classpath" exception as provided 3678 # by Oracle in the LICENSE file that accompanied this code. 3679 # 3680 # This code is distributed in the hope that it will be useful, but WITHOUT 3681 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3682 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3683 # version 2 for more details (a copy is included in the LICENSE file that 3684 # accompanied this code). 3685 # 3686 # You should have received a copy of the GNU General Public License version 3687 # 2 along with this work; if not, write to the Free Software Foundation, 3688 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3689 # 3690 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3691 # or visit www.oracle.com if you need additional information or have any 3692 # questions. 3693 # 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 # 3715 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3716 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3717 # 3718 # This code is free software; you can redistribute it and/or modify it 3719 # under the terms of the GNU General Public License version 2 only, as 3720 # published by the Free Software Foundation. Oracle designates this 3721 # particular file as subject to the "Classpath" exception as provided 3722 # by Oracle in the LICENSE file that accompanied this code. 3723 # 3724 # This code is distributed in the hope that it will be useful, but WITHOUT 3725 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3726 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3727 # version 2 for more details (a copy is included in the LICENSE file that 3728 # accompanied this code). 3729 # 3730 # You should have received a copy of the GNU General Public License version 3731 # 2 along with this work; if not, write to the Free Software Foundation, 3732 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3733 # 3734 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3735 # or visit www.oracle.com if you need additional information or have any 3736 # questions. 3737 # 3738 3739 3740 3741 3742 3743 # Documentation on common flags used for solstudio in HIGHEST. 3744 # 3745 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 3746 # done with care, there are some assumptions below that need to 3747 # be understood about the use of pointers, and IEEE behavior. 3748 # 3749 # -fns: Use non-standard floating point mode (not IEEE 754) 3750 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 3751 # -fsingle: Use single precision floating point with 'float' 3752 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 3753 # (Source with excessing pointer casting and data access with mixed 3754 # pointer types are not recommended) 3755 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 3756 # (If you expect perfect errno behavior, do not use this) 3757 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 3758 # -xrestrict: Pointer parameters to functions do not overlap 3759 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 3760 # If you pass in multiple pointers to the same data, do not use this) 3761 # -xlibmil: Inline some library routines 3762 # (If you expect perfect errno behavior, do not use this) 3763 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 3764 # (If you expect perfect errno behavior, do not use this) 3765 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 3766 3767 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 3768 # Bug? 3769 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 3770 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 3771 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 3772 #fi 3773 3774 3775 3776 3777 3778 3779 # FLAGS_C_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3780 # [RUN-IF-FALSE]) 3781 # ------------------------------------------------------------ 3782 # Check that the C compiler supports an argument 3783 3784 3785 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3786 # [RUN-IF-FALSE]) 3787 # ------------------------------------------------------------ 3788 # Check that the C++ compiler supports an argument 3789 3790 3791 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3792 # [RUN-IF-FALSE]) 3793 # ------------------------------------------------------------ 3794 # Check that the C and C++ compilers support an argument 3795 3796 3797 3798 3799 3800 3801 3802 # 3803 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3804 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3805 # 3806 # This code is free software; you can redistribute it and/or modify it 3807 # under the terms of the GNU General Public License version 2 only, as 3808 # published by the Free Software Foundation. Oracle designates this 3809 # particular file as subject to the "Classpath" exception as provided 3810 # by Oracle in the LICENSE file that accompanied this code. 3811 # 3812 # This code is distributed in the hope that it will be useful, but WITHOUT 3813 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3814 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3815 # version 2 for more details (a copy is included in the LICENSE file that 3816 # accompanied this code). 3817 # 3818 # You should have received a copy of the GNU General Public License version 3819 # 2 along with this work; if not, write to the Free Software Foundation, 3820 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3821 # 3822 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3823 # or visit www.oracle.com if you need additional information or have any 3824 # questions. 3825 # 3826 3827 3828 3829 3830 3831 cygwin_help() { 3832 case $1 in 3833 unzip) 3834 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 3835 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3836 ;; 3837 zip) 3838 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 3839 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3840 ;; 3841 make) 3842 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 3843 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3844 ;; 3845 freetype) 3846 HELP_MSG=" 3847 The freetype library can now be build during the configure process. 3848 Download the freetype sources and unpack them into an arbitrary directory: 3849 3850 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 3851 tar -xzf freetype-2.5.3.tar.gz 3852 3853 Then run configure with '--with-freetype-src=<freetype_src>'. This will 3854 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 3855 builds or into '<freetype_src>/lib32' for 32-bit builds. 3856 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 3857 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds." 3858 ;; 3859 esac 3860 } 3861 3862 msys_help() { 3863 PKGHANDLER_COMMAND="" 3864 } 3865 3866 apt_help() { 3867 case $1 in 3868 devkit) 3869 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3870 openjdk) 3871 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3872 alsa) 3873 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3874 cups) 3875 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3876 fontconfig) 3877 PKGHANDLER_COMMAND="sudo apt-get install libfontconfig1-dev" ;; 3878 freetype) 3879 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3880 pulse) 3881 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;; 3882 x11) 3883 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 3884 ccache) 3885 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3886 esac 3887 } 3888 3889 yum_help() { 3890 case $1 in 3891 devkit) 3892 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3893 openjdk) 3894 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3895 alsa) 3896 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3897 cups) 3898 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3899 fontconfig) 3900 PKGHANDLER_COMMAND="sudo yum install fontconfig-devel" ;; 3901 freetype) 3902 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 3903 pulse) 3904 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;; 3905 x11) 3906 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;; 3907 ccache) 3908 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3909 esac 3910 } 3911 3912 port_help() { 3913 PKGHANDLER_COMMAND="" 3914 } 3915 3916 pkgutil_help() { 3917 PKGHANDLER_COMMAND="" 3918 } 3919 3920 pkgadd_help() { 3921 PKGHANDLER_COMMAND="" 3922 } 3923 3924 # This function will check if we're called from the "configure" wrapper while 3925 # printing --help. If so, we will print out additional information that can 3926 # only be extracted within the autoconf script, and then exit. This must be 3927 # called at the very beginning in configure.ac. 3928 3929 3930 3931 3932 3933 3934 # 3935 # Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved. 3936 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3937 # 3938 # This code is free software; you can redistribute it and/or modify it 3939 # under the terms of the GNU General Public License version 2 only, as 3940 # published by the Free Software Foundation. Oracle designates this 3941 # particular file as subject to the "Classpath" exception as provided 3942 # by Oracle in the LICENSE file that accompanied this code. 3943 # 3944 # This code is distributed in the hope that it will be useful, but WITHOUT 3945 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3946 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3947 # version 2 for more details (a copy is included in the LICENSE file that 3948 # accompanied this code). 3949 # 3950 # You should have received a copy of the GNU General Public License version 3951 # 2 along with this work; if not, write to the Free Software Foundation, 3952 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3953 # 3954 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3955 # or visit www.oracle.com if you need additional information or have any 3956 # questions. 3957 # 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 ############################################################################### 3969 # 3970 # Should we build only OpenJDK even if closed sources are present? 3971 # 3972 3973 3974 3975 3976 ############################################################################### 3977 # 3978 # Setup version numbers 3979 # 3980 3981 3982 3983 3984 3985 3986 # Support for customization of the build process. Some build files 3987 # will include counterparts from this location, if they exist. This allows 3988 # for a degree of customization of the build targets and the rules/recipes 3989 # to create them 3990 3991 # Check whether --with-custom-make-dir was given. 3992 if test "${with_custom_make_dir+set}" = set; then : 3993 withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir 3994 fi 3995 3996 3997 3998 # 3999 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 4000 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4001 # 4002 # This code is free software; you can redistribute it and/or modify it 4003 # under the terms of the GNU General Public License version 2 only, as 4004 # published by the Free Software Foundation. Oracle designates this 4005 # particular file as subject to the "Classpath" exception as provided 4006 # by Oracle in the LICENSE file that accompanied this code. 4007 # 4008 # This code is distributed in the hope that it will be useful, but WITHOUT 4009 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4010 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4011 # version 2 for more details (a copy is included in the LICENSE file that 4012 # accompanied this code). 4013 # 4014 # You should have received a copy of the GNU General Public License version 4015 # 2 along with this work; if not, write to the Free Software Foundation, 4016 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4017 # 4018 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4019 # or visit www.oracle.com if you need additional information or have any 4020 # questions. 4021 # 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 ################################################################################ 4038 # Setup fontconfig 4039 ################################################################################ 4040 4041 4042 4043 4044 4045 4046 4047 4048 # 4049 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4050 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4051 # 4052 # This code is free software; you can redistribute it and/or modify it 4053 # under the terms of the GNU General Public License version 2 only, as 4054 # published by the Free Software Foundation. Oracle designates this 4055 # particular file as subject to the "Classpath" exception as provided 4056 # by Oracle in the LICENSE file that accompanied this code. 4057 # 4058 # This code is distributed in the hope that it will be useful, but WITHOUT 4059 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4060 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4061 # version 2 for more details (a copy is included in the LICENSE file that 4062 # accompanied this code). 4063 # 4064 # You should have received a copy of the GNU General Public License version 4065 # 2 along with this work; if not, write to the Free Software Foundation, 4066 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4067 # 4068 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4069 # or visit www.oracle.com if you need additional information or have any 4070 # questions. 4071 # 4072 4073 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4074 # Converts autoconf style CPU name to OpenJDK style, into 4075 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4076 4077 4078 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4079 # Converts autoconf style OS name to OpenJDK style, into 4080 # VAR_OS and VAR_OS_API. 4081 4082 4083 # Expects $host_os $host_cpu $build_os and $build_cpu 4084 # and $with_target_bits to have been setup! 4085 # 4086 # Translate the standard triplet(quadruplet) definition 4087 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4088 # OPENJDK_BUILD_OS, etc. 4089 4090 4091 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4092 # accordingly. Must be done after setting up build and target system, but before 4093 # doing anything else with these values. 4094 4095 4096 # Setup the legacy variables, for controlling the old makefiles. 4097 # 4098 4099 4100 4101 4102 #%%% Build and target systems %%% 4103 4104 4105 4106 4107 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4108 # Add -mX to various FLAGS variables. 4109 4110 4111 4112 4113 4114 4115 # 4116 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4117 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4118 # 4119 # This code is free software; you can redistribute it and/or modify it 4120 # under the terms of the GNU General Public License version 2 only, as 4121 # published by the Free Software Foundation. Oracle designates this 4122 # particular file as subject to the "Classpath" exception as provided 4123 # by Oracle in the LICENSE file that accompanied this code. 4124 # 4125 # This code is distributed in the hope that it will be useful, but WITHOUT 4126 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4127 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4128 # version 2 for more details (a copy is included in the LICENSE file that 4129 # accompanied this code). 4130 # 4131 # You should have received a copy of the GNU General Public License version 4132 # 2 along with this work; if not, write to the Free Software Foundation, 4133 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4134 # 4135 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4136 # or visit www.oracle.com if you need additional information or have any 4137 # questions. 4138 # 4139 4140 4141 4142 4143 4144 4145 4146 4147 # 4148 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 4149 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4150 # 4151 # This code is free software; you can redistribute it and/or modify it 4152 # under the terms of the GNU General Public License version 2 only, as 4153 # published by the Free Software Foundation. Oracle designates this 4154 # particular file as subject to the "Classpath" exception as provided 4155 # by Oracle in the LICENSE file that accompanied this code. 4156 # 4157 # This code is distributed in the hope that it will be useful, but WITHOUT 4158 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4159 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4160 # version 2 for more details (a copy is included in the LICENSE file that 4161 # accompanied this code). 4162 # 4163 # You should have received a copy of the GNU General Public License version 4164 # 2 along with this work; if not, write to the Free Software Foundation, 4165 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4166 # 4167 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4168 # or visit www.oracle.com if you need additional information or have any 4169 # questions. 4170 # 4171 4172 ######################################################################## 4173 # This file is responsible for detecting, verifying and setting up the 4174 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4175 # proper paths to the binaries, but it will not setup any flags. 4176 # 4177 # The binaries used is determined by the toolchain type, which is the family of 4178 # compilers and related tools that are used. 4179 ######################################################################## 4180 4181 4182 # All valid toolchains, regardless of platform (used by help.m4) 4183 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4184 4185 # These toolchains are valid on different platforms 4186 VALID_TOOLCHAINS_linux="gcc clang" 4187 VALID_TOOLCHAINS_solaris="solstudio" 4188 VALID_TOOLCHAINS_macosx="gcc clang" 4189 VALID_TOOLCHAINS_aix="xlc" 4190 VALID_TOOLCHAINS_windows="microsoft" 4191 4192 # Toolchain descriptions 4193 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4194 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4195 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4196 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4197 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4198 4199 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called. 4200 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER. 4201 # $1 - optional variable prefix for compiler and version variables (BUILD_) 4202 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_) 4203 4204 4205 # Check if the configured compiler (C and C++) is of a specific version or 4206 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before. 4207 # 4208 # Arguments: 4209 # $1: The version string to check against the found version 4210 # $2: block to run if the compiler is at least this version (>=) 4211 # $3: block to run if the compiler is older than this version (<) 4212 4213 4214 4215 # Setup a number of variables describing how native output files are 4216 # named on this platform/toolchain. 4217 4218 4219 # Determine which toolchain type to use, and make sure it is valid for this 4220 # platform. Setup various information about the selected toolchain. 4221 4222 4223 # Before we start detecting the toolchain executables, we might need some 4224 # special setup, e.g. additional paths etc. 4225 4226 4227 # Restore path, etc 4228 4229 4230 # Check if a compiler is of the toolchain type we expect, and save the version 4231 # information from it. If the compiler does not match the expected type, 4232 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4233 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4234 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4235 # 4236 # $1 = compiler to test (CC or CXX) 4237 # $2 = human readable name of compiler (C or C++) 4238 4239 4240 4241 # Try to locate the given C or C++ compiler in the path, or otherwise. 4242 # 4243 # $1 = compiler to test (CC or CXX) 4244 # $2 = human readable name of compiler (C or C++) 4245 # $3 = list of compiler names to search for 4246 4247 4248 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4249 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4250 # archiver (AR). Verify that the compilers are correct according to the 4251 # toolchain type. 4252 4253 4254 # Setup additional tools that is considered a part of the toolchain, but not the 4255 # core part. Many of these are highly platform-specific and do not exist, 4256 # and/or are not needed on all platforms. 4257 4258 4259 # Setup the build tools (i.e, the compiler and linker used to build programs 4260 # that should be run on the build platform, not the target platform, as a build 4261 # helper). Since the non-cross-compile case uses the normal, target compilers 4262 # for this, we can only do this after these have been setup. 4263 4264 4265 # Setup legacy variables that are still needed as alternative ways to refer to 4266 # parts of the toolchain. 4267 4268 4269 # Do some additional checks on the detected tools. 4270 4271 4272 # Setup the JTReg Regression Test Harness. 4273 4274 4275 4276 # 4277 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 4278 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4279 # 4280 # This code is free software; you can redistribute it and/or modify it 4281 # under the terms of the GNU General Public License version 2 only, as 4282 # published by the Free Software Foundation. Oracle designates this 4283 # particular file as subject to the "Classpath" exception as provided 4284 # by Oracle in the LICENSE file that accompanied this code. 4285 # 4286 # This code is distributed in the hope that it will be useful, but WITHOUT 4287 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4288 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4289 # version 2 for more details (a copy is included in the LICENSE file that 4290 # accompanied this code). 4291 # 4292 # You should have received a copy of the GNU General Public License version 4293 # 2 along with this work; if not, write to the Free Software Foundation, 4294 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4295 # 4296 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4297 # or visit www.oracle.com if you need additional information or have any 4298 # questions. 4299 # 4300 4301 ################################################################################ 4302 # The order of these defines the priority by which we try to find them. 4303 VALID_VS_VERSIONS="2010 2012 2013 2015 2017" 4304 4305 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 4306 VS_VERSION_INTERNAL_2010=100 4307 VS_MSVCR_2010=msvcr100.dll 4308 # We don't use msvcp on Visual Studio 2010 4309 #VS_MSVCP_2010=msvcp100.dll 4310 VS_ENVVAR_2010="VS100COMNTOOLS" 4311 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 4312 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 4313 VS_VS_PLATFORM_NAME_2010="v100" 4314 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 4315 4316 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 4317 VS_VERSION_INTERNAL_2012=110 4318 VS_MSVCR_2012=msvcr110.dll 4319 VS_MSVCP_2012=msvcp110.dll 4320 VS_ENVVAR_2012="VS110COMNTOOLS" 4321 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 4322 VS_SDK_INSTALLDIR_2012= 4323 VS_VS_PLATFORM_NAME_2012="v110" 4324 VS_SDK_PLATFORM_NAME_2012= 4325 4326 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 4327 VS_VERSION_INTERNAL_2013=120 4328 VS_MSVCR_2013=msvcr120.dll 4329 VS_MSVCP_2013=msvcp120.dll 4330 VS_ENVVAR_2013="VS120COMNTOOLS" 4331 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 4332 VS_SDK_INSTALLDIR_2013= 4333 VS_VS_PLATFORM_NAME_2013="v120" 4334 VS_SDK_PLATFORM_NAME_2013= 4335 4336 VS_DESCRIPTION_2015="Microsoft Visual Studio 2015 - CURRENTLY NOT WORKING" 4337 VS_VERSION_INTERNAL_2015=140 4338 VS_MSVCR_2015=vcruntime140.dll 4339 VS_MSVCP_2015=msvcp140.dll 4340 VS_ENVVAR_2015="VS140COMNTOOLS" 4341 VS_VS_INSTALLDIR_2015="Microsoft Visual Studio 14.0" 4342 VS_SDK_INSTALLDIR_2015= 4343 VS_VS_PLATFORM_NAME_2015="v140" 4344 VS_SDK_PLATFORM_NAME_2015= 4345 # The vcvars of 2015 breaks if 2017 is also installed. Work around this by 4346 # explicitly specifying Windows Kit 8.1 to be used. 4347 VS_ENV_ARGS_2015="8.1" 4348 4349 VS_DESCRIPTION_2017="Microsoft Visual Studio 2017 - CURRENTLY NOT WORKING" 4350 VS_VERSION_INTERNAL_2017=141 4351 VS_MSVCR_2017=vcruntime140.dll 4352 VS_MSVCP_2017=msvcp140.dll 4353 VS_ENVVAR_2017="VS150COMNTOOLS" 4354 VS_USE_UCRT_2017="true" 4355 VS_VS_INSTALLDIR_2017="Microsoft Visual Studio/2017" 4356 VS_EDITIONS_2017="Community Professional Enterprise" 4357 VS_SDK_INSTALLDIR_2017= 4358 VS_VS_PLATFORM_NAME_2017="v141" 4359 VS_SDK_PLATFORM_NAME_2017= 4360 4361 ################################################################################ 4362 4363 4364 4365 ################################################################################ 4366 4367 4368 4369 ################################################################################ 4370 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 4371 # build environment and assigns it to VS_ENV_CMD 4372 4373 4374 ################################################################################ 4375 4376 4377 4378 ################################################################################ 4379 # Check if the VS env variables were setup prior to running configure. 4380 # If not, then find vcvarsall.bat and run it automatically, and integrate 4381 # the set env variables into the spec file. 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 # This line needs to be here, verbatim, after all includes and the dummy hook 4397 # definitions. It is replaced with custom functionality when building 4398 # custom sources. 4399 #CUSTOM_AUTOCONF_INCLUDE 4400 4401 # Do not change or remove the following line, it is needed for consistency checks: 4402 DATE_WHEN_GENERATED=1625576365 4403 4404 ############################################################################### 4405 # 4406 # Initialization / Boot-strapping 4407 # 4408 # The bootstrapping process needs to solve the "chicken or the egg" problem, 4409 # thus it jumps back and forth, each time gaining something needed later on. 4410 # 4411 ############################################################################### 4412 4413 # If we are requested to print additional help, do that and then exit. 4414 # This must be the very first call. 4415 4416 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then 4417 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 4418 $PRINTF "Which are valid to use depends on the build platform.\n" 4419 for toolchain in $VALID_TOOLCHAINS_all; do 4420 # Use indirect variable referencing 4421 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 4422 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 4423 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 4424 done 4425 4426 # And now exit directly 4427 exit 0 4428 fi 4429 4430 4431 # Basic initialization that must happen first of all in the normal process. 4432 4433 # Save the original command line. This is passed to us by the wrapper configure script. 4434 4435 DATE_WHEN_CONFIGURED=`LANG=C date` 4436 4437 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 4438 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 4439 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 4440 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 4441 4442 4443 # Start with tools that do not need have cross compilation support 4444 # and can be expected to be found in the default PATH. These tools are 4445 # used by configure. Nor are these tools expected to be found in the 4446 # devkit from the builddeps server either, since they are 4447 # needed to download the devkit. 4448 4449 # First are all the simple required tools. 4450 4451 4452 4453 # Publish this variable in the help. 4454 4455 4456 if test "x$BASENAME" = x; then 4457 # The variable is not set by user, try to locate tool using the code snippet 4458 for ac_prog in basename 4459 do 4460 # Extract the first word of "$ac_prog", so it can be a program name with args. 4461 set dummy $ac_prog; ac_word=$2 4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4463 $as_echo_n "checking for $ac_word... " >&6; } 4464 if ${ac_cv_path_BASENAME+:} false; then : 4465 $as_echo_n "(cached) " >&6 4466 else 4467 case $BASENAME in 4468 [\\/]* | ?:[\\/]*) 4469 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4470 ;; 4471 *) 4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4473 for as_dir in $PATH 4474 do 4475 IFS=$as_save_IFS 4476 test -z "$as_dir" && as_dir=. 4477 for ac_exec_ext in '' $ac_executable_extensions; do 4478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4479 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4481 break 2 4482 fi 4483 done 4484 done 4485 IFS=$as_save_IFS 4486 4487 ;; 4488 esac 4489 fi 4490 BASENAME=$ac_cv_path_BASENAME 4491 if test -n "$BASENAME"; then 4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4493 $as_echo "$BASENAME" >&6; } 4494 else 4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4496 $as_echo "no" >&6; } 4497 fi 4498 4499 4500 test -n "$BASENAME" && break 4501 done 4502 4503 else 4504 # The variable is set, but is it from the command line or the environment? 4505 4506 # Try to remove the string !BASENAME! from our list. 4507 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 4508 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4509 # If it failed, the variable was not from the command line. Ignore it, 4510 # but warn the user (except for BASH, which is always set by the calling BASH). 4511 if test "xBASENAME" != xBASH; then 4512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 4513 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 4514 fi 4515 # Try to locate tool using the code snippet 4516 for ac_prog in basename 4517 do 4518 # Extract the first word of "$ac_prog", so it can be a program name with args. 4519 set dummy $ac_prog; ac_word=$2 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4521 $as_echo_n "checking for $ac_word... " >&6; } 4522 if ${ac_cv_path_BASENAME+:} false; then : 4523 $as_echo_n "(cached) " >&6 4524 else 4525 case $BASENAME in 4526 [\\/]* | ?:[\\/]*) 4527 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4528 ;; 4529 *) 4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4531 for as_dir in $PATH 4532 do 4533 IFS=$as_save_IFS 4534 test -z "$as_dir" && as_dir=. 4535 for ac_exec_ext in '' $ac_executable_extensions; do 4536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4537 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4539 break 2 4540 fi 4541 done 4542 done 4543 IFS=$as_save_IFS 4544 4545 ;; 4546 esac 4547 fi 4548 BASENAME=$ac_cv_path_BASENAME 4549 if test -n "$BASENAME"; then 4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4551 $as_echo "$BASENAME" >&6; } 4552 else 4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4554 $as_echo "no" >&6; } 4555 fi 4556 4557 4558 test -n "$BASENAME" && break 4559 done 4560 4561 else 4562 # If it succeeded, then it was overridden by the user. We will use it 4563 # for the tool. 4564 4565 # First remove it from the list of overridden variables, so we can test 4566 # for unknown variables in the end. 4567 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4568 4569 # Check if the provided tool contains a complete path. 4570 tool_specified="$BASENAME" 4571 tool_basename="${tool_specified##*/}" 4572 if test "x$tool_basename" = "x$tool_specified"; then 4573 # A command without a complete path is provided, search $PATH. 4574 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 4575 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 4576 # Extract the first word of "$tool_basename", so it can be a program name with args. 4577 set dummy $tool_basename; ac_word=$2 4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4579 $as_echo_n "checking for $ac_word... " >&6; } 4580 if ${ac_cv_path_BASENAME+:} false; then : 4581 $as_echo_n "(cached) " >&6 4582 else 4583 case $BASENAME in 4584 [\\/]* | ?:[\\/]*) 4585 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4586 ;; 4587 *) 4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4589 for as_dir in $PATH 4590 do 4591 IFS=$as_save_IFS 4592 test -z "$as_dir" && as_dir=. 4593 for ac_exec_ext in '' $ac_executable_extensions; do 4594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4595 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4597 break 2 4598 fi 4599 done 4600 done 4601 IFS=$as_save_IFS 4602 4603 ;; 4604 esac 4605 fi 4606 BASENAME=$ac_cv_path_BASENAME 4607 if test -n "$BASENAME"; then 4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4609 $as_echo "$BASENAME" >&6; } 4610 else 4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4612 $as_echo "no" >&6; } 4613 fi 4614 4615 4616 if test "x$BASENAME" = x; then 4617 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4618 fi 4619 else 4620 # Otherwise we believe it is a complete path. Use it as it is. 4621 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 4622 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 4624 $as_echo_n "checking for BASENAME... " >&6; } 4625 if test ! -x "$tool_specified"; then 4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4627 $as_echo "not found" >&6; } 4628 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 4629 fi 4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4631 $as_echo "$tool_specified" >&6; } 4632 fi 4633 fi 4634 fi 4635 4636 4637 4638 if test "x$BASENAME" = x; then 4639 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 4640 fi 4641 4642 4643 4644 4645 4646 # Publish this variable in the help. 4647 4648 4649 if test "x$BASH" = x; then 4650 # The variable is not set by user, try to locate tool using the code snippet 4651 for ac_prog in bash 4652 do 4653 # Extract the first word of "$ac_prog", so it can be a program name with args. 4654 set dummy $ac_prog; ac_word=$2 4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4656 $as_echo_n "checking for $ac_word... " >&6; } 4657 if ${ac_cv_path_BASH+:} false; then : 4658 $as_echo_n "(cached) " >&6 4659 else 4660 case $BASH in 4661 [\\/]* | ?:[\\/]*) 4662 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4663 ;; 4664 *) 4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4666 for as_dir in $PATH 4667 do 4668 IFS=$as_save_IFS 4669 test -z "$as_dir" && as_dir=. 4670 for ac_exec_ext in '' $ac_executable_extensions; do 4671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4672 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4674 break 2 4675 fi 4676 done 4677 done 4678 IFS=$as_save_IFS 4679 4680 ;; 4681 esac 4682 fi 4683 BASH=$ac_cv_path_BASH 4684 if test -n "$BASH"; then 4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4686 $as_echo "$BASH" >&6; } 4687 else 4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4689 $as_echo "no" >&6; } 4690 fi 4691 4692 4693 test -n "$BASH" && break 4694 done 4695 4696 else 4697 # The variable is set, but is it from the command line or the environment? 4698 4699 # Try to remove the string !BASH! from our list. 4700 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 4701 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4702 # If it failed, the variable was not from the command line. Ignore it, 4703 # but warn the user (except for BASH, which is always set by the calling BASH). 4704 if test "xBASH" != xBASH; then 4705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 4706 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 4707 fi 4708 # Try to locate tool using the code snippet 4709 for ac_prog in bash 4710 do 4711 # Extract the first word of "$ac_prog", so it can be a program name with args. 4712 set dummy $ac_prog; ac_word=$2 4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4714 $as_echo_n "checking for $ac_word... " >&6; } 4715 if ${ac_cv_path_BASH+:} false; then : 4716 $as_echo_n "(cached) " >&6 4717 else 4718 case $BASH in 4719 [\\/]* | ?:[\\/]*) 4720 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4721 ;; 4722 *) 4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4724 for as_dir in $PATH 4725 do 4726 IFS=$as_save_IFS 4727 test -z "$as_dir" && as_dir=. 4728 for ac_exec_ext in '' $ac_executable_extensions; do 4729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4730 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4732 break 2 4733 fi 4734 done 4735 done 4736 IFS=$as_save_IFS 4737 4738 ;; 4739 esac 4740 fi 4741 BASH=$ac_cv_path_BASH 4742 if test -n "$BASH"; then 4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4744 $as_echo "$BASH" >&6; } 4745 else 4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4747 $as_echo "no" >&6; } 4748 fi 4749 4750 4751 test -n "$BASH" && break 4752 done 4753 4754 else 4755 # If it succeeded, then it was overridden by the user. We will use it 4756 # for the tool. 4757 4758 # First remove it from the list of overridden variables, so we can test 4759 # for unknown variables in the end. 4760 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4761 4762 # Check if the provided tool contains a complete path. 4763 tool_specified="$BASH" 4764 tool_basename="${tool_specified##*/}" 4765 if test "x$tool_basename" = "x$tool_specified"; then 4766 # A command without a complete path is provided, search $PATH. 4767 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 4768 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 4769 # Extract the first word of "$tool_basename", so it can be a program name with args. 4770 set dummy $tool_basename; ac_word=$2 4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4772 $as_echo_n "checking for $ac_word... " >&6; } 4773 if ${ac_cv_path_BASH+:} false; then : 4774 $as_echo_n "(cached) " >&6 4775 else 4776 case $BASH in 4777 [\\/]* | ?:[\\/]*) 4778 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4779 ;; 4780 *) 4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4782 for as_dir in $PATH 4783 do 4784 IFS=$as_save_IFS 4785 test -z "$as_dir" && as_dir=. 4786 for ac_exec_ext in '' $ac_executable_extensions; do 4787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4788 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4790 break 2 4791 fi 4792 done 4793 done 4794 IFS=$as_save_IFS 4795 4796 ;; 4797 esac 4798 fi 4799 BASH=$ac_cv_path_BASH 4800 if test -n "$BASH"; then 4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4802 $as_echo "$BASH" >&6; } 4803 else 4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4805 $as_echo "no" >&6; } 4806 fi 4807 4808 4809 if test "x$BASH" = x; then 4810 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4811 fi 4812 else 4813 # Otherwise we believe it is a complete path. Use it as it is. 4814 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 4815 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 4817 $as_echo_n "checking for BASH... " >&6; } 4818 if test ! -x "$tool_specified"; then 4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4820 $as_echo "not found" >&6; } 4821 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 4822 fi 4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4824 $as_echo "$tool_specified" >&6; } 4825 fi 4826 fi 4827 fi 4828 4829 4830 4831 if test "x$BASH" = x; then 4832 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 4833 fi 4834 4835 4836 4837 4838 4839 # Publish this variable in the help. 4840 4841 4842 if test "x$CAT" = x; then 4843 # The variable is not set by user, try to locate tool using the code snippet 4844 for ac_prog in cat 4845 do 4846 # Extract the first word of "$ac_prog", so it can be a program name with args. 4847 set dummy $ac_prog; ac_word=$2 4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4849 $as_echo_n "checking for $ac_word... " >&6; } 4850 if ${ac_cv_path_CAT+:} false; then : 4851 $as_echo_n "(cached) " >&6 4852 else 4853 case $CAT in 4854 [\\/]* | ?:[\\/]*) 4855 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4856 ;; 4857 *) 4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4859 for as_dir in $PATH 4860 do 4861 IFS=$as_save_IFS 4862 test -z "$as_dir" && as_dir=. 4863 for ac_exec_ext in '' $ac_executable_extensions; do 4864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4865 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4867 break 2 4868 fi 4869 done 4870 done 4871 IFS=$as_save_IFS 4872 4873 ;; 4874 esac 4875 fi 4876 CAT=$ac_cv_path_CAT 4877 if test -n "$CAT"; then 4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4879 $as_echo "$CAT" >&6; } 4880 else 4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4882 $as_echo "no" >&6; } 4883 fi 4884 4885 4886 test -n "$CAT" && break 4887 done 4888 4889 else 4890 # The variable is set, but is it from the command line or the environment? 4891 4892 # Try to remove the string !CAT! from our list. 4893 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 4894 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4895 # If it failed, the variable was not from the command line. Ignore it, 4896 # but warn the user (except for BASH, which is always set by the calling BASH). 4897 if test "xCAT" != xBASH; then 4898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 4899 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 4900 fi 4901 # Try to locate tool using the code snippet 4902 for ac_prog in cat 4903 do 4904 # Extract the first word of "$ac_prog", so it can be a program name with args. 4905 set dummy $ac_prog; ac_word=$2 4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4907 $as_echo_n "checking for $ac_word... " >&6; } 4908 if ${ac_cv_path_CAT+:} false; then : 4909 $as_echo_n "(cached) " >&6 4910 else 4911 case $CAT in 4912 [\\/]* | ?:[\\/]*) 4913 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4914 ;; 4915 *) 4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4917 for as_dir in $PATH 4918 do 4919 IFS=$as_save_IFS 4920 test -z "$as_dir" && as_dir=. 4921 for ac_exec_ext in '' $ac_executable_extensions; do 4922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4923 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4925 break 2 4926 fi 4927 done 4928 done 4929 IFS=$as_save_IFS 4930 4931 ;; 4932 esac 4933 fi 4934 CAT=$ac_cv_path_CAT 4935 if test -n "$CAT"; then 4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4937 $as_echo "$CAT" >&6; } 4938 else 4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4940 $as_echo "no" >&6; } 4941 fi 4942 4943 4944 test -n "$CAT" && break 4945 done 4946 4947 else 4948 # If it succeeded, then it was overridden by the user. We will use it 4949 # for the tool. 4950 4951 # First remove it from the list of overridden variables, so we can test 4952 # for unknown variables in the end. 4953 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4954 4955 # Check if the provided tool contains a complete path. 4956 tool_specified="$CAT" 4957 tool_basename="${tool_specified##*/}" 4958 if test "x$tool_basename" = "x$tool_specified"; then 4959 # A command without a complete path is provided, search $PATH. 4960 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 4961 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 4962 # Extract the first word of "$tool_basename", so it can be a program name with args. 4963 set dummy $tool_basename; ac_word=$2 4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4965 $as_echo_n "checking for $ac_word... " >&6; } 4966 if ${ac_cv_path_CAT+:} false; then : 4967 $as_echo_n "(cached) " >&6 4968 else 4969 case $CAT in 4970 [\\/]* | ?:[\\/]*) 4971 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4972 ;; 4973 *) 4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4975 for as_dir in $PATH 4976 do 4977 IFS=$as_save_IFS 4978 test -z "$as_dir" && as_dir=. 4979 for ac_exec_ext in '' $ac_executable_extensions; do 4980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4981 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4983 break 2 4984 fi 4985 done 4986 done 4987 IFS=$as_save_IFS 4988 4989 ;; 4990 esac 4991 fi 4992 CAT=$ac_cv_path_CAT 4993 if test -n "$CAT"; then 4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4995 $as_echo "$CAT" >&6; } 4996 else 4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4998 $as_echo "no" >&6; } 4999 fi 5000 5001 5002 if test "x$CAT" = x; then 5003 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5004 fi 5005 else 5006 # Otherwise we believe it is a complete path. Use it as it is. 5007 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 5008 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5010 $as_echo_n "checking for CAT... " >&6; } 5011 if test ! -x "$tool_specified"; then 5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5013 $as_echo "not found" >&6; } 5014 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 5015 fi 5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5017 $as_echo "$tool_specified" >&6; } 5018 fi 5019 fi 5020 fi 5021 5022 5023 5024 if test "x$CAT" = x; then 5025 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 5026 fi 5027 5028 5029 5030 5031 5032 # Publish this variable in the help. 5033 5034 5035 if test "x$CHMOD" = x; then 5036 # The variable is not set by user, try to locate tool using the code snippet 5037 for ac_prog in chmod 5038 do 5039 # Extract the first word of "$ac_prog", so it can be a program name with args. 5040 set dummy $ac_prog; ac_word=$2 5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5042 $as_echo_n "checking for $ac_word... " >&6; } 5043 if ${ac_cv_path_CHMOD+:} false; then : 5044 $as_echo_n "(cached) " >&6 5045 else 5046 case $CHMOD in 5047 [\\/]* | ?:[\\/]*) 5048 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5049 ;; 5050 *) 5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5052 for as_dir in $PATH 5053 do 5054 IFS=$as_save_IFS 5055 test -z "$as_dir" && as_dir=. 5056 for ac_exec_ext in '' $ac_executable_extensions; do 5057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5058 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5060 break 2 5061 fi 5062 done 5063 done 5064 IFS=$as_save_IFS 5065 5066 ;; 5067 esac 5068 fi 5069 CHMOD=$ac_cv_path_CHMOD 5070 if test -n "$CHMOD"; then 5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5072 $as_echo "$CHMOD" >&6; } 5073 else 5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5075 $as_echo "no" >&6; } 5076 fi 5077 5078 5079 test -n "$CHMOD" && break 5080 done 5081 5082 else 5083 # The variable is set, but is it from the command line or the environment? 5084 5085 # Try to remove the string !CHMOD! from our list. 5086 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5087 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5088 # If it failed, the variable was not from the command line. Ignore it, 5089 # but warn the user (except for BASH, which is always set by the calling BASH). 5090 if test "xCHMOD" != xBASH; then 5091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5092 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5093 fi 5094 # Try to locate tool using the code snippet 5095 for ac_prog in chmod 5096 do 5097 # Extract the first word of "$ac_prog", so it can be a program name with args. 5098 set dummy $ac_prog; ac_word=$2 5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5100 $as_echo_n "checking for $ac_word... " >&6; } 5101 if ${ac_cv_path_CHMOD+:} false; then : 5102 $as_echo_n "(cached) " >&6 5103 else 5104 case $CHMOD in 5105 [\\/]* | ?:[\\/]*) 5106 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5107 ;; 5108 *) 5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5110 for as_dir in $PATH 5111 do 5112 IFS=$as_save_IFS 5113 test -z "$as_dir" && as_dir=. 5114 for ac_exec_ext in '' $ac_executable_extensions; do 5115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5116 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5118 break 2 5119 fi 5120 done 5121 done 5122 IFS=$as_save_IFS 5123 5124 ;; 5125 esac 5126 fi 5127 CHMOD=$ac_cv_path_CHMOD 5128 if test -n "$CHMOD"; then 5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5130 $as_echo "$CHMOD" >&6; } 5131 else 5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5133 $as_echo "no" >&6; } 5134 fi 5135 5136 5137 test -n "$CHMOD" && break 5138 done 5139 5140 else 5141 # If it succeeded, then it was overridden by the user. We will use it 5142 # for the tool. 5143 5144 # First remove it from the list of overridden variables, so we can test 5145 # for unknown variables in the end. 5146 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5147 5148 # Check if the provided tool contains a complete path. 5149 tool_specified="$CHMOD" 5150 tool_basename="${tool_specified##*/}" 5151 if test "x$tool_basename" = "x$tool_specified"; then 5152 # A command without a complete path is provided, search $PATH. 5153 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5154 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5155 # Extract the first word of "$tool_basename", so it can be a program name with args. 5156 set dummy $tool_basename; ac_word=$2 5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5158 $as_echo_n "checking for $ac_word... " >&6; } 5159 if ${ac_cv_path_CHMOD+:} false; then : 5160 $as_echo_n "(cached) " >&6 5161 else 5162 case $CHMOD in 5163 [\\/]* | ?:[\\/]*) 5164 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5165 ;; 5166 *) 5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5168 for as_dir in $PATH 5169 do 5170 IFS=$as_save_IFS 5171 test -z "$as_dir" && as_dir=. 5172 for ac_exec_ext in '' $ac_executable_extensions; do 5173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5174 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5176 break 2 5177 fi 5178 done 5179 done 5180 IFS=$as_save_IFS 5181 5182 ;; 5183 esac 5184 fi 5185 CHMOD=$ac_cv_path_CHMOD 5186 if test -n "$CHMOD"; then 5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5188 $as_echo "$CHMOD" >&6; } 5189 else 5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5191 $as_echo "no" >&6; } 5192 fi 5193 5194 5195 if test "x$CHMOD" = x; then 5196 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5197 fi 5198 else 5199 # Otherwise we believe it is a complete path. Use it as it is. 5200 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5201 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5203 $as_echo_n "checking for CHMOD... " >&6; } 5204 if test ! -x "$tool_specified"; then 5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5206 $as_echo "not found" >&6; } 5207 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5208 fi 5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5210 $as_echo "$tool_specified" >&6; } 5211 fi 5212 fi 5213 fi 5214 5215 5216 5217 if test "x$CHMOD" = x; then 5218 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5219 fi 5220 5221 5222 5223 5224 5225 # Publish this variable in the help. 5226 5227 5228 if test "x$CMP" = x; then 5229 # The variable is not set by user, try to locate tool using the code snippet 5230 for ac_prog in cmp 5231 do 5232 # Extract the first word of "$ac_prog", so it can be a program name with args. 5233 set dummy $ac_prog; ac_word=$2 5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5235 $as_echo_n "checking for $ac_word... " >&6; } 5236 if ${ac_cv_path_CMP+:} false; then : 5237 $as_echo_n "(cached) " >&6 5238 else 5239 case $CMP in 5240 [\\/]* | ?:[\\/]*) 5241 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5242 ;; 5243 *) 5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5245 for as_dir in $PATH 5246 do 5247 IFS=$as_save_IFS 5248 test -z "$as_dir" && as_dir=. 5249 for ac_exec_ext in '' $ac_executable_extensions; do 5250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5251 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5253 break 2 5254 fi 5255 done 5256 done 5257 IFS=$as_save_IFS 5258 5259 ;; 5260 esac 5261 fi 5262 CMP=$ac_cv_path_CMP 5263 if test -n "$CMP"; then 5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5265 $as_echo "$CMP" >&6; } 5266 else 5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5268 $as_echo "no" >&6; } 5269 fi 5270 5271 5272 test -n "$CMP" && break 5273 done 5274 5275 else 5276 # The variable is set, but is it from the command line or the environment? 5277 5278 # Try to remove the string !CMP! from our list. 5279 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 5280 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5281 # If it failed, the variable was not from the command line. Ignore it, 5282 # but warn the user (except for BASH, which is always set by the calling BASH). 5283 if test "xCMP" != xBASH; then 5284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 5285 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 5286 fi 5287 # Try to locate tool using the code snippet 5288 for ac_prog in cmp 5289 do 5290 # Extract the first word of "$ac_prog", so it can be a program name with args. 5291 set dummy $ac_prog; ac_word=$2 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5293 $as_echo_n "checking for $ac_word... " >&6; } 5294 if ${ac_cv_path_CMP+:} false; then : 5295 $as_echo_n "(cached) " >&6 5296 else 5297 case $CMP in 5298 [\\/]* | ?:[\\/]*) 5299 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5300 ;; 5301 *) 5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5303 for as_dir in $PATH 5304 do 5305 IFS=$as_save_IFS 5306 test -z "$as_dir" && as_dir=. 5307 for ac_exec_ext in '' $ac_executable_extensions; do 5308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5309 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5311 break 2 5312 fi 5313 done 5314 done 5315 IFS=$as_save_IFS 5316 5317 ;; 5318 esac 5319 fi 5320 CMP=$ac_cv_path_CMP 5321 if test -n "$CMP"; then 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5323 $as_echo "$CMP" >&6; } 5324 else 5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5326 $as_echo "no" >&6; } 5327 fi 5328 5329 5330 test -n "$CMP" && break 5331 done 5332 5333 else 5334 # If it succeeded, then it was overridden by the user. We will use it 5335 # for the tool. 5336 5337 # First remove it from the list of overridden variables, so we can test 5338 # for unknown variables in the end. 5339 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5340 5341 # Check if the provided tool contains a complete path. 5342 tool_specified="$CMP" 5343 tool_basename="${tool_specified##*/}" 5344 if test "x$tool_basename" = "x$tool_specified"; then 5345 # A command without a complete path is provided, search $PATH. 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 5347 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 5348 # Extract the first word of "$tool_basename", so it can be a program name with args. 5349 set dummy $tool_basename; ac_word=$2 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5351 $as_echo_n "checking for $ac_word... " >&6; } 5352 if ${ac_cv_path_CMP+:} false; then : 5353 $as_echo_n "(cached) " >&6 5354 else 5355 case $CMP in 5356 [\\/]* | ?:[\\/]*) 5357 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5358 ;; 5359 *) 5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5361 for as_dir in $PATH 5362 do 5363 IFS=$as_save_IFS 5364 test -z "$as_dir" && as_dir=. 5365 for ac_exec_ext in '' $ac_executable_extensions; do 5366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5367 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5369 break 2 5370 fi 5371 done 5372 done 5373 IFS=$as_save_IFS 5374 5375 ;; 5376 esac 5377 fi 5378 CMP=$ac_cv_path_CMP 5379 if test -n "$CMP"; then 5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5381 $as_echo "$CMP" >&6; } 5382 else 5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5384 $as_echo "no" >&6; } 5385 fi 5386 5387 5388 if test "x$CMP" = x; then 5389 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5390 fi 5391 else 5392 # Otherwise we believe it is a complete path. Use it as it is. 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 5394 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5396 $as_echo_n "checking for CMP... " >&6; } 5397 if test ! -x "$tool_specified"; then 5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5399 $as_echo "not found" >&6; } 5400 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 5401 fi 5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5403 $as_echo "$tool_specified" >&6; } 5404 fi 5405 fi 5406 fi 5407 5408 5409 5410 if test "x$CMP" = x; then 5411 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 5412 fi 5413 5414 5415 5416 5417 5418 # Publish this variable in the help. 5419 5420 5421 if test "x$COMM" = x; then 5422 # The variable is not set by user, try to locate tool using the code snippet 5423 for ac_prog in comm 5424 do 5425 # Extract the first word of "$ac_prog", so it can be a program name with args. 5426 set dummy $ac_prog; ac_word=$2 5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5428 $as_echo_n "checking for $ac_word... " >&6; } 5429 if ${ac_cv_path_COMM+:} false; then : 5430 $as_echo_n "(cached) " >&6 5431 else 5432 case $COMM in 5433 [\\/]* | ?:[\\/]*) 5434 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5435 ;; 5436 *) 5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5438 for as_dir in $PATH 5439 do 5440 IFS=$as_save_IFS 5441 test -z "$as_dir" && as_dir=. 5442 for ac_exec_ext in '' $ac_executable_extensions; do 5443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5444 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5446 break 2 5447 fi 5448 done 5449 done 5450 IFS=$as_save_IFS 5451 5452 ;; 5453 esac 5454 fi 5455 COMM=$ac_cv_path_COMM 5456 if test -n "$COMM"; then 5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5458 $as_echo "$COMM" >&6; } 5459 else 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5461 $as_echo "no" >&6; } 5462 fi 5463 5464 5465 test -n "$COMM" && break 5466 done 5467 5468 else 5469 # The variable is set, but is it from the command line or the environment? 5470 5471 # Try to remove the string !COMM! from our list. 5472 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 5473 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5474 # If it failed, the variable was not from the command line. Ignore it, 5475 # but warn the user (except for BASH, which is always set by the calling BASH). 5476 if test "xCOMM" != xBASH; then 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 5478 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 5479 fi 5480 # Try to locate tool using the code snippet 5481 for ac_prog in comm 5482 do 5483 # Extract the first word of "$ac_prog", so it can be a program name with args. 5484 set dummy $ac_prog; ac_word=$2 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5486 $as_echo_n "checking for $ac_word... " >&6; } 5487 if ${ac_cv_path_COMM+:} false; then : 5488 $as_echo_n "(cached) " >&6 5489 else 5490 case $COMM in 5491 [\\/]* | ?:[\\/]*) 5492 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5493 ;; 5494 *) 5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5496 for as_dir in $PATH 5497 do 5498 IFS=$as_save_IFS 5499 test -z "$as_dir" && as_dir=. 5500 for ac_exec_ext in '' $ac_executable_extensions; do 5501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5502 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5504 break 2 5505 fi 5506 done 5507 done 5508 IFS=$as_save_IFS 5509 5510 ;; 5511 esac 5512 fi 5513 COMM=$ac_cv_path_COMM 5514 if test -n "$COMM"; then 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5516 $as_echo "$COMM" >&6; } 5517 else 5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5519 $as_echo "no" >&6; } 5520 fi 5521 5522 5523 test -n "$COMM" && break 5524 done 5525 5526 else 5527 # If it succeeded, then it was overridden by the user. We will use it 5528 # for the tool. 5529 5530 # First remove it from the list of overridden variables, so we can test 5531 # for unknown variables in the end. 5532 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5533 5534 # Check if the provided tool contains a complete path. 5535 tool_specified="$COMM" 5536 tool_basename="${tool_specified##*/}" 5537 if test "x$tool_basename" = "x$tool_specified"; then 5538 # A command without a complete path is provided, search $PATH. 5539 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 5540 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 5541 # Extract the first word of "$tool_basename", so it can be a program name with args. 5542 set dummy $tool_basename; ac_word=$2 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5544 $as_echo_n "checking for $ac_word... " >&6; } 5545 if ${ac_cv_path_COMM+:} false; then : 5546 $as_echo_n "(cached) " >&6 5547 else 5548 case $COMM in 5549 [\\/]* | ?:[\\/]*) 5550 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5551 ;; 5552 *) 5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5554 for as_dir in $PATH 5555 do 5556 IFS=$as_save_IFS 5557 test -z "$as_dir" && as_dir=. 5558 for ac_exec_ext in '' $ac_executable_extensions; do 5559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5560 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5562 break 2 5563 fi 5564 done 5565 done 5566 IFS=$as_save_IFS 5567 5568 ;; 5569 esac 5570 fi 5571 COMM=$ac_cv_path_COMM 5572 if test -n "$COMM"; then 5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5574 $as_echo "$COMM" >&6; } 5575 else 5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5577 $as_echo "no" >&6; } 5578 fi 5579 5580 5581 if test "x$COMM" = x; then 5582 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5583 fi 5584 else 5585 # Otherwise we believe it is a complete path. Use it as it is. 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 5587 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 5589 $as_echo_n "checking for COMM... " >&6; } 5590 if test ! -x "$tool_specified"; then 5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5592 $as_echo "not found" >&6; } 5593 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 5594 fi 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5596 $as_echo "$tool_specified" >&6; } 5597 fi 5598 fi 5599 fi 5600 5601 5602 5603 if test "x$COMM" = x; then 5604 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 5605 fi 5606 5607 5608 5609 5610 5611 # Publish this variable in the help. 5612 5613 5614 if test "x$CP" = x; then 5615 # The variable is not set by user, try to locate tool using the code snippet 5616 for ac_prog in cp 5617 do 5618 # Extract the first word of "$ac_prog", so it can be a program name with args. 5619 set dummy $ac_prog; ac_word=$2 5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5621 $as_echo_n "checking for $ac_word... " >&6; } 5622 if ${ac_cv_path_CP+:} false; then : 5623 $as_echo_n "(cached) " >&6 5624 else 5625 case $CP in 5626 [\\/]* | ?:[\\/]*) 5627 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5628 ;; 5629 *) 5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5631 for as_dir in $PATH 5632 do 5633 IFS=$as_save_IFS 5634 test -z "$as_dir" && as_dir=. 5635 for ac_exec_ext in '' $ac_executable_extensions; do 5636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5637 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5639 break 2 5640 fi 5641 done 5642 done 5643 IFS=$as_save_IFS 5644 5645 ;; 5646 esac 5647 fi 5648 CP=$ac_cv_path_CP 5649 if test -n "$CP"; then 5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5651 $as_echo "$CP" >&6; } 5652 else 5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5654 $as_echo "no" >&6; } 5655 fi 5656 5657 5658 test -n "$CP" && break 5659 done 5660 5661 else 5662 # The variable is set, but is it from the command line or the environment? 5663 5664 # Try to remove the string !CP! from our list. 5665 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 5666 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5667 # If it failed, the variable was not from the command line. Ignore it, 5668 # but warn the user (except for BASH, which is always set by the calling BASH). 5669 if test "xCP" != xBASH; then 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 5671 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 5672 fi 5673 # Try to locate tool using the code snippet 5674 for ac_prog in cp 5675 do 5676 # Extract the first word of "$ac_prog", so it can be a program name with args. 5677 set dummy $ac_prog; ac_word=$2 5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5679 $as_echo_n "checking for $ac_word... " >&6; } 5680 if ${ac_cv_path_CP+:} false; then : 5681 $as_echo_n "(cached) " >&6 5682 else 5683 case $CP in 5684 [\\/]* | ?:[\\/]*) 5685 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5686 ;; 5687 *) 5688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5689 for as_dir in $PATH 5690 do 5691 IFS=$as_save_IFS 5692 test -z "$as_dir" && as_dir=. 5693 for ac_exec_ext in '' $ac_executable_extensions; do 5694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5695 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5697 break 2 5698 fi 5699 done 5700 done 5701 IFS=$as_save_IFS 5702 5703 ;; 5704 esac 5705 fi 5706 CP=$ac_cv_path_CP 5707 if test -n "$CP"; then 5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5709 $as_echo "$CP" >&6; } 5710 else 5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5712 $as_echo "no" >&6; } 5713 fi 5714 5715 5716 test -n "$CP" && break 5717 done 5718 5719 else 5720 # If it succeeded, then it was overridden by the user. We will use it 5721 # for the tool. 5722 5723 # First remove it from the list of overridden variables, so we can test 5724 # for unknown variables in the end. 5725 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5726 5727 # Check if the provided tool contains a complete path. 5728 tool_specified="$CP" 5729 tool_basename="${tool_specified##*/}" 5730 if test "x$tool_basename" = "x$tool_specified"; then 5731 # A command without a complete path is provided, search $PATH. 5732 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 5733 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 5734 # Extract the first word of "$tool_basename", so it can be a program name with args. 5735 set dummy $tool_basename; ac_word=$2 5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5737 $as_echo_n "checking for $ac_word... " >&6; } 5738 if ${ac_cv_path_CP+:} false; then : 5739 $as_echo_n "(cached) " >&6 5740 else 5741 case $CP in 5742 [\\/]* | ?:[\\/]*) 5743 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5744 ;; 5745 *) 5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5747 for as_dir in $PATH 5748 do 5749 IFS=$as_save_IFS 5750 test -z "$as_dir" && as_dir=. 5751 for ac_exec_ext in '' $ac_executable_extensions; do 5752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5753 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5755 break 2 5756 fi 5757 done 5758 done 5759 IFS=$as_save_IFS 5760 5761 ;; 5762 esac 5763 fi 5764 CP=$ac_cv_path_CP 5765 if test -n "$CP"; then 5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5767 $as_echo "$CP" >&6; } 5768 else 5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5770 $as_echo "no" >&6; } 5771 fi 5772 5773 5774 if test "x$CP" = x; then 5775 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5776 fi 5777 else 5778 # Otherwise we believe it is a complete path. Use it as it is. 5779 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 5780 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 5782 $as_echo_n "checking for CP... " >&6; } 5783 if test ! -x "$tool_specified"; then 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5785 $as_echo "not found" >&6; } 5786 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 5787 fi 5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5789 $as_echo "$tool_specified" >&6; } 5790 fi 5791 fi 5792 fi 5793 5794 5795 5796 if test "x$CP" = x; then 5797 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 5798 fi 5799 5800 5801 5802 5803 5804 # Publish this variable in the help. 5805 5806 5807 if test "x$CUT" = x; then 5808 # The variable is not set by user, try to locate tool using the code snippet 5809 for ac_prog in cut 5810 do 5811 # Extract the first word of "$ac_prog", so it can be a program name with args. 5812 set dummy $ac_prog; ac_word=$2 5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5814 $as_echo_n "checking for $ac_word... " >&6; } 5815 if ${ac_cv_path_CUT+:} false; then : 5816 $as_echo_n "(cached) " >&6 5817 else 5818 case $CUT in 5819 [\\/]* | ?:[\\/]*) 5820 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5821 ;; 5822 *) 5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5824 for as_dir in $PATH 5825 do 5826 IFS=$as_save_IFS 5827 test -z "$as_dir" && as_dir=. 5828 for ac_exec_ext in '' $ac_executable_extensions; do 5829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5830 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5832 break 2 5833 fi 5834 done 5835 done 5836 IFS=$as_save_IFS 5837 5838 ;; 5839 esac 5840 fi 5841 CUT=$ac_cv_path_CUT 5842 if test -n "$CUT"; then 5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5844 $as_echo "$CUT" >&6; } 5845 else 5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5847 $as_echo "no" >&6; } 5848 fi 5849 5850 5851 test -n "$CUT" && break 5852 done 5853 5854 else 5855 # The variable is set, but is it from the command line or the environment? 5856 5857 # Try to remove the string !CUT! from our list. 5858 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 5859 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5860 # If it failed, the variable was not from the command line. Ignore it, 5861 # but warn the user (except for BASH, which is always set by the calling BASH). 5862 if test "xCUT" != xBASH; then 5863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 5864 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 5865 fi 5866 # Try to locate tool using the code snippet 5867 for ac_prog in cut 5868 do 5869 # Extract the first word of "$ac_prog", so it can be a program name with args. 5870 set dummy $ac_prog; ac_word=$2 5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5872 $as_echo_n "checking for $ac_word... " >&6; } 5873 if ${ac_cv_path_CUT+:} false; then : 5874 $as_echo_n "(cached) " >&6 5875 else 5876 case $CUT in 5877 [\\/]* | ?:[\\/]*) 5878 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5879 ;; 5880 *) 5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5882 for as_dir in $PATH 5883 do 5884 IFS=$as_save_IFS 5885 test -z "$as_dir" && as_dir=. 5886 for ac_exec_ext in '' $ac_executable_extensions; do 5887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5888 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5890 break 2 5891 fi 5892 done 5893 done 5894 IFS=$as_save_IFS 5895 5896 ;; 5897 esac 5898 fi 5899 CUT=$ac_cv_path_CUT 5900 if test -n "$CUT"; then 5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5902 $as_echo "$CUT" >&6; } 5903 else 5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5905 $as_echo "no" >&6; } 5906 fi 5907 5908 5909 test -n "$CUT" && break 5910 done 5911 5912 else 5913 # If it succeeded, then it was overridden by the user. We will use it 5914 # for the tool. 5915 5916 # First remove it from the list of overridden variables, so we can test 5917 # for unknown variables in the end. 5918 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5919 5920 # Check if the provided tool contains a complete path. 5921 tool_specified="$CUT" 5922 tool_basename="${tool_specified##*/}" 5923 if test "x$tool_basename" = "x$tool_specified"; then 5924 # A command without a complete path is provided, search $PATH. 5925 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 5926 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 5927 # Extract the first word of "$tool_basename", so it can be a program name with args. 5928 set dummy $tool_basename; ac_word=$2 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5930 $as_echo_n "checking for $ac_word... " >&6; } 5931 if ${ac_cv_path_CUT+:} false; then : 5932 $as_echo_n "(cached) " >&6 5933 else 5934 case $CUT in 5935 [\\/]* | ?:[\\/]*) 5936 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5937 ;; 5938 *) 5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5940 for as_dir in $PATH 5941 do 5942 IFS=$as_save_IFS 5943 test -z "$as_dir" && as_dir=. 5944 for ac_exec_ext in '' $ac_executable_extensions; do 5945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5946 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5948 break 2 5949 fi 5950 done 5951 done 5952 IFS=$as_save_IFS 5953 5954 ;; 5955 esac 5956 fi 5957 CUT=$ac_cv_path_CUT 5958 if test -n "$CUT"; then 5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5960 $as_echo "$CUT" >&6; } 5961 else 5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5963 $as_echo "no" >&6; } 5964 fi 5965 5966 5967 if test "x$CUT" = x; then 5968 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5969 fi 5970 else 5971 # Otherwise we believe it is a complete path. Use it as it is. 5972 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 5973 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 5975 $as_echo_n "checking for CUT... " >&6; } 5976 if test ! -x "$tool_specified"; then 5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5978 $as_echo "not found" >&6; } 5979 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 5980 fi 5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5982 $as_echo "$tool_specified" >&6; } 5983 fi 5984 fi 5985 fi 5986 5987 5988 5989 if test "x$CUT" = x; then 5990 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 5991 fi 5992 5993 5994 5995 5996 5997 # Publish this variable in the help. 5998 5999 6000 if test "x$DATE" = x; then 6001 # The variable is not set by user, try to locate tool using the code snippet 6002 for ac_prog in date 6003 do 6004 # Extract the first word of "$ac_prog", so it can be a program name with args. 6005 set dummy $ac_prog; ac_word=$2 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6007 $as_echo_n "checking for $ac_word... " >&6; } 6008 if ${ac_cv_path_DATE+:} false; then : 6009 $as_echo_n "(cached) " >&6 6010 else 6011 case $DATE in 6012 [\\/]* | ?:[\\/]*) 6013 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6014 ;; 6015 *) 6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6017 for as_dir in $PATH 6018 do 6019 IFS=$as_save_IFS 6020 test -z "$as_dir" && as_dir=. 6021 for ac_exec_ext in '' $ac_executable_extensions; do 6022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6023 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6025 break 2 6026 fi 6027 done 6028 done 6029 IFS=$as_save_IFS 6030 6031 ;; 6032 esac 6033 fi 6034 DATE=$ac_cv_path_DATE 6035 if test -n "$DATE"; then 6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6037 $as_echo "$DATE" >&6; } 6038 else 6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6040 $as_echo "no" >&6; } 6041 fi 6042 6043 6044 test -n "$DATE" && break 6045 done 6046 6047 else 6048 # The variable is set, but is it from the command line or the environment? 6049 6050 # Try to remove the string !DATE! from our list. 6051 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6052 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6053 # If it failed, the variable was not from the command line. Ignore it, 6054 # but warn the user (except for BASH, which is always set by the calling BASH). 6055 if test "xDATE" != xBASH; then 6056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6057 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6058 fi 6059 # Try to locate tool using the code snippet 6060 for ac_prog in date 6061 do 6062 # Extract the first word of "$ac_prog", so it can be a program name with args. 6063 set dummy $ac_prog; ac_word=$2 6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6065 $as_echo_n "checking for $ac_word... " >&6; } 6066 if ${ac_cv_path_DATE+:} false; then : 6067 $as_echo_n "(cached) " >&6 6068 else 6069 case $DATE in 6070 [\\/]* | ?:[\\/]*) 6071 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6072 ;; 6073 *) 6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6075 for as_dir in $PATH 6076 do 6077 IFS=$as_save_IFS 6078 test -z "$as_dir" && as_dir=. 6079 for ac_exec_ext in '' $ac_executable_extensions; do 6080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6081 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6083 break 2 6084 fi 6085 done 6086 done 6087 IFS=$as_save_IFS 6088 6089 ;; 6090 esac 6091 fi 6092 DATE=$ac_cv_path_DATE 6093 if test -n "$DATE"; then 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6095 $as_echo "$DATE" >&6; } 6096 else 6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6098 $as_echo "no" >&6; } 6099 fi 6100 6101 6102 test -n "$DATE" && break 6103 done 6104 6105 else 6106 # If it succeeded, then it was overridden by the user. We will use it 6107 # for the tool. 6108 6109 # First remove it from the list of overridden variables, so we can test 6110 # for unknown variables in the end. 6111 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6112 6113 # Check if the provided tool contains a complete path. 6114 tool_specified="$DATE" 6115 tool_basename="${tool_specified##*/}" 6116 if test "x$tool_basename" = "x$tool_specified"; then 6117 # A command without a complete path is provided, search $PATH. 6118 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6119 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6120 # Extract the first word of "$tool_basename", so it can be a program name with args. 6121 set dummy $tool_basename; ac_word=$2 6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6123 $as_echo_n "checking for $ac_word... " >&6; } 6124 if ${ac_cv_path_DATE+:} false; then : 6125 $as_echo_n "(cached) " >&6 6126 else 6127 case $DATE in 6128 [\\/]* | ?:[\\/]*) 6129 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6130 ;; 6131 *) 6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6133 for as_dir in $PATH 6134 do 6135 IFS=$as_save_IFS 6136 test -z "$as_dir" && as_dir=. 6137 for ac_exec_ext in '' $ac_executable_extensions; do 6138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6139 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6141 break 2 6142 fi 6143 done 6144 done 6145 IFS=$as_save_IFS 6146 6147 ;; 6148 esac 6149 fi 6150 DATE=$ac_cv_path_DATE 6151 if test -n "$DATE"; then 6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6153 $as_echo "$DATE" >&6; } 6154 else 6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6156 $as_echo "no" >&6; } 6157 fi 6158 6159 6160 if test "x$DATE" = x; then 6161 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6162 fi 6163 else 6164 # Otherwise we believe it is a complete path. Use it as it is. 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6166 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6168 $as_echo_n "checking for DATE... " >&6; } 6169 if test ! -x "$tool_specified"; then 6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6171 $as_echo "not found" >&6; } 6172 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6173 fi 6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6175 $as_echo "$tool_specified" >&6; } 6176 fi 6177 fi 6178 fi 6179 6180 6181 6182 if test "x$DATE" = x; then 6183 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6184 fi 6185 6186 6187 6188 6189 6190 # Publish this variable in the help. 6191 6192 6193 if test "x$DIFF" = x; then 6194 # The variable is not set by user, try to locate tool using the code snippet 6195 for ac_prog in gdiff diff 6196 do 6197 # Extract the first word of "$ac_prog", so it can be a program name with args. 6198 set dummy $ac_prog; ac_word=$2 6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6200 $as_echo_n "checking for $ac_word... " >&6; } 6201 if ${ac_cv_path_DIFF+:} false; then : 6202 $as_echo_n "(cached) " >&6 6203 else 6204 case $DIFF in 6205 [\\/]* | ?:[\\/]*) 6206 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6207 ;; 6208 *) 6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6210 for as_dir in $PATH 6211 do 6212 IFS=$as_save_IFS 6213 test -z "$as_dir" && as_dir=. 6214 for ac_exec_ext in '' $ac_executable_extensions; do 6215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6216 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6218 break 2 6219 fi 6220 done 6221 done 6222 IFS=$as_save_IFS 6223 6224 ;; 6225 esac 6226 fi 6227 DIFF=$ac_cv_path_DIFF 6228 if test -n "$DIFF"; then 6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6230 $as_echo "$DIFF" >&6; } 6231 else 6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6233 $as_echo "no" >&6; } 6234 fi 6235 6236 6237 test -n "$DIFF" && break 6238 done 6239 6240 else 6241 # The variable is set, but is it from the command line or the environment? 6242 6243 # Try to remove the string !DIFF! from our list. 6244 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 6245 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6246 # If it failed, the variable was not from the command line. Ignore it, 6247 # but warn the user (except for BASH, which is always set by the calling BASH). 6248 if test "xDIFF" != xBASH; then 6249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 6250 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 6251 fi 6252 # Try to locate tool using the code snippet 6253 for ac_prog in gdiff diff 6254 do 6255 # Extract the first word of "$ac_prog", so it can be a program name with args. 6256 set dummy $ac_prog; ac_word=$2 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6258 $as_echo_n "checking for $ac_word... " >&6; } 6259 if ${ac_cv_path_DIFF+:} false; then : 6260 $as_echo_n "(cached) " >&6 6261 else 6262 case $DIFF in 6263 [\\/]* | ?:[\\/]*) 6264 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6265 ;; 6266 *) 6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6268 for as_dir in $PATH 6269 do 6270 IFS=$as_save_IFS 6271 test -z "$as_dir" && as_dir=. 6272 for ac_exec_ext in '' $ac_executable_extensions; do 6273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6274 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6276 break 2 6277 fi 6278 done 6279 done 6280 IFS=$as_save_IFS 6281 6282 ;; 6283 esac 6284 fi 6285 DIFF=$ac_cv_path_DIFF 6286 if test -n "$DIFF"; then 6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6288 $as_echo "$DIFF" >&6; } 6289 else 6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6291 $as_echo "no" >&6; } 6292 fi 6293 6294 6295 test -n "$DIFF" && break 6296 done 6297 6298 else 6299 # If it succeeded, then it was overridden by the user. We will use it 6300 # for the tool. 6301 6302 # First remove it from the list of overridden variables, so we can test 6303 # for unknown variables in the end. 6304 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6305 6306 # Check if the provided tool contains a complete path. 6307 tool_specified="$DIFF" 6308 tool_basename="${tool_specified##*/}" 6309 if test "x$tool_basename" = "x$tool_specified"; then 6310 # A command without a complete path is provided, search $PATH. 6311 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 6312 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 6313 # Extract the first word of "$tool_basename", so it can be a program name with args. 6314 set dummy $tool_basename; ac_word=$2 6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6316 $as_echo_n "checking for $ac_word... " >&6; } 6317 if ${ac_cv_path_DIFF+:} false; then : 6318 $as_echo_n "(cached) " >&6 6319 else 6320 case $DIFF in 6321 [\\/]* | ?:[\\/]*) 6322 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6323 ;; 6324 *) 6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6326 for as_dir in $PATH 6327 do 6328 IFS=$as_save_IFS 6329 test -z "$as_dir" && as_dir=. 6330 for ac_exec_ext in '' $ac_executable_extensions; do 6331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6332 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6334 break 2 6335 fi 6336 done 6337 done 6338 IFS=$as_save_IFS 6339 6340 ;; 6341 esac 6342 fi 6343 DIFF=$ac_cv_path_DIFF 6344 if test -n "$DIFF"; then 6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6346 $as_echo "$DIFF" >&6; } 6347 else 6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6349 $as_echo "no" >&6; } 6350 fi 6351 6352 6353 if test "x$DIFF" = x; then 6354 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6355 fi 6356 else 6357 # Otherwise we believe it is a complete path. Use it as it is. 6358 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 6359 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6361 $as_echo_n "checking for DIFF... " >&6; } 6362 if test ! -x "$tool_specified"; then 6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6364 $as_echo "not found" >&6; } 6365 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 6366 fi 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6368 $as_echo "$tool_specified" >&6; } 6369 fi 6370 fi 6371 fi 6372 6373 6374 6375 if test "x$DIFF" = x; then 6376 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 6377 fi 6378 6379 6380 6381 6382 6383 # Publish this variable in the help. 6384 6385 6386 if test "x$DIRNAME" = x; then 6387 # The variable is not set by user, try to locate tool using the code snippet 6388 for ac_prog in dirname 6389 do 6390 # Extract the first word of "$ac_prog", so it can be a program name with args. 6391 set dummy $ac_prog; ac_word=$2 6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6393 $as_echo_n "checking for $ac_word... " >&6; } 6394 if ${ac_cv_path_DIRNAME+:} false; then : 6395 $as_echo_n "(cached) " >&6 6396 else 6397 case $DIRNAME in 6398 [\\/]* | ?:[\\/]*) 6399 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6400 ;; 6401 *) 6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6403 for as_dir in $PATH 6404 do 6405 IFS=$as_save_IFS 6406 test -z "$as_dir" && as_dir=. 6407 for ac_exec_ext in '' $ac_executable_extensions; do 6408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6409 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6411 break 2 6412 fi 6413 done 6414 done 6415 IFS=$as_save_IFS 6416 6417 ;; 6418 esac 6419 fi 6420 DIRNAME=$ac_cv_path_DIRNAME 6421 if test -n "$DIRNAME"; then 6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6423 $as_echo "$DIRNAME" >&6; } 6424 else 6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6426 $as_echo "no" >&6; } 6427 fi 6428 6429 6430 test -n "$DIRNAME" && break 6431 done 6432 6433 else 6434 # The variable is set, but is it from the command line or the environment? 6435 6436 # Try to remove the string !DIRNAME! from our list. 6437 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 6438 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6439 # If it failed, the variable was not from the command line. Ignore it, 6440 # but warn the user (except for BASH, which is always set by the calling BASH). 6441 if test "xDIRNAME" != xBASH; then 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 6443 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 6444 fi 6445 # Try to locate tool using the code snippet 6446 for ac_prog in dirname 6447 do 6448 # Extract the first word of "$ac_prog", so it can be a program name with args. 6449 set dummy $ac_prog; ac_word=$2 6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6451 $as_echo_n "checking for $ac_word... " >&6; } 6452 if ${ac_cv_path_DIRNAME+:} false; then : 6453 $as_echo_n "(cached) " >&6 6454 else 6455 case $DIRNAME in 6456 [\\/]* | ?:[\\/]*) 6457 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6458 ;; 6459 *) 6460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6461 for as_dir in $PATH 6462 do 6463 IFS=$as_save_IFS 6464 test -z "$as_dir" && as_dir=. 6465 for ac_exec_ext in '' $ac_executable_extensions; do 6466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6467 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6469 break 2 6470 fi 6471 done 6472 done 6473 IFS=$as_save_IFS 6474 6475 ;; 6476 esac 6477 fi 6478 DIRNAME=$ac_cv_path_DIRNAME 6479 if test -n "$DIRNAME"; then 6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6481 $as_echo "$DIRNAME" >&6; } 6482 else 6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6484 $as_echo "no" >&6; } 6485 fi 6486 6487 6488 test -n "$DIRNAME" && break 6489 done 6490 6491 else 6492 # If it succeeded, then it was overridden by the user. We will use it 6493 # for the tool. 6494 6495 # First remove it from the list of overridden variables, so we can test 6496 # for unknown variables in the end. 6497 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6498 6499 # Check if the provided tool contains a complete path. 6500 tool_specified="$DIRNAME" 6501 tool_basename="${tool_specified##*/}" 6502 if test "x$tool_basename" = "x$tool_specified"; then 6503 # A command without a complete path is provided, search $PATH. 6504 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 6505 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 6506 # Extract the first word of "$tool_basename", so it can be a program name with args. 6507 set dummy $tool_basename; ac_word=$2 6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6509 $as_echo_n "checking for $ac_word... " >&6; } 6510 if ${ac_cv_path_DIRNAME+:} false; then : 6511 $as_echo_n "(cached) " >&6 6512 else 6513 case $DIRNAME in 6514 [\\/]* | ?:[\\/]*) 6515 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6516 ;; 6517 *) 6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6519 for as_dir in $PATH 6520 do 6521 IFS=$as_save_IFS 6522 test -z "$as_dir" && as_dir=. 6523 for ac_exec_ext in '' $ac_executable_extensions; do 6524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6525 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6527 break 2 6528 fi 6529 done 6530 done 6531 IFS=$as_save_IFS 6532 6533 ;; 6534 esac 6535 fi 6536 DIRNAME=$ac_cv_path_DIRNAME 6537 if test -n "$DIRNAME"; then 6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6539 $as_echo "$DIRNAME" >&6; } 6540 else 6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6542 $as_echo "no" >&6; } 6543 fi 6544 6545 6546 if test "x$DIRNAME" = x; then 6547 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6548 fi 6549 else 6550 # Otherwise we believe it is a complete path. Use it as it is. 6551 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 6552 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 6554 $as_echo_n "checking for DIRNAME... " >&6; } 6555 if test ! -x "$tool_specified"; then 6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6557 $as_echo "not found" >&6; } 6558 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 6559 fi 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6561 $as_echo "$tool_specified" >&6; } 6562 fi 6563 fi 6564 fi 6565 6566 6567 6568 if test "x$DIRNAME" = x; then 6569 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 6570 fi 6571 6572 6573 6574 6575 6576 # Publish this variable in the help. 6577 6578 6579 if test "x$ECHO" = x; then 6580 # The variable is not set by user, try to locate tool using the code snippet 6581 for ac_prog in echo 6582 do 6583 # Extract the first word of "$ac_prog", so it can be a program name with args. 6584 set dummy $ac_prog; ac_word=$2 6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6586 $as_echo_n "checking for $ac_word... " >&6; } 6587 if ${ac_cv_path_ECHO+:} false; then : 6588 $as_echo_n "(cached) " >&6 6589 else 6590 case $ECHO in 6591 [\\/]* | ?:[\\/]*) 6592 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6593 ;; 6594 *) 6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6596 for as_dir in $PATH 6597 do 6598 IFS=$as_save_IFS 6599 test -z "$as_dir" && as_dir=. 6600 for ac_exec_ext in '' $ac_executable_extensions; do 6601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6602 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6604 break 2 6605 fi 6606 done 6607 done 6608 IFS=$as_save_IFS 6609 6610 ;; 6611 esac 6612 fi 6613 ECHO=$ac_cv_path_ECHO 6614 if test -n "$ECHO"; then 6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6616 $as_echo "$ECHO" >&6; } 6617 else 6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6619 $as_echo "no" >&6; } 6620 fi 6621 6622 6623 test -n "$ECHO" && break 6624 done 6625 6626 else 6627 # The variable is set, but is it from the command line or the environment? 6628 6629 # Try to remove the string !ECHO! from our list. 6630 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 6631 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6632 # If it failed, the variable was not from the command line. Ignore it, 6633 # but warn the user (except for BASH, which is always set by the calling BASH). 6634 if test "xECHO" != xBASH; then 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 6636 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 6637 fi 6638 # Try to locate tool using the code snippet 6639 for ac_prog in echo 6640 do 6641 # Extract the first word of "$ac_prog", so it can be a program name with args. 6642 set dummy $ac_prog; ac_word=$2 6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6644 $as_echo_n "checking for $ac_word... " >&6; } 6645 if ${ac_cv_path_ECHO+:} false; then : 6646 $as_echo_n "(cached) " >&6 6647 else 6648 case $ECHO in 6649 [\\/]* | ?:[\\/]*) 6650 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6651 ;; 6652 *) 6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6654 for as_dir in $PATH 6655 do 6656 IFS=$as_save_IFS 6657 test -z "$as_dir" && as_dir=. 6658 for ac_exec_ext in '' $ac_executable_extensions; do 6659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6660 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6662 break 2 6663 fi 6664 done 6665 done 6666 IFS=$as_save_IFS 6667 6668 ;; 6669 esac 6670 fi 6671 ECHO=$ac_cv_path_ECHO 6672 if test -n "$ECHO"; then 6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6674 $as_echo "$ECHO" >&6; } 6675 else 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6677 $as_echo "no" >&6; } 6678 fi 6679 6680 6681 test -n "$ECHO" && break 6682 done 6683 6684 else 6685 # If it succeeded, then it was overridden by the user. We will use it 6686 # for the tool. 6687 6688 # First remove it from the list of overridden variables, so we can test 6689 # for unknown variables in the end. 6690 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6691 6692 # Check if the provided tool contains a complete path. 6693 tool_specified="$ECHO" 6694 tool_basename="${tool_specified##*/}" 6695 if test "x$tool_basename" = "x$tool_specified"; then 6696 # A command without a complete path is provided, search $PATH. 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 6698 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 6699 # Extract the first word of "$tool_basename", so it can be a program name with args. 6700 set dummy $tool_basename; ac_word=$2 6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6702 $as_echo_n "checking for $ac_word... " >&6; } 6703 if ${ac_cv_path_ECHO+:} false; then : 6704 $as_echo_n "(cached) " >&6 6705 else 6706 case $ECHO in 6707 [\\/]* | ?:[\\/]*) 6708 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6709 ;; 6710 *) 6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6712 for as_dir in $PATH 6713 do 6714 IFS=$as_save_IFS 6715 test -z "$as_dir" && as_dir=. 6716 for ac_exec_ext in '' $ac_executable_extensions; do 6717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6718 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6720 break 2 6721 fi 6722 done 6723 done 6724 IFS=$as_save_IFS 6725 6726 ;; 6727 esac 6728 fi 6729 ECHO=$ac_cv_path_ECHO 6730 if test -n "$ECHO"; then 6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6732 $as_echo "$ECHO" >&6; } 6733 else 6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6735 $as_echo "no" >&6; } 6736 fi 6737 6738 6739 if test "x$ECHO" = x; then 6740 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6741 fi 6742 else 6743 # Otherwise we believe it is a complete path. Use it as it is. 6744 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 6745 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 6747 $as_echo_n "checking for ECHO... " >&6; } 6748 if test ! -x "$tool_specified"; then 6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6750 $as_echo "not found" >&6; } 6751 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 6752 fi 6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6754 $as_echo "$tool_specified" >&6; } 6755 fi 6756 fi 6757 fi 6758 6759 6760 6761 if test "x$ECHO" = x; then 6762 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 6763 fi 6764 6765 6766 6767 6768 6769 # Publish this variable in the help. 6770 6771 6772 if test "x$EXPR" = x; then 6773 # The variable is not set by user, try to locate tool using the code snippet 6774 for ac_prog in expr 6775 do 6776 # Extract the first word of "$ac_prog", so it can be a program name with args. 6777 set dummy $ac_prog; ac_word=$2 6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6779 $as_echo_n "checking for $ac_word... " >&6; } 6780 if ${ac_cv_path_EXPR+:} false; then : 6781 $as_echo_n "(cached) " >&6 6782 else 6783 case $EXPR in 6784 [\\/]* | ?:[\\/]*) 6785 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6786 ;; 6787 *) 6788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6789 for as_dir in $PATH 6790 do 6791 IFS=$as_save_IFS 6792 test -z "$as_dir" && as_dir=. 6793 for ac_exec_ext in '' $ac_executable_extensions; do 6794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6795 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6797 break 2 6798 fi 6799 done 6800 done 6801 IFS=$as_save_IFS 6802 6803 ;; 6804 esac 6805 fi 6806 EXPR=$ac_cv_path_EXPR 6807 if test -n "$EXPR"; then 6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6809 $as_echo "$EXPR" >&6; } 6810 else 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6812 $as_echo "no" >&6; } 6813 fi 6814 6815 6816 test -n "$EXPR" && break 6817 done 6818 6819 else 6820 # The variable is set, but is it from the command line or the environment? 6821 6822 # Try to remove the string !EXPR! from our list. 6823 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 6824 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6825 # If it failed, the variable was not from the command line. Ignore it, 6826 # but warn the user (except for BASH, which is always set by the calling BASH). 6827 if test "xEXPR" != xBASH; then 6828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 6829 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 6830 fi 6831 # Try to locate tool using the code snippet 6832 for ac_prog in expr 6833 do 6834 # Extract the first word of "$ac_prog", so it can be a program name with args. 6835 set dummy $ac_prog; ac_word=$2 6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6837 $as_echo_n "checking for $ac_word... " >&6; } 6838 if ${ac_cv_path_EXPR+:} false; then : 6839 $as_echo_n "(cached) " >&6 6840 else 6841 case $EXPR in 6842 [\\/]* | ?:[\\/]*) 6843 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6844 ;; 6845 *) 6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6847 for as_dir in $PATH 6848 do 6849 IFS=$as_save_IFS 6850 test -z "$as_dir" && as_dir=. 6851 for ac_exec_ext in '' $ac_executable_extensions; do 6852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6853 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6855 break 2 6856 fi 6857 done 6858 done 6859 IFS=$as_save_IFS 6860 6861 ;; 6862 esac 6863 fi 6864 EXPR=$ac_cv_path_EXPR 6865 if test -n "$EXPR"; then 6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6867 $as_echo "$EXPR" >&6; } 6868 else 6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6870 $as_echo "no" >&6; } 6871 fi 6872 6873 6874 test -n "$EXPR" && break 6875 done 6876 6877 else 6878 # If it succeeded, then it was overridden by the user. We will use it 6879 # for the tool. 6880 6881 # First remove it from the list of overridden variables, so we can test 6882 # for unknown variables in the end. 6883 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6884 6885 # Check if the provided tool contains a complete path. 6886 tool_specified="$EXPR" 6887 tool_basename="${tool_specified##*/}" 6888 if test "x$tool_basename" = "x$tool_specified"; then 6889 # A command without a complete path is provided, search $PATH. 6890 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 6891 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 6892 # Extract the first word of "$tool_basename", so it can be a program name with args. 6893 set dummy $tool_basename; ac_word=$2 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6895 $as_echo_n "checking for $ac_word... " >&6; } 6896 if ${ac_cv_path_EXPR+:} false; then : 6897 $as_echo_n "(cached) " >&6 6898 else 6899 case $EXPR in 6900 [\\/]* | ?:[\\/]*) 6901 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6902 ;; 6903 *) 6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6905 for as_dir in $PATH 6906 do 6907 IFS=$as_save_IFS 6908 test -z "$as_dir" && as_dir=. 6909 for ac_exec_ext in '' $ac_executable_extensions; do 6910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6911 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6913 break 2 6914 fi 6915 done 6916 done 6917 IFS=$as_save_IFS 6918 6919 ;; 6920 esac 6921 fi 6922 EXPR=$ac_cv_path_EXPR 6923 if test -n "$EXPR"; then 6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6925 $as_echo "$EXPR" >&6; } 6926 else 6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6928 $as_echo "no" >&6; } 6929 fi 6930 6931 6932 if test "x$EXPR" = x; then 6933 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6934 fi 6935 else 6936 # Otherwise we believe it is a complete path. Use it as it is. 6937 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 6938 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 6940 $as_echo_n "checking for EXPR... " >&6; } 6941 if test ! -x "$tool_specified"; then 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6943 $as_echo "not found" >&6; } 6944 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 6945 fi 6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6947 $as_echo "$tool_specified" >&6; } 6948 fi 6949 fi 6950 fi 6951 6952 6953 6954 if test "x$EXPR" = x; then 6955 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 6956 fi 6957 6958 6959 6960 6961 6962 # Publish this variable in the help. 6963 6964 6965 if test "x$FILE" = x; then 6966 # The variable is not set by user, try to locate tool using the code snippet 6967 for ac_prog in file 6968 do 6969 # Extract the first word of "$ac_prog", so it can be a program name with args. 6970 set dummy $ac_prog; ac_word=$2 6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6972 $as_echo_n "checking for $ac_word... " >&6; } 6973 if ${ac_cv_path_FILE+:} false; then : 6974 $as_echo_n "(cached) " >&6 6975 else 6976 case $FILE in 6977 [\\/]* | ?:[\\/]*) 6978 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 6979 ;; 6980 *) 6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6982 for as_dir in $PATH 6983 do 6984 IFS=$as_save_IFS 6985 test -z "$as_dir" && as_dir=. 6986 for ac_exec_ext in '' $ac_executable_extensions; do 6987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6988 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 6989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6990 break 2 6991 fi 6992 done 6993 done 6994 IFS=$as_save_IFS 6995 6996 ;; 6997 esac 6998 fi 6999 FILE=$ac_cv_path_FILE 7000 if test -n "$FILE"; then 7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7002 $as_echo "$FILE" >&6; } 7003 else 7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7005 $as_echo "no" >&6; } 7006 fi 7007 7008 7009 test -n "$FILE" && break 7010 done 7011 7012 else 7013 # The variable is set, but is it from the command line or the environment? 7014 7015 # Try to remove the string !FILE! from our list. 7016 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7017 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7018 # If it failed, the variable was not from the command line. Ignore it, 7019 # but warn the user (except for BASH, which is always set by the calling BASH). 7020 if test "xFILE" != xBASH; then 7021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7022 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7023 fi 7024 # Try to locate tool using the code snippet 7025 for ac_prog in file 7026 do 7027 # Extract the first word of "$ac_prog", so it can be a program name with args. 7028 set dummy $ac_prog; ac_word=$2 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7030 $as_echo_n "checking for $ac_word... " >&6; } 7031 if ${ac_cv_path_FILE+:} false; then : 7032 $as_echo_n "(cached) " >&6 7033 else 7034 case $FILE in 7035 [\\/]* | ?:[\\/]*) 7036 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7037 ;; 7038 *) 7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7040 for as_dir in $PATH 7041 do 7042 IFS=$as_save_IFS 7043 test -z "$as_dir" && as_dir=. 7044 for ac_exec_ext in '' $ac_executable_extensions; do 7045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7046 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7048 break 2 7049 fi 7050 done 7051 done 7052 IFS=$as_save_IFS 7053 7054 ;; 7055 esac 7056 fi 7057 FILE=$ac_cv_path_FILE 7058 if test -n "$FILE"; then 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7060 $as_echo "$FILE" >&6; } 7061 else 7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7063 $as_echo "no" >&6; } 7064 fi 7065 7066 7067 test -n "$FILE" && break 7068 done 7069 7070 else 7071 # If it succeeded, then it was overridden by the user. We will use it 7072 # for the tool. 7073 7074 # First remove it from the list of overridden variables, so we can test 7075 # for unknown variables in the end. 7076 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7077 7078 # Check if the provided tool contains a complete path. 7079 tool_specified="$FILE" 7080 tool_basename="${tool_specified##*/}" 7081 if test "x$tool_basename" = "x$tool_specified"; then 7082 # A command without a complete path is provided, search $PATH. 7083 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7084 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7085 # Extract the first word of "$tool_basename", so it can be a program name with args. 7086 set dummy $tool_basename; ac_word=$2 7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7088 $as_echo_n "checking for $ac_word... " >&6; } 7089 if ${ac_cv_path_FILE+:} false; then : 7090 $as_echo_n "(cached) " >&6 7091 else 7092 case $FILE in 7093 [\\/]* | ?:[\\/]*) 7094 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7095 ;; 7096 *) 7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7098 for as_dir in $PATH 7099 do 7100 IFS=$as_save_IFS 7101 test -z "$as_dir" && as_dir=. 7102 for ac_exec_ext in '' $ac_executable_extensions; do 7103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7104 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7106 break 2 7107 fi 7108 done 7109 done 7110 IFS=$as_save_IFS 7111 7112 ;; 7113 esac 7114 fi 7115 FILE=$ac_cv_path_FILE 7116 if test -n "$FILE"; then 7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7118 $as_echo "$FILE" >&6; } 7119 else 7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7121 $as_echo "no" >&6; } 7122 fi 7123 7124 7125 if test "x$FILE" = x; then 7126 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7127 fi 7128 else 7129 # Otherwise we believe it is a complete path. Use it as it is. 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7131 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7133 $as_echo_n "checking for FILE... " >&6; } 7134 if test ! -x "$tool_specified"; then 7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7136 $as_echo "not found" >&6; } 7137 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7138 fi 7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7140 $as_echo "$tool_specified" >&6; } 7141 fi 7142 fi 7143 fi 7144 7145 7146 7147 if test "x$FILE" = x; then 7148 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 7149 fi 7150 7151 7152 7153 7154 7155 # Publish this variable in the help. 7156 7157 7158 if test "x$FIND" = x; then 7159 # The variable is not set by user, try to locate tool using the code snippet 7160 for ac_prog in find 7161 do 7162 # Extract the first word of "$ac_prog", so it can be a program name with args. 7163 set dummy $ac_prog; ac_word=$2 7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7165 $as_echo_n "checking for $ac_word... " >&6; } 7166 if ${ac_cv_path_FIND+:} false; then : 7167 $as_echo_n "(cached) " >&6 7168 else 7169 case $FIND in 7170 [\\/]* | ?:[\\/]*) 7171 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7172 ;; 7173 *) 7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7175 for as_dir in $PATH 7176 do 7177 IFS=$as_save_IFS 7178 test -z "$as_dir" && as_dir=. 7179 for ac_exec_ext in '' $ac_executable_extensions; do 7180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7181 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7183 break 2 7184 fi 7185 done 7186 done 7187 IFS=$as_save_IFS 7188 7189 ;; 7190 esac 7191 fi 7192 FIND=$ac_cv_path_FIND 7193 if test -n "$FIND"; then 7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7195 $as_echo "$FIND" >&6; } 7196 else 7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7198 $as_echo "no" >&6; } 7199 fi 7200 7201 7202 test -n "$FIND" && break 7203 done 7204 7205 else 7206 # The variable is set, but is it from the command line or the environment? 7207 7208 # Try to remove the string !FIND! from our list. 7209 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 7210 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7211 # If it failed, the variable was not from the command line. Ignore it, 7212 # but warn the user (except for BASH, which is always set by the calling BASH). 7213 if test "xFIND" != xBASH; then 7214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 7215 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 7216 fi 7217 # Try to locate tool using the code snippet 7218 for ac_prog in find 7219 do 7220 # Extract the first word of "$ac_prog", so it can be a program name with args. 7221 set dummy $ac_prog; ac_word=$2 7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7223 $as_echo_n "checking for $ac_word... " >&6; } 7224 if ${ac_cv_path_FIND+:} false; then : 7225 $as_echo_n "(cached) " >&6 7226 else 7227 case $FIND in 7228 [\\/]* | ?:[\\/]*) 7229 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7230 ;; 7231 *) 7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7233 for as_dir in $PATH 7234 do 7235 IFS=$as_save_IFS 7236 test -z "$as_dir" && as_dir=. 7237 for ac_exec_ext in '' $ac_executable_extensions; do 7238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7239 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7241 break 2 7242 fi 7243 done 7244 done 7245 IFS=$as_save_IFS 7246 7247 ;; 7248 esac 7249 fi 7250 FIND=$ac_cv_path_FIND 7251 if test -n "$FIND"; then 7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7253 $as_echo "$FIND" >&6; } 7254 else 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7256 $as_echo "no" >&6; } 7257 fi 7258 7259 7260 test -n "$FIND" && break 7261 done 7262 7263 else 7264 # If it succeeded, then it was overridden by the user. We will use it 7265 # for the tool. 7266 7267 # First remove it from the list of overridden variables, so we can test 7268 # for unknown variables in the end. 7269 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7270 7271 # Check if the provided tool contains a complete path. 7272 tool_specified="$FIND" 7273 tool_basename="${tool_specified##*/}" 7274 if test "x$tool_basename" = "x$tool_specified"; then 7275 # A command without a complete path is provided, search $PATH. 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 7277 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 7278 # Extract the first word of "$tool_basename", so it can be a program name with args. 7279 set dummy $tool_basename; ac_word=$2 7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7281 $as_echo_n "checking for $ac_word... " >&6; } 7282 if ${ac_cv_path_FIND+:} false; then : 7283 $as_echo_n "(cached) " >&6 7284 else 7285 case $FIND in 7286 [\\/]* | ?:[\\/]*) 7287 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7288 ;; 7289 *) 7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7291 for as_dir in $PATH 7292 do 7293 IFS=$as_save_IFS 7294 test -z "$as_dir" && as_dir=. 7295 for ac_exec_ext in '' $ac_executable_extensions; do 7296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7297 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7299 break 2 7300 fi 7301 done 7302 done 7303 IFS=$as_save_IFS 7304 7305 ;; 7306 esac 7307 fi 7308 FIND=$ac_cv_path_FIND 7309 if test -n "$FIND"; then 7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7311 $as_echo "$FIND" >&6; } 7312 else 7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7314 $as_echo "no" >&6; } 7315 fi 7316 7317 7318 if test "x$FIND" = x; then 7319 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7320 fi 7321 else 7322 # Otherwise we believe it is a complete path. Use it as it is. 7323 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 7324 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7326 $as_echo_n "checking for FIND... " >&6; } 7327 if test ! -x "$tool_specified"; then 7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7329 $as_echo "not found" >&6; } 7330 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 7331 fi 7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7333 $as_echo "$tool_specified" >&6; } 7334 fi 7335 fi 7336 fi 7337 7338 7339 7340 if test "x$FIND" = x; then 7341 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 7342 fi 7343 7344 7345 7346 7347 7348 # Publish this variable in the help. 7349 7350 7351 if test "x$HEAD" = x; then 7352 # The variable is not set by user, try to locate tool using the code snippet 7353 for ac_prog in head 7354 do 7355 # Extract the first word of "$ac_prog", so it can be a program name with args. 7356 set dummy $ac_prog; ac_word=$2 7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7358 $as_echo_n "checking for $ac_word... " >&6; } 7359 if ${ac_cv_path_HEAD+:} false; then : 7360 $as_echo_n "(cached) " >&6 7361 else 7362 case $HEAD in 7363 [\\/]* | ?:[\\/]*) 7364 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7365 ;; 7366 *) 7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7368 for as_dir in $PATH 7369 do 7370 IFS=$as_save_IFS 7371 test -z "$as_dir" && as_dir=. 7372 for ac_exec_ext in '' $ac_executable_extensions; do 7373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7374 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7376 break 2 7377 fi 7378 done 7379 done 7380 IFS=$as_save_IFS 7381 7382 ;; 7383 esac 7384 fi 7385 HEAD=$ac_cv_path_HEAD 7386 if test -n "$HEAD"; then 7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7388 $as_echo "$HEAD" >&6; } 7389 else 7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7391 $as_echo "no" >&6; } 7392 fi 7393 7394 7395 test -n "$HEAD" && break 7396 done 7397 7398 else 7399 # The variable is set, but is it from the command line or the environment? 7400 7401 # Try to remove the string !HEAD! from our list. 7402 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 7403 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7404 # If it failed, the variable was not from the command line. Ignore it, 7405 # but warn the user (except for BASH, which is always set by the calling BASH). 7406 if test "xHEAD" != xBASH; then 7407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 7408 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 7409 fi 7410 # Try to locate tool using the code snippet 7411 for ac_prog in head 7412 do 7413 # Extract the first word of "$ac_prog", so it can be a program name with args. 7414 set dummy $ac_prog; ac_word=$2 7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7416 $as_echo_n "checking for $ac_word... " >&6; } 7417 if ${ac_cv_path_HEAD+:} false; then : 7418 $as_echo_n "(cached) " >&6 7419 else 7420 case $HEAD in 7421 [\\/]* | ?:[\\/]*) 7422 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7423 ;; 7424 *) 7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7426 for as_dir in $PATH 7427 do 7428 IFS=$as_save_IFS 7429 test -z "$as_dir" && as_dir=. 7430 for ac_exec_ext in '' $ac_executable_extensions; do 7431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7432 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7434 break 2 7435 fi 7436 done 7437 done 7438 IFS=$as_save_IFS 7439 7440 ;; 7441 esac 7442 fi 7443 HEAD=$ac_cv_path_HEAD 7444 if test -n "$HEAD"; then 7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7446 $as_echo "$HEAD" >&6; } 7447 else 7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7449 $as_echo "no" >&6; } 7450 fi 7451 7452 7453 test -n "$HEAD" && break 7454 done 7455 7456 else 7457 # If it succeeded, then it was overridden by the user. We will use it 7458 # for the tool. 7459 7460 # First remove it from the list of overridden variables, so we can test 7461 # for unknown variables in the end. 7462 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7463 7464 # Check if the provided tool contains a complete path. 7465 tool_specified="$HEAD" 7466 tool_basename="${tool_specified##*/}" 7467 if test "x$tool_basename" = "x$tool_specified"; then 7468 # A command without a complete path is provided, search $PATH. 7469 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 7470 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 7471 # Extract the first word of "$tool_basename", so it can be a program name with args. 7472 set dummy $tool_basename; ac_word=$2 7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7474 $as_echo_n "checking for $ac_word... " >&6; } 7475 if ${ac_cv_path_HEAD+:} false; then : 7476 $as_echo_n "(cached) " >&6 7477 else 7478 case $HEAD in 7479 [\\/]* | ?:[\\/]*) 7480 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7481 ;; 7482 *) 7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7484 for as_dir in $PATH 7485 do 7486 IFS=$as_save_IFS 7487 test -z "$as_dir" && as_dir=. 7488 for ac_exec_ext in '' $ac_executable_extensions; do 7489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7490 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7492 break 2 7493 fi 7494 done 7495 done 7496 IFS=$as_save_IFS 7497 7498 ;; 7499 esac 7500 fi 7501 HEAD=$ac_cv_path_HEAD 7502 if test -n "$HEAD"; then 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7504 $as_echo "$HEAD" >&6; } 7505 else 7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7507 $as_echo "no" >&6; } 7508 fi 7509 7510 7511 if test "x$HEAD" = x; then 7512 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7513 fi 7514 else 7515 # Otherwise we believe it is a complete path. Use it as it is. 7516 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 7517 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 7519 $as_echo_n "checking for HEAD... " >&6; } 7520 if test ! -x "$tool_specified"; then 7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7522 $as_echo "not found" >&6; } 7523 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 7524 fi 7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7526 $as_echo "$tool_specified" >&6; } 7527 fi 7528 fi 7529 fi 7530 7531 7532 7533 if test "x$HEAD" = x; then 7534 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 7535 fi 7536 7537 7538 7539 7540 7541 # Publish this variable in the help. 7542 7543 7544 if test "x$LN" = x; then 7545 # The variable is not set by user, try to locate tool using the code snippet 7546 for ac_prog in ln 7547 do 7548 # Extract the first word of "$ac_prog", so it can be a program name with args. 7549 set dummy $ac_prog; ac_word=$2 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7551 $as_echo_n "checking for $ac_word... " >&6; } 7552 if ${ac_cv_path_LN+:} false; then : 7553 $as_echo_n "(cached) " >&6 7554 else 7555 case $LN in 7556 [\\/]* | ?:[\\/]*) 7557 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7558 ;; 7559 *) 7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7561 for as_dir in $PATH 7562 do 7563 IFS=$as_save_IFS 7564 test -z "$as_dir" && as_dir=. 7565 for ac_exec_ext in '' $ac_executable_extensions; do 7566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7567 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7569 break 2 7570 fi 7571 done 7572 done 7573 IFS=$as_save_IFS 7574 7575 ;; 7576 esac 7577 fi 7578 LN=$ac_cv_path_LN 7579 if test -n "$LN"; then 7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7581 $as_echo "$LN" >&6; } 7582 else 7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7584 $as_echo "no" >&6; } 7585 fi 7586 7587 7588 test -n "$LN" && break 7589 done 7590 7591 else 7592 # The variable is set, but is it from the command line or the environment? 7593 7594 # Try to remove the string !LN! from our list. 7595 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 7596 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7597 # If it failed, the variable was not from the command line. Ignore it, 7598 # but warn the user (except for BASH, which is always set by the calling BASH). 7599 if test "xLN" != xBASH; then 7600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 7601 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 7602 fi 7603 # Try to locate tool using the code snippet 7604 for ac_prog in ln 7605 do 7606 # Extract the first word of "$ac_prog", so it can be a program name with args. 7607 set dummy $ac_prog; ac_word=$2 7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7609 $as_echo_n "checking for $ac_word... " >&6; } 7610 if ${ac_cv_path_LN+:} false; then : 7611 $as_echo_n "(cached) " >&6 7612 else 7613 case $LN in 7614 [\\/]* | ?:[\\/]*) 7615 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7616 ;; 7617 *) 7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7619 for as_dir in $PATH 7620 do 7621 IFS=$as_save_IFS 7622 test -z "$as_dir" && as_dir=. 7623 for ac_exec_ext in '' $ac_executable_extensions; do 7624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7625 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7627 break 2 7628 fi 7629 done 7630 done 7631 IFS=$as_save_IFS 7632 7633 ;; 7634 esac 7635 fi 7636 LN=$ac_cv_path_LN 7637 if test -n "$LN"; then 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7639 $as_echo "$LN" >&6; } 7640 else 7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7642 $as_echo "no" >&6; } 7643 fi 7644 7645 7646 test -n "$LN" && break 7647 done 7648 7649 else 7650 # If it succeeded, then it was overridden by the user. We will use it 7651 # for the tool. 7652 7653 # First remove it from the list of overridden variables, so we can test 7654 # for unknown variables in the end. 7655 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7656 7657 # Check if the provided tool contains a complete path. 7658 tool_specified="$LN" 7659 tool_basename="${tool_specified##*/}" 7660 if test "x$tool_basename" = "x$tool_specified"; then 7661 # A command without a complete path is provided, search $PATH. 7662 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 7663 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 7664 # Extract the first word of "$tool_basename", so it can be a program name with args. 7665 set dummy $tool_basename; ac_word=$2 7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7667 $as_echo_n "checking for $ac_word... " >&6; } 7668 if ${ac_cv_path_LN+:} false; then : 7669 $as_echo_n "(cached) " >&6 7670 else 7671 case $LN in 7672 [\\/]* | ?:[\\/]*) 7673 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7674 ;; 7675 *) 7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7677 for as_dir in $PATH 7678 do 7679 IFS=$as_save_IFS 7680 test -z "$as_dir" && as_dir=. 7681 for ac_exec_ext in '' $ac_executable_extensions; do 7682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7683 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7685 break 2 7686 fi 7687 done 7688 done 7689 IFS=$as_save_IFS 7690 7691 ;; 7692 esac 7693 fi 7694 LN=$ac_cv_path_LN 7695 if test -n "$LN"; then 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7697 $as_echo "$LN" >&6; } 7698 else 7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7700 $as_echo "no" >&6; } 7701 fi 7702 7703 7704 if test "x$LN" = x; then 7705 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7706 fi 7707 else 7708 # Otherwise we believe it is a complete path. Use it as it is. 7709 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 7710 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 7712 $as_echo_n "checking for LN... " >&6; } 7713 if test ! -x "$tool_specified"; then 7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7715 $as_echo "not found" >&6; } 7716 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 7717 fi 7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7719 $as_echo "$tool_specified" >&6; } 7720 fi 7721 fi 7722 fi 7723 7724 7725 7726 if test "x$LN" = x; then 7727 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 7728 fi 7729 7730 7731 7732 7733 7734 # Publish this variable in the help. 7735 7736 7737 if test "x$LS" = x; then 7738 # The variable is not set by user, try to locate tool using the code snippet 7739 for ac_prog in ls 7740 do 7741 # Extract the first word of "$ac_prog", so it can be a program name with args. 7742 set dummy $ac_prog; ac_word=$2 7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7744 $as_echo_n "checking for $ac_word... " >&6; } 7745 if ${ac_cv_path_LS+:} false; then : 7746 $as_echo_n "(cached) " >&6 7747 else 7748 case $LS in 7749 [\\/]* | ?:[\\/]*) 7750 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7751 ;; 7752 *) 7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7754 for as_dir in $PATH 7755 do 7756 IFS=$as_save_IFS 7757 test -z "$as_dir" && as_dir=. 7758 for ac_exec_ext in '' $ac_executable_extensions; do 7759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7760 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7762 break 2 7763 fi 7764 done 7765 done 7766 IFS=$as_save_IFS 7767 7768 ;; 7769 esac 7770 fi 7771 LS=$ac_cv_path_LS 7772 if test -n "$LS"; then 7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7774 $as_echo "$LS" >&6; } 7775 else 7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7777 $as_echo "no" >&6; } 7778 fi 7779 7780 7781 test -n "$LS" && break 7782 done 7783 7784 else 7785 # The variable is set, but is it from the command line or the environment? 7786 7787 # Try to remove the string !LS! from our list. 7788 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 7789 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7790 # If it failed, the variable was not from the command line. Ignore it, 7791 # but warn the user (except for BASH, which is always set by the calling BASH). 7792 if test "xLS" != xBASH; then 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 7794 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 7795 fi 7796 # Try to locate tool using the code snippet 7797 for ac_prog in ls 7798 do 7799 # Extract the first word of "$ac_prog", so it can be a program name with args. 7800 set dummy $ac_prog; ac_word=$2 7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7802 $as_echo_n "checking for $ac_word... " >&6; } 7803 if ${ac_cv_path_LS+:} false; then : 7804 $as_echo_n "(cached) " >&6 7805 else 7806 case $LS in 7807 [\\/]* | ?:[\\/]*) 7808 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7809 ;; 7810 *) 7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7812 for as_dir in $PATH 7813 do 7814 IFS=$as_save_IFS 7815 test -z "$as_dir" && as_dir=. 7816 for ac_exec_ext in '' $ac_executable_extensions; do 7817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7818 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7820 break 2 7821 fi 7822 done 7823 done 7824 IFS=$as_save_IFS 7825 7826 ;; 7827 esac 7828 fi 7829 LS=$ac_cv_path_LS 7830 if test -n "$LS"; then 7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7832 $as_echo "$LS" >&6; } 7833 else 7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7835 $as_echo "no" >&6; } 7836 fi 7837 7838 7839 test -n "$LS" && break 7840 done 7841 7842 else 7843 # If it succeeded, then it was overridden by the user. We will use it 7844 # for the tool. 7845 7846 # First remove it from the list of overridden variables, so we can test 7847 # for unknown variables in the end. 7848 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7849 7850 # Check if the provided tool contains a complete path. 7851 tool_specified="$LS" 7852 tool_basename="${tool_specified##*/}" 7853 if test "x$tool_basename" = "x$tool_specified"; then 7854 # A command without a complete path is provided, search $PATH. 7855 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 7856 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 7857 # Extract the first word of "$tool_basename", so it can be a program name with args. 7858 set dummy $tool_basename; ac_word=$2 7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7860 $as_echo_n "checking for $ac_word... " >&6; } 7861 if ${ac_cv_path_LS+:} false; then : 7862 $as_echo_n "(cached) " >&6 7863 else 7864 case $LS in 7865 [\\/]* | ?:[\\/]*) 7866 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7867 ;; 7868 *) 7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7870 for as_dir in $PATH 7871 do 7872 IFS=$as_save_IFS 7873 test -z "$as_dir" && as_dir=. 7874 for ac_exec_ext in '' $ac_executable_extensions; do 7875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7876 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7878 break 2 7879 fi 7880 done 7881 done 7882 IFS=$as_save_IFS 7883 7884 ;; 7885 esac 7886 fi 7887 LS=$ac_cv_path_LS 7888 if test -n "$LS"; then 7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7890 $as_echo "$LS" >&6; } 7891 else 7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7893 $as_echo "no" >&6; } 7894 fi 7895 7896 7897 if test "x$LS" = x; then 7898 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7899 fi 7900 else 7901 # Otherwise we believe it is a complete path. Use it as it is. 7902 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 7903 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 7905 $as_echo_n "checking for LS... " >&6; } 7906 if test ! -x "$tool_specified"; then 7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7908 $as_echo "not found" >&6; } 7909 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 7910 fi 7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7912 $as_echo "$tool_specified" >&6; } 7913 fi 7914 fi 7915 fi 7916 7917 7918 7919 if test "x$LS" = x; then 7920 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 7921 fi 7922 7923 7924 7925 7926 7927 # Publish this variable in the help. 7928 7929 7930 if test "x$MKDIR" = x; then 7931 # The variable is not set by user, try to locate tool using the code snippet 7932 for ac_prog in mkdir 7933 do 7934 # Extract the first word of "$ac_prog", so it can be a program name with args. 7935 set dummy $ac_prog; ac_word=$2 7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7937 $as_echo_n "checking for $ac_word... " >&6; } 7938 if ${ac_cv_path_MKDIR+:} false; then : 7939 $as_echo_n "(cached) " >&6 7940 else 7941 case $MKDIR in 7942 [\\/]* | ?:[\\/]*) 7943 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7944 ;; 7945 *) 7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7947 for as_dir in $PATH 7948 do 7949 IFS=$as_save_IFS 7950 test -z "$as_dir" && as_dir=. 7951 for ac_exec_ext in '' $ac_executable_extensions; do 7952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7953 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7955 break 2 7956 fi 7957 done 7958 done 7959 IFS=$as_save_IFS 7960 7961 ;; 7962 esac 7963 fi 7964 MKDIR=$ac_cv_path_MKDIR 7965 if test -n "$MKDIR"; then 7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7967 $as_echo "$MKDIR" >&6; } 7968 else 7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7970 $as_echo "no" >&6; } 7971 fi 7972 7973 7974 test -n "$MKDIR" && break 7975 done 7976 7977 else 7978 # The variable is set, but is it from the command line or the environment? 7979 7980 # Try to remove the string !MKDIR! from our list. 7981 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 7982 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7983 # If it failed, the variable was not from the command line. Ignore it, 7984 # but warn the user (except for BASH, which is always set by the calling BASH). 7985 if test "xMKDIR" != xBASH; then 7986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 7987 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 7988 fi 7989 # Try to locate tool using the code snippet 7990 for ac_prog in mkdir 7991 do 7992 # Extract the first word of "$ac_prog", so it can be a program name with args. 7993 set dummy $ac_prog; ac_word=$2 7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7995 $as_echo_n "checking for $ac_word... " >&6; } 7996 if ${ac_cv_path_MKDIR+:} false; then : 7997 $as_echo_n "(cached) " >&6 7998 else 7999 case $MKDIR in 8000 [\\/]* | ?:[\\/]*) 8001 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8002 ;; 8003 *) 8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8005 for as_dir in $PATH 8006 do 8007 IFS=$as_save_IFS 8008 test -z "$as_dir" && as_dir=. 8009 for ac_exec_ext in '' $ac_executable_extensions; do 8010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8011 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8013 break 2 8014 fi 8015 done 8016 done 8017 IFS=$as_save_IFS 8018 8019 ;; 8020 esac 8021 fi 8022 MKDIR=$ac_cv_path_MKDIR 8023 if test -n "$MKDIR"; then 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8025 $as_echo "$MKDIR" >&6; } 8026 else 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8028 $as_echo "no" >&6; } 8029 fi 8030 8031 8032 test -n "$MKDIR" && break 8033 done 8034 8035 else 8036 # If it succeeded, then it was overridden by the user. We will use it 8037 # for the tool. 8038 8039 # First remove it from the list of overridden variables, so we can test 8040 # for unknown variables in the end. 8041 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8042 8043 # Check if the provided tool contains a complete path. 8044 tool_specified="$MKDIR" 8045 tool_basename="${tool_specified##*/}" 8046 if test "x$tool_basename" = "x$tool_specified"; then 8047 # A command without a complete path is provided, search $PATH. 8048 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 8049 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 8050 # Extract the first word of "$tool_basename", so it can be a program name with args. 8051 set dummy $tool_basename; ac_word=$2 8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8053 $as_echo_n "checking for $ac_word... " >&6; } 8054 if ${ac_cv_path_MKDIR+:} false; then : 8055 $as_echo_n "(cached) " >&6 8056 else 8057 case $MKDIR in 8058 [\\/]* | ?:[\\/]*) 8059 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8060 ;; 8061 *) 8062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8063 for as_dir in $PATH 8064 do 8065 IFS=$as_save_IFS 8066 test -z "$as_dir" && as_dir=. 8067 for ac_exec_ext in '' $ac_executable_extensions; do 8068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8069 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8071 break 2 8072 fi 8073 done 8074 done 8075 IFS=$as_save_IFS 8076 8077 ;; 8078 esac 8079 fi 8080 MKDIR=$ac_cv_path_MKDIR 8081 if test -n "$MKDIR"; then 8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8083 $as_echo "$MKDIR" >&6; } 8084 else 8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8086 $as_echo "no" >&6; } 8087 fi 8088 8089 8090 if test "x$MKDIR" = x; then 8091 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8092 fi 8093 else 8094 # Otherwise we believe it is a complete path. Use it as it is. 8095 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 8096 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8098 $as_echo_n "checking for MKDIR... " >&6; } 8099 if test ! -x "$tool_specified"; then 8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8101 $as_echo "not found" >&6; } 8102 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 8103 fi 8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8105 $as_echo "$tool_specified" >&6; } 8106 fi 8107 fi 8108 fi 8109 8110 8111 8112 if test "x$MKDIR" = x; then 8113 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 8114 fi 8115 8116 8117 8118 8119 8120 # Publish this variable in the help. 8121 8122 8123 if test "x$MKTEMP" = x; then 8124 # The variable is not set by user, try to locate tool using the code snippet 8125 for ac_prog in mktemp 8126 do 8127 # Extract the first word of "$ac_prog", so it can be a program name with args. 8128 set dummy $ac_prog; ac_word=$2 8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8130 $as_echo_n "checking for $ac_word... " >&6; } 8131 if ${ac_cv_path_MKTEMP+:} false; then : 8132 $as_echo_n "(cached) " >&6 8133 else 8134 case $MKTEMP in 8135 [\\/]* | ?:[\\/]*) 8136 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8137 ;; 8138 *) 8139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8140 for as_dir in $PATH 8141 do 8142 IFS=$as_save_IFS 8143 test -z "$as_dir" && as_dir=. 8144 for ac_exec_ext in '' $ac_executable_extensions; do 8145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8146 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8148 break 2 8149 fi 8150 done 8151 done 8152 IFS=$as_save_IFS 8153 8154 ;; 8155 esac 8156 fi 8157 MKTEMP=$ac_cv_path_MKTEMP 8158 if test -n "$MKTEMP"; then 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8160 $as_echo "$MKTEMP" >&6; } 8161 else 8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8163 $as_echo "no" >&6; } 8164 fi 8165 8166 8167 test -n "$MKTEMP" && break 8168 done 8169 8170 else 8171 # The variable is set, but is it from the command line or the environment? 8172 8173 # Try to remove the string !MKTEMP! from our list. 8174 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 8175 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8176 # If it failed, the variable was not from the command line. Ignore it, 8177 # but warn the user (except for BASH, which is always set by the calling BASH). 8178 if test "xMKTEMP" != xBASH; then 8179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 8180 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 8181 fi 8182 # Try to locate tool using the code snippet 8183 for ac_prog in mktemp 8184 do 8185 # Extract the first word of "$ac_prog", so it can be a program name with args. 8186 set dummy $ac_prog; ac_word=$2 8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8188 $as_echo_n "checking for $ac_word... " >&6; } 8189 if ${ac_cv_path_MKTEMP+:} false; then : 8190 $as_echo_n "(cached) " >&6 8191 else 8192 case $MKTEMP in 8193 [\\/]* | ?:[\\/]*) 8194 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8195 ;; 8196 *) 8197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8198 for as_dir in $PATH 8199 do 8200 IFS=$as_save_IFS 8201 test -z "$as_dir" && as_dir=. 8202 for ac_exec_ext in '' $ac_executable_extensions; do 8203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8204 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8206 break 2 8207 fi 8208 done 8209 done 8210 IFS=$as_save_IFS 8211 8212 ;; 8213 esac 8214 fi 8215 MKTEMP=$ac_cv_path_MKTEMP 8216 if test -n "$MKTEMP"; then 8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8218 $as_echo "$MKTEMP" >&6; } 8219 else 8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8221 $as_echo "no" >&6; } 8222 fi 8223 8224 8225 test -n "$MKTEMP" && break 8226 done 8227 8228 else 8229 # If it succeeded, then it was overridden by the user. We will use it 8230 # for the tool. 8231 8232 # First remove it from the list of overridden variables, so we can test 8233 # for unknown variables in the end. 8234 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8235 8236 # Check if the provided tool contains a complete path. 8237 tool_specified="$MKTEMP" 8238 tool_basename="${tool_specified##*/}" 8239 if test "x$tool_basename" = "x$tool_specified"; then 8240 # A command without a complete path is provided, search $PATH. 8241 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 8242 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 8243 # Extract the first word of "$tool_basename", so it can be a program name with args. 8244 set dummy $tool_basename; ac_word=$2 8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8246 $as_echo_n "checking for $ac_word... " >&6; } 8247 if ${ac_cv_path_MKTEMP+:} false; then : 8248 $as_echo_n "(cached) " >&6 8249 else 8250 case $MKTEMP in 8251 [\\/]* | ?:[\\/]*) 8252 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8253 ;; 8254 *) 8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8256 for as_dir in $PATH 8257 do 8258 IFS=$as_save_IFS 8259 test -z "$as_dir" && as_dir=. 8260 for ac_exec_ext in '' $ac_executable_extensions; do 8261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8262 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8264 break 2 8265 fi 8266 done 8267 done 8268 IFS=$as_save_IFS 8269 8270 ;; 8271 esac 8272 fi 8273 MKTEMP=$ac_cv_path_MKTEMP 8274 if test -n "$MKTEMP"; then 8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8276 $as_echo "$MKTEMP" >&6; } 8277 else 8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8279 $as_echo "no" >&6; } 8280 fi 8281 8282 8283 if test "x$MKTEMP" = x; then 8284 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8285 fi 8286 else 8287 # Otherwise we believe it is a complete path. Use it as it is. 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 8289 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8291 $as_echo_n "checking for MKTEMP... " >&6; } 8292 if test ! -x "$tool_specified"; then 8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8294 $as_echo "not found" >&6; } 8295 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 8296 fi 8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8298 $as_echo "$tool_specified" >&6; } 8299 fi 8300 fi 8301 fi 8302 8303 8304 8305 if test "x$MKTEMP" = x; then 8306 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 8307 fi 8308 8309 8310 8311 8312 8313 # Publish this variable in the help. 8314 8315 8316 if test "x$MV" = x; then 8317 # The variable is not set by user, try to locate tool using the code snippet 8318 for ac_prog in mv 8319 do 8320 # Extract the first word of "$ac_prog", so it can be a program name with args. 8321 set dummy $ac_prog; ac_word=$2 8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8323 $as_echo_n "checking for $ac_word... " >&6; } 8324 if ${ac_cv_path_MV+:} false; then : 8325 $as_echo_n "(cached) " >&6 8326 else 8327 case $MV in 8328 [\\/]* | ?:[\\/]*) 8329 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8330 ;; 8331 *) 8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8333 for as_dir in $PATH 8334 do 8335 IFS=$as_save_IFS 8336 test -z "$as_dir" && as_dir=. 8337 for ac_exec_ext in '' $ac_executable_extensions; do 8338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8339 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8341 break 2 8342 fi 8343 done 8344 done 8345 IFS=$as_save_IFS 8346 8347 ;; 8348 esac 8349 fi 8350 MV=$ac_cv_path_MV 8351 if test -n "$MV"; then 8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8353 $as_echo "$MV" >&6; } 8354 else 8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8356 $as_echo "no" >&6; } 8357 fi 8358 8359 8360 test -n "$MV" && break 8361 done 8362 8363 else 8364 # The variable is set, but is it from the command line or the environment? 8365 8366 # Try to remove the string !MV! from our list. 8367 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 8368 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8369 # If it failed, the variable was not from the command line. Ignore it, 8370 # but warn the user (except for BASH, which is always set by the calling BASH). 8371 if test "xMV" != xBASH; then 8372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 8373 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 8374 fi 8375 # Try to locate tool using the code snippet 8376 for ac_prog in mv 8377 do 8378 # Extract the first word of "$ac_prog", so it can be a program name with args. 8379 set dummy $ac_prog; ac_word=$2 8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8381 $as_echo_n "checking for $ac_word... " >&6; } 8382 if ${ac_cv_path_MV+:} false; then : 8383 $as_echo_n "(cached) " >&6 8384 else 8385 case $MV in 8386 [\\/]* | ?:[\\/]*) 8387 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8388 ;; 8389 *) 8390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8391 for as_dir in $PATH 8392 do 8393 IFS=$as_save_IFS 8394 test -z "$as_dir" && as_dir=. 8395 for ac_exec_ext in '' $ac_executable_extensions; do 8396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8397 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8399 break 2 8400 fi 8401 done 8402 done 8403 IFS=$as_save_IFS 8404 8405 ;; 8406 esac 8407 fi 8408 MV=$ac_cv_path_MV 8409 if test -n "$MV"; then 8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8411 $as_echo "$MV" >&6; } 8412 else 8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8414 $as_echo "no" >&6; } 8415 fi 8416 8417 8418 test -n "$MV" && break 8419 done 8420 8421 else 8422 # If it succeeded, then it was overridden by the user. We will use it 8423 # for the tool. 8424 8425 # First remove it from the list of overridden variables, so we can test 8426 # for unknown variables in the end. 8427 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8428 8429 # Check if the provided tool contains a complete path. 8430 tool_specified="$MV" 8431 tool_basename="${tool_specified##*/}" 8432 if test "x$tool_basename" = "x$tool_specified"; then 8433 # A command without a complete path is provided, search $PATH. 8434 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 8435 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 8436 # Extract the first word of "$tool_basename", so it can be a program name with args. 8437 set dummy $tool_basename; ac_word=$2 8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8439 $as_echo_n "checking for $ac_word... " >&6; } 8440 if ${ac_cv_path_MV+:} false; then : 8441 $as_echo_n "(cached) " >&6 8442 else 8443 case $MV in 8444 [\\/]* | ?:[\\/]*) 8445 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8446 ;; 8447 *) 8448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8449 for as_dir in $PATH 8450 do 8451 IFS=$as_save_IFS 8452 test -z "$as_dir" && as_dir=. 8453 for ac_exec_ext in '' $ac_executable_extensions; do 8454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8455 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8457 break 2 8458 fi 8459 done 8460 done 8461 IFS=$as_save_IFS 8462 8463 ;; 8464 esac 8465 fi 8466 MV=$ac_cv_path_MV 8467 if test -n "$MV"; then 8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8469 $as_echo "$MV" >&6; } 8470 else 8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8472 $as_echo "no" >&6; } 8473 fi 8474 8475 8476 if test "x$MV" = x; then 8477 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8478 fi 8479 else 8480 # Otherwise we believe it is a complete path. Use it as it is. 8481 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 8482 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 8484 $as_echo_n "checking for MV... " >&6; } 8485 if test ! -x "$tool_specified"; then 8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8487 $as_echo "not found" >&6; } 8488 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 8489 fi 8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8491 $as_echo "$tool_specified" >&6; } 8492 fi 8493 fi 8494 fi 8495 8496 8497 8498 if test "x$MV" = x; then 8499 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 8500 fi 8501 8502 8503 8504 8505 8506 # Publish this variable in the help. 8507 8508 8509 if test "x$NAWK" = x; then 8510 # The variable is not set by user, try to locate tool using the code snippet 8511 for ac_prog in nawk gawk awk 8512 do 8513 # Extract the first word of "$ac_prog", so it can be a program name with args. 8514 set dummy $ac_prog; ac_word=$2 8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8516 $as_echo_n "checking for $ac_word... " >&6; } 8517 if ${ac_cv_path_NAWK+:} false; then : 8518 $as_echo_n "(cached) " >&6 8519 else 8520 case $NAWK in 8521 [\\/]* | ?:[\\/]*) 8522 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8523 ;; 8524 *) 8525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8526 for as_dir in $PATH 8527 do 8528 IFS=$as_save_IFS 8529 test -z "$as_dir" && as_dir=. 8530 for ac_exec_ext in '' $ac_executable_extensions; do 8531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8532 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8534 break 2 8535 fi 8536 done 8537 done 8538 IFS=$as_save_IFS 8539 8540 ;; 8541 esac 8542 fi 8543 NAWK=$ac_cv_path_NAWK 8544 if test -n "$NAWK"; then 8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8546 $as_echo "$NAWK" >&6; } 8547 else 8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8549 $as_echo "no" >&6; } 8550 fi 8551 8552 8553 test -n "$NAWK" && break 8554 done 8555 8556 else 8557 # The variable is set, but is it from the command line or the environment? 8558 8559 # Try to remove the string !NAWK! from our list. 8560 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 8561 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8562 # If it failed, the variable was not from the command line. Ignore it, 8563 # but warn the user (except for BASH, which is always set by the calling BASH). 8564 if test "xNAWK" != xBASH; then 8565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 8566 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 8567 fi 8568 # Try to locate tool using the code snippet 8569 for ac_prog in nawk gawk awk 8570 do 8571 # Extract the first word of "$ac_prog", so it can be a program name with args. 8572 set dummy $ac_prog; ac_word=$2 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8574 $as_echo_n "checking for $ac_word... " >&6; } 8575 if ${ac_cv_path_NAWK+:} false; then : 8576 $as_echo_n "(cached) " >&6 8577 else 8578 case $NAWK in 8579 [\\/]* | ?:[\\/]*) 8580 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8581 ;; 8582 *) 8583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8584 for as_dir in $PATH 8585 do 8586 IFS=$as_save_IFS 8587 test -z "$as_dir" && as_dir=. 8588 for ac_exec_ext in '' $ac_executable_extensions; do 8589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8590 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8592 break 2 8593 fi 8594 done 8595 done 8596 IFS=$as_save_IFS 8597 8598 ;; 8599 esac 8600 fi 8601 NAWK=$ac_cv_path_NAWK 8602 if test -n "$NAWK"; then 8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8604 $as_echo "$NAWK" >&6; } 8605 else 8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8607 $as_echo "no" >&6; } 8608 fi 8609 8610 8611 test -n "$NAWK" && break 8612 done 8613 8614 else 8615 # If it succeeded, then it was overridden by the user. We will use it 8616 # for the tool. 8617 8618 # First remove it from the list of overridden variables, so we can test 8619 # for unknown variables in the end. 8620 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8621 8622 # Check if the provided tool contains a complete path. 8623 tool_specified="$NAWK" 8624 tool_basename="${tool_specified##*/}" 8625 if test "x$tool_basename" = "x$tool_specified"; then 8626 # A command without a complete path is provided, search $PATH. 8627 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 8628 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 8629 # Extract the first word of "$tool_basename", so it can be a program name with args. 8630 set dummy $tool_basename; ac_word=$2 8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8632 $as_echo_n "checking for $ac_word... " >&6; } 8633 if ${ac_cv_path_NAWK+:} false; then : 8634 $as_echo_n "(cached) " >&6 8635 else 8636 case $NAWK in 8637 [\\/]* | ?:[\\/]*) 8638 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8639 ;; 8640 *) 8641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8642 for as_dir in $PATH 8643 do 8644 IFS=$as_save_IFS 8645 test -z "$as_dir" && as_dir=. 8646 for ac_exec_ext in '' $ac_executable_extensions; do 8647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8648 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8650 break 2 8651 fi 8652 done 8653 done 8654 IFS=$as_save_IFS 8655 8656 ;; 8657 esac 8658 fi 8659 NAWK=$ac_cv_path_NAWK 8660 if test -n "$NAWK"; then 8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8662 $as_echo "$NAWK" >&6; } 8663 else 8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8665 $as_echo "no" >&6; } 8666 fi 8667 8668 8669 if test "x$NAWK" = x; then 8670 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8671 fi 8672 else 8673 # Otherwise we believe it is a complete path. Use it as it is. 8674 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 8675 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 8677 $as_echo_n "checking for NAWK... " >&6; } 8678 if test ! -x "$tool_specified"; then 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8680 $as_echo "not found" >&6; } 8681 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 8682 fi 8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8684 $as_echo "$tool_specified" >&6; } 8685 fi 8686 fi 8687 fi 8688 8689 8690 8691 if test "x$NAWK" = x; then 8692 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 8693 fi 8694 8695 8696 8697 8698 8699 # Publish this variable in the help. 8700 8701 8702 if test "x$PRINTF" = x; then 8703 # The variable is not set by user, try to locate tool using the code snippet 8704 for ac_prog in printf 8705 do 8706 # Extract the first word of "$ac_prog", so it can be a program name with args. 8707 set dummy $ac_prog; ac_word=$2 8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8709 $as_echo_n "checking for $ac_word... " >&6; } 8710 if ${ac_cv_path_PRINTF+:} false; then : 8711 $as_echo_n "(cached) " >&6 8712 else 8713 case $PRINTF in 8714 [\\/]* | ?:[\\/]*) 8715 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8716 ;; 8717 *) 8718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8719 for as_dir in $PATH 8720 do 8721 IFS=$as_save_IFS 8722 test -z "$as_dir" && as_dir=. 8723 for ac_exec_ext in '' $ac_executable_extensions; do 8724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8725 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8727 break 2 8728 fi 8729 done 8730 done 8731 IFS=$as_save_IFS 8732 8733 ;; 8734 esac 8735 fi 8736 PRINTF=$ac_cv_path_PRINTF 8737 if test -n "$PRINTF"; then 8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8739 $as_echo "$PRINTF" >&6; } 8740 else 8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8742 $as_echo "no" >&6; } 8743 fi 8744 8745 8746 test -n "$PRINTF" && break 8747 done 8748 8749 else 8750 # The variable is set, but is it from the command line or the environment? 8751 8752 # Try to remove the string !PRINTF! from our list. 8753 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 8754 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8755 # If it failed, the variable was not from the command line. Ignore it, 8756 # but warn the user (except for BASH, which is always set by the calling BASH). 8757 if test "xPRINTF" != xBASH; then 8758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 8759 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 8760 fi 8761 # Try to locate tool using the code snippet 8762 for ac_prog in printf 8763 do 8764 # Extract the first word of "$ac_prog", so it can be a program name with args. 8765 set dummy $ac_prog; ac_word=$2 8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8767 $as_echo_n "checking for $ac_word... " >&6; } 8768 if ${ac_cv_path_PRINTF+:} false; then : 8769 $as_echo_n "(cached) " >&6 8770 else 8771 case $PRINTF in 8772 [\\/]* | ?:[\\/]*) 8773 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8774 ;; 8775 *) 8776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8777 for as_dir in $PATH 8778 do 8779 IFS=$as_save_IFS 8780 test -z "$as_dir" && as_dir=. 8781 for ac_exec_ext in '' $ac_executable_extensions; do 8782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8783 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8785 break 2 8786 fi 8787 done 8788 done 8789 IFS=$as_save_IFS 8790 8791 ;; 8792 esac 8793 fi 8794 PRINTF=$ac_cv_path_PRINTF 8795 if test -n "$PRINTF"; then 8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8797 $as_echo "$PRINTF" >&6; } 8798 else 8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8800 $as_echo "no" >&6; } 8801 fi 8802 8803 8804 test -n "$PRINTF" && break 8805 done 8806 8807 else 8808 # If it succeeded, then it was overridden by the user. We will use it 8809 # for the tool. 8810 8811 # First remove it from the list of overridden variables, so we can test 8812 # for unknown variables in the end. 8813 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8814 8815 # Check if the provided tool contains a complete path. 8816 tool_specified="$PRINTF" 8817 tool_basename="${tool_specified##*/}" 8818 if test "x$tool_basename" = "x$tool_specified"; then 8819 # A command without a complete path is provided, search $PATH. 8820 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 8821 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 8822 # Extract the first word of "$tool_basename", so it can be a program name with args. 8823 set dummy $tool_basename; ac_word=$2 8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8825 $as_echo_n "checking for $ac_word... " >&6; } 8826 if ${ac_cv_path_PRINTF+:} false; then : 8827 $as_echo_n "(cached) " >&6 8828 else 8829 case $PRINTF in 8830 [\\/]* | ?:[\\/]*) 8831 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8832 ;; 8833 *) 8834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8835 for as_dir in $PATH 8836 do 8837 IFS=$as_save_IFS 8838 test -z "$as_dir" && as_dir=. 8839 for ac_exec_ext in '' $ac_executable_extensions; do 8840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8841 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8843 break 2 8844 fi 8845 done 8846 done 8847 IFS=$as_save_IFS 8848 8849 ;; 8850 esac 8851 fi 8852 PRINTF=$ac_cv_path_PRINTF 8853 if test -n "$PRINTF"; then 8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8855 $as_echo "$PRINTF" >&6; } 8856 else 8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8858 $as_echo "no" >&6; } 8859 fi 8860 8861 8862 if test "x$PRINTF" = x; then 8863 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8864 fi 8865 else 8866 # Otherwise we believe it is a complete path. Use it as it is. 8867 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 8868 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 8870 $as_echo_n "checking for PRINTF... " >&6; } 8871 if test ! -x "$tool_specified"; then 8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8873 $as_echo "not found" >&6; } 8874 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 8875 fi 8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8877 $as_echo "$tool_specified" >&6; } 8878 fi 8879 fi 8880 fi 8881 8882 8883 8884 if test "x$PRINTF" = x; then 8885 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 8886 fi 8887 8888 8889 8890 8891 8892 # Publish this variable in the help. 8893 8894 8895 if test "x$RM" = x; then 8896 # The variable is not set by user, try to locate tool using the code snippet 8897 for ac_prog in rm 8898 do 8899 # Extract the first word of "$ac_prog", so it can be a program name with args. 8900 set dummy $ac_prog; ac_word=$2 8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8902 $as_echo_n "checking for $ac_word... " >&6; } 8903 if ${ac_cv_path_RM+:} false; then : 8904 $as_echo_n "(cached) " >&6 8905 else 8906 case $RM in 8907 [\\/]* | ?:[\\/]*) 8908 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8909 ;; 8910 *) 8911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8912 for as_dir in $PATH 8913 do 8914 IFS=$as_save_IFS 8915 test -z "$as_dir" && as_dir=. 8916 for ac_exec_ext in '' $ac_executable_extensions; do 8917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8918 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8920 break 2 8921 fi 8922 done 8923 done 8924 IFS=$as_save_IFS 8925 8926 ;; 8927 esac 8928 fi 8929 RM=$ac_cv_path_RM 8930 if test -n "$RM"; then 8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8932 $as_echo "$RM" >&6; } 8933 else 8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8935 $as_echo "no" >&6; } 8936 fi 8937 8938 8939 test -n "$RM" && break 8940 done 8941 8942 else 8943 # The variable is set, but is it from the command line or the environment? 8944 8945 # Try to remove the string !RM! from our list. 8946 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 8947 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8948 # If it failed, the variable was not from the command line. Ignore it, 8949 # but warn the user (except for BASH, which is always set by the calling BASH). 8950 if test "xRM" != xBASH; then 8951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 8952 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 8953 fi 8954 # Try to locate tool using the code snippet 8955 for ac_prog in rm 8956 do 8957 # Extract the first word of "$ac_prog", so it can be a program name with args. 8958 set dummy $ac_prog; ac_word=$2 8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8960 $as_echo_n "checking for $ac_word... " >&6; } 8961 if ${ac_cv_path_RM+:} false; then : 8962 $as_echo_n "(cached) " >&6 8963 else 8964 case $RM in 8965 [\\/]* | ?:[\\/]*) 8966 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8967 ;; 8968 *) 8969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8970 for as_dir in $PATH 8971 do 8972 IFS=$as_save_IFS 8973 test -z "$as_dir" && as_dir=. 8974 for ac_exec_ext in '' $ac_executable_extensions; do 8975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8976 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8978 break 2 8979 fi 8980 done 8981 done 8982 IFS=$as_save_IFS 8983 8984 ;; 8985 esac 8986 fi 8987 RM=$ac_cv_path_RM 8988 if test -n "$RM"; then 8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8990 $as_echo "$RM" >&6; } 8991 else 8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8993 $as_echo "no" >&6; } 8994 fi 8995 8996 8997 test -n "$RM" && break 8998 done 8999 9000 else 9001 # If it succeeded, then it was overridden by the user. We will use it 9002 # for the tool. 9003 9004 # First remove it from the list of overridden variables, so we can test 9005 # for unknown variables in the end. 9006 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9007 9008 # Check if the provided tool contains a complete path. 9009 tool_specified="$RM" 9010 tool_basename="${tool_specified##*/}" 9011 if test "x$tool_basename" = "x$tool_specified"; then 9012 # A command without a complete path is provided, search $PATH. 9013 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 9014 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 9015 # Extract the first word of "$tool_basename", so it can be a program name with args. 9016 set dummy $tool_basename; ac_word=$2 9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9018 $as_echo_n "checking for $ac_word... " >&6; } 9019 if ${ac_cv_path_RM+:} false; then : 9020 $as_echo_n "(cached) " >&6 9021 else 9022 case $RM in 9023 [\\/]* | ?:[\\/]*) 9024 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9025 ;; 9026 *) 9027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9028 for as_dir in $PATH 9029 do 9030 IFS=$as_save_IFS 9031 test -z "$as_dir" && as_dir=. 9032 for ac_exec_ext in '' $ac_executable_extensions; do 9033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9034 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9036 break 2 9037 fi 9038 done 9039 done 9040 IFS=$as_save_IFS 9041 9042 ;; 9043 esac 9044 fi 9045 RM=$ac_cv_path_RM 9046 if test -n "$RM"; then 9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9048 $as_echo "$RM" >&6; } 9049 else 9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9051 $as_echo "no" >&6; } 9052 fi 9053 9054 9055 if test "x$RM" = x; then 9056 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9057 fi 9058 else 9059 # Otherwise we believe it is a complete path. Use it as it is. 9060 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 9061 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 9063 $as_echo_n "checking for RM... " >&6; } 9064 if test ! -x "$tool_specified"; then 9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9066 $as_echo "not found" >&6; } 9067 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 9068 fi 9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9070 $as_echo "$tool_specified" >&6; } 9071 fi 9072 fi 9073 fi 9074 9075 9076 9077 if test "x$RM" = x; then 9078 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 9079 fi 9080 9081 9082 9083 9084 9085 # Publish this variable in the help. 9086 9087 9088 if test "x$SH" = x; then 9089 # The variable is not set by user, try to locate tool using the code snippet 9090 for ac_prog in sh 9091 do 9092 # Extract the first word of "$ac_prog", so it can be a program name with args. 9093 set dummy $ac_prog; ac_word=$2 9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9095 $as_echo_n "checking for $ac_word... " >&6; } 9096 if ${ac_cv_path_SH+:} false; then : 9097 $as_echo_n "(cached) " >&6 9098 else 9099 case $SH in 9100 [\\/]* | ?:[\\/]*) 9101 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9102 ;; 9103 *) 9104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9105 for as_dir in $PATH 9106 do 9107 IFS=$as_save_IFS 9108 test -z "$as_dir" && as_dir=. 9109 for ac_exec_ext in '' $ac_executable_extensions; do 9110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9111 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9113 break 2 9114 fi 9115 done 9116 done 9117 IFS=$as_save_IFS 9118 9119 ;; 9120 esac 9121 fi 9122 SH=$ac_cv_path_SH 9123 if test -n "$SH"; then 9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9125 $as_echo "$SH" >&6; } 9126 else 9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9128 $as_echo "no" >&6; } 9129 fi 9130 9131 9132 test -n "$SH" && break 9133 done 9134 9135 else 9136 # The variable is set, but is it from the command line or the environment? 9137 9138 # Try to remove the string !SH! from our list. 9139 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 9140 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9141 # If it failed, the variable was not from the command line. Ignore it, 9142 # but warn the user (except for BASH, which is always set by the calling BASH). 9143 if test "xSH" != xBASH; then 9144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 9145 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 9146 fi 9147 # Try to locate tool using the code snippet 9148 for ac_prog in sh 9149 do 9150 # Extract the first word of "$ac_prog", so it can be a program name with args. 9151 set dummy $ac_prog; ac_word=$2 9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9153 $as_echo_n "checking for $ac_word... " >&6; } 9154 if ${ac_cv_path_SH+:} false; then : 9155 $as_echo_n "(cached) " >&6 9156 else 9157 case $SH in 9158 [\\/]* | ?:[\\/]*) 9159 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9160 ;; 9161 *) 9162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9163 for as_dir in $PATH 9164 do 9165 IFS=$as_save_IFS 9166 test -z "$as_dir" && as_dir=. 9167 for ac_exec_ext in '' $ac_executable_extensions; do 9168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9169 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9171 break 2 9172 fi 9173 done 9174 done 9175 IFS=$as_save_IFS 9176 9177 ;; 9178 esac 9179 fi 9180 SH=$ac_cv_path_SH 9181 if test -n "$SH"; then 9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9183 $as_echo "$SH" >&6; } 9184 else 9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9186 $as_echo "no" >&6; } 9187 fi 9188 9189 9190 test -n "$SH" && break 9191 done 9192 9193 else 9194 # If it succeeded, then it was overridden by the user. We will use it 9195 # for the tool. 9196 9197 # First remove it from the list of overridden variables, so we can test 9198 # for unknown variables in the end. 9199 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9200 9201 # Check if the provided tool contains a complete path. 9202 tool_specified="$SH" 9203 tool_basename="${tool_specified##*/}" 9204 if test "x$tool_basename" = "x$tool_specified"; then 9205 # A command without a complete path is provided, search $PATH. 9206 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 9207 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 9208 # Extract the first word of "$tool_basename", so it can be a program name with args. 9209 set dummy $tool_basename; ac_word=$2 9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9211 $as_echo_n "checking for $ac_word... " >&6; } 9212 if ${ac_cv_path_SH+:} false; then : 9213 $as_echo_n "(cached) " >&6 9214 else 9215 case $SH in 9216 [\\/]* | ?:[\\/]*) 9217 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9218 ;; 9219 *) 9220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9221 for as_dir in $PATH 9222 do 9223 IFS=$as_save_IFS 9224 test -z "$as_dir" && as_dir=. 9225 for ac_exec_ext in '' $ac_executable_extensions; do 9226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9227 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9229 break 2 9230 fi 9231 done 9232 done 9233 IFS=$as_save_IFS 9234 9235 ;; 9236 esac 9237 fi 9238 SH=$ac_cv_path_SH 9239 if test -n "$SH"; then 9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9241 $as_echo "$SH" >&6; } 9242 else 9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9244 $as_echo "no" >&6; } 9245 fi 9246 9247 9248 if test "x$SH" = x; then 9249 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9250 fi 9251 else 9252 # Otherwise we believe it is a complete path. Use it as it is. 9253 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 9254 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 9256 $as_echo_n "checking for SH... " >&6; } 9257 if test ! -x "$tool_specified"; then 9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9259 $as_echo "not found" >&6; } 9260 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 9261 fi 9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9263 $as_echo "$tool_specified" >&6; } 9264 fi 9265 fi 9266 fi 9267 9268 9269 9270 if test "x$SH" = x; then 9271 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 9272 fi 9273 9274 9275 9276 9277 9278 # Publish this variable in the help. 9279 9280 9281 if test "x$SORT" = x; then 9282 # The variable is not set by user, try to locate tool using the code snippet 9283 for ac_prog in sort 9284 do 9285 # Extract the first word of "$ac_prog", so it can be a program name with args. 9286 set dummy $ac_prog; ac_word=$2 9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9288 $as_echo_n "checking for $ac_word... " >&6; } 9289 if ${ac_cv_path_SORT+:} false; then : 9290 $as_echo_n "(cached) " >&6 9291 else 9292 case $SORT in 9293 [\\/]* | ?:[\\/]*) 9294 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9295 ;; 9296 *) 9297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9298 for as_dir in $PATH 9299 do 9300 IFS=$as_save_IFS 9301 test -z "$as_dir" && as_dir=. 9302 for ac_exec_ext in '' $ac_executable_extensions; do 9303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9304 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9306 break 2 9307 fi 9308 done 9309 done 9310 IFS=$as_save_IFS 9311 9312 ;; 9313 esac 9314 fi 9315 SORT=$ac_cv_path_SORT 9316 if test -n "$SORT"; then 9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9318 $as_echo "$SORT" >&6; } 9319 else 9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9321 $as_echo "no" >&6; } 9322 fi 9323 9324 9325 test -n "$SORT" && break 9326 done 9327 9328 else 9329 # The variable is set, but is it from the command line or the environment? 9330 9331 # Try to remove the string !SORT! from our list. 9332 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 9333 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9334 # If it failed, the variable was not from the command line. Ignore it, 9335 # but warn the user (except for BASH, which is always set by the calling BASH). 9336 if test "xSORT" != xBASH; then 9337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 9338 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 9339 fi 9340 # Try to locate tool using the code snippet 9341 for ac_prog in sort 9342 do 9343 # Extract the first word of "$ac_prog", so it can be a program name with args. 9344 set dummy $ac_prog; ac_word=$2 9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9346 $as_echo_n "checking for $ac_word... " >&6; } 9347 if ${ac_cv_path_SORT+:} false; then : 9348 $as_echo_n "(cached) " >&6 9349 else 9350 case $SORT in 9351 [\\/]* | ?:[\\/]*) 9352 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9353 ;; 9354 *) 9355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9356 for as_dir in $PATH 9357 do 9358 IFS=$as_save_IFS 9359 test -z "$as_dir" && as_dir=. 9360 for ac_exec_ext in '' $ac_executable_extensions; do 9361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9362 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9364 break 2 9365 fi 9366 done 9367 done 9368 IFS=$as_save_IFS 9369 9370 ;; 9371 esac 9372 fi 9373 SORT=$ac_cv_path_SORT 9374 if test -n "$SORT"; then 9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9376 $as_echo "$SORT" >&6; } 9377 else 9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9379 $as_echo "no" >&6; } 9380 fi 9381 9382 9383 test -n "$SORT" && break 9384 done 9385 9386 else 9387 # If it succeeded, then it was overridden by the user. We will use it 9388 # for the tool. 9389 9390 # First remove it from the list of overridden variables, so we can test 9391 # for unknown variables in the end. 9392 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9393 9394 # Check if the provided tool contains a complete path. 9395 tool_specified="$SORT" 9396 tool_basename="${tool_specified##*/}" 9397 if test "x$tool_basename" = "x$tool_specified"; then 9398 # A command without a complete path is provided, search $PATH. 9399 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 9400 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 9401 # Extract the first word of "$tool_basename", so it can be a program name with args. 9402 set dummy $tool_basename; ac_word=$2 9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9404 $as_echo_n "checking for $ac_word... " >&6; } 9405 if ${ac_cv_path_SORT+:} false; then : 9406 $as_echo_n "(cached) " >&6 9407 else 9408 case $SORT in 9409 [\\/]* | ?:[\\/]*) 9410 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9411 ;; 9412 *) 9413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9414 for as_dir in $PATH 9415 do 9416 IFS=$as_save_IFS 9417 test -z "$as_dir" && as_dir=. 9418 for ac_exec_ext in '' $ac_executable_extensions; do 9419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9420 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9422 break 2 9423 fi 9424 done 9425 done 9426 IFS=$as_save_IFS 9427 9428 ;; 9429 esac 9430 fi 9431 SORT=$ac_cv_path_SORT 9432 if test -n "$SORT"; then 9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9434 $as_echo "$SORT" >&6; } 9435 else 9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9437 $as_echo "no" >&6; } 9438 fi 9439 9440 9441 if test "x$SORT" = x; then 9442 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9443 fi 9444 else 9445 # Otherwise we believe it is a complete path. Use it as it is. 9446 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 9447 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 9449 $as_echo_n "checking for SORT... " >&6; } 9450 if test ! -x "$tool_specified"; then 9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9452 $as_echo "not found" >&6; } 9453 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 9454 fi 9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9456 $as_echo "$tool_specified" >&6; } 9457 fi 9458 fi 9459 fi 9460 9461 9462 9463 if test "x$SORT" = x; then 9464 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 9465 fi 9466 9467 9468 9469 9470 9471 # Publish this variable in the help. 9472 9473 9474 if test "x$TAIL" = x; then 9475 # The variable is not set by user, try to locate tool using the code snippet 9476 for ac_prog in tail 9477 do 9478 # Extract the first word of "$ac_prog", so it can be a program name with args. 9479 set dummy $ac_prog; ac_word=$2 9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9481 $as_echo_n "checking for $ac_word... " >&6; } 9482 if ${ac_cv_path_TAIL+:} false; then : 9483 $as_echo_n "(cached) " >&6 9484 else 9485 case $TAIL in 9486 [\\/]* | ?:[\\/]*) 9487 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9488 ;; 9489 *) 9490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9491 for as_dir in $PATH 9492 do 9493 IFS=$as_save_IFS 9494 test -z "$as_dir" && as_dir=. 9495 for ac_exec_ext in '' $ac_executable_extensions; do 9496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9497 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9499 break 2 9500 fi 9501 done 9502 done 9503 IFS=$as_save_IFS 9504 9505 ;; 9506 esac 9507 fi 9508 TAIL=$ac_cv_path_TAIL 9509 if test -n "$TAIL"; then 9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9511 $as_echo "$TAIL" >&6; } 9512 else 9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9514 $as_echo "no" >&6; } 9515 fi 9516 9517 9518 test -n "$TAIL" && break 9519 done 9520 9521 else 9522 # The variable is set, but is it from the command line or the environment? 9523 9524 # Try to remove the string !TAIL! from our list. 9525 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 9526 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9527 # If it failed, the variable was not from the command line. Ignore it, 9528 # but warn the user (except for BASH, which is always set by the calling BASH). 9529 if test "xTAIL" != xBASH; then 9530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 9531 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 9532 fi 9533 # Try to locate tool using the code snippet 9534 for ac_prog in tail 9535 do 9536 # Extract the first word of "$ac_prog", so it can be a program name with args. 9537 set dummy $ac_prog; ac_word=$2 9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9539 $as_echo_n "checking for $ac_word... " >&6; } 9540 if ${ac_cv_path_TAIL+:} false; then : 9541 $as_echo_n "(cached) " >&6 9542 else 9543 case $TAIL in 9544 [\\/]* | ?:[\\/]*) 9545 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9546 ;; 9547 *) 9548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9549 for as_dir in $PATH 9550 do 9551 IFS=$as_save_IFS 9552 test -z "$as_dir" && as_dir=. 9553 for ac_exec_ext in '' $ac_executable_extensions; do 9554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9555 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9557 break 2 9558 fi 9559 done 9560 done 9561 IFS=$as_save_IFS 9562 9563 ;; 9564 esac 9565 fi 9566 TAIL=$ac_cv_path_TAIL 9567 if test -n "$TAIL"; then 9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9569 $as_echo "$TAIL" >&6; } 9570 else 9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9572 $as_echo "no" >&6; } 9573 fi 9574 9575 9576 test -n "$TAIL" && break 9577 done 9578 9579 else 9580 # If it succeeded, then it was overridden by the user. We will use it 9581 # for the tool. 9582 9583 # First remove it from the list of overridden variables, so we can test 9584 # for unknown variables in the end. 9585 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9586 9587 # Check if the provided tool contains a complete path. 9588 tool_specified="$TAIL" 9589 tool_basename="${tool_specified##*/}" 9590 if test "x$tool_basename" = "x$tool_specified"; then 9591 # A command without a complete path is provided, search $PATH. 9592 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 9593 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 9594 # Extract the first word of "$tool_basename", so it can be a program name with args. 9595 set dummy $tool_basename; ac_word=$2 9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9597 $as_echo_n "checking for $ac_word... " >&6; } 9598 if ${ac_cv_path_TAIL+:} false; then : 9599 $as_echo_n "(cached) " >&6 9600 else 9601 case $TAIL in 9602 [\\/]* | ?:[\\/]*) 9603 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9604 ;; 9605 *) 9606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9607 for as_dir in $PATH 9608 do 9609 IFS=$as_save_IFS 9610 test -z "$as_dir" && as_dir=. 9611 for ac_exec_ext in '' $ac_executable_extensions; do 9612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9613 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9615 break 2 9616 fi 9617 done 9618 done 9619 IFS=$as_save_IFS 9620 9621 ;; 9622 esac 9623 fi 9624 TAIL=$ac_cv_path_TAIL 9625 if test -n "$TAIL"; then 9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9627 $as_echo "$TAIL" >&6; } 9628 else 9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9630 $as_echo "no" >&6; } 9631 fi 9632 9633 9634 if test "x$TAIL" = x; then 9635 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9636 fi 9637 else 9638 # Otherwise we believe it is a complete path. Use it as it is. 9639 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 9640 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 9642 $as_echo_n "checking for TAIL... " >&6; } 9643 if test ! -x "$tool_specified"; then 9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9645 $as_echo "not found" >&6; } 9646 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 9647 fi 9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9649 $as_echo "$tool_specified" >&6; } 9650 fi 9651 fi 9652 fi 9653 9654 9655 9656 if test "x$TAIL" = x; then 9657 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 9658 fi 9659 9660 9661 9662 9663 9664 # Publish this variable in the help. 9665 9666 9667 if test "x$TAR" = x; then 9668 # The variable is not set by user, try to locate tool using the code snippet 9669 for ac_prog in tar 9670 do 9671 # Extract the first word of "$ac_prog", so it can be a program name with args. 9672 set dummy $ac_prog; ac_word=$2 9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9674 $as_echo_n "checking for $ac_word... " >&6; } 9675 if ${ac_cv_path_TAR+:} false; then : 9676 $as_echo_n "(cached) " >&6 9677 else 9678 case $TAR in 9679 [\\/]* | ?:[\\/]*) 9680 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9681 ;; 9682 *) 9683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9684 for as_dir in $PATH 9685 do 9686 IFS=$as_save_IFS 9687 test -z "$as_dir" && as_dir=. 9688 for ac_exec_ext in '' $ac_executable_extensions; do 9689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9690 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9692 break 2 9693 fi 9694 done 9695 done 9696 IFS=$as_save_IFS 9697 9698 ;; 9699 esac 9700 fi 9701 TAR=$ac_cv_path_TAR 9702 if test -n "$TAR"; then 9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9704 $as_echo "$TAR" >&6; } 9705 else 9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9707 $as_echo "no" >&6; } 9708 fi 9709 9710 9711 test -n "$TAR" && break 9712 done 9713 9714 else 9715 # The variable is set, but is it from the command line or the environment? 9716 9717 # Try to remove the string !TAR! from our list. 9718 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 9719 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9720 # If it failed, the variable was not from the command line. Ignore it, 9721 # but warn the user (except for BASH, which is always set by the calling BASH). 9722 if test "xTAR" != xBASH; then 9723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 9724 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 9725 fi 9726 # Try to locate tool using the code snippet 9727 for ac_prog in tar 9728 do 9729 # Extract the first word of "$ac_prog", so it can be a program name with args. 9730 set dummy $ac_prog; ac_word=$2 9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9732 $as_echo_n "checking for $ac_word... " >&6; } 9733 if ${ac_cv_path_TAR+:} false; then : 9734 $as_echo_n "(cached) " >&6 9735 else 9736 case $TAR in 9737 [\\/]* | ?:[\\/]*) 9738 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9739 ;; 9740 *) 9741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9742 for as_dir in $PATH 9743 do 9744 IFS=$as_save_IFS 9745 test -z "$as_dir" && as_dir=. 9746 for ac_exec_ext in '' $ac_executable_extensions; do 9747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9748 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9750 break 2 9751 fi 9752 done 9753 done 9754 IFS=$as_save_IFS 9755 9756 ;; 9757 esac 9758 fi 9759 TAR=$ac_cv_path_TAR 9760 if test -n "$TAR"; then 9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9762 $as_echo "$TAR" >&6; } 9763 else 9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9765 $as_echo "no" >&6; } 9766 fi 9767 9768 9769 test -n "$TAR" && break 9770 done 9771 9772 else 9773 # If it succeeded, then it was overridden by the user. We will use it 9774 # for the tool. 9775 9776 # First remove it from the list of overridden variables, so we can test 9777 # for unknown variables in the end. 9778 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9779 9780 # Check if the provided tool contains a complete path. 9781 tool_specified="$TAR" 9782 tool_basename="${tool_specified##*/}" 9783 if test "x$tool_basename" = "x$tool_specified"; then 9784 # A command without a complete path is provided, search $PATH. 9785 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 9786 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 9787 # Extract the first word of "$tool_basename", so it can be a program name with args. 9788 set dummy $tool_basename; ac_word=$2 9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9790 $as_echo_n "checking for $ac_word... " >&6; } 9791 if ${ac_cv_path_TAR+:} false; then : 9792 $as_echo_n "(cached) " >&6 9793 else 9794 case $TAR in 9795 [\\/]* | ?:[\\/]*) 9796 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9797 ;; 9798 *) 9799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9800 for as_dir in $PATH 9801 do 9802 IFS=$as_save_IFS 9803 test -z "$as_dir" && as_dir=. 9804 for ac_exec_ext in '' $ac_executable_extensions; do 9805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9806 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9808 break 2 9809 fi 9810 done 9811 done 9812 IFS=$as_save_IFS 9813 9814 ;; 9815 esac 9816 fi 9817 TAR=$ac_cv_path_TAR 9818 if test -n "$TAR"; then 9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9820 $as_echo "$TAR" >&6; } 9821 else 9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9823 $as_echo "no" >&6; } 9824 fi 9825 9826 9827 if test "x$TAR" = x; then 9828 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9829 fi 9830 else 9831 # Otherwise we believe it is a complete path. Use it as it is. 9832 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 9833 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 9835 $as_echo_n "checking for TAR... " >&6; } 9836 if test ! -x "$tool_specified"; then 9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9838 $as_echo "not found" >&6; } 9839 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 9840 fi 9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9842 $as_echo "$tool_specified" >&6; } 9843 fi 9844 fi 9845 fi 9846 9847 9848 9849 if test "x$TAR" = x; then 9850 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 9851 fi 9852 9853 9854 9855 9856 9857 # Publish this variable in the help. 9858 9859 9860 if test "x$TEE" = x; then 9861 # The variable is not set by user, try to locate tool using the code snippet 9862 for ac_prog in tee 9863 do 9864 # Extract the first word of "$ac_prog", so it can be a program name with args. 9865 set dummy $ac_prog; ac_word=$2 9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9867 $as_echo_n "checking for $ac_word... " >&6; } 9868 if ${ac_cv_path_TEE+:} false; then : 9869 $as_echo_n "(cached) " >&6 9870 else 9871 case $TEE in 9872 [\\/]* | ?:[\\/]*) 9873 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9874 ;; 9875 *) 9876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9877 for as_dir in $PATH 9878 do 9879 IFS=$as_save_IFS 9880 test -z "$as_dir" && as_dir=. 9881 for ac_exec_ext in '' $ac_executable_extensions; do 9882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9883 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9885 break 2 9886 fi 9887 done 9888 done 9889 IFS=$as_save_IFS 9890 9891 ;; 9892 esac 9893 fi 9894 TEE=$ac_cv_path_TEE 9895 if test -n "$TEE"; then 9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9897 $as_echo "$TEE" >&6; } 9898 else 9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9900 $as_echo "no" >&6; } 9901 fi 9902 9903 9904 test -n "$TEE" && break 9905 done 9906 9907 else 9908 # The variable is set, but is it from the command line or the environment? 9909 9910 # Try to remove the string !TEE! from our list. 9911 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 9912 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9913 # If it failed, the variable was not from the command line. Ignore it, 9914 # but warn the user (except for BASH, which is always set by the calling BASH). 9915 if test "xTEE" != xBASH; then 9916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 9917 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 9918 fi 9919 # Try to locate tool using the code snippet 9920 for ac_prog in tee 9921 do 9922 # Extract the first word of "$ac_prog", so it can be a program name with args. 9923 set dummy $ac_prog; ac_word=$2 9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9925 $as_echo_n "checking for $ac_word... " >&6; } 9926 if ${ac_cv_path_TEE+:} false; then : 9927 $as_echo_n "(cached) " >&6 9928 else 9929 case $TEE in 9930 [\\/]* | ?:[\\/]*) 9931 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9932 ;; 9933 *) 9934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9935 for as_dir in $PATH 9936 do 9937 IFS=$as_save_IFS 9938 test -z "$as_dir" && as_dir=. 9939 for ac_exec_ext in '' $ac_executable_extensions; do 9940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9941 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9943 break 2 9944 fi 9945 done 9946 done 9947 IFS=$as_save_IFS 9948 9949 ;; 9950 esac 9951 fi 9952 TEE=$ac_cv_path_TEE 9953 if test -n "$TEE"; then 9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9955 $as_echo "$TEE" >&6; } 9956 else 9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9958 $as_echo "no" >&6; } 9959 fi 9960 9961 9962 test -n "$TEE" && break 9963 done 9964 9965 else 9966 # If it succeeded, then it was overridden by the user. We will use it 9967 # for the tool. 9968 9969 # First remove it from the list of overridden variables, so we can test 9970 # for unknown variables in the end. 9971 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9972 9973 # Check if the provided tool contains a complete path. 9974 tool_specified="$TEE" 9975 tool_basename="${tool_specified##*/}" 9976 if test "x$tool_basename" = "x$tool_specified"; then 9977 # A command without a complete path is provided, search $PATH. 9978 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 9979 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 9980 # Extract the first word of "$tool_basename", so it can be a program name with args. 9981 set dummy $tool_basename; ac_word=$2 9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9983 $as_echo_n "checking for $ac_word... " >&6; } 9984 if ${ac_cv_path_TEE+:} false; then : 9985 $as_echo_n "(cached) " >&6 9986 else 9987 case $TEE in 9988 [\\/]* | ?:[\\/]*) 9989 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9990 ;; 9991 *) 9992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9993 for as_dir in $PATH 9994 do 9995 IFS=$as_save_IFS 9996 test -z "$as_dir" && as_dir=. 9997 for ac_exec_ext in '' $ac_executable_extensions; do 9998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9999 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 10000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10001 break 2 10002 fi 10003 done 10004 done 10005 IFS=$as_save_IFS 10006 10007 ;; 10008 esac 10009 fi 10010 TEE=$ac_cv_path_TEE 10011 if test -n "$TEE"; then 10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 10013 $as_echo "$TEE" >&6; } 10014 else 10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10016 $as_echo "no" >&6; } 10017 fi 10018 10019 10020 if test "x$TEE" = x; then 10021 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10022 fi 10023 else 10024 # Otherwise we believe it is a complete path. Use it as it is. 10025 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 10026 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 10028 $as_echo_n "checking for TEE... " >&6; } 10029 if test ! -x "$tool_specified"; then 10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10031 $as_echo "not found" >&6; } 10032 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 10033 fi 10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10035 $as_echo "$tool_specified" >&6; } 10036 fi 10037 fi 10038 fi 10039 10040 10041 10042 if test "x$TEE" = x; then 10043 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 10044 fi 10045 10046 10047 10048 10049 10050 # Publish this variable in the help. 10051 10052 10053 if test "x$TOUCH" = x; then 10054 # The variable is not set by user, try to locate tool using the code snippet 10055 for ac_prog in touch 10056 do 10057 # Extract the first word of "$ac_prog", so it can be a program name with args. 10058 set dummy $ac_prog; ac_word=$2 10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10060 $as_echo_n "checking for $ac_word... " >&6; } 10061 if ${ac_cv_path_TOUCH+:} false; then : 10062 $as_echo_n "(cached) " >&6 10063 else 10064 case $TOUCH in 10065 [\\/]* | ?:[\\/]*) 10066 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10067 ;; 10068 *) 10069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10070 for as_dir in $PATH 10071 do 10072 IFS=$as_save_IFS 10073 test -z "$as_dir" && as_dir=. 10074 for ac_exec_ext in '' $ac_executable_extensions; do 10075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10076 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10078 break 2 10079 fi 10080 done 10081 done 10082 IFS=$as_save_IFS 10083 10084 ;; 10085 esac 10086 fi 10087 TOUCH=$ac_cv_path_TOUCH 10088 if test -n "$TOUCH"; then 10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10090 $as_echo "$TOUCH" >&6; } 10091 else 10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10093 $as_echo "no" >&6; } 10094 fi 10095 10096 10097 test -n "$TOUCH" && break 10098 done 10099 10100 else 10101 # The variable is set, but is it from the command line or the environment? 10102 10103 # Try to remove the string !TOUCH! from our list. 10104 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 10105 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10106 # If it failed, the variable was not from the command line. Ignore it, 10107 # but warn the user (except for BASH, which is always set by the calling BASH). 10108 if test "xTOUCH" != xBASH; then 10109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 10110 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 10111 fi 10112 # Try to locate tool using the code snippet 10113 for ac_prog in touch 10114 do 10115 # Extract the first word of "$ac_prog", so it can be a program name with args. 10116 set dummy $ac_prog; ac_word=$2 10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10118 $as_echo_n "checking for $ac_word... " >&6; } 10119 if ${ac_cv_path_TOUCH+:} false; then : 10120 $as_echo_n "(cached) " >&6 10121 else 10122 case $TOUCH in 10123 [\\/]* | ?:[\\/]*) 10124 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10125 ;; 10126 *) 10127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10128 for as_dir in $PATH 10129 do 10130 IFS=$as_save_IFS 10131 test -z "$as_dir" && as_dir=. 10132 for ac_exec_ext in '' $ac_executable_extensions; do 10133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10134 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10136 break 2 10137 fi 10138 done 10139 done 10140 IFS=$as_save_IFS 10141 10142 ;; 10143 esac 10144 fi 10145 TOUCH=$ac_cv_path_TOUCH 10146 if test -n "$TOUCH"; then 10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10148 $as_echo "$TOUCH" >&6; } 10149 else 10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10151 $as_echo "no" >&6; } 10152 fi 10153 10154 10155 test -n "$TOUCH" && break 10156 done 10157 10158 else 10159 # If it succeeded, then it was overridden by the user. We will use it 10160 # for the tool. 10161 10162 # First remove it from the list of overridden variables, so we can test 10163 # for unknown variables in the end. 10164 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10165 10166 # Check if the provided tool contains a complete path. 10167 tool_specified="$TOUCH" 10168 tool_basename="${tool_specified##*/}" 10169 if test "x$tool_basename" = "x$tool_specified"; then 10170 # A command without a complete path is provided, search $PATH. 10171 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 10172 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 10173 # Extract the first word of "$tool_basename", so it can be a program name with args. 10174 set dummy $tool_basename; ac_word=$2 10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10176 $as_echo_n "checking for $ac_word... " >&6; } 10177 if ${ac_cv_path_TOUCH+:} false; then : 10178 $as_echo_n "(cached) " >&6 10179 else 10180 case $TOUCH in 10181 [\\/]* | ?:[\\/]*) 10182 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10183 ;; 10184 *) 10185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10186 for as_dir in $PATH 10187 do 10188 IFS=$as_save_IFS 10189 test -z "$as_dir" && as_dir=. 10190 for ac_exec_ext in '' $ac_executable_extensions; do 10191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10192 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10194 break 2 10195 fi 10196 done 10197 done 10198 IFS=$as_save_IFS 10199 10200 ;; 10201 esac 10202 fi 10203 TOUCH=$ac_cv_path_TOUCH 10204 if test -n "$TOUCH"; then 10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10206 $as_echo "$TOUCH" >&6; } 10207 else 10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10209 $as_echo "no" >&6; } 10210 fi 10211 10212 10213 if test "x$TOUCH" = x; then 10214 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10215 fi 10216 else 10217 # Otherwise we believe it is a complete path. Use it as it is. 10218 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 10219 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 10220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 10221 $as_echo_n "checking for TOUCH... " >&6; } 10222 if test ! -x "$tool_specified"; then 10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10224 $as_echo "not found" >&6; } 10225 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 10226 fi 10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10228 $as_echo "$tool_specified" >&6; } 10229 fi 10230 fi 10231 fi 10232 10233 10234 10235 if test "x$TOUCH" = x; then 10236 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 10237 fi 10238 10239 10240 10241 10242 10243 # Publish this variable in the help. 10244 10245 10246 if test "x$TR" = x; then 10247 # The variable is not set by user, try to locate tool using the code snippet 10248 for ac_prog in tr 10249 do 10250 # Extract the first word of "$ac_prog", so it can be a program name with args. 10251 set dummy $ac_prog; ac_word=$2 10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10253 $as_echo_n "checking for $ac_word... " >&6; } 10254 if ${ac_cv_path_TR+:} false; then : 10255 $as_echo_n "(cached) " >&6 10256 else 10257 case $TR in 10258 [\\/]* | ?:[\\/]*) 10259 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10260 ;; 10261 *) 10262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10263 for as_dir in $PATH 10264 do 10265 IFS=$as_save_IFS 10266 test -z "$as_dir" && as_dir=. 10267 for ac_exec_ext in '' $ac_executable_extensions; do 10268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10269 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10271 break 2 10272 fi 10273 done 10274 done 10275 IFS=$as_save_IFS 10276 10277 ;; 10278 esac 10279 fi 10280 TR=$ac_cv_path_TR 10281 if test -n "$TR"; then 10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10283 $as_echo "$TR" >&6; } 10284 else 10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10286 $as_echo "no" >&6; } 10287 fi 10288 10289 10290 test -n "$TR" && break 10291 done 10292 10293 else 10294 # The variable is set, but is it from the command line or the environment? 10295 10296 # Try to remove the string !TR! from our list. 10297 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 10298 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10299 # If it failed, the variable was not from the command line. Ignore it, 10300 # but warn the user (except for BASH, which is always set by the calling BASH). 10301 if test "xTR" != xBASH; then 10302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 10303 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 10304 fi 10305 # Try to locate tool using the code snippet 10306 for ac_prog in tr 10307 do 10308 # Extract the first word of "$ac_prog", so it can be a program name with args. 10309 set dummy $ac_prog; ac_word=$2 10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10311 $as_echo_n "checking for $ac_word... " >&6; } 10312 if ${ac_cv_path_TR+:} false; then : 10313 $as_echo_n "(cached) " >&6 10314 else 10315 case $TR in 10316 [\\/]* | ?:[\\/]*) 10317 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10318 ;; 10319 *) 10320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10321 for as_dir in $PATH 10322 do 10323 IFS=$as_save_IFS 10324 test -z "$as_dir" && as_dir=. 10325 for ac_exec_ext in '' $ac_executable_extensions; do 10326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10327 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10329 break 2 10330 fi 10331 done 10332 done 10333 IFS=$as_save_IFS 10334 10335 ;; 10336 esac 10337 fi 10338 TR=$ac_cv_path_TR 10339 if test -n "$TR"; then 10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10341 $as_echo "$TR" >&6; } 10342 else 10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10344 $as_echo "no" >&6; } 10345 fi 10346 10347 10348 test -n "$TR" && break 10349 done 10350 10351 else 10352 # If it succeeded, then it was overridden by the user. We will use it 10353 # for the tool. 10354 10355 # First remove it from the list of overridden variables, so we can test 10356 # for unknown variables in the end. 10357 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10358 10359 # Check if the provided tool contains a complete path. 10360 tool_specified="$TR" 10361 tool_basename="${tool_specified##*/}" 10362 if test "x$tool_basename" = "x$tool_specified"; then 10363 # A command without a complete path is provided, search $PATH. 10364 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 10365 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 10366 # Extract the first word of "$tool_basename", so it can be a program name with args. 10367 set dummy $tool_basename; ac_word=$2 10368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10369 $as_echo_n "checking for $ac_word... " >&6; } 10370 if ${ac_cv_path_TR+:} false; then : 10371 $as_echo_n "(cached) " >&6 10372 else 10373 case $TR in 10374 [\\/]* | ?:[\\/]*) 10375 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10376 ;; 10377 *) 10378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10379 for as_dir in $PATH 10380 do 10381 IFS=$as_save_IFS 10382 test -z "$as_dir" && as_dir=. 10383 for ac_exec_ext in '' $ac_executable_extensions; do 10384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10385 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10387 break 2 10388 fi 10389 done 10390 done 10391 IFS=$as_save_IFS 10392 10393 ;; 10394 esac 10395 fi 10396 TR=$ac_cv_path_TR 10397 if test -n "$TR"; then 10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10399 $as_echo "$TR" >&6; } 10400 else 10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10402 $as_echo "no" >&6; } 10403 fi 10404 10405 10406 if test "x$TR" = x; then 10407 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10408 fi 10409 else 10410 # Otherwise we believe it is a complete path. Use it as it is. 10411 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 10412 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 10414 $as_echo_n "checking for TR... " >&6; } 10415 if test ! -x "$tool_specified"; then 10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10417 $as_echo "not found" >&6; } 10418 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 10419 fi 10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10421 $as_echo "$tool_specified" >&6; } 10422 fi 10423 fi 10424 fi 10425 10426 10427 10428 if test "x$TR" = x; then 10429 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 10430 fi 10431 10432 10433 10434 10435 10436 # Publish this variable in the help. 10437 10438 10439 if test "x$UNAME" = x; then 10440 # The variable is not set by user, try to locate tool using the code snippet 10441 for ac_prog in uname 10442 do 10443 # Extract the first word of "$ac_prog", so it can be a program name with args. 10444 set dummy $ac_prog; ac_word=$2 10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10446 $as_echo_n "checking for $ac_word... " >&6; } 10447 if ${ac_cv_path_UNAME+:} false; then : 10448 $as_echo_n "(cached) " >&6 10449 else 10450 case $UNAME in 10451 [\\/]* | ?:[\\/]*) 10452 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10453 ;; 10454 *) 10455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10456 for as_dir in $PATH 10457 do 10458 IFS=$as_save_IFS 10459 test -z "$as_dir" && as_dir=. 10460 for ac_exec_ext in '' $ac_executable_extensions; do 10461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10462 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10464 break 2 10465 fi 10466 done 10467 done 10468 IFS=$as_save_IFS 10469 10470 ;; 10471 esac 10472 fi 10473 UNAME=$ac_cv_path_UNAME 10474 if test -n "$UNAME"; then 10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10476 $as_echo "$UNAME" >&6; } 10477 else 10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10479 $as_echo "no" >&6; } 10480 fi 10481 10482 10483 test -n "$UNAME" && break 10484 done 10485 10486 else 10487 # The variable is set, but is it from the command line or the environment? 10488 10489 # Try to remove the string !UNAME! from our list. 10490 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 10491 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10492 # If it failed, the variable was not from the command line. Ignore it, 10493 # but warn the user (except for BASH, which is always set by the calling BASH). 10494 if test "xUNAME" != xBASH; then 10495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 10496 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 10497 fi 10498 # Try to locate tool using the code snippet 10499 for ac_prog in uname 10500 do 10501 # Extract the first word of "$ac_prog", so it can be a program name with args. 10502 set dummy $ac_prog; ac_word=$2 10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10504 $as_echo_n "checking for $ac_word... " >&6; } 10505 if ${ac_cv_path_UNAME+:} false; then : 10506 $as_echo_n "(cached) " >&6 10507 else 10508 case $UNAME in 10509 [\\/]* | ?:[\\/]*) 10510 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10511 ;; 10512 *) 10513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10514 for as_dir in $PATH 10515 do 10516 IFS=$as_save_IFS 10517 test -z "$as_dir" && as_dir=. 10518 for ac_exec_ext in '' $ac_executable_extensions; do 10519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10520 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10522 break 2 10523 fi 10524 done 10525 done 10526 IFS=$as_save_IFS 10527 10528 ;; 10529 esac 10530 fi 10531 UNAME=$ac_cv_path_UNAME 10532 if test -n "$UNAME"; then 10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10534 $as_echo "$UNAME" >&6; } 10535 else 10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10537 $as_echo "no" >&6; } 10538 fi 10539 10540 10541 test -n "$UNAME" && break 10542 done 10543 10544 else 10545 # If it succeeded, then it was overridden by the user. We will use it 10546 # for the tool. 10547 10548 # First remove it from the list of overridden variables, so we can test 10549 # for unknown variables in the end. 10550 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10551 10552 # Check if the provided tool contains a complete path. 10553 tool_specified="$UNAME" 10554 tool_basename="${tool_specified##*/}" 10555 if test "x$tool_basename" = "x$tool_specified"; then 10556 # A command without a complete path is provided, search $PATH. 10557 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 10558 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 10559 # Extract the first word of "$tool_basename", so it can be a program name with args. 10560 set dummy $tool_basename; ac_word=$2 10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10562 $as_echo_n "checking for $ac_word... " >&6; } 10563 if ${ac_cv_path_UNAME+:} false; then : 10564 $as_echo_n "(cached) " >&6 10565 else 10566 case $UNAME in 10567 [\\/]* | ?:[\\/]*) 10568 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10569 ;; 10570 *) 10571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10572 for as_dir in $PATH 10573 do 10574 IFS=$as_save_IFS 10575 test -z "$as_dir" && as_dir=. 10576 for ac_exec_ext in '' $ac_executable_extensions; do 10577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10578 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10580 break 2 10581 fi 10582 done 10583 done 10584 IFS=$as_save_IFS 10585 10586 ;; 10587 esac 10588 fi 10589 UNAME=$ac_cv_path_UNAME 10590 if test -n "$UNAME"; then 10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10592 $as_echo "$UNAME" >&6; } 10593 else 10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10595 $as_echo "no" >&6; } 10596 fi 10597 10598 10599 if test "x$UNAME" = x; then 10600 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10601 fi 10602 else 10603 # Otherwise we believe it is a complete path. Use it as it is. 10604 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 10605 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 10607 $as_echo_n "checking for UNAME... " >&6; } 10608 if test ! -x "$tool_specified"; then 10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10610 $as_echo "not found" >&6; } 10611 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 10612 fi 10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10614 $as_echo "$tool_specified" >&6; } 10615 fi 10616 fi 10617 fi 10618 10619 10620 10621 if test "x$UNAME" = x; then 10622 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 10623 fi 10624 10625 10626 10627 10628 10629 # Publish this variable in the help. 10630 10631 10632 if test "x$UNIQ" = x; then 10633 # The variable is not set by user, try to locate tool using the code snippet 10634 for ac_prog in uniq 10635 do 10636 # Extract the first word of "$ac_prog", so it can be a program name with args. 10637 set dummy $ac_prog; ac_word=$2 10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10639 $as_echo_n "checking for $ac_word... " >&6; } 10640 if ${ac_cv_path_UNIQ+:} false; then : 10641 $as_echo_n "(cached) " >&6 10642 else 10643 case $UNIQ in 10644 [\\/]* | ?:[\\/]*) 10645 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10646 ;; 10647 *) 10648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10649 for as_dir in $PATH 10650 do 10651 IFS=$as_save_IFS 10652 test -z "$as_dir" && as_dir=. 10653 for ac_exec_ext in '' $ac_executable_extensions; do 10654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10655 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10657 break 2 10658 fi 10659 done 10660 done 10661 IFS=$as_save_IFS 10662 10663 ;; 10664 esac 10665 fi 10666 UNIQ=$ac_cv_path_UNIQ 10667 if test -n "$UNIQ"; then 10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10669 $as_echo "$UNIQ" >&6; } 10670 else 10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10672 $as_echo "no" >&6; } 10673 fi 10674 10675 10676 test -n "$UNIQ" && break 10677 done 10678 10679 else 10680 # The variable is set, but is it from the command line or the environment? 10681 10682 # Try to remove the string !UNIQ! from our list. 10683 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 10684 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10685 # If it failed, the variable was not from the command line. Ignore it, 10686 # but warn the user (except for BASH, which is always set by the calling BASH). 10687 if test "xUNIQ" != xBASH; then 10688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 10689 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 10690 fi 10691 # Try to locate tool using the code snippet 10692 for ac_prog in uniq 10693 do 10694 # Extract the first word of "$ac_prog", so it can be a program name with args. 10695 set dummy $ac_prog; ac_word=$2 10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10697 $as_echo_n "checking for $ac_word... " >&6; } 10698 if ${ac_cv_path_UNIQ+:} false; then : 10699 $as_echo_n "(cached) " >&6 10700 else 10701 case $UNIQ in 10702 [\\/]* | ?:[\\/]*) 10703 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10704 ;; 10705 *) 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10713 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 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 ;; 10722 esac 10723 fi 10724 UNIQ=$ac_cv_path_UNIQ 10725 if test -n "$UNIQ"; then 10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10727 $as_echo "$UNIQ" >&6; } 10728 else 10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10730 $as_echo "no" >&6; } 10731 fi 10732 10733 10734 test -n "$UNIQ" && break 10735 done 10736 10737 else 10738 # If it succeeded, then it was overridden by the user. We will use it 10739 # for the tool. 10740 10741 # First remove it from the list of overridden variables, so we can test 10742 # for unknown variables in the end. 10743 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10744 10745 # Check if the provided tool contains a complete path. 10746 tool_specified="$UNIQ" 10747 tool_basename="${tool_specified##*/}" 10748 if test "x$tool_basename" = "x$tool_specified"; then 10749 # A command without a complete path is provided, search $PATH. 10750 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 10751 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 10752 # Extract the first word of "$tool_basename", so it can be a program name with args. 10753 set dummy $tool_basename; ac_word=$2 10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10755 $as_echo_n "checking for $ac_word... " >&6; } 10756 if ${ac_cv_path_UNIQ+:} false; then : 10757 $as_echo_n "(cached) " >&6 10758 else 10759 case $UNIQ in 10760 [\\/]* | ?:[\\/]*) 10761 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10762 ;; 10763 *) 10764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10765 for as_dir in $PATH 10766 do 10767 IFS=$as_save_IFS 10768 test -z "$as_dir" && as_dir=. 10769 for ac_exec_ext in '' $ac_executable_extensions; do 10770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10771 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10773 break 2 10774 fi 10775 done 10776 done 10777 IFS=$as_save_IFS 10778 10779 ;; 10780 esac 10781 fi 10782 UNIQ=$ac_cv_path_UNIQ 10783 if test -n "$UNIQ"; then 10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10785 $as_echo "$UNIQ" >&6; } 10786 else 10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10788 $as_echo "no" >&6; } 10789 fi 10790 10791 10792 if test "x$UNIQ" = x; then 10793 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10794 fi 10795 else 10796 # Otherwise we believe it is a complete path. Use it as it is. 10797 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 10798 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 10800 $as_echo_n "checking for UNIQ... " >&6; } 10801 if test ! -x "$tool_specified"; then 10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10803 $as_echo "not found" >&6; } 10804 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 10805 fi 10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10807 $as_echo "$tool_specified" >&6; } 10808 fi 10809 fi 10810 fi 10811 10812 10813 10814 if test "x$UNIQ" = x; then 10815 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 10816 fi 10817 10818 10819 10820 10821 10822 # Publish this variable in the help. 10823 10824 10825 if test "x$WC" = x; then 10826 # The variable is not set by user, try to locate tool using the code snippet 10827 for ac_prog in wc 10828 do 10829 # Extract the first word of "$ac_prog", so it can be a program name with args. 10830 set dummy $ac_prog; ac_word=$2 10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10832 $as_echo_n "checking for $ac_word... " >&6; } 10833 if ${ac_cv_path_WC+:} false; then : 10834 $as_echo_n "(cached) " >&6 10835 else 10836 case $WC in 10837 [\\/]* | ?:[\\/]*) 10838 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10839 ;; 10840 *) 10841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10842 for as_dir in $PATH 10843 do 10844 IFS=$as_save_IFS 10845 test -z "$as_dir" && as_dir=. 10846 for ac_exec_ext in '' $ac_executable_extensions; do 10847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10848 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10850 break 2 10851 fi 10852 done 10853 done 10854 IFS=$as_save_IFS 10855 10856 ;; 10857 esac 10858 fi 10859 WC=$ac_cv_path_WC 10860 if test -n "$WC"; then 10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10862 $as_echo "$WC" >&6; } 10863 else 10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10865 $as_echo "no" >&6; } 10866 fi 10867 10868 10869 test -n "$WC" && break 10870 done 10871 10872 else 10873 # The variable is set, but is it from the command line or the environment? 10874 10875 # Try to remove the string !WC! from our list. 10876 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 10877 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10878 # If it failed, the variable was not from the command line. Ignore it, 10879 # but warn the user (except for BASH, which is always set by the calling BASH). 10880 if test "xWC" != xBASH; then 10881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 10882 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 10883 fi 10884 # Try to locate tool using the code snippet 10885 for ac_prog in wc 10886 do 10887 # Extract the first word of "$ac_prog", so it can be a program name with args. 10888 set dummy $ac_prog; ac_word=$2 10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10890 $as_echo_n "checking for $ac_word... " >&6; } 10891 if ${ac_cv_path_WC+:} false; then : 10892 $as_echo_n "(cached) " >&6 10893 else 10894 case $WC in 10895 [\\/]* | ?:[\\/]*) 10896 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10897 ;; 10898 *) 10899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10900 for as_dir in $PATH 10901 do 10902 IFS=$as_save_IFS 10903 test -z "$as_dir" && as_dir=. 10904 for ac_exec_ext in '' $ac_executable_extensions; do 10905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10906 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10908 break 2 10909 fi 10910 done 10911 done 10912 IFS=$as_save_IFS 10913 10914 ;; 10915 esac 10916 fi 10917 WC=$ac_cv_path_WC 10918 if test -n "$WC"; then 10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10920 $as_echo "$WC" >&6; } 10921 else 10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10923 $as_echo "no" >&6; } 10924 fi 10925 10926 10927 test -n "$WC" && break 10928 done 10929 10930 else 10931 # If it succeeded, then it was overridden by the user. We will use it 10932 # for the tool. 10933 10934 # First remove it from the list of overridden variables, so we can test 10935 # for unknown variables in the end. 10936 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10937 10938 # Check if the provided tool contains a complete path. 10939 tool_specified="$WC" 10940 tool_basename="${tool_specified##*/}" 10941 if test "x$tool_basename" = "x$tool_specified"; then 10942 # A command without a complete path is provided, search $PATH. 10943 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 10944 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 10945 # Extract the first word of "$tool_basename", so it can be a program name with args. 10946 set dummy $tool_basename; ac_word=$2 10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10948 $as_echo_n "checking for $ac_word... " >&6; } 10949 if ${ac_cv_path_WC+:} false; then : 10950 $as_echo_n "(cached) " >&6 10951 else 10952 case $WC in 10953 [\\/]* | ?:[\\/]*) 10954 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10955 ;; 10956 *) 10957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10958 for as_dir in $PATH 10959 do 10960 IFS=$as_save_IFS 10961 test -z "$as_dir" && as_dir=. 10962 for ac_exec_ext in '' $ac_executable_extensions; do 10963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10964 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10966 break 2 10967 fi 10968 done 10969 done 10970 IFS=$as_save_IFS 10971 10972 ;; 10973 esac 10974 fi 10975 WC=$ac_cv_path_WC 10976 if test -n "$WC"; then 10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10978 $as_echo "$WC" >&6; } 10979 else 10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10981 $as_echo "no" >&6; } 10982 fi 10983 10984 10985 if test "x$WC" = x; then 10986 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10987 fi 10988 else 10989 # Otherwise we believe it is a complete path. Use it as it is. 10990 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 10991 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 10993 $as_echo_n "checking for WC... " >&6; } 10994 if test ! -x "$tool_specified"; then 10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10996 $as_echo "not found" >&6; } 10997 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 10998 fi 10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11000 $as_echo "$tool_specified" >&6; } 11001 fi 11002 fi 11003 fi 11004 11005 11006 11007 if test "x$WC" = x; then 11008 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 11009 fi 11010 11011 11012 11013 11014 11015 # Publish this variable in the help. 11016 11017 11018 if test "x$WHICH" = x; then 11019 # The variable is not set by user, try to locate tool using the code snippet 11020 for ac_prog in which 11021 do 11022 # Extract the first word of "$ac_prog", so it can be a program name with args. 11023 set dummy $ac_prog; ac_word=$2 11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11025 $as_echo_n "checking for $ac_word... " >&6; } 11026 if ${ac_cv_path_WHICH+:} false; then : 11027 $as_echo_n "(cached) " >&6 11028 else 11029 case $WHICH in 11030 [\\/]* | ?:[\\/]*) 11031 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11032 ;; 11033 *) 11034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11035 for as_dir in $PATH 11036 do 11037 IFS=$as_save_IFS 11038 test -z "$as_dir" && as_dir=. 11039 for ac_exec_ext in '' $ac_executable_extensions; do 11040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11041 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11043 break 2 11044 fi 11045 done 11046 done 11047 IFS=$as_save_IFS 11048 11049 ;; 11050 esac 11051 fi 11052 WHICH=$ac_cv_path_WHICH 11053 if test -n "$WHICH"; then 11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11055 $as_echo "$WHICH" >&6; } 11056 else 11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11058 $as_echo "no" >&6; } 11059 fi 11060 11061 11062 test -n "$WHICH" && break 11063 done 11064 11065 else 11066 # The variable is set, but is it from the command line or the environment? 11067 11068 # Try to remove the string !WHICH! from our list. 11069 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 11070 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11071 # If it failed, the variable was not from the command line. Ignore it, 11072 # but warn the user (except for BASH, which is always set by the calling BASH). 11073 if test "xWHICH" != xBASH; then 11074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 11075 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 11076 fi 11077 # Try to locate tool using the code snippet 11078 for ac_prog in which 11079 do 11080 # Extract the first word of "$ac_prog", so it can be a program name with args. 11081 set dummy $ac_prog; ac_word=$2 11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11083 $as_echo_n "checking for $ac_word... " >&6; } 11084 if ${ac_cv_path_WHICH+:} false; then : 11085 $as_echo_n "(cached) " >&6 11086 else 11087 case $WHICH in 11088 [\\/]* | ?:[\\/]*) 11089 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11090 ;; 11091 *) 11092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11093 for as_dir in $PATH 11094 do 11095 IFS=$as_save_IFS 11096 test -z "$as_dir" && as_dir=. 11097 for ac_exec_ext in '' $ac_executable_extensions; do 11098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11099 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11101 break 2 11102 fi 11103 done 11104 done 11105 IFS=$as_save_IFS 11106 11107 ;; 11108 esac 11109 fi 11110 WHICH=$ac_cv_path_WHICH 11111 if test -n "$WHICH"; then 11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11113 $as_echo "$WHICH" >&6; } 11114 else 11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11116 $as_echo "no" >&6; } 11117 fi 11118 11119 11120 test -n "$WHICH" && break 11121 done 11122 11123 else 11124 # If it succeeded, then it was overridden by the user. We will use it 11125 # for the tool. 11126 11127 # First remove it from the list of overridden variables, so we can test 11128 # for unknown variables in the end. 11129 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11130 11131 # Check if the provided tool contains a complete path. 11132 tool_specified="$WHICH" 11133 tool_basename="${tool_specified##*/}" 11134 if test "x$tool_basename" = "x$tool_specified"; then 11135 # A command without a complete path is provided, search $PATH. 11136 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 11137 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 11138 # Extract the first word of "$tool_basename", so it can be a program name with args. 11139 set dummy $tool_basename; ac_word=$2 11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11141 $as_echo_n "checking for $ac_word... " >&6; } 11142 if ${ac_cv_path_WHICH+:} false; then : 11143 $as_echo_n "(cached) " >&6 11144 else 11145 case $WHICH in 11146 [\\/]* | ?:[\\/]*) 11147 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11148 ;; 11149 *) 11150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11151 for as_dir in $PATH 11152 do 11153 IFS=$as_save_IFS 11154 test -z "$as_dir" && as_dir=. 11155 for ac_exec_ext in '' $ac_executable_extensions; do 11156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11157 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11159 break 2 11160 fi 11161 done 11162 done 11163 IFS=$as_save_IFS 11164 11165 ;; 11166 esac 11167 fi 11168 WHICH=$ac_cv_path_WHICH 11169 if test -n "$WHICH"; then 11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11171 $as_echo "$WHICH" >&6; } 11172 else 11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11174 $as_echo "no" >&6; } 11175 fi 11176 11177 11178 if test "x$WHICH" = x; then 11179 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11180 fi 11181 else 11182 # Otherwise we believe it is a complete path. Use it as it is. 11183 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 11184 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 11186 $as_echo_n "checking for WHICH... " >&6; } 11187 if test ! -x "$tool_specified"; then 11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11189 $as_echo "not found" >&6; } 11190 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 11191 fi 11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11193 $as_echo "$tool_specified" >&6; } 11194 fi 11195 fi 11196 fi 11197 11198 11199 11200 if test "x$WHICH" = x; then 11201 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 11202 fi 11203 11204 11205 11206 11207 11208 # Publish this variable in the help. 11209 11210 11211 if test "x$XARGS" = x; then 11212 # The variable is not set by user, try to locate tool using the code snippet 11213 for ac_prog in xargs 11214 do 11215 # Extract the first word of "$ac_prog", so it can be a program name with args. 11216 set dummy $ac_prog; ac_word=$2 11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11218 $as_echo_n "checking for $ac_word... " >&6; } 11219 if ${ac_cv_path_XARGS+:} false; then : 11220 $as_echo_n "(cached) " >&6 11221 else 11222 case $XARGS in 11223 [\\/]* | ?:[\\/]*) 11224 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11225 ;; 11226 *) 11227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11228 for as_dir in $PATH 11229 do 11230 IFS=$as_save_IFS 11231 test -z "$as_dir" && as_dir=. 11232 for ac_exec_ext in '' $ac_executable_extensions; do 11233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11234 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11236 break 2 11237 fi 11238 done 11239 done 11240 IFS=$as_save_IFS 11241 11242 ;; 11243 esac 11244 fi 11245 XARGS=$ac_cv_path_XARGS 11246 if test -n "$XARGS"; then 11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11248 $as_echo "$XARGS" >&6; } 11249 else 11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11251 $as_echo "no" >&6; } 11252 fi 11253 11254 11255 test -n "$XARGS" && break 11256 done 11257 11258 else 11259 # The variable is set, but is it from the command line or the environment? 11260 11261 # Try to remove the string !XARGS! from our list. 11262 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 11263 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11264 # If it failed, the variable was not from the command line. Ignore it, 11265 # but warn the user (except for BASH, which is always set by the calling BASH). 11266 if test "xXARGS" != xBASH; then 11267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 11268 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 11269 fi 11270 # Try to locate tool using the code snippet 11271 for ac_prog in xargs 11272 do 11273 # Extract the first word of "$ac_prog", so it can be a program name with args. 11274 set dummy $ac_prog; ac_word=$2 11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11276 $as_echo_n "checking for $ac_word... " >&6; } 11277 if ${ac_cv_path_XARGS+:} false; then : 11278 $as_echo_n "(cached) " >&6 11279 else 11280 case $XARGS in 11281 [\\/]* | ?:[\\/]*) 11282 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11283 ;; 11284 *) 11285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11286 for as_dir in $PATH 11287 do 11288 IFS=$as_save_IFS 11289 test -z "$as_dir" && as_dir=. 11290 for ac_exec_ext in '' $ac_executable_extensions; do 11291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11292 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11294 break 2 11295 fi 11296 done 11297 done 11298 IFS=$as_save_IFS 11299 11300 ;; 11301 esac 11302 fi 11303 XARGS=$ac_cv_path_XARGS 11304 if test -n "$XARGS"; then 11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11306 $as_echo "$XARGS" >&6; } 11307 else 11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11309 $as_echo "no" >&6; } 11310 fi 11311 11312 11313 test -n "$XARGS" && break 11314 done 11315 11316 else 11317 # If it succeeded, then it was overridden by the user. We will use it 11318 # for the tool. 11319 11320 # First remove it from the list of overridden variables, so we can test 11321 # for unknown variables in the end. 11322 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11323 11324 # Check if the provided tool contains a complete path. 11325 tool_specified="$XARGS" 11326 tool_basename="${tool_specified##*/}" 11327 if test "x$tool_basename" = "x$tool_specified"; then 11328 # A command without a complete path is provided, search $PATH. 11329 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 11330 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 11331 # Extract the first word of "$tool_basename", so it can be a program name with args. 11332 set dummy $tool_basename; ac_word=$2 11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11334 $as_echo_n "checking for $ac_word... " >&6; } 11335 if ${ac_cv_path_XARGS+:} false; then : 11336 $as_echo_n "(cached) " >&6 11337 else 11338 case $XARGS in 11339 [\\/]* | ?:[\\/]*) 11340 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11341 ;; 11342 *) 11343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11344 for as_dir in $PATH 11345 do 11346 IFS=$as_save_IFS 11347 test -z "$as_dir" && as_dir=. 11348 for ac_exec_ext in '' $ac_executable_extensions; do 11349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11350 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11352 break 2 11353 fi 11354 done 11355 done 11356 IFS=$as_save_IFS 11357 11358 ;; 11359 esac 11360 fi 11361 XARGS=$ac_cv_path_XARGS 11362 if test -n "$XARGS"; then 11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11364 $as_echo "$XARGS" >&6; } 11365 else 11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11367 $as_echo "no" >&6; } 11368 fi 11369 11370 11371 if test "x$XARGS" = x; then 11372 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11373 fi 11374 else 11375 # Otherwise we believe it is a complete path. Use it as it is. 11376 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 11377 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 11379 $as_echo_n "checking for XARGS... " >&6; } 11380 if test ! -x "$tool_specified"; then 11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11382 $as_echo "not found" >&6; } 11383 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 11384 fi 11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11386 $as_echo "$tool_specified" >&6; } 11387 fi 11388 fi 11389 fi 11390 11391 11392 11393 if test "x$XARGS" = x; then 11394 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 11395 fi 11396 11397 11398 11399 # Then required tools that require some special treatment. 11400 11401 11402 # Publish this variable in the help. 11403 11404 11405 if test "x$AWK" = x; then 11406 # The variable is not set by user, try to locate tool using the code snippet 11407 for ac_prog in gawk mawk nawk awk 11408 do 11409 # Extract the first word of "$ac_prog", so it can be a program name with args. 11410 set dummy $ac_prog; ac_word=$2 11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11412 $as_echo_n "checking for $ac_word... " >&6; } 11413 if ${ac_cv_prog_AWK+:} false; then : 11414 $as_echo_n "(cached) " >&6 11415 else 11416 if test -n "$AWK"; then 11417 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11418 else 11419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11420 for as_dir in $PATH 11421 do 11422 IFS=$as_save_IFS 11423 test -z "$as_dir" && as_dir=. 11424 for ac_exec_ext in '' $ac_executable_extensions; do 11425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11426 ac_cv_prog_AWK="$ac_prog" 11427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11428 break 2 11429 fi 11430 done 11431 done 11432 IFS=$as_save_IFS 11433 11434 fi 11435 fi 11436 AWK=$ac_cv_prog_AWK 11437 if test -n "$AWK"; then 11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11439 $as_echo "$AWK" >&6; } 11440 else 11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11442 $as_echo "no" >&6; } 11443 fi 11444 11445 11446 test -n "$AWK" && break 11447 done 11448 11449 else 11450 # The variable is set, but is it from the command line or the environment? 11451 11452 # Try to remove the string !AWK! from our list. 11453 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 11454 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11455 # If it failed, the variable was not from the command line. Ignore it, 11456 # but warn the user (except for BASH, which is always set by the calling BASH). 11457 if test "xAWK" != xBASH; then 11458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 11459 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 11460 fi 11461 # Try to locate tool using the code snippet 11462 for ac_prog in gawk mawk nawk awk 11463 do 11464 # Extract the first word of "$ac_prog", so it can be a program name with args. 11465 set dummy $ac_prog; ac_word=$2 11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11467 $as_echo_n "checking for $ac_word... " >&6; } 11468 if ${ac_cv_prog_AWK+:} false; then : 11469 $as_echo_n "(cached) " >&6 11470 else 11471 if test -n "$AWK"; then 11472 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11473 else 11474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11475 for as_dir in $PATH 11476 do 11477 IFS=$as_save_IFS 11478 test -z "$as_dir" && as_dir=. 11479 for ac_exec_ext in '' $ac_executable_extensions; do 11480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11481 ac_cv_prog_AWK="$ac_prog" 11482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11483 break 2 11484 fi 11485 done 11486 done 11487 IFS=$as_save_IFS 11488 11489 fi 11490 fi 11491 AWK=$ac_cv_prog_AWK 11492 if test -n "$AWK"; then 11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11494 $as_echo "$AWK" >&6; } 11495 else 11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11497 $as_echo "no" >&6; } 11498 fi 11499 11500 11501 test -n "$AWK" && break 11502 done 11503 11504 else 11505 # If it succeeded, then it was overridden by the user. We will use it 11506 # for the tool. 11507 11508 # First remove it from the list of overridden variables, so we can test 11509 # for unknown variables in the end. 11510 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11511 11512 # Check if the provided tool contains a complete path. 11513 tool_specified="$AWK" 11514 tool_basename="${tool_specified##*/}" 11515 if test "x$tool_basename" = "x$tool_specified"; then 11516 # A command without a complete path is provided, search $PATH. 11517 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 11518 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 11519 # Extract the first word of "$tool_basename", so it can be a program name with args. 11520 set dummy $tool_basename; ac_word=$2 11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11522 $as_echo_n "checking for $ac_word... " >&6; } 11523 if ${ac_cv_path_AWK+:} false; then : 11524 $as_echo_n "(cached) " >&6 11525 else 11526 case $AWK in 11527 [\\/]* | ?:[\\/]*) 11528 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 11529 ;; 11530 *) 11531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11532 for as_dir in $PATH 11533 do 11534 IFS=$as_save_IFS 11535 test -z "$as_dir" && as_dir=. 11536 for ac_exec_ext in '' $ac_executable_extensions; do 11537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11538 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 11539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11540 break 2 11541 fi 11542 done 11543 done 11544 IFS=$as_save_IFS 11545 11546 ;; 11547 esac 11548 fi 11549 AWK=$ac_cv_path_AWK 11550 if test -n "$AWK"; then 11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11552 $as_echo "$AWK" >&6; } 11553 else 11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11555 $as_echo "no" >&6; } 11556 fi 11557 11558 11559 if test "x$AWK" = x; then 11560 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11561 fi 11562 else 11563 # Otherwise we believe it is a complete path. Use it as it is. 11564 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 11565 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 11567 $as_echo_n "checking for AWK... " >&6; } 11568 if test ! -x "$tool_specified"; then 11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11570 $as_echo "not found" >&6; } 11571 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 11572 fi 11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11574 $as_echo "$tool_specified" >&6; } 11575 fi 11576 fi 11577 fi 11578 11579 11580 if test "x$AWK" = x; then 11581 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 11582 fi 11583 11584 11585 11586 11587 # Publish this variable in the help. 11588 11589 11590 if test "x$GREP" = x; then 11591 # The variable is not set by user, try to locate tool using the code snippet 11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11593 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11594 if ${ac_cv_path_GREP+:} false; then : 11595 $as_echo_n "(cached) " >&6 11596 else 11597 if test -z "$GREP"; then 11598 ac_path_GREP_found=false 11599 # Loop through the user's path and test for each of PROGNAME-LIST 11600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11601 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11602 do 11603 IFS=$as_save_IFS 11604 test -z "$as_dir" && as_dir=. 11605 for ac_prog in grep ggrep; do 11606 for ac_exec_ext in '' $ac_executable_extensions; do 11607 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11608 as_fn_executable_p "$ac_path_GREP" || continue 11609 # Check for GNU ac_path_GREP and select it if it is found. 11610 # Check for GNU $ac_path_GREP 11611 case `"$ac_path_GREP" --version 2>&1` in 11612 *GNU*) 11613 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11614 *) 11615 ac_count=0 11616 $as_echo_n 0123456789 >"conftest.in" 11617 while : 11618 do 11619 cat "conftest.in" "conftest.in" >"conftest.tmp" 11620 mv "conftest.tmp" "conftest.in" 11621 cp "conftest.in" "conftest.nl" 11622 $as_echo 'GREP' >> "conftest.nl" 11623 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11624 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11625 as_fn_arith $ac_count + 1 && ac_count=$as_val 11626 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11627 # Best one so far, save it but keep looking for a better one 11628 ac_cv_path_GREP="$ac_path_GREP" 11629 ac_path_GREP_max=$ac_count 11630 fi 11631 # 10*(2^10) chars as input seems more than enough 11632 test $ac_count -gt 10 && break 11633 done 11634 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11635 esac 11636 11637 $ac_path_GREP_found && break 3 11638 done 11639 done 11640 done 11641 IFS=$as_save_IFS 11642 if test -z "$ac_cv_path_GREP"; then 11643 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11644 fi 11645 else 11646 ac_cv_path_GREP=$GREP 11647 fi 11648 11649 fi 11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11651 $as_echo "$ac_cv_path_GREP" >&6; } 11652 GREP="$ac_cv_path_GREP" 11653 11654 11655 else 11656 # The variable is set, but is it from the command line or the environment? 11657 11658 # Try to remove the string !GREP! from our list. 11659 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 11660 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11661 # If it failed, the variable was not from the command line. Ignore it, 11662 # but warn the user (except for BASH, which is always set by the calling BASH). 11663 if test "xGREP" != xBASH; then 11664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 11665 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 11666 fi 11667 # Try to locate tool using the code snippet 11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11669 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11670 if ${ac_cv_path_GREP+:} false; then : 11671 $as_echo_n "(cached) " >&6 11672 else 11673 if test -z "$GREP"; then 11674 ac_path_GREP_found=false 11675 # Loop through the user's path and test for each of PROGNAME-LIST 11676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11677 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11678 do 11679 IFS=$as_save_IFS 11680 test -z "$as_dir" && as_dir=. 11681 for ac_prog in grep ggrep; do 11682 for ac_exec_ext in '' $ac_executable_extensions; do 11683 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11684 as_fn_executable_p "$ac_path_GREP" || continue 11685 # Check for GNU ac_path_GREP and select it if it is found. 11686 # Check for GNU $ac_path_GREP 11687 case `"$ac_path_GREP" --version 2>&1` in 11688 *GNU*) 11689 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11690 *) 11691 ac_count=0 11692 $as_echo_n 0123456789 >"conftest.in" 11693 while : 11694 do 11695 cat "conftest.in" "conftest.in" >"conftest.tmp" 11696 mv "conftest.tmp" "conftest.in" 11697 cp "conftest.in" "conftest.nl" 11698 $as_echo 'GREP' >> "conftest.nl" 11699 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11700 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11701 as_fn_arith $ac_count + 1 && ac_count=$as_val 11702 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11703 # Best one so far, save it but keep looking for a better one 11704 ac_cv_path_GREP="$ac_path_GREP" 11705 ac_path_GREP_max=$ac_count 11706 fi 11707 # 10*(2^10) chars as input seems more than enough 11708 test $ac_count -gt 10 && break 11709 done 11710 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11711 esac 11712 11713 $ac_path_GREP_found && break 3 11714 done 11715 done 11716 done 11717 IFS=$as_save_IFS 11718 if test -z "$ac_cv_path_GREP"; then 11719 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11720 fi 11721 else 11722 ac_cv_path_GREP=$GREP 11723 fi 11724 11725 fi 11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11727 $as_echo "$ac_cv_path_GREP" >&6; } 11728 GREP="$ac_cv_path_GREP" 11729 11730 11731 else 11732 # If it succeeded, then it was overridden by the user. We will use it 11733 # for the tool. 11734 11735 # First remove it from the list of overridden variables, so we can test 11736 # for unknown variables in the end. 11737 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11738 11739 # Check if the provided tool contains a complete path. 11740 tool_specified="$GREP" 11741 tool_basename="${tool_specified##*/}" 11742 if test "x$tool_basename" = "x$tool_specified"; then 11743 # A command without a complete path is provided, search $PATH. 11744 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 11745 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 11746 # Extract the first word of "$tool_basename", so it can be a program name with args. 11747 set dummy $tool_basename; ac_word=$2 11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11749 $as_echo_n "checking for $ac_word... " >&6; } 11750 if ${ac_cv_path_GREP+:} false; then : 11751 $as_echo_n "(cached) " >&6 11752 else 11753 case $GREP in 11754 [\\/]* | ?:[\\/]*) 11755 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 11756 ;; 11757 *) 11758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11759 for as_dir in $PATH 11760 do 11761 IFS=$as_save_IFS 11762 test -z "$as_dir" && as_dir=. 11763 for ac_exec_ext in '' $ac_executable_extensions; do 11764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11765 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 11766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11767 break 2 11768 fi 11769 done 11770 done 11771 IFS=$as_save_IFS 11772 11773 ;; 11774 esac 11775 fi 11776 GREP=$ac_cv_path_GREP 11777 if test -n "$GREP"; then 11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 11779 $as_echo "$GREP" >&6; } 11780 else 11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11782 $as_echo "no" >&6; } 11783 fi 11784 11785 11786 if test "x$GREP" = x; then 11787 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11788 fi 11789 else 11790 # Otherwise we believe it is a complete path. Use it as it is. 11791 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 11792 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 11794 $as_echo_n "checking for GREP... " >&6; } 11795 if test ! -x "$tool_specified"; then 11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11797 $as_echo "not found" >&6; } 11798 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11799 fi 11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11801 $as_echo "$tool_specified" >&6; } 11802 fi 11803 fi 11804 fi 11805 11806 11807 if test "x$GREP" = x; then 11808 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 11809 fi 11810 11811 11812 11813 11814 # Publish this variable in the help. 11815 11816 11817 if test "x$EGREP" = x; then 11818 # The variable is not set by user, try to locate tool using the code snippet 11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11820 $as_echo_n "checking for egrep... " >&6; } 11821 if ${ac_cv_path_EGREP+:} false; then : 11822 $as_echo_n "(cached) " >&6 11823 else 11824 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11825 then ac_cv_path_EGREP="$GREP -E" 11826 else 11827 if test -z "$EGREP"; then 11828 ac_path_EGREP_found=false 11829 # Loop through the user's path and test for each of PROGNAME-LIST 11830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11831 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11832 do 11833 IFS=$as_save_IFS 11834 test -z "$as_dir" && as_dir=. 11835 for ac_prog in egrep; do 11836 for ac_exec_ext in '' $ac_executable_extensions; do 11837 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11838 as_fn_executable_p "$ac_path_EGREP" || continue 11839 # Check for GNU ac_path_EGREP and select it if it is found. 11840 # Check for GNU $ac_path_EGREP 11841 case `"$ac_path_EGREP" --version 2>&1` in 11842 *GNU*) 11843 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11844 *) 11845 ac_count=0 11846 $as_echo_n 0123456789 >"conftest.in" 11847 while : 11848 do 11849 cat "conftest.in" "conftest.in" >"conftest.tmp" 11850 mv "conftest.tmp" "conftest.in" 11851 cp "conftest.in" "conftest.nl" 11852 $as_echo 'EGREP' >> "conftest.nl" 11853 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11854 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11855 as_fn_arith $ac_count + 1 && ac_count=$as_val 11856 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11857 # Best one so far, save it but keep looking for a better one 11858 ac_cv_path_EGREP="$ac_path_EGREP" 11859 ac_path_EGREP_max=$ac_count 11860 fi 11861 # 10*(2^10) chars as input seems more than enough 11862 test $ac_count -gt 10 && break 11863 done 11864 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11865 esac 11866 11867 $ac_path_EGREP_found && break 3 11868 done 11869 done 11870 done 11871 IFS=$as_save_IFS 11872 if test -z "$ac_cv_path_EGREP"; then 11873 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11874 fi 11875 else 11876 ac_cv_path_EGREP=$EGREP 11877 fi 11878 11879 fi 11880 fi 11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11882 $as_echo "$ac_cv_path_EGREP" >&6; } 11883 EGREP="$ac_cv_path_EGREP" 11884 11885 11886 else 11887 # The variable is set, but is it from the command line or the environment? 11888 11889 # Try to remove the string !EGREP! from our list. 11890 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 11891 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11892 # If it failed, the variable was not from the command line. Ignore it, 11893 # but warn the user (except for BASH, which is always set by the calling BASH). 11894 if test "xEGREP" != xBASH; then 11895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 11896 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 11897 fi 11898 # Try to locate tool using the code snippet 11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11900 $as_echo_n "checking for egrep... " >&6; } 11901 if ${ac_cv_path_EGREP+:} false; then : 11902 $as_echo_n "(cached) " >&6 11903 else 11904 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11905 then ac_cv_path_EGREP="$GREP -E" 11906 else 11907 if test -z "$EGREP"; then 11908 ac_path_EGREP_found=false 11909 # Loop through the user's path and test for each of PROGNAME-LIST 11910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11911 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11912 do 11913 IFS=$as_save_IFS 11914 test -z "$as_dir" && as_dir=. 11915 for ac_prog in egrep; do 11916 for ac_exec_ext in '' $ac_executable_extensions; do 11917 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11918 as_fn_executable_p "$ac_path_EGREP" || continue 11919 # Check for GNU ac_path_EGREP and select it if it is found. 11920 # Check for GNU $ac_path_EGREP 11921 case `"$ac_path_EGREP" --version 2>&1` in 11922 *GNU*) 11923 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11924 *) 11925 ac_count=0 11926 $as_echo_n 0123456789 >"conftest.in" 11927 while : 11928 do 11929 cat "conftest.in" "conftest.in" >"conftest.tmp" 11930 mv "conftest.tmp" "conftest.in" 11931 cp "conftest.in" "conftest.nl" 11932 $as_echo 'EGREP' >> "conftest.nl" 11933 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11934 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11935 as_fn_arith $ac_count + 1 && ac_count=$as_val 11936 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11937 # Best one so far, save it but keep looking for a better one 11938 ac_cv_path_EGREP="$ac_path_EGREP" 11939 ac_path_EGREP_max=$ac_count 11940 fi 11941 # 10*(2^10) chars as input seems more than enough 11942 test $ac_count -gt 10 && break 11943 done 11944 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11945 esac 11946 11947 $ac_path_EGREP_found && break 3 11948 done 11949 done 11950 done 11951 IFS=$as_save_IFS 11952 if test -z "$ac_cv_path_EGREP"; then 11953 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11954 fi 11955 else 11956 ac_cv_path_EGREP=$EGREP 11957 fi 11958 11959 fi 11960 fi 11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11962 $as_echo "$ac_cv_path_EGREP" >&6; } 11963 EGREP="$ac_cv_path_EGREP" 11964 11965 11966 else 11967 # If it succeeded, then it was overridden by the user. We will use it 11968 # for the tool. 11969 11970 # First remove it from the list of overridden variables, so we can test 11971 # for unknown variables in the end. 11972 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11973 11974 # Check if the provided tool contains a complete path. 11975 tool_specified="$EGREP" 11976 tool_basename="${tool_specified##*/}" 11977 if test "x$tool_basename" = "x$tool_specified"; then 11978 # A command without a complete path is provided, search $PATH. 11979 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 11980 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 11981 # Extract the first word of "$tool_basename", so it can be a program name with args. 11982 set dummy $tool_basename; ac_word=$2 11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11984 $as_echo_n "checking for $ac_word... " >&6; } 11985 if ${ac_cv_path_EGREP+:} false; then : 11986 $as_echo_n "(cached) " >&6 11987 else 11988 case $EGREP in 11989 [\\/]* | ?:[\\/]*) 11990 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 11991 ;; 11992 *) 11993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11994 for as_dir in $PATH 11995 do 11996 IFS=$as_save_IFS 11997 test -z "$as_dir" && as_dir=. 11998 for ac_exec_ext in '' $ac_executable_extensions; do 11999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12000 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 12001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12002 break 2 12003 fi 12004 done 12005 done 12006 IFS=$as_save_IFS 12007 12008 ;; 12009 esac 12010 fi 12011 EGREP=$ac_cv_path_EGREP 12012 if test -n "$EGREP"; then 12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 12014 $as_echo "$EGREP" >&6; } 12015 else 12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12017 $as_echo "no" >&6; } 12018 fi 12019 12020 12021 if test "x$EGREP" = x; then 12022 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12023 fi 12024 else 12025 # Otherwise we believe it is a complete path. Use it as it is. 12026 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 12027 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 12029 $as_echo_n "checking for EGREP... " >&6; } 12030 if test ! -x "$tool_specified"; then 12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12032 $as_echo "not found" >&6; } 12033 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12034 fi 12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12036 $as_echo "$tool_specified" >&6; } 12037 fi 12038 fi 12039 fi 12040 12041 12042 if test "x$EGREP" = x; then 12043 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 12044 fi 12045 12046 12047 12048 12049 # Publish this variable in the help. 12050 12051 12052 if test "x$FGREP" = x; then 12053 # The variable is not set by user, try to locate tool using the code snippet 12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12055 $as_echo_n "checking for fgrep... " >&6; } 12056 if ${ac_cv_path_FGREP+:} false; then : 12057 $as_echo_n "(cached) " >&6 12058 else 12059 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12060 then ac_cv_path_FGREP="$GREP -F" 12061 else 12062 if test -z "$FGREP"; then 12063 ac_path_FGREP_found=false 12064 # Loop through the user's path and test for each of PROGNAME-LIST 12065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12066 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12067 do 12068 IFS=$as_save_IFS 12069 test -z "$as_dir" && as_dir=. 12070 for ac_prog in fgrep; do 12071 for ac_exec_ext in '' $ac_executable_extensions; do 12072 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12073 as_fn_executable_p "$ac_path_FGREP" || continue 12074 # Check for GNU ac_path_FGREP and select it if it is found. 12075 # Check for GNU $ac_path_FGREP 12076 case `"$ac_path_FGREP" --version 2>&1` in 12077 *GNU*) 12078 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12079 *) 12080 ac_count=0 12081 $as_echo_n 0123456789 >"conftest.in" 12082 while : 12083 do 12084 cat "conftest.in" "conftest.in" >"conftest.tmp" 12085 mv "conftest.tmp" "conftest.in" 12086 cp "conftest.in" "conftest.nl" 12087 $as_echo 'FGREP' >> "conftest.nl" 12088 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12089 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12090 as_fn_arith $ac_count + 1 && ac_count=$as_val 12091 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12092 # Best one so far, save it but keep looking for a better one 12093 ac_cv_path_FGREP="$ac_path_FGREP" 12094 ac_path_FGREP_max=$ac_count 12095 fi 12096 # 10*(2^10) chars as input seems more than enough 12097 test $ac_count -gt 10 && break 12098 done 12099 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12100 esac 12101 12102 $ac_path_FGREP_found && break 3 12103 done 12104 done 12105 done 12106 IFS=$as_save_IFS 12107 if test -z "$ac_cv_path_FGREP"; then 12108 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12109 fi 12110 else 12111 ac_cv_path_FGREP=$FGREP 12112 fi 12113 12114 fi 12115 fi 12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12117 $as_echo "$ac_cv_path_FGREP" >&6; } 12118 FGREP="$ac_cv_path_FGREP" 12119 12120 12121 else 12122 # The variable is set, but is it from the command line or the environment? 12123 12124 # Try to remove the string !FGREP! from our list. 12125 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 12126 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12127 # If it failed, the variable was not from the command line. Ignore it, 12128 # but warn the user (except for BASH, which is always set by the calling BASH). 12129 if test "xFGREP" != xBASH; then 12130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 12131 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 12132 fi 12133 # Try to locate tool using the code snippet 12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12135 $as_echo_n "checking for fgrep... " >&6; } 12136 if ${ac_cv_path_FGREP+:} false; then : 12137 $as_echo_n "(cached) " >&6 12138 else 12139 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12140 then ac_cv_path_FGREP="$GREP -F" 12141 else 12142 if test -z "$FGREP"; then 12143 ac_path_FGREP_found=false 12144 # Loop through the user's path and test for each of PROGNAME-LIST 12145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12146 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12147 do 12148 IFS=$as_save_IFS 12149 test -z "$as_dir" && as_dir=. 12150 for ac_prog in fgrep; do 12151 for ac_exec_ext in '' $ac_executable_extensions; do 12152 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12153 as_fn_executable_p "$ac_path_FGREP" || continue 12154 # Check for GNU ac_path_FGREP and select it if it is found. 12155 # Check for GNU $ac_path_FGREP 12156 case `"$ac_path_FGREP" --version 2>&1` in 12157 *GNU*) 12158 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12159 *) 12160 ac_count=0 12161 $as_echo_n 0123456789 >"conftest.in" 12162 while : 12163 do 12164 cat "conftest.in" "conftest.in" >"conftest.tmp" 12165 mv "conftest.tmp" "conftest.in" 12166 cp "conftest.in" "conftest.nl" 12167 $as_echo 'FGREP' >> "conftest.nl" 12168 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12169 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12170 as_fn_arith $ac_count + 1 && ac_count=$as_val 12171 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12172 # Best one so far, save it but keep looking for a better one 12173 ac_cv_path_FGREP="$ac_path_FGREP" 12174 ac_path_FGREP_max=$ac_count 12175 fi 12176 # 10*(2^10) chars as input seems more than enough 12177 test $ac_count -gt 10 && break 12178 done 12179 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12180 esac 12181 12182 $ac_path_FGREP_found && break 3 12183 done 12184 done 12185 done 12186 IFS=$as_save_IFS 12187 if test -z "$ac_cv_path_FGREP"; then 12188 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12189 fi 12190 else 12191 ac_cv_path_FGREP=$FGREP 12192 fi 12193 12194 fi 12195 fi 12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12197 $as_echo "$ac_cv_path_FGREP" >&6; } 12198 FGREP="$ac_cv_path_FGREP" 12199 12200 12201 else 12202 # If it succeeded, then it was overridden by the user. We will use it 12203 # for the tool. 12204 12205 # First remove it from the list of overridden variables, so we can test 12206 # for unknown variables in the end. 12207 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12208 12209 # Check if the provided tool contains a complete path. 12210 tool_specified="$FGREP" 12211 tool_basename="${tool_specified##*/}" 12212 if test "x$tool_basename" = "x$tool_specified"; then 12213 # A command without a complete path is provided, search $PATH. 12214 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 12215 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 12216 # Extract the first word of "$tool_basename", so it can be a program name with args. 12217 set dummy $tool_basename; ac_word=$2 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12219 $as_echo_n "checking for $ac_word... " >&6; } 12220 if ${ac_cv_path_FGREP+:} false; then : 12221 $as_echo_n "(cached) " >&6 12222 else 12223 case $FGREP in 12224 [\\/]* | ?:[\\/]*) 12225 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 12226 ;; 12227 *) 12228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12229 for as_dir in $PATH 12230 do 12231 IFS=$as_save_IFS 12232 test -z "$as_dir" && as_dir=. 12233 for ac_exec_ext in '' $ac_executable_extensions; do 12234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12235 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 12236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12237 break 2 12238 fi 12239 done 12240 done 12241 IFS=$as_save_IFS 12242 12243 ;; 12244 esac 12245 fi 12246 FGREP=$ac_cv_path_FGREP 12247 if test -n "$FGREP"; then 12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 12249 $as_echo "$FGREP" >&6; } 12250 else 12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12252 $as_echo "no" >&6; } 12253 fi 12254 12255 12256 if test "x$FGREP" = x; then 12257 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12258 fi 12259 else 12260 # Otherwise we believe it is a complete path. Use it as it is. 12261 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 12262 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 12264 $as_echo_n "checking for FGREP... " >&6; } 12265 if test ! -x "$tool_specified"; then 12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12267 $as_echo "not found" >&6; } 12268 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12269 fi 12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12271 $as_echo "$tool_specified" >&6; } 12272 fi 12273 fi 12274 fi 12275 12276 12277 if test "x$FGREP" = x; then 12278 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 12279 fi 12280 12281 12282 12283 12284 # Publish this variable in the help. 12285 12286 12287 if test "x$SED" = x; then 12288 # The variable is not set by user, try to locate tool using the code snippet 12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12290 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12291 if ${ac_cv_path_SED+:} false; then : 12292 $as_echo_n "(cached) " >&6 12293 else 12294 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12295 for ac_i in 1 2 3 4 5 6 7; do 12296 ac_script="$ac_script$as_nl$ac_script" 12297 done 12298 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12299 { ac_script=; unset ac_script;} 12300 if test -z "$SED"; then 12301 ac_path_SED_found=false 12302 # Loop through the user's path and test for each of PROGNAME-LIST 12303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12304 for as_dir in $PATH 12305 do 12306 IFS=$as_save_IFS 12307 test -z "$as_dir" && as_dir=. 12308 for ac_prog in sed gsed; do 12309 for ac_exec_ext in '' $ac_executable_extensions; do 12310 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12311 as_fn_executable_p "$ac_path_SED" || continue 12312 # Check for GNU ac_path_SED and select it if it is found. 12313 # Check for GNU $ac_path_SED 12314 case `"$ac_path_SED" --version 2>&1` in 12315 *GNU*) 12316 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12317 *) 12318 ac_count=0 12319 $as_echo_n 0123456789 >"conftest.in" 12320 while : 12321 do 12322 cat "conftest.in" "conftest.in" >"conftest.tmp" 12323 mv "conftest.tmp" "conftest.in" 12324 cp "conftest.in" "conftest.nl" 12325 $as_echo '' >> "conftest.nl" 12326 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12328 as_fn_arith $ac_count + 1 && ac_count=$as_val 12329 if test $ac_count -gt ${ac_path_SED_max-0}; then 12330 # Best one so far, save it but keep looking for a better one 12331 ac_cv_path_SED="$ac_path_SED" 12332 ac_path_SED_max=$ac_count 12333 fi 12334 # 10*(2^10) chars as input seems more than enough 12335 test $ac_count -gt 10 && break 12336 done 12337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12338 esac 12339 12340 $ac_path_SED_found && break 3 12341 done 12342 done 12343 done 12344 IFS=$as_save_IFS 12345 if test -z "$ac_cv_path_SED"; then 12346 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12347 fi 12348 else 12349 ac_cv_path_SED=$SED 12350 fi 12351 12352 fi 12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12354 $as_echo "$ac_cv_path_SED" >&6; } 12355 SED="$ac_cv_path_SED" 12356 rm -f conftest.sed 12357 12358 else 12359 # The variable is set, but is it from the command line or the environment? 12360 12361 # Try to remove the string !SED! from our list. 12362 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 12363 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12364 # If it failed, the variable was not from the command line. Ignore it, 12365 # but warn the user (except for BASH, which is always set by the calling BASH). 12366 if test "xSED" != xBASH; then 12367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 12368 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 12369 fi 12370 # Try to locate tool using the code snippet 12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12372 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12373 if ${ac_cv_path_SED+:} false; then : 12374 $as_echo_n "(cached) " >&6 12375 else 12376 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12377 for ac_i in 1 2 3 4 5 6 7; do 12378 ac_script="$ac_script$as_nl$ac_script" 12379 done 12380 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12381 { ac_script=; unset ac_script;} 12382 if test -z "$SED"; then 12383 ac_path_SED_found=false 12384 # Loop through the user's path and test for each of PROGNAME-LIST 12385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12386 for as_dir in $PATH 12387 do 12388 IFS=$as_save_IFS 12389 test -z "$as_dir" && as_dir=. 12390 for ac_prog in sed gsed; do 12391 for ac_exec_ext in '' $ac_executable_extensions; do 12392 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12393 as_fn_executable_p "$ac_path_SED" || continue 12394 # Check for GNU ac_path_SED and select it if it is found. 12395 # Check for GNU $ac_path_SED 12396 case `"$ac_path_SED" --version 2>&1` in 12397 *GNU*) 12398 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12399 *) 12400 ac_count=0 12401 $as_echo_n 0123456789 >"conftest.in" 12402 while : 12403 do 12404 cat "conftest.in" "conftest.in" >"conftest.tmp" 12405 mv "conftest.tmp" "conftest.in" 12406 cp "conftest.in" "conftest.nl" 12407 $as_echo '' >> "conftest.nl" 12408 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12409 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12410 as_fn_arith $ac_count + 1 && ac_count=$as_val 12411 if test $ac_count -gt ${ac_path_SED_max-0}; then 12412 # Best one so far, save it but keep looking for a better one 12413 ac_cv_path_SED="$ac_path_SED" 12414 ac_path_SED_max=$ac_count 12415 fi 12416 # 10*(2^10) chars as input seems more than enough 12417 test $ac_count -gt 10 && break 12418 done 12419 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12420 esac 12421 12422 $ac_path_SED_found && break 3 12423 done 12424 done 12425 done 12426 IFS=$as_save_IFS 12427 if test -z "$ac_cv_path_SED"; then 12428 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12429 fi 12430 else 12431 ac_cv_path_SED=$SED 12432 fi 12433 12434 fi 12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12436 $as_echo "$ac_cv_path_SED" >&6; } 12437 SED="$ac_cv_path_SED" 12438 rm -f conftest.sed 12439 12440 else 12441 # If it succeeded, then it was overridden by the user. We will use it 12442 # for the tool. 12443 12444 # First remove it from the list of overridden variables, so we can test 12445 # for unknown variables in the end. 12446 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12447 12448 # Check if the provided tool contains a complete path. 12449 tool_specified="$SED" 12450 tool_basename="${tool_specified##*/}" 12451 if test "x$tool_basename" = "x$tool_specified"; then 12452 # A command without a complete path is provided, search $PATH. 12453 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 12454 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 12455 # Extract the first word of "$tool_basename", so it can be a program name with args. 12456 set dummy $tool_basename; ac_word=$2 12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12458 $as_echo_n "checking for $ac_word... " >&6; } 12459 if ${ac_cv_path_SED+:} false; then : 12460 $as_echo_n "(cached) " >&6 12461 else 12462 case $SED in 12463 [\\/]* | ?:[\\/]*) 12464 ac_cv_path_SED="$SED" # Let the user override the test with a path. 12465 ;; 12466 *) 12467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12468 for as_dir in $PATH 12469 do 12470 IFS=$as_save_IFS 12471 test -z "$as_dir" && as_dir=. 12472 for ac_exec_ext in '' $ac_executable_extensions; do 12473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12474 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 12475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12476 break 2 12477 fi 12478 done 12479 done 12480 IFS=$as_save_IFS 12481 12482 ;; 12483 esac 12484 fi 12485 SED=$ac_cv_path_SED 12486 if test -n "$SED"; then 12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 12488 $as_echo "$SED" >&6; } 12489 else 12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12491 $as_echo "no" >&6; } 12492 fi 12493 12494 12495 if test "x$SED" = x; then 12496 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12497 fi 12498 else 12499 # Otherwise we believe it is a complete path. Use it as it is. 12500 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 12501 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 12503 $as_echo_n "checking for SED... " >&6; } 12504 if test ! -x "$tool_specified"; then 12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12506 $as_echo "not found" >&6; } 12507 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 12508 fi 12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12510 $as_echo "$tool_specified" >&6; } 12511 fi 12512 fi 12513 fi 12514 12515 12516 if test "x$SED" = x; then 12517 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 12518 fi 12519 12520 12521 12522 # Always force rm. 12523 RM="$RM -f" 12524 12525 # pwd behaves differently on various platforms and some don't support the -L flag. 12526 # Always use the bash builtin pwd to get uniform behavior. 12527 THEPWDCMD=pwd 12528 12529 # These are not required on all platforms 12530 12531 12532 # Publish this variable in the help. 12533 12534 12535 if test "x$CYGPATH" = x; then 12536 # The variable is not set by user, try to locate tool using the code snippet 12537 for ac_prog in cygpath 12538 do 12539 # Extract the first word of "$ac_prog", so it can be a program name with args. 12540 set dummy $ac_prog; ac_word=$2 12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12542 $as_echo_n "checking for $ac_word... " >&6; } 12543 if ${ac_cv_path_CYGPATH+:} false; then : 12544 $as_echo_n "(cached) " >&6 12545 else 12546 case $CYGPATH in 12547 [\\/]* | ?:[\\/]*) 12548 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12549 ;; 12550 *) 12551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12552 for as_dir in $PATH 12553 do 12554 IFS=$as_save_IFS 12555 test -z "$as_dir" && as_dir=. 12556 for ac_exec_ext in '' $ac_executable_extensions; do 12557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12558 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12560 break 2 12561 fi 12562 done 12563 done 12564 IFS=$as_save_IFS 12565 12566 ;; 12567 esac 12568 fi 12569 CYGPATH=$ac_cv_path_CYGPATH 12570 if test -n "$CYGPATH"; then 12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12572 $as_echo "$CYGPATH" >&6; } 12573 else 12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12575 $as_echo "no" >&6; } 12576 fi 12577 12578 12579 test -n "$CYGPATH" && break 12580 done 12581 12582 else 12583 # The variable is set, but is it from the command line or the environment? 12584 12585 # Try to remove the string !CYGPATH! from our list. 12586 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 12587 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12588 # If it failed, the variable was not from the command line. Ignore it, 12589 # but warn the user (except for BASH, which is always set by the calling BASH). 12590 if test "xCYGPATH" != xBASH; then 12591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 12592 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 12593 fi 12594 # Try to locate tool using the code snippet 12595 for ac_prog in cygpath 12596 do 12597 # Extract the first word of "$ac_prog", so it can be a program name with args. 12598 set dummy $ac_prog; ac_word=$2 12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12600 $as_echo_n "checking for $ac_word... " >&6; } 12601 if ${ac_cv_path_CYGPATH+:} false; then : 12602 $as_echo_n "(cached) " >&6 12603 else 12604 case $CYGPATH in 12605 [\\/]* | ?:[\\/]*) 12606 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12607 ;; 12608 *) 12609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12610 for as_dir in $PATH 12611 do 12612 IFS=$as_save_IFS 12613 test -z "$as_dir" && as_dir=. 12614 for ac_exec_ext in '' $ac_executable_extensions; do 12615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12616 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12618 break 2 12619 fi 12620 done 12621 done 12622 IFS=$as_save_IFS 12623 12624 ;; 12625 esac 12626 fi 12627 CYGPATH=$ac_cv_path_CYGPATH 12628 if test -n "$CYGPATH"; then 12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12630 $as_echo "$CYGPATH" >&6; } 12631 else 12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12633 $as_echo "no" >&6; } 12634 fi 12635 12636 12637 test -n "$CYGPATH" && break 12638 done 12639 12640 else 12641 # If it succeeded, then it was overridden by the user. We will use it 12642 # for the tool. 12643 12644 # First remove it from the list of overridden variables, so we can test 12645 # for unknown variables in the end. 12646 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12647 12648 # Check if the provided tool contains a complete path. 12649 tool_specified="$CYGPATH" 12650 tool_basename="${tool_specified##*/}" 12651 if test "x$tool_basename" = "x$tool_specified"; then 12652 # A command without a complete path is provided, search $PATH. 12653 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 12654 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 12655 # Extract the first word of "$tool_basename", so it can be a program name with args. 12656 set dummy $tool_basename; ac_word=$2 12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12658 $as_echo_n "checking for $ac_word... " >&6; } 12659 if ${ac_cv_path_CYGPATH+:} false; then : 12660 $as_echo_n "(cached) " >&6 12661 else 12662 case $CYGPATH in 12663 [\\/]* | ?:[\\/]*) 12664 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12665 ;; 12666 *) 12667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12668 for as_dir in $PATH 12669 do 12670 IFS=$as_save_IFS 12671 test -z "$as_dir" && as_dir=. 12672 for ac_exec_ext in '' $ac_executable_extensions; do 12673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12674 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12676 break 2 12677 fi 12678 done 12679 done 12680 IFS=$as_save_IFS 12681 12682 ;; 12683 esac 12684 fi 12685 CYGPATH=$ac_cv_path_CYGPATH 12686 if test -n "$CYGPATH"; then 12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12688 $as_echo "$CYGPATH" >&6; } 12689 else 12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12691 $as_echo "no" >&6; } 12692 fi 12693 12694 12695 if test "x$CYGPATH" = x; then 12696 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12697 fi 12698 else 12699 # Otherwise we believe it is a complete path. Use it as it is. 12700 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 12701 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 12703 $as_echo_n "checking for CYGPATH... " >&6; } 12704 if test ! -x "$tool_specified"; then 12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12706 $as_echo "not found" >&6; } 12707 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 12708 fi 12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12710 $as_echo "$tool_specified" >&6; } 12711 fi 12712 fi 12713 fi 12714 12715 12716 12717 12718 # Publish this variable in the help. 12719 12720 12721 if test "x$READLINK" = x; then 12722 # The variable is not set by user, try to locate tool using the code snippet 12723 for ac_prog in greadlink readlink 12724 do 12725 # Extract the first word of "$ac_prog", so it can be a program name with args. 12726 set dummy $ac_prog; ac_word=$2 12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12728 $as_echo_n "checking for $ac_word... " >&6; } 12729 if ${ac_cv_path_READLINK+:} false; then : 12730 $as_echo_n "(cached) " >&6 12731 else 12732 case $READLINK in 12733 [\\/]* | ?:[\\/]*) 12734 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12735 ;; 12736 *) 12737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12738 for as_dir in $PATH 12739 do 12740 IFS=$as_save_IFS 12741 test -z "$as_dir" && as_dir=. 12742 for ac_exec_ext in '' $ac_executable_extensions; do 12743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12744 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12746 break 2 12747 fi 12748 done 12749 done 12750 IFS=$as_save_IFS 12751 12752 ;; 12753 esac 12754 fi 12755 READLINK=$ac_cv_path_READLINK 12756 if test -n "$READLINK"; then 12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12758 $as_echo "$READLINK" >&6; } 12759 else 12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12761 $as_echo "no" >&6; } 12762 fi 12763 12764 12765 test -n "$READLINK" && break 12766 done 12767 12768 else 12769 # The variable is set, but is it from the command line or the environment? 12770 12771 # Try to remove the string !READLINK! from our list. 12772 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 12773 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12774 # If it failed, the variable was not from the command line. Ignore it, 12775 # but warn the user (except for BASH, which is always set by the calling BASH). 12776 if test "xREADLINK" != xBASH; then 12777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 12778 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 12779 fi 12780 # Try to locate tool using the code snippet 12781 for ac_prog in greadlink readlink 12782 do 12783 # Extract the first word of "$ac_prog", so it can be a program name with args. 12784 set dummy $ac_prog; ac_word=$2 12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12786 $as_echo_n "checking for $ac_word... " >&6; } 12787 if ${ac_cv_path_READLINK+:} false; then : 12788 $as_echo_n "(cached) " >&6 12789 else 12790 case $READLINK in 12791 [\\/]* | ?:[\\/]*) 12792 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12793 ;; 12794 *) 12795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12796 for as_dir in $PATH 12797 do 12798 IFS=$as_save_IFS 12799 test -z "$as_dir" && as_dir=. 12800 for ac_exec_ext in '' $ac_executable_extensions; do 12801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12802 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12804 break 2 12805 fi 12806 done 12807 done 12808 IFS=$as_save_IFS 12809 12810 ;; 12811 esac 12812 fi 12813 READLINK=$ac_cv_path_READLINK 12814 if test -n "$READLINK"; then 12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12816 $as_echo "$READLINK" >&6; } 12817 else 12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12819 $as_echo "no" >&6; } 12820 fi 12821 12822 12823 test -n "$READLINK" && break 12824 done 12825 12826 else 12827 # If it succeeded, then it was overridden by the user. We will use it 12828 # for the tool. 12829 12830 # First remove it from the list of overridden variables, so we can test 12831 # for unknown variables in the end. 12832 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12833 12834 # Check if the provided tool contains a complete path. 12835 tool_specified="$READLINK" 12836 tool_basename="${tool_specified##*/}" 12837 if test "x$tool_basename" = "x$tool_specified"; then 12838 # A command without a complete path is provided, search $PATH. 12839 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 12840 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 12841 # Extract the first word of "$tool_basename", so it can be a program name with args. 12842 set dummy $tool_basename; ac_word=$2 12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12844 $as_echo_n "checking for $ac_word... " >&6; } 12845 if ${ac_cv_path_READLINK+:} false; then : 12846 $as_echo_n "(cached) " >&6 12847 else 12848 case $READLINK in 12849 [\\/]* | ?:[\\/]*) 12850 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12851 ;; 12852 *) 12853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12854 for as_dir in $PATH 12855 do 12856 IFS=$as_save_IFS 12857 test -z "$as_dir" && as_dir=. 12858 for ac_exec_ext in '' $ac_executable_extensions; do 12859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12860 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12862 break 2 12863 fi 12864 done 12865 done 12866 IFS=$as_save_IFS 12867 12868 ;; 12869 esac 12870 fi 12871 READLINK=$ac_cv_path_READLINK 12872 if test -n "$READLINK"; then 12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12874 $as_echo "$READLINK" >&6; } 12875 else 12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12877 $as_echo "no" >&6; } 12878 fi 12879 12880 12881 if test "x$READLINK" = x; then 12882 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12883 fi 12884 else 12885 # Otherwise we believe it is a complete path. Use it as it is. 12886 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 12887 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 12889 $as_echo_n "checking for READLINK... " >&6; } 12890 if test ! -x "$tool_specified"; then 12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12892 $as_echo "not found" >&6; } 12893 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 12894 fi 12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12896 $as_echo "$tool_specified" >&6; } 12897 fi 12898 fi 12899 fi 12900 12901 12902 12903 12904 # Publish this variable in the help. 12905 12906 12907 if test "x$DF" = x; then 12908 # The variable is not set by user, try to locate tool using the code snippet 12909 for ac_prog in df 12910 do 12911 # Extract the first word of "$ac_prog", so it can be a program name with args. 12912 set dummy $ac_prog; ac_word=$2 12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12914 $as_echo_n "checking for $ac_word... " >&6; } 12915 if ${ac_cv_path_DF+:} false; then : 12916 $as_echo_n "(cached) " >&6 12917 else 12918 case $DF in 12919 [\\/]* | ?:[\\/]*) 12920 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12921 ;; 12922 *) 12923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12924 for as_dir in $PATH 12925 do 12926 IFS=$as_save_IFS 12927 test -z "$as_dir" && as_dir=. 12928 for ac_exec_ext in '' $ac_executable_extensions; do 12929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12930 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12932 break 2 12933 fi 12934 done 12935 done 12936 IFS=$as_save_IFS 12937 12938 ;; 12939 esac 12940 fi 12941 DF=$ac_cv_path_DF 12942 if test -n "$DF"; then 12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12944 $as_echo "$DF" >&6; } 12945 else 12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12947 $as_echo "no" >&6; } 12948 fi 12949 12950 12951 test -n "$DF" && break 12952 done 12953 12954 else 12955 # The variable is set, but is it from the command line or the environment? 12956 12957 # Try to remove the string !DF! from our list. 12958 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 12959 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12960 # If it failed, the variable was not from the command line. Ignore it, 12961 # but warn the user (except for BASH, which is always set by the calling BASH). 12962 if test "xDF" != xBASH; then 12963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 12964 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 12965 fi 12966 # Try to locate tool using the code snippet 12967 for ac_prog in df 12968 do 12969 # Extract the first word of "$ac_prog", so it can be a program name with args. 12970 set dummy $ac_prog; ac_word=$2 12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12972 $as_echo_n "checking for $ac_word... " >&6; } 12973 if ${ac_cv_path_DF+:} false; then : 12974 $as_echo_n "(cached) " >&6 12975 else 12976 case $DF in 12977 [\\/]* | ?:[\\/]*) 12978 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12979 ;; 12980 *) 12981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12982 for as_dir in $PATH 12983 do 12984 IFS=$as_save_IFS 12985 test -z "$as_dir" && as_dir=. 12986 for ac_exec_ext in '' $ac_executable_extensions; do 12987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12988 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12990 break 2 12991 fi 12992 done 12993 done 12994 IFS=$as_save_IFS 12995 12996 ;; 12997 esac 12998 fi 12999 DF=$ac_cv_path_DF 13000 if test -n "$DF"; then 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13002 $as_echo "$DF" >&6; } 13003 else 13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13005 $as_echo "no" >&6; } 13006 fi 13007 13008 13009 test -n "$DF" && break 13010 done 13011 13012 else 13013 # If it succeeded, then it was overridden by the user. We will use it 13014 # for the tool. 13015 13016 # First remove it from the list of overridden variables, so we can test 13017 # for unknown variables in the end. 13018 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13019 13020 # Check if the provided tool contains a complete path. 13021 tool_specified="$DF" 13022 tool_basename="${tool_specified##*/}" 13023 if test "x$tool_basename" = "x$tool_specified"; then 13024 # A command without a complete path is provided, search $PATH. 13025 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 13026 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 13027 # Extract the first word of "$tool_basename", so it can be a program name with args. 13028 set dummy $tool_basename; ac_word=$2 13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13030 $as_echo_n "checking for $ac_word... " >&6; } 13031 if ${ac_cv_path_DF+:} false; then : 13032 $as_echo_n "(cached) " >&6 13033 else 13034 case $DF in 13035 [\\/]* | ?:[\\/]*) 13036 ac_cv_path_DF="$DF" # Let the user override the test with a path. 13037 ;; 13038 *) 13039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13040 for as_dir in $PATH 13041 do 13042 IFS=$as_save_IFS 13043 test -z "$as_dir" && as_dir=. 13044 for ac_exec_ext in '' $ac_executable_extensions; do 13045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13046 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 13047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13048 break 2 13049 fi 13050 done 13051 done 13052 IFS=$as_save_IFS 13053 13054 ;; 13055 esac 13056 fi 13057 DF=$ac_cv_path_DF 13058 if test -n "$DF"; then 13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13060 $as_echo "$DF" >&6; } 13061 else 13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13063 $as_echo "no" >&6; } 13064 fi 13065 13066 13067 if test "x$DF" = x; then 13068 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13069 fi 13070 else 13071 # Otherwise we believe it is a complete path. Use it as it is. 13072 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 13073 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 13075 $as_echo_n "checking for DF... " >&6; } 13076 if test ! -x "$tool_specified"; then 13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13078 $as_echo "not found" >&6; } 13079 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 13080 fi 13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13082 $as_echo "$tool_specified" >&6; } 13083 fi 13084 fi 13085 fi 13086 13087 13088 13089 13090 # Publish this variable in the help. 13091 13092 13093 if test "x$SETFILE" = x; then 13094 # The variable is not set by user, try to locate tool using the code snippet 13095 for ac_prog in SetFile 13096 do 13097 # Extract the first word of "$ac_prog", so it can be a program name with args. 13098 set dummy $ac_prog; ac_word=$2 13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13100 $as_echo_n "checking for $ac_word... " >&6; } 13101 if ${ac_cv_path_SETFILE+:} false; then : 13102 $as_echo_n "(cached) " >&6 13103 else 13104 case $SETFILE in 13105 [\\/]* | ?:[\\/]*) 13106 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13107 ;; 13108 *) 13109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13110 for as_dir in $PATH 13111 do 13112 IFS=$as_save_IFS 13113 test -z "$as_dir" && as_dir=. 13114 for ac_exec_ext in '' $ac_executable_extensions; do 13115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13116 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13118 break 2 13119 fi 13120 done 13121 done 13122 IFS=$as_save_IFS 13123 13124 ;; 13125 esac 13126 fi 13127 SETFILE=$ac_cv_path_SETFILE 13128 if test -n "$SETFILE"; then 13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13130 $as_echo "$SETFILE" >&6; } 13131 else 13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13133 $as_echo "no" >&6; } 13134 fi 13135 13136 13137 test -n "$SETFILE" && break 13138 done 13139 13140 else 13141 # The variable is set, but is it from the command line or the environment? 13142 13143 # Try to remove the string !SETFILE! from our list. 13144 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 13145 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13146 # If it failed, the variable was not from the command line. Ignore it, 13147 # but warn the user (except for BASH, which is always set by the calling BASH). 13148 if test "xSETFILE" != xBASH; then 13149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 13150 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 13151 fi 13152 # Try to locate tool using the code snippet 13153 for ac_prog in SetFile 13154 do 13155 # Extract the first word of "$ac_prog", so it can be a program name with args. 13156 set dummy $ac_prog; ac_word=$2 13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13158 $as_echo_n "checking for $ac_word... " >&6; } 13159 if ${ac_cv_path_SETFILE+:} false; then : 13160 $as_echo_n "(cached) " >&6 13161 else 13162 case $SETFILE in 13163 [\\/]* | ?:[\\/]*) 13164 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13165 ;; 13166 *) 13167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13168 for as_dir in $PATH 13169 do 13170 IFS=$as_save_IFS 13171 test -z "$as_dir" && as_dir=. 13172 for ac_exec_ext in '' $ac_executable_extensions; do 13173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13174 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13176 break 2 13177 fi 13178 done 13179 done 13180 IFS=$as_save_IFS 13181 13182 ;; 13183 esac 13184 fi 13185 SETFILE=$ac_cv_path_SETFILE 13186 if test -n "$SETFILE"; then 13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13188 $as_echo "$SETFILE" >&6; } 13189 else 13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13191 $as_echo "no" >&6; } 13192 fi 13193 13194 13195 test -n "$SETFILE" && break 13196 done 13197 13198 else 13199 # If it succeeded, then it was overridden by the user. We will use it 13200 # for the tool. 13201 13202 # First remove it from the list of overridden variables, so we can test 13203 # for unknown variables in the end. 13204 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13205 13206 # Check if the provided tool contains a complete path. 13207 tool_specified="$SETFILE" 13208 tool_basename="${tool_specified##*/}" 13209 if test "x$tool_basename" = "x$tool_specified"; then 13210 # A command without a complete path is provided, search $PATH. 13211 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 13212 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 13213 # Extract the first word of "$tool_basename", so it can be a program name with args. 13214 set dummy $tool_basename; ac_word=$2 13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13216 $as_echo_n "checking for $ac_word... " >&6; } 13217 if ${ac_cv_path_SETFILE+:} false; then : 13218 $as_echo_n "(cached) " >&6 13219 else 13220 case $SETFILE in 13221 [\\/]* | ?:[\\/]*) 13222 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13223 ;; 13224 *) 13225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13226 for as_dir in $PATH 13227 do 13228 IFS=$as_save_IFS 13229 test -z "$as_dir" && as_dir=. 13230 for ac_exec_ext in '' $ac_executable_extensions; do 13231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13232 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13234 break 2 13235 fi 13236 done 13237 done 13238 IFS=$as_save_IFS 13239 13240 ;; 13241 esac 13242 fi 13243 SETFILE=$ac_cv_path_SETFILE 13244 if test -n "$SETFILE"; then 13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13246 $as_echo "$SETFILE" >&6; } 13247 else 13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13249 $as_echo "no" >&6; } 13250 fi 13251 13252 13253 if test "x$SETFILE" = x; then 13254 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13255 fi 13256 else 13257 # Otherwise we believe it is a complete path. Use it as it is. 13258 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 13259 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 13261 $as_echo_n "checking for SETFILE... " >&6; } 13262 if test ! -x "$tool_specified"; then 13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13264 $as_echo "not found" >&6; } 13265 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 13266 fi 13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13268 $as_echo "$tool_specified" >&6; } 13269 fi 13270 fi 13271 fi 13272 13273 13274 13275 13276 # Publish this variable in the help. 13277 13278 13279 if test "x$CPIO" = x; then 13280 # The variable is not set by user, try to locate tool using the code snippet 13281 for ac_prog in cpio bsdcpio 13282 do 13283 # Extract the first word of "$ac_prog", so it can be a program name with args. 13284 set dummy $ac_prog; ac_word=$2 13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13286 $as_echo_n "checking for $ac_word... " >&6; } 13287 if ${ac_cv_path_CPIO+:} false; then : 13288 $as_echo_n "(cached) " >&6 13289 else 13290 case $CPIO in 13291 [\\/]* | ?:[\\/]*) 13292 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13293 ;; 13294 *) 13295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13296 for as_dir in $PATH 13297 do 13298 IFS=$as_save_IFS 13299 test -z "$as_dir" && as_dir=. 13300 for ac_exec_ext in '' $ac_executable_extensions; do 13301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13302 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13304 break 2 13305 fi 13306 done 13307 done 13308 IFS=$as_save_IFS 13309 13310 ;; 13311 esac 13312 fi 13313 CPIO=$ac_cv_path_CPIO 13314 if test -n "$CPIO"; then 13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13316 $as_echo "$CPIO" >&6; } 13317 else 13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13319 $as_echo "no" >&6; } 13320 fi 13321 13322 13323 test -n "$CPIO" && break 13324 done 13325 13326 else 13327 # The variable is set, but is it from the command line or the environment? 13328 13329 # Try to remove the string !CPIO! from our list. 13330 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 13331 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13332 # If it failed, the variable was not from the command line. Ignore it, 13333 # but warn the user (except for BASH, which is always set by the calling BASH). 13334 if test "xCPIO" != xBASH; then 13335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 13336 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 13337 fi 13338 # Try to locate tool using the code snippet 13339 for ac_prog in cpio bsdcpio 13340 do 13341 # Extract the first word of "$ac_prog", so it can be a program name with args. 13342 set dummy $ac_prog; ac_word=$2 13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13344 $as_echo_n "checking for $ac_word... " >&6; } 13345 if ${ac_cv_path_CPIO+:} false; then : 13346 $as_echo_n "(cached) " >&6 13347 else 13348 case $CPIO in 13349 [\\/]* | ?:[\\/]*) 13350 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13351 ;; 13352 *) 13353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13354 for as_dir in $PATH 13355 do 13356 IFS=$as_save_IFS 13357 test -z "$as_dir" && as_dir=. 13358 for ac_exec_ext in '' $ac_executable_extensions; do 13359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13360 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13362 break 2 13363 fi 13364 done 13365 done 13366 IFS=$as_save_IFS 13367 13368 ;; 13369 esac 13370 fi 13371 CPIO=$ac_cv_path_CPIO 13372 if test -n "$CPIO"; then 13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13374 $as_echo "$CPIO" >&6; } 13375 else 13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13377 $as_echo "no" >&6; } 13378 fi 13379 13380 13381 test -n "$CPIO" && break 13382 done 13383 13384 else 13385 # If it succeeded, then it was overridden by the user. We will use it 13386 # for the tool. 13387 13388 # First remove it from the list of overridden variables, so we can test 13389 # for unknown variables in the end. 13390 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13391 13392 # Check if the provided tool contains a complete path. 13393 tool_specified="$CPIO" 13394 tool_basename="${tool_specified##*/}" 13395 if test "x$tool_basename" = "x$tool_specified"; then 13396 # A command without a complete path is provided, search $PATH. 13397 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 13398 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 13399 # Extract the first word of "$tool_basename", so it can be a program name with args. 13400 set dummy $tool_basename; ac_word=$2 13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13402 $as_echo_n "checking for $ac_word... " >&6; } 13403 if ${ac_cv_path_CPIO+:} false; then : 13404 $as_echo_n "(cached) " >&6 13405 else 13406 case $CPIO in 13407 [\\/]* | ?:[\\/]*) 13408 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13409 ;; 13410 *) 13411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13412 for as_dir in $PATH 13413 do 13414 IFS=$as_save_IFS 13415 test -z "$as_dir" && as_dir=. 13416 for ac_exec_ext in '' $ac_executable_extensions; do 13417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13418 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13420 break 2 13421 fi 13422 done 13423 done 13424 IFS=$as_save_IFS 13425 13426 ;; 13427 esac 13428 fi 13429 CPIO=$ac_cv_path_CPIO 13430 if test -n "$CPIO"; then 13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13432 $as_echo "$CPIO" >&6; } 13433 else 13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13435 $as_echo "no" >&6; } 13436 fi 13437 13438 13439 if test "x$CPIO" = x; then 13440 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13441 fi 13442 else 13443 # Otherwise we believe it is a complete path. Use it as it is. 13444 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 13445 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 13447 $as_echo_n "checking for CPIO... " >&6; } 13448 if test ! -x "$tool_specified"; then 13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13450 $as_echo "not found" >&6; } 13451 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 13452 fi 13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13454 $as_echo "$tool_specified" >&6; } 13455 fi 13456 fi 13457 fi 13458 13459 13460 13461 13462 # Now we can determine OpenJDK build and target platforms. This is required to 13463 # have early on. 13464 # Make sure we can run config.sub. 13465 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 13466 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 13467 13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 13469 $as_echo_n "checking build system type... " >&6; } 13470 if ${ac_cv_build+:} false; then : 13471 $as_echo_n "(cached) " >&6 13472 else 13473 ac_build_alias=$build_alias 13474 test "x$ac_build_alias" = x && 13475 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 13476 test "x$ac_build_alias" = x && 13477 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 13478 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 13479 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 13480 13481 fi 13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 13483 $as_echo "$ac_cv_build" >&6; } 13484 case $ac_cv_build in 13485 *-*-*) ;; 13486 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 13487 esac 13488 build=$ac_cv_build 13489 ac_save_IFS=$IFS; IFS='-' 13490 set x $ac_cv_build 13491 shift 13492 build_cpu=$1 13493 build_vendor=$2 13494 shift; shift 13495 # Remember, the first character of IFS is used to create $*, 13496 # except with old shells: 13497 build_os=$* 13498 IFS=$ac_save_IFS 13499 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 13500 13501 13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 13503 $as_echo_n "checking host system type... " >&6; } 13504 if ${ac_cv_host+:} false; then : 13505 $as_echo_n "(cached) " >&6 13506 else 13507 if test "x$host_alias" = x; then 13508 ac_cv_host=$ac_cv_build 13509 else 13510 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 13511 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 13512 fi 13513 13514 fi 13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 13516 $as_echo "$ac_cv_host" >&6; } 13517 case $ac_cv_host in 13518 *-*-*) ;; 13519 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 13520 esac 13521 host=$ac_cv_host 13522 ac_save_IFS=$IFS; IFS='-' 13523 set x $ac_cv_host 13524 shift 13525 host_cpu=$1 13526 host_vendor=$2 13527 shift; shift 13528 # Remember, the first character of IFS is used to create $*, 13529 # except with old shells: 13530 host_os=$* 13531 IFS=$ac_save_IFS 13532 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 13533 13534 13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 13536 $as_echo_n "checking target system type... " >&6; } 13537 if ${ac_cv_target+:} false; then : 13538 $as_echo_n "(cached) " >&6 13539 else 13540 if test "x$target_alias" = x; then 13541 ac_cv_target=$ac_cv_host 13542 else 13543 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 13544 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 13545 fi 13546 13547 fi 13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 13549 $as_echo "$ac_cv_target" >&6; } 13550 case $ac_cv_target in 13551 *-*-*) ;; 13552 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 13553 esac 13554 target=$ac_cv_target 13555 ac_save_IFS=$IFS; IFS='-' 13556 set x $ac_cv_target 13557 shift 13558 target_cpu=$1 13559 target_vendor=$2 13560 shift; shift 13561 # Remember, the first character of IFS is used to create $*, 13562 # except with old shells: 13563 target_os=$* 13564 IFS=$ac_save_IFS 13565 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 13566 13567 13568 # The aliases save the names the user supplied, while $host etc. 13569 # will get canonicalized. 13570 test -n "$target_alias" && 13571 test "$program_prefix$program_suffix$program_transform_name" = \ 13572 NONENONEs,x,x, && 13573 program_prefix=${target_alias}- 13574 13575 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 13576 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 13577 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 13578 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 13579 # to use the configure naming style. 13580 13581 13582 13583 13584 13585 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 13586 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 13587 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 13588 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 13589 OPENJDK_TARGET_AUTOCONF_NAME="$host" 13590 OPENJDK_BUILD_AUTOCONF_NAME="$build" 13591 13592 13593 13594 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13595 13596 case "$build_os" in 13597 *linux*) 13598 VAR_OS=linux 13599 VAR_OS_API=posix 13600 VAR_OS_ENV=linux 13601 ;; 13602 *solaris*) 13603 VAR_OS=solaris 13604 VAR_OS_API=posix 13605 VAR_OS_ENV=solaris 13606 ;; 13607 *darwin*) 13608 VAR_OS=macosx 13609 VAR_OS_API=posix 13610 VAR_OS_ENV=macosx 13611 ;; 13612 *bsd*) 13613 VAR_OS=bsd 13614 VAR_OS_API=posix 13615 VAR_OS_ENV=bsd 13616 ;; 13617 *cygwin*) 13618 VAR_OS=windows 13619 VAR_OS_API=winapi 13620 VAR_OS_ENV=windows.cygwin 13621 ;; 13622 *mingw*) 13623 VAR_OS=windows 13624 VAR_OS_API=winapi 13625 VAR_OS_ENV=windows.msys 13626 ;; 13627 *aix*) 13628 VAR_OS=aix 13629 VAR_OS_API=posix 13630 VAR_OS_ENV=aix 13631 ;; 13632 *) 13633 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 13634 ;; 13635 esac 13636 13637 13638 # First argument is the cpu name from the trip/quad 13639 case "$build_cpu" in 13640 x86_64) 13641 VAR_CPU=x86_64 13642 VAR_CPU_ARCH=x86 13643 VAR_CPU_BITS=64 13644 VAR_CPU_ENDIAN=little 13645 ;; 13646 i?86) 13647 VAR_CPU=x86 13648 VAR_CPU_ARCH=x86 13649 VAR_CPU_BITS=32 13650 VAR_CPU_ENDIAN=little 13651 ;; 13652 arm*) 13653 VAR_CPU=arm 13654 VAR_CPU_ARCH=arm 13655 VAR_CPU_BITS=32 13656 VAR_CPU_ENDIAN=little 13657 ;; 13658 aarch64) 13659 VAR_CPU=aarch64 13660 VAR_CPU_ARCH=aarch64 13661 VAR_CPU_BITS=64 13662 VAR_CPU_ENDIAN=little 13663 ;; 13664 powerpc) 13665 VAR_CPU=ppc 13666 VAR_CPU_ARCH=ppc 13667 VAR_CPU_BITS=32 13668 VAR_CPU_ENDIAN=big 13669 ;; 13670 powerpc64) 13671 VAR_CPU=ppc64 13672 VAR_CPU_ARCH=ppc 13673 VAR_CPU_BITS=64 13674 VAR_CPU_ENDIAN=big 13675 ;; 13676 powerpc64le) 13677 VAR_CPU=ppc64le 13678 VAR_CPU_ARCH=ppc 13679 VAR_CPU_BITS=64 13680 VAR_CPU_ENDIAN=little 13681 ;; 13682 s390) 13683 VAR_CPU=s390 13684 VAR_CPU_ARCH=s390 13685 VAR_CPU_BITS=32 13686 VAR_CPU_ENDIAN=big 13687 ;; 13688 s390x) 13689 VAR_CPU=s390x 13690 VAR_CPU_ARCH=s390 13691 VAR_CPU_BITS=64 13692 VAR_CPU_ENDIAN=big 13693 ;; 13694 sparc) 13695 VAR_CPU=sparc 13696 VAR_CPU_ARCH=sparc 13697 VAR_CPU_BITS=32 13698 VAR_CPU_ENDIAN=big 13699 ;; 13700 sparcv9|sparc64) 13701 VAR_CPU=sparcv9 13702 VAR_CPU_ARCH=sparc 13703 VAR_CPU_BITS=64 13704 VAR_CPU_ENDIAN=big 13705 ;; 13706 *) 13707 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 13708 ;; 13709 esac 13710 13711 # ..and setup our own variables. (Do this explicitely to facilitate searching) 13712 OPENJDK_BUILD_OS="$VAR_OS" 13713 OPENJDK_BUILD_OS_API="$VAR_OS_API" 13714 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 13715 OPENJDK_BUILD_CPU="$VAR_CPU" 13716 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 13717 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 13718 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13719 13720 13721 13722 13723 13724 13725 13726 13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 13728 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 13730 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 13731 13732 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13733 13734 case "$host_os" in 13735 *linux*) 13736 VAR_OS=linux 13737 VAR_OS_API=posix 13738 VAR_OS_ENV=linux 13739 ;; 13740 *solaris*) 13741 VAR_OS=solaris 13742 VAR_OS_API=posix 13743 VAR_OS_ENV=solaris 13744 ;; 13745 *darwin*) 13746 VAR_OS=macosx 13747 VAR_OS_API=posix 13748 VAR_OS_ENV=macosx 13749 ;; 13750 *bsd*) 13751 VAR_OS=bsd 13752 VAR_OS_API=posix 13753 VAR_OS_ENV=bsd 13754 ;; 13755 *cygwin*) 13756 VAR_OS=windows 13757 VAR_OS_API=winapi 13758 VAR_OS_ENV=windows.cygwin 13759 ;; 13760 *mingw*) 13761 VAR_OS=windows 13762 VAR_OS_API=winapi 13763 VAR_OS_ENV=windows.msys 13764 ;; 13765 *aix*) 13766 VAR_OS=aix 13767 VAR_OS_API=posix 13768 VAR_OS_ENV=aix 13769 ;; 13770 *) 13771 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 13772 ;; 13773 esac 13774 13775 13776 # First argument is the cpu name from the trip/quad 13777 case "$host_cpu" in 13778 x86_64) 13779 VAR_CPU=x86_64 13780 VAR_CPU_ARCH=x86 13781 VAR_CPU_BITS=64 13782 VAR_CPU_ENDIAN=little 13783 ;; 13784 i?86) 13785 VAR_CPU=x86 13786 VAR_CPU_ARCH=x86 13787 VAR_CPU_BITS=32 13788 VAR_CPU_ENDIAN=little 13789 ;; 13790 arm*) 13791 VAR_CPU=arm 13792 VAR_CPU_ARCH=arm 13793 VAR_CPU_BITS=32 13794 VAR_CPU_ENDIAN=little 13795 ;; 13796 aarch64) 13797 VAR_CPU=aarch64 13798 VAR_CPU_ARCH=aarch64 13799 VAR_CPU_BITS=64 13800 VAR_CPU_ENDIAN=little 13801 ;; 13802 powerpc) 13803 VAR_CPU=ppc 13804 VAR_CPU_ARCH=ppc 13805 VAR_CPU_BITS=32 13806 VAR_CPU_ENDIAN=big 13807 ;; 13808 powerpc64) 13809 VAR_CPU=ppc64 13810 VAR_CPU_ARCH=ppc 13811 VAR_CPU_BITS=64 13812 VAR_CPU_ENDIAN=big 13813 ;; 13814 powerpc64le) 13815 VAR_CPU=ppc64le 13816 VAR_CPU_ARCH=ppc 13817 VAR_CPU_BITS=64 13818 VAR_CPU_ENDIAN=little 13819 ;; 13820 s390) 13821 VAR_CPU=s390 13822 VAR_CPU_ARCH=s390 13823 VAR_CPU_BITS=32 13824 VAR_CPU_ENDIAN=big 13825 ;; 13826 s390x) 13827 VAR_CPU=s390x 13828 VAR_CPU_ARCH=s390 13829 VAR_CPU_BITS=64 13830 VAR_CPU_ENDIAN=big 13831 ;; 13832 sparc) 13833 VAR_CPU=sparc 13834 VAR_CPU_ARCH=sparc 13835 VAR_CPU_BITS=32 13836 VAR_CPU_ENDIAN=big 13837 ;; 13838 sparcv9|sparc64) 13839 VAR_CPU=sparcv9 13840 VAR_CPU_ARCH=sparc 13841 VAR_CPU_BITS=64 13842 VAR_CPU_ENDIAN=big 13843 ;; 13844 *) 13845 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 13846 ;; 13847 esac 13848 13849 # ... and setup our own variables. (Do this explicitely to facilitate searching) 13850 OPENJDK_TARGET_OS="$VAR_OS" 13851 OPENJDK_TARGET_OS_API="$VAR_OS_API" 13852 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 13853 OPENJDK_TARGET_CPU="$VAR_CPU" 13854 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 13855 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 13856 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13857 13858 13859 13860 13861 13862 13863 13864 13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 13866 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 13868 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 13869 13870 13871 13872 # Check whether --with-target-bits was given. 13873 if test "${with_target_bits+set}" = set; then : 13874 withval=$with_target_bits; 13875 fi 13876 13877 13878 # We have three types of compiles: 13879 # native == normal compilation, target system == build system 13880 # cross == traditional cross compilation, target system != build system; special toolchain needed 13881 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 13882 # 13883 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 13884 # We're doing a proper cross-compilation 13885 COMPILE_TYPE="cross" 13886 else 13887 COMPILE_TYPE="native" 13888 fi 13889 13890 if test "x$with_target_bits" != x; then 13891 if test "x$COMPILE_TYPE" = "xcross"; then 13892 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 13893 fi 13894 13895 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13896 # A reduced build is requested 13897 COMPILE_TYPE="reduced" 13898 OPENJDK_TARGET_CPU_BITS=32 13899 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 13900 OPENJDK_TARGET_CPU=x86 13901 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 13902 OPENJDK_TARGET_CPU=sparc 13903 else 13904 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 13905 fi 13906 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 13907 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 13908 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 13909 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 13910 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 13911 else 13912 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 13913 fi 13914 fi 13915 13916 13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 13918 $as_echo_n "checking compilation type... " >&6; } 13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 13920 $as_echo "$COMPILE_TYPE" >&6; } 13921 13922 13923 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 13924 REQUIRED_OS_NAME=SunOS 13925 REQUIRED_OS_VERSION=5.10 13926 fi 13927 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 13928 REQUIRED_OS_NAME=Linux 13929 REQUIRED_OS_VERSION=2.6 13930 fi 13931 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13932 REQUIRED_OS_NAME=Windows 13933 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 13934 REQUIRED_OS_VERSION=5.2 13935 else 13936 REQUIRED_OS_VERSION=5.1 13937 fi 13938 fi 13939 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 13940 REQUIRED_OS_NAME=Darwin 13941 REQUIRED_OS_VERSION=11.2 13942 fi 13943 13944 13945 13946 13947 13948 # Also store the legacy naming of the cpu. 13949 # Ie i586 and amd64 instead of x86 and x86_64 13950 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 13951 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13952 OPENJDK_TARGET_CPU_LEGACY="i586" 13953 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13954 # On all platforms except MacOSX replace x86_64 with amd64. 13955 OPENJDK_TARGET_CPU_LEGACY="amd64" 13956 fi 13957 13958 13959 # And the second legacy naming of the cpu. 13960 # Ie i386 and amd64 instead of x86 and x86_64. 13961 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 13962 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13963 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 13964 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13965 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 13966 fi 13967 13968 13969 # This is the name of the cpu (but using i386 and amd64 instead of 13970 # x86 and x86_64, respectively), preceeded by a /, to be used when 13971 # locating libraries. On macosx, it's empty, though. 13972 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 13973 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13974 OPENJDK_TARGET_CPU_LIBDIR="" 13975 fi 13976 13977 13978 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 13979 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 13980 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 13981 OPENJDK_TARGET_CPU_ISADIR="" 13982 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13983 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13984 OPENJDK_TARGET_CPU_ISADIR="/amd64" 13985 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 13986 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 13987 fi 13988 fi 13989 13990 13991 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 13992 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 13993 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 13994 # On linux only, we replace x86 with i386. 13995 OPENJDK_TARGET_CPU_OSARCH="i386" 13996 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13997 # On all platforms except macosx, we replace x86_64 with amd64. 13998 OPENJDK_TARGET_CPU_OSARCH="amd64" 13999 fi 14000 14001 14002 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 14003 if test "x$OPENJDK_TARGET_CPU" = xx86; then 14004 OPENJDK_TARGET_CPU_JLI="i386" 14005 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 14006 # On all platforms except macosx, we replace x86_64 with amd64. 14007 OPENJDK_TARGET_CPU_JLI="amd64" 14008 fi 14009 # Now setup the -D flags for building libjli. 14010 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 14011 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 14012 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 14013 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 14014 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 14015 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 14016 fi 14017 fi 14018 14019 14020 # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths. 14021 if test "x$OPENJDK_TARGET_OS_API" = xposix; then 14022 OPENJDK_TARGET_OS_API_DIR="solaris" 14023 fi 14024 if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then 14025 OPENJDK_TARGET_OS_API_DIR="windows" 14026 fi 14027 14028 14029 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 14030 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 14031 else 14032 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR} 14033 fi 14034 14035 14036 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14037 A_LP64="LP64:=" 14038 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 14039 # unpack200.exe 14040 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 14041 ADD_LP64="-D_LP64=1" 14042 fi 14043 fi 14044 LP64=$A_LP64 14045 14046 14047 if test "x$COMPILE_TYPE" = "xcross"; then 14048 # FIXME: ... or should this include reduced builds..? 14049 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 14050 else 14051 DEFINE_CROSS_COMPILE_ARCH="" 14052 fi 14053 14054 14055 # ZERO_ARCHDEF is used to enable architecture-specific code 14056 case "${OPENJDK_TARGET_CPU}" in 14057 ppc) ZERO_ARCHDEF=PPC32 ;; 14058 ppc64) ZERO_ARCHDEF=PPC64 ;; 14059 s390*) ZERO_ARCHDEF=S390 ;; 14060 sparc*) ZERO_ARCHDEF=SPARC ;; 14061 x86_64*) ZERO_ARCHDEF=AMD64 ;; 14062 x86) ZERO_ARCHDEF=IA32 ;; 14063 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 14064 esac 14065 14066 14067 14068 14069 # Continue setting up basic stuff. Most remaining code require fundamental tools. 14070 14071 # Save the current directory this script was started from 14072 CURDIR="$PWD" 14073 14074 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 14075 PATH_SEP=";" 14076 14077 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 14078 if test $SRC_ROOT_LENGTH -gt 100; then 14079 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 14080 fi 14081 14082 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 14084 $as_echo_n "checking cygwin release... " >&6; } 14085 CYGWIN_VERSION=`$UNAME -r` 14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 14087 $as_echo "$CYGWIN_VERSION" >&6; } 14088 WINDOWS_ENV_VENDOR='cygwin' 14089 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 14090 14091 CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'` 14092 if test "x$CYGWIN_VERSION_OLD" != x; then 14093 { $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 14094 $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;} 14095 as_fn_error $? "Cannot continue" "$LINENO" 5 14096 fi 14097 if test "x$CYGPATH" = x; then 14098 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 14099 fi 14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 14101 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 14102 # The cmd output ends with Windows line endings (CR/LF) 14103 cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'` 14104 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 14105 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 14107 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 14108 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 14109 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 14110 if test "x$test_cygdrive_prefix" = x; then 14111 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 14112 fi 14113 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 14115 $as_echo_n "checking msys release... " >&6; } 14116 MSYS_VERSION=`$UNAME -r` 14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 14118 $as_echo "$MSYS_VERSION" >&6; } 14119 14120 WINDOWS_ENV_VENDOR='msys' 14121 WINDOWS_ENV_VERSION="$MSYS_VERSION" 14122 14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 14124 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 14125 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14126 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 14127 14128 windows_path="$MSYS_ROOT_PATH" 14129 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14130 unix_path=`$CYGPATH -u "$windows_path"` 14131 MSYS_ROOT_PATH="$unix_path" 14132 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14133 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14134 MSYS_ROOT_PATH="$unix_path" 14135 fi 14136 14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 14138 $as_echo "$MSYS_ROOT_PATH" >&6; } 14139 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 14140 else 14141 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 14142 fi 14143 14144 # Test if windows or unix (cygwin/msys) find is first in path. 14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 14146 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 14147 FIND_BINARY_OUTPUT=`find --version 2>&1` 14148 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 14150 $as_echo "unix style" >&6; } 14151 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 14153 $as_echo "Windows" >&6; } 14154 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 14155 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 14156 { $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 14157 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 14158 as_fn_error $? "Cannot continue" "$LINENO" 5 14159 else 14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14161 $as_echo "unknown" >&6; } 14162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 14163 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 14164 fi 14165 14166 else 14167 PATH_SEP=":" 14168 fi 14169 14170 14171 # We get the top-level directory from the supporting wrappers. 14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 14173 $as_echo_n "checking for top-level directory... " >&6; } 14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 14175 $as_echo "$TOPDIR" >&6; } 14176 14177 14178 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 14179 14180 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14181 14182 # Input might be given as Windows format, start by converting to 14183 # unix format. 14184 path="$CURDIR" 14185 new_path=`$CYGPATH -u "$path"` 14186 14187 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14188 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14189 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14190 # "foo.exe" is OK but "foo" is an error. 14191 # 14192 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14193 # It is also a way to make sure we got the proper file name for the real test later on. 14194 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14195 if test "x$test_shortpath" = x; then 14196 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14197 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14198 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 14199 fi 14200 14201 # Call helper function which possibly converts this using DOS-style short mode. 14202 # If so, the updated path is stored in $new_path. 14203 14204 input_path="$new_path" 14205 # Check if we need to convert this using DOS-style short mode. If the path 14206 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14207 # take no chances and rewrite it. 14208 # Note: m4 eats our [], so we need to use [ and ] instead. 14209 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14210 if test "x$has_forbidden_chars" != x; then 14211 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14212 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14213 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14214 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14215 # Going to short mode and back again did indeed matter. Since short mode is 14216 # case insensitive, let's make it lowercase to improve readability. 14217 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14218 # Now convert it back to Unix-style (cygpath) 14219 input_path=`$CYGPATH -u "$shortmode_path"` 14220 new_path="$input_path" 14221 fi 14222 fi 14223 14224 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14225 if test "x$test_cygdrive_prefix" = x; then 14226 # As a simple fix, exclude /usr/bin since it's not a real path. 14227 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14228 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14229 # a path prefixed by /cygdrive for fixpath to work. 14230 new_path="$CYGWIN_ROOT_PATH$input_path" 14231 fi 14232 fi 14233 14234 14235 if test "x$path" != "x$new_path"; then 14236 CURDIR="$new_path" 14237 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14238 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14239 fi 14240 14241 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14242 14243 path="$CURDIR" 14244 has_colon=`$ECHO $path | $GREP ^.:` 14245 new_path="$path" 14246 if test "x$has_colon" = x; then 14247 # Not in mixed or Windows style, start by that. 14248 new_path=`cmd //c echo $path` 14249 fi 14250 14251 14252 input_path="$new_path" 14253 # Check if we need to convert this using DOS-style short mode. If the path 14254 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14255 # take no chances and rewrite it. 14256 # Note: m4 eats our [], so we need to use [ and ] instead. 14257 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14258 if test "x$has_forbidden_chars" != x; then 14259 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14260 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14261 fi 14262 14263 14264 windows_path="$new_path" 14265 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14266 unix_path=`$CYGPATH -u "$windows_path"` 14267 new_path="$unix_path" 14268 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14269 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14270 new_path="$unix_path" 14271 fi 14272 14273 if test "x$path" != "x$new_path"; then 14274 CURDIR="$new_path" 14275 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14276 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14277 fi 14278 14279 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14280 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14281 14282 else 14283 # We're on a posix platform. Hooray! :) 14284 path="$CURDIR" 14285 has_space=`$ECHO "$path" | $GREP " "` 14286 if test "x$has_space" != x; then 14287 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14288 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14289 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14290 fi 14291 14292 # Use eval to expand a potential ~ 14293 eval path="$path" 14294 if test ! -f "$path" && test ! -d "$path"; then 14295 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14296 fi 14297 14298 CURDIR="`cd "$path"; $THEPWDCMD -L`" 14299 fi 14300 14301 14302 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14303 14304 # Input might be given as Windows format, start by converting to 14305 # unix format. 14306 path="$TOPDIR" 14307 new_path=`$CYGPATH -u "$path"` 14308 14309 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14310 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14311 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14312 # "foo.exe" is OK but "foo" is an error. 14313 # 14314 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14315 # It is also a way to make sure we got the proper file name for the real test later on. 14316 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14317 if test "x$test_shortpath" = x; then 14318 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14319 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14320 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 14321 fi 14322 14323 # Call helper function which possibly converts this using DOS-style short mode. 14324 # If so, the updated path is stored in $new_path. 14325 14326 input_path="$new_path" 14327 # Check if we need to convert this using DOS-style short mode. If the path 14328 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14329 # take no chances and rewrite it. 14330 # Note: m4 eats our [], so we need to use [ and ] instead. 14331 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14332 if test "x$has_forbidden_chars" != x; then 14333 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14334 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14335 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14336 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14337 # Going to short mode and back again did indeed matter. Since short mode is 14338 # case insensitive, let's make it lowercase to improve readability. 14339 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14340 # Now convert it back to Unix-style (cygpath) 14341 input_path=`$CYGPATH -u "$shortmode_path"` 14342 new_path="$input_path" 14343 fi 14344 fi 14345 14346 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14347 if test "x$test_cygdrive_prefix" = x; then 14348 # As a simple fix, exclude /usr/bin since it's not a real path. 14349 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14350 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14351 # a path prefixed by /cygdrive for fixpath to work. 14352 new_path="$CYGWIN_ROOT_PATH$input_path" 14353 fi 14354 fi 14355 14356 14357 if test "x$path" != "x$new_path"; then 14358 TOPDIR="$new_path" 14359 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14360 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14361 fi 14362 14363 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14364 14365 path="$TOPDIR" 14366 has_colon=`$ECHO $path | $GREP ^.:` 14367 new_path="$path" 14368 if test "x$has_colon" = x; then 14369 # Not in mixed or Windows style, start by that. 14370 new_path=`cmd //c echo $path` 14371 fi 14372 14373 14374 input_path="$new_path" 14375 # Check if we need to convert this using DOS-style short mode. If the path 14376 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14377 # take no chances and rewrite it. 14378 # Note: m4 eats our [], so we need to use [ and ] instead. 14379 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14380 if test "x$has_forbidden_chars" != x; then 14381 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14382 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14383 fi 14384 14385 14386 windows_path="$new_path" 14387 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14388 unix_path=`$CYGPATH -u "$windows_path"` 14389 new_path="$unix_path" 14390 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14391 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14392 new_path="$unix_path" 14393 fi 14394 14395 if test "x$path" != "x$new_path"; then 14396 TOPDIR="$new_path" 14397 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14398 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14399 fi 14400 14401 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14402 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14403 14404 else 14405 # We're on a posix platform. Hooray! :) 14406 path="$TOPDIR" 14407 has_space=`$ECHO "$path" | $GREP " "` 14408 if test "x$has_space" != x; then 14409 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14410 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14411 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14412 fi 14413 14414 # Use eval to expand a potential ~ 14415 eval path="$path" 14416 if test ! -f "$path" && test ! -d "$path"; then 14417 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14418 fi 14419 14420 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 14421 fi 14422 14423 # SRC_ROOT is a traditional alias for TOPDIR. 14424 SRC_ROOT=$TOPDIR 14425 14426 # Locate the directory of this script. 14427 AUTOCONF_DIR=$TOPDIR/common/autoconf 14428 14429 14430 # Setup default logging of stdout and stderr to build.log in the output root. 14431 BUILD_LOG='$(OUTPUT_ROOT)/build.log' 14432 BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old' 14433 BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)' 14434 14435 14436 14437 14438 14439 # Check if it's a pure open build or if custom sources are to be used. 14440 14441 # Check whether --enable-openjdk-only was given. 14442 if test "${enable_openjdk_only+set}" = set; then : 14443 enableval=$enable_openjdk_only; 14444 else 14445 enable_openjdk_only="no" 14446 fi 14447 14448 14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 14450 $as_echo_n "checking for presence of closed sources... " >&6; } 14451 if test -d "$SRC_ROOT/jdk/src/closed"; then 14452 CLOSED_SOURCE_PRESENT=yes 14453 else 14454 CLOSED_SOURCE_PRESENT=no 14455 fi 14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 14457 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 14458 14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 14460 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 14461 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 14463 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 14464 14465 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 14466 OPENJDK=true 14467 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 14469 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 14470 fi 14471 else 14472 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14473 OPENJDK=true 14474 else 14475 OPENJDK=false 14476 fi 14477 fi 14478 14479 if test "x$OPENJDK" = "xtrue"; then 14480 SET_OPENJDK="OPENJDK=true" 14481 fi 14482 14483 14484 14485 14486 # These are needed to be able to create a configuration name (and thus the output directory) 14487 14488 ############################################################################### 14489 # 14490 # Check which variant of the JDK that we want to build. 14491 # Currently we have: 14492 # normal: standard edition 14493 # but the custom make system may add other variants 14494 # 14495 # Effectively the JDK variant gives a name to a specific set of 14496 # modules to compile into the JDK. In the future, these modules 14497 # might even be Jigsaw modules. 14498 # 14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 14500 $as_echo_n "checking which variant of the JDK to build... " >&6; } 14501 14502 # Check whether --with-jdk-variant was given. 14503 if test "${with_jdk_variant+set}" = set; then : 14504 withval=$with_jdk_variant; 14505 fi 14506 14507 14508 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 14509 JDK_VARIANT="normal" 14510 else 14511 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 14512 fi 14513 14514 14515 14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 14517 $as_echo "$JDK_VARIANT" >&6; } 14518 14519 14520 ############################################################################### 14521 # 14522 # Check which interpreter of the JVM we want to build. 14523 # Currently we have: 14524 # template: Template interpreter (the default) 14525 # cpp : C++ interpreter 14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5 14527 $as_echo_n "checking which interpreter of the JVM to build... " >&6; } 14528 14529 # Check whether --with-jvm-interpreter was given. 14530 if test "${with_jvm_interpreter+set}" = set; then : 14531 withval=$with_jvm_interpreter; 14532 fi 14533 14534 14535 if test "x$with_jvm_interpreter" = x; then 14536 with_jvm_interpreter="template" 14537 fi 14538 14539 JVM_INTERPRETER="$with_jvm_interpreter" 14540 14541 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then 14542 as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5 14543 fi 14544 14545 14546 14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5 14548 $as_echo "$with_jvm_interpreter" >&6; } 14549 14550 14551 14552 ############################################################################### 14553 # 14554 # Check which variants of the JVM that we want to build. 14555 # Currently we have: 14556 # server: normal interpreter and a tiered C1/C2 compiler 14557 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 14558 # minimal1: reduced form of client with optional VM services and features stripped out 14559 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 14560 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 14561 # zero: no machine code interpreter, no compiler 14562 # zeroshark: zero interpreter and shark/llvm compiler backend 14563 # core: interpreter only, no compiler (only works on some platforms) 14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 14565 $as_echo_n "checking which variants of the JVM to build... " >&6; } 14566 14567 # Check whether --with-jvm-variants was given. 14568 if test "${with_jvm_variants+set}" = set; then : 14569 withval=$with_jvm_variants; 14570 fi 14571 14572 14573 if test "x$with_jvm_variants" = x; then 14574 with_jvm_variants="server" 14575 fi 14576 14577 JVM_VARIANTS=",$with_jvm_variants," 14578 TEST_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,//' -e 's/client,//' -e 's/minimal1,//' -e 's/kernel,//' -e 's/zero,//' -e 's/zeroshark,//' -e 's/core,//'` 14579 14580 if test "x$TEST_VARIANTS" != "x,"; then 14581 as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5 14582 fi 14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 14584 $as_echo "$with_jvm_variants" >&6; } 14585 14586 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 14587 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 14588 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 14589 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 14590 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 14591 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 14592 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 14593 14594 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14595 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14596 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 14597 fi 14598 fi 14599 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14600 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14601 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 14602 fi 14603 fi 14604 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14605 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14606 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 14607 fi 14608 fi 14609 14610 # Replace the commas with AND for use in the build directory name. 14611 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'` 14612 COUNT_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,/1/' -e 's/client,/1/' -e 's/minimal1,/1/' -e 's/kernel,/1/' -e 's/zero,/1/' -e 's/zeroshark,/1/' -e 's/core,/1/'` 14613 if test "x$COUNT_VARIANTS" != "x,1"; then 14614 BUILDING_MULTIPLE_JVM_VARIANTS=yes 14615 else 14616 BUILDING_MULTIPLE_JVM_VARIANTS=no 14617 fi 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 INCLUDE_SA=true 14629 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 14630 INCLUDE_SA=false 14631 fi 14632 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 14633 INCLUDE_SA=false 14634 fi 14635 if test "x$VAR_CPU" = xppc64 -o "x$VAR_CPU" = xppc64le ; then 14636 INCLUDE_SA=false 14637 fi 14638 14639 14640 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 14641 MACOSX_UNIVERSAL="false" 14642 fi 14643 14644 14645 14646 14647 ############################################################################### 14648 # 14649 # Set the debug level 14650 # release: no debug information, all optimizations, no asserts. 14651 # fastdebug: debug information (-g), all optimizations, all asserts 14652 # slowdebug: debug information (-g), no optimizations, all asserts 14653 # 14654 DEBUG_LEVEL="release" 14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 14656 $as_echo_n "checking which debug level to use... " >&6; } 14657 # Check whether --enable-debug was given. 14658 if test "${enable_debug+set}" = set; then : 14659 enableval=$enable_debug; 14660 ENABLE_DEBUG="${enableval}" 14661 DEBUG_LEVEL="fastdebug" 14662 14663 else 14664 ENABLE_DEBUG="no" 14665 fi 14666 14667 14668 14669 # Check whether --with-debug-level was given. 14670 if test "${with_debug_level+set}" = set; then : 14671 withval=$with_debug_level; 14672 DEBUG_LEVEL="${withval}" 14673 if test "x$ENABLE_DEBUG" = xyes; then 14674 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 14675 fi 14676 14677 fi 14678 14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 14680 $as_echo "$DEBUG_LEVEL" >&6; } 14681 14682 if test "x$DEBUG_LEVEL" != xrelease && \ 14683 test "x$DEBUG_LEVEL" != xfastdebug && \ 14684 test "x$DEBUG_LEVEL" != xslowdebug; then 14685 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 14686 fi 14687 14688 14689 ############################################################################### 14690 # 14691 # Setup legacy vars/targets and new vars to deal with different debug levels. 14692 # 14693 14694 case $DEBUG_LEVEL in 14695 release ) 14696 VARIANT="OPT" 14697 FASTDEBUG="false" 14698 DEBUG_CLASSFILES="false" 14699 BUILD_VARIANT_RELEASE="" 14700 HOTSPOT_DEBUG_LEVEL="product" 14701 HOTSPOT_EXPORT="product" 14702 ;; 14703 fastdebug ) 14704 VARIANT="DBG" 14705 FASTDEBUG="true" 14706 DEBUG_CLASSFILES="true" 14707 BUILD_VARIANT_RELEASE="-fastdebug" 14708 HOTSPOT_DEBUG_LEVEL="fastdebug" 14709 HOTSPOT_EXPORT="fastdebug" 14710 ;; 14711 slowdebug ) 14712 VARIANT="DBG" 14713 FASTDEBUG="false" 14714 DEBUG_CLASSFILES="true" 14715 BUILD_VARIANT_RELEASE="-debug" 14716 HOTSPOT_DEBUG_LEVEL="jvmg" 14717 HOTSPOT_EXPORT="debug" 14718 ;; 14719 esac 14720 14721 ##### 14722 # Generate the legacy makefile targets for hotspot. 14723 # The hotspot api for selecting the build artifacts, really, needs to be improved. 14724 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 14725 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 14726 # But until then ... 14727 HOTSPOT_TARGET="" 14728 14729 if test "x$JVM_VARIANT_SERVER" = xtrue; then 14730 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 14731 fi 14732 14733 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14734 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 14735 fi 14736 14737 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14738 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 14739 fi 14740 14741 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14742 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 14743 fi 14744 14745 if test "x$JVM_VARIANT_ZERO" = xtrue; then 14746 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 14747 fi 14748 14749 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 14750 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 14751 fi 14752 14753 if test "x$JVM_VARIANT_CORE" = xtrue; then 14754 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 14755 fi 14756 14757 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 14758 14759 # On Macosx universal binaries are produced, but they only contain 14760 # 64 bit intel. This invalidates control of which jvms are built 14761 # from configure, but only server is valid anyway. Fix this 14762 # when hotspot makefiles are rewritten. 14763 if test "x$MACOSX_UNIVERSAL" = xtrue; then 14764 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 14765 fi 14766 14767 ##### 14768 14769 14770 14771 14772 14773 14774 14775 14776 # With basic setup done, call the custom early hook. 14777 14778 14779 # Check if we have devkits, extra paths or sysroot set. 14780 14781 14782 # Check whether --with-devkit was given. 14783 if test "${with_devkit+set}" = set; then : 14784 withval=$with_devkit; 14785 fi 14786 14787 14788 if test "x$with_devkit" = xyes; then 14789 as_fn_error $? "--with-devkit must have a value" "$LINENO" 5 14790 elif test "x$with_devkit" != x && test "x$with_devkit" != xno; then 14791 14792 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14793 14794 # Input might be given as Windows format, start by converting to 14795 # unix format. 14796 path="$with_devkit" 14797 new_path=`$CYGPATH -u "$path"` 14798 14799 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14800 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14801 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14802 # "foo.exe" is OK but "foo" is an error. 14803 # 14804 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14805 # It is also a way to make sure we got the proper file name for the real test later on. 14806 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14807 if test "x$test_shortpath" = x; then 14808 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14809 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14810 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 14811 fi 14812 14813 # Call helper function which possibly converts this using DOS-style short mode. 14814 # If so, the updated path is stored in $new_path. 14815 14816 input_path="$new_path" 14817 # Check if we need to convert this using DOS-style short mode. If the path 14818 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14819 # take no chances and rewrite it. 14820 # Note: m4 eats our [], so we need to use [ and ] instead. 14821 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14822 if test "x$has_forbidden_chars" != x; then 14823 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14824 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14825 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14826 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14827 # Going to short mode and back again did indeed matter. Since short mode is 14828 # case insensitive, let's make it lowercase to improve readability. 14829 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14830 # Now convert it back to Unix-style (cygpath) 14831 input_path=`$CYGPATH -u "$shortmode_path"` 14832 new_path="$input_path" 14833 fi 14834 fi 14835 14836 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14837 if test "x$test_cygdrive_prefix" = x; then 14838 # As a simple fix, exclude /usr/bin since it's not a real path. 14839 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14840 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14841 # a path prefixed by /cygdrive for fixpath to work. 14842 new_path="$CYGWIN_ROOT_PATH$input_path" 14843 fi 14844 fi 14845 14846 14847 if test "x$path" != "x$new_path"; then 14848 with_devkit="$new_path" 14849 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14850 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14851 fi 14852 14853 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14854 14855 path="$with_devkit" 14856 has_colon=`$ECHO $path | $GREP ^.:` 14857 new_path="$path" 14858 if test "x$has_colon" = x; then 14859 # Not in mixed or Windows style, start by that. 14860 new_path=`cmd //c echo $path` 14861 fi 14862 14863 14864 input_path="$new_path" 14865 # Check if we need to convert this using DOS-style short mode. If the path 14866 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14867 # take no chances and rewrite it. 14868 # Note: m4 eats our [], so we need to use [ and ] instead. 14869 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14870 if test "x$has_forbidden_chars" != x; then 14871 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14872 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14873 fi 14874 14875 14876 windows_path="$new_path" 14877 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14878 unix_path=`$CYGPATH -u "$windows_path"` 14879 new_path="$unix_path" 14880 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14881 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14882 new_path="$unix_path" 14883 fi 14884 14885 if test "x$path" != "x$new_path"; then 14886 with_devkit="$new_path" 14887 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14888 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14889 fi 14890 14891 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14892 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14893 14894 else 14895 # We're on a posix platform. Hooray! :) 14896 path="$with_devkit" 14897 has_space=`$ECHO "$path" | $GREP " "` 14898 if test "x$has_space" != x; then 14899 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14900 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14901 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14902 fi 14903 14904 # Use eval to expand a potential ~ 14905 eval path="$path" 14906 if test ! -f "$path" && test ! -d "$path"; then 14907 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 14908 fi 14909 14910 with_devkit="`cd "$path"; $THEPWDCMD -L`" 14911 fi 14912 14913 DEVKIT_ROOT="$with_devkit" 14914 # Check for a meta data info file in the root of the devkit 14915 if test -f "$DEVKIT_ROOT/devkit.info"; then 14916 . $DEVKIT_ROOT/devkit.info 14917 # This potentially sets the following: 14918 # A descriptive name of the devkit 14919 14920 if test "x$DEVKIT_NAME" = x; then 14921 eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 14922 fi 14923 14924 # Corresponds to --with-extra-path 14925 14926 if test "x$DEVKIT_EXTRA_PATH" = x; then 14927 eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 14928 fi 14929 14930 # Corresponds to --with-toolchain-path 14931 14932 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 14933 eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 14934 fi 14935 14936 # Corresponds to --with-sysroot 14937 14938 if test "x$DEVKIT_SYSROOT" = x; then 14939 eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 14940 fi 14941 14942 14943 # Identifies the Visual Studio version in the devkit 14944 14945 if test "x$DEVKIT_VS_VERSION" = x; then 14946 eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}" 14947 fi 14948 14949 # The Visual Studio include environment variable 14950 14951 if test "x$DEVKIT_VS_INCLUDE" = x; then 14952 eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}" 14953 fi 14954 14955 # The Visual Studio lib environment variable 14956 14957 if test "x$DEVKIT_VS_LIB" = x; then 14958 eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}" 14959 fi 14960 14961 # Corresponds to --with-msvcr-dll 14962 14963 if test "x$DEVKIT_MSVCR_DLL" = x; then 14964 eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}" 14965 fi 14966 14967 # Corresponds to --with-msvcp-dll 14968 14969 if test "x$DEVKIT_MSVCP_DLL" = x; then 14970 eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}" 14971 fi 14972 14973 # Corresponds to --with-ucrt-dll-dir 14974 14975 if test "x$DEVKIT_UCRT_DLL_DIR" = x; then 14976 eval DEVKIT_UCRT_DLL_DIR="\${DEVKIT_UCRT_DLL_DIR_${OPENJDK_TARGET_CPU}}" 14977 fi 14978 14979 fi 14980 14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 14982 $as_echo_n "checking for devkit... " >&6; } 14983 if test "x$DEVKIT_NAME" != x; then 14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 14985 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 14986 else 14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 14988 $as_echo "$DEVKIT_ROOT" >&6; } 14989 fi 14990 14991 14992 if test "x$DEVKIT_EXTRA_PATH" != x; then 14993 if test "x$EXTRA_PATH" = x; then 14994 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 14995 else 14996 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 14997 fi 14998 fi 14999 15000 15001 # Fallback default of just /bin if DEVKIT_PATH is not defined 15002 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 15003 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 15004 fi 15005 15006 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 15007 if test "x$TOOLCHAIN_PATH" = x; then 15008 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 15009 else 15010 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 15011 fi 15012 fi 15013 15014 15015 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 15016 # places for backwards compatiblity. 15017 if test "x$DEVKIT_SYSROOT" != x; then 15018 SYSROOT="$DEVKIT_SYSROOT" 15019 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 15020 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 15021 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 15022 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 15023 fi 15024 15025 if test "x$DEVKIT_ROOT" != x; then 15026 DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib" 15027 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 15028 DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib64" 15029 fi 15030 15031 fi 15032 fi 15033 15034 # You can force the sysroot if the sysroot encoded into the compiler tools 15035 # is not correct. 15036 15037 # Check whether --with-sys-root was given. 15038 if test "${with_sys_root+set}" = set; then : 15039 withval=$with_sys_root; SYSROOT=$with_sys_root 15040 15041 fi 15042 15043 15044 15045 # Check whether --with-sysroot was given. 15046 if test "${with_sysroot+set}" = set; then : 15047 withval=$with_sysroot; SYSROOT=$with_sysroot 15048 15049 fi 15050 15051 15052 15053 # Check whether --with-tools-dir was given. 15054 if test "${with_tools_dir+set}" = set; then : 15055 withval=$with_tools_dir; 15056 if test "x$with_tools_dir" != x; then 15057 if test "x$TOOLCHAIN_PATH" = x; then 15058 TOOLCHAIN_PATH="$with_tools_dir" 15059 else 15060 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 15061 fi 15062 fi 15063 15064 15065 fi 15066 15067 15068 15069 # Check whether --with-toolchain-path was given. 15070 if test "${with_toolchain_path+set}" = set; then : 15071 withval=$with_toolchain_path; 15072 if test "x$with_toolchain_path" != x; then 15073 if test "x$TOOLCHAIN_PATH" = x; then 15074 TOOLCHAIN_PATH="$with_toolchain_path" 15075 else 15076 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 15077 fi 15078 fi 15079 15080 15081 fi 15082 15083 15084 15085 # Check whether --with-extra-path was given. 15086 if test "${with_extra_path+set}" = set; then : 15087 withval=$with_extra_path; 15088 if test "x$with_extra_path" != x; then 15089 if test "x$EXTRA_PATH" = x; then 15090 EXTRA_PATH="$with_extra_path" 15091 else 15092 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 15093 fi 15094 fi 15095 15096 15097 fi 15098 15099 15100 # Prepend the extra path to the global path 15101 15102 if test "x$EXTRA_PATH" != x; then 15103 if test "x$PATH" = x; then 15104 PATH="$EXTRA_PATH" 15105 else 15106 PATH="$EXTRA_PATH:$PATH" 15107 fi 15108 fi 15109 15110 15111 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 15112 # Add extra search paths on solaris for utilities like ar and as etc... 15113 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 15114 fi 15115 15116 # Xcode version will be validated later 15117 15118 # Check whether --with-xcode-path was given. 15119 if test "${with_xcode_path+set}" = set; then : 15120 withval=$with_xcode_path; XCODE_PATH=$with_xcode_path 15121 15122 fi 15123 15124 15125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 15126 $as_echo_n "checking for sysroot... " >&6; } 15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 15128 $as_echo "$SYSROOT" >&6; } 15129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 15130 $as_echo_n "checking for toolchain path... " >&6; } 15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 15132 $as_echo "$TOOLCHAIN_PATH" >&6; } 15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 15134 $as_echo_n "checking for extra path... " >&6; } 15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 15136 $as_echo "$EXTRA_PATH" >&6; } 15137 15138 15139 # To properly create a configuration name, we need to have the OpenJDK target 15140 # and options (variants and debug level) parsed. 15141 15142 15143 15144 # Check whether --with-conf-name was given. 15145 if test "${with_conf_name+set}" = set; then : 15146 withval=$with_conf_name; CONF_NAME=${with_conf_name} 15147 fi 15148 15149 15150 # Test from where we are running configure, in or outside of src root. 15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 15152 $as_echo_n "checking where to store configuration... " >&6; } 15153 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 15154 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 15155 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 15156 # We are running configure from the src root. 15157 # Create a default ./build/target-variant-debuglevel output root. 15158 if test "x${CONF_NAME}" = x; then 15159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 15160 $as_echo "in default location" >&6; } 15161 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 15162 else 15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 15164 $as_echo "in build directory with custom name" >&6; } 15165 fi 15166 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 15167 $MKDIR -p "$OUTPUT_ROOT" 15168 if test ! -d "$OUTPUT_ROOT"; then 15169 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 15170 fi 15171 else 15172 # We are running configure from outside of the src dir. 15173 # Then use the current directory as output dir! 15174 # If configuration is situated in normal build directory, just use the build 15175 # directory name as configuration name, otherwise use the complete path. 15176 if test "x${CONF_NAME}" = x; then 15177 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 15178 fi 15179 OUTPUT_ROOT="$CURDIR" 15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 15181 $as_echo "in current directory" >&6; } 15182 15183 # WARNING: This might be a bad thing to do. You need to be sure you want to 15184 # have a configuration in this directory. Do some sanity checks! 15185 15186 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 15187 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 15188 # other files 15189 files_present=`$LS $OUTPUT_ROOT` 15190 # Configure has already touched config.log and confdefs.h in the current dir when this check 15191 # is performed. 15192 filtered_files=`$ECHO "$files_present" \ 15193 | $SED -e 's/config.log//g' \ 15194 -e 's/confdefs.h//g' \ 15195 -e 's/fixpath.exe//g' \ 15196 -e 's/ //g' \ 15197 | $TR -d '\n'` 15198 if test "x$filtered_files" != x; then 15199 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 15200 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 15201 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 15202 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 15203 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 15204 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 15205 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 15206 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 15207 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 15208 $as_echo "$as_me: seriously mess up just about everything." >&6;} 15209 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 15210 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 15211 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 15212 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 15213 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 15214 fi 15215 fi 15216 fi 15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 15218 $as_echo_n "checking what configuration name to use... " >&6; } 15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 15220 $as_echo "$CONF_NAME" >&6; } 15221 15222 15223 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15224 15225 # Input might be given as Windows format, start by converting to 15226 # unix format. 15227 path="$OUTPUT_ROOT" 15228 new_path=`$CYGPATH -u "$path"` 15229 15230 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15231 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15232 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15233 # "foo.exe" is OK but "foo" is an error. 15234 # 15235 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15236 # It is also a way to make sure we got the proper file name for the real test later on. 15237 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15238 if test "x$test_shortpath" = x; then 15239 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15240 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15241 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 15242 fi 15243 15244 # Call helper function which possibly converts this using DOS-style short mode. 15245 # If so, the updated path is stored in $new_path. 15246 15247 input_path="$new_path" 15248 # Check if we need to convert this using DOS-style short mode. If the path 15249 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15250 # take no chances and rewrite it. 15251 # Note: m4 eats our [], so we need to use [ and ] instead. 15252 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15253 if test "x$has_forbidden_chars" != x; then 15254 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15255 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15256 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15257 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15258 # Going to short mode and back again did indeed matter. Since short mode is 15259 # case insensitive, let's make it lowercase to improve readability. 15260 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15261 # Now convert it back to Unix-style (cygpath) 15262 input_path=`$CYGPATH -u "$shortmode_path"` 15263 new_path="$input_path" 15264 fi 15265 fi 15266 15267 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15268 if test "x$test_cygdrive_prefix" = x; then 15269 # As a simple fix, exclude /usr/bin since it's not a real path. 15270 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15271 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15272 # a path prefixed by /cygdrive for fixpath to work. 15273 new_path="$CYGWIN_ROOT_PATH$input_path" 15274 fi 15275 fi 15276 15277 15278 if test "x$path" != "x$new_path"; then 15279 OUTPUT_ROOT="$new_path" 15280 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15281 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15282 fi 15283 15284 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15285 15286 path="$OUTPUT_ROOT" 15287 has_colon=`$ECHO $path | $GREP ^.:` 15288 new_path="$path" 15289 if test "x$has_colon" = x; then 15290 # Not in mixed or Windows style, start by that. 15291 new_path=`cmd //c echo $path` 15292 fi 15293 15294 15295 input_path="$new_path" 15296 # Check if we need to convert this using DOS-style short mode. If the path 15297 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15298 # take no chances and rewrite it. 15299 # Note: m4 eats our [], so we need to use [ and ] instead. 15300 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15301 if test "x$has_forbidden_chars" != x; then 15302 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15303 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15304 fi 15305 15306 15307 windows_path="$new_path" 15308 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15309 unix_path=`$CYGPATH -u "$windows_path"` 15310 new_path="$unix_path" 15311 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15312 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15313 new_path="$unix_path" 15314 fi 15315 15316 if test "x$path" != "x$new_path"; then 15317 OUTPUT_ROOT="$new_path" 15318 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15319 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15320 fi 15321 15322 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15323 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15324 15325 else 15326 # We're on a posix platform. Hooray! :) 15327 path="$OUTPUT_ROOT" 15328 has_space=`$ECHO "$path" | $GREP " "` 15329 if test "x$has_space" != x; then 15330 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15331 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15332 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15333 fi 15334 15335 # Use eval to expand a potential ~ 15336 eval path="$path" 15337 if test ! -f "$path" && test ! -d "$path"; then 15338 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 15339 fi 15340 15341 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 15342 fi 15343 15344 15345 SPEC=$OUTPUT_ROOT/spec.gmk 15346 15347 CONF_NAME=$CONF_NAME 15348 15349 OUTPUT_ROOT=$OUTPUT_ROOT 15350 15351 15352 # Most of the probed defines are put into config.h 15353 ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" 15354 15355 # The spec.gmk file contains all variables for the make system. 15356 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 15357 15358 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 15359 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 15360 15361 # The bootcycle-spec.gmk file contains support for boot cycle builds. 15362 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 15363 15364 # The compare.sh is used to compare the build output to other builds. 15365 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 15366 15367 # Spec.sh is currently used by compare-objects.sh 15368 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" 15369 15370 # The generated Makefile knows where the spec.gmk is and where the source is. 15371 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 15372 # which will look for generated configurations 15373 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 15374 15375 15376 15377 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 15378 15379 for ac_prog in apt-get yum port pkgutil pkgadd 15380 do 15381 # Extract the first word of "$ac_prog", so it can be a program name with args. 15382 set dummy $ac_prog; ac_word=$2 15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15384 $as_echo_n "checking for $ac_word... " >&6; } 15385 if ${ac_cv_prog_PKGHANDLER+:} false; then : 15386 $as_echo_n "(cached) " >&6 15387 else 15388 if test -n "$PKGHANDLER"; then 15389 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 15390 else 15391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15392 for as_dir in $PATH 15393 do 15394 IFS=$as_save_IFS 15395 test -z "$as_dir" && as_dir=. 15396 for ac_exec_ext in '' $ac_executable_extensions; do 15397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15398 ac_cv_prog_PKGHANDLER="$ac_prog" 15399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15400 break 2 15401 fi 15402 done 15403 done 15404 IFS=$as_save_IFS 15405 15406 fi 15407 fi 15408 PKGHANDLER=$ac_cv_prog_PKGHANDLER 15409 if test -n "$PKGHANDLER"; then 15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 15411 $as_echo "$PKGHANDLER" >&6; } 15412 else 15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15414 $as_echo "no" >&6; } 15415 fi 15416 15417 15418 test -n "$PKGHANDLER" && break 15419 done 15420 15421 15422 15423 # Setup tools that requires more complex handling, or that is not needed by the configure script. 15424 15425 15426 # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. 15427 if test "x$MAKE" != x; then 15428 # User has supplied a make, test it. 15429 if test ! -f "$MAKE"; then 15430 as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5 15431 fi 15432 15433 MAKE_CANDIDATE=""$MAKE"" 15434 DESCRIPTION="user supplied MAKE=$MAKE" 15435 if test "x$MAKE_CANDIDATE" != x; then 15436 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15437 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15438 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15439 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15440 if test "x$IS_GNU_MAKE" = x; then 15441 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15442 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15443 else 15444 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15445 if test "x$IS_MODERN_MAKE" = x; then 15446 { $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 15447 $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;} 15448 else 15449 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15450 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15451 MAKE_EXPECTED_ENV='cygwin' 15452 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15453 MAKE_EXPECTED_ENV='msys' 15454 else 15455 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15456 fi 15457 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15458 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15459 else 15460 # Not relevant for non-Windows 15461 IS_MAKE_CORRECT_ENV=true 15462 fi 15463 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15464 { $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 15465 $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;} 15466 else 15467 FOUND_MAKE=$MAKE_CANDIDATE 15468 15469 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15470 15471 # First separate the path from the arguments. This will split at the first 15472 # space. 15473 complete="$FOUND_MAKE" 15474 path="${complete%% *}" 15475 tmp="$complete EOL" 15476 arguments="${tmp#* }" 15477 15478 # Input might be given as Windows format, start by converting to 15479 # unix format. 15480 new_path=`$CYGPATH -u "$path"` 15481 15482 # Now try to locate executable using which 15483 new_path=`$WHICH "$new_path" 2> /dev/null` 15484 # bat and cmd files are not always considered executable in cygwin causing which 15485 # to not find them 15486 if test "x$new_path" = x \ 15487 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15488 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15489 new_path=`$CYGPATH -u "$path"` 15490 fi 15491 if test "x$new_path" = x; then 15492 # Oops. Which didn't find the executable. 15493 # The splitting of arguments from the executable at a space might have been incorrect, 15494 # since paths with space are more likely in Windows. Give it another try with the whole 15495 # argument. 15496 path="$complete" 15497 arguments="EOL" 15498 new_path=`$CYGPATH -u "$path"` 15499 new_path=`$WHICH "$new_path" 2> /dev/null` 15500 # bat and cmd files are not always considered executable in cygwin causing which 15501 # to not find them 15502 if test "x$new_path" = x \ 15503 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15504 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15505 new_path=`$CYGPATH -u "$path"` 15506 fi 15507 if test "x$new_path" = x; then 15508 # It's still not found. Now this is an unrecoverable error. 15509 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15510 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15511 has_space=`$ECHO "$complete" | $GREP " "` 15512 if test "x$has_space" != x; then 15513 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15514 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15515 fi 15516 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15517 fi 15518 fi 15519 15520 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15521 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15522 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15523 # "foo.exe" is OK but "foo" is an error. 15524 # 15525 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15526 # It is also a way to make sure we got the proper file name for the real test later on. 15527 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15528 if test "x$test_shortpath" = x; then 15529 # Short path failed, file does not exist as specified. 15530 # Try adding .exe or .cmd 15531 if test -f "${new_path}.exe"; then 15532 input_to_shortpath="${new_path}.exe" 15533 elif test -f "${new_path}.cmd"; then 15534 input_to_shortpath="${new_path}.cmd" 15535 else 15536 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15537 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15538 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15539 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15540 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15541 fi 15542 else 15543 input_to_shortpath="$new_path" 15544 fi 15545 15546 # Call helper function which possibly converts this using DOS-style short mode. 15547 # If so, the updated path is stored in $new_path. 15548 new_path="$input_to_shortpath" 15549 15550 input_path="$input_to_shortpath" 15551 # Check if we need to convert this using DOS-style short mode. If the path 15552 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15553 # take no chances and rewrite it. 15554 # Note: m4 eats our [], so we need to use [ and ] instead. 15555 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15556 if test "x$has_forbidden_chars" != x; then 15557 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15558 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15559 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15560 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15561 # Going to short mode and back again did indeed matter. Since short mode is 15562 # case insensitive, let's make it lowercase to improve readability. 15563 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15564 # Now convert it back to Unix-style (cygpath) 15565 input_path=`$CYGPATH -u "$shortmode_path"` 15566 new_path="$input_path" 15567 fi 15568 fi 15569 15570 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15571 if test "x$test_cygdrive_prefix" = x; then 15572 # As a simple fix, exclude /usr/bin since it's not a real path. 15573 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15574 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15575 # a path prefixed by /cygdrive for fixpath to work. 15576 new_path="$CYGWIN_ROOT_PATH$input_path" 15577 fi 15578 fi 15579 15580 # remove trailing .exe if any 15581 new_path="${new_path/%.exe/}" 15582 15583 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15584 15585 # First separate the path from the arguments. This will split at the first 15586 # space. 15587 complete="$FOUND_MAKE" 15588 path="${complete%% *}" 15589 tmp="$complete EOL" 15590 arguments="${tmp#* }" 15591 15592 # Input might be given as Windows format, start by converting to 15593 # unix format. 15594 new_path="$path" 15595 15596 windows_path="$new_path" 15597 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15598 unix_path=`$CYGPATH -u "$windows_path"` 15599 new_path="$unix_path" 15600 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15601 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15602 new_path="$unix_path" 15603 fi 15604 15605 15606 # Now try to locate executable using which 15607 new_path=`$WHICH "$new_path" 2> /dev/null` 15608 15609 if test "x$new_path" = x; then 15610 # Oops. Which didn't find the executable. 15611 # The splitting of arguments from the executable at a space might have been incorrect, 15612 # since paths with space are more likely in Windows. Give it another try with the whole 15613 # argument. 15614 path="$complete" 15615 arguments="EOL" 15616 new_path="$path" 15617 15618 windows_path="$new_path" 15619 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15620 unix_path=`$CYGPATH -u "$windows_path"` 15621 new_path="$unix_path" 15622 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15623 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15624 new_path="$unix_path" 15625 fi 15626 15627 15628 new_path=`$WHICH "$new_path" 2> /dev/null` 15629 # bat and cmd files are not always considered executable in MSYS causing which 15630 # to not find them 15631 if test "x$new_path" = x \ 15632 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15633 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15634 new_path="$path" 15635 15636 windows_path="$new_path" 15637 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15638 unix_path=`$CYGPATH -u "$windows_path"` 15639 new_path="$unix_path" 15640 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15641 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15642 new_path="$unix_path" 15643 fi 15644 15645 fi 15646 15647 if test "x$new_path" = x; then 15648 # It's still not found. Now this is an unrecoverable error. 15649 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15650 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15651 has_space=`$ECHO "$complete" | $GREP " "` 15652 if test "x$has_space" != x; then 15653 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15654 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15655 fi 15656 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15657 fi 15658 fi 15659 15660 # Now new_path has a complete unix path to the binary 15661 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15662 # Keep paths in /bin as-is, but remove trailing .exe if any 15663 new_path="${new_path/%.exe/}" 15664 # Do not save /bin paths to all_fixpath_prefixes! 15665 else 15666 # Not in mixed or Windows style, start by that. 15667 new_path=`cmd //c echo $new_path` 15668 15669 input_path="$new_path" 15670 # Check if we need to convert this using DOS-style short mode. If the path 15671 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15672 # take no chances and rewrite it. 15673 # Note: m4 eats our [], so we need to use [ and ] instead. 15674 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15675 if test "x$has_forbidden_chars" != x; then 15676 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15677 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15678 fi 15679 15680 # Output is in $new_path 15681 15682 windows_path="$new_path" 15683 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15684 unix_path=`$CYGPATH -u "$windows_path"` 15685 new_path="$unix_path" 15686 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15687 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15688 new_path="$unix_path" 15689 fi 15690 15691 # remove trailing .exe if any 15692 new_path="${new_path/%.exe/}" 15693 15694 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15695 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15696 fi 15697 15698 else 15699 # We're on a posix platform. Hooray! :) 15700 # First separate the path from the arguments. This will split at the first 15701 # space. 15702 complete="$FOUND_MAKE" 15703 path="${complete%% *}" 15704 tmp="$complete EOL" 15705 arguments="${tmp#* }" 15706 15707 # Cannot rely on the command "which" here since it doesn't always work. 15708 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15709 if test -z "$is_absolute_path"; then 15710 # Path to executable is not absolute. Find it. 15711 IFS_save="$IFS" 15712 IFS=: 15713 for p in $PATH; do 15714 if test -f "$p/$path" && test -x "$p/$path"; then 15715 new_path="$p/$path" 15716 break 15717 fi 15718 done 15719 IFS="$IFS_save" 15720 else 15721 # This is an absolute path, we can use it without further modifications. 15722 new_path="$path" 15723 fi 15724 15725 if test "x$new_path" = x; then 15726 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15727 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15728 has_space=`$ECHO "$complete" | $GREP " "` 15729 if test "x$has_space" != x; then 15730 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15731 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15732 fi 15733 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15734 fi 15735 fi 15736 15737 # Now join together the path and the arguments once again 15738 if test "x$arguments" != xEOL; then 15739 new_complete="$new_path ${arguments% *}" 15740 else 15741 new_complete="$new_path" 15742 fi 15743 15744 if test "x$complete" != "x$new_complete"; then 15745 FOUND_MAKE="$new_complete" 15746 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15747 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15748 fi 15749 15750 fi 15751 fi 15752 fi 15753 fi 15754 15755 if test "x$FOUND_MAKE" = x; then 15756 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5 15757 fi 15758 else 15759 # Try our hardest to locate a correct version of GNU make 15760 for ac_prog in gmake 15761 do 15762 # Extract the first word of "$ac_prog", so it can be a program name with args. 15763 set dummy $ac_prog; ac_word=$2 15764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15765 $as_echo_n "checking for $ac_word... " >&6; } 15766 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 15767 $as_echo_n "(cached) " >&6 15768 else 15769 case $CHECK_GMAKE in 15770 [\\/]* | ?:[\\/]*) 15771 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 15772 ;; 15773 *) 15774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15775 for as_dir in $PATH 15776 do 15777 IFS=$as_save_IFS 15778 test -z "$as_dir" && as_dir=. 15779 for ac_exec_ext in '' $ac_executable_extensions; do 15780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15781 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 15782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15783 break 2 15784 fi 15785 done 15786 done 15787 IFS=$as_save_IFS 15788 15789 ;; 15790 esac 15791 fi 15792 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 15793 if test -n "$CHECK_GMAKE"; then 15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 15795 $as_echo "$CHECK_GMAKE" >&6; } 15796 else 15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15798 $as_echo "no" >&6; } 15799 fi 15800 15801 15802 test -n "$CHECK_GMAKE" && break 15803 done 15804 15805 15806 MAKE_CANDIDATE=""$CHECK_GMAKE"" 15807 DESCRIPTION="gmake in PATH" 15808 if test "x$MAKE_CANDIDATE" != x; then 15809 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15810 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15811 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15812 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15813 if test "x$IS_GNU_MAKE" = x; then 15814 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15815 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15816 else 15817 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15818 if test "x$IS_MODERN_MAKE" = x; then 15819 { $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 15820 $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;} 15821 else 15822 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15823 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15824 MAKE_EXPECTED_ENV='cygwin' 15825 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15826 MAKE_EXPECTED_ENV='msys' 15827 else 15828 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15829 fi 15830 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15831 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15832 else 15833 # Not relevant for non-Windows 15834 IS_MAKE_CORRECT_ENV=true 15835 fi 15836 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15837 { $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 15838 $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;} 15839 else 15840 FOUND_MAKE=$MAKE_CANDIDATE 15841 15842 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15843 15844 # First separate the path from the arguments. This will split at the first 15845 # space. 15846 complete="$FOUND_MAKE" 15847 path="${complete%% *}" 15848 tmp="$complete EOL" 15849 arguments="${tmp#* }" 15850 15851 # Input might be given as Windows format, start by converting to 15852 # unix format. 15853 new_path=`$CYGPATH -u "$path"` 15854 15855 # Now try to locate executable using which 15856 new_path=`$WHICH "$new_path" 2> /dev/null` 15857 # bat and cmd files are not always considered executable in cygwin causing which 15858 # to not find them 15859 if test "x$new_path" = x \ 15860 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15861 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15862 new_path=`$CYGPATH -u "$path"` 15863 fi 15864 if test "x$new_path" = x; then 15865 # Oops. Which didn't find the executable. 15866 # The splitting of arguments from the executable at a space might have been incorrect, 15867 # since paths with space are more likely in Windows. Give it another try with the whole 15868 # argument. 15869 path="$complete" 15870 arguments="EOL" 15871 new_path=`$CYGPATH -u "$path"` 15872 new_path=`$WHICH "$new_path" 2> /dev/null` 15873 # bat and cmd files are not always considered executable in cygwin causing which 15874 # to not find them 15875 if test "x$new_path" = x \ 15876 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15877 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15878 new_path=`$CYGPATH -u "$path"` 15879 fi 15880 if test "x$new_path" = x; then 15881 # It's still not found. Now this is an unrecoverable error. 15882 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15883 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15884 has_space=`$ECHO "$complete" | $GREP " "` 15885 if test "x$has_space" != x; then 15886 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15887 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15888 fi 15889 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15890 fi 15891 fi 15892 15893 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15894 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15895 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15896 # "foo.exe" is OK but "foo" is an error. 15897 # 15898 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15899 # It is also a way to make sure we got the proper file name for the real test later on. 15900 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15901 if test "x$test_shortpath" = x; then 15902 # Short path failed, file does not exist as specified. 15903 # Try adding .exe or .cmd 15904 if test -f "${new_path}.exe"; then 15905 input_to_shortpath="${new_path}.exe" 15906 elif test -f "${new_path}.cmd"; then 15907 input_to_shortpath="${new_path}.cmd" 15908 else 15909 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15910 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15911 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15912 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15913 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15914 fi 15915 else 15916 input_to_shortpath="$new_path" 15917 fi 15918 15919 # Call helper function which possibly converts this using DOS-style short mode. 15920 # If so, the updated path is stored in $new_path. 15921 new_path="$input_to_shortpath" 15922 15923 input_path="$input_to_shortpath" 15924 # Check if we need to convert this using DOS-style short mode. If the path 15925 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15926 # take no chances and rewrite it. 15927 # Note: m4 eats our [], so we need to use [ and ] instead. 15928 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15929 if test "x$has_forbidden_chars" != x; then 15930 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15931 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15932 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15933 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15934 # Going to short mode and back again did indeed matter. Since short mode is 15935 # case insensitive, let's make it lowercase to improve readability. 15936 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15937 # Now convert it back to Unix-style (cygpath) 15938 input_path=`$CYGPATH -u "$shortmode_path"` 15939 new_path="$input_path" 15940 fi 15941 fi 15942 15943 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15944 if test "x$test_cygdrive_prefix" = x; then 15945 # As a simple fix, exclude /usr/bin since it's not a real path. 15946 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15947 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15948 # a path prefixed by /cygdrive for fixpath to work. 15949 new_path="$CYGWIN_ROOT_PATH$input_path" 15950 fi 15951 fi 15952 15953 # remove trailing .exe if any 15954 new_path="${new_path/%.exe/}" 15955 15956 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15957 15958 # First separate the path from the arguments. This will split at the first 15959 # space. 15960 complete="$FOUND_MAKE" 15961 path="${complete%% *}" 15962 tmp="$complete EOL" 15963 arguments="${tmp#* }" 15964 15965 # Input might be given as Windows format, start by converting to 15966 # unix format. 15967 new_path="$path" 15968 15969 windows_path="$new_path" 15970 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15971 unix_path=`$CYGPATH -u "$windows_path"` 15972 new_path="$unix_path" 15973 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15974 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15975 new_path="$unix_path" 15976 fi 15977 15978 15979 # Now try to locate executable using which 15980 new_path=`$WHICH "$new_path" 2> /dev/null` 15981 15982 if test "x$new_path" = x; then 15983 # Oops. Which didn't find the executable. 15984 # The splitting of arguments from the executable at a space might have been incorrect, 15985 # since paths with space are more likely in Windows. Give it another try with the whole 15986 # argument. 15987 path="$complete" 15988 arguments="EOL" 15989 new_path="$path" 15990 15991 windows_path="$new_path" 15992 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15993 unix_path=`$CYGPATH -u "$windows_path"` 15994 new_path="$unix_path" 15995 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15996 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15997 new_path="$unix_path" 15998 fi 15999 16000 16001 new_path=`$WHICH "$new_path" 2> /dev/null` 16002 # bat and cmd files are not always considered executable in MSYS causing which 16003 # to not find them 16004 if test "x$new_path" = x \ 16005 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16006 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16007 new_path="$path" 16008 16009 windows_path="$new_path" 16010 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16011 unix_path=`$CYGPATH -u "$windows_path"` 16012 new_path="$unix_path" 16013 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16014 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16015 new_path="$unix_path" 16016 fi 16017 16018 fi 16019 16020 if test "x$new_path" = x; then 16021 # It's still not found. Now this is an unrecoverable error. 16022 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16023 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16024 has_space=`$ECHO "$complete" | $GREP " "` 16025 if test "x$has_space" != x; then 16026 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16027 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16028 fi 16029 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16030 fi 16031 fi 16032 16033 # Now new_path has a complete unix path to the binary 16034 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16035 # Keep paths in /bin as-is, but remove trailing .exe if any 16036 new_path="${new_path/%.exe/}" 16037 # Do not save /bin paths to all_fixpath_prefixes! 16038 else 16039 # Not in mixed or Windows style, start by that. 16040 new_path=`cmd //c echo $new_path` 16041 16042 input_path="$new_path" 16043 # Check if we need to convert this using DOS-style short mode. If the path 16044 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16045 # take no chances and rewrite it. 16046 # Note: m4 eats our [], so we need to use [ and ] instead. 16047 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16048 if test "x$has_forbidden_chars" != x; then 16049 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16050 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16051 fi 16052 16053 # Output is in $new_path 16054 16055 windows_path="$new_path" 16056 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16057 unix_path=`$CYGPATH -u "$windows_path"` 16058 new_path="$unix_path" 16059 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16060 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16061 new_path="$unix_path" 16062 fi 16063 16064 # remove trailing .exe if any 16065 new_path="${new_path/%.exe/}" 16066 16067 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16068 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16069 fi 16070 16071 else 16072 # We're on a posix platform. Hooray! :) 16073 # First separate the path from the arguments. This will split at the first 16074 # space. 16075 complete="$FOUND_MAKE" 16076 path="${complete%% *}" 16077 tmp="$complete EOL" 16078 arguments="${tmp#* }" 16079 16080 # Cannot rely on the command "which" here since it doesn't always work. 16081 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16082 if test -z "$is_absolute_path"; then 16083 # Path to executable is not absolute. Find it. 16084 IFS_save="$IFS" 16085 IFS=: 16086 for p in $PATH; do 16087 if test -f "$p/$path" && test -x "$p/$path"; then 16088 new_path="$p/$path" 16089 break 16090 fi 16091 done 16092 IFS="$IFS_save" 16093 else 16094 # This is an absolute path, we can use it without further modifications. 16095 new_path="$path" 16096 fi 16097 16098 if test "x$new_path" = x; then 16099 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16100 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16101 has_space=`$ECHO "$complete" | $GREP " "` 16102 if test "x$has_space" != x; then 16103 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16104 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16105 fi 16106 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16107 fi 16108 fi 16109 16110 # Now join together the path and the arguments once again 16111 if test "x$arguments" != xEOL; then 16112 new_complete="$new_path ${arguments% *}" 16113 else 16114 new_complete="$new_path" 16115 fi 16116 16117 if test "x$complete" != "x$new_complete"; then 16118 FOUND_MAKE="$new_complete" 16119 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16120 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16121 fi 16122 16123 fi 16124 fi 16125 fi 16126 fi 16127 16128 16129 if test "x$FOUND_MAKE" = x; then 16130 for ac_prog in make 16131 do 16132 # Extract the first word of "$ac_prog", so it can be a program name with args. 16133 set dummy $ac_prog; ac_word=$2 16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16135 $as_echo_n "checking for $ac_word... " >&6; } 16136 if ${ac_cv_path_CHECK_MAKE+:} false; then : 16137 $as_echo_n "(cached) " >&6 16138 else 16139 case $CHECK_MAKE in 16140 [\\/]* | ?:[\\/]*) 16141 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 16142 ;; 16143 *) 16144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16145 for as_dir in $PATH 16146 do 16147 IFS=$as_save_IFS 16148 test -z "$as_dir" && as_dir=. 16149 for ac_exec_ext in '' $ac_executable_extensions; do 16150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16151 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 16152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16153 break 2 16154 fi 16155 done 16156 done 16157 IFS=$as_save_IFS 16158 16159 ;; 16160 esac 16161 fi 16162 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 16163 if test -n "$CHECK_MAKE"; then 16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 16165 $as_echo "$CHECK_MAKE" >&6; } 16166 else 16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16168 $as_echo "no" >&6; } 16169 fi 16170 16171 16172 test -n "$CHECK_MAKE" && break 16173 done 16174 16175 16176 MAKE_CANDIDATE=""$CHECK_MAKE"" 16177 DESCRIPTION="make in PATH" 16178 if test "x$MAKE_CANDIDATE" != x; then 16179 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16180 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16181 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16182 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16183 if test "x$IS_GNU_MAKE" = x; then 16184 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16185 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16186 else 16187 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16188 if test "x$IS_MODERN_MAKE" = x; then 16189 { $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 16190 $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;} 16191 else 16192 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16193 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16194 MAKE_EXPECTED_ENV='cygwin' 16195 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16196 MAKE_EXPECTED_ENV='msys' 16197 else 16198 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16199 fi 16200 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16201 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16202 else 16203 # Not relevant for non-Windows 16204 IS_MAKE_CORRECT_ENV=true 16205 fi 16206 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16207 { $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 16208 $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;} 16209 else 16210 FOUND_MAKE=$MAKE_CANDIDATE 16211 16212 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16213 16214 # First separate the path from the arguments. This will split at the first 16215 # space. 16216 complete="$FOUND_MAKE" 16217 path="${complete%% *}" 16218 tmp="$complete EOL" 16219 arguments="${tmp#* }" 16220 16221 # Input might be given as Windows format, start by converting to 16222 # unix format. 16223 new_path=`$CYGPATH -u "$path"` 16224 16225 # Now try to locate executable using which 16226 new_path=`$WHICH "$new_path" 2> /dev/null` 16227 # bat and cmd files are not always considered executable in cygwin causing which 16228 # to not find them 16229 if test "x$new_path" = x \ 16230 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16231 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16232 new_path=`$CYGPATH -u "$path"` 16233 fi 16234 if test "x$new_path" = x; then 16235 # Oops. Which didn't find the executable. 16236 # The splitting of arguments from the executable at a space might have been incorrect, 16237 # since paths with space are more likely in Windows. Give it another try with the whole 16238 # argument. 16239 path="$complete" 16240 arguments="EOL" 16241 new_path=`$CYGPATH -u "$path"` 16242 new_path=`$WHICH "$new_path" 2> /dev/null` 16243 # bat and cmd files are not always considered executable in cygwin causing which 16244 # to not find them 16245 if test "x$new_path" = x \ 16246 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16247 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16248 new_path=`$CYGPATH -u "$path"` 16249 fi 16250 if test "x$new_path" = x; then 16251 # It's still not found. Now this is an unrecoverable error. 16252 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16253 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16254 has_space=`$ECHO "$complete" | $GREP " "` 16255 if test "x$has_space" != x; then 16256 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16257 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16258 fi 16259 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16260 fi 16261 fi 16262 16263 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16264 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16265 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16266 # "foo.exe" is OK but "foo" is an error. 16267 # 16268 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16269 # It is also a way to make sure we got the proper file name for the real test later on. 16270 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16271 if test "x$test_shortpath" = x; then 16272 # Short path failed, file does not exist as specified. 16273 # Try adding .exe or .cmd 16274 if test -f "${new_path}.exe"; then 16275 input_to_shortpath="${new_path}.exe" 16276 elif test -f "${new_path}.cmd"; then 16277 input_to_shortpath="${new_path}.cmd" 16278 else 16279 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16280 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16281 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16282 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16283 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16284 fi 16285 else 16286 input_to_shortpath="$new_path" 16287 fi 16288 16289 # Call helper function which possibly converts this using DOS-style short mode. 16290 # If so, the updated path is stored in $new_path. 16291 new_path="$input_to_shortpath" 16292 16293 input_path="$input_to_shortpath" 16294 # Check if we need to convert this using DOS-style short mode. If the path 16295 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16296 # take no chances and rewrite it. 16297 # Note: m4 eats our [], so we need to use [ and ] instead. 16298 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16299 if test "x$has_forbidden_chars" != x; then 16300 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16301 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16302 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16303 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16304 # Going to short mode and back again did indeed matter. Since short mode is 16305 # case insensitive, let's make it lowercase to improve readability. 16306 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16307 # Now convert it back to Unix-style (cygpath) 16308 input_path=`$CYGPATH -u "$shortmode_path"` 16309 new_path="$input_path" 16310 fi 16311 fi 16312 16313 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16314 if test "x$test_cygdrive_prefix" = x; then 16315 # As a simple fix, exclude /usr/bin since it's not a real path. 16316 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16317 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16318 # a path prefixed by /cygdrive for fixpath to work. 16319 new_path="$CYGWIN_ROOT_PATH$input_path" 16320 fi 16321 fi 16322 16323 # remove trailing .exe if any 16324 new_path="${new_path/%.exe/}" 16325 16326 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16327 16328 # First separate the path from the arguments. This will split at the first 16329 # space. 16330 complete="$FOUND_MAKE" 16331 path="${complete%% *}" 16332 tmp="$complete EOL" 16333 arguments="${tmp#* }" 16334 16335 # Input might be given as Windows format, start by converting to 16336 # unix format. 16337 new_path="$path" 16338 16339 windows_path="$new_path" 16340 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16341 unix_path=`$CYGPATH -u "$windows_path"` 16342 new_path="$unix_path" 16343 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16344 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16345 new_path="$unix_path" 16346 fi 16347 16348 16349 # Now try to locate executable using which 16350 new_path=`$WHICH "$new_path" 2> /dev/null` 16351 16352 if test "x$new_path" = x; then 16353 # Oops. Which didn't find the executable. 16354 # The splitting of arguments from the executable at a space might have been incorrect, 16355 # since paths with space are more likely in Windows. Give it another try with the whole 16356 # argument. 16357 path="$complete" 16358 arguments="EOL" 16359 new_path="$path" 16360 16361 windows_path="$new_path" 16362 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16363 unix_path=`$CYGPATH -u "$windows_path"` 16364 new_path="$unix_path" 16365 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16366 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16367 new_path="$unix_path" 16368 fi 16369 16370 16371 new_path=`$WHICH "$new_path" 2> /dev/null` 16372 # bat and cmd files are not always considered executable in MSYS causing which 16373 # to not find them 16374 if test "x$new_path" = x \ 16375 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16376 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16377 new_path="$path" 16378 16379 windows_path="$new_path" 16380 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16381 unix_path=`$CYGPATH -u "$windows_path"` 16382 new_path="$unix_path" 16383 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16384 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16385 new_path="$unix_path" 16386 fi 16387 16388 fi 16389 16390 if test "x$new_path" = x; then 16391 # It's still not found. Now this is an unrecoverable error. 16392 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16393 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16394 has_space=`$ECHO "$complete" | $GREP " "` 16395 if test "x$has_space" != x; then 16396 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16397 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16398 fi 16399 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16400 fi 16401 fi 16402 16403 # Now new_path has a complete unix path to the binary 16404 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16405 # Keep paths in /bin as-is, but remove trailing .exe if any 16406 new_path="${new_path/%.exe/}" 16407 # Do not save /bin paths to all_fixpath_prefixes! 16408 else 16409 # Not in mixed or Windows style, start by that. 16410 new_path=`cmd //c echo $new_path` 16411 16412 input_path="$new_path" 16413 # Check if we need to convert this using DOS-style short mode. If the path 16414 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16415 # take no chances and rewrite it. 16416 # Note: m4 eats our [], so we need to use [ and ] instead. 16417 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16418 if test "x$has_forbidden_chars" != x; then 16419 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16420 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16421 fi 16422 16423 # Output is in $new_path 16424 16425 windows_path="$new_path" 16426 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16427 unix_path=`$CYGPATH -u "$windows_path"` 16428 new_path="$unix_path" 16429 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16430 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16431 new_path="$unix_path" 16432 fi 16433 16434 # remove trailing .exe if any 16435 new_path="${new_path/%.exe/}" 16436 16437 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16438 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16439 fi 16440 16441 else 16442 # We're on a posix platform. Hooray! :) 16443 # First separate the path from the arguments. This will split at the first 16444 # space. 16445 complete="$FOUND_MAKE" 16446 path="${complete%% *}" 16447 tmp="$complete EOL" 16448 arguments="${tmp#* }" 16449 16450 # Cannot rely on the command "which" here since it doesn't always work. 16451 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16452 if test -z "$is_absolute_path"; then 16453 # Path to executable is not absolute. Find it. 16454 IFS_save="$IFS" 16455 IFS=: 16456 for p in $PATH; do 16457 if test -f "$p/$path" && test -x "$p/$path"; then 16458 new_path="$p/$path" 16459 break 16460 fi 16461 done 16462 IFS="$IFS_save" 16463 else 16464 # This is an absolute path, we can use it without further modifications. 16465 new_path="$path" 16466 fi 16467 16468 if test "x$new_path" = x; then 16469 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16470 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16471 has_space=`$ECHO "$complete" | $GREP " "` 16472 if test "x$has_space" != x; then 16473 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16474 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16475 fi 16476 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16477 fi 16478 fi 16479 16480 # Now join together the path and the arguments once again 16481 if test "x$arguments" != xEOL; then 16482 new_complete="$new_path ${arguments% *}" 16483 else 16484 new_complete="$new_path" 16485 fi 16486 16487 if test "x$complete" != "x$new_complete"; then 16488 FOUND_MAKE="$new_complete" 16489 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16490 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16491 fi 16492 16493 fi 16494 fi 16495 fi 16496 fi 16497 16498 fi 16499 16500 if test "x$FOUND_MAKE" = x; then 16501 if test "x$TOOLCHAIN_PATH" != x; then 16502 # We have a toolchain path, check that as well before giving up. 16503 OLD_PATH=$PATH 16504 PATH=$TOOLCHAIN_PATH:$PATH 16505 for ac_prog in gmake 16506 do 16507 # Extract the first word of "$ac_prog", so it can be a program name with args. 16508 set dummy $ac_prog; ac_word=$2 16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16510 $as_echo_n "checking for $ac_word... " >&6; } 16511 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 16512 $as_echo_n "(cached) " >&6 16513 else 16514 case $CHECK_TOOLSDIR_GMAKE in 16515 [\\/]* | ?:[\\/]*) 16516 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 16517 ;; 16518 *) 16519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16520 for as_dir in $PATH 16521 do 16522 IFS=$as_save_IFS 16523 test -z "$as_dir" && as_dir=. 16524 for ac_exec_ext in '' $ac_executable_extensions; do 16525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16526 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 16527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16528 break 2 16529 fi 16530 done 16531 done 16532 IFS=$as_save_IFS 16533 16534 ;; 16535 esac 16536 fi 16537 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 16538 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 16540 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 16541 else 16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16543 $as_echo "no" >&6; } 16544 fi 16545 16546 16547 test -n "$CHECK_TOOLSDIR_GMAKE" && break 16548 done 16549 16550 16551 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 16552 DESCRIPTION="gmake in tools-dir" 16553 if test "x$MAKE_CANDIDATE" != x; then 16554 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16555 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16556 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16557 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16558 if test "x$IS_GNU_MAKE" = x; then 16559 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16560 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16561 else 16562 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16563 if test "x$IS_MODERN_MAKE" = x; then 16564 { $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 16565 $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;} 16566 else 16567 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16568 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16569 MAKE_EXPECTED_ENV='cygwin' 16570 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16571 MAKE_EXPECTED_ENV='msys' 16572 else 16573 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16574 fi 16575 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16576 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16577 else 16578 # Not relevant for non-Windows 16579 IS_MAKE_CORRECT_ENV=true 16580 fi 16581 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16582 { $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 16583 $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;} 16584 else 16585 FOUND_MAKE=$MAKE_CANDIDATE 16586 16587 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16588 16589 # First separate the path from the arguments. This will split at the first 16590 # space. 16591 complete="$FOUND_MAKE" 16592 path="${complete%% *}" 16593 tmp="$complete EOL" 16594 arguments="${tmp#* }" 16595 16596 # Input might be given as Windows format, start by converting to 16597 # unix format. 16598 new_path=`$CYGPATH -u "$path"` 16599 16600 # Now try to locate executable using which 16601 new_path=`$WHICH "$new_path" 2> /dev/null` 16602 # bat and cmd files are not always considered executable in cygwin causing which 16603 # to not find them 16604 if test "x$new_path" = x \ 16605 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16606 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16607 new_path=`$CYGPATH -u "$path"` 16608 fi 16609 if test "x$new_path" = x; then 16610 # Oops. Which didn't find the executable. 16611 # The splitting of arguments from the executable at a space might have been incorrect, 16612 # since paths with space are more likely in Windows. Give it another try with the whole 16613 # argument. 16614 path="$complete" 16615 arguments="EOL" 16616 new_path=`$CYGPATH -u "$path"` 16617 new_path=`$WHICH "$new_path" 2> /dev/null` 16618 # bat and cmd files are not always considered executable in cygwin causing which 16619 # to not find them 16620 if test "x$new_path" = x \ 16621 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16622 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16623 new_path=`$CYGPATH -u "$path"` 16624 fi 16625 if test "x$new_path" = x; then 16626 # It's still not found. Now this is an unrecoverable error. 16627 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16628 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16629 has_space=`$ECHO "$complete" | $GREP " "` 16630 if test "x$has_space" != x; then 16631 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16632 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16633 fi 16634 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16635 fi 16636 fi 16637 16638 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16639 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16640 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16641 # "foo.exe" is OK but "foo" is an error. 16642 # 16643 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16644 # It is also a way to make sure we got the proper file name for the real test later on. 16645 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16646 if test "x$test_shortpath" = x; then 16647 # Short path failed, file does not exist as specified. 16648 # Try adding .exe or .cmd 16649 if test -f "${new_path}.exe"; then 16650 input_to_shortpath="${new_path}.exe" 16651 elif test -f "${new_path}.cmd"; then 16652 input_to_shortpath="${new_path}.cmd" 16653 else 16654 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16655 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16656 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16657 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16658 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16659 fi 16660 else 16661 input_to_shortpath="$new_path" 16662 fi 16663 16664 # Call helper function which possibly converts this using DOS-style short mode. 16665 # If so, the updated path is stored in $new_path. 16666 new_path="$input_to_shortpath" 16667 16668 input_path="$input_to_shortpath" 16669 # Check if we need to convert this using DOS-style short mode. If the path 16670 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16671 # take no chances and rewrite it. 16672 # Note: m4 eats our [], so we need to use [ and ] instead. 16673 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16674 if test "x$has_forbidden_chars" != x; then 16675 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16676 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16677 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16678 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16679 # Going to short mode and back again did indeed matter. Since short mode is 16680 # case insensitive, let's make it lowercase to improve readability. 16681 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16682 # Now convert it back to Unix-style (cygpath) 16683 input_path=`$CYGPATH -u "$shortmode_path"` 16684 new_path="$input_path" 16685 fi 16686 fi 16687 16688 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16689 if test "x$test_cygdrive_prefix" = x; then 16690 # As a simple fix, exclude /usr/bin since it's not a real path. 16691 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16692 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16693 # a path prefixed by /cygdrive for fixpath to work. 16694 new_path="$CYGWIN_ROOT_PATH$input_path" 16695 fi 16696 fi 16697 16698 # remove trailing .exe if any 16699 new_path="${new_path/%.exe/}" 16700 16701 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16702 16703 # First separate the path from the arguments. This will split at the first 16704 # space. 16705 complete="$FOUND_MAKE" 16706 path="${complete%% *}" 16707 tmp="$complete EOL" 16708 arguments="${tmp#* }" 16709 16710 # Input might be given as Windows format, start by converting to 16711 # unix format. 16712 new_path="$path" 16713 16714 windows_path="$new_path" 16715 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16716 unix_path=`$CYGPATH -u "$windows_path"` 16717 new_path="$unix_path" 16718 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16719 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16720 new_path="$unix_path" 16721 fi 16722 16723 16724 # Now try to locate executable using which 16725 new_path=`$WHICH "$new_path" 2> /dev/null` 16726 16727 if test "x$new_path" = x; then 16728 # Oops. Which didn't find the executable. 16729 # The splitting of arguments from the executable at a space might have been incorrect, 16730 # since paths with space are more likely in Windows. Give it another try with the whole 16731 # argument. 16732 path="$complete" 16733 arguments="EOL" 16734 new_path="$path" 16735 16736 windows_path="$new_path" 16737 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16738 unix_path=`$CYGPATH -u "$windows_path"` 16739 new_path="$unix_path" 16740 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16741 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16742 new_path="$unix_path" 16743 fi 16744 16745 16746 new_path=`$WHICH "$new_path" 2> /dev/null` 16747 # bat and cmd files are not always considered executable in MSYS causing which 16748 # to not find them 16749 if test "x$new_path" = x \ 16750 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16751 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16752 new_path="$path" 16753 16754 windows_path="$new_path" 16755 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16756 unix_path=`$CYGPATH -u "$windows_path"` 16757 new_path="$unix_path" 16758 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16759 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16760 new_path="$unix_path" 16761 fi 16762 16763 fi 16764 16765 if test "x$new_path" = x; then 16766 # It's still not found. Now this is an unrecoverable error. 16767 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16768 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16769 has_space=`$ECHO "$complete" | $GREP " "` 16770 if test "x$has_space" != x; then 16771 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16772 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16773 fi 16774 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16775 fi 16776 fi 16777 16778 # Now new_path has a complete unix path to the binary 16779 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16780 # Keep paths in /bin as-is, but remove trailing .exe if any 16781 new_path="${new_path/%.exe/}" 16782 # Do not save /bin paths to all_fixpath_prefixes! 16783 else 16784 # Not in mixed or Windows style, start by that. 16785 new_path=`cmd //c echo $new_path` 16786 16787 input_path="$new_path" 16788 # Check if we need to convert this using DOS-style short mode. If the path 16789 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16790 # take no chances and rewrite it. 16791 # Note: m4 eats our [], so we need to use [ and ] instead. 16792 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16793 if test "x$has_forbidden_chars" != x; then 16794 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16795 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16796 fi 16797 16798 # Output is in $new_path 16799 16800 windows_path="$new_path" 16801 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16802 unix_path=`$CYGPATH -u "$windows_path"` 16803 new_path="$unix_path" 16804 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16805 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16806 new_path="$unix_path" 16807 fi 16808 16809 # remove trailing .exe if any 16810 new_path="${new_path/%.exe/}" 16811 16812 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16813 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16814 fi 16815 16816 else 16817 # We're on a posix platform. Hooray! :) 16818 # First separate the path from the arguments. This will split at the first 16819 # space. 16820 complete="$FOUND_MAKE" 16821 path="${complete%% *}" 16822 tmp="$complete EOL" 16823 arguments="${tmp#* }" 16824 16825 # Cannot rely on the command "which" here since it doesn't always work. 16826 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16827 if test -z "$is_absolute_path"; then 16828 # Path to executable is not absolute. Find it. 16829 IFS_save="$IFS" 16830 IFS=: 16831 for p in $PATH; do 16832 if test -f "$p/$path" && test -x "$p/$path"; then 16833 new_path="$p/$path" 16834 break 16835 fi 16836 done 16837 IFS="$IFS_save" 16838 else 16839 # This is an absolute path, we can use it without further modifications. 16840 new_path="$path" 16841 fi 16842 16843 if test "x$new_path" = x; then 16844 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16845 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16846 has_space=`$ECHO "$complete" | $GREP " "` 16847 if test "x$has_space" != x; then 16848 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16849 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16850 fi 16851 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16852 fi 16853 fi 16854 16855 # Now join together the path and the arguments once again 16856 if test "x$arguments" != xEOL; then 16857 new_complete="$new_path ${arguments% *}" 16858 else 16859 new_complete="$new_path" 16860 fi 16861 16862 if test "x$complete" != "x$new_complete"; then 16863 FOUND_MAKE="$new_complete" 16864 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16865 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16866 fi 16867 16868 fi 16869 fi 16870 fi 16871 fi 16872 16873 if test "x$FOUND_MAKE" = x; then 16874 for ac_prog in make 16875 do 16876 # Extract the first word of "$ac_prog", so it can be a program name with args. 16877 set dummy $ac_prog; ac_word=$2 16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16879 $as_echo_n "checking for $ac_word... " >&6; } 16880 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 16881 $as_echo_n "(cached) " >&6 16882 else 16883 case $CHECK_TOOLSDIR_MAKE in 16884 [\\/]* | ?:[\\/]*) 16885 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 16886 ;; 16887 *) 16888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16889 for as_dir in $PATH 16890 do 16891 IFS=$as_save_IFS 16892 test -z "$as_dir" && as_dir=. 16893 for ac_exec_ext in '' $ac_executable_extensions; do 16894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16895 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 16896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16897 break 2 16898 fi 16899 done 16900 done 16901 IFS=$as_save_IFS 16902 16903 ;; 16904 esac 16905 fi 16906 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 16907 if test -n "$CHECK_TOOLSDIR_MAKE"; then 16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 16909 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 16910 else 16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16912 $as_echo "no" >&6; } 16913 fi 16914 16915 16916 test -n "$CHECK_TOOLSDIR_MAKE" && break 16917 done 16918 16919 16920 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 16921 DESCRIPTION="make in tools-dir" 16922 if test "x$MAKE_CANDIDATE" != x; then 16923 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16924 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16925 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16926 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16927 if test "x$IS_GNU_MAKE" = x; then 16928 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16929 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16930 else 16931 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16932 if test "x$IS_MODERN_MAKE" = x; then 16933 { $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 16934 $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;} 16935 else 16936 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16937 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16938 MAKE_EXPECTED_ENV='cygwin' 16939 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16940 MAKE_EXPECTED_ENV='msys' 16941 else 16942 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16943 fi 16944 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16945 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16946 else 16947 # Not relevant for non-Windows 16948 IS_MAKE_CORRECT_ENV=true 16949 fi 16950 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16951 { $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 16952 $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;} 16953 else 16954 FOUND_MAKE=$MAKE_CANDIDATE 16955 16956 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16957 16958 # First separate the path from the arguments. This will split at the first 16959 # space. 16960 complete="$FOUND_MAKE" 16961 path="${complete%% *}" 16962 tmp="$complete EOL" 16963 arguments="${tmp#* }" 16964 16965 # Input might be given as Windows format, start by converting to 16966 # unix format. 16967 new_path=`$CYGPATH -u "$path"` 16968 16969 # Now try to locate executable using which 16970 new_path=`$WHICH "$new_path" 2> /dev/null` 16971 # bat and cmd files are not always considered executable in cygwin causing which 16972 # to not find them 16973 if test "x$new_path" = x \ 16974 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16975 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16976 new_path=`$CYGPATH -u "$path"` 16977 fi 16978 if test "x$new_path" = x; then 16979 # Oops. Which didn't find the executable. 16980 # The splitting of arguments from the executable at a space might have been incorrect, 16981 # since paths with space are more likely in Windows. Give it another try with the whole 16982 # argument. 16983 path="$complete" 16984 arguments="EOL" 16985 new_path=`$CYGPATH -u "$path"` 16986 new_path=`$WHICH "$new_path" 2> /dev/null` 16987 # bat and cmd files are not always considered executable in cygwin causing which 16988 # to not find them 16989 if test "x$new_path" = x \ 16990 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16991 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16992 new_path=`$CYGPATH -u "$path"` 16993 fi 16994 if test "x$new_path" = x; then 16995 # It's still not found. Now this is an unrecoverable error. 16996 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16997 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16998 has_space=`$ECHO "$complete" | $GREP " "` 16999 if test "x$has_space" != x; then 17000 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17001 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17002 fi 17003 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17004 fi 17005 fi 17006 17007 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17008 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17009 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17010 # "foo.exe" is OK but "foo" is an error. 17011 # 17012 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17013 # It is also a way to make sure we got the proper file name for the real test later on. 17014 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17015 if test "x$test_shortpath" = x; then 17016 # Short path failed, file does not exist as specified. 17017 # Try adding .exe or .cmd 17018 if test -f "${new_path}.exe"; then 17019 input_to_shortpath="${new_path}.exe" 17020 elif test -f "${new_path}.cmd"; then 17021 input_to_shortpath="${new_path}.cmd" 17022 else 17023 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17024 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17025 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17026 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17027 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17028 fi 17029 else 17030 input_to_shortpath="$new_path" 17031 fi 17032 17033 # Call helper function which possibly converts this using DOS-style short mode. 17034 # If so, the updated path is stored in $new_path. 17035 new_path="$input_to_shortpath" 17036 17037 input_path="$input_to_shortpath" 17038 # Check if we need to convert this using DOS-style short mode. If the path 17039 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17040 # take no chances and rewrite it. 17041 # Note: m4 eats our [], so we need to use [ and ] instead. 17042 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17043 if test "x$has_forbidden_chars" != x; then 17044 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17045 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17046 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17047 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17048 # Going to short mode and back again did indeed matter. Since short mode is 17049 # case insensitive, let's make it lowercase to improve readability. 17050 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17051 # Now convert it back to Unix-style (cygpath) 17052 input_path=`$CYGPATH -u "$shortmode_path"` 17053 new_path="$input_path" 17054 fi 17055 fi 17056 17057 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17058 if test "x$test_cygdrive_prefix" = x; then 17059 # As a simple fix, exclude /usr/bin since it's not a real path. 17060 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17061 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17062 # a path prefixed by /cygdrive for fixpath to work. 17063 new_path="$CYGWIN_ROOT_PATH$input_path" 17064 fi 17065 fi 17066 17067 # remove trailing .exe if any 17068 new_path="${new_path/%.exe/}" 17069 17070 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17071 17072 # First separate the path from the arguments. This will split at the first 17073 # space. 17074 complete="$FOUND_MAKE" 17075 path="${complete%% *}" 17076 tmp="$complete EOL" 17077 arguments="${tmp#* }" 17078 17079 # Input might be given as Windows format, start by converting to 17080 # unix format. 17081 new_path="$path" 17082 17083 windows_path="$new_path" 17084 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17085 unix_path=`$CYGPATH -u "$windows_path"` 17086 new_path="$unix_path" 17087 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17088 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17089 new_path="$unix_path" 17090 fi 17091 17092 17093 # Now try to locate executable using which 17094 new_path=`$WHICH "$new_path" 2> /dev/null` 17095 17096 if test "x$new_path" = x; then 17097 # Oops. Which didn't find the executable. 17098 # The splitting of arguments from the executable at a space might have been incorrect, 17099 # since paths with space are more likely in Windows. Give it another try with the whole 17100 # argument. 17101 path="$complete" 17102 arguments="EOL" 17103 new_path="$path" 17104 17105 windows_path="$new_path" 17106 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17107 unix_path=`$CYGPATH -u "$windows_path"` 17108 new_path="$unix_path" 17109 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17110 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17111 new_path="$unix_path" 17112 fi 17113 17114 17115 new_path=`$WHICH "$new_path" 2> /dev/null` 17116 # bat and cmd files are not always considered executable in MSYS causing which 17117 # to not find them 17118 if test "x$new_path" = x \ 17119 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17120 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17121 new_path="$path" 17122 17123 windows_path="$new_path" 17124 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17125 unix_path=`$CYGPATH -u "$windows_path"` 17126 new_path="$unix_path" 17127 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17128 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17129 new_path="$unix_path" 17130 fi 17131 17132 fi 17133 17134 if test "x$new_path" = x; then 17135 # It's still not found. Now this is an unrecoverable error. 17136 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17137 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17138 has_space=`$ECHO "$complete" | $GREP " "` 17139 if test "x$has_space" != x; then 17140 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17141 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17142 fi 17143 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17144 fi 17145 fi 17146 17147 # Now new_path has a complete unix path to the binary 17148 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17149 # Keep paths in /bin as-is, but remove trailing .exe if any 17150 new_path="${new_path/%.exe/}" 17151 # Do not save /bin paths to all_fixpath_prefixes! 17152 else 17153 # Not in mixed or Windows style, start by that. 17154 new_path=`cmd //c echo $new_path` 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 # Output is in $new_path 17168 17169 windows_path="$new_path" 17170 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17171 unix_path=`$CYGPATH -u "$windows_path"` 17172 new_path="$unix_path" 17173 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17174 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17175 new_path="$unix_path" 17176 fi 17177 17178 # remove trailing .exe if any 17179 new_path="${new_path/%.exe/}" 17180 17181 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17182 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17183 fi 17184 17185 else 17186 # We're on a posix platform. Hooray! :) 17187 # First separate the path from the arguments. This will split at the first 17188 # space. 17189 complete="$FOUND_MAKE" 17190 path="${complete%% *}" 17191 tmp="$complete EOL" 17192 arguments="${tmp#* }" 17193 17194 # Cannot rely on the command "which" here since it doesn't always work. 17195 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17196 if test -z "$is_absolute_path"; then 17197 # Path to executable is not absolute. Find it. 17198 IFS_save="$IFS" 17199 IFS=: 17200 for p in $PATH; do 17201 if test -f "$p/$path" && test -x "$p/$path"; then 17202 new_path="$p/$path" 17203 break 17204 fi 17205 done 17206 IFS="$IFS_save" 17207 else 17208 # This is an absolute path, we can use it without further modifications. 17209 new_path="$path" 17210 fi 17211 17212 if test "x$new_path" = x; then 17213 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17214 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17215 has_space=`$ECHO "$complete" | $GREP " "` 17216 if test "x$has_space" != x; then 17217 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17218 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17219 fi 17220 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17221 fi 17222 fi 17223 17224 # Now join together the path and the arguments once again 17225 if test "x$arguments" != xEOL; then 17226 new_complete="$new_path ${arguments% *}" 17227 else 17228 new_complete="$new_path" 17229 fi 17230 17231 if test "x$complete" != "x$new_complete"; then 17232 FOUND_MAKE="$new_complete" 17233 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17234 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17235 fi 17236 17237 fi 17238 fi 17239 fi 17240 fi 17241 17242 fi 17243 PATH=$OLD_PATH 17244 fi 17245 fi 17246 17247 if test "x$FOUND_MAKE" = x; then 17248 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 17249 fi 17250 fi 17251 17252 MAKE=$FOUND_MAKE 17253 17254 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 17255 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 17256 17257 17258 17259 # Test if find supports -delete 17260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 17261 $as_echo_n "checking if find supports -delete... " >&6; } 17262 FIND_DELETE="-delete" 17263 17264 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 17265 17266 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 17267 17268 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 17269 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 17270 # No, it does not. 17271 rm $DELETEDIR/TestIfFindSupportsDelete 17272 FIND_DELETE="-exec rm \{\} \+" 17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17274 $as_echo "no" >&6; } 17275 else 17276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17277 $as_echo "yes" >&6; } 17278 fi 17279 rmdir $DELETEDIR 17280 17281 17282 17283 # These tools might not be installed by default, 17284 # need hint on how to install them. 17285 17286 17287 17288 # Publish this variable in the help. 17289 17290 17291 if test "x$UNZIP" = x; then 17292 # The variable is not set by user, try to locate tool using the code snippet 17293 for ac_prog in unzip 17294 do 17295 # Extract the first word of "$ac_prog", so it can be a program name with args. 17296 set dummy $ac_prog; ac_word=$2 17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17298 $as_echo_n "checking for $ac_word... " >&6; } 17299 if ${ac_cv_path_UNZIP+:} false; then : 17300 $as_echo_n "(cached) " >&6 17301 else 17302 case $UNZIP in 17303 [\\/]* | ?:[\\/]*) 17304 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17305 ;; 17306 *) 17307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17308 for as_dir in $PATH 17309 do 17310 IFS=$as_save_IFS 17311 test -z "$as_dir" && as_dir=. 17312 for ac_exec_ext in '' $ac_executable_extensions; do 17313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17314 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17316 break 2 17317 fi 17318 done 17319 done 17320 IFS=$as_save_IFS 17321 17322 ;; 17323 esac 17324 fi 17325 UNZIP=$ac_cv_path_UNZIP 17326 if test -n "$UNZIP"; then 17327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17328 $as_echo "$UNZIP" >&6; } 17329 else 17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17331 $as_echo "no" >&6; } 17332 fi 17333 17334 17335 test -n "$UNZIP" && break 17336 done 17337 17338 else 17339 # The variable is set, but is it from the command line or the environment? 17340 17341 # Try to remove the string !UNZIP! from our list. 17342 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 17343 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17344 # If it failed, the variable was not from the command line. Ignore it, 17345 # but warn the user (except for BASH, which is always set by the calling BASH). 17346 if test "xUNZIP" != xBASH; then 17347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 17348 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 17349 fi 17350 # Try to locate tool using the code snippet 17351 for ac_prog in unzip 17352 do 17353 # Extract the first word of "$ac_prog", so it can be a program name with args. 17354 set dummy $ac_prog; ac_word=$2 17355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17356 $as_echo_n "checking for $ac_word... " >&6; } 17357 if ${ac_cv_path_UNZIP+:} false; then : 17358 $as_echo_n "(cached) " >&6 17359 else 17360 case $UNZIP in 17361 [\\/]* | ?:[\\/]*) 17362 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17363 ;; 17364 *) 17365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17366 for as_dir in $PATH 17367 do 17368 IFS=$as_save_IFS 17369 test -z "$as_dir" && as_dir=. 17370 for ac_exec_ext in '' $ac_executable_extensions; do 17371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17372 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17374 break 2 17375 fi 17376 done 17377 done 17378 IFS=$as_save_IFS 17379 17380 ;; 17381 esac 17382 fi 17383 UNZIP=$ac_cv_path_UNZIP 17384 if test -n "$UNZIP"; then 17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17386 $as_echo "$UNZIP" >&6; } 17387 else 17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17389 $as_echo "no" >&6; } 17390 fi 17391 17392 17393 test -n "$UNZIP" && break 17394 done 17395 17396 else 17397 # If it succeeded, then it was overridden by the user. We will use it 17398 # for the tool. 17399 17400 # First remove it from the list of overridden variables, so we can test 17401 # for unknown variables in the end. 17402 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17403 17404 # Check if the provided tool contains a complete path. 17405 tool_specified="$UNZIP" 17406 tool_basename="${tool_specified##*/}" 17407 if test "x$tool_basename" = "x$tool_specified"; then 17408 # A command without a complete path is provided, search $PATH. 17409 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 17410 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 17411 # Extract the first word of "$tool_basename", so it can be a program name with args. 17412 set dummy $tool_basename; ac_word=$2 17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17414 $as_echo_n "checking for $ac_word... " >&6; } 17415 if ${ac_cv_path_UNZIP+:} false; then : 17416 $as_echo_n "(cached) " >&6 17417 else 17418 case $UNZIP in 17419 [\\/]* | ?:[\\/]*) 17420 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17421 ;; 17422 *) 17423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17424 for as_dir in $PATH 17425 do 17426 IFS=$as_save_IFS 17427 test -z "$as_dir" && as_dir=. 17428 for ac_exec_ext in '' $ac_executable_extensions; do 17429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17430 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17432 break 2 17433 fi 17434 done 17435 done 17436 IFS=$as_save_IFS 17437 17438 ;; 17439 esac 17440 fi 17441 UNZIP=$ac_cv_path_UNZIP 17442 if test -n "$UNZIP"; then 17443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17444 $as_echo "$UNZIP" >&6; } 17445 else 17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17447 $as_echo "no" >&6; } 17448 fi 17449 17450 17451 if test "x$UNZIP" = x; then 17452 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17453 fi 17454 else 17455 # Otherwise we believe it is a complete path. Use it as it is. 17456 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 17457 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 17458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 17459 $as_echo_n "checking for UNZIP... " >&6; } 17460 if test ! -x "$tool_specified"; then 17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17462 $as_echo "not found" >&6; } 17463 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17464 fi 17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17466 $as_echo "$tool_specified" >&6; } 17467 fi 17468 fi 17469 fi 17470 17471 17472 17473 if test "x$UNZIP" = x; then 17474 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 17475 fi 17476 17477 17478 17479 17480 17481 # Publish this variable in the help. 17482 17483 17484 if test "x$ZIP" = x; then 17485 # The variable is not set by user, try to locate tool using the code snippet 17486 for ac_prog in zip 17487 do 17488 # Extract the first word of "$ac_prog", so it can be a program name with args. 17489 set dummy $ac_prog; ac_word=$2 17490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17491 $as_echo_n "checking for $ac_word... " >&6; } 17492 if ${ac_cv_path_ZIP+:} false; then : 17493 $as_echo_n "(cached) " >&6 17494 else 17495 case $ZIP in 17496 [\\/]* | ?:[\\/]*) 17497 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17498 ;; 17499 *) 17500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17501 for as_dir in $PATH 17502 do 17503 IFS=$as_save_IFS 17504 test -z "$as_dir" && as_dir=. 17505 for ac_exec_ext in '' $ac_executable_extensions; do 17506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17507 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17509 break 2 17510 fi 17511 done 17512 done 17513 IFS=$as_save_IFS 17514 17515 ;; 17516 esac 17517 fi 17518 ZIP=$ac_cv_path_ZIP 17519 if test -n "$ZIP"; then 17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17521 $as_echo "$ZIP" >&6; } 17522 else 17523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17524 $as_echo "no" >&6; } 17525 fi 17526 17527 17528 test -n "$ZIP" && break 17529 done 17530 17531 else 17532 # The variable is set, but is it from the command line or the environment? 17533 17534 # Try to remove the string !ZIP! from our list. 17535 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 17536 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17537 # If it failed, the variable was not from the command line. Ignore it, 17538 # but warn the user (except for BASH, which is always set by the calling BASH). 17539 if test "xZIP" != xBASH; then 17540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 17541 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 17542 fi 17543 # Try to locate tool using the code snippet 17544 for ac_prog in zip 17545 do 17546 # Extract the first word of "$ac_prog", so it can be a program name with args. 17547 set dummy $ac_prog; ac_word=$2 17548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17549 $as_echo_n "checking for $ac_word... " >&6; } 17550 if ${ac_cv_path_ZIP+:} false; then : 17551 $as_echo_n "(cached) " >&6 17552 else 17553 case $ZIP in 17554 [\\/]* | ?:[\\/]*) 17555 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17556 ;; 17557 *) 17558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17559 for as_dir in $PATH 17560 do 17561 IFS=$as_save_IFS 17562 test -z "$as_dir" && as_dir=. 17563 for ac_exec_ext in '' $ac_executable_extensions; do 17564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17565 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17567 break 2 17568 fi 17569 done 17570 done 17571 IFS=$as_save_IFS 17572 17573 ;; 17574 esac 17575 fi 17576 ZIP=$ac_cv_path_ZIP 17577 if test -n "$ZIP"; then 17578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17579 $as_echo "$ZIP" >&6; } 17580 else 17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17582 $as_echo "no" >&6; } 17583 fi 17584 17585 17586 test -n "$ZIP" && break 17587 done 17588 17589 else 17590 # If it succeeded, then it was overridden by the user. We will use it 17591 # for the tool. 17592 17593 # First remove it from the list of overridden variables, so we can test 17594 # for unknown variables in the end. 17595 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17596 17597 # Check if the provided tool contains a complete path. 17598 tool_specified="$ZIP" 17599 tool_basename="${tool_specified##*/}" 17600 if test "x$tool_basename" = "x$tool_specified"; then 17601 # A command without a complete path is provided, search $PATH. 17602 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 17603 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 17604 # Extract the first word of "$tool_basename", so it can be a program name with args. 17605 set dummy $tool_basename; ac_word=$2 17606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17607 $as_echo_n "checking for $ac_word... " >&6; } 17608 if ${ac_cv_path_ZIP+:} false; then : 17609 $as_echo_n "(cached) " >&6 17610 else 17611 case $ZIP in 17612 [\\/]* | ?:[\\/]*) 17613 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17614 ;; 17615 *) 17616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17617 for as_dir in $PATH 17618 do 17619 IFS=$as_save_IFS 17620 test -z "$as_dir" && as_dir=. 17621 for ac_exec_ext in '' $ac_executable_extensions; do 17622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17623 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17625 break 2 17626 fi 17627 done 17628 done 17629 IFS=$as_save_IFS 17630 17631 ;; 17632 esac 17633 fi 17634 ZIP=$ac_cv_path_ZIP 17635 if test -n "$ZIP"; then 17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17637 $as_echo "$ZIP" >&6; } 17638 else 17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17640 $as_echo "no" >&6; } 17641 fi 17642 17643 17644 if test "x$ZIP" = x; then 17645 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17646 fi 17647 else 17648 # Otherwise we believe it is a complete path. Use it as it is. 17649 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 17650 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 17651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 17652 $as_echo_n "checking for ZIP... " >&6; } 17653 if test ! -x "$tool_specified"; then 17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17655 $as_echo "not found" >&6; } 17656 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17657 fi 17658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17659 $as_echo "$tool_specified" >&6; } 17660 fi 17661 fi 17662 fi 17663 17664 17665 17666 if test "x$ZIP" = x; then 17667 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 17668 fi 17669 17670 17671 17672 # Non-required basic tools 17673 17674 17675 17676 # Publish this variable in the help. 17677 17678 17679 if test "x$LDD" = x; then 17680 # The variable is not set by user, try to locate tool using the code snippet 17681 for ac_prog in ldd 17682 do 17683 # Extract the first word of "$ac_prog", so it can be a program name with args. 17684 set dummy $ac_prog; ac_word=$2 17685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17686 $as_echo_n "checking for $ac_word... " >&6; } 17687 if ${ac_cv_path_LDD+:} false; then : 17688 $as_echo_n "(cached) " >&6 17689 else 17690 case $LDD in 17691 [\\/]* | ?:[\\/]*) 17692 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17693 ;; 17694 *) 17695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17696 for as_dir in $PATH 17697 do 17698 IFS=$as_save_IFS 17699 test -z "$as_dir" && as_dir=. 17700 for ac_exec_ext in '' $ac_executable_extensions; do 17701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17702 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17704 break 2 17705 fi 17706 done 17707 done 17708 IFS=$as_save_IFS 17709 17710 ;; 17711 esac 17712 fi 17713 LDD=$ac_cv_path_LDD 17714 if test -n "$LDD"; then 17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17716 $as_echo "$LDD" >&6; } 17717 else 17718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17719 $as_echo "no" >&6; } 17720 fi 17721 17722 17723 test -n "$LDD" && break 17724 done 17725 17726 else 17727 # The variable is set, but is it from the command line or the environment? 17728 17729 # Try to remove the string !LDD! from our list. 17730 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 17731 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17732 # If it failed, the variable was not from the command line. Ignore it, 17733 # but warn the user (except for BASH, which is always set by the calling BASH). 17734 if test "xLDD" != xBASH; then 17735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 17736 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 17737 fi 17738 # Try to locate tool using the code snippet 17739 for ac_prog in ldd 17740 do 17741 # Extract the first word of "$ac_prog", so it can be a program name with args. 17742 set dummy $ac_prog; ac_word=$2 17743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17744 $as_echo_n "checking for $ac_word... " >&6; } 17745 if ${ac_cv_path_LDD+:} false; then : 17746 $as_echo_n "(cached) " >&6 17747 else 17748 case $LDD in 17749 [\\/]* | ?:[\\/]*) 17750 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17751 ;; 17752 *) 17753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17754 for as_dir in $PATH 17755 do 17756 IFS=$as_save_IFS 17757 test -z "$as_dir" && as_dir=. 17758 for ac_exec_ext in '' $ac_executable_extensions; do 17759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17760 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17762 break 2 17763 fi 17764 done 17765 done 17766 IFS=$as_save_IFS 17767 17768 ;; 17769 esac 17770 fi 17771 LDD=$ac_cv_path_LDD 17772 if test -n "$LDD"; then 17773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17774 $as_echo "$LDD" >&6; } 17775 else 17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17777 $as_echo "no" >&6; } 17778 fi 17779 17780 17781 test -n "$LDD" && break 17782 done 17783 17784 else 17785 # If it succeeded, then it was overridden by the user. We will use it 17786 # for the tool. 17787 17788 # First remove it from the list of overridden variables, so we can test 17789 # for unknown variables in the end. 17790 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17791 17792 # Check if the provided tool contains a complete path. 17793 tool_specified="$LDD" 17794 tool_basename="${tool_specified##*/}" 17795 if test "x$tool_basename" = "x$tool_specified"; then 17796 # A command without a complete path is provided, search $PATH. 17797 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 17798 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 17799 # Extract the first word of "$tool_basename", so it can be a program name with args. 17800 set dummy $tool_basename; ac_word=$2 17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17802 $as_echo_n "checking for $ac_word... " >&6; } 17803 if ${ac_cv_path_LDD+:} false; then : 17804 $as_echo_n "(cached) " >&6 17805 else 17806 case $LDD in 17807 [\\/]* | ?:[\\/]*) 17808 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17809 ;; 17810 *) 17811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17812 for as_dir in $PATH 17813 do 17814 IFS=$as_save_IFS 17815 test -z "$as_dir" && as_dir=. 17816 for ac_exec_ext in '' $ac_executable_extensions; do 17817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17818 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17820 break 2 17821 fi 17822 done 17823 done 17824 IFS=$as_save_IFS 17825 17826 ;; 17827 esac 17828 fi 17829 LDD=$ac_cv_path_LDD 17830 if test -n "$LDD"; then 17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17832 $as_echo "$LDD" >&6; } 17833 else 17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17835 $as_echo "no" >&6; } 17836 fi 17837 17838 17839 if test "x$LDD" = x; then 17840 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17841 fi 17842 else 17843 # Otherwise we believe it is a complete path. Use it as it is. 17844 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 17845 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 17846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 17847 $as_echo_n "checking for LDD... " >&6; } 17848 if test ! -x "$tool_specified"; then 17849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17850 $as_echo "not found" >&6; } 17851 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 17852 fi 17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17854 $as_echo "$tool_specified" >&6; } 17855 fi 17856 fi 17857 fi 17858 17859 17860 if test "x$LDD" = "x"; then 17861 # List shared lib dependencies is used for 17862 # debug output and checking for forbidden dependencies. 17863 # We can build without it. 17864 LDD="true" 17865 fi 17866 17867 17868 # Publish this variable in the help. 17869 17870 17871 if test "x$READELF" = x; then 17872 # The variable is not set by user, try to locate tool using the code snippet 17873 for ac_prog in readelf greadelf 17874 do 17875 # Extract the first word of "$ac_prog", so it can be a program name with args. 17876 set dummy $ac_prog; ac_word=$2 17877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17878 $as_echo_n "checking for $ac_word... " >&6; } 17879 if ${ac_cv_path_READELF+:} false; then : 17880 $as_echo_n "(cached) " >&6 17881 else 17882 case $READELF in 17883 [\\/]* | ?:[\\/]*) 17884 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17885 ;; 17886 *) 17887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17888 for as_dir in $PATH 17889 do 17890 IFS=$as_save_IFS 17891 test -z "$as_dir" && as_dir=. 17892 for ac_exec_ext in '' $ac_executable_extensions; do 17893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17894 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17896 break 2 17897 fi 17898 done 17899 done 17900 IFS=$as_save_IFS 17901 17902 ;; 17903 esac 17904 fi 17905 READELF=$ac_cv_path_READELF 17906 if test -n "$READELF"; then 17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17908 $as_echo "$READELF" >&6; } 17909 else 17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17911 $as_echo "no" >&6; } 17912 fi 17913 17914 17915 test -n "$READELF" && break 17916 done 17917 17918 else 17919 # The variable is set, but is it from the command line or the environment? 17920 17921 # Try to remove the string !READELF! from our list. 17922 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 17923 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17924 # If it failed, the variable was not from the command line. Ignore it, 17925 # but warn the user (except for BASH, which is always set by the calling BASH). 17926 if test "xREADELF" != xBASH; then 17927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 17928 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 17929 fi 17930 # Try to locate tool using the code snippet 17931 for ac_prog in readelf greadelf 17932 do 17933 # Extract the first word of "$ac_prog", so it can be a program name with args. 17934 set dummy $ac_prog; ac_word=$2 17935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17936 $as_echo_n "checking for $ac_word... " >&6; } 17937 if ${ac_cv_path_READELF+:} false; then : 17938 $as_echo_n "(cached) " >&6 17939 else 17940 case $READELF in 17941 [\\/]* | ?:[\\/]*) 17942 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17943 ;; 17944 *) 17945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17946 for as_dir in $PATH 17947 do 17948 IFS=$as_save_IFS 17949 test -z "$as_dir" && as_dir=. 17950 for ac_exec_ext in '' $ac_executable_extensions; do 17951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17952 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17954 break 2 17955 fi 17956 done 17957 done 17958 IFS=$as_save_IFS 17959 17960 ;; 17961 esac 17962 fi 17963 READELF=$ac_cv_path_READELF 17964 if test -n "$READELF"; then 17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17966 $as_echo "$READELF" >&6; } 17967 else 17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17969 $as_echo "no" >&6; } 17970 fi 17971 17972 17973 test -n "$READELF" && break 17974 done 17975 17976 else 17977 # If it succeeded, then it was overridden by the user. We will use it 17978 # for the tool. 17979 17980 # First remove it from the list of overridden variables, so we can test 17981 # for unknown variables in the end. 17982 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17983 17984 # Check if the provided tool contains a complete path. 17985 tool_specified="$READELF" 17986 tool_basename="${tool_specified##*/}" 17987 if test "x$tool_basename" = "x$tool_specified"; then 17988 # A command without a complete path is provided, search $PATH. 17989 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 17990 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 17991 # Extract the first word of "$tool_basename", so it can be a program name with args. 17992 set dummy $tool_basename; ac_word=$2 17993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17994 $as_echo_n "checking for $ac_word... " >&6; } 17995 if ${ac_cv_path_READELF+:} false; then : 17996 $as_echo_n "(cached) " >&6 17997 else 17998 case $READELF in 17999 [\\/]* | ?:[\\/]*) 18000 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18001 ;; 18002 *) 18003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18004 for as_dir in $PATH 18005 do 18006 IFS=$as_save_IFS 18007 test -z "$as_dir" && as_dir=. 18008 for ac_exec_ext in '' $ac_executable_extensions; do 18009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18010 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18012 break 2 18013 fi 18014 done 18015 done 18016 IFS=$as_save_IFS 18017 18018 ;; 18019 esac 18020 fi 18021 READELF=$ac_cv_path_READELF 18022 if test -n "$READELF"; then 18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18024 $as_echo "$READELF" >&6; } 18025 else 18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18027 $as_echo "no" >&6; } 18028 fi 18029 18030 18031 if test "x$READELF" = x; then 18032 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18033 fi 18034 else 18035 # Otherwise we believe it is a complete path. Use it as it is. 18036 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 18037 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 18038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 18039 $as_echo_n "checking for READELF... " >&6; } 18040 if test ! -x "$tool_specified"; then 18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18042 $as_echo "not found" >&6; } 18043 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 18044 fi 18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18046 $as_echo "$tool_specified" >&6; } 18047 fi 18048 fi 18049 fi 18050 18051 18052 18053 18054 # Publish this variable in the help. 18055 18056 18057 if test "x$HG" = x; then 18058 # The variable is not set by user, try to locate tool using the code snippet 18059 for ac_prog in hg 18060 do 18061 # Extract the first word of "$ac_prog", so it can be a program name with args. 18062 set dummy $ac_prog; ac_word=$2 18063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18064 $as_echo_n "checking for $ac_word... " >&6; } 18065 if ${ac_cv_path_HG+:} false; then : 18066 $as_echo_n "(cached) " >&6 18067 else 18068 case $HG in 18069 [\\/]* | ?:[\\/]*) 18070 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18071 ;; 18072 *) 18073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18074 for as_dir in $PATH 18075 do 18076 IFS=$as_save_IFS 18077 test -z "$as_dir" && as_dir=. 18078 for ac_exec_ext in '' $ac_executable_extensions; do 18079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18080 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18082 break 2 18083 fi 18084 done 18085 done 18086 IFS=$as_save_IFS 18087 18088 ;; 18089 esac 18090 fi 18091 HG=$ac_cv_path_HG 18092 if test -n "$HG"; then 18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18094 $as_echo "$HG" >&6; } 18095 else 18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18097 $as_echo "no" >&6; } 18098 fi 18099 18100 18101 test -n "$HG" && break 18102 done 18103 18104 else 18105 # The variable is set, but is it from the command line or the environment? 18106 18107 # Try to remove the string !HG! from our list. 18108 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 18109 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18110 # If it failed, the variable was not from the command line. Ignore it, 18111 # but warn the user (except for BASH, which is always set by the calling BASH). 18112 if test "xHG" != xBASH; then 18113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 18114 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 18115 fi 18116 # Try to locate tool using the code snippet 18117 for ac_prog in hg 18118 do 18119 # Extract the first word of "$ac_prog", so it can be a program name with args. 18120 set dummy $ac_prog; ac_word=$2 18121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18122 $as_echo_n "checking for $ac_word... " >&6; } 18123 if ${ac_cv_path_HG+:} false; then : 18124 $as_echo_n "(cached) " >&6 18125 else 18126 case $HG in 18127 [\\/]* | ?:[\\/]*) 18128 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18129 ;; 18130 *) 18131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18132 for as_dir in $PATH 18133 do 18134 IFS=$as_save_IFS 18135 test -z "$as_dir" && as_dir=. 18136 for ac_exec_ext in '' $ac_executable_extensions; do 18137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18138 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18140 break 2 18141 fi 18142 done 18143 done 18144 IFS=$as_save_IFS 18145 18146 ;; 18147 esac 18148 fi 18149 HG=$ac_cv_path_HG 18150 if test -n "$HG"; then 18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18152 $as_echo "$HG" >&6; } 18153 else 18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18155 $as_echo "no" >&6; } 18156 fi 18157 18158 18159 test -n "$HG" && break 18160 done 18161 18162 else 18163 # If it succeeded, then it was overridden by the user. We will use it 18164 # for the tool. 18165 18166 # First remove it from the list of overridden variables, so we can test 18167 # for unknown variables in the end. 18168 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18169 18170 # Check if the provided tool contains a complete path. 18171 tool_specified="$HG" 18172 tool_basename="${tool_specified##*/}" 18173 if test "x$tool_basename" = "x$tool_specified"; then 18174 # A command without a complete path is provided, search $PATH. 18175 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 18176 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 18177 # Extract the first word of "$tool_basename", so it can be a program name with args. 18178 set dummy $tool_basename; ac_word=$2 18179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18180 $as_echo_n "checking for $ac_word... " >&6; } 18181 if ${ac_cv_path_HG+:} false; then : 18182 $as_echo_n "(cached) " >&6 18183 else 18184 case $HG in 18185 [\\/]* | ?:[\\/]*) 18186 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18187 ;; 18188 *) 18189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18190 for as_dir in $PATH 18191 do 18192 IFS=$as_save_IFS 18193 test -z "$as_dir" && as_dir=. 18194 for ac_exec_ext in '' $ac_executable_extensions; do 18195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18196 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18198 break 2 18199 fi 18200 done 18201 done 18202 IFS=$as_save_IFS 18203 18204 ;; 18205 esac 18206 fi 18207 HG=$ac_cv_path_HG 18208 if test -n "$HG"; then 18209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18210 $as_echo "$HG" >&6; } 18211 else 18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18213 $as_echo "no" >&6; } 18214 fi 18215 18216 18217 if test "x$HG" = x; then 18218 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18219 fi 18220 else 18221 # Otherwise we believe it is a complete path. Use it as it is. 18222 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 18223 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 18225 $as_echo_n "checking for HG... " >&6; } 18226 if test ! -x "$tool_specified"; then 18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18228 $as_echo "not found" >&6; } 18229 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 18230 fi 18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18232 $as_echo "$tool_specified" >&6; } 18233 fi 18234 fi 18235 fi 18236 18237 18238 18239 18240 # Publish this variable in the help. 18241 18242 18243 if test "x$STAT" = x; then 18244 # The variable is not set by user, try to locate tool using the code snippet 18245 for ac_prog in stat 18246 do 18247 # Extract the first word of "$ac_prog", so it can be a program name with args. 18248 set dummy $ac_prog; ac_word=$2 18249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18250 $as_echo_n "checking for $ac_word... " >&6; } 18251 if ${ac_cv_path_STAT+:} false; then : 18252 $as_echo_n "(cached) " >&6 18253 else 18254 case $STAT in 18255 [\\/]* | ?:[\\/]*) 18256 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18257 ;; 18258 *) 18259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18260 for as_dir in $PATH 18261 do 18262 IFS=$as_save_IFS 18263 test -z "$as_dir" && as_dir=. 18264 for ac_exec_ext in '' $ac_executable_extensions; do 18265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18266 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18268 break 2 18269 fi 18270 done 18271 done 18272 IFS=$as_save_IFS 18273 18274 ;; 18275 esac 18276 fi 18277 STAT=$ac_cv_path_STAT 18278 if test -n "$STAT"; then 18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18280 $as_echo "$STAT" >&6; } 18281 else 18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18283 $as_echo "no" >&6; } 18284 fi 18285 18286 18287 test -n "$STAT" && break 18288 done 18289 18290 else 18291 # The variable is set, but is it from the command line or the environment? 18292 18293 # Try to remove the string !STAT! from our list. 18294 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 18295 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18296 # If it failed, the variable was not from the command line. Ignore it, 18297 # but warn the user (except for BASH, which is always set by the calling BASH). 18298 if test "xSTAT" != xBASH; then 18299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 18300 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 18301 fi 18302 # Try to locate tool using the code snippet 18303 for ac_prog in stat 18304 do 18305 # Extract the first word of "$ac_prog", so it can be a program name with args. 18306 set dummy $ac_prog; ac_word=$2 18307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18308 $as_echo_n "checking for $ac_word... " >&6; } 18309 if ${ac_cv_path_STAT+:} false; then : 18310 $as_echo_n "(cached) " >&6 18311 else 18312 case $STAT in 18313 [\\/]* | ?:[\\/]*) 18314 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18315 ;; 18316 *) 18317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18318 for as_dir in $PATH 18319 do 18320 IFS=$as_save_IFS 18321 test -z "$as_dir" && as_dir=. 18322 for ac_exec_ext in '' $ac_executable_extensions; do 18323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18324 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18326 break 2 18327 fi 18328 done 18329 done 18330 IFS=$as_save_IFS 18331 18332 ;; 18333 esac 18334 fi 18335 STAT=$ac_cv_path_STAT 18336 if test -n "$STAT"; then 18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18338 $as_echo "$STAT" >&6; } 18339 else 18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18341 $as_echo "no" >&6; } 18342 fi 18343 18344 18345 test -n "$STAT" && break 18346 done 18347 18348 else 18349 # If it succeeded, then it was overridden by the user. We will use it 18350 # for the tool. 18351 18352 # First remove it from the list of overridden variables, so we can test 18353 # for unknown variables in the end. 18354 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18355 18356 # Check if the provided tool contains a complete path. 18357 tool_specified="$STAT" 18358 tool_basename="${tool_specified##*/}" 18359 if test "x$tool_basename" = "x$tool_specified"; then 18360 # A command without a complete path is provided, search $PATH. 18361 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 18362 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 18363 # Extract the first word of "$tool_basename", so it can be a program name with args. 18364 set dummy $tool_basename; ac_word=$2 18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18366 $as_echo_n "checking for $ac_word... " >&6; } 18367 if ${ac_cv_path_STAT+:} false; then : 18368 $as_echo_n "(cached) " >&6 18369 else 18370 case $STAT in 18371 [\\/]* | ?:[\\/]*) 18372 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18373 ;; 18374 *) 18375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18376 for as_dir in $PATH 18377 do 18378 IFS=$as_save_IFS 18379 test -z "$as_dir" && as_dir=. 18380 for ac_exec_ext in '' $ac_executable_extensions; do 18381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18382 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18384 break 2 18385 fi 18386 done 18387 done 18388 IFS=$as_save_IFS 18389 18390 ;; 18391 esac 18392 fi 18393 STAT=$ac_cv_path_STAT 18394 if test -n "$STAT"; then 18395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18396 $as_echo "$STAT" >&6; } 18397 else 18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18399 $as_echo "no" >&6; } 18400 fi 18401 18402 18403 if test "x$STAT" = x; then 18404 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18405 fi 18406 else 18407 # Otherwise we believe it is a complete path. Use it as it is. 18408 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 18409 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 18410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 18411 $as_echo_n "checking for STAT... " >&6; } 18412 if test ! -x "$tool_specified"; then 18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18414 $as_echo "not found" >&6; } 18415 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 18416 fi 18417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18418 $as_echo "$tool_specified" >&6; } 18419 fi 18420 fi 18421 fi 18422 18423 18424 18425 18426 # Publish this variable in the help. 18427 18428 18429 if test "x$TIME" = x; then 18430 # The variable is not set by user, try to locate tool using the code snippet 18431 for ac_prog in time 18432 do 18433 # Extract the first word of "$ac_prog", so it can be a program name with args. 18434 set dummy $ac_prog; ac_word=$2 18435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18436 $as_echo_n "checking for $ac_word... " >&6; } 18437 if ${ac_cv_path_TIME+:} false; then : 18438 $as_echo_n "(cached) " >&6 18439 else 18440 case $TIME in 18441 [\\/]* | ?:[\\/]*) 18442 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18443 ;; 18444 *) 18445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18446 for as_dir in $PATH 18447 do 18448 IFS=$as_save_IFS 18449 test -z "$as_dir" && as_dir=. 18450 for ac_exec_ext in '' $ac_executable_extensions; do 18451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18452 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18454 break 2 18455 fi 18456 done 18457 done 18458 IFS=$as_save_IFS 18459 18460 ;; 18461 esac 18462 fi 18463 TIME=$ac_cv_path_TIME 18464 if test -n "$TIME"; then 18465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18466 $as_echo "$TIME" >&6; } 18467 else 18468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18469 $as_echo "no" >&6; } 18470 fi 18471 18472 18473 test -n "$TIME" && break 18474 done 18475 18476 else 18477 # The variable is set, but is it from the command line or the environment? 18478 18479 # Try to remove the string !TIME! from our list. 18480 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 18481 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18482 # If it failed, the variable was not from the command line. Ignore it, 18483 # but warn the user (except for BASH, which is always set by the calling BASH). 18484 if test "xTIME" != xBASH; then 18485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 18486 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 18487 fi 18488 # Try to locate tool using the code snippet 18489 for ac_prog in time 18490 do 18491 # Extract the first word of "$ac_prog", so it can be a program name with args. 18492 set dummy $ac_prog; ac_word=$2 18493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18494 $as_echo_n "checking for $ac_word... " >&6; } 18495 if ${ac_cv_path_TIME+:} false; then : 18496 $as_echo_n "(cached) " >&6 18497 else 18498 case $TIME in 18499 [\\/]* | ?:[\\/]*) 18500 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18501 ;; 18502 *) 18503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18504 for as_dir in $PATH 18505 do 18506 IFS=$as_save_IFS 18507 test -z "$as_dir" && as_dir=. 18508 for ac_exec_ext in '' $ac_executable_extensions; do 18509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18510 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18512 break 2 18513 fi 18514 done 18515 done 18516 IFS=$as_save_IFS 18517 18518 ;; 18519 esac 18520 fi 18521 TIME=$ac_cv_path_TIME 18522 if test -n "$TIME"; then 18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18524 $as_echo "$TIME" >&6; } 18525 else 18526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18527 $as_echo "no" >&6; } 18528 fi 18529 18530 18531 test -n "$TIME" && break 18532 done 18533 18534 else 18535 # If it succeeded, then it was overridden by the user. We will use it 18536 # for the tool. 18537 18538 # First remove it from the list of overridden variables, so we can test 18539 # for unknown variables in the end. 18540 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18541 18542 # Check if the provided tool contains a complete path. 18543 tool_specified="$TIME" 18544 tool_basename="${tool_specified##*/}" 18545 if test "x$tool_basename" = "x$tool_specified"; then 18546 # A command without a complete path is provided, search $PATH. 18547 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 18548 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 18549 # Extract the first word of "$tool_basename", so it can be a program name with args. 18550 set dummy $tool_basename; ac_word=$2 18551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18552 $as_echo_n "checking for $ac_word... " >&6; } 18553 if ${ac_cv_path_TIME+:} false; then : 18554 $as_echo_n "(cached) " >&6 18555 else 18556 case $TIME in 18557 [\\/]* | ?:[\\/]*) 18558 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18559 ;; 18560 *) 18561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18562 for as_dir in $PATH 18563 do 18564 IFS=$as_save_IFS 18565 test -z "$as_dir" && as_dir=. 18566 for ac_exec_ext in '' $ac_executable_extensions; do 18567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18568 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18570 break 2 18571 fi 18572 done 18573 done 18574 IFS=$as_save_IFS 18575 18576 ;; 18577 esac 18578 fi 18579 TIME=$ac_cv_path_TIME 18580 if test -n "$TIME"; then 18581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18582 $as_echo "$TIME" >&6; } 18583 else 18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18585 $as_echo "no" >&6; } 18586 fi 18587 18588 18589 if test "x$TIME" = x; then 18590 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18591 fi 18592 else 18593 # Otherwise we believe it is a complete path. Use it as it is. 18594 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 18595 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 18596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 18597 $as_echo_n "checking for TIME... " >&6; } 18598 if test ! -x "$tool_specified"; then 18599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18600 $as_echo "not found" >&6; } 18601 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 18602 fi 18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18604 $as_echo "$tool_specified" >&6; } 18605 fi 18606 fi 18607 fi 18608 18609 18610 # Check if it's GNU time 18611 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 18612 if test "x$IS_GNU_TIME" != x; then 18613 IS_GNU_TIME=yes 18614 else 18615 IS_GNU_TIME=no 18616 fi 18617 18618 18619 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 18620 18621 18622 18623 # Publish this variable in the help. 18624 18625 18626 if test "x$COMM" = x; then 18627 # The variable is not set by user, try to locate tool using the code snippet 18628 for ac_prog in comm 18629 do 18630 # Extract the first word of "$ac_prog", so it can be a program name with args. 18631 set dummy $ac_prog; ac_word=$2 18632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18633 $as_echo_n "checking for $ac_word... " >&6; } 18634 if ${ac_cv_path_COMM+:} false; then : 18635 $as_echo_n "(cached) " >&6 18636 else 18637 case $COMM in 18638 [\\/]* | ?:[\\/]*) 18639 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18640 ;; 18641 *) 18642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18643 for as_dir in $PATH 18644 do 18645 IFS=$as_save_IFS 18646 test -z "$as_dir" && as_dir=. 18647 for ac_exec_ext in '' $ac_executable_extensions; do 18648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18649 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18651 break 2 18652 fi 18653 done 18654 done 18655 IFS=$as_save_IFS 18656 18657 ;; 18658 esac 18659 fi 18660 COMM=$ac_cv_path_COMM 18661 if test -n "$COMM"; then 18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18663 $as_echo "$COMM" >&6; } 18664 else 18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18666 $as_echo "no" >&6; } 18667 fi 18668 18669 18670 test -n "$COMM" && break 18671 done 18672 18673 else 18674 # The variable is set, but is it from the command line or the environment? 18675 18676 # Try to remove the string !COMM! from our list. 18677 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 18678 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18679 # If it failed, the variable was not from the command line. Ignore it, 18680 # but warn the user (except for BASH, which is always set by the calling BASH). 18681 if test "xCOMM" != xBASH; then 18682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 18683 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 18684 fi 18685 # Try to locate tool using the code snippet 18686 for ac_prog in comm 18687 do 18688 # Extract the first word of "$ac_prog", so it can be a program name with args. 18689 set dummy $ac_prog; ac_word=$2 18690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18691 $as_echo_n "checking for $ac_word... " >&6; } 18692 if ${ac_cv_path_COMM+:} false; then : 18693 $as_echo_n "(cached) " >&6 18694 else 18695 case $COMM in 18696 [\\/]* | ?:[\\/]*) 18697 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18698 ;; 18699 *) 18700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18701 for as_dir in $PATH 18702 do 18703 IFS=$as_save_IFS 18704 test -z "$as_dir" && as_dir=. 18705 for ac_exec_ext in '' $ac_executable_extensions; do 18706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18707 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18709 break 2 18710 fi 18711 done 18712 done 18713 IFS=$as_save_IFS 18714 18715 ;; 18716 esac 18717 fi 18718 COMM=$ac_cv_path_COMM 18719 if test -n "$COMM"; then 18720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18721 $as_echo "$COMM" >&6; } 18722 else 18723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18724 $as_echo "no" >&6; } 18725 fi 18726 18727 18728 test -n "$COMM" && break 18729 done 18730 18731 else 18732 # If it succeeded, then it was overridden by the user. We will use it 18733 # for the tool. 18734 18735 # First remove it from the list of overridden variables, so we can test 18736 # for unknown variables in the end. 18737 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18738 18739 # Check if the provided tool contains a complete path. 18740 tool_specified="$COMM" 18741 tool_basename="${tool_specified##*/}" 18742 if test "x$tool_basename" = "x$tool_specified"; then 18743 # A command without a complete path is provided, search $PATH. 18744 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 18745 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 18746 # Extract the first word of "$tool_basename", so it can be a program name with args. 18747 set dummy $tool_basename; ac_word=$2 18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18749 $as_echo_n "checking for $ac_word... " >&6; } 18750 if ${ac_cv_path_COMM+:} false; then : 18751 $as_echo_n "(cached) " >&6 18752 else 18753 case $COMM in 18754 [\\/]* | ?:[\\/]*) 18755 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18756 ;; 18757 *) 18758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18759 for as_dir in $PATH 18760 do 18761 IFS=$as_save_IFS 18762 test -z "$as_dir" && as_dir=. 18763 for ac_exec_ext in '' $ac_executable_extensions; do 18764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18765 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18767 break 2 18768 fi 18769 done 18770 done 18771 IFS=$as_save_IFS 18772 18773 ;; 18774 esac 18775 fi 18776 COMM=$ac_cv_path_COMM 18777 if test -n "$COMM"; then 18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18779 $as_echo "$COMM" >&6; } 18780 else 18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18782 $as_echo "no" >&6; } 18783 fi 18784 18785 18786 if test "x$COMM" = x; then 18787 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18788 fi 18789 else 18790 # Otherwise we believe it is a complete path. Use it as it is. 18791 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 18792 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 18793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 18794 $as_echo_n "checking for COMM... " >&6; } 18795 if test ! -x "$tool_specified"; then 18796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18797 $as_echo "not found" >&6; } 18798 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 18799 fi 18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18801 $as_echo "$tool_specified" >&6; } 18802 fi 18803 fi 18804 fi 18805 18806 18807 18808 if test "x$COMM" = x; then 18809 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 18810 fi 18811 18812 18813 fi 18814 18815 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 18816 18817 18818 18819 # Publish this variable in the help. 18820 18821 18822 if test "x$DSYMUTIL" = x; then 18823 # The variable is not set by user, try to locate tool using the code snippet 18824 for ac_prog in dsymutil 18825 do 18826 # Extract the first word of "$ac_prog", so it can be a program name with args. 18827 set dummy $ac_prog; ac_word=$2 18828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18829 $as_echo_n "checking for $ac_word... " >&6; } 18830 if ${ac_cv_path_DSYMUTIL+:} false; then : 18831 $as_echo_n "(cached) " >&6 18832 else 18833 case $DSYMUTIL in 18834 [\\/]* | ?:[\\/]*) 18835 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18836 ;; 18837 *) 18838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18839 for as_dir in $PATH 18840 do 18841 IFS=$as_save_IFS 18842 test -z "$as_dir" && as_dir=. 18843 for ac_exec_ext in '' $ac_executable_extensions; do 18844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18845 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18847 break 2 18848 fi 18849 done 18850 done 18851 IFS=$as_save_IFS 18852 18853 ;; 18854 esac 18855 fi 18856 DSYMUTIL=$ac_cv_path_DSYMUTIL 18857 if test -n "$DSYMUTIL"; then 18858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18859 $as_echo "$DSYMUTIL" >&6; } 18860 else 18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18862 $as_echo "no" >&6; } 18863 fi 18864 18865 18866 test -n "$DSYMUTIL" && break 18867 done 18868 18869 else 18870 # The variable is set, but is it from the command line or the environment? 18871 18872 # Try to remove the string !DSYMUTIL! from our list. 18873 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 18874 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18875 # If it failed, the variable was not from the command line. Ignore it, 18876 # but warn the user (except for BASH, which is always set by the calling BASH). 18877 if test "xDSYMUTIL" != xBASH; then 18878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 18879 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 18880 fi 18881 # Try to locate tool using the code snippet 18882 for ac_prog in dsymutil 18883 do 18884 # Extract the first word of "$ac_prog", so it can be a program name with args. 18885 set dummy $ac_prog; ac_word=$2 18886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18887 $as_echo_n "checking for $ac_word... " >&6; } 18888 if ${ac_cv_path_DSYMUTIL+:} false; then : 18889 $as_echo_n "(cached) " >&6 18890 else 18891 case $DSYMUTIL in 18892 [\\/]* | ?:[\\/]*) 18893 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18894 ;; 18895 *) 18896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18897 for as_dir in $PATH 18898 do 18899 IFS=$as_save_IFS 18900 test -z "$as_dir" && as_dir=. 18901 for ac_exec_ext in '' $ac_executable_extensions; do 18902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18903 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18905 break 2 18906 fi 18907 done 18908 done 18909 IFS=$as_save_IFS 18910 18911 ;; 18912 esac 18913 fi 18914 DSYMUTIL=$ac_cv_path_DSYMUTIL 18915 if test -n "$DSYMUTIL"; then 18916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18917 $as_echo "$DSYMUTIL" >&6; } 18918 else 18919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18920 $as_echo "no" >&6; } 18921 fi 18922 18923 18924 test -n "$DSYMUTIL" && break 18925 done 18926 18927 else 18928 # If it succeeded, then it was overridden by the user. We will use it 18929 # for the tool. 18930 18931 # First remove it from the list of overridden variables, so we can test 18932 # for unknown variables in the end. 18933 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18934 18935 # Check if the provided tool contains a complete path. 18936 tool_specified="$DSYMUTIL" 18937 tool_basename="${tool_specified##*/}" 18938 if test "x$tool_basename" = "x$tool_specified"; then 18939 # A command without a complete path is provided, search $PATH. 18940 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 18941 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 18942 # Extract the first word of "$tool_basename", so it can be a program name with args. 18943 set dummy $tool_basename; ac_word=$2 18944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18945 $as_echo_n "checking for $ac_word... " >&6; } 18946 if ${ac_cv_path_DSYMUTIL+:} false; then : 18947 $as_echo_n "(cached) " >&6 18948 else 18949 case $DSYMUTIL in 18950 [\\/]* | ?:[\\/]*) 18951 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18952 ;; 18953 *) 18954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18955 for as_dir in $PATH 18956 do 18957 IFS=$as_save_IFS 18958 test -z "$as_dir" && as_dir=. 18959 for ac_exec_ext in '' $ac_executable_extensions; do 18960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18961 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18963 break 2 18964 fi 18965 done 18966 done 18967 IFS=$as_save_IFS 18968 18969 ;; 18970 esac 18971 fi 18972 DSYMUTIL=$ac_cv_path_DSYMUTIL 18973 if test -n "$DSYMUTIL"; then 18974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18975 $as_echo "$DSYMUTIL" >&6; } 18976 else 18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18978 $as_echo "no" >&6; } 18979 fi 18980 18981 18982 if test "x$DSYMUTIL" = x; then 18983 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18984 fi 18985 else 18986 # Otherwise we believe it is a complete path. Use it as it is. 18987 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 18988 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 18989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 18990 $as_echo_n "checking for DSYMUTIL... " >&6; } 18991 if test ! -x "$tool_specified"; then 18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18993 $as_echo "not found" >&6; } 18994 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 18995 fi 18996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18997 $as_echo "$tool_specified" >&6; } 18998 fi 18999 fi 19000 fi 19001 19002 19003 19004 if test "x$DSYMUTIL" = x; then 19005 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 19006 fi 19007 19008 19009 19010 19011 19012 # Publish this variable in the help. 19013 19014 19015 if test "x$XATTR" = x; then 19016 # The variable is not set by user, try to locate tool using the code snippet 19017 for ac_prog in xattr 19018 do 19019 # Extract the first word of "$ac_prog", so it can be a program name with args. 19020 set dummy $ac_prog; ac_word=$2 19021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19022 $as_echo_n "checking for $ac_word... " >&6; } 19023 if ${ac_cv_path_XATTR+:} false; then : 19024 $as_echo_n "(cached) " >&6 19025 else 19026 case $XATTR in 19027 [\\/]* | ?:[\\/]*) 19028 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19029 ;; 19030 *) 19031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19032 for as_dir in $PATH 19033 do 19034 IFS=$as_save_IFS 19035 test -z "$as_dir" && as_dir=. 19036 for ac_exec_ext in '' $ac_executable_extensions; do 19037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19038 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19040 break 2 19041 fi 19042 done 19043 done 19044 IFS=$as_save_IFS 19045 19046 ;; 19047 esac 19048 fi 19049 XATTR=$ac_cv_path_XATTR 19050 if test -n "$XATTR"; then 19051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19052 $as_echo "$XATTR" >&6; } 19053 else 19054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19055 $as_echo "no" >&6; } 19056 fi 19057 19058 19059 test -n "$XATTR" && break 19060 done 19061 19062 else 19063 # The variable is set, but is it from the command line or the environment? 19064 19065 # Try to remove the string !XATTR! from our list. 19066 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 19067 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19068 # If it failed, the variable was not from the command line. Ignore it, 19069 # but warn the user (except for BASH, which is always set by the calling BASH). 19070 if test "xXATTR" != xBASH; then 19071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 19072 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 19073 fi 19074 # Try to locate tool using the code snippet 19075 for ac_prog in xattr 19076 do 19077 # Extract the first word of "$ac_prog", so it can be a program name with args. 19078 set dummy $ac_prog; ac_word=$2 19079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19080 $as_echo_n "checking for $ac_word... " >&6; } 19081 if ${ac_cv_path_XATTR+:} false; then : 19082 $as_echo_n "(cached) " >&6 19083 else 19084 case $XATTR in 19085 [\\/]* | ?:[\\/]*) 19086 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19087 ;; 19088 *) 19089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19090 for as_dir in $PATH 19091 do 19092 IFS=$as_save_IFS 19093 test -z "$as_dir" && as_dir=. 19094 for ac_exec_ext in '' $ac_executable_extensions; do 19095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19096 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19098 break 2 19099 fi 19100 done 19101 done 19102 IFS=$as_save_IFS 19103 19104 ;; 19105 esac 19106 fi 19107 XATTR=$ac_cv_path_XATTR 19108 if test -n "$XATTR"; then 19109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19110 $as_echo "$XATTR" >&6; } 19111 else 19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19113 $as_echo "no" >&6; } 19114 fi 19115 19116 19117 test -n "$XATTR" && break 19118 done 19119 19120 else 19121 # If it succeeded, then it was overridden by the user. We will use it 19122 # for the tool. 19123 19124 # First remove it from the list of overridden variables, so we can test 19125 # for unknown variables in the end. 19126 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19127 19128 # Check if the provided tool contains a complete path. 19129 tool_specified="$XATTR" 19130 tool_basename="${tool_specified##*/}" 19131 if test "x$tool_basename" = "x$tool_specified"; then 19132 # A command without a complete path is provided, search $PATH. 19133 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 19134 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 19135 # Extract the first word of "$tool_basename", so it can be a program name with args. 19136 set dummy $tool_basename; ac_word=$2 19137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19138 $as_echo_n "checking for $ac_word... " >&6; } 19139 if ${ac_cv_path_XATTR+:} false; then : 19140 $as_echo_n "(cached) " >&6 19141 else 19142 case $XATTR in 19143 [\\/]* | ?:[\\/]*) 19144 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19145 ;; 19146 *) 19147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19148 for as_dir in $PATH 19149 do 19150 IFS=$as_save_IFS 19151 test -z "$as_dir" && as_dir=. 19152 for ac_exec_ext in '' $ac_executable_extensions; do 19153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19154 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19156 break 2 19157 fi 19158 done 19159 done 19160 IFS=$as_save_IFS 19161 19162 ;; 19163 esac 19164 fi 19165 XATTR=$ac_cv_path_XATTR 19166 if test -n "$XATTR"; then 19167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19168 $as_echo "$XATTR" >&6; } 19169 else 19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19171 $as_echo "no" >&6; } 19172 fi 19173 19174 19175 if test "x$XATTR" = x; then 19176 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19177 fi 19178 else 19179 # Otherwise we believe it is a complete path. Use it as it is. 19180 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 19181 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 19182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 19183 $as_echo_n "checking for XATTR... " >&6; } 19184 if test ! -x "$tool_specified"; then 19185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19186 $as_echo "not found" >&6; } 19187 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 19188 fi 19189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19190 $as_echo "$tool_specified" >&6; } 19191 fi 19192 fi 19193 fi 19194 19195 19196 19197 if test "x$XATTR" = x; then 19198 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 19199 fi 19200 19201 19202 19203 19204 # Publish this variable in the help. 19205 19206 19207 if test "x$CODESIGN" = x; then 19208 # The variable is not set by user, try to locate tool using the code snippet 19209 for ac_prog in codesign 19210 do 19211 # Extract the first word of "$ac_prog", so it can be a program name with args. 19212 set dummy $ac_prog; ac_word=$2 19213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19214 $as_echo_n "checking for $ac_word... " >&6; } 19215 if ${ac_cv_path_CODESIGN+:} false; then : 19216 $as_echo_n "(cached) " >&6 19217 else 19218 case $CODESIGN in 19219 [\\/]* | ?:[\\/]*) 19220 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19221 ;; 19222 *) 19223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19224 for as_dir in $PATH 19225 do 19226 IFS=$as_save_IFS 19227 test -z "$as_dir" && as_dir=. 19228 for ac_exec_ext in '' $ac_executable_extensions; do 19229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19230 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19232 break 2 19233 fi 19234 done 19235 done 19236 IFS=$as_save_IFS 19237 19238 ;; 19239 esac 19240 fi 19241 CODESIGN=$ac_cv_path_CODESIGN 19242 if test -n "$CODESIGN"; then 19243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19244 $as_echo "$CODESIGN" >&6; } 19245 else 19246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19247 $as_echo "no" >&6; } 19248 fi 19249 19250 19251 test -n "$CODESIGN" && break 19252 done 19253 19254 else 19255 # The variable is set, but is it from the command line or the environment? 19256 19257 # Try to remove the string !CODESIGN! from our list. 19258 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 19259 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19260 # If it failed, the variable was not from the command line. Ignore it, 19261 # but warn the user (except for BASH, which is always set by the calling BASH). 19262 if test "xCODESIGN" != xBASH; then 19263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 19264 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 19265 fi 19266 # Try to locate tool using the code snippet 19267 for ac_prog in codesign 19268 do 19269 # Extract the first word of "$ac_prog", so it can be a program name with args. 19270 set dummy $ac_prog; ac_word=$2 19271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19272 $as_echo_n "checking for $ac_word... " >&6; } 19273 if ${ac_cv_path_CODESIGN+:} false; then : 19274 $as_echo_n "(cached) " >&6 19275 else 19276 case $CODESIGN in 19277 [\\/]* | ?:[\\/]*) 19278 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19279 ;; 19280 *) 19281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19282 for as_dir in $PATH 19283 do 19284 IFS=$as_save_IFS 19285 test -z "$as_dir" && as_dir=. 19286 for ac_exec_ext in '' $ac_executable_extensions; do 19287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19288 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19290 break 2 19291 fi 19292 done 19293 done 19294 IFS=$as_save_IFS 19295 19296 ;; 19297 esac 19298 fi 19299 CODESIGN=$ac_cv_path_CODESIGN 19300 if test -n "$CODESIGN"; then 19301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19302 $as_echo "$CODESIGN" >&6; } 19303 else 19304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19305 $as_echo "no" >&6; } 19306 fi 19307 19308 19309 test -n "$CODESIGN" && break 19310 done 19311 19312 else 19313 # If it succeeded, then it was overridden by the user. We will use it 19314 # for the tool. 19315 19316 # First remove it from the list of overridden variables, so we can test 19317 # for unknown variables in the end. 19318 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19319 19320 # Check if the provided tool contains a complete path. 19321 tool_specified="$CODESIGN" 19322 tool_basename="${tool_specified##*/}" 19323 if test "x$tool_basename" = "x$tool_specified"; then 19324 # A command without a complete path is provided, search $PATH. 19325 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 19326 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 19327 # Extract the first word of "$tool_basename", so it can be a program name with args. 19328 set dummy $tool_basename; ac_word=$2 19329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19330 $as_echo_n "checking for $ac_word... " >&6; } 19331 if ${ac_cv_path_CODESIGN+:} false; then : 19332 $as_echo_n "(cached) " >&6 19333 else 19334 case $CODESIGN in 19335 [\\/]* | ?:[\\/]*) 19336 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19337 ;; 19338 *) 19339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19340 for as_dir in $PATH 19341 do 19342 IFS=$as_save_IFS 19343 test -z "$as_dir" && as_dir=. 19344 for ac_exec_ext in '' $ac_executable_extensions; do 19345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19346 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19348 break 2 19349 fi 19350 done 19351 done 19352 IFS=$as_save_IFS 19353 19354 ;; 19355 esac 19356 fi 19357 CODESIGN=$ac_cv_path_CODESIGN 19358 if test -n "$CODESIGN"; then 19359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19360 $as_echo "$CODESIGN" >&6; } 19361 else 19362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19363 $as_echo "no" >&6; } 19364 fi 19365 19366 19367 if test "x$CODESIGN" = x; then 19368 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19369 fi 19370 else 19371 # Otherwise we believe it is a complete path. Use it as it is. 19372 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 19373 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 19374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 19375 $as_echo_n "checking for CODESIGN... " >&6; } 19376 if test ! -x "$tool_specified"; then 19377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19378 $as_echo "not found" >&6; } 19379 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 19380 fi 19381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19382 $as_echo "$tool_specified" >&6; } 19383 fi 19384 fi 19385 fi 19386 19387 19388 if test "x$CODESIGN" != "x"; then 19389 # Verify that the openjdk_codesign certificate is present 19390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 19391 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 19392 rm -f codesign-testfile 19393 touch codesign-testfile 19394 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 19395 rm -f codesign-testfile 19396 if test "x$CODESIGN" = x; then 19397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19398 $as_echo "no" >&6; } 19399 else 19400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19401 $as_echo "yes" >&6; } 19402 fi 19403 fi 19404 fi 19405 19406 19407 # Check if pkg-config is available. 19408 19409 19410 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19411 if test -n "$ac_tool_prefix"; then 19412 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19413 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19415 $as_echo_n "checking for $ac_word... " >&6; } 19416 if ${ac_cv_path_PKG_CONFIG+:} false; then : 19417 $as_echo_n "(cached) " >&6 19418 else 19419 case $PKG_CONFIG in 19420 [\\/]* | ?:[\\/]*) 19421 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19422 ;; 19423 *) 19424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19425 for as_dir in $PATH 19426 do 19427 IFS=$as_save_IFS 19428 test -z "$as_dir" && as_dir=. 19429 for ac_exec_ext in '' $ac_executable_extensions; do 19430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19431 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19433 break 2 19434 fi 19435 done 19436 done 19437 IFS=$as_save_IFS 19438 19439 ;; 19440 esac 19441 fi 19442 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19443 if test -n "$PKG_CONFIG"; then 19444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19445 $as_echo "$PKG_CONFIG" >&6; } 19446 else 19447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19448 $as_echo "no" >&6; } 19449 fi 19450 19451 19452 fi 19453 if test -z "$ac_cv_path_PKG_CONFIG"; then 19454 ac_pt_PKG_CONFIG=$PKG_CONFIG 19455 # Extract the first word of "pkg-config", so it can be a program name with args. 19456 set dummy pkg-config; ac_word=$2 19457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19458 $as_echo_n "checking for $ac_word... " >&6; } 19459 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19460 $as_echo_n "(cached) " >&6 19461 else 19462 case $ac_pt_PKG_CONFIG in 19463 [\\/]* | ?:[\\/]*) 19464 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19465 ;; 19466 *) 19467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19468 for as_dir in $PATH 19469 do 19470 IFS=$as_save_IFS 19471 test -z "$as_dir" && as_dir=. 19472 for ac_exec_ext in '' $ac_executable_extensions; do 19473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19474 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19476 break 2 19477 fi 19478 done 19479 done 19480 IFS=$as_save_IFS 19481 19482 ;; 19483 esac 19484 fi 19485 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19486 if test -n "$ac_pt_PKG_CONFIG"; then 19487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19488 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 19489 else 19490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19491 $as_echo "no" >&6; } 19492 fi 19493 19494 if test "x$ac_pt_PKG_CONFIG" = x; then 19495 PKG_CONFIG="" 19496 else 19497 case $cross_compiling:$ac_tool_warned in 19498 yes:) 19499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19501 ac_tool_warned=yes ;; 19502 esac 19503 PKG_CONFIG=$ac_pt_PKG_CONFIG 19504 fi 19505 else 19506 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19507 fi 19508 19509 fi 19510 if test -n "$PKG_CONFIG"; then 19511 _pkg_min_version=0.9.0 19512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19513 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19514 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19516 $as_echo "yes" >&6; } 19517 else 19518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19519 $as_echo "no" >&6; } 19520 PKG_CONFIG="" 19521 fi 19522 19523 fi 19524 19525 # After basic tools have been setup, we can check build os specific details. 19526 19527 ############################################################################### 19528 19529 # Note that this is the build platform OS version! 19530 19531 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 19532 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 19533 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 19534 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 19535 19536 19537 19538 19539 19540 # Setup builddeps, for automatic downloading of tools we need. 19541 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in 19542 # boot-jdk setup, but we need to have basic tools setup first. 19543 19544 19545 # Check whether --with-builddeps-conf was given. 19546 if test "${with_builddeps_conf+set}" = set; then : 19547 withval=$with_builddeps_conf; 19548 fi 19549 19550 19551 19552 # Check whether --with-builddeps-server was given. 19553 if test "${with_builddeps_server+set}" = set; then : 19554 withval=$with_builddeps_server; 19555 fi 19556 19557 19558 19559 # Check whether --with-builddeps-dir was given. 19560 if test "${with_builddeps_dir+set}" = set; then : 19561 withval=$with_builddeps_dir; 19562 else 19563 with_builddeps_dir=/localhome/builddeps 19564 fi 19565 19566 19567 19568 # Check whether --with-builddeps-group was given. 19569 if test "${with_builddeps_group+set}" = set; then : 19570 withval=$with_builddeps_group; 19571 fi 19572 19573 19574 19575 19576 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19577 if test "x$with_builddeps_conf" != x; then 19578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5 19579 $as_echo_n "checking for supplied builddeps configuration file... " >&6; } 19580 builddepsfile=$with_builddeps_conf 19581 if test -s $builddepsfile; then 19582 . $builddepsfile 19583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5 19584 $as_echo "loaded!" >&6; } 19585 else 19586 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5 19587 fi 19588 else 19589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5 19590 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; } 19591 builddepsfile=`mktemp` 19592 touch $builddepsfile 19593 # Put all found confs into a single file. 19594 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile 19595 # Source the file to acquire the variables 19596 if test -s $builddepsfile; then 19597 . $builddepsfile 19598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5 19599 $as_echo "found at least one!" >&6; } 19600 else 19601 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5 19602 fi 19603 fi 19604 # Create build and target names that use _ instead of "-" and ".". 19605 # This is necessary to use them in variable names. 19606 build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19607 target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19608 # Extract rewrite information for build and target 19609 eval rewritten_build=\${REWRITE_${build_var}} 19610 if test "x$rewritten_build" = x; then 19611 rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME} 19612 echo Build stays the same $rewritten_build 19613 else 19614 echo Rewriting build for builddeps into $rewritten_build 19615 fi 19616 eval rewritten_target=\${REWRITE_${target_var}} 19617 if test "x$rewritten_target" = x; then 19618 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME} 19619 echo Target stays the same $rewritten_target 19620 else 19621 echo Rewriting target for builddeps into $rewritten_target 19622 fi 19623 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'` 19624 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'` 19625 fi 19626 for ac_prog in 7z unzip 19627 do 19628 # Extract the first word of "$ac_prog", so it can be a program name with args. 19629 set dummy $ac_prog; ac_word=$2 19630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19631 $as_echo_n "checking for $ac_word... " >&6; } 19632 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then : 19633 $as_echo_n "(cached) " >&6 19634 else 19635 if test -n "$BDEPS_UNZIP"; then 19636 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 19637 else 19638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19639 for as_dir in $PATH 19640 do 19641 IFS=$as_save_IFS 19642 test -z "$as_dir" && as_dir=. 19643 for ac_exec_ext in '' $ac_executable_extensions; do 19644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19645 ac_cv_prog_BDEPS_UNZIP="$ac_prog" 19646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19647 break 2 19648 fi 19649 done 19650 done 19651 IFS=$as_save_IFS 19652 19653 fi 19654 fi 19655 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 19656 if test -n "$BDEPS_UNZIP"; then 19657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 19658 $as_echo "$BDEPS_UNZIP" >&6; } 19659 else 19660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19661 $as_echo "no" >&6; } 19662 fi 19663 19664 19665 test -n "$BDEPS_UNZIP" && break 19666 done 19667 19668 if test "x$BDEPS_UNZIP" = x7z; then 19669 BDEPS_UNZIP="7z x" 19670 fi 19671 19672 for ac_prog in wget lftp ftp 19673 do 19674 # Extract the first word of "$ac_prog", so it can be a program name with args. 19675 set dummy $ac_prog; ac_word=$2 19676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19677 $as_echo_n "checking for $ac_word... " >&6; } 19678 if ${ac_cv_prog_BDEPS_FTP+:} false; then : 19679 $as_echo_n "(cached) " >&6 19680 else 19681 if test -n "$BDEPS_FTP"; then 19682 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 19683 else 19684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19685 for as_dir in $PATH 19686 do 19687 IFS=$as_save_IFS 19688 test -z "$as_dir" && as_dir=. 19689 for ac_exec_ext in '' $ac_executable_extensions; do 19690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19691 ac_cv_prog_BDEPS_FTP="$ac_prog" 19692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19693 break 2 19694 fi 19695 done 19696 done 19697 IFS=$as_save_IFS 19698 19699 fi 19700 fi 19701 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 19702 if test -n "$BDEPS_FTP"; then 19703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 19704 $as_echo "$BDEPS_FTP" >&6; } 19705 else 19706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19707 $as_echo "no" >&6; } 19708 fi 19709 19710 19711 test -n "$BDEPS_FTP" && break 19712 done 19713 19714 19715 19716 ############################################################################### 19717 # 19718 # Determine OpenJDK variants, options and version numbers. 19719 # 19720 ############################################################################### 19721 19722 # We need build & target for this. 19723 19724 19725 ############################################################################### 19726 # 19727 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 19728 # We always build headless support. 19729 # 19730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 19731 $as_echo_n "checking headful support... " >&6; } 19732 # Check whether --enable-headful was given. 19733 if test "${enable_headful+set}" = set; then : 19734 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 19735 else 19736 SUPPORT_HEADFUL=yes 19737 fi 19738 19739 19740 SUPPORT_HEADLESS=yes 19741 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19742 19743 if test "x$SUPPORT_HEADFUL" = xyes; then 19744 # We are building both headful and headless. 19745 headful_msg="include support for both headful and headless" 19746 fi 19747 19748 if test "x$SUPPORT_HEADFUL" = xno; then 19749 # Thus we are building headless only. 19750 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19751 headful_msg="headless only" 19752 fi 19753 19754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 19755 $as_echo "$headful_msg" >&6; } 19756 19757 19758 19759 19760 19761 # Control wether Hotspot runs Queens test after build. 19762 # Check whether --enable-hotspot-test-in-build was given. 19763 if test "${enable_hotspot_test_in_build+set}" = set; then : 19764 enableval=$enable_hotspot_test_in_build; 19765 else 19766 enable_hotspot_test_in_build=no 19767 fi 19768 19769 if test "x$enable_hotspot_test_in_build" = "xyes"; then 19770 TEST_IN_BUILD=true 19771 else 19772 TEST_IN_BUILD=false 19773 fi 19774 19775 19776 ############################################################################### 19777 # 19778 # Choose cacerts source file 19779 # 19780 19781 # Check whether --with-cacerts-file was given. 19782 if test "${with_cacerts_file+set}" = set; then : 19783 withval=$with_cacerts_file; 19784 fi 19785 19786 if test "x$with_cacerts_file" != x; then 19787 CACERTS_FILE=$with_cacerts_file 19788 fi 19789 19790 19791 ############################################################################### 19792 # 19793 # Enable or disable unlimited crypto 19794 # 19795 # Check whether --enable-unlimited-crypto was given. 19796 if test "${enable_unlimited_crypto+set}" = set; then : 19797 enableval=$enable_unlimited_crypto; 19798 else 19799 enable_unlimited_crypto=no 19800 fi 19801 19802 if test "x$enable_unlimited_crypto" = "xyes"; then 19803 UNLIMITED_CRYPTO=true 19804 else 19805 UNLIMITED_CRYPTO=false 19806 fi 19807 19808 19809 ############################################################################### 19810 # 19811 # Enable or disable the elliptic curve crypto implementation 19812 # 19813 19814 19815 ############################################################################### 19816 # 19817 # Compress jars 19818 # 19819 COMPRESS_JARS=false 19820 19821 19822 19823 ############################################################################### 19824 # 19825 # Enable or disable JFR 19826 # 19827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build JFR" >&5 19828 $as_echo_n "checking whether to build JFR... " >&6; } 19829 # Check whether --enable-jfr was given. 19830 if test "${enable_jfr+set}" = set; then : 19831 enableval=$enable_jfr; 19832 else 19833 enable_jfr=auto 19834 fi 19835 19836 if test "x$enable_jfr" = "xno"; then 19837 ENABLE_JFR=false 19838 elif test "x$enable_jfr" = "xyes" -o "x$enable_jfr" = "xauto"; then 19839 if test "x$JVM_VARIANT_MINIMAL1" = "xtrue" -o "x$JVM_VARIANT_ZERO" = "xtrue"; then 19840 if test "x$enable_jfr" = "xyes"; then 19841 as_fn_error $? "cannot enable JFR on minimal1 VM or zero build" "$LINENO" 5 19842 else 19843 ENABLE_JFR=false 19844 fi 19845 elif test "x$OPENJDK_TARGET_OS" = xaix; then 19846 if test "x$enable_jfr" = "xyes"; then 19847 as_fn_error $? "AIX does not support JFR" "$LINENO" 5 19848 else 19849 ENABLE_JFR=false 19850 fi 19851 else 19852 ENABLE_JFR=true 19853 fi 19854 else 19855 as_fn_error $? "--enable-jfr must be set to either yes or no" "$LINENO" 5 19856 fi 19857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JFR" >&5 19858 $as_echo "$ENABLE_JFR" >&6; } 19859 19860 19861 19862 # Source the version numbers 19863 . $AUTOCONF_DIR/version-numbers 19864 19865 # Get the settings from parameters 19866 19867 # Check whether --with-milestone was given. 19868 if test "${with_milestone+set}" = set; then : 19869 withval=$with_milestone; 19870 fi 19871 19872 if test "x$with_milestone" = xyes; then 19873 as_fn_error $? "Milestone must have a value" "$LINENO" 5 19874 elif test "x$with_milestone" != x; then 19875 MILESTONE="$with_milestone" 19876 fi 19877 if test "x$MILESTONE" = x; then 19878 MILESTONE=internal 19879 fi 19880 19881 19882 # Check whether --with-update-version was given. 19883 if test "${with_update_version+set}" = set; then : 19884 withval=$with_update_version; 19885 fi 19886 19887 if test "x$with_update_version" = xyes; then 19888 as_fn_error $? "Update version must have a value" "$LINENO" 5 19889 elif test "x$with_update_version" != x; then 19890 JDK_UPDATE_VERSION="$with_update_version" 19891 # On macosx 10.7, it's not possible to set --with-update-version=0X due 19892 # to a bug in expr (which reduces it to just X). To work around this, we 19893 # always add a 0 to one digit update versions. 19894 if test "${#JDK_UPDATE_VERSION}" = "1"; then 19895 JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}" 19896 fi 19897 fi 19898 19899 19900 # Check whether --with-user-release-suffix was given. 19901 if test "${with_user_release_suffix+set}" = set; then : 19902 withval=$with_user_release_suffix; 19903 fi 19904 19905 if test "x$with_user_release_suffix" = xyes; then 19906 as_fn_error $? "Release suffix must have a value" "$LINENO" 5 19907 elif test "x$with_user_release_suffix" != x; then 19908 USER_RELEASE_SUFFIX="$with_user_release_suffix" 19909 fi 19910 19911 19912 # Check whether --with-build-number was given. 19913 if test "${with_build_number+set}" = set; then : 19914 withval=$with_build_number; 19915 fi 19916 19917 if test "x$with_build_number" = xyes; then 19918 as_fn_error $? "Build number must have a value" "$LINENO" 5 19919 elif test "x$with_build_number" != x; then 19920 JDK_BUILD_NUMBER="$with_build_number" 19921 fi 19922 # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set 19923 if test "x$JDK_BUILD_NUMBER" = x; then 19924 JDK_BUILD_NUMBER=b00 19925 if test "x$USER_RELEASE_SUFFIX" = x; then 19926 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'` 19927 # Avoid [:alnum:] since it depends on the locale. 19928 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'` 19929 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19930 fi 19931 fi 19932 19933 # Now set the JDK version, milestone, build number etc. 19934 19935 19936 19937 19938 19939 19940 19941 19942 19943 19944 19945 19946 19947 19948 # The vendor name, if any 19949 19950 # Check whether --with-vendor-name was given. 19951 if test "${with_vendor_name+set}" = set; then : 19952 withval=$with_vendor_name; 19953 fi 19954 19955 if test "x$with_vendor_name" = xyes; then 19956 as_fn_error $? "--with-vendor-name must have a value" "$LINENO" 5 19957 elif ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ; then 19958 as_fn_error $? "--with-vendor-name contains non-printing characters: $with_vendor_name" "$LINENO" 5 19959 elif test "x$with_vendor_name" != x; then 19960 # Only set COMPANY_NAME if '--with-vendor-name' was used and is not empty. 19961 # Otherwise we will use the value from "version-numbers" included above. 19962 COMPANY_NAME="$with_vendor_name" 19963 fi 19964 19965 19966 # The vendor URL, if any 19967 19968 # Check whether --with-vendor-url was given. 19969 if test "${with_vendor_url+set}" = set; then : 19970 withval=$with_vendor_url; 19971 fi 19972 19973 if test "x$with_vendor_url" = xyes; then 19974 as_fn_error $? "--with-vendor-url must have a value" "$LINENO" 5 19975 elif ! [[ $with_vendor_url =~ ^[[:print:]]*$ ]] ; then 19976 as_fn_error $? "--with-vendor-url contains non-printing characters: $with_vendor_url" "$LINENO" 5 19977 else 19978 VENDOR_URL="$with_vendor_url" 19979 fi 19980 19981 19982 # The vendor bug URL, if any 19983 19984 # Check whether --with-vendor-bug-url was given. 19985 if test "${with_vendor_bug_url+set}" = set; then : 19986 withval=$with_vendor_bug_url; 19987 fi 19988 19989 if test "x$with_vendor_bug_url" = xyes; then 19990 as_fn_error $? "--with-vendor-bug-url must have a value" "$LINENO" 5 19991 elif ! [[ $with_vendor_bug_url =~ ^[[:print:]]*$ ]] ; then 19992 as_fn_error $? "--with-vendor-bug-url contains non-printing characters: $with_vendor_bug_url" "$LINENO" 5 19993 else 19994 VENDOR_URL_BUG="$with_vendor_bug_url" 19995 fi 19996 19997 19998 # The vendor VM bug URL, if any 19999 20000 # Check whether --with-vendor-vm-bug-url was given. 20001 if test "${with_vendor_vm_bug_url+set}" = set; then : 20002 withval=$with_vendor_vm_bug_url; 20003 fi 20004 20005 if test "x$with_vendor_vm_bug_url" = xyes; then 20006 as_fn_error $? "--with-vendor-vm-bug-url must have a value" "$LINENO" 5 20007 elif ! [[ $with_vendor_vm_bug_url =~ ^[[:print:]]*$ ]] ; then 20008 as_fn_error $? "--with-vendor-vm-bug-url contains non-printing characters: $with_vendor_vm_bug_url" "$LINENO" 5 20009 else 20010 VENDOR_URL_VM_BUG="$with_vendor_vm_bug_url" 20011 fi 20012 20013 20014 20015 # Check whether --with-copyright-year was given. 20016 if test "${with_copyright_year+set}" = set; then : 20017 withval=$with_copyright_year; 20018 fi 20019 20020 if test "x$with_copyright_year" = xyes; then 20021 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 20022 elif test "x$with_copyright_year" != x; then 20023 COPYRIGHT_YEAR="$with_copyright_year" 20024 else 20025 COPYRIGHT_YEAR=`date +'%Y'` 20026 fi 20027 20028 20029 if test "x$JDK_UPDATE_VERSION" != x; then 20030 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 20031 else 20032 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 20033 fi 20034 20035 20036 # The cooked update version used to encode trailing letters in the update 20037 # version into a trailing number. That is no longer needed, but need to 20038 # keep the format in 8u for compatibility. 20039 COOKED_JDK_UPDATE_VERSION="${JDK_UPDATE_VERSION}0" 20040 20041 20042 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 20043 20044 20045 20046 ############################################################################### 20047 # 20048 # Setup BootJDK, used to bootstrap the build. 20049 # 20050 ############################################################################### 20051 20052 20053 BOOT_JDK_FOUND=no 20054 20055 # Check whether --with-boot-jdk was given. 20056 if test "${with_boot_jdk+set}" = set; then : 20057 withval=$with_boot_jdk; 20058 fi 20059 20060 20061 # We look for the Boot JDK through various means, going from more certain to 20062 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 20063 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 20064 # must check if this is indeed valid; otherwise we'll continue looking. 20065 20066 # Test: Is bootjdk explicitely set by command line arguments? 20067 20068 if test "x$BOOT_JDK_FOUND" = xno; then 20069 # Now execute the test 20070 20071 if test "x$with_boot_jdk" != x; then 20072 BOOT_JDK=$with_boot_jdk 20073 BOOT_JDK_FOUND=maybe 20074 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 20075 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 20076 fi 20077 20078 20079 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20080 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20081 # Do we have a bin/java? 20082 if test ! -x "$BOOT_JDK/bin/java"; then 20083 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20084 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20085 BOOT_JDK_FOUND=no 20086 else 20087 # Do we have a bin/javac? 20088 if test ! -x "$BOOT_JDK/bin/javac"; then 20089 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20090 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20091 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20092 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20093 BOOT_JDK_FOUND=no 20094 else 20095 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20096 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20097 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20098 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20099 BOOT_JDK_FOUND=no 20100 else 20101 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20102 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20103 20104 # Extra M4 quote needed to protect [] in grep expression. 20105 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20106 if test "x$FOUND_VERSION_78" = x; then 20107 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20108 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20109 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20110 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20111 BOOT_JDK_FOUND=no 20112 else 20113 # We're done! :-) 20114 BOOT_JDK_FOUND=yes 20115 20116 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20117 20118 # Input might be given as Windows format, start by converting to 20119 # unix format. 20120 path="$BOOT_JDK" 20121 new_path=`$CYGPATH -u "$path"` 20122 20123 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20124 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20125 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20126 # "foo.exe" is OK but "foo" is an error. 20127 # 20128 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20129 # It is also a way to make sure we got the proper file name for the real test later on. 20130 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20131 if test "x$test_shortpath" = x; then 20132 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20133 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20134 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20135 fi 20136 20137 # Call helper function which possibly converts this using DOS-style short mode. 20138 # If so, the updated path is stored in $new_path. 20139 20140 input_path="$new_path" 20141 # Check if we need to convert this using DOS-style short mode. If the path 20142 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20143 # take no chances and rewrite it. 20144 # Note: m4 eats our [], so we need to use [ and ] instead. 20145 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20146 if test "x$has_forbidden_chars" != x; then 20147 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20148 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20149 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20150 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20151 # Going to short mode and back again did indeed matter. Since short mode is 20152 # case insensitive, let's make it lowercase to improve readability. 20153 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20154 # Now convert it back to Unix-style (cygpath) 20155 input_path=`$CYGPATH -u "$shortmode_path"` 20156 new_path="$input_path" 20157 fi 20158 fi 20159 20160 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20161 if test "x$test_cygdrive_prefix" = x; then 20162 # As a simple fix, exclude /usr/bin since it's not a real path. 20163 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20164 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20165 # a path prefixed by /cygdrive for fixpath to work. 20166 new_path="$CYGWIN_ROOT_PATH$input_path" 20167 fi 20168 fi 20169 20170 20171 if test "x$path" != "x$new_path"; then 20172 BOOT_JDK="$new_path" 20173 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20174 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20175 fi 20176 20177 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20178 20179 path="$BOOT_JDK" 20180 has_colon=`$ECHO $path | $GREP ^.:` 20181 new_path="$path" 20182 if test "x$has_colon" = x; then 20183 # Not in mixed or Windows style, start by that. 20184 new_path=`cmd //c echo $path` 20185 fi 20186 20187 20188 input_path="$new_path" 20189 # Check if we need to convert this using DOS-style short mode. If the path 20190 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20191 # take no chances and rewrite it. 20192 # Note: m4 eats our [], so we need to use [ and ] instead. 20193 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20194 if test "x$has_forbidden_chars" != x; then 20195 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20196 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20197 fi 20198 20199 20200 windows_path="$new_path" 20201 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20202 unix_path=`$CYGPATH -u "$windows_path"` 20203 new_path="$unix_path" 20204 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20205 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20206 new_path="$unix_path" 20207 fi 20208 20209 if test "x$path" != "x$new_path"; then 20210 BOOT_JDK="$new_path" 20211 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20212 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20213 fi 20214 20215 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20216 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20217 20218 else 20219 # We're on a posix platform. Hooray! :) 20220 path="$BOOT_JDK" 20221 has_space=`$ECHO "$path" | $GREP " "` 20222 if test "x$has_space" != x; then 20223 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20224 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20225 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20226 fi 20227 20228 # Use eval to expand a potential ~ 20229 eval path="$path" 20230 if test ! -f "$path" && test ! -d "$path"; then 20231 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20232 fi 20233 20234 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20235 fi 20236 20237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20238 $as_echo_n "checking for Boot JDK... " >&6; } 20239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20240 $as_echo "$BOOT_JDK" >&6; } 20241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20242 $as_echo_n "checking Boot JDK version... " >&6; } 20243 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20245 $as_echo "$BOOT_JDK_VERSION" >&6; } 20246 fi # end check jdk version 20247 fi # end check rt.jar 20248 fi # end check javac 20249 fi # end check java 20250 fi # end check boot jdk found 20251 fi 20252 20253 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 20254 # Having specified an argument which is incorrect will produce an instant failure; 20255 # we should not go on looking 20256 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 20257 fi 20258 20259 # Test: Is bootjdk available from builddeps? 20260 20261 if test "x$BOOT_JDK_FOUND" = xno; then 20262 # Now execute the test 20263 20264 20265 20266 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 20267 # Source the builddeps file again, to make sure it uses the latest variables! 20268 . $builddepsfile 20269 # Look for a target and build machine specific resource! 20270 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 20271 if test "x$resource" = x; then 20272 # Ok, lets instead look for a target specific resource 20273 eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}} 20274 fi 20275 if test "x$resource" = x; then 20276 # Ok, lets instead look for a build specific resource 20277 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}} 20278 fi 20279 if test "x$resource" = x; then 20280 # Ok, lets instead look for a generic resource 20281 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.) 20282 resource=${builddep_bootjdk} 20283 fi 20284 if test "x$resource" != x; then 20285 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5 20286 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;} 20287 # If the resource in the builddeps.conf file is an existing directory, 20288 # for example /java/linux/cups 20289 if test -d ${resource}; then 20290 depdir=${resource} 20291 else 20292 20293 # bootjdk is for example mymodule 20294 # $resource is for example libs/general/libmymod_1_2_3.zip 20295 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 20296 # $with_builddeps_dir is for example /localhome/builddeps 20297 # depdir is the name of the variable into which we store the depdir, eg MYMOD 20298 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 20299 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 20300 filename=`basename $resource` 20301 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 20302 filebase=${filename%%.*} 20303 extension=${filename#*.} 20304 installdir=$with_builddeps_dir/$filebase 20305 if test ! -f $installdir/$filename.unpacked; then 20306 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5 20307 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;} 20308 if test ! -d $installdir; then 20309 mkdir -p $installdir 20310 fi 20311 if test ! -d $installdir; then 20312 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 20313 fi 20314 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX` 20315 touch $tmpfile 20316 if test ! -f $tmpfile; then 20317 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 20318 fi 20319 20320 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 20321 # $tmpfile is the local file name for the downloaded file. 20322 VALID_TOOL=no 20323 if test "x$BDEPS_FTP" = xwget; then 20324 VALID_TOOL=yes 20325 wget -O $tmpfile $with_builddeps_server/$resource 20326 fi 20327 if test "x$BDEPS_FTP" = xlftp; then 20328 VALID_TOOL=yes 20329 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 20330 fi 20331 if test "x$BDEPS_FTP" = xftp; then 20332 VALID_TOOL=yes 20333 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 20334 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 20335 FTPUSERPWD=${FTPSERVER%%@*} 20336 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 20337 FTPUSER=${userpwd%%:*} 20338 FTPPWD=${userpwd#*@} 20339 FTPSERVER=${FTPSERVER#*@} 20340 else 20341 FTPUSER=ftp 20342 FTPPWD=ftp 20343 fi 20344 # the "pass" command does not work on some 20345 # ftp clients (read ftp.exe) but if it works, 20346 # passive mode is better! 20347 ( \ 20348 echo "user $FTPUSER $FTPPWD" ; \ 20349 echo "pass" ; \ 20350 echo "bin" ; \ 20351 echo "get $FTPPATH $tmpfile" ; \ 20352 ) | ftp -in $FTPSERVER 20353 fi 20354 if test "x$VALID_TOOL" != xyes; then 20355 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 20356 fi 20357 20358 mv $tmpfile $installdir/$filename 20359 if test ! -s $installdir/$filename; then 20360 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 20361 fi 20362 case "$extension" in 20363 zip) echo "Unzipping $installdir/$filename..." 20364 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 20365 ;; 20366 tar.gz) echo "Untaring $installdir/$filename..." 20367 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20368 ;; 20369 tgz) echo "Untaring $installdir/$filename..." 20370 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20371 ;; 20372 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 20373 ;; 20374 esac 20375 fi 20376 if test -f $installdir/$filename.unpacked; then 20377 depdir=$installdir 20378 fi 20379 20380 fi 20381 # Source the builddeps file again, because in the previous command, the depdir 20382 # was updated to point at the current build dependency install directory. 20383 . $builddepsfile 20384 # Now extract variables from the builddeps.conf files. 20385 theroot=${builddep_bootjdk_ROOT} 20386 thecflags=${builddep_bootjdk_CFLAGS} 20387 thelibs=${builddep_bootjdk_LIBS} 20388 if test "x$depdir" = x; then 20389 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5 20390 fi 20391 BOOT_JDK=$depdir 20392 if test "x$theroot" != x; then 20393 BOOT_JDK="$theroot" 20394 fi 20395 if test "x$thecflags" != x; then 20396 BOOT_JDK_CFLAGS="$thecflags" 20397 fi 20398 if test "x$thelibs" != x; then 20399 BOOT_JDK_LIBS="$thelibs" 20400 fi 20401 BOOT_JDK_FOUND=maybe 20402 else BOOT_JDK_FOUND=no 20403 20404 fi 20405 else BOOT_JDK_FOUND=no 20406 20407 fi 20408 20409 20410 20411 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20412 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20413 # Do we have a bin/java? 20414 if test ! -x "$BOOT_JDK/bin/java"; then 20415 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20416 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20417 BOOT_JDK_FOUND=no 20418 else 20419 # Do we have a bin/javac? 20420 if test ! -x "$BOOT_JDK/bin/javac"; then 20421 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20422 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20423 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20424 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20425 BOOT_JDK_FOUND=no 20426 else 20427 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20428 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20429 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20430 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20431 BOOT_JDK_FOUND=no 20432 else 20433 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20434 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20435 20436 # Extra M4 quote needed to protect [] in grep expression. 20437 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20438 if test "x$FOUND_VERSION_78" = x; then 20439 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20440 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20441 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20442 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20443 BOOT_JDK_FOUND=no 20444 else 20445 # We're done! :-) 20446 BOOT_JDK_FOUND=yes 20447 20448 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20449 20450 # Input might be given as Windows format, start by converting to 20451 # unix format. 20452 path="$BOOT_JDK" 20453 new_path=`$CYGPATH -u "$path"` 20454 20455 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20456 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20457 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20458 # "foo.exe" is OK but "foo" is an error. 20459 # 20460 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20461 # It is also a way to make sure we got the proper file name for the real test later on. 20462 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20463 if test "x$test_shortpath" = x; then 20464 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20465 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20466 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20467 fi 20468 20469 # Call helper function which possibly converts this using DOS-style short mode. 20470 # If so, the updated path is stored in $new_path. 20471 20472 input_path="$new_path" 20473 # Check if we need to convert this using DOS-style short mode. If the path 20474 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20475 # take no chances and rewrite it. 20476 # Note: m4 eats our [], so we need to use [ and ] instead. 20477 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20478 if test "x$has_forbidden_chars" != x; then 20479 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20480 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20481 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20482 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20483 # Going to short mode and back again did indeed matter. Since short mode is 20484 # case insensitive, let's make it lowercase to improve readability. 20485 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20486 # Now convert it back to Unix-style (cygpath) 20487 input_path=`$CYGPATH -u "$shortmode_path"` 20488 new_path="$input_path" 20489 fi 20490 fi 20491 20492 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20493 if test "x$test_cygdrive_prefix" = x; then 20494 # As a simple fix, exclude /usr/bin since it's not a real path. 20495 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20496 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20497 # a path prefixed by /cygdrive for fixpath to work. 20498 new_path="$CYGWIN_ROOT_PATH$input_path" 20499 fi 20500 fi 20501 20502 20503 if test "x$path" != "x$new_path"; then 20504 BOOT_JDK="$new_path" 20505 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20506 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20507 fi 20508 20509 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20510 20511 path="$BOOT_JDK" 20512 has_colon=`$ECHO $path | $GREP ^.:` 20513 new_path="$path" 20514 if test "x$has_colon" = x; then 20515 # Not in mixed or Windows style, start by that. 20516 new_path=`cmd //c echo $path` 20517 fi 20518 20519 20520 input_path="$new_path" 20521 # Check if we need to convert this using DOS-style short mode. If the path 20522 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20523 # take no chances and rewrite it. 20524 # Note: m4 eats our [], so we need to use [ and ] instead. 20525 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20526 if test "x$has_forbidden_chars" != x; then 20527 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20528 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20529 fi 20530 20531 20532 windows_path="$new_path" 20533 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20534 unix_path=`$CYGPATH -u "$windows_path"` 20535 new_path="$unix_path" 20536 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20537 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20538 new_path="$unix_path" 20539 fi 20540 20541 if test "x$path" != "x$new_path"; then 20542 BOOT_JDK="$new_path" 20543 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20544 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20545 fi 20546 20547 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20548 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20549 20550 else 20551 # We're on a posix platform. Hooray! :) 20552 path="$BOOT_JDK" 20553 has_space=`$ECHO "$path" | $GREP " "` 20554 if test "x$has_space" != x; then 20555 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20556 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20557 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20558 fi 20559 20560 # Use eval to expand a potential ~ 20561 eval path="$path" 20562 if test ! -f "$path" && test ! -d "$path"; then 20563 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20564 fi 20565 20566 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20567 fi 20568 20569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20570 $as_echo_n "checking for Boot JDK... " >&6; } 20571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20572 $as_echo "$BOOT_JDK" >&6; } 20573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20574 $as_echo_n "checking Boot JDK version... " >&6; } 20575 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20577 $as_echo "$BOOT_JDK_VERSION" >&6; } 20578 fi # end check jdk version 20579 fi # end check rt.jar 20580 fi # end check javac 20581 fi # end check java 20582 fi # end check boot jdk found 20583 fi 20584 20585 20586 # Test: Is $JAVA_HOME set? 20587 20588 if test "x$BOOT_JDK_FOUND" = xno; then 20589 # Now execute the test 20590 20591 if test "x$JAVA_HOME" != x; then 20592 JAVA_HOME_PROCESSED="$JAVA_HOME" 20593 20594 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20595 20596 # Input might be given as Windows format, start by converting to 20597 # unix format. 20598 path="$JAVA_HOME_PROCESSED" 20599 new_path=`$CYGPATH -u "$path"` 20600 20601 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20602 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20603 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20604 # "foo.exe" is OK but "foo" is an error. 20605 # 20606 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20607 # It is also a way to make sure we got the proper file name for the real test later on. 20608 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20609 if test "x$test_shortpath" = x; then 20610 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 20611 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 20612 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 20613 fi 20614 20615 # Call helper function which possibly converts this using DOS-style short mode. 20616 # If so, the updated path is stored in $new_path. 20617 20618 input_path="$new_path" 20619 # Check if we need to convert this using DOS-style short mode. If the path 20620 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20621 # take no chances and rewrite it. 20622 # Note: m4 eats our [], so we need to use [ and ] instead. 20623 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20624 if test "x$has_forbidden_chars" != x; then 20625 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20626 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20627 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20628 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20629 # Going to short mode and back again did indeed matter. Since short mode is 20630 # case insensitive, let's make it lowercase to improve readability. 20631 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20632 # Now convert it back to Unix-style (cygpath) 20633 input_path=`$CYGPATH -u "$shortmode_path"` 20634 new_path="$input_path" 20635 fi 20636 fi 20637 20638 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20639 if test "x$test_cygdrive_prefix" = x; then 20640 # As a simple fix, exclude /usr/bin since it's not a real path. 20641 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20642 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20643 # a path prefixed by /cygdrive for fixpath to work. 20644 new_path="$CYGWIN_ROOT_PATH$input_path" 20645 fi 20646 fi 20647 20648 20649 if test "x$path" != "x$new_path"; then 20650 JAVA_HOME_PROCESSED="$new_path" 20651 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 20652 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 20653 fi 20654 20655 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20656 20657 path="$JAVA_HOME_PROCESSED" 20658 has_colon=`$ECHO $path | $GREP ^.:` 20659 new_path="$path" 20660 if test "x$has_colon" = x; then 20661 # Not in mixed or Windows style, start by that. 20662 new_path=`cmd //c echo $path` 20663 fi 20664 20665 20666 input_path="$new_path" 20667 # Check if we need to convert this using DOS-style short mode. If the path 20668 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20669 # take no chances and rewrite it. 20670 # Note: m4 eats our [], so we need to use [ and ] instead. 20671 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20672 if test "x$has_forbidden_chars" != x; then 20673 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20674 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20675 fi 20676 20677 20678 windows_path="$new_path" 20679 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20680 unix_path=`$CYGPATH -u "$windows_path"` 20681 new_path="$unix_path" 20682 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20683 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20684 new_path="$unix_path" 20685 fi 20686 20687 if test "x$path" != "x$new_path"; then 20688 JAVA_HOME_PROCESSED="$new_path" 20689 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 20690 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 20691 fi 20692 20693 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20694 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20695 20696 else 20697 # We're on a posix platform. Hooray! :) 20698 path="$JAVA_HOME_PROCESSED" 20699 has_space=`$ECHO "$path" | $GREP " "` 20700 if test "x$has_space" != x; then 20701 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 20702 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 20703 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20704 fi 20705 20706 # Use eval to expand a potential ~ 20707 eval path="$path" 20708 if test ! -f "$path" && test ! -d "$path"; then 20709 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 20710 fi 20711 20712 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 20713 fi 20714 20715 if test ! -d "$JAVA_HOME_PROCESSED"; then 20716 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 20717 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 20718 else 20719 # Aha, the user has set a JAVA_HOME 20720 # let us use that as the Boot JDK. 20721 BOOT_JDK="$JAVA_HOME_PROCESSED" 20722 BOOT_JDK_FOUND=maybe 20723 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 20724 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 20725 fi 20726 fi 20727 20728 20729 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20730 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20731 # Do we have a bin/java? 20732 if test ! -x "$BOOT_JDK/bin/java"; then 20733 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20734 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20735 BOOT_JDK_FOUND=no 20736 else 20737 # Do we have a bin/javac? 20738 if test ! -x "$BOOT_JDK/bin/javac"; then 20739 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20740 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20741 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20742 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20743 BOOT_JDK_FOUND=no 20744 else 20745 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20746 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20747 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20748 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20749 BOOT_JDK_FOUND=no 20750 else 20751 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20752 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20753 20754 # Extra M4 quote needed to protect [] in grep expression. 20755 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20756 if test "x$FOUND_VERSION_78" = x; then 20757 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20758 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20759 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20760 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20761 BOOT_JDK_FOUND=no 20762 else 20763 # We're done! :-) 20764 BOOT_JDK_FOUND=yes 20765 20766 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20767 20768 # Input might be given as Windows format, start by converting to 20769 # unix format. 20770 path="$BOOT_JDK" 20771 new_path=`$CYGPATH -u "$path"` 20772 20773 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20774 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20775 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20776 # "foo.exe" is OK but "foo" is an error. 20777 # 20778 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20779 # It is also a way to make sure we got the proper file name for the real test later on. 20780 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20781 if test "x$test_shortpath" = x; then 20782 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20783 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20784 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20785 fi 20786 20787 # Call helper function which possibly converts this using DOS-style short mode. 20788 # If so, the updated path is stored in $new_path. 20789 20790 input_path="$new_path" 20791 # Check if we need to convert this using DOS-style short mode. If the path 20792 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20793 # take no chances and rewrite it. 20794 # Note: m4 eats our [], so we need to use [ and ] instead. 20795 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20796 if test "x$has_forbidden_chars" != x; then 20797 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20798 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20799 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20800 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20801 # Going to short mode and back again did indeed matter. Since short mode is 20802 # case insensitive, let's make it lowercase to improve readability. 20803 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20804 # Now convert it back to Unix-style (cygpath) 20805 input_path=`$CYGPATH -u "$shortmode_path"` 20806 new_path="$input_path" 20807 fi 20808 fi 20809 20810 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20811 if test "x$test_cygdrive_prefix" = x; then 20812 # As a simple fix, exclude /usr/bin since it's not a real path. 20813 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20814 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20815 # a path prefixed by /cygdrive for fixpath to work. 20816 new_path="$CYGWIN_ROOT_PATH$input_path" 20817 fi 20818 fi 20819 20820 20821 if test "x$path" != "x$new_path"; then 20822 BOOT_JDK="$new_path" 20823 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20824 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20825 fi 20826 20827 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20828 20829 path="$BOOT_JDK" 20830 has_colon=`$ECHO $path | $GREP ^.:` 20831 new_path="$path" 20832 if test "x$has_colon" = x; then 20833 # Not in mixed or Windows style, start by that. 20834 new_path=`cmd //c echo $path` 20835 fi 20836 20837 20838 input_path="$new_path" 20839 # Check if we need to convert this using DOS-style short mode. If the path 20840 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20841 # take no chances and rewrite it. 20842 # Note: m4 eats our [], so we need to use [ and ] instead. 20843 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20844 if test "x$has_forbidden_chars" != x; then 20845 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20846 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20847 fi 20848 20849 20850 windows_path="$new_path" 20851 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20852 unix_path=`$CYGPATH -u "$windows_path"` 20853 new_path="$unix_path" 20854 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20855 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20856 new_path="$unix_path" 20857 fi 20858 20859 if test "x$path" != "x$new_path"; then 20860 BOOT_JDK="$new_path" 20861 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20862 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20863 fi 20864 20865 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20866 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20867 20868 else 20869 # We're on a posix platform. Hooray! :) 20870 path="$BOOT_JDK" 20871 has_space=`$ECHO "$path" | $GREP " "` 20872 if test "x$has_space" != x; then 20873 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20874 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20875 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20876 fi 20877 20878 # Use eval to expand a potential ~ 20879 eval path="$path" 20880 if test ! -f "$path" && test ! -d "$path"; then 20881 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20882 fi 20883 20884 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20885 fi 20886 20887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20888 $as_echo_n "checking for Boot JDK... " >&6; } 20889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20890 $as_echo "$BOOT_JDK" >&6; } 20891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20892 $as_echo_n "checking Boot JDK version... " >&6; } 20893 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20895 $as_echo "$BOOT_JDK_VERSION" >&6; } 20896 fi # end check jdk version 20897 fi # end check rt.jar 20898 fi # end check javac 20899 fi # end check java 20900 fi # end check boot jdk found 20901 fi 20902 20903 20904 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 20905 20906 if test "x$BOOT_JDK_FOUND" = xno; then 20907 # Now execute the test 20908 20909 if test -x /usr/libexec/java_home; then 20910 BOOT_JDK=`/usr/libexec/java_home` 20911 BOOT_JDK_FOUND=maybe 20912 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home" >&5 20913 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home" >&6;} 20914 fi 20915 20916 20917 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20918 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20919 # Do we have a bin/java? 20920 if test ! -x "$BOOT_JDK/bin/java"; then 20921 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20922 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20923 BOOT_JDK_FOUND=no 20924 else 20925 # Do we have a bin/javac? 20926 if test ! -x "$BOOT_JDK/bin/javac"; then 20927 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20928 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20929 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20930 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20931 BOOT_JDK_FOUND=no 20932 else 20933 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20934 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20935 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20936 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20937 BOOT_JDK_FOUND=no 20938 else 20939 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20940 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20941 20942 # Extra M4 quote needed to protect [] in grep expression. 20943 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20944 if test "x$FOUND_VERSION_78" = x; then 20945 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20946 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20947 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20948 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20949 BOOT_JDK_FOUND=no 20950 else 20951 # We're done! :-) 20952 BOOT_JDK_FOUND=yes 20953 20954 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20955 20956 # Input might be given as Windows format, start by converting to 20957 # unix format. 20958 path="$BOOT_JDK" 20959 new_path=`$CYGPATH -u "$path"` 20960 20961 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20962 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20963 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20964 # "foo.exe" is OK but "foo" is an error. 20965 # 20966 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20967 # It is also a way to make sure we got the proper file name for the real test later on. 20968 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20969 if test "x$test_shortpath" = x; then 20970 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20971 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20972 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20973 fi 20974 20975 # Call helper function which possibly converts this using DOS-style short mode. 20976 # If so, the updated path is stored in $new_path. 20977 20978 input_path="$new_path" 20979 # Check if we need to convert this using DOS-style short mode. If the path 20980 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20981 # take no chances and rewrite it. 20982 # Note: m4 eats our [], so we need to use [ and ] instead. 20983 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20984 if test "x$has_forbidden_chars" != x; then 20985 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20986 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20987 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20988 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20989 # Going to short mode and back again did indeed matter. Since short mode is 20990 # case insensitive, let's make it lowercase to improve readability. 20991 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20992 # Now convert it back to Unix-style (cygpath) 20993 input_path=`$CYGPATH -u "$shortmode_path"` 20994 new_path="$input_path" 20995 fi 20996 fi 20997 20998 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20999 if test "x$test_cygdrive_prefix" = x; then 21000 # As a simple fix, exclude /usr/bin since it's not a real path. 21001 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21002 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21003 # a path prefixed by /cygdrive for fixpath to work. 21004 new_path="$CYGWIN_ROOT_PATH$input_path" 21005 fi 21006 fi 21007 21008 21009 if test "x$path" != "x$new_path"; then 21010 BOOT_JDK="$new_path" 21011 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21012 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21013 fi 21014 21015 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21016 21017 path="$BOOT_JDK" 21018 has_colon=`$ECHO $path | $GREP ^.:` 21019 new_path="$path" 21020 if test "x$has_colon" = x; then 21021 # Not in mixed or Windows style, start by that. 21022 new_path=`cmd //c echo $path` 21023 fi 21024 21025 21026 input_path="$new_path" 21027 # Check if we need to convert this using DOS-style short mode. If the path 21028 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21029 # take no chances and rewrite it. 21030 # Note: m4 eats our [], so we need to use [ and ] instead. 21031 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21032 if test "x$has_forbidden_chars" != x; then 21033 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21034 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21035 fi 21036 21037 21038 windows_path="$new_path" 21039 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21040 unix_path=`$CYGPATH -u "$windows_path"` 21041 new_path="$unix_path" 21042 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21043 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21044 new_path="$unix_path" 21045 fi 21046 21047 if test "x$path" != "x$new_path"; then 21048 BOOT_JDK="$new_path" 21049 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21050 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21051 fi 21052 21053 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21054 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21055 21056 else 21057 # We're on a posix platform. Hooray! :) 21058 path="$BOOT_JDK" 21059 has_space=`$ECHO "$path" | $GREP " "` 21060 if test "x$has_space" != x; then 21061 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21062 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21063 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21064 fi 21065 21066 # Use eval to expand a potential ~ 21067 eval path="$path" 21068 if test ! -f "$path" && test ! -d "$path"; then 21069 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21070 fi 21071 21072 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21073 fi 21074 21075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21076 $as_echo_n "checking for Boot JDK... " >&6; } 21077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21078 $as_echo "$BOOT_JDK" >&6; } 21079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21080 $as_echo_n "checking Boot JDK version... " >&6; } 21081 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21083 $as_echo "$BOOT_JDK_VERSION" >&6; } 21084 fi # end check jdk version 21085 fi # end check rt.jar 21086 fi # end check javac 21087 fi # end check java 21088 fi # end check boot jdk found 21089 fi 21090 21091 21092 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 21093 21094 if test "x$BOOT_JDK_FOUND" = xno; then 21095 # Now execute the test 21096 21097 # Extract the first word of "javac", so it can be a program name with args. 21098 set dummy javac; ac_word=$2 21099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21100 $as_echo_n "checking for $ac_word... " >&6; } 21101 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 21102 $as_echo_n "(cached) " >&6 21103 else 21104 case $JAVAC_CHECK in 21105 [\\/]* | ?:[\\/]*) 21106 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 21107 ;; 21108 *) 21109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21110 for as_dir in $PATH 21111 do 21112 IFS=$as_save_IFS 21113 test -z "$as_dir" && as_dir=. 21114 for ac_exec_ext in '' $ac_executable_extensions; do 21115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21116 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 21117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21118 break 2 21119 fi 21120 done 21121 done 21122 IFS=$as_save_IFS 21123 21124 ;; 21125 esac 21126 fi 21127 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 21128 if test -n "$JAVAC_CHECK"; then 21129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 21130 $as_echo "$JAVAC_CHECK" >&6; } 21131 else 21132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21133 $as_echo "no" >&6; } 21134 fi 21135 21136 21137 # Extract the first word of "java", so it can be a program name with args. 21138 set dummy java; ac_word=$2 21139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21140 $as_echo_n "checking for $ac_word... " >&6; } 21141 if ${ac_cv_path_JAVA_CHECK+:} false; then : 21142 $as_echo_n "(cached) " >&6 21143 else 21144 case $JAVA_CHECK in 21145 [\\/]* | ?:[\\/]*) 21146 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 21147 ;; 21148 *) 21149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21150 for as_dir in $PATH 21151 do 21152 IFS=$as_save_IFS 21153 test -z "$as_dir" && as_dir=. 21154 for ac_exec_ext in '' $ac_executable_extensions; do 21155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21156 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 21157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21158 break 2 21159 fi 21160 done 21161 done 21162 IFS=$as_save_IFS 21163 21164 ;; 21165 esac 21166 fi 21167 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 21168 if test -n "$JAVA_CHECK"; then 21169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 21170 $as_echo "$JAVA_CHECK" >&6; } 21171 else 21172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21173 $as_echo "no" >&6; } 21174 fi 21175 21176 21177 BINARY="$JAVAC_CHECK" 21178 if test "x$JAVAC_CHECK" = x; then 21179 BINARY="$JAVA_CHECK" 21180 fi 21181 if test "x$BINARY" != x; then 21182 # So there is a java(c) binary, it might be part of a JDK. 21183 # Lets find the JDK/JRE directory by following symbolic links. 21184 # Linux/GNU systems often have links from /usr/bin/java to 21185 # /etc/alternatives/java to the real JDK binary. 21186 21187 if test "x$OPENJDK_BUILD_OS" != xwindows; then 21188 # Follow a chain of symbolic links. Use readlink 21189 # where it exists, else fall back to horribly 21190 # complicated shell code. 21191 if test "x$READLINK_TESTED" != yes; then 21192 # On MacOSX there is a readlink tool with a different 21193 # purpose than the GNU readlink tool. Check the found readlink. 21194 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 21195 if test "x$ISGNU" = x; then 21196 # A readlink that we do not know how to use. 21197 # Are there other non-GNU readlinks out there? 21198 READLINK_TESTED=yes 21199 READLINK= 21200 fi 21201 fi 21202 21203 if test "x$READLINK" != x; then 21204 BINARY=`$READLINK -f $BINARY` 21205 else 21206 # Save the current directory for restoring afterwards 21207 STARTDIR=$PWD 21208 COUNTER=0 21209 sym_link_dir=`$DIRNAME $BINARY` 21210 sym_link_file=`$BASENAME $BINARY` 21211 cd $sym_link_dir 21212 # Use -P flag to resolve symlinks in directories. 21213 cd `$THEPWDCMD -P` 21214 sym_link_dir=`$THEPWDCMD -P` 21215 # Resolve file symlinks 21216 while test $COUNTER -lt 20; do 21217 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 21218 if test "x$ISLINK" == x; then 21219 # This is not a symbolic link! We are done! 21220 break 21221 fi 21222 # Again resolve directory symlinks since the target of the just found 21223 # link could be in a different directory 21224 cd `$DIRNAME $ISLINK` 21225 sym_link_dir=`$THEPWDCMD -P` 21226 sym_link_file=`$BASENAME $ISLINK` 21227 let COUNTER=COUNTER+1 21228 done 21229 cd $STARTDIR 21230 BINARY=$sym_link_dir/$sym_link_file 21231 fi 21232 fi 21233 21234 BOOT_JDK=`dirname "$BINARY"` 21235 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 21236 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 21237 # Looks like we found ourselves an JDK 21238 BOOT_JDK_FOUND=maybe 21239 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 21240 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 21241 fi 21242 fi 21243 21244 21245 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21246 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21247 # Do we have a bin/java? 21248 if test ! -x "$BOOT_JDK/bin/java"; then 21249 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21250 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21251 BOOT_JDK_FOUND=no 21252 else 21253 # Do we have a bin/javac? 21254 if test ! -x "$BOOT_JDK/bin/javac"; then 21255 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21256 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21257 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21258 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21259 BOOT_JDK_FOUND=no 21260 else 21261 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21262 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21263 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21264 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21265 BOOT_JDK_FOUND=no 21266 else 21267 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21268 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21269 21270 # Extra M4 quote needed to protect [] in grep expression. 21271 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21272 if test "x$FOUND_VERSION_78" = x; then 21273 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21274 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21275 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21276 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21277 BOOT_JDK_FOUND=no 21278 else 21279 # We're done! :-) 21280 BOOT_JDK_FOUND=yes 21281 21282 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21283 21284 # Input might be given as Windows format, start by converting to 21285 # unix format. 21286 path="$BOOT_JDK" 21287 new_path=`$CYGPATH -u "$path"` 21288 21289 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21290 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21291 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21292 # "foo.exe" is OK but "foo" is an error. 21293 # 21294 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21295 # It is also a way to make sure we got the proper file name for the real test later on. 21296 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21297 if test "x$test_shortpath" = x; then 21298 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21299 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21300 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21301 fi 21302 21303 # Call helper function which possibly converts this using DOS-style short mode. 21304 # If so, the updated path is stored in $new_path. 21305 21306 input_path="$new_path" 21307 # Check if we need to convert this using DOS-style short mode. If the path 21308 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21309 # take no chances and rewrite it. 21310 # Note: m4 eats our [], so we need to use [ and ] instead. 21311 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21312 if test "x$has_forbidden_chars" != x; then 21313 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21314 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21315 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21316 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21317 # Going to short mode and back again did indeed matter. Since short mode is 21318 # case insensitive, let's make it lowercase to improve readability. 21319 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21320 # Now convert it back to Unix-style (cygpath) 21321 input_path=`$CYGPATH -u "$shortmode_path"` 21322 new_path="$input_path" 21323 fi 21324 fi 21325 21326 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21327 if test "x$test_cygdrive_prefix" = x; then 21328 # As a simple fix, exclude /usr/bin since it's not a real path. 21329 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21330 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21331 # a path prefixed by /cygdrive for fixpath to work. 21332 new_path="$CYGWIN_ROOT_PATH$input_path" 21333 fi 21334 fi 21335 21336 21337 if test "x$path" != "x$new_path"; then 21338 BOOT_JDK="$new_path" 21339 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21340 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21341 fi 21342 21343 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21344 21345 path="$BOOT_JDK" 21346 has_colon=`$ECHO $path | $GREP ^.:` 21347 new_path="$path" 21348 if test "x$has_colon" = x; then 21349 # Not in mixed or Windows style, start by that. 21350 new_path=`cmd //c echo $path` 21351 fi 21352 21353 21354 input_path="$new_path" 21355 # Check if we need to convert this using DOS-style short mode. If the path 21356 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21357 # take no chances and rewrite it. 21358 # Note: m4 eats our [], so we need to use [ and ] instead. 21359 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21360 if test "x$has_forbidden_chars" != x; then 21361 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21362 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21363 fi 21364 21365 21366 windows_path="$new_path" 21367 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21368 unix_path=`$CYGPATH -u "$windows_path"` 21369 new_path="$unix_path" 21370 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21371 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21372 new_path="$unix_path" 21373 fi 21374 21375 if test "x$path" != "x$new_path"; then 21376 BOOT_JDK="$new_path" 21377 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21378 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21379 fi 21380 21381 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21382 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21383 21384 else 21385 # We're on a posix platform. Hooray! :) 21386 path="$BOOT_JDK" 21387 has_space=`$ECHO "$path" | $GREP " "` 21388 if test "x$has_space" != x; then 21389 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21390 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21391 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21392 fi 21393 21394 # Use eval to expand a potential ~ 21395 eval path="$path" 21396 if test ! -f "$path" && test ! -d "$path"; then 21397 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21398 fi 21399 21400 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21401 fi 21402 21403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21404 $as_echo_n "checking for Boot JDK... " >&6; } 21405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21406 $as_echo "$BOOT_JDK" >&6; } 21407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21408 $as_echo_n "checking Boot JDK version... " >&6; } 21409 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21411 $as_echo "$BOOT_JDK_VERSION" >&6; } 21412 fi # end check jdk version 21413 fi # end check rt.jar 21414 fi # end check javac 21415 fi # end check java 21416 fi # end check boot jdk found 21417 fi 21418 21419 21420 # Test: Is there a JDK installed in default, well-known locations? 21421 21422 if test "x$BOOT_JDK_FOUND" = xno; then 21423 # Now execute the test 21424 21425 if test "x$OPENJDK_TARGET_OS" = xwindows; then 21426 21427 if test "x$BOOT_JDK_FOUND" = xno; then 21428 # Now execute the test 21429 21430 if test "x$ProgramW6432" != x; then 21431 VIRTUAL_DIR="$ProgramW6432/Java" 21432 21433 windows_path="$VIRTUAL_DIR" 21434 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21435 unix_path=`$CYGPATH -u "$windows_path"` 21436 VIRTUAL_DIR="$unix_path" 21437 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21438 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21439 VIRTUAL_DIR="$unix_path" 21440 fi 21441 21442 21443 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 21444 BOOT_JDK_SUFFIX="" 21445 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 21446 if test "x$ALL_JDKS_FOUND" != x; then 21447 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 21448 21449 if test "x$BOOT_JDK_FOUND" = xno; then 21450 # Now execute the test 21451 21452 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 21453 if test -d "$BOOT_JDK"; then 21454 BOOT_JDK_FOUND=maybe 21455 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 21456 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 21457 fi 21458 21459 21460 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21461 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21462 # Do we have a bin/java? 21463 if test ! -x "$BOOT_JDK/bin/java"; then 21464 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21465 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21466 BOOT_JDK_FOUND=no 21467 else 21468 # Do we have a bin/javac? 21469 if test ! -x "$BOOT_JDK/bin/javac"; then 21470 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21471 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21472 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21473 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21474 BOOT_JDK_FOUND=no 21475 else 21476 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21477 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21478 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21479 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21480 BOOT_JDK_FOUND=no 21481 else 21482 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21483 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21484 21485 # Extra M4 quote needed to protect [] in grep expression. 21486 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21487 if test "x$FOUND_VERSION_78" = x; then 21488 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21489 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21490 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21491 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21492 BOOT_JDK_FOUND=no 21493 else 21494 # We're done! :-) 21495 BOOT_JDK_FOUND=yes 21496 21497 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21498 21499 # Input might be given as Windows format, start by converting to 21500 # unix format. 21501 path="$BOOT_JDK" 21502 new_path=`$CYGPATH -u "$path"` 21503 21504 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21505 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21506 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21507 # "foo.exe" is OK but "foo" is an error. 21508 # 21509 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21510 # It is also a way to make sure we got the proper file name for the real test later on. 21511 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21512 if test "x$test_shortpath" = x; then 21513 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21514 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21515 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21516 fi 21517 21518 # Call helper function which possibly converts this using DOS-style short mode. 21519 # If so, the updated path is stored in $new_path. 21520 21521 input_path="$new_path" 21522 # Check if we need to convert this using DOS-style short mode. If the path 21523 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21524 # take no chances and rewrite it. 21525 # Note: m4 eats our [], so we need to use [ and ] instead. 21526 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21527 if test "x$has_forbidden_chars" != x; then 21528 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21529 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21530 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21531 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21532 # Going to short mode and back again did indeed matter. Since short mode is 21533 # case insensitive, let's make it lowercase to improve readability. 21534 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21535 # Now convert it back to Unix-style (cygpath) 21536 input_path=`$CYGPATH -u "$shortmode_path"` 21537 new_path="$input_path" 21538 fi 21539 fi 21540 21541 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21542 if test "x$test_cygdrive_prefix" = x; then 21543 # As a simple fix, exclude /usr/bin since it's not a real path. 21544 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21545 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21546 # a path prefixed by /cygdrive for fixpath to work. 21547 new_path="$CYGWIN_ROOT_PATH$input_path" 21548 fi 21549 fi 21550 21551 21552 if test "x$path" != "x$new_path"; then 21553 BOOT_JDK="$new_path" 21554 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21555 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21556 fi 21557 21558 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21559 21560 path="$BOOT_JDK" 21561 has_colon=`$ECHO $path | $GREP ^.:` 21562 new_path="$path" 21563 if test "x$has_colon" = x; then 21564 # Not in mixed or Windows style, start by that. 21565 new_path=`cmd //c echo $path` 21566 fi 21567 21568 21569 input_path="$new_path" 21570 # Check if we need to convert this using DOS-style short mode. If the path 21571 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21572 # take no chances and rewrite it. 21573 # Note: m4 eats our [], so we need to use [ and ] instead. 21574 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21575 if test "x$has_forbidden_chars" != x; then 21576 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21577 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21578 fi 21579 21580 21581 windows_path="$new_path" 21582 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21583 unix_path=`$CYGPATH -u "$windows_path"` 21584 new_path="$unix_path" 21585 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21586 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21587 new_path="$unix_path" 21588 fi 21589 21590 if test "x$path" != "x$new_path"; then 21591 BOOT_JDK="$new_path" 21592 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21593 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21594 fi 21595 21596 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21597 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21598 21599 else 21600 # We're on a posix platform. Hooray! :) 21601 path="$BOOT_JDK" 21602 has_space=`$ECHO "$path" | $GREP " "` 21603 if test "x$has_space" != x; then 21604 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21605 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21606 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21607 fi 21608 21609 # Use eval to expand a potential ~ 21610 eval path="$path" 21611 if test ! -f "$path" && test ! -d "$path"; then 21612 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21613 fi 21614 21615 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21616 fi 21617 21618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21619 $as_echo_n "checking for Boot JDK... " >&6; } 21620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21621 $as_echo "$BOOT_JDK" >&6; } 21622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21623 $as_echo_n "checking Boot JDK version... " >&6; } 21624 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21626 $as_echo "$BOOT_JDK_VERSION" >&6; } 21627 fi # end check jdk version 21628 fi # end check rt.jar 21629 fi # end check javac 21630 fi # end check java 21631 fi # end check boot jdk found 21632 fi 21633 21634 done 21635 fi 21636 21637 fi 21638 21639 21640 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21641 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21642 # Do we have a bin/java? 21643 if test ! -x "$BOOT_JDK/bin/java"; then 21644 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21645 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21646 BOOT_JDK_FOUND=no 21647 else 21648 # Do we have a bin/javac? 21649 if test ! -x "$BOOT_JDK/bin/javac"; then 21650 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21651 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21652 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21653 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21654 BOOT_JDK_FOUND=no 21655 else 21656 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21657 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21658 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21659 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21660 BOOT_JDK_FOUND=no 21661 else 21662 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21663 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21664 21665 # Extra M4 quote needed to protect [] in grep expression. 21666 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21667 if test "x$FOUND_VERSION_78" = x; then 21668 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21669 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21670 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21671 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21672 BOOT_JDK_FOUND=no 21673 else 21674 # We're done! :-) 21675 BOOT_JDK_FOUND=yes 21676 21677 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21678 21679 # Input might be given as Windows format, start by converting to 21680 # unix format. 21681 path="$BOOT_JDK" 21682 new_path=`$CYGPATH -u "$path"` 21683 21684 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21685 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21686 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21687 # "foo.exe" is OK but "foo" is an error. 21688 # 21689 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21690 # It is also a way to make sure we got the proper file name for the real test later on. 21691 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21692 if test "x$test_shortpath" = x; then 21693 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21694 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21695 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21696 fi 21697 21698 # Call helper function which possibly converts this using DOS-style short mode. 21699 # If so, the updated path is stored in $new_path. 21700 21701 input_path="$new_path" 21702 # Check if we need to convert this using DOS-style short mode. If the path 21703 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21704 # take no chances and rewrite it. 21705 # Note: m4 eats our [], so we need to use [ and ] instead. 21706 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21707 if test "x$has_forbidden_chars" != x; then 21708 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21709 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21710 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21711 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21712 # Going to short mode and back again did indeed matter. Since short mode is 21713 # case insensitive, let's make it lowercase to improve readability. 21714 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21715 # Now convert it back to Unix-style (cygpath) 21716 input_path=`$CYGPATH -u "$shortmode_path"` 21717 new_path="$input_path" 21718 fi 21719 fi 21720 21721 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21722 if test "x$test_cygdrive_prefix" = x; then 21723 # As a simple fix, exclude /usr/bin since it's not a real path. 21724 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21725 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21726 # a path prefixed by /cygdrive for fixpath to work. 21727 new_path="$CYGWIN_ROOT_PATH$input_path" 21728 fi 21729 fi 21730 21731 21732 if test "x$path" != "x$new_path"; then 21733 BOOT_JDK="$new_path" 21734 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21735 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21736 fi 21737 21738 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21739 21740 path="$BOOT_JDK" 21741 has_colon=`$ECHO $path | $GREP ^.:` 21742 new_path="$path" 21743 if test "x$has_colon" = x; then 21744 # Not in mixed or Windows style, start by that. 21745 new_path=`cmd //c echo $path` 21746 fi 21747 21748 21749 input_path="$new_path" 21750 # Check if we need to convert this using DOS-style short mode. If the path 21751 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21752 # take no chances and rewrite it. 21753 # Note: m4 eats our [], so we need to use [ and ] instead. 21754 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21755 if test "x$has_forbidden_chars" != x; then 21756 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21757 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21758 fi 21759 21760 21761 windows_path="$new_path" 21762 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21763 unix_path=`$CYGPATH -u "$windows_path"` 21764 new_path="$unix_path" 21765 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21766 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21767 new_path="$unix_path" 21768 fi 21769 21770 if test "x$path" != "x$new_path"; then 21771 BOOT_JDK="$new_path" 21772 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21773 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21774 fi 21775 21776 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21777 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21778 21779 else 21780 # We're on a posix platform. Hooray! :) 21781 path="$BOOT_JDK" 21782 has_space=`$ECHO "$path" | $GREP " "` 21783 if test "x$has_space" != x; then 21784 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21785 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21786 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21787 fi 21788 21789 # Use eval to expand a potential ~ 21790 eval path="$path" 21791 if test ! -f "$path" && test ! -d "$path"; then 21792 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21793 fi 21794 21795 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21796 fi 21797 21798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21799 $as_echo_n "checking for Boot JDK... " >&6; } 21800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21801 $as_echo "$BOOT_JDK" >&6; } 21802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21803 $as_echo_n "checking Boot JDK version... " >&6; } 21804 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21806 $as_echo "$BOOT_JDK_VERSION" >&6; } 21807 fi # end check jdk version 21808 fi # end check rt.jar 21809 fi # end check javac 21810 fi # end check java 21811 fi # end check boot jdk found 21812 fi 21813 21814 21815 if test "x$BOOT_JDK_FOUND" = xno; then 21816 # Now execute the test 21817 21818 if test "x$PROGRAMW6432" != x; then 21819 VIRTUAL_DIR="$PROGRAMW6432/Java" 21820 21821 windows_path="$VIRTUAL_DIR" 21822 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21823 unix_path=`$CYGPATH -u "$windows_path"` 21824 VIRTUAL_DIR="$unix_path" 21825 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21826 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21827 VIRTUAL_DIR="$unix_path" 21828 fi 21829 21830 21831 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 21832 BOOT_JDK_SUFFIX="" 21833 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 21834 if test "x$ALL_JDKS_FOUND" != x; then 21835 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 21836 21837 if test "x$BOOT_JDK_FOUND" = xno; then 21838 # Now execute the test 21839 21840 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 21841 if test -d "$BOOT_JDK"; then 21842 BOOT_JDK_FOUND=maybe 21843 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 21844 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 21845 fi 21846 21847 21848 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21849 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21850 # Do we have a bin/java? 21851 if test ! -x "$BOOT_JDK/bin/java"; then 21852 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21853 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21854 BOOT_JDK_FOUND=no 21855 else 21856 # Do we have a bin/javac? 21857 if test ! -x "$BOOT_JDK/bin/javac"; then 21858 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21859 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21860 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21861 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21862 BOOT_JDK_FOUND=no 21863 else 21864 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21865 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21866 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21867 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21868 BOOT_JDK_FOUND=no 21869 else 21870 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21871 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21872 21873 # Extra M4 quote needed to protect [] in grep expression. 21874 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21875 if test "x$FOUND_VERSION_78" = x; then 21876 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21877 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21878 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21879 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21880 BOOT_JDK_FOUND=no 21881 else 21882 # We're done! :-) 21883 BOOT_JDK_FOUND=yes 21884 21885 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21886 21887 # Input might be given as Windows format, start by converting to 21888 # unix format. 21889 path="$BOOT_JDK" 21890 new_path=`$CYGPATH -u "$path"` 21891 21892 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21893 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21894 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21895 # "foo.exe" is OK but "foo" is an error. 21896 # 21897 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21898 # It is also a way to make sure we got the proper file name for the real test later on. 21899 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21900 if test "x$test_shortpath" = x; then 21901 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21902 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21903 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21904 fi 21905 21906 # Call helper function which possibly converts this using DOS-style short mode. 21907 # If so, the updated path is stored in $new_path. 21908 21909 input_path="$new_path" 21910 # Check if we need to convert this using DOS-style short mode. If the path 21911 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21912 # take no chances and rewrite it. 21913 # Note: m4 eats our [], so we need to use [ and ] instead. 21914 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21915 if test "x$has_forbidden_chars" != x; then 21916 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21917 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21918 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21919 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21920 # Going to short mode and back again did indeed matter. Since short mode is 21921 # case insensitive, let's make it lowercase to improve readability. 21922 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21923 # Now convert it back to Unix-style (cygpath) 21924 input_path=`$CYGPATH -u "$shortmode_path"` 21925 new_path="$input_path" 21926 fi 21927 fi 21928 21929 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21930 if test "x$test_cygdrive_prefix" = x; then 21931 # As a simple fix, exclude /usr/bin since it's not a real path. 21932 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21933 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21934 # a path prefixed by /cygdrive for fixpath to work. 21935 new_path="$CYGWIN_ROOT_PATH$input_path" 21936 fi 21937 fi 21938 21939 21940 if test "x$path" != "x$new_path"; then 21941 BOOT_JDK="$new_path" 21942 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21943 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21944 fi 21945 21946 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21947 21948 path="$BOOT_JDK" 21949 has_colon=`$ECHO $path | $GREP ^.:` 21950 new_path="$path" 21951 if test "x$has_colon" = x; then 21952 # Not in mixed or Windows style, start by that. 21953 new_path=`cmd //c echo $path` 21954 fi 21955 21956 21957 input_path="$new_path" 21958 # Check if we need to convert this using DOS-style short mode. If the path 21959 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21960 # take no chances and rewrite it. 21961 # Note: m4 eats our [], so we need to use [ and ] instead. 21962 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21963 if test "x$has_forbidden_chars" != x; then 21964 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21965 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21966 fi 21967 21968 21969 windows_path="$new_path" 21970 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21971 unix_path=`$CYGPATH -u "$windows_path"` 21972 new_path="$unix_path" 21973 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21974 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21975 new_path="$unix_path" 21976 fi 21977 21978 if test "x$path" != "x$new_path"; then 21979 BOOT_JDK="$new_path" 21980 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21981 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21982 fi 21983 21984 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21985 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21986 21987 else 21988 # We're on a posix platform. Hooray! :) 21989 path="$BOOT_JDK" 21990 has_space=`$ECHO "$path" | $GREP " "` 21991 if test "x$has_space" != x; then 21992 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21993 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21994 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21995 fi 21996 21997 # Use eval to expand a potential ~ 21998 eval path="$path" 21999 if test ! -f "$path" && test ! -d "$path"; then 22000 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22001 fi 22002 22003 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22004 fi 22005 22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22007 $as_echo_n "checking for Boot JDK... " >&6; } 22008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22009 $as_echo "$BOOT_JDK" >&6; } 22010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22011 $as_echo_n "checking Boot JDK version... " >&6; } 22012 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22014 $as_echo "$BOOT_JDK_VERSION" >&6; } 22015 fi # end check jdk version 22016 fi # end check rt.jar 22017 fi # end check javac 22018 fi # end check java 22019 fi # end check boot jdk found 22020 fi 22021 22022 done 22023 fi 22024 22025 fi 22026 22027 22028 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22029 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22030 # Do we have a bin/java? 22031 if test ! -x "$BOOT_JDK/bin/java"; then 22032 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22033 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22034 BOOT_JDK_FOUND=no 22035 else 22036 # Do we have a bin/javac? 22037 if test ! -x "$BOOT_JDK/bin/javac"; then 22038 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22039 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22040 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22041 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22042 BOOT_JDK_FOUND=no 22043 else 22044 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22045 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22046 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22047 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22048 BOOT_JDK_FOUND=no 22049 else 22050 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22051 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22052 22053 # Extra M4 quote needed to protect [] in grep expression. 22054 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22055 if test "x$FOUND_VERSION_78" = x; then 22056 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22057 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22058 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22059 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22060 BOOT_JDK_FOUND=no 22061 else 22062 # We're done! :-) 22063 BOOT_JDK_FOUND=yes 22064 22065 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22066 22067 # Input might be given as Windows format, start by converting to 22068 # unix format. 22069 path="$BOOT_JDK" 22070 new_path=`$CYGPATH -u "$path"` 22071 22072 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22073 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22074 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22075 # "foo.exe" is OK but "foo" is an error. 22076 # 22077 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22078 # It is also a way to make sure we got the proper file name for the real test later on. 22079 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22080 if test "x$test_shortpath" = x; then 22081 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22082 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22083 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22084 fi 22085 22086 # Call helper function which possibly converts this using DOS-style short mode. 22087 # If so, the updated path is stored in $new_path. 22088 22089 input_path="$new_path" 22090 # Check if we need to convert this using DOS-style short mode. If the path 22091 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22092 # take no chances and rewrite it. 22093 # Note: m4 eats our [], so we need to use [ and ] instead. 22094 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22095 if test "x$has_forbidden_chars" != x; then 22096 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22097 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22098 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22099 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22100 # Going to short mode and back again did indeed matter. Since short mode is 22101 # case insensitive, let's make it lowercase to improve readability. 22102 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22103 # Now convert it back to Unix-style (cygpath) 22104 input_path=`$CYGPATH -u "$shortmode_path"` 22105 new_path="$input_path" 22106 fi 22107 fi 22108 22109 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22110 if test "x$test_cygdrive_prefix" = x; then 22111 # As a simple fix, exclude /usr/bin since it's not a real path. 22112 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22113 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22114 # a path prefixed by /cygdrive for fixpath to work. 22115 new_path="$CYGWIN_ROOT_PATH$input_path" 22116 fi 22117 fi 22118 22119 22120 if test "x$path" != "x$new_path"; then 22121 BOOT_JDK="$new_path" 22122 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22123 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22124 fi 22125 22126 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22127 22128 path="$BOOT_JDK" 22129 has_colon=`$ECHO $path | $GREP ^.:` 22130 new_path="$path" 22131 if test "x$has_colon" = x; then 22132 # Not in mixed or Windows style, start by that. 22133 new_path=`cmd //c echo $path` 22134 fi 22135 22136 22137 input_path="$new_path" 22138 # Check if we need to convert this using DOS-style short mode. If the path 22139 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22140 # take no chances and rewrite it. 22141 # Note: m4 eats our [], so we need to use [ and ] instead. 22142 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22143 if test "x$has_forbidden_chars" != x; then 22144 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22145 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22146 fi 22147 22148 22149 windows_path="$new_path" 22150 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22151 unix_path=`$CYGPATH -u "$windows_path"` 22152 new_path="$unix_path" 22153 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22154 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22155 new_path="$unix_path" 22156 fi 22157 22158 if test "x$path" != "x$new_path"; then 22159 BOOT_JDK="$new_path" 22160 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22161 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22162 fi 22163 22164 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22165 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22166 22167 else 22168 # We're on a posix platform. Hooray! :) 22169 path="$BOOT_JDK" 22170 has_space=`$ECHO "$path" | $GREP " "` 22171 if test "x$has_space" != x; then 22172 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22173 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22174 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22175 fi 22176 22177 # Use eval to expand a potential ~ 22178 eval path="$path" 22179 if test ! -f "$path" && test ! -d "$path"; then 22180 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22181 fi 22182 22183 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22184 fi 22185 22186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22187 $as_echo_n "checking for Boot JDK... " >&6; } 22188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22189 $as_echo "$BOOT_JDK" >&6; } 22190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22191 $as_echo_n "checking Boot JDK version... " >&6; } 22192 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22194 $as_echo "$BOOT_JDK_VERSION" >&6; } 22195 fi # end check jdk version 22196 fi # end check rt.jar 22197 fi # end check javac 22198 fi # end check java 22199 fi # end check boot jdk found 22200 fi 22201 22202 22203 if test "x$BOOT_JDK_FOUND" = xno; then 22204 # Now execute the test 22205 22206 if test "x$PROGRAMFILES" != x; then 22207 VIRTUAL_DIR="$PROGRAMFILES/Java" 22208 22209 windows_path="$VIRTUAL_DIR" 22210 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22211 unix_path=`$CYGPATH -u "$windows_path"` 22212 VIRTUAL_DIR="$unix_path" 22213 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22214 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22215 VIRTUAL_DIR="$unix_path" 22216 fi 22217 22218 22219 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22220 BOOT_JDK_SUFFIX="" 22221 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22222 if test "x$ALL_JDKS_FOUND" != x; then 22223 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22224 22225 if test "x$BOOT_JDK_FOUND" = xno; then 22226 # Now execute the test 22227 22228 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22229 if test -d "$BOOT_JDK"; then 22230 BOOT_JDK_FOUND=maybe 22231 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22232 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22233 fi 22234 22235 22236 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22237 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22238 # Do we have a bin/java? 22239 if test ! -x "$BOOT_JDK/bin/java"; then 22240 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22241 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22242 BOOT_JDK_FOUND=no 22243 else 22244 # Do we have a bin/javac? 22245 if test ! -x "$BOOT_JDK/bin/javac"; then 22246 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22247 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22248 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22249 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22250 BOOT_JDK_FOUND=no 22251 else 22252 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22253 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22254 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22255 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22256 BOOT_JDK_FOUND=no 22257 else 22258 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22259 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22260 22261 # Extra M4 quote needed to protect [] in grep expression. 22262 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22263 if test "x$FOUND_VERSION_78" = x; then 22264 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22265 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22266 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22267 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22268 BOOT_JDK_FOUND=no 22269 else 22270 # We're done! :-) 22271 BOOT_JDK_FOUND=yes 22272 22273 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22274 22275 # Input might be given as Windows format, start by converting to 22276 # unix format. 22277 path="$BOOT_JDK" 22278 new_path=`$CYGPATH -u "$path"` 22279 22280 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22281 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22282 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22283 # "foo.exe" is OK but "foo" is an error. 22284 # 22285 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22286 # It is also a way to make sure we got the proper file name for the real test later on. 22287 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22288 if test "x$test_shortpath" = x; then 22289 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22290 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22291 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22292 fi 22293 22294 # Call helper function which possibly converts this using DOS-style short mode. 22295 # If so, the updated path is stored in $new_path. 22296 22297 input_path="$new_path" 22298 # Check if we need to convert this using DOS-style short mode. If the path 22299 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22300 # take no chances and rewrite it. 22301 # Note: m4 eats our [], so we need to use [ and ] instead. 22302 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22303 if test "x$has_forbidden_chars" != x; then 22304 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22305 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22306 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22307 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22308 # Going to short mode and back again did indeed matter. Since short mode is 22309 # case insensitive, let's make it lowercase to improve readability. 22310 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22311 # Now convert it back to Unix-style (cygpath) 22312 input_path=`$CYGPATH -u "$shortmode_path"` 22313 new_path="$input_path" 22314 fi 22315 fi 22316 22317 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22318 if test "x$test_cygdrive_prefix" = x; then 22319 # As a simple fix, exclude /usr/bin since it's not a real path. 22320 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22321 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22322 # a path prefixed by /cygdrive for fixpath to work. 22323 new_path="$CYGWIN_ROOT_PATH$input_path" 22324 fi 22325 fi 22326 22327 22328 if test "x$path" != "x$new_path"; then 22329 BOOT_JDK="$new_path" 22330 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22331 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22332 fi 22333 22334 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22335 22336 path="$BOOT_JDK" 22337 has_colon=`$ECHO $path | $GREP ^.:` 22338 new_path="$path" 22339 if test "x$has_colon" = x; then 22340 # Not in mixed or Windows style, start by that. 22341 new_path=`cmd //c echo $path` 22342 fi 22343 22344 22345 input_path="$new_path" 22346 # Check if we need to convert this using DOS-style short mode. If the path 22347 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22348 # take no chances and rewrite it. 22349 # Note: m4 eats our [], so we need to use [ and ] instead. 22350 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22351 if test "x$has_forbidden_chars" != x; then 22352 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22353 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22354 fi 22355 22356 22357 windows_path="$new_path" 22358 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22359 unix_path=`$CYGPATH -u "$windows_path"` 22360 new_path="$unix_path" 22361 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22362 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22363 new_path="$unix_path" 22364 fi 22365 22366 if test "x$path" != "x$new_path"; then 22367 BOOT_JDK="$new_path" 22368 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22369 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22370 fi 22371 22372 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22373 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22374 22375 else 22376 # We're on a posix platform. Hooray! :) 22377 path="$BOOT_JDK" 22378 has_space=`$ECHO "$path" | $GREP " "` 22379 if test "x$has_space" != x; then 22380 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22381 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22382 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22383 fi 22384 22385 # Use eval to expand a potential ~ 22386 eval path="$path" 22387 if test ! -f "$path" && test ! -d "$path"; then 22388 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22389 fi 22390 22391 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22392 fi 22393 22394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22395 $as_echo_n "checking for Boot JDK... " >&6; } 22396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22397 $as_echo "$BOOT_JDK" >&6; } 22398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22399 $as_echo_n "checking Boot JDK version... " >&6; } 22400 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22402 $as_echo "$BOOT_JDK_VERSION" >&6; } 22403 fi # end check jdk version 22404 fi # end check rt.jar 22405 fi # end check javac 22406 fi # end check java 22407 fi # end check boot jdk found 22408 fi 22409 22410 done 22411 fi 22412 22413 fi 22414 22415 22416 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22417 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22418 # Do we have a bin/java? 22419 if test ! -x "$BOOT_JDK/bin/java"; then 22420 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22421 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22422 BOOT_JDK_FOUND=no 22423 else 22424 # Do we have a bin/javac? 22425 if test ! -x "$BOOT_JDK/bin/javac"; then 22426 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22427 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22428 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22429 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22430 BOOT_JDK_FOUND=no 22431 else 22432 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22433 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22434 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22435 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22436 BOOT_JDK_FOUND=no 22437 else 22438 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22439 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22440 22441 # Extra M4 quote needed to protect [] in grep expression. 22442 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22443 if test "x$FOUND_VERSION_78" = x; then 22444 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22445 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22446 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22447 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22448 BOOT_JDK_FOUND=no 22449 else 22450 # We're done! :-) 22451 BOOT_JDK_FOUND=yes 22452 22453 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22454 22455 # Input might be given as Windows format, start by converting to 22456 # unix format. 22457 path="$BOOT_JDK" 22458 new_path=`$CYGPATH -u "$path"` 22459 22460 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22461 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22462 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22463 # "foo.exe" is OK but "foo" is an error. 22464 # 22465 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22466 # It is also a way to make sure we got the proper file name for the real test later on. 22467 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22468 if test "x$test_shortpath" = x; then 22469 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22470 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22471 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22472 fi 22473 22474 # Call helper function which possibly converts this using DOS-style short mode. 22475 # If so, the updated path is stored in $new_path. 22476 22477 input_path="$new_path" 22478 # Check if we need to convert this using DOS-style short mode. If the path 22479 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22480 # take no chances and rewrite it. 22481 # Note: m4 eats our [], so we need to use [ and ] instead. 22482 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22483 if test "x$has_forbidden_chars" != x; then 22484 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22485 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22486 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22487 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22488 # Going to short mode and back again did indeed matter. Since short mode is 22489 # case insensitive, let's make it lowercase to improve readability. 22490 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22491 # Now convert it back to Unix-style (cygpath) 22492 input_path=`$CYGPATH -u "$shortmode_path"` 22493 new_path="$input_path" 22494 fi 22495 fi 22496 22497 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22498 if test "x$test_cygdrive_prefix" = x; then 22499 # As a simple fix, exclude /usr/bin since it's not a real path. 22500 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22501 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22502 # a path prefixed by /cygdrive for fixpath to work. 22503 new_path="$CYGWIN_ROOT_PATH$input_path" 22504 fi 22505 fi 22506 22507 22508 if test "x$path" != "x$new_path"; then 22509 BOOT_JDK="$new_path" 22510 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22511 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22512 fi 22513 22514 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22515 22516 path="$BOOT_JDK" 22517 has_colon=`$ECHO $path | $GREP ^.:` 22518 new_path="$path" 22519 if test "x$has_colon" = x; then 22520 # Not in mixed or Windows style, start by that. 22521 new_path=`cmd //c echo $path` 22522 fi 22523 22524 22525 input_path="$new_path" 22526 # Check if we need to convert this using DOS-style short mode. If the path 22527 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22528 # take no chances and rewrite it. 22529 # Note: m4 eats our [], so we need to use [ and ] instead. 22530 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22531 if test "x$has_forbidden_chars" != x; then 22532 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22533 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22534 fi 22535 22536 22537 windows_path="$new_path" 22538 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22539 unix_path=`$CYGPATH -u "$windows_path"` 22540 new_path="$unix_path" 22541 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22542 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22543 new_path="$unix_path" 22544 fi 22545 22546 if test "x$path" != "x$new_path"; then 22547 BOOT_JDK="$new_path" 22548 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22549 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22550 fi 22551 22552 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22553 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22554 22555 else 22556 # We're on a posix platform. Hooray! :) 22557 path="$BOOT_JDK" 22558 has_space=`$ECHO "$path" | $GREP " "` 22559 if test "x$has_space" != x; then 22560 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22561 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22562 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22563 fi 22564 22565 # Use eval to expand a potential ~ 22566 eval path="$path" 22567 if test ! -f "$path" && test ! -d "$path"; then 22568 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22569 fi 22570 22571 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22572 fi 22573 22574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22575 $as_echo_n "checking for Boot JDK... " >&6; } 22576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22577 $as_echo "$BOOT_JDK" >&6; } 22578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22579 $as_echo_n "checking Boot JDK version... " >&6; } 22580 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22582 $as_echo "$BOOT_JDK_VERSION" >&6; } 22583 fi # end check jdk version 22584 fi # end check rt.jar 22585 fi # end check javac 22586 fi # end check java 22587 fi # end check boot jdk found 22588 fi 22589 22590 22591 if test "x$BOOT_JDK_FOUND" = xno; then 22592 # Now execute the test 22593 22594 if test "x$ProgramFiles" != x; then 22595 VIRTUAL_DIR="$ProgramFiles/Java" 22596 22597 windows_path="$VIRTUAL_DIR" 22598 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22599 unix_path=`$CYGPATH -u "$windows_path"` 22600 VIRTUAL_DIR="$unix_path" 22601 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22602 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22603 VIRTUAL_DIR="$unix_path" 22604 fi 22605 22606 22607 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22608 BOOT_JDK_SUFFIX="" 22609 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22610 if test "x$ALL_JDKS_FOUND" != x; then 22611 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22612 22613 if test "x$BOOT_JDK_FOUND" = xno; then 22614 # Now execute the test 22615 22616 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22617 if test -d "$BOOT_JDK"; then 22618 BOOT_JDK_FOUND=maybe 22619 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22620 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22621 fi 22622 22623 22624 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22625 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22626 # Do we have a bin/java? 22627 if test ! -x "$BOOT_JDK/bin/java"; then 22628 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22629 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22630 BOOT_JDK_FOUND=no 22631 else 22632 # Do we have a bin/javac? 22633 if test ! -x "$BOOT_JDK/bin/javac"; then 22634 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22635 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22636 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22637 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22638 BOOT_JDK_FOUND=no 22639 else 22640 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22641 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22642 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22643 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22644 BOOT_JDK_FOUND=no 22645 else 22646 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22647 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22648 22649 # Extra M4 quote needed to protect [] in grep expression. 22650 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22651 if test "x$FOUND_VERSION_78" = x; then 22652 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22653 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22654 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22655 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22656 BOOT_JDK_FOUND=no 22657 else 22658 # We're done! :-) 22659 BOOT_JDK_FOUND=yes 22660 22661 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22662 22663 # Input might be given as Windows format, start by converting to 22664 # unix format. 22665 path="$BOOT_JDK" 22666 new_path=`$CYGPATH -u "$path"` 22667 22668 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22669 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22670 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22671 # "foo.exe" is OK but "foo" is an error. 22672 # 22673 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22674 # It is also a way to make sure we got the proper file name for the real test later on. 22675 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22676 if test "x$test_shortpath" = x; then 22677 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22678 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22679 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22680 fi 22681 22682 # Call helper function which possibly converts this using DOS-style short mode. 22683 # If so, the updated path is stored in $new_path. 22684 22685 input_path="$new_path" 22686 # Check if we need to convert this using DOS-style short mode. If the path 22687 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22688 # take no chances and rewrite it. 22689 # Note: m4 eats our [], so we need to use [ and ] instead. 22690 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22691 if test "x$has_forbidden_chars" != x; then 22692 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22693 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22694 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22695 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22696 # Going to short mode and back again did indeed matter. Since short mode is 22697 # case insensitive, let's make it lowercase to improve readability. 22698 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22699 # Now convert it back to Unix-style (cygpath) 22700 input_path=`$CYGPATH -u "$shortmode_path"` 22701 new_path="$input_path" 22702 fi 22703 fi 22704 22705 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22706 if test "x$test_cygdrive_prefix" = x; then 22707 # As a simple fix, exclude /usr/bin since it's not a real path. 22708 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22709 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22710 # a path prefixed by /cygdrive for fixpath to work. 22711 new_path="$CYGWIN_ROOT_PATH$input_path" 22712 fi 22713 fi 22714 22715 22716 if test "x$path" != "x$new_path"; then 22717 BOOT_JDK="$new_path" 22718 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22719 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22720 fi 22721 22722 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22723 22724 path="$BOOT_JDK" 22725 has_colon=`$ECHO $path | $GREP ^.:` 22726 new_path="$path" 22727 if test "x$has_colon" = x; then 22728 # Not in mixed or Windows style, start by that. 22729 new_path=`cmd //c echo $path` 22730 fi 22731 22732 22733 input_path="$new_path" 22734 # Check if we need to convert this using DOS-style short mode. If the path 22735 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22736 # take no chances and rewrite it. 22737 # Note: m4 eats our [], so we need to use [ and ] instead. 22738 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22739 if test "x$has_forbidden_chars" != x; then 22740 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22741 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22742 fi 22743 22744 22745 windows_path="$new_path" 22746 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22747 unix_path=`$CYGPATH -u "$windows_path"` 22748 new_path="$unix_path" 22749 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22750 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22751 new_path="$unix_path" 22752 fi 22753 22754 if test "x$path" != "x$new_path"; then 22755 BOOT_JDK="$new_path" 22756 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22757 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22758 fi 22759 22760 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22761 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22762 22763 else 22764 # We're on a posix platform. Hooray! :) 22765 path="$BOOT_JDK" 22766 has_space=`$ECHO "$path" | $GREP " "` 22767 if test "x$has_space" != x; then 22768 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22769 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22770 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22771 fi 22772 22773 # Use eval to expand a potential ~ 22774 eval path="$path" 22775 if test ! -f "$path" && test ! -d "$path"; then 22776 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22777 fi 22778 22779 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22780 fi 22781 22782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22783 $as_echo_n "checking for Boot JDK... " >&6; } 22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22785 $as_echo "$BOOT_JDK" >&6; } 22786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22787 $as_echo_n "checking Boot JDK version... " >&6; } 22788 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22790 $as_echo "$BOOT_JDK_VERSION" >&6; } 22791 fi # end check jdk version 22792 fi # end check rt.jar 22793 fi # end check javac 22794 fi # end check java 22795 fi # end check boot jdk found 22796 fi 22797 22798 done 22799 fi 22800 22801 fi 22802 22803 22804 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22805 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22806 # Do we have a bin/java? 22807 if test ! -x "$BOOT_JDK/bin/java"; then 22808 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22809 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22810 BOOT_JDK_FOUND=no 22811 else 22812 # Do we have a bin/javac? 22813 if test ! -x "$BOOT_JDK/bin/javac"; then 22814 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22815 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22816 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22817 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22818 BOOT_JDK_FOUND=no 22819 else 22820 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22821 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22822 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22823 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22824 BOOT_JDK_FOUND=no 22825 else 22826 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22827 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22828 22829 # Extra M4 quote needed to protect [] in grep expression. 22830 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22831 if test "x$FOUND_VERSION_78" = x; then 22832 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22833 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22834 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22835 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22836 BOOT_JDK_FOUND=no 22837 else 22838 # We're done! :-) 22839 BOOT_JDK_FOUND=yes 22840 22841 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22842 22843 # Input might be given as Windows format, start by converting to 22844 # unix format. 22845 path="$BOOT_JDK" 22846 new_path=`$CYGPATH -u "$path"` 22847 22848 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22849 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22850 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22851 # "foo.exe" is OK but "foo" is an error. 22852 # 22853 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22854 # It is also a way to make sure we got the proper file name for the real test later on. 22855 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22856 if test "x$test_shortpath" = x; then 22857 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22858 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22859 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22860 fi 22861 22862 # Call helper function which possibly converts this using DOS-style short mode. 22863 # If so, the updated path is stored in $new_path. 22864 22865 input_path="$new_path" 22866 # Check if we need to convert this using DOS-style short mode. If the path 22867 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22868 # take no chances and rewrite it. 22869 # Note: m4 eats our [], so we need to use [ and ] instead. 22870 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22871 if test "x$has_forbidden_chars" != x; then 22872 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22873 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22874 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22875 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22876 # Going to short mode and back again did indeed matter. Since short mode is 22877 # case insensitive, let's make it lowercase to improve readability. 22878 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22879 # Now convert it back to Unix-style (cygpath) 22880 input_path=`$CYGPATH -u "$shortmode_path"` 22881 new_path="$input_path" 22882 fi 22883 fi 22884 22885 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22886 if test "x$test_cygdrive_prefix" = x; then 22887 # As a simple fix, exclude /usr/bin since it's not a real path. 22888 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22889 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22890 # a path prefixed by /cygdrive for fixpath to work. 22891 new_path="$CYGWIN_ROOT_PATH$input_path" 22892 fi 22893 fi 22894 22895 22896 if test "x$path" != "x$new_path"; then 22897 BOOT_JDK="$new_path" 22898 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22899 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22900 fi 22901 22902 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22903 22904 path="$BOOT_JDK" 22905 has_colon=`$ECHO $path | $GREP ^.:` 22906 new_path="$path" 22907 if test "x$has_colon" = x; then 22908 # Not in mixed or Windows style, start by that. 22909 new_path=`cmd //c echo $path` 22910 fi 22911 22912 22913 input_path="$new_path" 22914 # Check if we need to convert this using DOS-style short mode. If the path 22915 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22916 # take no chances and rewrite it. 22917 # Note: m4 eats our [], so we need to use [ and ] instead. 22918 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22919 if test "x$has_forbidden_chars" != x; then 22920 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22921 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22922 fi 22923 22924 22925 windows_path="$new_path" 22926 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22927 unix_path=`$CYGPATH -u "$windows_path"` 22928 new_path="$unix_path" 22929 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22930 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22931 new_path="$unix_path" 22932 fi 22933 22934 if test "x$path" != "x$new_path"; then 22935 BOOT_JDK="$new_path" 22936 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22937 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22938 fi 22939 22940 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22941 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22942 22943 else 22944 # We're on a posix platform. Hooray! :) 22945 path="$BOOT_JDK" 22946 has_space=`$ECHO "$path" | $GREP " "` 22947 if test "x$has_space" != x; then 22948 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22949 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22950 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22951 fi 22952 22953 # Use eval to expand a potential ~ 22954 eval path="$path" 22955 if test ! -f "$path" && test ! -d "$path"; then 22956 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22957 fi 22958 22959 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22960 fi 22961 22962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22963 $as_echo_n "checking for Boot JDK... " >&6; } 22964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22965 $as_echo "$BOOT_JDK" >&6; } 22966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22967 $as_echo_n "checking Boot JDK version... " >&6; } 22968 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22970 $as_echo "$BOOT_JDK_VERSION" >&6; } 22971 fi # end check jdk version 22972 fi # end check rt.jar 22973 fi # end check javac 22974 fi # end check java 22975 fi # end check boot jdk found 22976 fi 22977 22978 22979 if test "x$BOOT_JDK_FOUND" = xno; then 22980 # Now execute the test 22981 22982 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 22983 BOOT_JDK_SUFFIX="" 22984 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22985 if test "x$ALL_JDKS_FOUND" != x; then 22986 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22987 22988 if test "x$BOOT_JDK_FOUND" = xno; then 22989 # Now execute the test 22990 22991 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22992 if test -d "$BOOT_JDK"; then 22993 BOOT_JDK_FOUND=maybe 22994 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22995 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22996 fi 22997 22998 22999 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23000 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23001 # Do we have a bin/java? 23002 if test ! -x "$BOOT_JDK/bin/java"; then 23003 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23004 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23005 BOOT_JDK_FOUND=no 23006 else 23007 # Do we have a bin/javac? 23008 if test ! -x "$BOOT_JDK/bin/javac"; then 23009 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23010 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23011 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23012 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23013 BOOT_JDK_FOUND=no 23014 else 23015 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23016 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23017 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23018 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23019 BOOT_JDK_FOUND=no 23020 else 23021 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23022 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23023 23024 # Extra M4 quote needed to protect [] in grep expression. 23025 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23026 if test "x$FOUND_VERSION_78" = x; then 23027 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23028 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23029 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23030 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23031 BOOT_JDK_FOUND=no 23032 else 23033 # We're done! :-) 23034 BOOT_JDK_FOUND=yes 23035 23036 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23037 23038 # Input might be given as Windows format, start by converting to 23039 # unix format. 23040 path="$BOOT_JDK" 23041 new_path=`$CYGPATH -u "$path"` 23042 23043 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23044 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23045 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23046 # "foo.exe" is OK but "foo" is an error. 23047 # 23048 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23049 # It is also a way to make sure we got the proper file name for the real test later on. 23050 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23051 if test "x$test_shortpath" = x; then 23052 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23053 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23054 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23055 fi 23056 23057 # Call helper function which possibly converts this using DOS-style short mode. 23058 # If so, the updated path is stored in $new_path. 23059 23060 input_path="$new_path" 23061 # Check if we need to convert this using DOS-style short mode. If the path 23062 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23063 # take no chances and rewrite it. 23064 # Note: m4 eats our [], so we need to use [ and ] instead. 23065 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23066 if test "x$has_forbidden_chars" != x; then 23067 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23068 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23069 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23070 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23071 # Going to short mode and back again did indeed matter. Since short mode is 23072 # case insensitive, let's make it lowercase to improve readability. 23073 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23074 # Now convert it back to Unix-style (cygpath) 23075 input_path=`$CYGPATH -u "$shortmode_path"` 23076 new_path="$input_path" 23077 fi 23078 fi 23079 23080 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23081 if test "x$test_cygdrive_prefix" = x; then 23082 # As a simple fix, exclude /usr/bin since it's not a real path. 23083 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23084 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23085 # a path prefixed by /cygdrive for fixpath to work. 23086 new_path="$CYGWIN_ROOT_PATH$input_path" 23087 fi 23088 fi 23089 23090 23091 if test "x$path" != "x$new_path"; then 23092 BOOT_JDK="$new_path" 23093 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23094 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23095 fi 23096 23097 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23098 23099 path="$BOOT_JDK" 23100 has_colon=`$ECHO $path | $GREP ^.:` 23101 new_path="$path" 23102 if test "x$has_colon" = x; then 23103 # Not in mixed or Windows style, start by that. 23104 new_path=`cmd //c echo $path` 23105 fi 23106 23107 23108 input_path="$new_path" 23109 # Check if we need to convert this using DOS-style short mode. If the path 23110 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23111 # take no chances and rewrite it. 23112 # Note: m4 eats our [], so we need to use [ and ] instead. 23113 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23114 if test "x$has_forbidden_chars" != x; then 23115 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23116 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23117 fi 23118 23119 23120 windows_path="$new_path" 23121 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23122 unix_path=`$CYGPATH -u "$windows_path"` 23123 new_path="$unix_path" 23124 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23125 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23126 new_path="$unix_path" 23127 fi 23128 23129 if test "x$path" != "x$new_path"; then 23130 BOOT_JDK="$new_path" 23131 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23132 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23133 fi 23134 23135 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23136 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23137 23138 else 23139 # We're on a posix platform. Hooray! :) 23140 path="$BOOT_JDK" 23141 has_space=`$ECHO "$path" | $GREP " "` 23142 if test "x$has_space" != x; then 23143 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23144 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23145 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23146 fi 23147 23148 # Use eval to expand a potential ~ 23149 eval path="$path" 23150 if test ! -f "$path" && test ! -d "$path"; then 23151 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23152 fi 23153 23154 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23155 fi 23156 23157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23158 $as_echo_n "checking for Boot JDK... " >&6; } 23159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23160 $as_echo "$BOOT_JDK" >&6; } 23161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23162 $as_echo_n "checking Boot JDK version... " >&6; } 23163 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23165 $as_echo "$BOOT_JDK_VERSION" >&6; } 23166 fi # end check jdk version 23167 fi # end check rt.jar 23168 fi # end check javac 23169 fi # end check java 23170 fi # end check boot jdk found 23171 fi 23172 23173 done 23174 fi 23175 23176 23177 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23178 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23179 # Do we have a bin/java? 23180 if test ! -x "$BOOT_JDK/bin/java"; then 23181 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23182 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23183 BOOT_JDK_FOUND=no 23184 else 23185 # Do we have a bin/javac? 23186 if test ! -x "$BOOT_JDK/bin/javac"; then 23187 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23188 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23189 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23190 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23191 BOOT_JDK_FOUND=no 23192 else 23193 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23194 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23195 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23196 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23197 BOOT_JDK_FOUND=no 23198 else 23199 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23200 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23201 23202 # Extra M4 quote needed to protect [] in grep expression. 23203 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23204 if test "x$FOUND_VERSION_78" = x; then 23205 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23206 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23207 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23208 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23209 BOOT_JDK_FOUND=no 23210 else 23211 # We're done! :-) 23212 BOOT_JDK_FOUND=yes 23213 23214 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23215 23216 # Input might be given as Windows format, start by converting to 23217 # unix format. 23218 path="$BOOT_JDK" 23219 new_path=`$CYGPATH -u "$path"` 23220 23221 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23222 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23223 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23224 # "foo.exe" is OK but "foo" is an error. 23225 # 23226 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23227 # It is also a way to make sure we got the proper file name for the real test later on. 23228 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23229 if test "x$test_shortpath" = x; then 23230 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23231 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23232 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23233 fi 23234 23235 # Call helper function which possibly converts this using DOS-style short mode. 23236 # If so, the updated path is stored in $new_path. 23237 23238 input_path="$new_path" 23239 # Check if we need to convert this using DOS-style short mode. If the path 23240 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23241 # take no chances and rewrite it. 23242 # Note: m4 eats our [], so we need to use [ and ] instead. 23243 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23244 if test "x$has_forbidden_chars" != x; then 23245 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23246 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23247 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23248 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23249 # Going to short mode and back again did indeed matter. Since short mode is 23250 # case insensitive, let's make it lowercase to improve readability. 23251 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23252 # Now convert it back to Unix-style (cygpath) 23253 input_path=`$CYGPATH -u "$shortmode_path"` 23254 new_path="$input_path" 23255 fi 23256 fi 23257 23258 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23259 if test "x$test_cygdrive_prefix" = x; then 23260 # As a simple fix, exclude /usr/bin since it's not a real path. 23261 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23262 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23263 # a path prefixed by /cygdrive for fixpath to work. 23264 new_path="$CYGWIN_ROOT_PATH$input_path" 23265 fi 23266 fi 23267 23268 23269 if test "x$path" != "x$new_path"; then 23270 BOOT_JDK="$new_path" 23271 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23272 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23273 fi 23274 23275 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23276 23277 path="$BOOT_JDK" 23278 has_colon=`$ECHO $path | $GREP ^.:` 23279 new_path="$path" 23280 if test "x$has_colon" = x; then 23281 # Not in mixed or Windows style, start by that. 23282 new_path=`cmd //c echo $path` 23283 fi 23284 23285 23286 input_path="$new_path" 23287 # Check if we need to convert this using DOS-style short mode. If the path 23288 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23289 # take no chances and rewrite it. 23290 # Note: m4 eats our [], so we need to use [ and ] instead. 23291 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23292 if test "x$has_forbidden_chars" != x; then 23293 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23294 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23295 fi 23296 23297 23298 windows_path="$new_path" 23299 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23300 unix_path=`$CYGPATH -u "$windows_path"` 23301 new_path="$unix_path" 23302 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23303 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23304 new_path="$unix_path" 23305 fi 23306 23307 if test "x$path" != "x$new_path"; then 23308 BOOT_JDK="$new_path" 23309 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23310 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23311 fi 23312 23313 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23314 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23315 23316 else 23317 # We're on a posix platform. Hooray! :) 23318 path="$BOOT_JDK" 23319 has_space=`$ECHO "$path" | $GREP " "` 23320 if test "x$has_space" != x; then 23321 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23322 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23323 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23324 fi 23325 23326 # Use eval to expand a potential ~ 23327 eval path="$path" 23328 if test ! -f "$path" && test ! -d "$path"; then 23329 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23330 fi 23331 23332 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23333 fi 23334 23335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23336 $as_echo_n "checking for Boot JDK... " >&6; } 23337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23338 $as_echo "$BOOT_JDK" >&6; } 23339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23340 $as_echo_n "checking Boot JDK version... " >&6; } 23341 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23343 $as_echo "$BOOT_JDK_VERSION" >&6; } 23344 fi # end check jdk version 23345 fi # end check rt.jar 23346 fi # end check javac 23347 fi # end check java 23348 fi # end check boot jdk found 23349 fi 23350 23351 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 23352 23353 if test "x$BOOT_JDK_FOUND" = xno; then 23354 # Now execute the test 23355 23356 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 23357 BOOT_JDK_SUFFIX="/Contents/Home" 23358 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23359 if test "x$ALL_JDKS_FOUND" != x; then 23360 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23361 23362 if test "x$BOOT_JDK_FOUND" = xno; then 23363 # Now execute the test 23364 23365 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23366 if test -d "$BOOT_JDK"; then 23367 BOOT_JDK_FOUND=maybe 23368 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23369 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23370 fi 23371 23372 23373 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23374 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23375 # Do we have a bin/java? 23376 if test ! -x "$BOOT_JDK/bin/java"; then 23377 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23378 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23379 BOOT_JDK_FOUND=no 23380 else 23381 # Do we have a bin/javac? 23382 if test ! -x "$BOOT_JDK/bin/javac"; then 23383 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23384 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23385 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23386 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23387 BOOT_JDK_FOUND=no 23388 else 23389 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23390 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23391 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23392 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23393 BOOT_JDK_FOUND=no 23394 else 23395 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23396 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23397 23398 # Extra M4 quote needed to protect [] in grep expression. 23399 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23400 if test "x$FOUND_VERSION_78" = x; then 23401 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23402 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23403 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23404 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23405 BOOT_JDK_FOUND=no 23406 else 23407 # We're done! :-) 23408 BOOT_JDK_FOUND=yes 23409 23410 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23411 23412 # Input might be given as Windows format, start by converting to 23413 # unix format. 23414 path="$BOOT_JDK" 23415 new_path=`$CYGPATH -u "$path"` 23416 23417 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23418 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23419 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23420 # "foo.exe" is OK but "foo" is an error. 23421 # 23422 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23423 # It is also a way to make sure we got the proper file name for the real test later on. 23424 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23425 if test "x$test_shortpath" = x; then 23426 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23427 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23428 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23429 fi 23430 23431 # Call helper function which possibly converts this using DOS-style short mode. 23432 # If so, the updated path is stored in $new_path. 23433 23434 input_path="$new_path" 23435 # Check if we need to convert this using DOS-style short mode. If the path 23436 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23437 # take no chances and rewrite it. 23438 # Note: m4 eats our [], so we need to use [ and ] instead. 23439 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23440 if test "x$has_forbidden_chars" != x; then 23441 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23442 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23443 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23444 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23445 # Going to short mode and back again did indeed matter. Since short mode is 23446 # case insensitive, let's make it lowercase to improve readability. 23447 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23448 # Now convert it back to Unix-style (cygpath) 23449 input_path=`$CYGPATH -u "$shortmode_path"` 23450 new_path="$input_path" 23451 fi 23452 fi 23453 23454 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23455 if test "x$test_cygdrive_prefix" = x; then 23456 # As a simple fix, exclude /usr/bin since it's not a real path. 23457 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23458 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23459 # a path prefixed by /cygdrive for fixpath to work. 23460 new_path="$CYGWIN_ROOT_PATH$input_path" 23461 fi 23462 fi 23463 23464 23465 if test "x$path" != "x$new_path"; then 23466 BOOT_JDK="$new_path" 23467 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23468 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23469 fi 23470 23471 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23472 23473 path="$BOOT_JDK" 23474 has_colon=`$ECHO $path | $GREP ^.:` 23475 new_path="$path" 23476 if test "x$has_colon" = x; then 23477 # Not in mixed or Windows style, start by that. 23478 new_path=`cmd //c echo $path` 23479 fi 23480 23481 23482 input_path="$new_path" 23483 # Check if we need to convert this using DOS-style short mode. If the path 23484 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23485 # take no chances and rewrite it. 23486 # Note: m4 eats our [], so we need to use [ and ] instead. 23487 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23488 if test "x$has_forbidden_chars" != x; then 23489 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23490 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23491 fi 23492 23493 23494 windows_path="$new_path" 23495 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23496 unix_path=`$CYGPATH -u "$windows_path"` 23497 new_path="$unix_path" 23498 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23499 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23500 new_path="$unix_path" 23501 fi 23502 23503 if test "x$path" != "x$new_path"; then 23504 BOOT_JDK="$new_path" 23505 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23506 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23507 fi 23508 23509 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23510 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23511 23512 else 23513 # We're on a posix platform. Hooray! :) 23514 path="$BOOT_JDK" 23515 has_space=`$ECHO "$path" | $GREP " "` 23516 if test "x$has_space" != x; then 23517 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23518 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23519 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23520 fi 23521 23522 # Use eval to expand a potential ~ 23523 eval path="$path" 23524 if test ! -f "$path" && test ! -d "$path"; then 23525 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23526 fi 23527 23528 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23529 fi 23530 23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23532 $as_echo_n "checking for Boot JDK... " >&6; } 23533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23534 $as_echo "$BOOT_JDK" >&6; } 23535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23536 $as_echo_n "checking Boot JDK version... " >&6; } 23537 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23539 $as_echo "$BOOT_JDK_VERSION" >&6; } 23540 fi # end check jdk version 23541 fi # end check rt.jar 23542 fi # end check javac 23543 fi # end check java 23544 fi # end check boot jdk found 23545 fi 23546 23547 done 23548 fi 23549 23550 23551 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23552 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23553 # Do we have a bin/java? 23554 if test ! -x "$BOOT_JDK/bin/java"; then 23555 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23556 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23557 BOOT_JDK_FOUND=no 23558 else 23559 # Do we have a bin/javac? 23560 if test ! -x "$BOOT_JDK/bin/javac"; then 23561 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23562 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23563 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23564 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23565 BOOT_JDK_FOUND=no 23566 else 23567 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23568 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23569 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23570 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23571 BOOT_JDK_FOUND=no 23572 else 23573 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23574 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23575 23576 # Extra M4 quote needed to protect [] in grep expression. 23577 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23578 if test "x$FOUND_VERSION_78" = x; then 23579 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23580 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23581 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23582 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23583 BOOT_JDK_FOUND=no 23584 else 23585 # We're done! :-) 23586 BOOT_JDK_FOUND=yes 23587 23588 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23589 23590 # Input might be given as Windows format, start by converting to 23591 # unix format. 23592 path="$BOOT_JDK" 23593 new_path=`$CYGPATH -u "$path"` 23594 23595 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23596 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23597 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23598 # "foo.exe" is OK but "foo" is an error. 23599 # 23600 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23601 # It is also a way to make sure we got the proper file name for the real test later on. 23602 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23603 if test "x$test_shortpath" = x; then 23604 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23605 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23606 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23607 fi 23608 23609 # Call helper function which possibly converts this using DOS-style short mode. 23610 # If so, the updated path is stored in $new_path. 23611 23612 input_path="$new_path" 23613 # Check if we need to convert this using DOS-style short mode. If the path 23614 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23615 # take no chances and rewrite it. 23616 # Note: m4 eats our [], so we need to use [ and ] instead. 23617 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23618 if test "x$has_forbidden_chars" != x; then 23619 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23620 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23621 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23622 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23623 # Going to short mode and back again did indeed matter. Since short mode is 23624 # case insensitive, let's make it lowercase to improve readability. 23625 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23626 # Now convert it back to Unix-style (cygpath) 23627 input_path=`$CYGPATH -u "$shortmode_path"` 23628 new_path="$input_path" 23629 fi 23630 fi 23631 23632 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23633 if test "x$test_cygdrive_prefix" = x; then 23634 # As a simple fix, exclude /usr/bin since it's not a real path. 23635 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23636 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23637 # a path prefixed by /cygdrive for fixpath to work. 23638 new_path="$CYGWIN_ROOT_PATH$input_path" 23639 fi 23640 fi 23641 23642 23643 if test "x$path" != "x$new_path"; then 23644 BOOT_JDK="$new_path" 23645 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23646 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23647 fi 23648 23649 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23650 23651 path="$BOOT_JDK" 23652 has_colon=`$ECHO $path | $GREP ^.:` 23653 new_path="$path" 23654 if test "x$has_colon" = x; then 23655 # Not in mixed or Windows style, start by that. 23656 new_path=`cmd //c echo $path` 23657 fi 23658 23659 23660 input_path="$new_path" 23661 # Check if we need to convert this using DOS-style short mode. If the path 23662 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23663 # take no chances and rewrite it. 23664 # Note: m4 eats our [], so we need to use [ and ] instead. 23665 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23666 if test "x$has_forbidden_chars" != x; then 23667 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23668 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23669 fi 23670 23671 23672 windows_path="$new_path" 23673 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23674 unix_path=`$CYGPATH -u "$windows_path"` 23675 new_path="$unix_path" 23676 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23677 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23678 new_path="$unix_path" 23679 fi 23680 23681 if test "x$path" != "x$new_path"; then 23682 BOOT_JDK="$new_path" 23683 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23684 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23685 fi 23686 23687 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23688 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23689 23690 else 23691 # We're on a posix platform. Hooray! :) 23692 path="$BOOT_JDK" 23693 has_space=`$ECHO "$path" | $GREP " "` 23694 if test "x$has_space" != x; then 23695 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23696 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23697 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23698 fi 23699 23700 # Use eval to expand a potential ~ 23701 eval path="$path" 23702 if test ! -f "$path" && test ! -d "$path"; then 23703 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23704 fi 23705 23706 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23707 fi 23708 23709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23710 $as_echo_n "checking for Boot JDK... " >&6; } 23711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23712 $as_echo "$BOOT_JDK" >&6; } 23713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23714 $as_echo_n "checking Boot JDK version... " >&6; } 23715 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23717 $as_echo "$BOOT_JDK_VERSION" >&6; } 23718 fi # end check jdk version 23719 fi # end check rt.jar 23720 fi # end check javac 23721 fi # end check java 23722 fi # end check boot jdk found 23723 fi 23724 23725 23726 if test "x$BOOT_JDK_FOUND" = xno; then 23727 # Now execute the test 23728 23729 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 23730 BOOT_JDK_SUFFIX="/Contents/Home" 23731 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23732 if test "x$ALL_JDKS_FOUND" != x; then 23733 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23734 23735 if test "x$BOOT_JDK_FOUND" = xno; then 23736 # Now execute the test 23737 23738 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23739 if test -d "$BOOT_JDK"; then 23740 BOOT_JDK_FOUND=maybe 23741 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23742 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23743 fi 23744 23745 23746 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23747 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23748 # Do we have a bin/java? 23749 if test ! -x "$BOOT_JDK/bin/java"; then 23750 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23751 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23752 BOOT_JDK_FOUND=no 23753 else 23754 # Do we have a bin/javac? 23755 if test ! -x "$BOOT_JDK/bin/javac"; then 23756 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23757 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23758 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23759 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23760 BOOT_JDK_FOUND=no 23761 else 23762 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23763 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23764 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23765 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23766 BOOT_JDK_FOUND=no 23767 else 23768 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23769 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23770 23771 # Extra M4 quote needed to protect [] in grep expression. 23772 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23773 if test "x$FOUND_VERSION_78" = x; then 23774 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23775 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23776 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23777 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23778 BOOT_JDK_FOUND=no 23779 else 23780 # We're done! :-) 23781 BOOT_JDK_FOUND=yes 23782 23783 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23784 23785 # Input might be given as Windows format, start by converting to 23786 # unix format. 23787 path="$BOOT_JDK" 23788 new_path=`$CYGPATH -u "$path"` 23789 23790 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23791 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23792 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23793 # "foo.exe" is OK but "foo" is an error. 23794 # 23795 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23796 # It is also a way to make sure we got the proper file name for the real test later on. 23797 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23798 if test "x$test_shortpath" = x; then 23799 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23800 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23801 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23802 fi 23803 23804 # Call helper function which possibly converts this using DOS-style short mode. 23805 # If so, the updated path is stored in $new_path. 23806 23807 input_path="$new_path" 23808 # Check if we need to convert this using DOS-style short mode. If the path 23809 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23810 # take no chances and rewrite it. 23811 # Note: m4 eats our [], so we need to use [ and ] instead. 23812 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23813 if test "x$has_forbidden_chars" != x; then 23814 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23815 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23816 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23817 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23818 # Going to short mode and back again did indeed matter. Since short mode is 23819 # case insensitive, let's make it lowercase to improve readability. 23820 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23821 # Now convert it back to Unix-style (cygpath) 23822 input_path=`$CYGPATH -u "$shortmode_path"` 23823 new_path="$input_path" 23824 fi 23825 fi 23826 23827 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23828 if test "x$test_cygdrive_prefix" = x; then 23829 # As a simple fix, exclude /usr/bin since it's not a real path. 23830 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23831 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23832 # a path prefixed by /cygdrive for fixpath to work. 23833 new_path="$CYGWIN_ROOT_PATH$input_path" 23834 fi 23835 fi 23836 23837 23838 if test "x$path" != "x$new_path"; then 23839 BOOT_JDK="$new_path" 23840 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23841 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23842 fi 23843 23844 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23845 23846 path="$BOOT_JDK" 23847 has_colon=`$ECHO $path | $GREP ^.:` 23848 new_path="$path" 23849 if test "x$has_colon" = x; then 23850 # Not in mixed or Windows style, start by that. 23851 new_path=`cmd //c echo $path` 23852 fi 23853 23854 23855 input_path="$new_path" 23856 # Check if we need to convert this using DOS-style short mode. If the path 23857 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23858 # take no chances and rewrite it. 23859 # Note: m4 eats our [], so we need to use [ and ] instead. 23860 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23861 if test "x$has_forbidden_chars" != x; then 23862 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23863 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23864 fi 23865 23866 23867 windows_path="$new_path" 23868 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23869 unix_path=`$CYGPATH -u "$windows_path"` 23870 new_path="$unix_path" 23871 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23872 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23873 new_path="$unix_path" 23874 fi 23875 23876 if test "x$path" != "x$new_path"; then 23877 BOOT_JDK="$new_path" 23878 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23879 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23880 fi 23881 23882 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23883 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23884 23885 else 23886 # We're on a posix platform. Hooray! :) 23887 path="$BOOT_JDK" 23888 has_space=`$ECHO "$path" | $GREP " "` 23889 if test "x$has_space" != x; then 23890 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23891 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23892 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23893 fi 23894 23895 # Use eval to expand a potential ~ 23896 eval path="$path" 23897 if test ! -f "$path" && test ! -d "$path"; then 23898 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23899 fi 23900 23901 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23902 fi 23903 23904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23905 $as_echo_n "checking for Boot JDK... " >&6; } 23906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23907 $as_echo "$BOOT_JDK" >&6; } 23908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23909 $as_echo_n "checking Boot JDK version... " >&6; } 23910 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23912 $as_echo "$BOOT_JDK_VERSION" >&6; } 23913 fi # end check jdk version 23914 fi # end check rt.jar 23915 fi # end check javac 23916 fi # end check java 23917 fi # end check boot jdk found 23918 fi 23919 23920 done 23921 fi 23922 23923 23924 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23925 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23926 # Do we have a bin/java? 23927 if test ! -x "$BOOT_JDK/bin/java"; then 23928 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23929 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23930 BOOT_JDK_FOUND=no 23931 else 23932 # Do we have a bin/javac? 23933 if test ! -x "$BOOT_JDK/bin/javac"; then 23934 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23935 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23936 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23937 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23938 BOOT_JDK_FOUND=no 23939 else 23940 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23941 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23942 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23943 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23944 BOOT_JDK_FOUND=no 23945 else 23946 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23947 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23948 23949 # Extra M4 quote needed to protect [] in grep expression. 23950 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23951 if test "x$FOUND_VERSION_78" = x; then 23952 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23953 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23954 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23955 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23956 BOOT_JDK_FOUND=no 23957 else 23958 # We're done! :-) 23959 BOOT_JDK_FOUND=yes 23960 23961 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23962 23963 # Input might be given as Windows format, start by converting to 23964 # unix format. 23965 path="$BOOT_JDK" 23966 new_path=`$CYGPATH -u "$path"` 23967 23968 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23969 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23970 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23971 # "foo.exe" is OK but "foo" is an error. 23972 # 23973 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23974 # It is also a way to make sure we got the proper file name for the real test later on. 23975 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23976 if test "x$test_shortpath" = x; then 23977 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23978 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23979 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23980 fi 23981 23982 # Call helper function which possibly converts this using DOS-style short mode. 23983 # If so, the updated path is stored in $new_path. 23984 23985 input_path="$new_path" 23986 # Check if we need to convert this using DOS-style short mode. If the path 23987 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23988 # take no chances and rewrite it. 23989 # Note: m4 eats our [], so we need to use [ and ] instead. 23990 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23991 if test "x$has_forbidden_chars" != x; then 23992 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23993 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23994 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23995 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23996 # Going to short mode and back again did indeed matter. Since short mode is 23997 # case insensitive, let's make it lowercase to improve readability. 23998 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23999 # Now convert it back to Unix-style (cygpath) 24000 input_path=`$CYGPATH -u "$shortmode_path"` 24001 new_path="$input_path" 24002 fi 24003 fi 24004 24005 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24006 if test "x$test_cygdrive_prefix" = x; then 24007 # As a simple fix, exclude /usr/bin since it's not a real path. 24008 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24009 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24010 # a path prefixed by /cygdrive for fixpath to work. 24011 new_path="$CYGWIN_ROOT_PATH$input_path" 24012 fi 24013 fi 24014 24015 24016 if test "x$path" != "x$new_path"; then 24017 BOOT_JDK="$new_path" 24018 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24019 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24020 fi 24021 24022 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24023 24024 path="$BOOT_JDK" 24025 has_colon=`$ECHO $path | $GREP ^.:` 24026 new_path="$path" 24027 if test "x$has_colon" = x; then 24028 # Not in mixed or Windows style, start by that. 24029 new_path=`cmd //c echo $path` 24030 fi 24031 24032 24033 input_path="$new_path" 24034 # Check if we need to convert this using DOS-style short mode. If the path 24035 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24036 # take no chances and rewrite it. 24037 # Note: m4 eats our [], so we need to use [ and ] instead. 24038 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24039 if test "x$has_forbidden_chars" != x; then 24040 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24041 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24042 fi 24043 24044 24045 windows_path="$new_path" 24046 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24047 unix_path=`$CYGPATH -u "$windows_path"` 24048 new_path="$unix_path" 24049 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24050 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24051 new_path="$unix_path" 24052 fi 24053 24054 if test "x$path" != "x$new_path"; then 24055 BOOT_JDK="$new_path" 24056 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24057 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24058 fi 24059 24060 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24061 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24062 24063 else 24064 # We're on a posix platform. Hooray! :) 24065 path="$BOOT_JDK" 24066 has_space=`$ECHO "$path" | $GREP " "` 24067 if test "x$has_space" != x; then 24068 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24069 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24070 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24071 fi 24072 24073 # Use eval to expand a potential ~ 24074 eval path="$path" 24075 if test ! -f "$path" && test ! -d "$path"; then 24076 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24077 fi 24078 24079 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24080 fi 24081 24082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24083 $as_echo_n "checking for Boot JDK... " >&6; } 24084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24085 $as_echo "$BOOT_JDK" >&6; } 24086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24087 $as_echo_n "checking Boot JDK version... " >&6; } 24088 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24090 $as_echo "$BOOT_JDK_VERSION" >&6; } 24091 fi # end check jdk version 24092 fi # end check rt.jar 24093 fi # end check javac 24094 fi # end check java 24095 fi # end check boot jdk found 24096 fi 24097 24098 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 24099 24100 if test "x$BOOT_JDK_FOUND" = xno; then 24101 # Now execute the test 24102 24103 BOOT_JDK_PREFIX="/usr/lib/jvm" 24104 BOOT_JDK_SUFFIX="" 24105 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24106 if test "x$ALL_JDKS_FOUND" != x; then 24107 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24108 24109 if test "x$BOOT_JDK_FOUND" = xno; then 24110 # Now execute the test 24111 24112 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24113 if test -d "$BOOT_JDK"; then 24114 BOOT_JDK_FOUND=maybe 24115 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24116 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24117 fi 24118 24119 24120 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24121 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24122 # Do we have a bin/java? 24123 if test ! -x "$BOOT_JDK/bin/java"; then 24124 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24125 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24126 BOOT_JDK_FOUND=no 24127 else 24128 # Do we have a bin/javac? 24129 if test ! -x "$BOOT_JDK/bin/javac"; then 24130 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24131 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24132 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24133 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24134 BOOT_JDK_FOUND=no 24135 else 24136 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24137 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24138 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24139 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24140 BOOT_JDK_FOUND=no 24141 else 24142 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24143 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24144 24145 # Extra M4 quote needed to protect [] in grep expression. 24146 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 24147 if test "x$FOUND_VERSION_78" = x; then 24148 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24149 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24150 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 24151 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 24152 BOOT_JDK_FOUND=no 24153 else 24154 # We're done! :-) 24155 BOOT_JDK_FOUND=yes 24156 24157 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24158 24159 # Input might be given as Windows format, start by converting to 24160 # unix format. 24161 path="$BOOT_JDK" 24162 new_path=`$CYGPATH -u "$path"` 24163 24164 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24165 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24166 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24167 # "foo.exe" is OK but "foo" is an error. 24168 # 24169 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24170 # It is also a way to make sure we got the proper file name for the real test later on. 24171 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24172 if test "x$test_shortpath" = x; then 24173 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24174 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24175 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24176 fi 24177 24178 # Call helper function which possibly converts this using DOS-style short mode. 24179 # If so, the updated path is stored in $new_path. 24180 24181 input_path="$new_path" 24182 # Check if we need to convert this using DOS-style short mode. If the path 24183 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24184 # take no chances and rewrite it. 24185 # Note: m4 eats our [], so we need to use [ and ] instead. 24186 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24187 if test "x$has_forbidden_chars" != x; then 24188 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24189 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24190 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24191 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24192 # Going to short mode and back again did indeed matter. Since short mode is 24193 # case insensitive, let's make it lowercase to improve readability. 24194 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24195 # Now convert it back to Unix-style (cygpath) 24196 input_path=`$CYGPATH -u "$shortmode_path"` 24197 new_path="$input_path" 24198 fi 24199 fi 24200 24201 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24202 if test "x$test_cygdrive_prefix" = x; then 24203 # As a simple fix, exclude /usr/bin since it's not a real path. 24204 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24205 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24206 # a path prefixed by /cygdrive for fixpath to work. 24207 new_path="$CYGWIN_ROOT_PATH$input_path" 24208 fi 24209 fi 24210 24211 24212 if test "x$path" != "x$new_path"; then 24213 BOOT_JDK="$new_path" 24214 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24215 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24216 fi 24217 24218 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24219 24220 path="$BOOT_JDK" 24221 has_colon=`$ECHO $path | $GREP ^.:` 24222 new_path="$path" 24223 if test "x$has_colon" = x; then 24224 # Not in mixed or Windows style, start by that. 24225 new_path=`cmd //c echo $path` 24226 fi 24227 24228 24229 input_path="$new_path" 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 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24238 fi 24239 24240 24241 windows_path="$new_path" 24242 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24243 unix_path=`$CYGPATH -u "$windows_path"` 24244 new_path="$unix_path" 24245 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24246 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24247 new_path="$unix_path" 24248 fi 24249 24250 if test "x$path" != "x$new_path"; then 24251 BOOT_JDK="$new_path" 24252 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24253 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24254 fi 24255 24256 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24257 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24258 24259 else 24260 # We're on a posix platform. Hooray! :) 24261 path="$BOOT_JDK" 24262 has_space=`$ECHO "$path" | $GREP " "` 24263 if test "x$has_space" != x; then 24264 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24265 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24266 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24267 fi 24268 24269 # Use eval to expand a potential ~ 24270 eval path="$path" 24271 if test ! -f "$path" && test ! -d "$path"; then 24272 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24273 fi 24274 24275 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24276 fi 24277 24278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24279 $as_echo_n "checking for Boot JDK... " >&6; } 24280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24281 $as_echo "$BOOT_JDK" >&6; } 24282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24283 $as_echo_n "checking Boot JDK version... " >&6; } 24284 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24286 $as_echo "$BOOT_JDK_VERSION" >&6; } 24287 fi # end check jdk version 24288 fi # end check rt.jar 24289 fi # end check javac 24290 fi # end check java 24291 fi # end check boot jdk found 24292 fi 24293 24294 done 24295 fi 24296 24297 24298 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24299 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24300 # Do we have a bin/java? 24301 if test ! -x "$BOOT_JDK/bin/java"; then 24302 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24303 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24304 BOOT_JDK_FOUND=no 24305 else 24306 # Do we have a bin/javac? 24307 if test ! -x "$BOOT_JDK/bin/javac"; then 24308 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24309 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24310 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24311 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24312 BOOT_JDK_FOUND=no 24313 else 24314 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24315 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24316 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24317 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24318 BOOT_JDK_FOUND=no 24319 else 24320 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24321 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24322 24323 # Extra M4 quote needed to protect [] in grep expression. 24324 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 24325 if test "x$FOUND_VERSION_78" = x; then 24326 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24327 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24328 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 24329 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 24330 BOOT_JDK_FOUND=no 24331 else 24332 # We're done! :-) 24333 BOOT_JDK_FOUND=yes 24334 24335 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24336 24337 # Input might be given as Windows format, start by converting to 24338 # unix format. 24339 path="$BOOT_JDK" 24340 new_path=`$CYGPATH -u "$path"` 24341 24342 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24343 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24344 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24345 # "foo.exe" is OK but "foo" is an error. 24346 # 24347 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24348 # It is also a way to make sure we got the proper file name for the real test later on. 24349 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24350 if test "x$test_shortpath" = x; then 24351 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24352 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24353 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24354 fi 24355 24356 # Call helper function which possibly converts this using DOS-style short mode. 24357 # If so, the updated path is stored in $new_path. 24358 24359 input_path="$new_path" 24360 # Check if we need to convert this using DOS-style short mode. If the path 24361 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24362 # take no chances and rewrite it. 24363 # Note: m4 eats our [], so we need to use [ and ] instead. 24364 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24365 if test "x$has_forbidden_chars" != x; then 24366 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24367 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24368 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24369 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24370 # Going to short mode and back again did indeed matter. Since short mode is 24371 # case insensitive, let's make it lowercase to improve readability. 24372 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24373 # Now convert it back to Unix-style (cygpath) 24374 input_path=`$CYGPATH -u "$shortmode_path"` 24375 new_path="$input_path" 24376 fi 24377 fi 24378 24379 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24380 if test "x$test_cygdrive_prefix" = x; then 24381 # As a simple fix, exclude /usr/bin since it's not a real path. 24382 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24383 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24384 # a path prefixed by /cygdrive for fixpath to work. 24385 new_path="$CYGWIN_ROOT_PATH$input_path" 24386 fi 24387 fi 24388 24389 24390 if test "x$path" != "x$new_path"; then 24391 BOOT_JDK="$new_path" 24392 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24393 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24394 fi 24395 24396 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24397 24398 path="$BOOT_JDK" 24399 has_colon=`$ECHO $path | $GREP ^.:` 24400 new_path="$path" 24401 if test "x$has_colon" = x; then 24402 # Not in mixed or Windows style, start by that. 24403 new_path=`cmd //c echo $path` 24404 fi 24405 24406 24407 input_path="$new_path" 24408 # Check if we need to convert this using DOS-style short mode. If the path 24409 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24410 # take no chances and rewrite it. 24411 # Note: m4 eats our [], so we need to use [ and ] instead. 24412 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24413 if test "x$has_forbidden_chars" != x; then 24414 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24415 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24416 fi 24417 24418 24419 windows_path="$new_path" 24420 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24421 unix_path=`$CYGPATH -u "$windows_path"` 24422 new_path="$unix_path" 24423 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24424 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24425 new_path="$unix_path" 24426 fi 24427 24428 if test "x$path" != "x$new_path"; then 24429 BOOT_JDK="$new_path" 24430 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24431 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24432 fi 24433 24434 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24435 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24436 24437 else 24438 # We're on a posix platform. Hooray! :) 24439 path="$BOOT_JDK" 24440 has_space=`$ECHO "$path" | $GREP " "` 24441 if test "x$has_space" != x; then 24442 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24443 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24444 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24445 fi 24446 24447 # Use eval to expand a potential ~ 24448 eval path="$path" 24449 if test ! -f "$path" && test ! -d "$path"; then 24450 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24451 fi 24452 24453 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24454 fi 24455 24456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24457 $as_echo_n "checking for Boot JDK... " >&6; } 24458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24459 $as_echo "$BOOT_JDK" >&6; } 24460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24461 $as_echo_n "checking Boot JDK version... " >&6; } 24462 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24464 $as_echo "$BOOT_JDK_VERSION" >&6; } 24465 fi # end check jdk version 24466 fi # end check rt.jar 24467 fi # end check javac 24468 fi # end check java 24469 fi # end check boot jdk found 24470 fi 24471 24472 fi 24473 24474 24475 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24476 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24477 # Do we have a bin/java? 24478 if test ! -x "$BOOT_JDK/bin/java"; then 24479 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24480 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24481 BOOT_JDK_FOUND=no 24482 else 24483 # Do we have a bin/javac? 24484 if test ! -x "$BOOT_JDK/bin/javac"; then 24485 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24486 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24487 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24488 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24489 BOOT_JDK_FOUND=no 24490 else 24491 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24492 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24493 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24494 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24495 BOOT_JDK_FOUND=no 24496 else 24497 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24498 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24499 24500 # Extra M4 quote needed to protect [] in grep expression. 24501 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 24502 if test "x$FOUND_VERSION_78" = x; then 24503 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24504 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24505 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 24506 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 24507 BOOT_JDK_FOUND=no 24508 else 24509 # We're done! :-) 24510 BOOT_JDK_FOUND=yes 24511 24512 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24513 24514 # Input might be given as Windows format, start by converting to 24515 # unix format. 24516 path="$BOOT_JDK" 24517 new_path=`$CYGPATH -u "$path"` 24518 24519 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24520 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24521 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24522 # "foo.exe" is OK but "foo" is an error. 24523 # 24524 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24525 # It is also a way to make sure we got the proper file name for the real test later on. 24526 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24527 if test "x$test_shortpath" = x; then 24528 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24529 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24530 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24531 fi 24532 24533 # Call helper function which possibly converts this using DOS-style short mode. 24534 # If so, the updated path is stored in $new_path. 24535 24536 input_path="$new_path" 24537 # Check if we need to convert this using DOS-style short mode. If the path 24538 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24539 # take no chances and rewrite it. 24540 # Note: m4 eats our [], so we need to use [ and ] instead. 24541 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24542 if test "x$has_forbidden_chars" != x; then 24543 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24544 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24545 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24546 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24547 # Going to short mode and back again did indeed matter. Since short mode is 24548 # case insensitive, let's make it lowercase to improve readability. 24549 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24550 # Now convert it back to Unix-style (cygpath) 24551 input_path=`$CYGPATH -u "$shortmode_path"` 24552 new_path="$input_path" 24553 fi 24554 fi 24555 24556 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24557 if test "x$test_cygdrive_prefix" = x; then 24558 # As a simple fix, exclude /usr/bin since it's not a real path. 24559 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24560 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24561 # a path prefixed by /cygdrive for fixpath to work. 24562 new_path="$CYGWIN_ROOT_PATH$input_path" 24563 fi 24564 fi 24565 24566 24567 if test "x$path" != "x$new_path"; then 24568 BOOT_JDK="$new_path" 24569 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24570 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24571 fi 24572 24573 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24574 24575 path="$BOOT_JDK" 24576 has_colon=`$ECHO $path | $GREP ^.:` 24577 new_path="$path" 24578 if test "x$has_colon" = x; then 24579 # Not in mixed or Windows style, start by that. 24580 new_path=`cmd //c echo $path` 24581 fi 24582 24583 24584 input_path="$new_path" 24585 # Check if we need to convert this using DOS-style short mode. If the path 24586 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24587 # take no chances and rewrite it. 24588 # Note: m4 eats our [], so we need to use [ and ] instead. 24589 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24590 if test "x$has_forbidden_chars" != x; then 24591 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24592 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24593 fi 24594 24595 24596 windows_path="$new_path" 24597 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24598 unix_path=`$CYGPATH -u "$windows_path"` 24599 new_path="$unix_path" 24600 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24601 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24602 new_path="$unix_path" 24603 fi 24604 24605 if test "x$path" != "x$new_path"; then 24606 BOOT_JDK="$new_path" 24607 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24608 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24609 fi 24610 24611 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24612 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24613 24614 else 24615 # We're on a posix platform. Hooray! :) 24616 path="$BOOT_JDK" 24617 has_space=`$ECHO "$path" | $GREP " "` 24618 if test "x$has_space" != x; then 24619 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24620 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24621 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24622 fi 24623 24624 # Use eval to expand a potential ~ 24625 eval path="$path" 24626 if test ! -f "$path" && test ! -d "$path"; then 24627 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24628 fi 24629 24630 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24631 fi 24632 24633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24634 $as_echo_n "checking for Boot JDK... " >&6; } 24635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24636 $as_echo "$BOOT_JDK" >&6; } 24637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24638 $as_echo_n "checking Boot JDK version... " >&6; } 24639 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24641 $as_echo "$BOOT_JDK_VERSION" >&6; } 24642 fi # end check jdk version 24643 fi # end check rt.jar 24644 fi # end check javac 24645 fi # end check java 24646 fi # end check boot jdk found 24647 fi 24648 24649 24650 # If we haven't found anything yet, we've truly lost. Give up. 24651 if test "x$BOOT_JDK_FOUND" = xno; then 24652 24653 # Print a helpful message on how to acquire the necessary build dependency. 24654 # openjdk is the help tag: freetype, cups, pulse, alsa etc 24655 MISSING_DEPENDENCY=openjdk 24656 24657 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24658 cygwin_help $MISSING_DEPENDENCY 24659 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24660 msys_help $MISSING_DEPENDENCY 24661 else 24662 PKGHANDLER_COMMAND= 24663 24664 case $PKGHANDLER in 24665 apt-get) 24666 apt_help $MISSING_DEPENDENCY ;; 24667 yum) 24668 yum_help $MISSING_DEPENDENCY ;; 24669 port) 24670 port_help $MISSING_DEPENDENCY ;; 24671 pkgutil) 24672 pkgutil_help $MISSING_DEPENDENCY ;; 24673 pkgadd) 24674 pkgadd_help $MISSING_DEPENDENCY ;; 24675 esac 24676 24677 if test "x$PKGHANDLER_COMMAND" != x; then 24678 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 24679 fi 24680 fi 24681 24682 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 24683 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 24684 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 24685 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24686 as_fn_error $? "Cannot continue" "$LINENO" 5 24687 fi 24688 24689 # Setup proper paths for what we found 24690 BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar" 24691 if test ! -f "$BOOT_RTJAR"; then 24692 # On MacOSX it is called classes.jar 24693 BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar" 24694 if test -f "$BOOT_RTJAR"; then 24695 # Remove the .. 24696 BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}" 24697 fi 24698 fi 24699 BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar" 24700 BOOT_JDK="$BOOT_JDK" 24701 24702 24703 24704 24705 # Setup tools from the Boot JDK. 24706 24707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 24708 $as_echo_n "checking for java in Boot JDK... " >&6; } 24709 JAVA=$BOOT_JDK/bin/java 24710 if test ! -x $JAVA; then 24711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24712 $as_echo "not found" >&6; } 24713 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24714 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24715 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 24716 fi 24717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24718 $as_echo "ok" >&6; } 24719 24720 24721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 24722 $as_echo_n "checking for javac in Boot JDK... " >&6; } 24723 JAVAC=$BOOT_JDK/bin/javac 24724 if test ! -x $JAVAC; then 24725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24726 $as_echo "not found" >&6; } 24727 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24728 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24729 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 24730 fi 24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24732 $as_echo "ok" >&6; } 24733 24734 24735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 24736 $as_echo_n "checking for javah in Boot JDK... " >&6; } 24737 JAVAH=$BOOT_JDK/bin/javah 24738 if test ! -x $JAVAH; then 24739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24740 $as_echo "not found" >&6; } 24741 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24742 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24743 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 24744 fi 24745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24746 $as_echo "ok" >&6; } 24747 24748 24749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javap in Boot JDK" >&5 24750 $as_echo_n "checking for javap in Boot JDK... " >&6; } 24751 JAVAP=$BOOT_JDK/bin/javap 24752 if test ! -x $JAVAP; then 24753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24754 $as_echo "not found" >&6; } 24755 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24756 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24757 as_fn_error $? "Could not find javap in the Boot JDK" "$LINENO" 5 24758 fi 24759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24760 $as_echo "ok" >&6; } 24761 24762 24763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 24764 $as_echo_n "checking for jar in Boot JDK... " >&6; } 24765 JAR=$BOOT_JDK/bin/jar 24766 if test ! -x $JAR; then 24767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24768 $as_echo "not found" >&6; } 24769 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24770 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24771 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 24772 fi 24773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24774 $as_echo "ok" >&6; } 24775 24776 24777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rmic in Boot JDK" >&5 24778 $as_echo_n "checking for rmic in Boot JDK... " >&6; } 24779 RMIC=$BOOT_JDK/bin/rmic 24780 if test ! -x $RMIC; then 24781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24782 $as_echo "not found" >&6; } 24783 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24784 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24785 as_fn_error $? "Could not find rmic in the Boot JDK" "$LINENO" 5 24786 fi 24787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24788 $as_echo "ok" >&6; } 24789 24790 24791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 24792 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 24793 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 24794 if test ! -x $NATIVE2ASCII; then 24795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24796 $as_echo "not found" >&6; } 24797 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24798 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24799 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 24800 fi 24801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24802 $as_echo "ok" >&6; } 24803 24804 24805 # Finally, set some other options... 24806 24807 # When compiling code to be executed by the Boot JDK, force jdk7 compatibility. 24808 BOOT_JDK_SOURCETARGET="-source 7 -target 7" 24809 24810 24811 24812 # Check if the boot jdk is 32 or 64 bit 24813 if "$JAVA" -d64 -version > /dev/null 2>&1; then 24814 BOOT_JDK_BITS="64" 24815 else 24816 BOOT_JDK_BITS="32" 24817 fi 24818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5 24819 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; } 24820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5 24821 $as_echo "$BOOT_JDK_BITS" >&6; } 24822 24823 24824 24825 ############################################################################## 24826 # 24827 # Specify options for anything that is run with the Boot JDK. 24828 # 24829 24830 # Check whether --with-boot-jdk-jvmargs was given. 24831 if test "${with_boot_jdk_jvmargs+set}" = set; then : 24832 withval=$with_boot_jdk_jvmargs; 24833 fi 24834 24835 24836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 24837 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 24838 24839 # Disable special log output when a debug build is used as Boot JDK... 24840 24841 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 24842 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 24843 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 24844 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24845 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24846 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24847 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 24848 JVM_ARG_OK=true 24849 else 24850 $ECHO "Arg failed:" >&5 24851 $ECHO "$OUTPUT" >&5 24852 JVM_ARG_OK=false 24853 fi 24854 24855 24856 # Apply user provided options. 24857 24858 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 24859 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 24860 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 24861 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24862 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24863 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24864 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 24865 JVM_ARG_OK=true 24866 else 24867 $ECHO "Arg failed:" >&5 24868 $ECHO "$OUTPUT" >&5 24869 JVM_ARG_OK=false 24870 fi 24871 24872 24873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 24874 $as_echo "$boot_jdk_jvmargs" >&6; } 24875 24876 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 24877 JAVA_FLAGS=$boot_jdk_jvmargs 24878 24879 24880 24881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 24882 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 24883 24884 # Starting amount of heap memory. 24885 24886 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 24887 $ECHO "Command: $JAVA -Xms64M -version" >&5 24888 OUTPUT=`$JAVA -Xms64M -version 2>&1` 24889 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24890 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24891 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24892 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 24893 JVM_ARG_OK=true 24894 else 24895 $ECHO "Arg failed:" >&5 24896 $ECHO "$OUTPUT" >&5 24897 JVM_ARG_OK=false 24898 fi 24899 24900 24901 # Maximum amount of heap memory. 24902 # Maximum stack size. 24903 if test "x$BOOT_JDK_BITS" = x32; then 24904 JVM_MAX_HEAP=768M 24905 STACK_SIZE=768 24906 else 24907 # Running Javac on a JVM on a 64-bit machine, takes more space since 64-bit 24908 # pointers are used. Apparently, we need to increase the heap and stack 24909 # space for the jvm. More specifically, when running javac to build huge 24910 # jdk batch 24911 JVM_MAX_HEAP=1600M 24912 STACK_SIZE=1536 24913 fi 24914 24915 $ECHO "Check if jvm arg is ok: -Xmx$JVM_MAX_HEAP" >&5 24916 $ECHO "Command: $JAVA -Xmx$JVM_MAX_HEAP -version" >&5 24917 OUTPUT=`$JAVA -Xmx$JVM_MAX_HEAP -version 2>&1` 24918 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24919 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24920 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24921 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx$JVM_MAX_HEAP" 24922 JVM_ARG_OK=true 24923 else 24924 $ECHO "Arg failed:" >&5 24925 $ECHO "$OUTPUT" >&5 24926 JVM_ARG_OK=false 24927 fi 24928 24929 24930 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 24931 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 24932 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 24933 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24934 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24935 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24936 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 24937 JVM_ARG_OK=true 24938 else 24939 $ECHO "Arg failed:" >&5 24940 $ECHO "$OUTPUT" >&5 24941 JVM_ARG_OK=false 24942 fi 24943 24944 24945 $ECHO "Check if jvm arg is ok: -XX:PermSize=32m" >&5 24946 $ECHO "Command: $JAVA -XX:PermSize=32m -version" >&5 24947 OUTPUT=`$JAVA -XX:PermSize=32m -version 2>&1` 24948 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24949 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24950 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24951 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:PermSize=32m" 24952 JVM_ARG_OK=true 24953 else 24954 $ECHO "Arg failed:" >&5 24955 $ECHO "$OUTPUT" >&5 24956 JVM_ARG_OK=false 24957 fi 24958 24959 24960 $ECHO "Check if jvm arg is ok: -XX:MaxPermSize=160m" >&5 24961 $ECHO "Command: $JAVA -XX:MaxPermSize=160m -version" >&5 24962 OUTPUT=`$JAVA -XX:MaxPermSize=160m -version 2>&1` 24963 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24964 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24965 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24966 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:MaxPermSize=160m" 24967 JVM_ARG_OK=true 24968 else 24969 $ECHO "Arg failed:" >&5 24970 $ECHO "$OUTPUT" >&5 24971 JVM_ARG_OK=false 24972 fi 24973 24974 24975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 24976 $as_echo "$boot_jdk_jvmargs_big" >&6; } 24977 24978 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 24979 24980 24981 24982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 24983 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 24984 24985 # Use serial gc for small short lived tools if possible 24986 24987 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 24988 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 24989 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 24990 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24991 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24992 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24993 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 24994 JVM_ARG_OK=true 24995 else 24996 $ECHO "Arg failed:" >&5 24997 $ECHO "$OUTPUT" >&5 24998 JVM_ARG_OK=false 24999 fi 25000 25001 25002 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 25003 $ECHO "Command: $JAVA -Xms32M -version" >&5 25004 OUTPUT=`$JAVA -Xms32M -version 2>&1` 25005 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 25006 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 25007 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 25008 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 25009 JVM_ARG_OK=true 25010 else 25011 $ECHO "Arg failed:" >&5 25012 $ECHO "$OUTPUT" >&5 25013 JVM_ARG_OK=false 25014 fi 25015 25016 25017 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 25018 $ECHO "Command: $JAVA -Xmx512M -version" >&5 25019 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 25020 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 25021 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 25022 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 25023 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 25024 JVM_ARG_OK=true 25025 else 25026 $ECHO "Arg failed:" >&5 25027 $ECHO "$OUTPUT" >&5 25028 JVM_ARG_OK=false 25029 fi 25030 25031 25032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 25033 $as_echo "$boot_jdk_jvmargs_small" >&6; } 25034 25035 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 25036 25037 25038 25039 ############################################################################### 25040 # 25041 # Configure the sources to use. We can add or override individual directories. 25042 # 25043 ############################################################################### 25044 25045 25046 # Where are the sources. Any of these can be overridden 25047 # using --with-override-corba and the likes. 25048 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 25049 CORBA_TOPDIR="$SRC_ROOT/corba" 25050 JAXP_TOPDIR="$SRC_ROOT/jaxp" 25051 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 25052 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 25053 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 25054 JDK_TOPDIR="$SRC_ROOT/jdk" 25055 25056 25057 25058 25059 25060 25061 25062 25063 25064 25065 ############################################################################### 25066 # 25067 # Pickup additional source for a component from outside of the source root 25068 # or override source for a component. 25069 # 25070 25071 # Check whether --with-add-source-root was given. 25072 if test "${with_add_source_root+set}" = set; then : 25073 withval=$with_add_source_root; 25074 fi 25075 25076 25077 25078 # Check whether --with-override-source-root was given. 25079 if test "${with_override_source_root+set}" = set; then : 25080 withval=$with_override_source_root; 25081 fi 25082 25083 25084 25085 # Check whether --with-adds-and-overrides was given. 25086 if test "${with_adds_and_overrides+set}" = set; then : 25087 withval=$with_adds_and_overrides; 25088 fi 25089 25090 25091 if test "x$with_adds_and_overrides" != x; then 25092 with_add_source_root="$with_adds_and_overrides/adds" 25093 with_override_source_root="$with_adds_and_overrides/overrides" 25094 fi 25095 25096 if test "x$with_add_source_root" != x; then 25097 if ! test -d $with_add_source_root; then 25098 as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5 25099 fi 25100 CURDIR="$PWD" 25101 cd "$with_add_source_root" 25102 ADD_SRC_ROOT="`pwd`" 25103 cd "$CURDIR" 25104 # Verify that the addon source root does not have any root makefiles. 25105 # If it does, then it is usually an error, prevent this. 25106 if test -f $with_add_source_root/langtools/make/Makefile; then 25107 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 25108 fi 25109 if test -f $with_add_source_root/corba/make/Makefile; then 25110 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 25111 fi 25112 if test -f $with_add_source_root/jaxp/make/Makefile; then 25113 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 25114 fi 25115 if test -f $with_add_source_root/jaxws/make/Makefile; then 25116 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 25117 fi 25118 if test -f $with_add_source_root/hotspot/make/Makefile; then 25119 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 25120 fi 25121 if test -f $with_add_source_root/nashorn/make/Makefile; then 25122 as_fn_error $? "Your add source root seems to contain a full nashorn repo! An add source root should only contain additional sources." "$LINENO" 5 25123 fi 25124 if test -f $with_add_source_root/jdk/make/Makefile; then 25125 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 25126 fi 25127 fi 25128 25129 25130 if test "x$with_override_source_root" != x; then 25131 if ! test -d $with_override_source_root; then 25132 as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5 25133 fi 25134 CURDIR="$PWD" 25135 cd "$with_override_source_root" 25136 OVERRIDE_SRC_ROOT="`pwd`" 25137 cd "$CURDIR" 25138 if test -f $with_override_source_root/langtools/make/Makefile; then 25139 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 25140 fi 25141 if test -f $with_override_source_root/corba/make/Makefile; then 25142 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 25143 fi 25144 if test -f $with_override_source_root/jaxp/make/Makefile; then 25145 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 25146 fi 25147 if test -f $with_override_source_root/jaxws/make/Makefile; then 25148 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 25149 fi 25150 if test -f $with_override_source_root/hotspot/make/Makefile; then 25151 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 25152 fi 25153 if test -f $with_override_source_root/nashorn/make/Makefile; then 25154 as_fn_error $? "Your override source root seems to contain a full nashorn repo! An override source root should only contain sources that override." "$LINENO" 5 25155 fi 25156 if test -f $with_override_source_root/jdk/make/Makefile; then 25157 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 25158 fi 25159 fi 25160 25161 25162 ############################################################################### 25163 # 25164 # Override a repo completely, this is used for example when you have 3 small 25165 # development sandboxes of the langtools sources and want to avoid having 3 full 25166 # OpenJDK sources checked out on disk. 25167 # 25168 # Assuming that the 3 langtools sandboxes are located here: 25169 # /home/fredrik/sandbox1/langtools 25170 # /home/fredrik/sandbox2/langtools 25171 # /home/fredrik/sandbox3/langtools 25172 # 25173 # From the source root you create build subdirs manually: 25174 # mkdir -p build1 build2 build3 25175 # in each build directory run: 25176 # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make) 25177 # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make) 25178 # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make) 25179 # 25180 25181 25182 # Check whether --with-override-langtools was given. 25183 if test "${with_override_langtools+set}" = set; then : 25184 withval=$with_override_langtools; 25185 fi 25186 25187 25188 25189 # Check whether --with-override-corba was given. 25190 if test "${with_override_corba+set}" = set; then : 25191 withval=$with_override_corba; 25192 fi 25193 25194 25195 25196 # Check whether --with-override-jaxp was given. 25197 if test "${with_override_jaxp+set}" = set; then : 25198 withval=$with_override_jaxp; 25199 fi 25200 25201 25202 25203 # Check whether --with-override-jaxws was given. 25204 if test "${with_override_jaxws+set}" = set; then : 25205 withval=$with_override_jaxws; 25206 fi 25207 25208 25209 25210 # Check whether --with-override-hotspot was given. 25211 if test "${with_override_hotspot+set}" = set; then : 25212 withval=$with_override_hotspot; 25213 fi 25214 25215 25216 25217 # Check whether --with-override-nashorn was given. 25218 if test "${with_override_nashorn+set}" = set; then : 25219 withval=$with_override_nashorn; 25220 fi 25221 25222 25223 25224 # Check whether --with-override-jdk was given. 25225 if test "${with_override_jdk+set}" = set; then : 25226 withval=$with_override_jdk; 25227 fi 25228 25229 25230 if test "x$with_override_langtools" != x; then 25231 CURDIR="$PWD" 25232 cd "$with_override_langtools" 25233 LANGTOOLS_TOPDIR="`pwd`" 25234 cd "$CURDIR" 25235 if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then 25236 as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5 25237 fi 25238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5 25239 $as_echo_n "checking if langtools should be overridden... " >&6; } 25240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5 25241 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; } 25242 fi 25243 if test "x$with_override_corba" != x; then 25244 CURDIR="$PWD" 25245 cd "$with_override_corba" 25246 CORBA_TOPDIR="`pwd`" 25247 cd "$CURDIR" 25248 if ! test -f $CORBA_TOPDIR/make/Makefile; then 25249 as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5 25250 fi 25251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5 25252 $as_echo_n "checking if corba should be overridden... " >&6; } 25253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5 25254 $as_echo "yes with $CORBA_TOPDIR" >&6; } 25255 fi 25256 if test "x$with_override_jaxp" != x; then 25257 CURDIR="$PWD" 25258 cd "$with_override_jaxp" 25259 JAXP_TOPDIR="`pwd`" 25260 cd "$CURDIR" 25261 if ! test -f $JAXP_TOPDIR/make/Makefile; then 25262 as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5 25263 fi 25264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5 25265 $as_echo_n "checking if jaxp should be overridden... " >&6; } 25266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5 25267 $as_echo "yes with $JAXP_TOPDIR" >&6; } 25268 fi 25269 if test "x$with_override_jaxws" != x; then 25270 CURDIR="$PWD" 25271 cd "$with_override_jaxws" 25272 JAXWS_TOPDIR="`pwd`" 25273 cd "$CURDIR" 25274 if ! test -f $JAXWS_TOPDIR/make/Makefile; then 25275 as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5 25276 fi 25277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5 25278 $as_echo_n "checking if jaxws should be overridden... " >&6; } 25279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5 25280 $as_echo "yes with $JAXWS_TOPDIR" >&6; } 25281 fi 25282 if test "x$with_override_hotspot" != x; then 25283 CURDIR="$PWD" 25284 cd "$with_override_hotspot" 25285 HOTSPOT_TOPDIR="`pwd`" 25286 cd "$CURDIR" 25287 if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then 25288 as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5 25289 fi 25290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5 25291 $as_echo_n "checking if hotspot should be overridden... " >&6; } 25292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5 25293 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; } 25294 fi 25295 if test "x$with_override_nashorn" != x; then 25296 CURDIR="$PWD" 25297 cd "$with_override_nashorn" 25298 NASHORN_TOPDIR="`pwd`" 25299 cd "$CURDIR" 25300 if ! test -f $NASHORN_TOPDIR/make/Makefile; then 25301 as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5 25302 fi 25303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5 25304 $as_echo_n "checking if nashorn should be overridden... " >&6; } 25305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5 25306 $as_echo "yes with $NASHORN_TOPDIR" >&6; } 25307 fi 25308 if test "x$with_override_jdk" != x; then 25309 CURDIR="$PWD" 25310 cd "$with_override_jdk" 25311 JDK_TOPDIR="`pwd`" 25312 cd "$CURDIR" 25313 if ! test -f $JDK_TOPDIR/make/Makefile; then 25314 as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5 25315 fi 25316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5 25317 $as_echo_n "checking if JDK should be overridden... " >&6; } 25318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5 25319 $as_echo "yes with $JDK_TOPDIR" >&6; } 25320 fi 25321 25322 25323 BUILD_OUTPUT="$OUTPUT_ROOT" 25324 25325 25326 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 25327 BUILD_HOTSPOT=true 25328 25329 25330 25331 # Check whether --with-import-hotspot was given. 25332 if test "${with_import_hotspot+set}" = set; then : 25333 withval=$with_import_hotspot; 25334 fi 25335 25336 if test "x$with_import_hotspot" != x; then 25337 CURDIR="$PWD" 25338 cd "$with_import_hotspot" 25339 HOTSPOT_DIST="`pwd`" 25340 cd "$CURDIR" 25341 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 25342 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 25343 fi 25344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 25345 $as_echo_n "checking if hotspot should be imported... " >&6; } 25346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 25347 $as_echo "yes from $HOTSPOT_DIST" >&6; } 25348 BUILD_HOTSPOT=false 25349 fi 25350 25351 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 25352 25353 25354 ############################################################################### 25355 # 25356 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 25357 # native code. 25358 # 25359 ############################################################################### 25360 25361 # First determine the toolchain type (compiler family) 25362 25363 25364 # Check whether --with-toolchain-type was given. 25365 if test "${with_toolchain_type+set}" = set; then : 25366 withval=$with_toolchain_type; 25367 fi 25368 25369 25370 # Use indirect variable referencing 25371 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 25372 VALID_TOOLCHAINS=${!toolchain_var_name} 25373 25374 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 25375 # On Mac OS X, default toolchain to clang after Xcode 5 25376 XCODE_VERSION_OUTPUT=`xcodebuild -version 2>&1 | $HEAD -n 1` 25377 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 25378 if test $? -ne 0; then 25379 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 25380 fi 25381 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 25382 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 25383 $CUT -f 1 -d .` 25384 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 25385 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 25386 if test $XCODE_MAJOR_VERSION -ge 5; then 25387 DEFAULT_TOOLCHAIN="clang" 25388 else 25389 DEFAULT_TOOLCHAIN="gcc" 25390 fi 25391 else 25392 # First toolchain type in the list is the default 25393 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 25394 fi 25395 25396 if test "x$with_toolchain_type" = xlist; then 25397 # List all toolchains 25398 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 25399 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 25400 for toolchain in $VALID_TOOLCHAINS; do 25401 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 25402 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 25403 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 25404 done 25405 25406 exit 0 25407 elif test "x$with_toolchain_type" != x; then 25408 # User override; check that it is valid 25409 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 25410 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 25411 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 25412 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 25413 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 25414 as_fn_error $? "Cannot continue." "$LINENO" 5 25415 fi 25416 TOOLCHAIN_TYPE=$with_toolchain_type 25417 else 25418 # No flag given, use default 25419 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 25420 fi 25421 25422 25423 TOOLCHAIN_CC_BINARY_clang="clang" 25424 TOOLCHAIN_CC_BINARY_gcc="gcc" 25425 TOOLCHAIN_CC_BINARY_microsoft="cl" 25426 TOOLCHAIN_CC_BINARY_solstudio="cc" 25427 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 25428 25429 TOOLCHAIN_CXX_BINARY_clang="clang++" 25430 TOOLCHAIN_CXX_BINARY_gcc="g++" 25431 TOOLCHAIN_CXX_BINARY_microsoft="cl" 25432 TOOLCHAIN_CXX_BINARY_solstudio="CC" 25433 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 25434 25435 # Use indirect variable referencing 25436 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 25437 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 25438 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 25439 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 25440 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 25441 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 25442 25443 25444 # Define filename patterns 25445 if test "x$OPENJDK_TARGET_OS" = xwindows; then 25446 LIBRARY_PREFIX= 25447 SHARED_LIBRARY_SUFFIX='.dll' 25448 STATIC_LIBRARY_SUFFIX='.lib' 25449 SHARED_LIBRARY='$1.dll' 25450 STATIC_LIBRARY='$1.lib' 25451 OBJ_SUFFIX='.obj' 25452 EXE_SUFFIX='.exe' 25453 else 25454 LIBRARY_PREFIX=lib 25455 SHARED_LIBRARY_SUFFIX='.so' 25456 STATIC_LIBRARY_SUFFIX='.a' 25457 SHARED_LIBRARY='lib$1.so' 25458 STATIC_LIBRARY='lib$1.a' 25459 OBJ_SUFFIX='.o' 25460 EXE_SUFFIX='' 25461 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 25462 SHARED_LIBRARY='lib$1.dylib' 25463 SHARED_LIBRARY_SUFFIX='.dylib' 25464 fi 25465 fi 25466 25467 25468 25469 25470 25471 25472 25473 25474 25475 25476 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 25477 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 25478 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 25479 else 25480 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 25481 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 25482 fi 25483 25484 25485 # Then detect the actual binaries needed 25486 25487 # FIXME: Is this needed? 25488 ac_ext=cpp 25489 ac_cpp='$CXXCPP $CPPFLAGS' 25490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25493 25494 25495 # Store the CFLAGS etal passed to the configure script. 25496 ORG_CFLAGS="$CFLAGS" 25497 ORG_CXXFLAGS="$CXXFLAGS" 25498 ORG_OBJCFLAGS="$OBJCFLAGS" 25499 25500 # autoconf magic only relies on PATH, so update it if tools dir is specified 25501 OLD_PATH="$PATH" 25502 25503 # On Windows, we need to detect the visual studio installation first. 25504 # This will change the PATH, but we need to keep that new PATH even 25505 # after toolchain detection is done, since the compiler (on x86) uses 25506 # it for DLL resolution in runtime. 25507 if test "x$OPENJDK_BUILD_OS" = "xwindows" \ 25508 && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 25509 25510 # Store path to cygwin link.exe to help excluding it when searching for 25511 # VS linker. This must be done before changing the PATH when looking for VS. 25512 # Extract the first word of "link", so it can be a program name with args. 25513 set dummy link; ac_word=$2 25514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25515 $as_echo_n "checking for $ac_word... " >&6; } 25516 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 25517 $as_echo_n "(cached) " >&6 25518 else 25519 case $CYGWIN_LINK in 25520 [\\/]* | ?:[\\/]*) 25521 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 25522 ;; 25523 *) 25524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25525 for as_dir in $PATH 25526 do 25527 IFS=$as_save_IFS 25528 test -z "$as_dir" && as_dir=. 25529 for ac_exec_ext in '' $ac_executable_extensions; do 25530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25531 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 25532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25533 break 2 25534 fi 25535 done 25536 done 25537 IFS=$as_save_IFS 25538 25539 ;; 25540 esac 25541 fi 25542 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 25543 if test -n "$CYGWIN_LINK"; then 25544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 25545 $as_echo "$CYGWIN_LINK" >&6; } 25546 else 25547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25548 $as_echo "no" >&6; } 25549 fi 25550 25551 25552 if test "x$CYGWIN_LINK" != x; then 25553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 25554 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 25555 "$CYGWIN_LINK" --version > /dev/null 25556 if test $? -eq 0 ; then 25557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25558 $as_echo "yes" >&6; } 25559 else 25560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25561 $as_echo "no" >&6; } 25562 # This might be the VS linker. Don't exclude it later on. 25563 CYGWIN_LINK="" 25564 fi 25565 fi 25566 25567 # First-hand choice is to locate and run the vsvars bat file. 25568 25569 25570 # Check whether --with-toolchain-version was given. 25571 if test "${with_toolchain_version+set}" = set; then : 25572 withval=$with_toolchain_version; 25573 fi 25574 25575 25576 if test "x$with_toolchain_version" = xlist; then 25577 # List all toolchains 25578 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 25579 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 25580 for version in $VALID_VS_VERSIONS; do 25581 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 25582 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 25583 done 25584 25585 exit 0 25586 elif test "x$DEVKIT_VS_VERSION" != x; then 25587 VS_VERSION=$DEVKIT_VS_VERSION 25588 TOOLCHAIN_VERSION=$VS_VERSION 25589 # If the devkit has a name, use that as description 25590 VS_DESCRIPTION="$DEVKIT_NAME" 25591 if test "x$VS_DESCRIPTION" = x; then 25592 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 25593 fi 25594 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 25595 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 25596 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 25597 eval USE_UCRT="\${VS_USE_UCRT_${VS_VERSION}}" 25598 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 25599 VS_PATH="$TOOLCHAIN_PATH:$PATH" 25600 25601 # Convert DEVKIT_VS_INCLUDE into windows style VS_INCLUDE so that it 25602 # can still be exported as INCLUDE for compiler invocations without 25603 # SYSROOT_CFLAGS 25604 OLDIFS="$IFS" 25605 IFS=";" 25606 for i in $DEVKIT_VS_INCLUDE; do 25607 ipath=$i 25608 25609 unix_path="$ipath" 25610 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25611 windows_path=`$CYGPATH -m "$unix_path"` 25612 ipath="$windows_path" 25613 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25614 windows_path=`cmd //c echo $unix_path` 25615 ipath="$windows_path" 25616 fi 25617 25618 VS_INCLUDE="$VS_INCLUDE;$ipath" 25619 done 25620 # Convert DEVKIT_VS_LIB into VS_LIB so that it can still be exported 25621 # as LIB for compiler invocations without SYSROOT_LDFLAGS 25622 for i in $DEVKIT_VS_LIB; do 25623 libpath=$i 25624 25625 unix_path="$libpath" 25626 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25627 windows_path=`$CYGPATH -m "$unix_path"` 25628 libpath="$windows_path" 25629 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25630 windows_path=`cmd //c echo $unix_path` 25631 libpath="$windows_path" 25632 fi 25633 25634 VS_LIB="$VS_LIB;$libpath" 25635 done 25636 IFS="$OLDIFS" 25637 25638 { $as_echo "$as_me:${as_lineno-$LINENO}: Found devkit $VS_DESCRIPTION" >&5 25639 $as_echo "$as_me: Found devkit $VS_DESCRIPTION" >&6;} 25640 25641 elif test "x$with_toolchain_version" != x; then 25642 # User override; check that it is valid 25643 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 25644 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 25645 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 25646 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 25647 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 25648 as_fn_error $? "Cannot continue." "$LINENO" 5 25649 fi 25650 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 25651 else 25652 # No flag given, use default 25653 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 25654 fi 25655 25656 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 25657 25658 VS_VERSION="$VS_VERSION" 25659 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 25660 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 25661 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 25662 eval VS_EDITIONS="\${VS_EDITIONS_${VS_VERSION}}" 25663 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 25664 eval VS_ENV_ARGS="\${VS_ENV_ARGS_${VS_VERSION}}" 25665 25666 # When using --with-tools-dir, assume it points to the correct and default 25667 # version of Visual Studio or that --with-toolchain-version was also set. 25668 if test "x$with_tools_dir" != x; then 25669 25670 if test "x$VS_ENV_CMD" = x; then 25671 VS_VERSION="${VS_VERSION}" 25672 VS_BASE="$with_tools_dir/../.." 25673 METHOD="--with-tools-dir" 25674 25675 25676 windows_path="$VS_BASE" 25677 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25678 unix_path=`$CYGPATH -u "$windows_path"` 25679 VS_BASE="$unix_path" 25680 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25681 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25682 VS_BASE="$unix_path" 25683 fi 25684 25685 # In VS 2017, the default installation is in a subdir named after the edition. 25686 # Find the first one present and use that. 25687 if test "x$VS_EDITIONS" != x; then 25688 for edition in $VS_EDITIONS; do 25689 if test -d "$VS_BASE/$edition"; then 25690 VS_BASE="$VS_BASE/$edition" 25691 break 25692 fi 25693 done 25694 fi 25695 25696 if test -d "$VS_BASE"; then 25697 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 25698 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 25699 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25700 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 25701 else 25702 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 25703 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 25704 fi 25705 25706 for VCVARSFILE in $VCVARSFILES; do 25707 if test -f "$VS_BASE/$VCVARSFILE"; then 25708 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 25709 break 25710 fi 25711 done 25712 25713 if test "x$VS_ENV_CMD" = x; then 25714 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 25715 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 25716 else 25717 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 25718 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 25719 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 25720 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 25721 25722 fi 25723 fi 25724 fi 25725 25726 25727 if test "x$VS_ENV_CMD" = x; then 25728 VS_VERSION="${VS_VERSION}" 25729 VS_BASE="$with_tools_dir/../../.." 25730 METHOD="--with-tools-dir" 25731 25732 25733 windows_path="$VS_BASE" 25734 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25735 unix_path=`$CYGPATH -u "$windows_path"` 25736 VS_BASE="$unix_path" 25737 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25738 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25739 VS_BASE="$unix_path" 25740 fi 25741 25742 # In VS 2017, the default installation is in a subdir named after the edition. 25743 # Find the first one present and use that. 25744 if test "x$VS_EDITIONS" != x; then 25745 for edition in $VS_EDITIONS; do 25746 if test -d "$VS_BASE/$edition"; then 25747 VS_BASE="$VS_BASE/$edition" 25748 break 25749 fi 25750 done 25751 fi 25752 25753 if test -d "$VS_BASE"; then 25754 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 25755 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 25756 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25757 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 25758 else 25759 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 25760 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 25761 fi 25762 25763 for VCVARSFILE in $VCVARSFILES; do 25764 if test -f "$VS_BASE/$VCVARSFILE"; then 25765 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 25766 break 25767 fi 25768 done 25769 25770 if test "x$VS_ENV_CMD" = x; then 25771 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 25772 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 25773 else 25774 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 25775 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 25776 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 25777 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 25778 25779 fi 25780 fi 25781 fi 25782 25783 if test "x$VS_ENV_CMD" = x; then 25784 # Having specified an argument which is incorrect will produce an instant failure; 25785 # we should not go on looking 25786 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 25787 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 25788 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 25789 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 25790 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 25791 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 25792 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 25793 fi 25794 fi 25795 25796 VS_ENV_CMD="" 25797 25798 if test "x$VS_COMNTOOLS" != x; then 25799 25800 if test "x$VS_ENV_CMD" = x; then 25801 VS_VERSION="${VS_VERSION}" 25802 VS_BASE="$VS_COMNTOOLS/../.." 25803 METHOD="$VS_COMNTOOLS_VAR variable" 25804 25805 25806 windows_path="$VS_BASE" 25807 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25808 unix_path=`$CYGPATH -u "$windows_path"` 25809 VS_BASE="$unix_path" 25810 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25811 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25812 VS_BASE="$unix_path" 25813 fi 25814 25815 # In VS 2017, the default installation is in a subdir named after the edition. 25816 # Find the first one present and use that. 25817 if test "x$VS_EDITIONS" != x; then 25818 for edition in $VS_EDITIONS; do 25819 if test -d "$VS_BASE/$edition"; then 25820 VS_BASE="$VS_BASE/$edition" 25821 break 25822 fi 25823 done 25824 fi 25825 25826 if test -d "$VS_BASE"; then 25827 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 25828 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 25829 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25830 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 25831 else 25832 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 25833 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 25834 fi 25835 25836 for VCVARSFILE in $VCVARSFILES; do 25837 if test -f "$VS_BASE/$VCVARSFILE"; then 25838 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 25839 break 25840 fi 25841 done 25842 25843 if test "x$VS_ENV_CMD" = x; then 25844 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 25845 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 25846 else 25847 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 25848 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 25849 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 25850 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 25851 25852 fi 25853 fi 25854 fi 25855 25856 fi 25857 if test "x$PROGRAMFILES" != x; then 25858 25859 if test "x$VS_ENV_CMD" = x; then 25860 VS_VERSION="${VS_VERSION}" 25861 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 25862 METHOD="well-known name" 25863 25864 25865 windows_path="$VS_BASE" 25866 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25867 unix_path=`$CYGPATH -u "$windows_path"` 25868 VS_BASE="$unix_path" 25869 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25870 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25871 VS_BASE="$unix_path" 25872 fi 25873 25874 # In VS 2017, the default installation is in a subdir named after the edition. 25875 # Find the first one present and use that. 25876 if test "x$VS_EDITIONS" != x; then 25877 for edition in $VS_EDITIONS; do 25878 if test -d "$VS_BASE/$edition"; then 25879 VS_BASE="$VS_BASE/$edition" 25880 break 25881 fi 25882 done 25883 fi 25884 25885 if test -d "$VS_BASE"; then 25886 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 25887 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 25888 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25889 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 25890 else 25891 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 25892 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 25893 fi 25894 25895 for VCVARSFILE in $VCVARSFILES; do 25896 if test -f "$VS_BASE/$VCVARSFILE"; then 25897 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 25898 break 25899 fi 25900 done 25901 25902 if test "x$VS_ENV_CMD" = x; then 25903 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 25904 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 25905 else 25906 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 25907 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 25908 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 25909 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 25910 25911 fi 25912 fi 25913 fi 25914 25915 fi 25916 # Work around the insanely named ProgramFiles(x86) env variable 25917 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 25918 if test "x$PROGRAMFILES_X86" != x; then 25919 25920 if test "x$VS_ENV_CMD" = x; then 25921 VS_VERSION="${VS_VERSION}" 25922 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 25923 METHOD="well-known name" 25924 25925 25926 windows_path="$VS_BASE" 25927 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25928 unix_path=`$CYGPATH -u "$windows_path"` 25929 VS_BASE="$unix_path" 25930 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25931 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25932 VS_BASE="$unix_path" 25933 fi 25934 25935 # In VS 2017, the default installation is in a subdir named after the edition. 25936 # Find the first one present and use that. 25937 if test "x$VS_EDITIONS" != x; then 25938 for edition in $VS_EDITIONS; do 25939 if test -d "$VS_BASE/$edition"; then 25940 VS_BASE="$VS_BASE/$edition" 25941 break 25942 fi 25943 done 25944 fi 25945 25946 if test -d "$VS_BASE"; then 25947 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 25948 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 25949 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25950 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 25951 else 25952 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 25953 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 25954 fi 25955 25956 for VCVARSFILE in $VCVARSFILES; do 25957 if test -f "$VS_BASE/$VCVARSFILE"; then 25958 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 25959 break 25960 fi 25961 done 25962 25963 if test "x$VS_ENV_CMD" = x; then 25964 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 25965 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 25966 else 25967 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 25968 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 25969 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 25970 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 25971 25972 fi 25973 fi 25974 fi 25975 25976 fi 25977 25978 if test "x$VS_ENV_CMD" = x; then 25979 VS_VERSION="${VS_VERSION}" 25980 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 25981 METHOD="well-known name" 25982 25983 25984 windows_path="$VS_BASE" 25985 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25986 unix_path=`$CYGPATH -u "$windows_path"` 25987 VS_BASE="$unix_path" 25988 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25989 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25990 VS_BASE="$unix_path" 25991 fi 25992 25993 # In VS 2017, the default installation is in a subdir named after the edition. 25994 # Find the first one present and use that. 25995 if test "x$VS_EDITIONS" != x; then 25996 for edition in $VS_EDITIONS; do 25997 if test -d "$VS_BASE/$edition"; then 25998 VS_BASE="$VS_BASE/$edition" 25999 break 26000 fi 26001 done 26002 fi 26003 26004 if test -d "$VS_BASE"; then 26005 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26006 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26007 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26008 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 26009 else 26010 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 26011 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 26012 fi 26013 26014 for VCVARSFILE in $VCVARSFILES; do 26015 if test -f "$VS_BASE/$VCVARSFILE"; then 26016 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 26017 break 26018 fi 26019 done 26020 26021 if test "x$VS_ENV_CMD" = x; then 26022 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 26023 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 26024 else 26025 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 26026 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 26027 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 26028 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 26029 26030 fi 26031 fi 26032 fi 26033 26034 26035 if test "x$VS_ENV_CMD" = x; then 26036 VS_VERSION="${VS_VERSION}" 26037 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 26038 METHOD="well-known name" 26039 26040 26041 windows_path="$VS_BASE" 26042 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26043 unix_path=`$CYGPATH -u "$windows_path"` 26044 VS_BASE="$unix_path" 26045 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26046 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26047 VS_BASE="$unix_path" 26048 fi 26049 26050 # In VS 2017, the default installation is in a subdir named after the edition. 26051 # Find the first one present and use that. 26052 if test "x$VS_EDITIONS" != x; then 26053 for edition in $VS_EDITIONS; do 26054 if test -d "$VS_BASE/$edition"; then 26055 VS_BASE="$VS_BASE/$edition" 26056 break 26057 fi 26058 done 26059 fi 26060 26061 if test -d "$VS_BASE"; then 26062 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26063 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26064 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26065 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 26066 else 26067 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 26068 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 26069 fi 26070 26071 for VCVARSFILE in $VCVARSFILES; do 26072 if test -f "$VS_BASE/$VCVARSFILE"; then 26073 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 26074 break 26075 fi 26076 done 26077 26078 if test "x$VS_ENV_CMD" = x; then 26079 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 26080 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 26081 else 26082 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 26083 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 26084 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 26085 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 26086 26087 fi 26088 fi 26089 fi 26090 26091 26092 if test "x$SDK_INSTALL_DIR" != x; then 26093 if test "x$ProgramW6432" != x; then 26094 26095 if test "x$VS_ENV_CMD" = x; then 26096 VS_VERSION="${VS_VERSION}" 26097 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 26098 METHOD="well-known name" 26099 26100 windows_path="$WIN_SDK_BASE" 26101 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26102 unix_path=`$CYGPATH -u "$windows_path"` 26103 WIN_SDK_BASE="$unix_path" 26104 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26105 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26106 WIN_SDK_BASE="$unix_path" 26107 fi 26108 26109 if test -d "$WIN_SDK_BASE"; then 26110 # There have been cases of partial or broken SDK installations. A missing 26111 # lib dir is not going to work. 26112 if test ! -d "$WIN_SDK_BASE/lib"; then 26113 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26114 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26115 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26116 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26117 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 26118 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26119 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26120 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 26121 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26122 VS_ENV_ARGS="/x86" 26123 else 26124 VS_ENV_ARGS="/x64" 26125 fi 26126 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26127 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26128 # TODO: improve detection for other versions of SDK 26129 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 26130 else 26131 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26132 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26133 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26134 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26135 fi 26136 fi 26137 fi 26138 26139 fi 26140 if test "x$PROGRAMW6432" != x; then 26141 26142 if test "x$VS_ENV_CMD" = x; then 26143 VS_VERSION="${VS_VERSION}" 26144 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 26145 METHOD="well-known name" 26146 26147 windows_path="$WIN_SDK_BASE" 26148 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26149 unix_path=`$CYGPATH -u "$windows_path"` 26150 WIN_SDK_BASE="$unix_path" 26151 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26152 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26153 WIN_SDK_BASE="$unix_path" 26154 fi 26155 26156 if test -d "$WIN_SDK_BASE"; then 26157 # There have been cases of partial or broken SDK installations. A missing 26158 # lib dir is not going to work. 26159 if test ! -d "$WIN_SDK_BASE/lib"; then 26160 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26161 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26162 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26163 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26164 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 26165 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26166 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26167 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 26168 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26169 VS_ENV_ARGS="/x86" 26170 else 26171 VS_ENV_ARGS="/x64" 26172 fi 26173 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26174 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26175 # TODO: improve detection for other versions of SDK 26176 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 26177 else 26178 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26179 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26180 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26181 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26182 fi 26183 fi 26184 fi 26185 26186 fi 26187 if test "x$PROGRAMFILES" != x; then 26188 26189 if test "x$VS_ENV_CMD" = x; then 26190 VS_VERSION="${VS_VERSION}" 26191 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 26192 METHOD="well-known name" 26193 26194 windows_path="$WIN_SDK_BASE" 26195 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26196 unix_path=`$CYGPATH -u "$windows_path"` 26197 WIN_SDK_BASE="$unix_path" 26198 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26199 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26200 WIN_SDK_BASE="$unix_path" 26201 fi 26202 26203 if test -d "$WIN_SDK_BASE"; then 26204 # There have been cases of partial or broken SDK installations. A missing 26205 # lib dir is not going to work. 26206 if test ! -d "$WIN_SDK_BASE/lib"; then 26207 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26208 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26209 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26210 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26211 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 26212 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26213 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26214 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 26215 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26216 VS_ENV_ARGS="/x86" 26217 else 26218 VS_ENV_ARGS="/x64" 26219 fi 26220 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26221 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26222 # TODO: improve detection for other versions of SDK 26223 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 26224 else 26225 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26226 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26227 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26228 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26229 fi 26230 fi 26231 fi 26232 26233 fi 26234 26235 if test "x$VS_ENV_CMD" = x; then 26236 VS_VERSION="${VS_VERSION}" 26237 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 26238 METHOD="well-known name" 26239 26240 windows_path="$WIN_SDK_BASE" 26241 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26242 unix_path=`$CYGPATH -u "$windows_path"` 26243 WIN_SDK_BASE="$unix_path" 26244 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26245 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26246 WIN_SDK_BASE="$unix_path" 26247 fi 26248 26249 if test -d "$WIN_SDK_BASE"; then 26250 # There have been cases of partial or broken SDK installations. A missing 26251 # lib dir is not going to work. 26252 if test ! -d "$WIN_SDK_BASE/lib"; then 26253 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26254 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26255 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26256 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26257 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 26258 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26259 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26260 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 26261 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26262 VS_ENV_ARGS="/x86" 26263 else 26264 VS_ENV_ARGS="/x64" 26265 fi 26266 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26267 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26268 # TODO: improve detection for other versions of SDK 26269 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 26270 else 26271 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26272 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26273 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26274 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26275 fi 26276 fi 26277 fi 26278 26279 26280 if test "x$VS_ENV_CMD" = x; then 26281 VS_VERSION="${VS_VERSION}" 26282 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 26283 METHOD="well-known name" 26284 26285 windows_path="$WIN_SDK_BASE" 26286 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26287 unix_path=`$CYGPATH -u "$windows_path"` 26288 WIN_SDK_BASE="$unix_path" 26289 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26290 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26291 WIN_SDK_BASE="$unix_path" 26292 fi 26293 26294 if test -d "$WIN_SDK_BASE"; then 26295 # There have been cases of partial or broken SDK installations. A missing 26296 # lib dir is not going to work. 26297 if test ! -d "$WIN_SDK_BASE/lib"; then 26298 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26299 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26300 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26301 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26302 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 26303 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26304 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26305 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 26306 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26307 VS_ENV_ARGS="/x86" 26308 else 26309 VS_ENV_ARGS="/x64" 26310 fi 26311 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26312 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26313 # TODO: improve detection for other versions of SDK 26314 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 26315 else 26316 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26317 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26318 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26319 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26320 fi 26321 fi 26322 fi 26323 26324 fi 26325 26326 if test "x$VS_ENV_CMD" != x; then 26327 TOOLCHAIN_VERSION=$VS_VERSION 26328 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 26329 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 26330 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 26331 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 26332 eval USE_UCRT="\${VS_USE_UCRT_${VS_VERSION}}" 26333 # The rest of the variables are already evaled while probing 26334 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 26335 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 26336 break 26337 fi 26338 done 26339 26340 TOOLCHAIN_DESCRIPTION="$VS_DESCRIPTION" 26341 if test "$TOOLCHAIN_VERSION" -gt 2013; then 26342 UNSUPPORTED_TOOLCHAIN_VERSION=yes 26343 fi 26344 26345 26346 # If we have a devkit, skip all of the below. 26347 if test "x$DEVKIT_VS_VERSION" = x; then 26348 if test "x$VS_ENV_CMD" != x; then 26349 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 26350 26351 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26352 26353 # First separate the path from the arguments. This will split at the first 26354 # space. 26355 complete="$VS_ENV_CMD" 26356 path="${complete%% *}" 26357 tmp="$complete EOL" 26358 arguments="${tmp#* }" 26359 26360 # Input might be given as Windows format, start by converting to 26361 # unix format. 26362 new_path=`$CYGPATH -u "$path"` 26363 26364 # Now try to locate executable using which 26365 new_path=`$WHICH "$new_path" 2> /dev/null` 26366 # bat and cmd files are not always considered executable in cygwin causing which 26367 # to not find them 26368 if test "x$new_path" = x \ 26369 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26370 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26371 new_path=`$CYGPATH -u "$path"` 26372 fi 26373 if test "x$new_path" = x; then 26374 # Oops. Which didn't find the executable. 26375 # The splitting of arguments from the executable at a space might have been incorrect, 26376 # since paths with space are more likely in Windows. Give it another try with the whole 26377 # argument. 26378 path="$complete" 26379 arguments="EOL" 26380 new_path=`$CYGPATH -u "$path"` 26381 new_path=`$WHICH "$new_path" 2> /dev/null` 26382 # bat and cmd files are not always considered executable in cygwin causing which 26383 # to not find them 26384 if test "x$new_path" = x \ 26385 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26386 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26387 new_path=`$CYGPATH -u "$path"` 26388 fi 26389 if test "x$new_path" = x; then 26390 # It's still not found. Now this is an unrecoverable error. 26391 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 26392 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 26393 has_space=`$ECHO "$complete" | $GREP " "` 26394 if test "x$has_space" != x; then 26395 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26396 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26397 fi 26398 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 26399 fi 26400 fi 26401 26402 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26403 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26404 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26405 # "foo.exe" is OK but "foo" is an error. 26406 # 26407 # This test is therefore slightly more accurate than "test -f" to check for file presence. 26408 # It is also a way to make sure we got the proper file name for the real test later on. 26409 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26410 if test "x$test_shortpath" = x; then 26411 # Short path failed, file does not exist as specified. 26412 # Try adding .exe or .cmd 26413 if test -f "${new_path}.exe"; then 26414 input_to_shortpath="${new_path}.exe" 26415 elif test -f "${new_path}.cmd"; then 26416 input_to_shortpath="${new_path}.cmd" 26417 else 26418 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 26419 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 26420 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 26421 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 26422 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 26423 fi 26424 else 26425 input_to_shortpath="$new_path" 26426 fi 26427 26428 # Call helper function which possibly converts this using DOS-style short mode. 26429 # If so, the updated path is stored in $new_path. 26430 new_path="$input_to_shortpath" 26431 26432 input_path="$input_to_shortpath" 26433 # Check if we need to convert this using DOS-style short mode. If the path 26434 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26435 # take no chances and rewrite it. 26436 # Note: m4 eats our [], so we need to use [ and ] instead. 26437 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26438 if test "x$has_forbidden_chars" != x; then 26439 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26440 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26441 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26442 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26443 # Going to short mode and back again did indeed matter. Since short mode is 26444 # case insensitive, let's make it lowercase to improve readability. 26445 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26446 # Now convert it back to Unix-style (cygpath) 26447 input_path=`$CYGPATH -u "$shortmode_path"` 26448 new_path="$input_path" 26449 fi 26450 fi 26451 26452 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26453 if test "x$test_cygdrive_prefix" = x; then 26454 # As a simple fix, exclude /usr/bin since it's not a real path. 26455 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 26456 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26457 # a path prefixed by /cygdrive for fixpath to work. 26458 new_path="$CYGWIN_ROOT_PATH$input_path" 26459 fi 26460 fi 26461 26462 # remove trailing .exe if any 26463 new_path="${new_path/%.exe/}" 26464 26465 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26466 26467 # First separate the path from the arguments. This will split at the first 26468 # space. 26469 complete="$VS_ENV_CMD" 26470 path="${complete%% *}" 26471 tmp="$complete EOL" 26472 arguments="${tmp#* }" 26473 26474 # Input might be given as Windows format, start by converting to 26475 # unix format. 26476 new_path="$path" 26477 26478 windows_path="$new_path" 26479 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26480 unix_path=`$CYGPATH -u "$windows_path"` 26481 new_path="$unix_path" 26482 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26483 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26484 new_path="$unix_path" 26485 fi 26486 26487 26488 # Now try to locate executable using which 26489 new_path=`$WHICH "$new_path" 2> /dev/null` 26490 26491 if test "x$new_path" = x; then 26492 # Oops. Which didn't find the executable. 26493 # The splitting of arguments from the executable at a space might have been incorrect, 26494 # since paths with space are more likely in Windows. Give it another try with the whole 26495 # argument. 26496 path="$complete" 26497 arguments="EOL" 26498 new_path="$path" 26499 26500 windows_path="$new_path" 26501 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26502 unix_path=`$CYGPATH -u "$windows_path"` 26503 new_path="$unix_path" 26504 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26505 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26506 new_path="$unix_path" 26507 fi 26508 26509 26510 new_path=`$WHICH "$new_path" 2> /dev/null` 26511 # bat and cmd files are not always considered executable in MSYS causing which 26512 # to not find them 26513 if test "x$new_path" = x \ 26514 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26515 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26516 new_path="$path" 26517 26518 windows_path="$new_path" 26519 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26520 unix_path=`$CYGPATH -u "$windows_path"` 26521 new_path="$unix_path" 26522 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26523 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26524 new_path="$unix_path" 26525 fi 26526 26527 fi 26528 26529 if test "x$new_path" = x; then 26530 # It's still not found. Now this is an unrecoverable error. 26531 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 26532 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 26533 has_space=`$ECHO "$complete" | $GREP " "` 26534 if test "x$has_space" != x; then 26535 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26536 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26537 fi 26538 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 26539 fi 26540 fi 26541 26542 # Now new_path has a complete unix path to the binary 26543 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 26544 # Keep paths in /bin as-is, but remove trailing .exe if any 26545 new_path="${new_path/%.exe/}" 26546 # Do not save /bin paths to all_fixpath_prefixes! 26547 else 26548 # Not in mixed or Windows style, start by that. 26549 new_path=`cmd //c echo $new_path` 26550 26551 input_path="$new_path" 26552 # Check if we need to convert this using DOS-style short mode. If the path 26553 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26554 # take no chances and rewrite it. 26555 # Note: m4 eats our [], so we need to use [ and ] instead. 26556 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26557 if test "x$has_forbidden_chars" != x; then 26558 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26559 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26560 fi 26561 26562 # Output is in $new_path 26563 26564 windows_path="$new_path" 26565 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26566 unix_path=`$CYGPATH -u "$windows_path"` 26567 new_path="$unix_path" 26568 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26569 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26570 new_path="$unix_path" 26571 fi 26572 26573 # remove trailing .exe if any 26574 new_path="${new_path/%.exe/}" 26575 26576 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26577 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26578 fi 26579 26580 else 26581 # We're on a posix platform. Hooray! :) 26582 # First separate the path from the arguments. This will split at the first 26583 # space. 26584 complete="$VS_ENV_CMD" 26585 path="${complete%% *}" 26586 tmp="$complete EOL" 26587 arguments="${tmp#* }" 26588 26589 # Cannot rely on the command "which" here since it doesn't always work. 26590 is_absolute_path=`$ECHO "$path" | $GREP ^/` 26591 if test -z "$is_absolute_path"; then 26592 # Path to executable is not absolute. Find it. 26593 IFS_save="$IFS" 26594 IFS=: 26595 for p in $PATH; do 26596 if test -f "$p/$path" && test -x "$p/$path"; then 26597 new_path="$p/$path" 26598 break 26599 fi 26600 done 26601 IFS="$IFS_save" 26602 else 26603 # This is an absolute path, we can use it without further modifications. 26604 new_path="$path" 26605 fi 26606 26607 if test "x$new_path" = x; then 26608 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 26609 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 26610 has_space=`$ECHO "$complete" | $GREP " "` 26611 if test "x$has_space" != x; then 26612 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 26613 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 26614 fi 26615 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 26616 fi 26617 fi 26618 26619 # Now join together the path and the arguments once again 26620 if test "x$arguments" != xEOL; then 26621 new_complete="$new_path ${arguments% *}" 26622 else 26623 new_complete="$new_path" 26624 fi 26625 26626 if test "x$complete" != "x$new_complete"; then 26627 VS_ENV_CMD="$new_complete" 26628 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 26629 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 26630 fi 26631 26632 26633 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 26634 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 26635 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 26636 26637 # We need to create a couple of temporary files. 26638 VS_ENV_TMP_DIR="$OUTPUT_ROOT/vs-env" 26639 $MKDIR -p $VS_ENV_TMP_DIR 26640 26641 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 26642 # Instead create a shell script which will set the relevant variables when run. 26643 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 26644 26645 unix_path="$WINPATH_VS_ENV_CMD" 26646 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26647 windows_path=`$CYGPATH -m "$unix_path"` 26648 WINPATH_VS_ENV_CMD="$windows_path" 26649 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26650 windows_path=`cmd //c echo $unix_path` 26651 WINPATH_VS_ENV_CMD="$windows_path" 26652 fi 26653 26654 WINPATH_BASH="$BASH" 26655 26656 unix_path="$WINPATH_BASH" 26657 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26658 windows_path=`$CYGPATH -m "$unix_path"` 26659 WINPATH_BASH="$windows_path" 26660 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26661 windows_path=`cmd //c echo $unix_path` 26662 WINPATH_BASH="$windows_path" 26663 fi 26664 26665 26666 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 26667 # script (executable by bash) that will setup the important variables. 26668 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 26669 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 26670 # This will end up something like: 26671 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 26672 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 26673 # In some cases, the VS_ENV_CMD will change directory, change back so 26674 # the set-vs-env.sh ends up in the right place. 26675 $ECHO 'cd %~dp0' >> $EXTRACT_VC_ENV_BAT_FILE 26676 # These will end up something like: 26677 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 26678 # The trailing space for everyone except PATH is no typo, but is needed due 26679 # to trailing \ in the Windows paths. These will be stripped later. 26680 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' \ 26681 >> $EXTRACT_VC_ENV_BAT_FILE 26682 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE \" >> set-vs-env.sh' \ 26683 >> $EXTRACT_VC_ENV_BAT_FILE 26684 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB \" >> set-vs-env.sh' \ 26685 >> $EXTRACT_VC_ENV_BAT_FILE 26686 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' \ 26687 >> $EXTRACT_VC_ENV_BAT_FILE 26688 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' \ 26689 >> $EXTRACT_VC_ENV_BAT_FILE 26690 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' \ 26691 >> $EXTRACT_VC_ENV_BAT_FILE 26692 26693 # Now execute the newly created bat file. 26694 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 26695 # Change directory so we don't need to mess with Windows paths in redirects. 26696 cd $VS_ENV_TMP_DIR 26697 cmd /c extract-vs-env.bat | $CAT 26698 cd $CURDIR 26699 26700 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 26701 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 26702 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 26703 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 26704 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 26705 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 26706 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 26707 as_fn_error $? "Cannot continue" "$LINENO" 5 26708 fi 26709 26710 # Now set all paths and other env variables. This will allow the rest of 26711 # the configure script to find and run the compiler in the proper way. 26712 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 26713 $as_echo "$as_me: Setting extracted environment variables" >&6;} 26714 . $VS_ENV_TMP_DIR/set-vs-env.sh 26715 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 26716 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 26717 else 26718 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 26719 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 26720 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 26721 fi 26722 fi 26723 26724 # At this point, we should have correct variables in the environment, or we can't continue. 26725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 26726 $as_echo_n "checking for Visual Studio variables... " >&6; } 26727 26728 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x \ 26729 || test "x$WINDOWSSDKDIR" != x || test "x$DEVKIT_NAME" != x; then 26730 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 26731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 26732 $as_echo "present but broken" >&6; } 26733 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 26734 else 26735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26736 $as_echo "ok" >&6; } 26737 # Remove any trailing "\" and " " from the variables. 26738 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED 's/\\\\* *$//'` 26739 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\* *$//'` 26740 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 26741 WindowsSdkDir=`$ECHO "$WindowsSdkDir" | $SED 's/\\\\* *$//'` 26742 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 26743 if test -z "$WINDOWSSDKDIR"; then 26744 WINDOWSSDKDIR="$WindowsSdkDir" 26745 fi 26746 # Remove any paths containing # (typically F#) as that messes up make. This 26747 # is needed if visual studio was installed with F# support. 26748 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 26749 26750 26751 26752 26753 fi 26754 else 26755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26756 $as_echo "not found" >&6; } 26757 26758 if test "x$VS_ENV_CMD" = x; then 26759 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 26760 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 26761 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 26762 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 26763 else 26764 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 26765 $as_echo "$as_me: Running the extraction script failed." >&6;} 26766 fi 26767 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 26768 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 26769 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 26770 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 26771 as_fn_error $? "Cannot continue" "$LINENO" 5 26772 fi 26773 26774 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 26775 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 26776 PATH="$VS_PATH" 26777 # The microsoft toolchain also requires INCLUDE and LIB to be set. 26778 export INCLUDE="$VS_INCLUDE" 26779 export LIB="$VS_LIB" 26780 fi 26781 26782 # Before we locate the compilers, we need to sanitize the Xcode build environment 26783 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 26784 # determine path to Xcode developer directory 26785 # can be empty in which case all the tools will rely on a sane Xcode 4 installation 26786 SET_DEVELOPER_DIR= 26787 26788 if test -n "$XCODE_PATH"; then 26789 DEVELOPER_DIR="$XCODE_PATH"/Contents/Developer 26790 fi 26791 26792 # DEVELOPER_DIR could also be provided directly 26793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Determining if we need to set DEVELOPER_DIR" >&5 26794 $as_echo_n "checking Determining if we need to set DEVELOPER_DIR... " >&6; } 26795 if test -n "$DEVELOPER_DIR"; then 26796 if test ! -d "$DEVELOPER_DIR"; then 26797 as_fn_error $? "Xcode Developer path does not exist: $DEVELOPER_DIR, please provide a path to the Xcode 4 application bundle using --with-xcode-path" "$LINENO" 5 26798 fi 26799 if test ! -f "$DEVELOPER_DIR"/usr/bin/xcodebuild; then 26800 as_fn_error $? "Xcode Developer path is not valid: $DEVELOPER_DIR, it must point to Contents/Developer inside an Xcode application bundle" "$LINENO" 5 26801 fi 26802 # make it visible to all the tools immediately 26803 export DEVELOPER_DIR 26804 SET_DEVELOPER_DIR="export DEVELOPER_DIR := $DEVELOPER_DIR" 26805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEVELOPER_DIR)" >&5 26806 $as_echo "yes ($DEVELOPER_DIR)" >&6; } 26807 else 26808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26809 $as_echo "no" >&6; } 26810 fi 26811 26812 26813 # Extract the first word of "xcodebuild", so it can be a program name with args. 26814 set dummy xcodebuild; ac_word=$2 26815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26816 $as_echo_n "checking for $ac_word... " >&6; } 26817 if ${ac_cv_path_XCODEBUILD+:} false; then : 26818 $as_echo_n "(cached) " >&6 26819 else 26820 case $XCODEBUILD in 26821 [\\/]* | ?:[\\/]*) 26822 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 26823 ;; 26824 *) 26825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26826 for as_dir in $PATH 26827 do 26828 IFS=$as_save_IFS 26829 test -z "$as_dir" && as_dir=. 26830 for ac_exec_ext in '' $ac_executable_extensions; do 26831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26832 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 26833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26834 break 2 26835 fi 26836 done 26837 done 26838 IFS=$as_save_IFS 26839 26840 ;; 26841 esac 26842 fi 26843 XCODEBUILD=$ac_cv_path_XCODEBUILD 26844 if test -n "$XCODEBUILD"; then 26845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 26846 $as_echo "$XCODEBUILD" >&6; } 26847 else 26848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26849 $as_echo "no" >&6; } 26850 fi 26851 26852 26853 if test -z "$XCODEBUILD"; then 26854 as_fn_error $? "The xcodebuild tool was not found, the Xcode command line tools are required to build on Mac OS X" "$LINENO" 5 26855 fi 26856 26857 # Fail-fast: verify we're building on Xcode 4, we cannot build with Xcode 5 or later 26858 XCODE_VERSION=`$XCODEBUILD -version | grep '^Xcode ' | sed 's/Xcode //'` 26859 XC_VERSION_PARTS=( ${XCODE_VERSION//./ } ) 26860 if test ! "${XC_VERSION_PARTS[0]}" = "4"; then 26861 as_fn_error $? "Xcode 4 is required to build JDK 8, the version found was $XCODE_VERSION. Use --with-xcode-path to specify the location of Xcode 4 or make Xcode 4 active by using xcode-select." "$LINENO" 5 26862 fi 26863 26864 # Some versions of Xcode 5 command line tools install gcc and g++ as symlinks to 26865 # clang and clang++, which will break the build. So handle that here if we need to. 26866 if test -L "/usr/bin/gcc" -o -L "/usr/bin/g++"; then 26867 # use xcrun to find the real gcc and add it's directory to PATH 26868 # then autoconf magic will find it 26869 { $as_echo "$as_me:${as_lineno-$LINENO}: Found gcc symlinks to clang in /usr/bin, adding path to real gcc to PATH" >&5 26870 $as_echo "$as_me: Found gcc symlinks to clang in /usr/bin, adding path to real gcc to PATH" >&6;} 26871 XCODE_BIN_PATH=$(dirname `xcrun -find gcc`) 26872 PATH="$XCODE_BIN_PATH":$PATH 26873 fi 26874 26875 # Determine appropriate SDKPATH, don't use SDKROOT as it interferes with the stub tools 26876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Determining Xcode SDK path" >&5 26877 $as_echo_n "checking Determining Xcode SDK path... " >&6; } 26878 # allow SDKNAME to be set to override the default SDK selection 26879 SDKPATH=`"$XCODEBUILD" -sdk ${SDKNAME:-macosx} -version | grep '^Path: ' | sed 's/Path: //'` 26880 if test -n "$SDKPATH"; then 26881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKPATH" >&5 26882 $as_echo "$SDKPATH" >&6; } 26883 else 26884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none, will use system headers and frameworks)" >&5 26885 $as_echo "(none, will use system headers and frameworks)" >&6; } 26886 fi 26887 26888 26889 # Perform a basic sanity test 26890 if test ! -f "$SDKPATH/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 26891 as_fn_error $? "Unable to find required framework headers, provide a valid path to Xcode 4 using --with-xcode-path" "$LINENO" 5 26892 fi 26893 26894 # if SDKPATH is non-empty then we need to add -isysroot and -iframework for gcc and g++ 26895 if test -n "$SDKPATH"; then 26896 # We need -isysroot <path> and -iframework<path>/System/Library/Frameworks 26897 CFLAGS_JDK="${CFLAGS_JDK} -isysroot \"$SDKPATH\" -iframework\"$SDKPATH/System/Library/Frameworks\"" 26898 CXXFLAGS_JDK="${CXXFLAGS_JDK} -isysroot \"$SDKPATH\" -iframework\"$SDKPATH/System/Library/Frameworks\"" 26899 LDFLAGS_JDK="${LDFLAGS_JDK} -isysroot \"$SDKPATH\" -iframework\"$SDKPATH/System/Library/Frameworks\"" 26900 fi 26901 26902 if test -d "$SDKPATH/System/Library/Frameworks/JavaVM.framework/Frameworks" ; then 26903 # These always need to be set on macOS 10.X, or we can't find the frameworks embedded in JavaVM.framework 26904 # set this here so it doesn't have to be peppered throughout the forest 26905 CFLAGS_JDK="$CFLAGS_JDK -F\"$SDKPATH/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 26906 CXXFLAGS_JDK="$CXXFLAGS_JDK -F\"$SDKPATH/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 26907 LDFLAGS_JDK="$LDFLAGS_JDK -F\"$SDKPATH/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 26908 fi 26909 fi 26910 26911 # For solaris we really need solaris tools, and not the GNU equivalent. 26912 # The build tools on Solaris reside in /usr/ccs (C Compilation System), 26913 # so add that to path before starting to probe. 26914 # FIXME: This was originally only done for AS,NM,GNM,STRIP,MCS,OBJCOPY,OBJDUMP. 26915 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 26916 PATH="/usr/ccs/bin:$PATH" 26917 fi 26918 26919 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 26920 # override all other locations. 26921 if test "x$TOOLCHAIN_PATH" != x; then 26922 PATH=$TOOLCHAIN_PATH:$PATH 26923 fi 26924 26925 26926 # 26927 # Setup the compilers (CC and CXX) 26928 # 26929 26930 COMPILER_NAME=C 26931 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 26932 26933 if test "x$CC" != x; then 26934 # User has supplied compiler name already, always let that override. 26935 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 26936 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 26937 if test "x`basename $CC`" = "x$CC"; then 26938 # A command without a complete path is provided, search $PATH. 26939 26940 for ac_prog in $CC 26941 do 26942 # Extract the first word of "$ac_prog", so it can be a program name with args. 26943 set dummy $ac_prog; ac_word=$2 26944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26945 $as_echo_n "checking for $ac_word... " >&6; } 26946 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 26947 $as_echo_n "(cached) " >&6 26948 else 26949 case $POTENTIAL_CC in 26950 [\\/]* | ?:[\\/]*) 26951 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 26952 ;; 26953 *) 26954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26955 for as_dir in $PATH 26956 do 26957 IFS=$as_save_IFS 26958 test -z "$as_dir" && as_dir=. 26959 for ac_exec_ext in '' $ac_executable_extensions; do 26960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26961 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 26962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26963 break 2 26964 fi 26965 done 26966 done 26967 IFS=$as_save_IFS 26968 26969 ;; 26970 esac 26971 fi 26972 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 26973 if test -n "$POTENTIAL_CC"; then 26974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 26975 $as_echo "$POTENTIAL_CC" >&6; } 26976 else 26977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26978 $as_echo "no" >&6; } 26979 fi 26980 26981 26982 test -n "$POTENTIAL_CC" && break 26983 done 26984 26985 if test "x$POTENTIAL_CC" != x; then 26986 CC=$POTENTIAL_CC 26987 else 26988 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 26989 fi 26990 else 26991 # Otherwise it might already be a complete path 26992 if test ! -x "$CC"; then 26993 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 26994 fi 26995 fi 26996 else 26997 # No user supplied value. Locate compiler ourselves. 26998 26999 # If we are cross compiling, assume cross compilation tools follows the 27000 # cross compilation standard where they are prefixed with the autoconf 27001 # standard name for the target. For example the binary 27002 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 27003 # If we are not cross compiling, then the default compiler name will be 27004 # used. 27005 27006 CC= 27007 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 27008 # before checking the rest of the PATH. 27009 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 27010 # step, this should not be necessary. 27011 if test -n "$TOOLCHAIN_PATH"; then 27012 PATH_save="$PATH" 27013 PATH="$TOOLCHAIN_PATH" 27014 for ac_prog in $SEARCH_LIST 27015 do 27016 # Extract the first word of "$ac_prog", so it can be a program name with args. 27017 set dummy $ac_prog; ac_word=$2 27018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27019 $as_echo_n "checking for $ac_word... " >&6; } 27020 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 27021 $as_echo_n "(cached) " >&6 27022 else 27023 case $TOOLCHAIN_PATH_CC in 27024 [\\/]* | ?:[\\/]*) 27025 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 27026 ;; 27027 *) 27028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27029 for as_dir in $PATH 27030 do 27031 IFS=$as_save_IFS 27032 test -z "$as_dir" && as_dir=. 27033 for ac_exec_ext in '' $ac_executable_extensions; do 27034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27035 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 27036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27037 break 2 27038 fi 27039 done 27040 done 27041 IFS=$as_save_IFS 27042 27043 ;; 27044 esac 27045 fi 27046 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 27047 if test -n "$TOOLCHAIN_PATH_CC"; then 27048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 27049 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 27050 else 27051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27052 $as_echo "no" >&6; } 27053 fi 27054 27055 27056 test -n "$TOOLCHAIN_PATH_CC" && break 27057 done 27058 27059 CC=$TOOLCHAIN_PATH_CC 27060 PATH="$PATH_save" 27061 fi 27062 27063 # AC_PATH_PROGS can't be run multiple times with the same variable, 27064 # so create a new name for this run. 27065 if test "x$CC" = x; then 27066 for ac_prog in $TOOLCHAIN_CC_BINARY 27067 do 27068 # Extract the first word of "$ac_prog", so it can be a program name with args. 27069 set dummy $ac_prog; ac_word=$2 27070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27071 $as_echo_n "checking for $ac_word... " >&6; } 27072 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 27073 $as_echo_n "(cached) " >&6 27074 else 27075 case $POTENTIAL_CC in 27076 [\\/]* | ?:[\\/]*) 27077 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 27078 ;; 27079 *) 27080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27081 for as_dir in $PATH 27082 do 27083 IFS=$as_save_IFS 27084 test -z "$as_dir" && as_dir=. 27085 for ac_exec_ext in '' $ac_executable_extensions; do 27086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27087 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 27088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27089 break 2 27090 fi 27091 done 27092 done 27093 IFS=$as_save_IFS 27094 27095 ;; 27096 esac 27097 fi 27098 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 27099 if test -n "$POTENTIAL_CC"; then 27100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 27101 $as_echo "$POTENTIAL_CC" >&6; } 27102 else 27103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27104 $as_echo "no" >&6; } 27105 fi 27106 27107 27108 test -n "$POTENTIAL_CC" && break 27109 done 27110 27111 CC=$POTENTIAL_CC 27112 fi 27113 27114 if test "x$CC" = x; then 27115 27116 # Print a helpful message on how to acquire the necessary build dependency. 27117 # devkit is the help tag: freetype, cups, pulse, alsa etc 27118 MISSING_DEPENDENCY=devkit 27119 27120 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27121 cygwin_help $MISSING_DEPENDENCY 27122 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27123 msys_help $MISSING_DEPENDENCY 27124 else 27125 PKGHANDLER_COMMAND= 27126 27127 case $PKGHANDLER in 27128 apt-get) 27129 apt_help $MISSING_DEPENDENCY ;; 27130 yum) 27131 yum_help $MISSING_DEPENDENCY ;; 27132 port) 27133 port_help $MISSING_DEPENDENCY ;; 27134 pkgutil) 27135 pkgutil_help $MISSING_DEPENDENCY ;; 27136 pkgadd) 27137 pkgadd_help $MISSING_DEPENDENCY ;; 27138 esac 27139 27140 if test "x$PKGHANDLER_COMMAND" != x; then 27141 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 27142 fi 27143 fi 27144 27145 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 27146 fi 27147 fi 27148 27149 # Now we have a compiler binary in CC. Make sure it's okay. 27150 27151 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27152 27153 # First separate the path from the arguments. This will split at the first 27154 # space. 27155 complete="$CC" 27156 path="${complete%% *}" 27157 tmp="$complete EOL" 27158 arguments="${tmp#* }" 27159 27160 # Input might be given as Windows format, start by converting to 27161 # unix format. 27162 new_path=`$CYGPATH -u "$path"` 27163 27164 # Now try to locate executable using which 27165 new_path=`$WHICH "$new_path" 2> /dev/null` 27166 # bat and cmd files are not always considered executable in cygwin causing which 27167 # to not find them 27168 if test "x$new_path" = x \ 27169 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27170 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27171 new_path=`$CYGPATH -u "$path"` 27172 fi 27173 if test "x$new_path" = x; then 27174 # Oops. Which didn't find the executable. 27175 # The splitting of arguments from the executable at a space might have been incorrect, 27176 # since paths with space are more likely in Windows. Give it another try with the whole 27177 # argument. 27178 path="$complete" 27179 arguments="EOL" 27180 new_path=`$CYGPATH -u "$path"` 27181 new_path=`$WHICH "$new_path" 2> /dev/null` 27182 # bat and cmd files are not always considered executable in cygwin causing which 27183 # to not find them 27184 if test "x$new_path" = x \ 27185 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27186 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27187 new_path=`$CYGPATH -u "$path"` 27188 fi 27189 if test "x$new_path" = x; then 27190 # It's still not found. Now this is an unrecoverable error. 27191 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27192 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27193 has_space=`$ECHO "$complete" | $GREP " "` 27194 if test "x$has_space" != x; then 27195 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27196 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27197 fi 27198 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27199 fi 27200 fi 27201 27202 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27203 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27204 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27205 # "foo.exe" is OK but "foo" is an error. 27206 # 27207 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27208 # It is also a way to make sure we got the proper file name for the real test later on. 27209 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27210 if test "x$test_shortpath" = x; then 27211 # Short path failed, file does not exist as specified. 27212 # Try adding .exe or .cmd 27213 if test -f "${new_path}.exe"; then 27214 input_to_shortpath="${new_path}.exe" 27215 elif test -f "${new_path}.cmd"; then 27216 input_to_shortpath="${new_path}.cmd" 27217 else 27218 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 27219 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 27220 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27221 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27222 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27223 fi 27224 else 27225 input_to_shortpath="$new_path" 27226 fi 27227 27228 # Call helper function which possibly converts this using DOS-style short mode. 27229 # If so, the updated path is stored in $new_path. 27230 new_path="$input_to_shortpath" 27231 27232 input_path="$input_to_shortpath" 27233 # Check if we need to convert this using DOS-style short mode. If the path 27234 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27235 # take no chances and rewrite it. 27236 # Note: m4 eats our [], so we need to use [ and ] instead. 27237 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27238 if test "x$has_forbidden_chars" != x; then 27239 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27240 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27241 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27242 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27243 # Going to short mode and back again did indeed matter. Since short mode is 27244 # case insensitive, let's make it lowercase to improve readability. 27245 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27246 # Now convert it back to Unix-style (cygpath) 27247 input_path=`$CYGPATH -u "$shortmode_path"` 27248 new_path="$input_path" 27249 fi 27250 fi 27251 27252 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27253 if test "x$test_cygdrive_prefix" = x; then 27254 # As a simple fix, exclude /usr/bin since it's not a real path. 27255 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27256 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27257 # a path prefixed by /cygdrive for fixpath to work. 27258 new_path="$CYGWIN_ROOT_PATH$input_path" 27259 fi 27260 fi 27261 27262 # remove trailing .exe if any 27263 new_path="${new_path/%.exe/}" 27264 27265 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27266 27267 # First separate the path from the arguments. This will split at the first 27268 # space. 27269 complete="$CC" 27270 path="${complete%% *}" 27271 tmp="$complete EOL" 27272 arguments="${tmp#* }" 27273 27274 # Input might be given as Windows format, start by converting to 27275 # unix format. 27276 new_path="$path" 27277 27278 windows_path="$new_path" 27279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27280 unix_path=`$CYGPATH -u "$windows_path"` 27281 new_path="$unix_path" 27282 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27283 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27284 new_path="$unix_path" 27285 fi 27286 27287 27288 # Now try to locate executable using which 27289 new_path=`$WHICH "$new_path" 2> /dev/null` 27290 27291 if test "x$new_path" = x; then 27292 # Oops. Which didn't find the executable. 27293 # The splitting of arguments from the executable at a space might have been incorrect, 27294 # since paths with space are more likely in Windows. Give it another try with the whole 27295 # argument. 27296 path="$complete" 27297 arguments="EOL" 27298 new_path="$path" 27299 27300 windows_path="$new_path" 27301 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27302 unix_path=`$CYGPATH -u "$windows_path"` 27303 new_path="$unix_path" 27304 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27305 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27306 new_path="$unix_path" 27307 fi 27308 27309 27310 new_path=`$WHICH "$new_path" 2> /dev/null` 27311 # bat and cmd files are not always considered executable in MSYS causing which 27312 # to not find them 27313 if test "x$new_path" = x \ 27314 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27315 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27316 new_path="$path" 27317 27318 windows_path="$new_path" 27319 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27320 unix_path=`$CYGPATH -u "$windows_path"` 27321 new_path="$unix_path" 27322 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27323 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27324 new_path="$unix_path" 27325 fi 27326 27327 fi 27328 27329 if test "x$new_path" = x; then 27330 # It's still not found. Now this is an unrecoverable error. 27331 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27332 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27333 has_space=`$ECHO "$complete" | $GREP " "` 27334 if test "x$has_space" != x; then 27335 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27336 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27337 fi 27338 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27339 fi 27340 fi 27341 27342 # Now new_path has a complete unix path to the binary 27343 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27344 # Keep paths in /bin as-is, but remove trailing .exe if any 27345 new_path="${new_path/%.exe/}" 27346 # Do not save /bin paths to all_fixpath_prefixes! 27347 else 27348 # Not in mixed or Windows style, start by that. 27349 new_path=`cmd //c echo $new_path` 27350 27351 input_path="$new_path" 27352 # Check if we need to convert this using DOS-style short mode. If the path 27353 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27354 # take no chances and rewrite it. 27355 # Note: m4 eats our [], so we need to use [ and ] instead. 27356 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27357 if test "x$has_forbidden_chars" != x; then 27358 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27359 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27360 fi 27361 27362 # Output is in $new_path 27363 27364 windows_path="$new_path" 27365 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27366 unix_path=`$CYGPATH -u "$windows_path"` 27367 new_path="$unix_path" 27368 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27369 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27370 new_path="$unix_path" 27371 fi 27372 27373 # remove trailing .exe if any 27374 new_path="${new_path/%.exe/}" 27375 27376 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27377 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27378 fi 27379 27380 else 27381 # We're on a posix platform. Hooray! :) 27382 # First separate the path from the arguments. This will split at the first 27383 # space. 27384 complete="$CC" 27385 path="${complete%% *}" 27386 tmp="$complete EOL" 27387 arguments="${tmp#* }" 27388 27389 # Cannot rely on the command "which" here since it doesn't always work. 27390 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27391 if test -z "$is_absolute_path"; then 27392 # Path to executable is not absolute. Find it. 27393 IFS_save="$IFS" 27394 IFS=: 27395 for p in $PATH; do 27396 if test -f "$p/$path" && test -x "$p/$path"; then 27397 new_path="$p/$path" 27398 break 27399 fi 27400 done 27401 IFS="$IFS_save" 27402 else 27403 # This is an absolute path, we can use it without further modifications. 27404 new_path="$path" 27405 fi 27406 27407 if test "x$new_path" = x; then 27408 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27409 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27410 has_space=`$ECHO "$complete" | $GREP " "` 27411 if test "x$has_space" != x; then 27412 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27413 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27414 fi 27415 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27416 fi 27417 fi 27418 27419 # Now join together the path and the arguments once again 27420 if test "x$arguments" != xEOL; then 27421 new_complete="$new_path ${arguments% *}" 27422 else 27423 new_complete="$new_path" 27424 fi 27425 27426 if test "x$complete" != "x$new_complete"; then 27427 CC="$new_complete" 27428 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 27429 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 27430 fi 27431 27432 TEST_COMPILER="$CC" 27433 27434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 27435 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 27436 SYMLINK_ORIGINAL="$TEST_COMPILER" 27437 27438 if test "x$OPENJDK_BUILD_OS" != xwindows; then 27439 # Follow a chain of symbolic links. Use readlink 27440 # where it exists, else fall back to horribly 27441 # complicated shell code. 27442 if test "x$READLINK_TESTED" != yes; then 27443 # On MacOSX there is a readlink tool with a different 27444 # purpose than the GNU readlink tool. Check the found readlink. 27445 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 27446 if test "x$ISGNU" = x; then 27447 # A readlink that we do not know how to use. 27448 # Are there other non-GNU readlinks out there? 27449 READLINK_TESTED=yes 27450 READLINK= 27451 fi 27452 fi 27453 27454 if test "x$READLINK" != x; then 27455 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 27456 else 27457 # Save the current directory for restoring afterwards 27458 STARTDIR=$PWD 27459 COUNTER=0 27460 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 27461 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 27462 cd $sym_link_dir 27463 # Use -P flag to resolve symlinks in directories. 27464 cd `$THEPWDCMD -P` 27465 sym_link_dir=`$THEPWDCMD -P` 27466 # Resolve file symlinks 27467 while test $COUNTER -lt 20; do 27468 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 27469 if test "x$ISLINK" == x; then 27470 # This is not a symbolic link! We are done! 27471 break 27472 fi 27473 # Again resolve directory symlinks since the target of the just found 27474 # link could be in a different directory 27475 cd `$DIRNAME $ISLINK` 27476 sym_link_dir=`$THEPWDCMD -P` 27477 sym_link_file=`$BASENAME $ISLINK` 27478 let COUNTER=COUNTER+1 27479 done 27480 cd $STARTDIR 27481 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 27482 fi 27483 fi 27484 27485 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 27486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 27487 $as_echo "no symlink" >&6; } 27488 else 27489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 27490 $as_echo "$SYMLINK_ORIGINAL" >&6; } 27491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5 27492 $as_echo_n "checking if CC is disguised ccache... " >&6; } 27493 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 27494 if test "x$COMPILER_BASENAME" = "xccache"; then 27495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 27496 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 27497 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 27498 # We want to control ccache invocation ourselves, so ignore this cc and try 27499 # searching again. 27500 27501 # Remove the path to the fake ccache cc from the PATH 27502 RETRY_COMPILER_SAVED_PATH="$PATH" 27503 COMPILER_DIRNAME=`$DIRNAME $CC` 27504 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 27505 # Try again looking for our compiler 27506 if test -n "$ac_tool_prefix"; then 27507 for ac_prog in $TOOLCHAIN_CC_BINARY 27508 do 27509 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 27510 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 27511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27512 $as_echo_n "checking for $ac_word... " >&6; } 27513 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then : 27514 $as_echo_n "(cached) " >&6 27515 else 27516 if test -n "$PROPER_COMPILER_CC"; then 27517 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test. 27518 else 27519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27520 for as_dir in $PATH 27521 do 27522 IFS=$as_save_IFS 27523 test -z "$as_dir" && as_dir=. 27524 for ac_exec_ext in '' $ac_executable_extensions; do 27525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27526 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog" 27527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27528 break 2 27529 fi 27530 done 27531 done 27532 IFS=$as_save_IFS 27533 27534 fi 27535 fi 27536 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC 27537 if test -n "$PROPER_COMPILER_CC"; then 27538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 27539 $as_echo "$PROPER_COMPILER_CC" >&6; } 27540 else 27541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27542 $as_echo "no" >&6; } 27543 fi 27544 27545 27546 test -n "$PROPER_COMPILER_CC" && break 27547 done 27548 fi 27549 if test -z "$PROPER_COMPILER_CC"; then 27550 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC 27551 for ac_prog in $TOOLCHAIN_CC_BINARY 27552 do 27553 # Extract the first word of "$ac_prog", so it can be a program name with args. 27554 set dummy $ac_prog; ac_word=$2 27555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27556 $as_echo_n "checking for $ac_word... " >&6; } 27557 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then : 27558 $as_echo_n "(cached) " >&6 27559 else 27560 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 27561 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test. 27562 else 27563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27564 for as_dir in $PATH 27565 do 27566 IFS=$as_save_IFS 27567 test -z "$as_dir" && as_dir=. 27568 for ac_exec_ext in '' $ac_executable_extensions; do 27569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27570 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog" 27571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27572 break 2 27573 fi 27574 done 27575 done 27576 IFS=$as_save_IFS 27577 27578 fi 27579 fi 27580 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC 27581 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 27582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5 27583 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; } 27584 else 27585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27586 $as_echo "no" >&6; } 27587 fi 27588 27589 27590 test -n "$ac_ct_PROPER_COMPILER_CC" && break 27591 done 27592 27593 if test "x$ac_ct_PROPER_COMPILER_CC" = x; then 27594 PROPER_COMPILER_CC="" 27595 else 27596 case $cross_compiling:$ac_tool_warned in 27597 yes:) 27598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 27599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 27600 ac_tool_warned=yes ;; 27601 esac 27602 PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC 27603 fi 27604 fi 27605 27606 27607 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27608 27609 # First separate the path from the arguments. This will split at the first 27610 # space. 27611 complete="$PROPER_COMPILER_CC" 27612 path="${complete%% *}" 27613 tmp="$complete EOL" 27614 arguments="${tmp#* }" 27615 27616 # Input might be given as Windows format, start by converting to 27617 # unix format. 27618 new_path=`$CYGPATH -u "$path"` 27619 27620 # Now try to locate executable using which 27621 new_path=`$WHICH "$new_path" 2> /dev/null` 27622 # bat and cmd files are not always considered executable in cygwin causing which 27623 # to not find them 27624 if test "x$new_path" = x \ 27625 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27626 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27627 new_path=`$CYGPATH -u "$path"` 27628 fi 27629 if test "x$new_path" = x; then 27630 # Oops. Which didn't find the executable. 27631 # The splitting of arguments from the executable at a space might have been incorrect, 27632 # since paths with space are more likely in Windows. Give it another try with the whole 27633 # argument. 27634 path="$complete" 27635 arguments="EOL" 27636 new_path=`$CYGPATH -u "$path"` 27637 new_path=`$WHICH "$new_path" 2> /dev/null` 27638 # bat and cmd files are not always considered executable in cygwin causing which 27639 # to not find them 27640 if test "x$new_path" = x \ 27641 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27642 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27643 new_path=`$CYGPATH -u "$path"` 27644 fi 27645 if test "x$new_path" = x; then 27646 # It's still not found. Now this is an unrecoverable error. 27647 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 27648 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 27649 has_space=`$ECHO "$complete" | $GREP " "` 27650 if test "x$has_space" != x; then 27651 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27652 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27653 fi 27654 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 27655 fi 27656 fi 27657 27658 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27659 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27660 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27661 # "foo.exe" is OK but "foo" is an error. 27662 # 27663 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27664 # It is also a way to make sure we got the proper file name for the real test later on. 27665 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27666 if test "x$test_shortpath" = x; then 27667 # Short path failed, file does not exist as specified. 27668 # Try adding .exe or .cmd 27669 if test -f "${new_path}.exe"; then 27670 input_to_shortpath="${new_path}.exe" 27671 elif test -f "${new_path}.cmd"; then 27672 input_to_shortpath="${new_path}.cmd" 27673 else 27674 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5 27675 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;} 27676 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27677 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27678 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 27679 fi 27680 else 27681 input_to_shortpath="$new_path" 27682 fi 27683 27684 # Call helper function which possibly converts this using DOS-style short mode. 27685 # If so, the updated path is stored in $new_path. 27686 new_path="$input_to_shortpath" 27687 27688 input_path="$input_to_shortpath" 27689 # Check if we need to convert this using DOS-style short mode. If the path 27690 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27691 # take no chances and rewrite it. 27692 # Note: m4 eats our [], so we need to use [ and ] instead. 27693 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27694 if test "x$has_forbidden_chars" != x; then 27695 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27696 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27697 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27698 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27699 # Going to short mode and back again did indeed matter. Since short mode is 27700 # case insensitive, let's make it lowercase to improve readability. 27701 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27702 # Now convert it back to Unix-style (cygpath) 27703 input_path=`$CYGPATH -u "$shortmode_path"` 27704 new_path="$input_path" 27705 fi 27706 fi 27707 27708 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27709 if test "x$test_cygdrive_prefix" = x; then 27710 # As a simple fix, exclude /usr/bin since it's not a real path. 27711 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27712 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27713 # a path prefixed by /cygdrive for fixpath to work. 27714 new_path="$CYGWIN_ROOT_PATH$input_path" 27715 fi 27716 fi 27717 27718 # remove trailing .exe if any 27719 new_path="${new_path/%.exe/}" 27720 27721 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27722 27723 # First separate the path from the arguments. This will split at the first 27724 # space. 27725 complete="$PROPER_COMPILER_CC" 27726 path="${complete%% *}" 27727 tmp="$complete EOL" 27728 arguments="${tmp#* }" 27729 27730 # Input might be given as Windows format, start by converting to 27731 # unix format. 27732 new_path="$path" 27733 27734 windows_path="$new_path" 27735 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27736 unix_path=`$CYGPATH -u "$windows_path"` 27737 new_path="$unix_path" 27738 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27739 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27740 new_path="$unix_path" 27741 fi 27742 27743 27744 # Now try to locate executable using which 27745 new_path=`$WHICH "$new_path" 2> /dev/null` 27746 27747 if test "x$new_path" = x; then 27748 # Oops. Which didn't find the executable. 27749 # The splitting of arguments from the executable at a space might have been incorrect, 27750 # since paths with space are more likely in Windows. Give it another try with the whole 27751 # argument. 27752 path="$complete" 27753 arguments="EOL" 27754 new_path="$path" 27755 27756 windows_path="$new_path" 27757 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27758 unix_path=`$CYGPATH -u "$windows_path"` 27759 new_path="$unix_path" 27760 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27761 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27762 new_path="$unix_path" 27763 fi 27764 27765 27766 new_path=`$WHICH "$new_path" 2> /dev/null` 27767 # bat and cmd files are not always considered executable in MSYS causing which 27768 # to not find them 27769 if test "x$new_path" = x \ 27770 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27771 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27772 new_path="$path" 27773 27774 windows_path="$new_path" 27775 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27776 unix_path=`$CYGPATH -u "$windows_path"` 27777 new_path="$unix_path" 27778 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27779 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27780 new_path="$unix_path" 27781 fi 27782 27783 fi 27784 27785 if test "x$new_path" = x; then 27786 # It's still not found. Now this is an unrecoverable error. 27787 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 27788 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 27789 has_space=`$ECHO "$complete" | $GREP " "` 27790 if test "x$has_space" != x; then 27791 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27792 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27793 fi 27794 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 27795 fi 27796 fi 27797 27798 # Now new_path has a complete unix path to the binary 27799 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27800 # Keep paths in /bin as-is, but remove trailing .exe if any 27801 new_path="${new_path/%.exe/}" 27802 # Do not save /bin paths to all_fixpath_prefixes! 27803 else 27804 # Not in mixed or Windows style, start by that. 27805 new_path=`cmd //c echo $new_path` 27806 27807 input_path="$new_path" 27808 # Check if we need to convert this using DOS-style short mode. If the path 27809 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27810 # take no chances and rewrite it. 27811 # Note: m4 eats our [], so we need to use [ and ] instead. 27812 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27813 if test "x$has_forbidden_chars" != x; then 27814 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27815 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27816 fi 27817 27818 # Output is in $new_path 27819 27820 windows_path="$new_path" 27821 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27822 unix_path=`$CYGPATH -u "$windows_path"` 27823 new_path="$unix_path" 27824 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27825 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27826 new_path="$unix_path" 27827 fi 27828 27829 # remove trailing .exe if any 27830 new_path="${new_path/%.exe/}" 27831 27832 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27833 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27834 fi 27835 27836 else 27837 # We're on a posix platform. Hooray! :) 27838 # First separate the path from the arguments. This will split at the first 27839 # space. 27840 complete="$PROPER_COMPILER_CC" 27841 path="${complete%% *}" 27842 tmp="$complete EOL" 27843 arguments="${tmp#* }" 27844 27845 # Cannot rely on the command "which" here since it doesn't always work. 27846 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27847 if test -z "$is_absolute_path"; then 27848 # Path to executable is not absolute. Find it. 27849 IFS_save="$IFS" 27850 IFS=: 27851 for p in $PATH; do 27852 if test -f "$p/$path" && test -x "$p/$path"; then 27853 new_path="$p/$path" 27854 break 27855 fi 27856 done 27857 IFS="$IFS_save" 27858 else 27859 # This is an absolute path, we can use it without further modifications. 27860 new_path="$path" 27861 fi 27862 27863 if test "x$new_path" = x; then 27864 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 27865 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 27866 has_space=`$ECHO "$complete" | $GREP " "` 27867 if test "x$has_space" != x; then 27868 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27869 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27870 fi 27871 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 27872 fi 27873 fi 27874 27875 # Now join together the path and the arguments once again 27876 if test "x$arguments" != xEOL; then 27877 new_complete="$new_path ${arguments% *}" 27878 else 27879 new_complete="$new_path" 27880 fi 27881 27882 if test "x$complete" != "x$new_complete"; then 27883 PROPER_COMPILER_CC="$new_complete" 27884 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5 27885 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;} 27886 fi 27887 27888 PATH="$RETRY_COMPILER_SAVED_PATH" 27889 27890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5 27891 $as_echo_n "checking for resolved symbolic links for CC... " >&6; } 27892 27893 if test "x$OPENJDK_BUILD_OS" != xwindows; then 27894 # Follow a chain of symbolic links. Use readlink 27895 # where it exists, else fall back to horribly 27896 # complicated shell code. 27897 if test "x$READLINK_TESTED" != yes; then 27898 # On MacOSX there is a readlink tool with a different 27899 # purpose than the GNU readlink tool. Check the found readlink. 27900 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 27901 if test "x$ISGNU" = x; then 27902 # A readlink that we do not know how to use. 27903 # Are there other non-GNU readlinks out there? 27904 READLINK_TESTED=yes 27905 READLINK= 27906 fi 27907 fi 27908 27909 if test "x$READLINK" != x; then 27910 PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC` 27911 else 27912 # Save the current directory for restoring afterwards 27913 STARTDIR=$PWD 27914 COUNTER=0 27915 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC` 27916 sym_link_file=`$BASENAME $PROPER_COMPILER_CC` 27917 cd $sym_link_dir 27918 # Use -P flag to resolve symlinks in directories. 27919 cd `$THEPWDCMD -P` 27920 sym_link_dir=`$THEPWDCMD -P` 27921 # Resolve file symlinks 27922 while test $COUNTER -lt 20; do 27923 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 27924 if test "x$ISLINK" == x; then 27925 # This is not a symbolic link! We are done! 27926 break 27927 fi 27928 # Again resolve directory symlinks since the target of the just found 27929 # link could be in a different directory 27930 cd `$DIRNAME $ISLINK` 27931 sym_link_dir=`$THEPWDCMD -P` 27932 sym_link_file=`$BASENAME $ISLINK` 27933 let COUNTER=COUNTER+1 27934 done 27935 cd $STARTDIR 27936 PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file 27937 fi 27938 fi 27939 27940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 27941 $as_echo "$PROPER_COMPILER_CC" >&6; } 27942 CC="$PROPER_COMPILER_CC" 27943 else 27944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5 27945 $as_echo "no, keeping CC" >&6; } 27946 fi 27947 fi 27948 27949 27950 COMPILER=$CC 27951 COMPILER_NAME=$COMPILER_NAME 27952 27953 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 27954 # cc -V output typically looks like 27955 # cc: Sun C 5.12 Linux_i386 2011/11/16 27956 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 27957 # Check that this is likely to be the Solaris Studio cc. 27958 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 27959 if test $? -ne 0; then 27960 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 27961 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 27962 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 27963 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 27964 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 27965 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 27966 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 27967 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 27968 fi 27969 # Remove usage instructions (if present), and 27970 # collapse compiler output into a single line 27971 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27972 $SED -e 's/ *[Uu]sage:.*//'` 27973 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27974 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 27975 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 27976 # xlc -qversion output typically looks like 27977 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 27978 # Version: 11.01.0000.0015 27979 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 27980 # Check that this is likely to be the IBM XL C compiler. 27981 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 27982 if test $? -ne 0; then 27983 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 27984 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 27985 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 27986 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 27987 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 27988 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 27989 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 27990 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 27991 fi 27992 # Collapse compiler output into a single line 27993 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 27994 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27995 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 27996 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 27997 # There is no specific version flag, but all output starts with a version string. 27998 # First line typically looks something like: 27999 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 28000 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 28001 # Check that this is likely to be Microsoft CL.EXE. 28002 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 28003 if test $? -ne 0; then 28004 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 28005 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28006 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28007 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28008 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28009 fi 28010 # Collapse compiler output into a single line 28011 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28012 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28013 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 28014 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 28015 # gcc --version output typically looks like 28016 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 28017 # Copyright (C) 2013 Free Software Foundation, Inc. 28018 # This is free software; see the source for copying conditions. There is NO 28019 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 28020 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28021 # Check that this is likely to be GCC. 28022 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 28023 if test $? -ne 0; then 28024 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 28025 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28026 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 28027 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 28028 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28029 fi 28030 # Remove Copyright and legalese from version string, and 28031 # collapse into a single line 28032 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28033 $SED -e 's/ *Copyright .*//'` 28034 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28035 $SED -e 's/^.* \([1-9][0-9]*\.[0-9.]*\) .*$/\1/'` 28036 elif test "x$TOOLCHAIN_TYPE" = xclang; then 28037 # clang --version output typically looks like 28038 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 28039 # clang version 3.3 (tags/RELEASE_33/final) 28040 # or 28041 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 28042 # Target: x86_64-pc-linux-gnu 28043 # Thread model: posix 28044 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28045 # Check that this is likely to be clang 28046 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 28047 if test $? -ne 0; then 28048 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 28049 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28050 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28051 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28052 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28053 fi 28054 # Collapse compiler output into a single line 28055 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28056 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28057 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 28058 28059 else 28060 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 28061 fi 28062 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 28063 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 28064 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 28065 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 28066 28067 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 28068 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 28069 28070 28071 # Now that we have resolved CC ourself, let autoconf have its go at it 28072 ac_ext=c 28073 ac_cpp='$CPP $CPPFLAGS' 28074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28076 ac_compiler_gnu=$ac_cv_c_compiler_gnu 28077 if test -n "$ac_tool_prefix"; then 28078 for ac_prog in $CC 28079 do 28080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28083 $as_echo_n "checking for $ac_word... " >&6; } 28084 if ${ac_cv_prog_CC+:} false; then : 28085 $as_echo_n "(cached) " >&6 28086 else 28087 if test -n "$CC"; then 28088 ac_cv_prog_CC="$CC" # Let the user override the test. 28089 else 28090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28091 for as_dir in $PATH 28092 do 28093 IFS=$as_save_IFS 28094 test -z "$as_dir" && as_dir=. 28095 for ac_exec_ext in '' $ac_executable_extensions; do 28096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28097 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 28098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28099 break 2 28100 fi 28101 done 28102 done 28103 IFS=$as_save_IFS 28104 28105 fi 28106 fi 28107 CC=$ac_cv_prog_CC 28108 if test -n "$CC"; then 28109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 28110 $as_echo "$CC" >&6; } 28111 else 28112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28113 $as_echo "no" >&6; } 28114 fi 28115 28116 28117 test -n "$CC" && break 28118 done 28119 fi 28120 if test -z "$CC"; then 28121 ac_ct_CC=$CC 28122 for ac_prog in $CC 28123 do 28124 # Extract the first word of "$ac_prog", so it can be a program name with args. 28125 set dummy $ac_prog; ac_word=$2 28126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28127 $as_echo_n "checking for $ac_word... " >&6; } 28128 if ${ac_cv_prog_ac_ct_CC+:} false; then : 28129 $as_echo_n "(cached) " >&6 28130 else 28131 if test -n "$ac_ct_CC"; then 28132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 28133 else 28134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28135 for as_dir in $PATH 28136 do 28137 IFS=$as_save_IFS 28138 test -z "$as_dir" && as_dir=. 28139 for ac_exec_ext in '' $ac_executable_extensions; do 28140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28141 ac_cv_prog_ac_ct_CC="$ac_prog" 28142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28143 break 2 28144 fi 28145 done 28146 done 28147 IFS=$as_save_IFS 28148 28149 fi 28150 fi 28151 ac_ct_CC=$ac_cv_prog_ac_ct_CC 28152 if test -n "$ac_ct_CC"; then 28153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 28154 $as_echo "$ac_ct_CC" >&6; } 28155 else 28156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28157 $as_echo "no" >&6; } 28158 fi 28159 28160 28161 test -n "$ac_ct_CC" && break 28162 done 28163 28164 if test "x$ac_ct_CC" = x; then 28165 CC="" 28166 else 28167 case $cross_compiling:$ac_tool_warned in 28168 yes:) 28169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28171 ac_tool_warned=yes ;; 28172 esac 28173 CC=$ac_ct_CC 28174 fi 28175 fi 28176 28177 28178 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28180 as_fn_error $? "no acceptable C compiler found in \$PATH 28181 See \`config.log' for more details" "$LINENO" 5; } 28182 28183 # Provide some information about the compiler. 28184 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 28185 set X $ac_compile 28186 ac_compiler=$2 28187 for ac_option in --version -v -V -qversion; do 28188 { { ac_try="$ac_compiler $ac_option >&5" 28189 case "(($ac_try" in 28190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28191 *) ac_try_echo=$ac_try;; 28192 esac 28193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28194 $as_echo "$ac_try_echo"; } >&5 28195 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 28196 ac_status=$? 28197 if test -s conftest.err; then 28198 sed '10a\ 28199 ... rest of stderr output deleted ... 28200 10q' conftest.err >conftest.er1 28201 cat conftest.er1 >&5 28202 fi 28203 rm -f conftest.er1 conftest.err 28204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28205 test $ac_status = 0; } 28206 done 28207 28208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28209 /* end confdefs.h. */ 28210 28211 int 28212 main () 28213 { 28214 28215 ; 28216 return 0; 28217 } 28218 _ACEOF 28219 ac_clean_files_save=$ac_clean_files 28220 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 28221 # Try to create an executable without -o first, disregard a.out. 28222 # It will help us diagnose broken compilers, and finding out an intuition 28223 # of exeext. 28224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 28225 $as_echo_n "checking whether the C compiler works... " >&6; } 28226 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 28227 28228 # The possible output files: 28229 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 28230 28231 ac_rmfiles= 28232 for ac_file in $ac_files 28233 do 28234 case $ac_file in 28235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 28236 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 28237 esac 28238 done 28239 rm -f $ac_rmfiles 28240 28241 if { { ac_try="$ac_link_default" 28242 case "(($ac_try" in 28243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28244 *) ac_try_echo=$ac_try;; 28245 esac 28246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28247 $as_echo "$ac_try_echo"; } >&5 28248 (eval "$ac_link_default") 2>&5 28249 ac_status=$? 28250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28251 test $ac_status = 0; }; then : 28252 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 28253 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 28254 # in a Makefile. We should not override ac_cv_exeext if it was cached, 28255 # so that the user can short-circuit this test for compilers unknown to 28256 # Autoconf. 28257 for ac_file in $ac_files '' 28258 do 28259 test -f "$ac_file" || continue 28260 case $ac_file in 28261 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 28262 ;; 28263 [ab].out ) 28264 # We found the default executable, but exeext='' is most 28265 # certainly right. 28266 break;; 28267 *.* ) 28268 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 28269 then :; else 28270 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 28271 fi 28272 # We set ac_cv_exeext here because the later test for it is not 28273 # safe: cross compilers may not add the suffix if given an `-o' 28274 # argument, so we may need to know it at that point already. 28275 # Even if this section looks crufty: it has the advantage of 28276 # actually working. 28277 break;; 28278 * ) 28279 break;; 28280 esac 28281 done 28282 test "$ac_cv_exeext" = no && ac_cv_exeext= 28283 28284 else 28285 ac_file='' 28286 fi 28287 if test -z "$ac_file"; then : 28288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28289 $as_echo "no" >&6; } 28290 $as_echo "$as_me: failed program was:" >&5 28291 sed 's/^/| /' conftest.$ac_ext >&5 28292 28293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28295 as_fn_error 77 "C compiler cannot create executables 28296 See \`config.log' for more details" "$LINENO" 5; } 28297 else 28298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28299 $as_echo "yes" >&6; } 28300 fi 28301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 28302 $as_echo_n "checking for C compiler default output file name... " >&6; } 28303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 28304 $as_echo "$ac_file" >&6; } 28305 ac_exeext=$ac_cv_exeext 28306 28307 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 28308 ac_clean_files=$ac_clean_files_save 28309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 28310 $as_echo_n "checking for suffix of executables... " >&6; } 28311 if { { ac_try="$ac_link" 28312 case "(($ac_try" in 28313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28314 *) ac_try_echo=$ac_try;; 28315 esac 28316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28317 $as_echo "$ac_try_echo"; } >&5 28318 (eval "$ac_link") 2>&5 28319 ac_status=$? 28320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28321 test $ac_status = 0; }; then : 28322 # If both `conftest.exe' and `conftest' are `present' (well, observable) 28323 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 28324 # work properly (i.e., refer to `conftest.exe'), while it won't with 28325 # `rm'. 28326 for ac_file in conftest.exe conftest conftest.*; do 28327 test -f "$ac_file" || continue 28328 case $ac_file in 28329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 28330 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 28331 break;; 28332 * ) break;; 28333 esac 28334 done 28335 else 28336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28338 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 28339 See \`config.log' for more details" "$LINENO" 5; } 28340 fi 28341 rm -f conftest conftest$ac_cv_exeext 28342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 28343 $as_echo "$ac_cv_exeext" >&6; } 28344 28345 rm -f conftest.$ac_ext 28346 EXEEXT=$ac_cv_exeext 28347 ac_exeext=$EXEEXT 28348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28349 /* end confdefs.h. */ 28350 #include <stdio.h> 28351 int 28352 main () 28353 { 28354 FILE *f = fopen ("conftest.out", "w"); 28355 return ferror (f) || fclose (f) != 0; 28356 28357 ; 28358 return 0; 28359 } 28360 _ACEOF 28361 ac_clean_files="$ac_clean_files conftest.out" 28362 # Check that the compiler produces executables we can run. If not, either 28363 # the compiler is broken, or we cross compile. 28364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 28365 $as_echo_n "checking whether we are cross compiling... " >&6; } 28366 if test "$cross_compiling" != yes; then 28367 { { ac_try="$ac_link" 28368 case "(($ac_try" in 28369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28370 *) ac_try_echo=$ac_try;; 28371 esac 28372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28373 $as_echo "$ac_try_echo"; } >&5 28374 (eval "$ac_link") 2>&5 28375 ac_status=$? 28376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28377 test $ac_status = 0; } 28378 if { ac_try='./conftest$ac_cv_exeext' 28379 { { case "(($ac_try" in 28380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28381 *) ac_try_echo=$ac_try;; 28382 esac 28383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28384 $as_echo "$ac_try_echo"; } >&5 28385 (eval "$ac_try") 2>&5 28386 ac_status=$? 28387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28388 test $ac_status = 0; }; }; then 28389 cross_compiling=no 28390 else 28391 if test "$cross_compiling" = maybe; then 28392 cross_compiling=yes 28393 else 28394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28396 as_fn_error $? "cannot run C compiled programs. 28397 If you meant to cross compile, use \`--host'. 28398 See \`config.log' for more details" "$LINENO" 5; } 28399 fi 28400 fi 28401 fi 28402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 28403 $as_echo "$cross_compiling" >&6; } 28404 28405 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 28406 ac_clean_files=$ac_clean_files_save 28407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 28408 $as_echo_n "checking for suffix of object files... " >&6; } 28409 if ${ac_cv_objext+:} false; then : 28410 $as_echo_n "(cached) " >&6 28411 else 28412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28413 /* end confdefs.h. */ 28414 28415 int 28416 main () 28417 { 28418 28419 ; 28420 return 0; 28421 } 28422 _ACEOF 28423 rm -f conftest.o conftest.obj 28424 if { { ac_try="$ac_compile" 28425 case "(($ac_try" in 28426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28427 *) ac_try_echo=$ac_try;; 28428 esac 28429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28430 $as_echo "$ac_try_echo"; } >&5 28431 (eval "$ac_compile") 2>&5 28432 ac_status=$? 28433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28434 test $ac_status = 0; }; then : 28435 for ac_file in conftest.o conftest.obj conftest.*; do 28436 test -f "$ac_file" || continue; 28437 case $ac_file in 28438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 28439 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 28440 break;; 28441 esac 28442 done 28443 else 28444 $as_echo "$as_me: failed program was:" >&5 28445 sed 's/^/| /' conftest.$ac_ext >&5 28446 28447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28449 as_fn_error $? "cannot compute suffix of object files: cannot compile 28450 See \`config.log' for more details" "$LINENO" 5; } 28451 fi 28452 rm -f conftest.$ac_cv_objext conftest.$ac_ext 28453 fi 28454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 28455 $as_echo "$ac_cv_objext" >&6; } 28456 OBJEXT=$ac_cv_objext 28457 ac_objext=$OBJEXT 28458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 28459 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 28460 if ${ac_cv_c_compiler_gnu+:} false; then : 28461 $as_echo_n "(cached) " >&6 28462 else 28463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28464 /* end confdefs.h. */ 28465 28466 int 28467 main () 28468 { 28469 #ifndef __GNUC__ 28470 choke me 28471 #endif 28472 28473 ; 28474 return 0; 28475 } 28476 _ACEOF 28477 if ac_fn_c_try_compile "$LINENO"; then : 28478 ac_compiler_gnu=yes 28479 else 28480 ac_compiler_gnu=no 28481 fi 28482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28483 ac_cv_c_compiler_gnu=$ac_compiler_gnu 28484 28485 fi 28486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 28487 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 28488 if test $ac_compiler_gnu = yes; then 28489 GCC=yes 28490 else 28491 GCC= 28492 fi 28493 ac_test_CFLAGS=${CFLAGS+set} 28494 ac_save_CFLAGS=$CFLAGS 28495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 28496 $as_echo_n "checking whether $CC accepts -g... " >&6; } 28497 if ${ac_cv_prog_cc_g+:} false; then : 28498 $as_echo_n "(cached) " >&6 28499 else 28500 ac_save_c_werror_flag=$ac_c_werror_flag 28501 ac_c_werror_flag=yes 28502 ac_cv_prog_cc_g=no 28503 CFLAGS="-g" 28504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28505 /* end confdefs.h. */ 28506 28507 int 28508 main () 28509 { 28510 28511 ; 28512 return 0; 28513 } 28514 _ACEOF 28515 if ac_fn_c_try_compile "$LINENO"; then : 28516 ac_cv_prog_cc_g=yes 28517 else 28518 CFLAGS="" 28519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28520 /* end confdefs.h. */ 28521 28522 int 28523 main () 28524 { 28525 28526 ; 28527 return 0; 28528 } 28529 _ACEOF 28530 if ac_fn_c_try_compile "$LINENO"; then : 28531 28532 else 28533 ac_c_werror_flag=$ac_save_c_werror_flag 28534 CFLAGS="-g" 28535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28536 /* end confdefs.h. */ 28537 28538 int 28539 main () 28540 { 28541 28542 ; 28543 return 0; 28544 } 28545 _ACEOF 28546 if ac_fn_c_try_compile "$LINENO"; then : 28547 ac_cv_prog_cc_g=yes 28548 fi 28549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28550 fi 28551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28552 fi 28553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28554 ac_c_werror_flag=$ac_save_c_werror_flag 28555 fi 28556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 28557 $as_echo "$ac_cv_prog_cc_g" >&6; } 28558 if test "$ac_test_CFLAGS" = set; then 28559 CFLAGS=$ac_save_CFLAGS 28560 elif test $ac_cv_prog_cc_g = yes; then 28561 if test "$GCC" = yes; then 28562 CFLAGS="-g -O2" 28563 else 28564 CFLAGS="-g" 28565 fi 28566 else 28567 if test "$GCC" = yes; then 28568 CFLAGS="-O2" 28569 else 28570 CFLAGS= 28571 fi 28572 fi 28573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 28574 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 28575 if ${ac_cv_prog_cc_c89+:} false; then : 28576 $as_echo_n "(cached) " >&6 28577 else 28578 ac_cv_prog_cc_c89=no 28579 ac_save_CC=$CC 28580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28581 /* end confdefs.h. */ 28582 #include <stdarg.h> 28583 #include <stdio.h> 28584 struct stat; 28585 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 28586 struct buf { int x; }; 28587 FILE * (*rcsopen) (struct buf *, struct stat *, int); 28588 static char *e (p, i) 28589 char **p; 28590 int i; 28591 { 28592 return p[i]; 28593 } 28594 static char *f (char * (*g) (char **, int), char **p, ...) 28595 { 28596 char *s; 28597 va_list v; 28598 va_start (v,p); 28599 s = g (p, va_arg (v,int)); 28600 va_end (v); 28601 return s; 28602 } 28603 28604 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 28605 function prototypes and stuff, but not '\xHH' hex character constants. 28606 These don't provoke an error unfortunately, instead are silently treated 28607 as 'x'. The following induces an error, until -std is added to get 28608 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 28609 array size at least. It's necessary to write '\x00'==0 to get something 28610 that's true only with -std. */ 28611 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 28612 28613 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 28614 inside strings and character constants. */ 28615 #define FOO(x) 'x' 28616 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 28617 28618 int test (int i, double x); 28619 struct s1 {int (*f) (int a);}; 28620 struct s2 {int (*f) (double a);}; 28621 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 28622 int argc; 28623 char **argv; 28624 int 28625 main () 28626 { 28627 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 28628 ; 28629 return 0; 28630 } 28631 _ACEOF 28632 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 28633 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 28634 do 28635 CC="$ac_save_CC $ac_arg" 28636 if ac_fn_c_try_compile "$LINENO"; then : 28637 ac_cv_prog_cc_c89=$ac_arg 28638 fi 28639 rm -f core conftest.err conftest.$ac_objext 28640 test "x$ac_cv_prog_cc_c89" != "xno" && break 28641 done 28642 rm -f conftest.$ac_ext 28643 CC=$ac_save_CC 28644 28645 fi 28646 # AC_CACHE_VAL 28647 case "x$ac_cv_prog_cc_c89" in 28648 x) 28649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 28650 $as_echo "none needed" >&6; } ;; 28651 xno) 28652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 28653 $as_echo "unsupported" >&6; } ;; 28654 *) 28655 CC="$CC $ac_cv_prog_cc_c89" 28656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 28657 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 28658 esac 28659 if test "x$ac_cv_prog_cc_c89" != xno; then : 28660 28661 fi 28662 28663 ac_ext=cpp 28664 ac_cpp='$CXXCPP $CPPFLAGS' 28665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28668 28669 28670 28671 COMPILER_NAME=C++ 28672 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 28673 28674 if test "x$CXX" != x; then 28675 # User has supplied compiler name already, always let that override. 28676 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 28677 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 28678 if test "x`basename $CXX`" = "x$CXX"; then 28679 # A command without a complete path is provided, search $PATH. 28680 28681 for ac_prog in $CXX 28682 do 28683 # Extract the first word of "$ac_prog", so it can be a program name with args. 28684 set dummy $ac_prog; ac_word=$2 28685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28686 $as_echo_n "checking for $ac_word... " >&6; } 28687 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 28688 $as_echo_n "(cached) " >&6 28689 else 28690 case $POTENTIAL_CXX in 28691 [\\/]* | ?:[\\/]*) 28692 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 28693 ;; 28694 *) 28695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28696 for as_dir in $PATH 28697 do 28698 IFS=$as_save_IFS 28699 test -z "$as_dir" && as_dir=. 28700 for ac_exec_ext in '' $ac_executable_extensions; do 28701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28702 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 28703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28704 break 2 28705 fi 28706 done 28707 done 28708 IFS=$as_save_IFS 28709 28710 ;; 28711 esac 28712 fi 28713 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 28714 if test -n "$POTENTIAL_CXX"; then 28715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 28716 $as_echo "$POTENTIAL_CXX" >&6; } 28717 else 28718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28719 $as_echo "no" >&6; } 28720 fi 28721 28722 28723 test -n "$POTENTIAL_CXX" && break 28724 done 28725 28726 if test "x$POTENTIAL_CXX" != x; then 28727 CXX=$POTENTIAL_CXX 28728 else 28729 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 28730 fi 28731 else 28732 # Otherwise it might already be a complete path 28733 if test ! -x "$CXX"; then 28734 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 28735 fi 28736 fi 28737 else 28738 # No user supplied value. Locate compiler ourselves. 28739 28740 # If we are cross compiling, assume cross compilation tools follows the 28741 # cross compilation standard where they are prefixed with the autoconf 28742 # standard name for the target. For example the binary 28743 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 28744 # If we are not cross compiling, then the default compiler name will be 28745 # used. 28746 28747 CXX= 28748 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 28749 # before checking the rest of the PATH. 28750 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 28751 # step, this should not be necessary. 28752 if test -n "$TOOLCHAIN_PATH"; then 28753 PATH_save="$PATH" 28754 PATH="$TOOLCHAIN_PATH" 28755 for ac_prog in $SEARCH_LIST 28756 do 28757 # Extract the first word of "$ac_prog", so it can be a program name with args. 28758 set dummy $ac_prog; ac_word=$2 28759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28760 $as_echo_n "checking for $ac_word... " >&6; } 28761 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 28762 $as_echo_n "(cached) " >&6 28763 else 28764 case $TOOLCHAIN_PATH_CXX in 28765 [\\/]* | ?:[\\/]*) 28766 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 28767 ;; 28768 *) 28769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28770 for as_dir in $PATH 28771 do 28772 IFS=$as_save_IFS 28773 test -z "$as_dir" && as_dir=. 28774 for ac_exec_ext in '' $ac_executable_extensions; do 28775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28776 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 28777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28778 break 2 28779 fi 28780 done 28781 done 28782 IFS=$as_save_IFS 28783 28784 ;; 28785 esac 28786 fi 28787 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 28788 if test -n "$TOOLCHAIN_PATH_CXX"; then 28789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 28790 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 28791 else 28792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28793 $as_echo "no" >&6; } 28794 fi 28795 28796 28797 test -n "$TOOLCHAIN_PATH_CXX" && break 28798 done 28799 28800 CXX=$TOOLCHAIN_PATH_CXX 28801 PATH="$PATH_save" 28802 fi 28803 28804 # AC_PATH_PROGS can't be run multiple times with the same variable, 28805 # so create a new name for this run. 28806 if test "x$CXX" = x; then 28807 for ac_prog in $TOOLCHAIN_CXX_BINARY 28808 do 28809 # Extract the first word of "$ac_prog", so it can be a program name with args. 28810 set dummy $ac_prog; ac_word=$2 28811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28812 $as_echo_n "checking for $ac_word... " >&6; } 28813 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 28814 $as_echo_n "(cached) " >&6 28815 else 28816 case $POTENTIAL_CXX in 28817 [\\/]* | ?:[\\/]*) 28818 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 28819 ;; 28820 *) 28821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28822 for as_dir in $PATH 28823 do 28824 IFS=$as_save_IFS 28825 test -z "$as_dir" && as_dir=. 28826 for ac_exec_ext in '' $ac_executable_extensions; do 28827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28828 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 28829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28830 break 2 28831 fi 28832 done 28833 done 28834 IFS=$as_save_IFS 28835 28836 ;; 28837 esac 28838 fi 28839 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 28840 if test -n "$POTENTIAL_CXX"; then 28841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 28842 $as_echo "$POTENTIAL_CXX" >&6; } 28843 else 28844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28845 $as_echo "no" >&6; } 28846 fi 28847 28848 28849 test -n "$POTENTIAL_CXX" && break 28850 done 28851 28852 CXX=$POTENTIAL_CXX 28853 fi 28854 28855 if test "x$CXX" = x; then 28856 28857 # Print a helpful message on how to acquire the necessary build dependency. 28858 # devkit is the help tag: freetype, cups, pulse, alsa etc 28859 MISSING_DEPENDENCY=devkit 28860 28861 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28862 cygwin_help $MISSING_DEPENDENCY 28863 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28864 msys_help $MISSING_DEPENDENCY 28865 else 28866 PKGHANDLER_COMMAND= 28867 28868 case $PKGHANDLER in 28869 apt-get) 28870 apt_help $MISSING_DEPENDENCY ;; 28871 yum) 28872 yum_help $MISSING_DEPENDENCY ;; 28873 port) 28874 port_help $MISSING_DEPENDENCY ;; 28875 pkgutil) 28876 pkgutil_help $MISSING_DEPENDENCY ;; 28877 pkgadd) 28878 pkgadd_help $MISSING_DEPENDENCY ;; 28879 esac 28880 28881 if test "x$PKGHANDLER_COMMAND" != x; then 28882 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 28883 fi 28884 fi 28885 28886 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 28887 fi 28888 fi 28889 28890 # Now we have a compiler binary in CXX. Make sure it's okay. 28891 28892 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28893 28894 # First separate the path from the arguments. This will split at the first 28895 # space. 28896 complete="$CXX" 28897 path="${complete%% *}" 28898 tmp="$complete EOL" 28899 arguments="${tmp#* }" 28900 28901 # Input might be given as Windows format, start by converting to 28902 # unix format. 28903 new_path=`$CYGPATH -u "$path"` 28904 28905 # Now try to locate executable using which 28906 new_path=`$WHICH "$new_path" 2> /dev/null` 28907 # bat and cmd files are not always considered executable in cygwin causing which 28908 # to not find them 28909 if test "x$new_path" = x \ 28910 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28911 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28912 new_path=`$CYGPATH -u "$path"` 28913 fi 28914 if test "x$new_path" = x; then 28915 # Oops. Which didn't find the executable. 28916 # The splitting of arguments from the executable at a space might have been incorrect, 28917 # since paths with space are more likely in Windows. Give it another try with the whole 28918 # argument. 28919 path="$complete" 28920 arguments="EOL" 28921 new_path=`$CYGPATH -u "$path"` 28922 new_path=`$WHICH "$new_path" 2> /dev/null` 28923 # bat and cmd files are not always considered executable in cygwin causing which 28924 # to not find them 28925 if test "x$new_path" = x \ 28926 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28927 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28928 new_path=`$CYGPATH -u "$path"` 28929 fi 28930 if test "x$new_path" = x; then 28931 # It's still not found. Now this is an unrecoverable error. 28932 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 28933 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 28934 has_space=`$ECHO "$complete" | $GREP " "` 28935 if test "x$has_space" != x; then 28936 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28937 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28938 fi 28939 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 28940 fi 28941 fi 28942 28943 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28944 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28945 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28946 # "foo.exe" is OK but "foo" is an error. 28947 # 28948 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28949 # It is also a way to make sure we got the proper file name for the real test later on. 28950 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28951 if test "x$test_shortpath" = x; then 28952 # Short path failed, file does not exist as specified. 28953 # Try adding .exe or .cmd 28954 if test -f "${new_path}.exe"; then 28955 input_to_shortpath="${new_path}.exe" 28956 elif test -f "${new_path}.cmd"; then 28957 input_to_shortpath="${new_path}.cmd" 28958 else 28959 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 28960 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 28961 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28962 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28963 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 28964 fi 28965 else 28966 input_to_shortpath="$new_path" 28967 fi 28968 28969 # Call helper function which possibly converts this using DOS-style short mode. 28970 # If so, the updated path is stored in $new_path. 28971 new_path="$input_to_shortpath" 28972 28973 input_path="$input_to_shortpath" 28974 # Check if we need to convert this using DOS-style short mode. If the path 28975 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28976 # take no chances and rewrite it. 28977 # Note: m4 eats our [], so we need to use [ and ] instead. 28978 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28979 if test "x$has_forbidden_chars" != x; then 28980 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28981 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28982 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28983 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28984 # Going to short mode and back again did indeed matter. Since short mode is 28985 # case insensitive, let's make it lowercase to improve readability. 28986 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28987 # Now convert it back to Unix-style (cygpath) 28988 input_path=`$CYGPATH -u "$shortmode_path"` 28989 new_path="$input_path" 28990 fi 28991 fi 28992 28993 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28994 if test "x$test_cygdrive_prefix" = x; then 28995 # As a simple fix, exclude /usr/bin since it's not a real path. 28996 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28997 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28998 # a path prefixed by /cygdrive for fixpath to work. 28999 new_path="$CYGWIN_ROOT_PATH$input_path" 29000 fi 29001 fi 29002 29003 # remove trailing .exe if any 29004 new_path="${new_path/%.exe/}" 29005 29006 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29007 29008 # First separate the path from the arguments. This will split at the first 29009 # space. 29010 complete="$CXX" 29011 path="${complete%% *}" 29012 tmp="$complete EOL" 29013 arguments="${tmp#* }" 29014 29015 # Input might be given as Windows format, start by converting to 29016 # unix format. 29017 new_path="$path" 29018 29019 windows_path="$new_path" 29020 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29021 unix_path=`$CYGPATH -u "$windows_path"` 29022 new_path="$unix_path" 29023 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29024 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29025 new_path="$unix_path" 29026 fi 29027 29028 29029 # Now try to locate executable using which 29030 new_path=`$WHICH "$new_path" 2> /dev/null` 29031 29032 if test "x$new_path" = x; then 29033 # Oops. Which didn't find the executable. 29034 # The splitting of arguments from the executable at a space might have been incorrect, 29035 # since paths with space are more likely in Windows. Give it another try with the whole 29036 # argument. 29037 path="$complete" 29038 arguments="EOL" 29039 new_path="$path" 29040 29041 windows_path="$new_path" 29042 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29043 unix_path=`$CYGPATH -u "$windows_path"` 29044 new_path="$unix_path" 29045 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29046 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29047 new_path="$unix_path" 29048 fi 29049 29050 29051 new_path=`$WHICH "$new_path" 2> /dev/null` 29052 # bat and cmd files are not always considered executable in MSYS causing which 29053 # to not find them 29054 if test "x$new_path" = x \ 29055 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29056 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29057 new_path="$path" 29058 29059 windows_path="$new_path" 29060 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29061 unix_path=`$CYGPATH -u "$windows_path"` 29062 new_path="$unix_path" 29063 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29064 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29065 new_path="$unix_path" 29066 fi 29067 29068 fi 29069 29070 if test "x$new_path" = x; then 29071 # It's still not found. Now this is an unrecoverable error. 29072 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29073 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29074 has_space=`$ECHO "$complete" | $GREP " "` 29075 if test "x$has_space" != x; then 29076 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29077 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29078 fi 29079 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29080 fi 29081 fi 29082 29083 # Now new_path has a complete unix path to the binary 29084 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29085 # Keep paths in /bin as-is, but remove trailing .exe if any 29086 new_path="${new_path/%.exe/}" 29087 # Do not save /bin paths to all_fixpath_prefixes! 29088 else 29089 # Not in mixed or Windows style, start by that. 29090 new_path=`cmd //c echo $new_path` 29091 29092 input_path="$new_path" 29093 # Check if we need to convert this using DOS-style short mode. If the path 29094 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29095 # take no chances and rewrite it. 29096 # Note: m4 eats our [], so we need to use [ and ] instead. 29097 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29098 if test "x$has_forbidden_chars" != x; then 29099 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29100 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29101 fi 29102 29103 # Output is in $new_path 29104 29105 windows_path="$new_path" 29106 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29107 unix_path=`$CYGPATH -u "$windows_path"` 29108 new_path="$unix_path" 29109 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29110 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29111 new_path="$unix_path" 29112 fi 29113 29114 # remove trailing .exe if any 29115 new_path="${new_path/%.exe/}" 29116 29117 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29118 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29119 fi 29120 29121 else 29122 # We're on a posix platform. Hooray! :) 29123 # First separate the path from the arguments. This will split at the first 29124 # space. 29125 complete="$CXX" 29126 path="${complete%% *}" 29127 tmp="$complete EOL" 29128 arguments="${tmp#* }" 29129 29130 # Cannot rely on the command "which" here since it doesn't always work. 29131 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29132 if test -z "$is_absolute_path"; then 29133 # Path to executable is not absolute. Find it. 29134 IFS_save="$IFS" 29135 IFS=: 29136 for p in $PATH; do 29137 if test -f "$p/$path" && test -x "$p/$path"; then 29138 new_path="$p/$path" 29139 break 29140 fi 29141 done 29142 IFS="$IFS_save" 29143 else 29144 # This is an absolute path, we can use it without further modifications. 29145 new_path="$path" 29146 fi 29147 29148 if test "x$new_path" = x; then 29149 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29150 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29151 has_space=`$ECHO "$complete" | $GREP " "` 29152 if test "x$has_space" != x; then 29153 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29154 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29155 fi 29156 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29157 fi 29158 fi 29159 29160 # Now join together the path and the arguments once again 29161 if test "x$arguments" != xEOL; then 29162 new_complete="$new_path ${arguments% *}" 29163 else 29164 new_complete="$new_path" 29165 fi 29166 29167 if test "x$complete" != "x$new_complete"; then 29168 CXX="$new_complete" 29169 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 29170 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 29171 fi 29172 29173 TEST_COMPILER="$CXX" 29174 29175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 29176 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 29177 SYMLINK_ORIGINAL="$TEST_COMPILER" 29178 29179 if test "x$OPENJDK_BUILD_OS" != xwindows; then 29180 # Follow a chain of symbolic links. Use readlink 29181 # where it exists, else fall back to horribly 29182 # complicated shell code. 29183 if test "x$READLINK_TESTED" != yes; then 29184 # On MacOSX there is a readlink tool with a different 29185 # purpose than the GNU readlink tool. Check the found readlink. 29186 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 29187 if test "x$ISGNU" = x; then 29188 # A readlink that we do not know how to use. 29189 # Are there other non-GNU readlinks out there? 29190 READLINK_TESTED=yes 29191 READLINK= 29192 fi 29193 fi 29194 29195 if test "x$READLINK" != x; then 29196 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 29197 else 29198 # Save the current directory for restoring afterwards 29199 STARTDIR=$PWD 29200 COUNTER=0 29201 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 29202 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 29203 cd $sym_link_dir 29204 # Use -P flag to resolve symlinks in directories. 29205 cd `$THEPWDCMD -P` 29206 sym_link_dir=`$THEPWDCMD -P` 29207 # Resolve file symlinks 29208 while test $COUNTER -lt 20; do 29209 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 29210 if test "x$ISLINK" == x; then 29211 # This is not a symbolic link! We are done! 29212 break 29213 fi 29214 # Again resolve directory symlinks since the target of the just found 29215 # link could be in a different directory 29216 cd `$DIRNAME $ISLINK` 29217 sym_link_dir=`$THEPWDCMD -P` 29218 sym_link_file=`$BASENAME $ISLINK` 29219 let COUNTER=COUNTER+1 29220 done 29221 cd $STARTDIR 29222 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 29223 fi 29224 fi 29225 29226 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 29227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 29228 $as_echo "no symlink" >&6; } 29229 else 29230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 29231 $as_echo "$SYMLINK_ORIGINAL" >&6; } 29232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5 29233 $as_echo_n "checking if CXX is disguised ccache... " >&6; } 29234 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 29235 if test "x$COMPILER_BASENAME" = "xccache"; then 29236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 29237 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 29238 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 29239 # We want to control ccache invocation ourselves, so ignore this cc and try 29240 # searching again. 29241 29242 # Remove the path to the fake ccache cc from the PATH 29243 RETRY_COMPILER_SAVED_PATH="$PATH" 29244 COMPILER_DIRNAME=`$DIRNAME $CXX` 29245 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 29246 # Try again looking for our compiler 29247 if test -n "$ac_tool_prefix"; then 29248 for ac_prog in $TOOLCHAIN_CXX_BINARY 29249 do 29250 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 29251 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 29252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29253 $as_echo_n "checking for $ac_word... " >&6; } 29254 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then : 29255 $as_echo_n "(cached) " >&6 29256 else 29257 if test -n "$PROPER_COMPILER_CXX"; then 29258 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test. 29259 else 29260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29261 for as_dir in $PATH 29262 do 29263 IFS=$as_save_IFS 29264 test -z "$as_dir" && as_dir=. 29265 for ac_exec_ext in '' $ac_executable_extensions; do 29266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29267 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog" 29268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29269 break 2 29270 fi 29271 done 29272 done 29273 IFS=$as_save_IFS 29274 29275 fi 29276 fi 29277 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX 29278 if test -n "$PROPER_COMPILER_CXX"; then 29279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 29280 $as_echo "$PROPER_COMPILER_CXX" >&6; } 29281 else 29282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29283 $as_echo "no" >&6; } 29284 fi 29285 29286 29287 test -n "$PROPER_COMPILER_CXX" && break 29288 done 29289 fi 29290 if test -z "$PROPER_COMPILER_CXX"; then 29291 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX 29292 for ac_prog in $TOOLCHAIN_CXX_BINARY 29293 do 29294 # Extract the first word of "$ac_prog", so it can be a program name with args. 29295 set dummy $ac_prog; ac_word=$2 29296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29297 $as_echo_n "checking for $ac_word... " >&6; } 29298 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then : 29299 $as_echo_n "(cached) " >&6 29300 else 29301 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 29302 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test. 29303 else 29304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29305 for as_dir in $PATH 29306 do 29307 IFS=$as_save_IFS 29308 test -z "$as_dir" && as_dir=. 29309 for ac_exec_ext in '' $ac_executable_extensions; do 29310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29311 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog" 29312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29313 break 2 29314 fi 29315 done 29316 done 29317 IFS=$as_save_IFS 29318 29319 fi 29320 fi 29321 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX 29322 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 29323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5 29324 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; } 29325 else 29326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29327 $as_echo "no" >&6; } 29328 fi 29329 29330 29331 test -n "$ac_ct_PROPER_COMPILER_CXX" && break 29332 done 29333 29334 if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then 29335 PROPER_COMPILER_CXX="" 29336 else 29337 case $cross_compiling:$ac_tool_warned in 29338 yes:) 29339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29341 ac_tool_warned=yes ;; 29342 esac 29343 PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX 29344 fi 29345 fi 29346 29347 29348 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29349 29350 # First separate the path from the arguments. This will split at the first 29351 # space. 29352 complete="$PROPER_COMPILER_CXX" 29353 path="${complete%% *}" 29354 tmp="$complete EOL" 29355 arguments="${tmp#* }" 29356 29357 # Input might be given as Windows format, start by converting to 29358 # unix format. 29359 new_path=`$CYGPATH -u "$path"` 29360 29361 # Now try to locate executable using which 29362 new_path=`$WHICH "$new_path" 2> /dev/null` 29363 # bat and cmd files are not always considered executable in cygwin causing which 29364 # to not find them 29365 if test "x$new_path" = x \ 29366 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29367 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29368 new_path=`$CYGPATH -u "$path"` 29369 fi 29370 if test "x$new_path" = x; then 29371 # Oops. Which didn't find the executable. 29372 # The splitting of arguments from the executable at a space might have been incorrect, 29373 # since paths with space are more likely in Windows. Give it another try with the whole 29374 # argument. 29375 path="$complete" 29376 arguments="EOL" 29377 new_path=`$CYGPATH -u "$path"` 29378 new_path=`$WHICH "$new_path" 2> /dev/null` 29379 # bat and cmd files are not always considered executable in cygwin causing which 29380 # to not find them 29381 if test "x$new_path" = x \ 29382 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29383 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29384 new_path=`$CYGPATH -u "$path"` 29385 fi 29386 if test "x$new_path" = x; then 29387 # It's still not found. Now this is an unrecoverable error. 29388 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 29389 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 29390 has_space=`$ECHO "$complete" | $GREP " "` 29391 if test "x$has_space" != x; then 29392 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29393 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29394 fi 29395 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 29396 fi 29397 fi 29398 29399 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29400 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29401 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29402 # "foo.exe" is OK but "foo" is an error. 29403 # 29404 # This test is therefore slightly more accurate than "test -f" to check for file presence. 29405 # It is also a way to make sure we got the proper file name for the real test later on. 29406 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29407 if test "x$test_shortpath" = x; then 29408 # Short path failed, file does not exist as specified. 29409 # Try adding .exe or .cmd 29410 if test -f "${new_path}.exe"; then 29411 input_to_shortpath="${new_path}.exe" 29412 elif test -f "${new_path}.cmd"; then 29413 input_to_shortpath="${new_path}.cmd" 29414 else 29415 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5 29416 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;} 29417 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 29418 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 29419 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 29420 fi 29421 else 29422 input_to_shortpath="$new_path" 29423 fi 29424 29425 # Call helper function which possibly converts this using DOS-style short mode. 29426 # If so, the updated path is stored in $new_path. 29427 new_path="$input_to_shortpath" 29428 29429 input_path="$input_to_shortpath" 29430 # Check if we need to convert this using DOS-style short mode. If the path 29431 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29432 # take no chances and rewrite it. 29433 # Note: m4 eats our [], so we need to use [ and ] instead. 29434 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29435 if test "x$has_forbidden_chars" != x; then 29436 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29437 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29438 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29439 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29440 # Going to short mode and back again did indeed matter. Since short mode is 29441 # case insensitive, let's make it lowercase to improve readability. 29442 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29443 # Now convert it back to Unix-style (cygpath) 29444 input_path=`$CYGPATH -u "$shortmode_path"` 29445 new_path="$input_path" 29446 fi 29447 fi 29448 29449 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29450 if test "x$test_cygdrive_prefix" = x; then 29451 # As a simple fix, exclude /usr/bin since it's not a real path. 29452 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 29453 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29454 # a path prefixed by /cygdrive for fixpath to work. 29455 new_path="$CYGWIN_ROOT_PATH$input_path" 29456 fi 29457 fi 29458 29459 # remove trailing .exe if any 29460 new_path="${new_path/%.exe/}" 29461 29462 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29463 29464 # First separate the path from the arguments. This will split at the first 29465 # space. 29466 complete="$PROPER_COMPILER_CXX" 29467 path="${complete%% *}" 29468 tmp="$complete EOL" 29469 arguments="${tmp#* }" 29470 29471 # Input might be given as Windows format, start by converting to 29472 # unix format. 29473 new_path="$path" 29474 29475 windows_path="$new_path" 29476 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29477 unix_path=`$CYGPATH -u "$windows_path"` 29478 new_path="$unix_path" 29479 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29480 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29481 new_path="$unix_path" 29482 fi 29483 29484 29485 # Now try to locate executable using which 29486 new_path=`$WHICH "$new_path" 2> /dev/null` 29487 29488 if test "x$new_path" = x; then 29489 # Oops. Which didn't find the executable. 29490 # The splitting of arguments from the executable at a space might have been incorrect, 29491 # since paths with space are more likely in Windows. Give it another try with the whole 29492 # argument. 29493 path="$complete" 29494 arguments="EOL" 29495 new_path="$path" 29496 29497 windows_path="$new_path" 29498 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29499 unix_path=`$CYGPATH -u "$windows_path"` 29500 new_path="$unix_path" 29501 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29502 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29503 new_path="$unix_path" 29504 fi 29505 29506 29507 new_path=`$WHICH "$new_path" 2> /dev/null` 29508 # bat and cmd files are not always considered executable in MSYS causing which 29509 # to not find them 29510 if test "x$new_path" = x \ 29511 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29512 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29513 new_path="$path" 29514 29515 windows_path="$new_path" 29516 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29517 unix_path=`$CYGPATH -u "$windows_path"` 29518 new_path="$unix_path" 29519 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29520 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29521 new_path="$unix_path" 29522 fi 29523 29524 fi 29525 29526 if test "x$new_path" = x; then 29527 # It's still not found. Now this is an unrecoverable error. 29528 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 29529 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 29530 has_space=`$ECHO "$complete" | $GREP " "` 29531 if test "x$has_space" != x; then 29532 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29533 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29534 fi 29535 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 29536 fi 29537 fi 29538 29539 # Now new_path has a complete unix path to the binary 29540 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29541 # Keep paths in /bin as-is, but remove trailing .exe if any 29542 new_path="${new_path/%.exe/}" 29543 # Do not save /bin paths to all_fixpath_prefixes! 29544 else 29545 # Not in mixed or Windows style, start by that. 29546 new_path=`cmd //c echo $new_path` 29547 29548 input_path="$new_path" 29549 # Check if we need to convert this using DOS-style short mode. If the path 29550 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29551 # take no chances and rewrite it. 29552 # Note: m4 eats our [], so we need to use [ and ] instead. 29553 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29554 if test "x$has_forbidden_chars" != x; then 29555 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29556 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29557 fi 29558 29559 # Output is in $new_path 29560 29561 windows_path="$new_path" 29562 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29563 unix_path=`$CYGPATH -u "$windows_path"` 29564 new_path="$unix_path" 29565 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29566 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29567 new_path="$unix_path" 29568 fi 29569 29570 # remove trailing .exe if any 29571 new_path="${new_path/%.exe/}" 29572 29573 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29574 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29575 fi 29576 29577 else 29578 # We're on a posix platform. Hooray! :) 29579 # First separate the path from the arguments. This will split at the first 29580 # space. 29581 complete="$PROPER_COMPILER_CXX" 29582 path="${complete%% *}" 29583 tmp="$complete EOL" 29584 arguments="${tmp#* }" 29585 29586 # Cannot rely on the command "which" here since it doesn't always work. 29587 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29588 if test -z "$is_absolute_path"; then 29589 # Path to executable is not absolute. Find it. 29590 IFS_save="$IFS" 29591 IFS=: 29592 for p in $PATH; do 29593 if test -f "$p/$path" && test -x "$p/$path"; then 29594 new_path="$p/$path" 29595 break 29596 fi 29597 done 29598 IFS="$IFS_save" 29599 else 29600 # This is an absolute path, we can use it without further modifications. 29601 new_path="$path" 29602 fi 29603 29604 if test "x$new_path" = x; then 29605 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 29606 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 29607 has_space=`$ECHO "$complete" | $GREP " "` 29608 if test "x$has_space" != x; then 29609 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29610 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29611 fi 29612 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 29613 fi 29614 fi 29615 29616 # Now join together the path and the arguments once again 29617 if test "x$arguments" != xEOL; then 29618 new_complete="$new_path ${arguments% *}" 29619 else 29620 new_complete="$new_path" 29621 fi 29622 29623 if test "x$complete" != "x$new_complete"; then 29624 PROPER_COMPILER_CXX="$new_complete" 29625 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5 29626 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;} 29627 fi 29628 29629 PATH="$RETRY_COMPILER_SAVED_PATH" 29630 29631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5 29632 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; } 29633 29634 if test "x$OPENJDK_BUILD_OS" != xwindows; then 29635 # Follow a chain of symbolic links. Use readlink 29636 # where it exists, else fall back to horribly 29637 # complicated shell code. 29638 if test "x$READLINK_TESTED" != yes; then 29639 # On MacOSX there is a readlink tool with a different 29640 # purpose than the GNU readlink tool. Check the found readlink. 29641 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 29642 if test "x$ISGNU" = x; then 29643 # A readlink that we do not know how to use. 29644 # Are there other non-GNU readlinks out there? 29645 READLINK_TESTED=yes 29646 READLINK= 29647 fi 29648 fi 29649 29650 if test "x$READLINK" != x; then 29651 PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX` 29652 else 29653 # Save the current directory for restoring afterwards 29654 STARTDIR=$PWD 29655 COUNTER=0 29656 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX` 29657 sym_link_file=`$BASENAME $PROPER_COMPILER_CXX` 29658 cd $sym_link_dir 29659 # Use -P flag to resolve symlinks in directories. 29660 cd `$THEPWDCMD -P` 29661 sym_link_dir=`$THEPWDCMD -P` 29662 # Resolve file symlinks 29663 while test $COUNTER -lt 20; do 29664 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 29665 if test "x$ISLINK" == x; then 29666 # This is not a symbolic link! We are done! 29667 break 29668 fi 29669 # Again resolve directory symlinks since the target of the just found 29670 # link could be in a different directory 29671 cd `$DIRNAME $ISLINK` 29672 sym_link_dir=`$THEPWDCMD -P` 29673 sym_link_file=`$BASENAME $ISLINK` 29674 let COUNTER=COUNTER+1 29675 done 29676 cd $STARTDIR 29677 PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file 29678 fi 29679 fi 29680 29681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 29682 $as_echo "$PROPER_COMPILER_CXX" >&6; } 29683 CXX="$PROPER_COMPILER_CXX" 29684 else 29685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5 29686 $as_echo "no, keeping CXX" >&6; } 29687 fi 29688 fi 29689 29690 29691 COMPILER=$CXX 29692 COMPILER_NAME=$COMPILER_NAME 29693 29694 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 29695 # cc -V output typically looks like 29696 # cc: Sun C 5.12 Linux_i386 2011/11/16 29697 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 29698 # Check that this is likely to be the Solaris Studio cc. 29699 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 29700 if test $? -ne 0; then 29701 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29702 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 29703 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29704 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29705 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29706 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 29707 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 29708 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29709 fi 29710 # Remove usage instructions (if present), and 29711 # collapse compiler output into a single line 29712 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29713 $SED -e 's/ *[Uu]sage:.*//'` 29714 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29715 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 29716 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 29717 # xlc -qversion output typically looks like 29718 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 29719 # Version: 11.01.0000.0015 29720 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 29721 # Check that this is likely to be the IBM XL C compiler. 29722 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 29723 if test $? -ne 0; then 29724 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29725 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 29726 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29727 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29728 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29729 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 29730 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 29731 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29732 fi 29733 # Collapse compiler output into a single line 29734 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29735 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29736 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 29737 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 29738 # There is no specific version flag, but all output starts with a version string. 29739 # First line typically looks something like: 29740 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 29741 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 29742 # Check that this is likely to be Microsoft CL.EXE. 29743 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 29744 if test $? -ne 0; then 29745 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 29746 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29747 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29748 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29749 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29750 fi 29751 # Collapse compiler output into a single line 29752 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29753 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29754 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 29755 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 29756 # gcc --version output typically looks like 29757 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 29758 # Copyright (C) 2013 Free Software Foundation, Inc. 29759 # This is free software; see the source for copying conditions. There is NO 29760 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 29761 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29762 # Check that this is likely to be GCC. 29763 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 29764 if test $? -ne 0; then 29765 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 29766 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29767 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 29768 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 29769 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29770 fi 29771 # Remove Copyright and legalese from version string, and 29772 # collapse into a single line 29773 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29774 $SED -e 's/ *Copyright .*//'` 29775 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29776 $SED -e 's/^.* \([1-9][0-9]*\.[0-9.]*\) .*$/\1/'` 29777 elif test "x$TOOLCHAIN_TYPE" = xclang; then 29778 # clang --version output typically looks like 29779 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 29780 # clang version 3.3 (tags/RELEASE_33/final) 29781 # or 29782 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 29783 # Target: x86_64-pc-linux-gnu 29784 # Thread model: posix 29785 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29786 # Check that this is likely to be clang 29787 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 29788 if test $? -ne 0; then 29789 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 29790 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29791 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29792 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29793 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29794 fi 29795 # Collapse compiler output into a single line 29796 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29797 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29798 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 29799 29800 else 29801 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 29802 fi 29803 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 29804 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 29805 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 29806 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 29807 29808 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 29809 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 29810 29811 29812 # Now that we have resolved CXX ourself, let autoconf have its go at it 29813 ac_ext=cpp 29814 ac_cpp='$CXXCPP $CPPFLAGS' 29815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29818 if test -z "$CXX"; then 29819 if test -n "$CCC"; then 29820 CXX=$CCC 29821 else 29822 if test -n "$ac_tool_prefix"; then 29823 for ac_prog in $CXX 29824 do 29825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 29826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 29827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29828 $as_echo_n "checking for $ac_word... " >&6; } 29829 if ${ac_cv_prog_CXX+:} false; then : 29830 $as_echo_n "(cached) " >&6 29831 else 29832 if test -n "$CXX"; then 29833 ac_cv_prog_CXX="$CXX" # Let the user override the test. 29834 else 29835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29836 for as_dir in $PATH 29837 do 29838 IFS=$as_save_IFS 29839 test -z "$as_dir" && as_dir=. 29840 for ac_exec_ext in '' $ac_executable_extensions; do 29841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29842 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 29843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29844 break 2 29845 fi 29846 done 29847 done 29848 IFS=$as_save_IFS 29849 29850 fi 29851 fi 29852 CXX=$ac_cv_prog_CXX 29853 if test -n "$CXX"; then 29854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 29855 $as_echo "$CXX" >&6; } 29856 else 29857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29858 $as_echo "no" >&6; } 29859 fi 29860 29861 29862 test -n "$CXX" && break 29863 done 29864 fi 29865 if test -z "$CXX"; then 29866 ac_ct_CXX=$CXX 29867 for ac_prog in $CXX 29868 do 29869 # Extract the first word of "$ac_prog", so it can be a program name with args. 29870 set dummy $ac_prog; ac_word=$2 29871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29872 $as_echo_n "checking for $ac_word... " >&6; } 29873 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 29874 $as_echo_n "(cached) " >&6 29875 else 29876 if test -n "$ac_ct_CXX"; then 29877 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 29878 else 29879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29880 for as_dir in $PATH 29881 do 29882 IFS=$as_save_IFS 29883 test -z "$as_dir" && as_dir=. 29884 for ac_exec_ext in '' $ac_executable_extensions; do 29885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29886 ac_cv_prog_ac_ct_CXX="$ac_prog" 29887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29888 break 2 29889 fi 29890 done 29891 done 29892 IFS=$as_save_IFS 29893 29894 fi 29895 fi 29896 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 29897 if test -n "$ac_ct_CXX"; then 29898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 29899 $as_echo "$ac_ct_CXX" >&6; } 29900 else 29901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29902 $as_echo "no" >&6; } 29903 fi 29904 29905 29906 test -n "$ac_ct_CXX" && break 29907 done 29908 29909 if test "x$ac_ct_CXX" = x; then 29910 CXX="g++" 29911 else 29912 case $cross_compiling:$ac_tool_warned in 29913 yes:) 29914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29916 ac_tool_warned=yes ;; 29917 esac 29918 CXX=$ac_ct_CXX 29919 fi 29920 fi 29921 29922 fi 29923 fi 29924 # Provide some information about the compiler. 29925 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 29926 set X $ac_compile 29927 ac_compiler=$2 29928 for ac_option in --version -v -V -qversion; do 29929 { { ac_try="$ac_compiler $ac_option >&5" 29930 case "(($ac_try" in 29931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29932 *) ac_try_echo=$ac_try;; 29933 esac 29934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29935 $as_echo "$ac_try_echo"; } >&5 29936 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 29937 ac_status=$? 29938 if test -s conftest.err; then 29939 sed '10a\ 29940 ... rest of stderr output deleted ... 29941 10q' conftest.err >conftest.er1 29942 cat conftest.er1 >&5 29943 fi 29944 rm -f conftest.er1 conftest.err 29945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29946 test $ac_status = 0; } 29947 done 29948 29949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 29950 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 29951 if ${ac_cv_cxx_compiler_gnu+:} false; then : 29952 $as_echo_n "(cached) " >&6 29953 else 29954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29955 /* end confdefs.h. */ 29956 29957 int 29958 main () 29959 { 29960 #ifndef __GNUC__ 29961 choke me 29962 #endif 29963 29964 ; 29965 return 0; 29966 } 29967 _ACEOF 29968 if ac_fn_cxx_try_compile "$LINENO"; then : 29969 ac_compiler_gnu=yes 29970 else 29971 ac_compiler_gnu=no 29972 fi 29973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29974 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 29975 29976 fi 29977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 29978 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 29979 if test $ac_compiler_gnu = yes; then 29980 GXX=yes 29981 else 29982 GXX= 29983 fi 29984 ac_test_CXXFLAGS=${CXXFLAGS+set} 29985 ac_save_CXXFLAGS=$CXXFLAGS 29986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 29987 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 29988 if ${ac_cv_prog_cxx_g+:} false; then : 29989 $as_echo_n "(cached) " >&6 29990 else 29991 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 29992 ac_cxx_werror_flag=yes 29993 ac_cv_prog_cxx_g=no 29994 CXXFLAGS="-g" 29995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29996 /* end confdefs.h. */ 29997 29998 int 29999 main () 30000 { 30001 30002 ; 30003 return 0; 30004 } 30005 _ACEOF 30006 if ac_fn_cxx_try_compile "$LINENO"; then : 30007 ac_cv_prog_cxx_g=yes 30008 else 30009 CXXFLAGS="" 30010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30011 /* end confdefs.h. */ 30012 30013 int 30014 main () 30015 { 30016 30017 ; 30018 return 0; 30019 } 30020 _ACEOF 30021 if ac_fn_cxx_try_compile "$LINENO"; then : 30022 30023 else 30024 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 30025 CXXFLAGS="-g" 30026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30027 /* end confdefs.h. */ 30028 30029 int 30030 main () 30031 { 30032 30033 ; 30034 return 0; 30035 } 30036 _ACEOF 30037 if ac_fn_cxx_try_compile "$LINENO"; then : 30038 ac_cv_prog_cxx_g=yes 30039 fi 30040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30041 fi 30042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30043 fi 30044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30045 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 30046 fi 30047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 30048 $as_echo "$ac_cv_prog_cxx_g" >&6; } 30049 if test "$ac_test_CXXFLAGS" = set; then 30050 CXXFLAGS=$ac_save_CXXFLAGS 30051 elif test $ac_cv_prog_cxx_g = yes; then 30052 if test "$GXX" = yes; then 30053 CXXFLAGS="-g -O2" 30054 else 30055 CXXFLAGS="-g" 30056 fi 30057 else 30058 if test "$GXX" = yes; then 30059 CXXFLAGS="-O2" 30060 else 30061 CXXFLAGS= 30062 fi 30063 fi 30064 ac_ext=cpp 30065 ac_cpp='$CXXCPP $CPPFLAGS' 30066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30069 30070 30071 # This is the compiler version number on the form X.Y[.Z] 30072 30073 30074 30075 30076 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 30077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler has different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 30078 $as_echo "$as_me: WARNING: C and C++ compiler has different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 30079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 30080 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 30081 fi 30082 30083 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 30084 if [[ "$CC_VERSION_NUMBER" =~ (.*\.){3} ]] ; then 30085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION. Comparisons might be wrong." >&5 30086 $as_echo "$as_me: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION. Comparisons might be wrong." >&2;} 30087 fi 30088 30089 if [[ "$CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 30090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION. Comparisons might be wrong." >&5 30091 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION. Comparisons might be wrong." >&2;} 30092 fi 30093 30094 COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$CC_VERSION_NUMBER"` 30095 30096 30097 # 30098 # Setup the preprocessor (CPP and CXXCPP) 30099 # 30100 ac_ext=c 30101 ac_cpp='$CPP $CPPFLAGS' 30102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30104 ac_compiler_gnu=$ac_cv_c_compiler_gnu 30105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 30106 $as_echo_n "checking how to run the C preprocessor... " >&6; } 30107 # On Suns, sometimes $CPP names a directory. 30108 if test -n "$CPP" && test -d "$CPP"; then 30109 CPP= 30110 fi 30111 if test -z "$CPP"; then 30112 if ${ac_cv_prog_CPP+:} false; then : 30113 $as_echo_n "(cached) " >&6 30114 else 30115 # Double quotes because CPP needs to be expanded 30116 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 30117 do 30118 ac_preproc_ok=false 30119 for ac_c_preproc_warn_flag in '' yes 30120 do 30121 # Use a header file that comes with gcc, so configuring glibc 30122 # with a fresh cross-compiler works. 30123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30124 # <limits.h> exists even on freestanding compilers. 30125 # On the NeXT, cc -E runs the code through the compiler's parser, 30126 # not just through cpp. "Syntax error" is here to catch this case. 30127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30128 /* end confdefs.h. */ 30129 #ifdef __STDC__ 30130 # include <limits.h> 30131 #else 30132 # include <assert.h> 30133 #endif 30134 Syntax error 30135 _ACEOF 30136 if ac_fn_c_try_cpp "$LINENO"; then : 30137 30138 else 30139 # Broken: fails on valid input. 30140 continue 30141 fi 30142 rm -f conftest.err conftest.i conftest.$ac_ext 30143 30144 # OK, works on sane cases. Now check whether nonexistent headers 30145 # can be detected and how. 30146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30147 /* end confdefs.h. */ 30148 #include <ac_nonexistent.h> 30149 _ACEOF 30150 if ac_fn_c_try_cpp "$LINENO"; then : 30151 # Broken: success on invalid input. 30152 continue 30153 else 30154 # Passes both tests. 30155 ac_preproc_ok=: 30156 break 30157 fi 30158 rm -f conftest.err conftest.i conftest.$ac_ext 30159 30160 done 30161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30162 rm -f conftest.i conftest.err conftest.$ac_ext 30163 if $ac_preproc_ok; then : 30164 break 30165 fi 30166 30167 done 30168 ac_cv_prog_CPP=$CPP 30169 30170 fi 30171 CPP=$ac_cv_prog_CPP 30172 else 30173 ac_cv_prog_CPP=$CPP 30174 fi 30175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 30176 $as_echo "$CPP" >&6; } 30177 ac_preproc_ok=false 30178 for ac_c_preproc_warn_flag in '' yes 30179 do 30180 # Use a header file that comes with gcc, so configuring glibc 30181 # with a fresh cross-compiler works. 30182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30183 # <limits.h> exists even on freestanding compilers. 30184 # On the NeXT, cc -E runs the code through the compiler's parser, 30185 # not just through cpp. "Syntax error" is here to catch this case. 30186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30187 /* end confdefs.h. */ 30188 #ifdef __STDC__ 30189 # include <limits.h> 30190 #else 30191 # include <assert.h> 30192 #endif 30193 Syntax error 30194 _ACEOF 30195 if ac_fn_c_try_cpp "$LINENO"; then : 30196 30197 else 30198 # Broken: fails on valid input. 30199 continue 30200 fi 30201 rm -f conftest.err conftest.i conftest.$ac_ext 30202 30203 # OK, works on sane cases. Now check whether nonexistent headers 30204 # can be detected and how. 30205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30206 /* end confdefs.h. */ 30207 #include <ac_nonexistent.h> 30208 _ACEOF 30209 if ac_fn_c_try_cpp "$LINENO"; then : 30210 # Broken: success on invalid input. 30211 continue 30212 else 30213 # Passes both tests. 30214 ac_preproc_ok=: 30215 break 30216 fi 30217 rm -f conftest.err conftest.i conftest.$ac_ext 30218 30219 done 30220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30221 rm -f conftest.i conftest.err conftest.$ac_ext 30222 if $ac_preproc_ok; then : 30223 30224 else 30225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30227 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 30228 See \`config.log' for more details" "$LINENO" 5; } 30229 fi 30230 30231 ac_ext=cpp 30232 ac_cpp='$CXXCPP $CPPFLAGS' 30233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30236 30237 30238 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30239 30240 # First separate the path from the arguments. This will split at the first 30241 # space. 30242 complete="$CPP" 30243 path="${complete%% *}" 30244 tmp="$complete EOL" 30245 arguments="${tmp#* }" 30246 30247 # Input might be given as Windows format, start by converting to 30248 # unix format. 30249 new_path=`$CYGPATH -u "$path"` 30250 30251 # Now try to locate executable using which 30252 new_path=`$WHICH "$new_path" 2> /dev/null` 30253 # bat and cmd files are not always considered executable in cygwin causing which 30254 # to not find them 30255 if test "x$new_path" = x \ 30256 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30257 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30258 new_path=`$CYGPATH -u "$path"` 30259 fi 30260 if test "x$new_path" = x; then 30261 # Oops. Which didn't find the executable. 30262 # The splitting of arguments from the executable at a space might have been incorrect, 30263 # since paths with space are more likely in Windows. Give it another try with the whole 30264 # argument. 30265 path="$complete" 30266 arguments="EOL" 30267 new_path=`$CYGPATH -u "$path"` 30268 new_path=`$WHICH "$new_path" 2> /dev/null` 30269 # bat and cmd files are not always considered executable in cygwin causing which 30270 # to not find them 30271 if test "x$new_path" = x \ 30272 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30273 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30274 new_path=`$CYGPATH -u "$path"` 30275 fi 30276 if test "x$new_path" = x; then 30277 # It's still not found. Now this is an unrecoverable error. 30278 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 30279 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 30280 has_space=`$ECHO "$complete" | $GREP " "` 30281 if test "x$has_space" != x; then 30282 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30283 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30284 fi 30285 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30286 fi 30287 fi 30288 30289 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30290 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30291 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30292 # "foo.exe" is OK but "foo" is an error. 30293 # 30294 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30295 # It is also a way to make sure we got the proper file name for the real test later on. 30296 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30297 if test "x$test_shortpath" = x; then 30298 # Short path failed, file does not exist as specified. 30299 # Try adding .exe or .cmd 30300 if test -f "${new_path}.exe"; then 30301 input_to_shortpath="${new_path}.exe" 30302 elif test -f "${new_path}.cmd"; then 30303 input_to_shortpath="${new_path}.cmd" 30304 else 30305 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 30306 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 30307 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30308 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30309 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30310 fi 30311 else 30312 input_to_shortpath="$new_path" 30313 fi 30314 30315 # Call helper function which possibly converts this using DOS-style short mode. 30316 # If so, the updated path is stored in $new_path. 30317 new_path="$input_to_shortpath" 30318 30319 input_path="$input_to_shortpath" 30320 # Check if we need to convert this using DOS-style short mode. If the path 30321 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30322 # take no chances and rewrite it. 30323 # Note: m4 eats our [], so we need to use [ and ] instead. 30324 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30325 if test "x$has_forbidden_chars" != x; then 30326 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30327 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30328 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30329 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30330 # Going to short mode and back again did indeed matter. Since short mode is 30331 # case insensitive, let's make it lowercase to improve readability. 30332 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30333 # Now convert it back to Unix-style (cygpath) 30334 input_path=`$CYGPATH -u "$shortmode_path"` 30335 new_path="$input_path" 30336 fi 30337 fi 30338 30339 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30340 if test "x$test_cygdrive_prefix" = x; then 30341 # As a simple fix, exclude /usr/bin since it's not a real path. 30342 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30343 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30344 # a path prefixed by /cygdrive for fixpath to work. 30345 new_path="$CYGWIN_ROOT_PATH$input_path" 30346 fi 30347 fi 30348 30349 # remove trailing .exe if any 30350 new_path="${new_path/%.exe/}" 30351 30352 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30353 30354 # First separate the path from the arguments. This will split at the first 30355 # space. 30356 complete="$CPP" 30357 path="${complete%% *}" 30358 tmp="$complete EOL" 30359 arguments="${tmp#* }" 30360 30361 # Input might be given as Windows format, start by converting to 30362 # unix format. 30363 new_path="$path" 30364 30365 windows_path="$new_path" 30366 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30367 unix_path=`$CYGPATH -u "$windows_path"` 30368 new_path="$unix_path" 30369 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30370 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30371 new_path="$unix_path" 30372 fi 30373 30374 30375 # Now try to locate executable using which 30376 new_path=`$WHICH "$new_path" 2> /dev/null` 30377 30378 if test "x$new_path" = x; then 30379 # Oops. Which didn't find the executable. 30380 # The splitting of arguments from the executable at a space might have been incorrect, 30381 # since paths with space are more likely in Windows. Give it another try with the whole 30382 # argument. 30383 path="$complete" 30384 arguments="EOL" 30385 new_path="$path" 30386 30387 windows_path="$new_path" 30388 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30389 unix_path=`$CYGPATH -u "$windows_path"` 30390 new_path="$unix_path" 30391 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30392 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30393 new_path="$unix_path" 30394 fi 30395 30396 30397 new_path=`$WHICH "$new_path" 2> /dev/null` 30398 # bat and cmd files are not always considered executable in MSYS causing which 30399 # to not find them 30400 if test "x$new_path" = x \ 30401 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30402 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30403 new_path="$path" 30404 30405 windows_path="$new_path" 30406 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30407 unix_path=`$CYGPATH -u "$windows_path"` 30408 new_path="$unix_path" 30409 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30410 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30411 new_path="$unix_path" 30412 fi 30413 30414 fi 30415 30416 if test "x$new_path" = x; then 30417 # It's still not found. Now this is an unrecoverable error. 30418 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 30419 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 30420 has_space=`$ECHO "$complete" | $GREP " "` 30421 if test "x$has_space" != x; then 30422 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30423 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30424 fi 30425 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30426 fi 30427 fi 30428 30429 # Now new_path has a complete unix path to the binary 30430 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30431 # Keep paths in /bin as-is, but remove trailing .exe if any 30432 new_path="${new_path/%.exe/}" 30433 # Do not save /bin paths to all_fixpath_prefixes! 30434 else 30435 # Not in mixed or Windows style, start by that. 30436 new_path=`cmd //c echo $new_path` 30437 30438 input_path="$new_path" 30439 # Check if we need to convert this using DOS-style short mode. If the path 30440 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30441 # take no chances and rewrite it. 30442 # Note: m4 eats our [], so we need to use [ and ] instead. 30443 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30444 if test "x$has_forbidden_chars" != x; then 30445 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30446 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30447 fi 30448 30449 # Output is in $new_path 30450 30451 windows_path="$new_path" 30452 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30453 unix_path=`$CYGPATH -u "$windows_path"` 30454 new_path="$unix_path" 30455 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30456 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30457 new_path="$unix_path" 30458 fi 30459 30460 # remove trailing .exe if any 30461 new_path="${new_path/%.exe/}" 30462 30463 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30464 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30465 fi 30466 30467 else 30468 # We're on a posix platform. Hooray! :) 30469 # First separate the path from the arguments. This will split at the first 30470 # space. 30471 complete="$CPP" 30472 path="${complete%% *}" 30473 tmp="$complete EOL" 30474 arguments="${tmp#* }" 30475 30476 # Cannot rely on the command "which" here since it doesn't always work. 30477 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30478 if test -z "$is_absolute_path"; then 30479 # Path to executable is not absolute. Find it. 30480 IFS_save="$IFS" 30481 IFS=: 30482 for p in $PATH; do 30483 if test -f "$p/$path" && test -x "$p/$path"; then 30484 new_path="$p/$path" 30485 break 30486 fi 30487 done 30488 IFS="$IFS_save" 30489 else 30490 # This is an absolute path, we can use it without further modifications. 30491 new_path="$path" 30492 fi 30493 30494 if test "x$new_path" = x; then 30495 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 30496 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 30497 has_space=`$ECHO "$complete" | $GREP " "` 30498 if test "x$has_space" != x; then 30499 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30500 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30501 fi 30502 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30503 fi 30504 fi 30505 30506 # Now join together the path and the arguments once again 30507 if test "x$arguments" != xEOL; then 30508 new_complete="$new_path ${arguments% *}" 30509 else 30510 new_complete="$new_path" 30511 fi 30512 30513 if test "x$complete" != "x$new_complete"; then 30514 CPP="$new_complete" 30515 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 30516 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 30517 fi 30518 30519 ac_ext=cpp 30520 ac_cpp='$CXXCPP $CPPFLAGS' 30521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 30525 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 30526 if test -z "$CXXCPP"; then 30527 if ${ac_cv_prog_CXXCPP+:} false; then : 30528 $as_echo_n "(cached) " >&6 30529 else 30530 # Double quotes because CXXCPP needs to be expanded 30531 for CXXCPP in "$CXX -E" "/lib/cpp" 30532 do 30533 ac_preproc_ok=false 30534 for ac_cxx_preproc_warn_flag in '' yes 30535 do 30536 # Use a header file that comes with gcc, so configuring glibc 30537 # with a fresh cross-compiler works. 30538 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30539 # <limits.h> exists even on freestanding compilers. 30540 # On the NeXT, cc -E runs the code through the compiler's parser, 30541 # not just through cpp. "Syntax error" is here to catch this case. 30542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30543 /* end confdefs.h. */ 30544 #ifdef __STDC__ 30545 # include <limits.h> 30546 #else 30547 # include <assert.h> 30548 #endif 30549 Syntax error 30550 _ACEOF 30551 if ac_fn_cxx_try_cpp "$LINENO"; then : 30552 30553 else 30554 # Broken: fails on valid input. 30555 continue 30556 fi 30557 rm -f conftest.err conftest.i conftest.$ac_ext 30558 30559 # OK, works on sane cases. Now check whether nonexistent headers 30560 # can be detected and how. 30561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30562 /* end confdefs.h. */ 30563 #include <ac_nonexistent.h> 30564 _ACEOF 30565 if ac_fn_cxx_try_cpp "$LINENO"; then : 30566 # Broken: success on invalid input. 30567 continue 30568 else 30569 # Passes both tests. 30570 ac_preproc_ok=: 30571 break 30572 fi 30573 rm -f conftest.err conftest.i conftest.$ac_ext 30574 30575 done 30576 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30577 rm -f conftest.i conftest.err conftest.$ac_ext 30578 if $ac_preproc_ok; then : 30579 break 30580 fi 30581 30582 done 30583 ac_cv_prog_CXXCPP=$CXXCPP 30584 30585 fi 30586 CXXCPP=$ac_cv_prog_CXXCPP 30587 else 30588 ac_cv_prog_CXXCPP=$CXXCPP 30589 fi 30590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 30591 $as_echo "$CXXCPP" >&6; } 30592 ac_preproc_ok=false 30593 for ac_cxx_preproc_warn_flag in '' yes 30594 do 30595 # Use a header file that comes with gcc, so configuring glibc 30596 # with a fresh cross-compiler works. 30597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30598 # <limits.h> exists even on freestanding compilers. 30599 # On the NeXT, cc -E runs the code through the compiler's parser, 30600 # not just through cpp. "Syntax error" is here to catch this case. 30601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30602 /* end confdefs.h. */ 30603 #ifdef __STDC__ 30604 # include <limits.h> 30605 #else 30606 # include <assert.h> 30607 #endif 30608 Syntax error 30609 _ACEOF 30610 if ac_fn_cxx_try_cpp "$LINENO"; then : 30611 30612 else 30613 # Broken: fails on valid input. 30614 continue 30615 fi 30616 rm -f conftest.err conftest.i conftest.$ac_ext 30617 30618 # OK, works on sane cases. Now check whether nonexistent headers 30619 # can be detected and how. 30620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30621 /* end confdefs.h. */ 30622 #include <ac_nonexistent.h> 30623 _ACEOF 30624 if ac_fn_cxx_try_cpp "$LINENO"; then : 30625 # Broken: success on invalid input. 30626 continue 30627 else 30628 # Passes both tests. 30629 ac_preproc_ok=: 30630 break 30631 fi 30632 rm -f conftest.err conftest.i conftest.$ac_ext 30633 30634 done 30635 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30636 rm -f conftest.i conftest.err conftest.$ac_ext 30637 if $ac_preproc_ok; then : 30638 30639 else 30640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30642 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 30643 See \`config.log' for more details" "$LINENO" 5; } 30644 fi 30645 30646 ac_ext=cpp 30647 ac_cpp='$CXXCPP $CPPFLAGS' 30648 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30649 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30650 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30651 30652 30653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30654 30655 # First separate the path from the arguments. This will split at the first 30656 # space. 30657 complete="$CXXCPP" 30658 path="${complete%% *}" 30659 tmp="$complete EOL" 30660 arguments="${tmp#* }" 30661 30662 # Input might be given as Windows format, start by converting to 30663 # unix format. 30664 new_path=`$CYGPATH -u "$path"` 30665 30666 # Now try to locate executable using which 30667 new_path=`$WHICH "$new_path" 2> /dev/null` 30668 # bat and cmd files are not always considered executable in cygwin causing which 30669 # to not find them 30670 if test "x$new_path" = x \ 30671 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30672 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30673 new_path=`$CYGPATH -u "$path"` 30674 fi 30675 if test "x$new_path" = x; then 30676 # Oops. Which didn't find the executable. 30677 # The splitting of arguments from the executable at a space might have been incorrect, 30678 # since paths with space are more likely in Windows. Give it another try with the whole 30679 # argument. 30680 path="$complete" 30681 arguments="EOL" 30682 new_path=`$CYGPATH -u "$path"` 30683 new_path=`$WHICH "$new_path" 2> /dev/null` 30684 # bat and cmd files are not always considered executable in cygwin causing which 30685 # to not find them 30686 if test "x$new_path" = x \ 30687 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30688 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30689 new_path=`$CYGPATH -u "$path"` 30690 fi 30691 if test "x$new_path" = x; then 30692 # It's still not found. Now this is an unrecoverable error. 30693 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 30694 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 30695 has_space=`$ECHO "$complete" | $GREP " "` 30696 if test "x$has_space" != x; then 30697 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30698 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30699 fi 30700 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 30701 fi 30702 fi 30703 30704 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30705 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30706 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30707 # "foo.exe" is OK but "foo" is an error. 30708 # 30709 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30710 # It is also a way to make sure we got the proper file name for the real test later on. 30711 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30712 if test "x$test_shortpath" = x; then 30713 # Short path failed, file does not exist as specified. 30714 # Try adding .exe or .cmd 30715 if test -f "${new_path}.exe"; then 30716 input_to_shortpath="${new_path}.exe" 30717 elif test -f "${new_path}.cmd"; then 30718 input_to_shortpath="${new_path}.cmd" 30719 else 30720 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 30721 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 30722 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30723 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30724 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 30725 fi 30726 else 30727 input_to_shortpath="$new_path" 30728 fi 30729 30730 # Call helper function which possibly converts this using DOS-style short mode. 30731 # If so, the updated path is stored in $new_path. 30732 new_path="$input_to_shortpath" 30733 30734 input_path="$input_to_shortpath" 30735 # Check if we need to convert this using DOS-style short mode. If the path 30736 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30737 # take no chances and rewrite it. 30738 # Note: m4 eats our [], so we need to use [ and ] instead. 30739 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30740 if test "x$has_forbidden_chars" != x; then 30741 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30742 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30743 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30744 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30745 # Going to short mode and back again did indeed matter. Since short mode is 30746 # case insensitive, let's make it lowercase to improve readability. 30747 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30748 # Now convert it back to Unix-style (cygpath) 30749 input_path=`$CYGPATH -u "$shortmode_path"` 30750 new_path="$input_path" 30751 fi 30752 fi 30753 30754 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30755 if test "x$test_cygdrive_prefix" = x; then 30756 # As a simple fix, exclude /usr/bin since it's not a real path. 30757 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30758 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30759 # a path prefixed by /cygdrive for fixpath to work. 30760 new_path="$CYGWIN_ROOT_PATH$input_path" 30761 fi 30762 fi 30763 30764 # remove trailing .exe if any 30765 new_path="${new_path/%.exe/}" 30766 30767 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30768 30769 # First separate the path from the arguments. This will split at the first 30770 # space. 30771 complete="$CXXCPP" 30772 path="${complete%% *}" 30773 tmp="$complete EOL" 30774 arguments="${tmp#* }" 30775 30776 # Input might be given as Windows format, start by converting to 30777 # unix format. 30778 new_path="$path" 30779 30780 windows_path="$new_path" 30781 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30782 unix_path=`$CYGPATH -u "$windows_path"` 30783 new_path="$unix_path" 30784 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30785 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30786 new_path="$unix_path" 30787 fi 30788 30789 30790 # Now try to locate executable using which 30791 new_path=`$WHICH "$new_path" 2> /dev/null` 30792 30793 if test "x$new_path" = x; then 30794 # Oops. Which didn't find the executable. 30795 # The splitting of arguments from the executable at a space might have been incorrect, 30796 # since paths with space are more likely in Windows. Give it another try with the whole 30797 # argument. 30798 path="$complete" 30799 arguments="EOL" 30800 new_path="$path" 30801 30802 windows_path="$new_path" 30803 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30804 unix_path=`$CYGPATH -u "$windows_path"` 30805 new_path="$unix_path" 30806 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30807 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30808 new_path="$unix_path" 30809 fi 30810 30811 30812 new_path=`$WHICH "$new_path" 2> /dev/null` 30813 # bat and cmd files are not always considered executable in MSYS causing which 30814 # to not find them 30815 if test "x$new_path" = x \ 30816 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30817 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30818 new_path="$path" 30819 30820 windows_path="$new_path" 30821 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30822 unix_path=`$CYGPATH -u "$windows_path"` 30823 new_path="$unix_path" 30824 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30825 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30826 new_path="$unix_path" 30827 fi 30828 30829 fi 30830 30831 if test "x$new_path" = x; then 30832 # It's still not found. Now this is an unrecoverable error. 30833 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 30834 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 30835 has_space=`$ECHO "$complete" | $GREP " "` 30836 if test "x$has_space" != x; then 30837 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30838 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30839 fi 30840 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 30841 fi 30842 fi 30843 30844 # Now new_path has a complete unix path to the binary 30845 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30846 # Keep paths in /bin as-is, but remove trailing .exe if any 30847 new_path="${new_path/%.exe/}" 30848 # Do not save /bin paths to all_fixpath_prefixes! 30849 else 30850 # Not in mixed or Windows style, start by that. 30851 new_path=`cmd //c echo $new_path` 30852 30853 input_path="$new_path" 30854 # Check if we need to convert this using DOS-style short mode. If the path 30855 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30856 # take no chances and rewrite it. 30857 # Note: m4 eats our [], so we need to use [ and ] instead. 30858 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30859 if test "x$has_forbidden_chars" != x; then 30860 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30861 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30862 fi 30863 30864 # Output is in $new_path 30865 30866 windows_path="$new_path" 30867 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30868 unix_path=`$CYGPATH -u "$windows_path"` 30869 new_path="$unix_path" 30870 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30871 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30872 new_path="$unix_path" 30873 fi 30874 30875 # remove trailing .exe if any 30876 new_path="${new_path/%.exe/}" 30877 30878 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30879 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30880 fi 30881 30882 else 30883 # We're on a posix platform. Hooray! :) 30884 # First separate the path from the arguments. This will split at the first 30885 # space. 30886 complete="$CXXCPP" 30887 path="${complete%% *}" 30888 tmp="$complete EOL" 30889 arguments="${tmp#* }" 30890 30891 # Cannot rely on the command "which" here since it doesn't always work. 30892 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30893 if test -z "$is_absolute_path"; then 30894 # Path to executable is not absolute. Find it. 30895 IFS_save="$IFS" 30896 IFS=: 30897 for p in $PATH; do 30898 if test -f "$p/$path" && test -x "$p/$path"; then 30899 new_path="$p/$path" 30900 break 30901 fi 30902 done 30903 IFS="$IFS_save" 30904 else 30905 # This is an absolute path, we can use it without further modifications. 30906 new_path="$path" 30907 fi 30908 30909 if test "x$new_path" = x; then 30910 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 30911 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 30912 has_space=`$ECHO "$complete" | $GREP " "` 30913 if test "x$has_space" != x; then 30914 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30915 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30916 fi 30917 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 30918 fi 30919 fi 30920 30921 # Now join together the path and the arguments once again 30922 if test "x$arguments" != xEOL; then 30923 new_complete="$new_path ${arguments% *}" 30924 else 30925 new_complete="$new_path" 30926 fi 30927 30928 if test "x$complete" != "x$new_complete"; then 30929 CXXCPP="$new_complete" 30930 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 30931 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 30932 fi 30933 30934 30935 # 30936 # Setup the linker (LD) 30937 # 30938 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 30939 # In the Microsoft toolchain we have a separate LD command "link". 30940 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 30941 # a cygwin program for something completely different. 30942 # Extract the first word of "link", so it can be a program name with args. 30943 set dummy link; ac_word=$2 30944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30945 $as_echo_n "checking for $ac_word... " >&6; } 30946 if ${ac_cv_prog_LD+:} false; then : 30947 $as_echo_n "(cached) " >&6 30948 else 30949 if test -n "$LD"; then 30950 ac_cv_prog_LD="$LD" # Let the user override the test. 30951 else 30952 ac_prog_rejected=no 30953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30954 for as_dir in $PATH 30955 do 30956 IFS=$as_save_IFS 30957 test -z "$as_dir" && as_dir=. 30958 for ac_exec_ext in '' $ac_executable_extensions; do 30959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30960 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 30961 ac_prog_rejected=yes 30962 continue 30963 fi 30964 ac_cv_prog_LD="link" 30965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30966 break 2 30967 fi 30968 done 30969 done 30970 IFS=$as_save_IFS 30971 30972 if test $ac_prog_rejected = yes; then 30973 # We found a bogon in the path, so make sure we never use it. 30974 set dummy $ac_cv_prog_LD 30975 shift 30976 if test $# != 0; then 30977 # We chose a different compiler from the bogus one. 30978 # However, it has the same basename, so the bogon will be chosen 30979 # first if we set LD to just the basename; use the full file name. 30980 shift 30981 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 30982 fi 30983 fi 30984 fi 30985 fi 30986 LD=$ac_cv_prog_LD 30987 if test -n "$LD"; then 30988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 30989 $as_echo "$LD" >&6; } 30990 else 30991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30992 $as_echo "no" >&6; } 30993 fi 30994 30995 30996 30997 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30998 30999 # First separate the path from the arguments. This will split at the first 31000 # space. 31001 complete="$LD" 31002 path="${complete%% *}" 31003 tmp="$complete EOL" 31004 arguments="${tmp#* }" 31005 31006 # Input might be given as Windows format, start by converting to 31007 # unix format. 31008 new_path=`$CYGPATH -u "$path"` 31009 31010 # Now try to locate executable using which 31011 new_path=`$WHICH "$new_path" 2> /dev/null` 31012 # bat and cmd files are not always considered executable in cygwin causing which 31013 # to not find them 31014 if test "x$new_path" = x \ 31015 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31016 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31017 new_path=`$CYGPATH -u "$path"` 31018 fi 31019 if test "x$new_path" = x; then 31020 # Oops. Which didn't find the executable. 31021 # The splitting of arguments from the executable at a space might have been incorrect, 31022 # since paths with space are more likely in Windows. Give it another try with the whole 31023 # argument. 31024 path="$complete" 31025 arguments="EOL" 31026 new_path=`$CYGPATH -u "$path"` 31027 new_path=`$WHICH "$new_path" 2> /dev/null` 31028 # bat and cmd files are not always considered executable in cygwin causing which 31029 # to not find them 31030 if test "x$new_path" = x \ 31031 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31032 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31033 new_path=`$CYGPATH -u "$path"` 31034 fi 31035 if test "x$new_path" = x; then 31036 # It's still not found. Now this is an unrecoverable error. 31037 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31038 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31039 has_space=`$ECHO "$complete" | $GREP " "` 31040 if test "x$has_space" != x; then 31041 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31042 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31043 fi 31044 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31045 fi 31046 fi 31047 31048 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31049 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31050 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31051 # "foo.exe" is OK but "foo" is an error. 31052 # 31053 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31054 # It is also a way to make sure we got the proper file name for the real test later on. 31055 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31056 if test "x$test_shortpath" = x; then 31057 # Short path failed, file does not exist as specified. 31058 # Try adding .exe or .cmd 31059 if test -f "${new_path}.exe"; then 31060 input_to_shortpath="${new_path}.exe" 31061 elif test -f "${new_path}.cmd"; then 31062 input_to_shortpath="${new_path}.cmd" 31063 else 31064 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 31065 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 31066 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31067 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31068 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31069 fi 31070 else 31071 input_to_shortpath="$new_path" 31072 fi 31073 31074 # Call helper function which possibly converts this using DOS-style short mode. 31075 # If so, the updated path is stored in $new_path. 31076 new_path="$input_to_shortpath" 31077 31078 input_path="$input_to_shortpath" 31079 # Check if we need to convert this using DOS-style short mode. If the path 31080 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31081 # take no chances and rewrite it. 31082 # Note: m4 eats our [], so we need to use [ and ] instead. 31083 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31084 if test "x$has_forbidden_chars" != x; then 31085 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31086 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31087 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31088 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31089 # Going to short mode and back again did indeed matter. Since short mode is 31090 # case insensitive, let's make it lowercase to improve readability. 31091 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31092 # Now convert it back to Unix-style (cygpath) 31093 input_path=`$CYGPATH -u "$shortmode_path"` 31094 new_path="$input_path" 31095 fi 31096 fi 31097 31098 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31099 if test "x$test_cygdrive_prefix" = x; then 31100 # As a simple fix, exclude /usr/bin since it's not a real path. 31101 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31102 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31103 # a path prefixed by /cygdrive for fixpath to work. 31104 new_path="$CYGWIN_ROOT_PATH$input_path" 31105 fi 31106 fi 31107 31108 # remove trailing .exe if any 31109 new_path="${new_path/%.exe/}" 31110 31111 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31112 31113 # First separate the path from the arguments. This will split at the first 31114 # space. 31115 complete="$LD" 31116 path="${complete%% *}" 31117 tmp="$complete EOL" 31118 arguments="${tmp#* }" 31119 31120 # Input might be given as Windows format, start by converting to 31121 # unix format. 31122 new_path="$path" 31123 31124 windows_path="$new_path" 31125 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31126 unix_path=`$CYGPATH -u "$windows_path"` 31127 new_path="$unix_path" 31128 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31129 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31130 new_path="$unix_path" 31131 fi 31132 31133 31134 # Now try to locate executable using which 31135 new_path=`$WHICH "$new_path" 2> /dev/null` 31136 31137 if test "x$new_path" = x; then 31138 # Oops. Which didn't find the executable. 31139 # The splitting of arguments from the executable at a space might have been incorrect, 31140 # since paths with space are more likely in Windows. Give it another try with the whole 31141 # argument. 31142 path="$complete" 31143 arguments="EOL" 31144 new_path="$path" 31145 31146 windows_path="$new_path" 31147 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31148 unix_path=`$CYGPATH -u "$windows_path"` 31149 new_path="$unix_path" 31150 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31151 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31152 new_path="$unix_path" 31153 fi 31154 31155 31156 new_path=`$WHICH "$new_path" 2> /dev/null` 31157 # bat and cmd files are not always considered executable in MSYS causing which 31158 # to not find them 31159 if test "x$new_path" = x \ 31160 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31161 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31162 new_path="$path" 31163 31164 windows_path="$new_path" 31165 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31166 unix_path=`$CYGPATH -u "$windows_path"` 31167 new_path="$unix_path" 31168 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31169 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31170 new_path="$unix_path" 31171 fi 31172 31173 fi 31174 31175 if test "x$new_path" = x; then 31176 # It's still not found. Now this is an unrecoverable error. 31177 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31178 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31179 has_space=`$ECHO "$complete" | $GREP " "` 31180 if test "x$has_space" != x; then 31181 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31182 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31183 fi 31184 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31185 fi 31186 fi 31187 31188 # Now new_path has a complete unix path to the binary 31189 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31190 # Keep paths in /bin as-is, but remove trailing .exe if any 31191 new_path="${new_path/%.exe/}" 31192 # Do not save /bin paths to all_fixpath_prefixes! 31193 else 31194 # Not in mixed or Windows style, start by that. 31195 new_path=`cmd //c echo $new_path` 31196 31197 input_path="$new_path" 31198 # Check if we need to convert this using DOS-style short mode. If the path 31199 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31200 # take no chances and rewrite it. 31201 # Note: m4 eats our [], so we need to use [ and ] instead. 31202 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31203 if test "x$has_forbidden_chars" != x; then 31204 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31205 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31206 fi 31207 31208 # Output is in $new_path 31209 31210 windows_path="$new_path" 31211 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31212 unix_path=`$CYGPATH -u "$windows_path"` 31213 new_path="$unix_path" 31214 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31215 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31216 new_path="$unix_path" 31217 fi 31218 31219 # remove trailing .exe if any 31220 new_path="${new_path/%.exe/}" 31221 31222 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31223 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31224 fi 31225 31226 else 31227 # We're on a posix platform. Hooray! :) 31228 # First separate the path from the arguments. This will split at the first 31229 # space. 31230 complete="$LD" 31231 path="${complete%% *}" 31232 tmp="$complete EOL" 31233 arguments="${tmp#* }" 31234 31235 # Cannot rely on the command "which" here since it doesn't always work. 31236 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31237 if test -z "$is_absolute_path"; then 31238 # Path to executable is not absolute. Find it. 31239 IFS_save="$IFS" 31240 IFS=: 31241 for p in $PATH; do 31242 if test -f "$p/$path" && test -x "$p/$path"; then 31243 new_path="$p/$path" 31244 break 31245 fi 31246 done 31247 IFS="$IFS_save" 31248 else 31249 # This is an absolute path, we can use it without further modifications. 31250 new_path="$path" 31251 fi 31252 31253 if test "x$new_path" = x; then 31254 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31255 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31256 has_space=`$ECHO "$complete" | $GREP " "` 31257 if test "x$has_space" != x; then 31258 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31259 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31260 fi 31261 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31262 fi 31263 fi 31264 31265 # Now join together the path and the arguments once again 31266 if test "x$arguments" != xEOL; then 31267 new_complete="$new_path ${arguments% *}" 31268 else 31269 new_complete="$new_path" 31270 fi 31271 31272 if test "x$complete" != "x$new_complete"; then 31273 LD="$new_complete" 31274 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 31275 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 31276 fi 31277 31278 # Verify that we indeed succeeded with this trick. 31279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 31280 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 31281 "$LD" --version > /dev/null 31282 if test $? -eq 0 ; then 31283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31284 $as_echo "no" >&6; } 31285 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 31286 else 31287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31288 $as_echo "yes" >&6; } 31289 fi 31290 LDCXX="$LD" 31291 else 31292 # All other toolchains use the compiler to link. 31293 LD="$CC" 31294 LDCXX="$CXX" 31295 fi 31296 31297 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 31298 31299 31300 # 31301 # Setup the assembler (AS) 31302 # 31303 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 31304 # FIXME: should this really be solaris, or solstudio? 31305 31306 31307 # Publish this variable in the help. 31308 31309 31310 if test "x$AS" = x; then 31311 # The variable is not set by user, try to locate tool using the code snippet 31312 for ac_prog in as 31313 do 31314 # Extract the first word of "$ac_prog", so it can be a program name with args. 31315 set dummy $ac_prog; ac_word=$2 31316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31317 $as_echo_n "checking for $ac_word... " >&6; } 31318 if ${ac_cv_path_AS+:} false; then : 31319 $as_echo_n "(cached) " >&6 31320 else 31321 case $AS in 31322 [\\/]* | ?:[\\/]*) 31323 ac_cv_path_AS="$AS" # Let the user override the test with a path. 31324 ;; 31325 *) 31326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31327 for as_dir in $PATH 31328 do 31329 IFS=$as_save_IFS 31330 test -z "$as_dir" && as_dir=. 31331 for ac_exec_ext in '' $ac_executable_extensions; do 31332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31333 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 31334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31335 break 2 31336 fi 31337 done 31338 done 31339 IFS=$as_save_IFS 31340 31341 ;; 31342 esac 31343 fi 31344 AS=$ac_cv_path_AS 31345 if test -n "$AS"; then 31346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 31347 $as_echo "$AS" >&6; } 31348 else 31349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31350 $as_echo "no" >&6; } 31351 fi 31352 31353 31354 test -n "$AS" && break 31355 done 31356 31357 else 31358 # The variable is set, but is it from the command line or the environment? 31359 31360 # Try to remove the string !AS! from our list. 31361 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 31362 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31363 # If it failed, the variable was not from the command line. Ignore it, 31364 # but warn the user (except for BASH, which is always set by the calling BASH). 31365 if test "xAS" != xBASH; then 31366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 31367 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 31368 fi 31369 # Try to locate tool using the code snippet 31370 for ac_prog in as 31371 do 31372 # Extract the first word of "$ac_prog", so it can be a program name with args. 31373 set dummy $ac_prog; ac_word=$2 31374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31375 $as_echo_n "checking for $ac_word... " >&6; } 31376 if ${ac_cv_path_AS+:} false; then : 31377 $as_echo_n "(cached) " >&6 31378 else 31379 case $AS in 31380 [\\/]* | ?:[\\/]*) 31381 ac_cv_path_AS="$AS" # Let the user override the test with a path. 31382 ;; 31383 *) 31384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31385 for as_dir in $PATH 31386 do 31387 IFS=$as_save_IFS 31388 test -z "$as_dir" && as_dir=. 31389 for ac_exec_ext in '' $ac_executable_extensions; do 31390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31391 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 31392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31393 break 2 31394 fi 31395 done 31396 done 31397 IFS=$as_save_IFS 31398 31399 ;; 31400 esac 31401 fi 31402 AS=$ac_cv_path_AS 31403 if test -n "$AS"; then 31404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 31405 $as_echo "$AS" >&6; } 31406 else 31407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31408 $as_echo "no" >&6; } 31409 fi 31410 31411 31412 test -n "$AS" && break 31413 done 31414 31415 else 31416 # If it succeeded, then it was overridden by the user. We will use it 31417 # for the tool. 31418 31419 # First remove it from the list of overridden variables, so we can test 31420 # for unknown variables in the end. 31421 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31422 31423 # Check if the provided tool contains a complete path. 31424 tool_specified="$AS" 31425 tool_basename="${tool_specified##*/}" 31426 if test "x$tool_basename" = "x$tool_specified"; then 31427 # A command without a complete path is provided, search $PATH. 31428 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 31429 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 31430 # Extract the first word of "$tool_basename", so it can be a program name with args. 31431 set dummy $tool_basename; ac_word=$2 31432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31433 $as_echo_n "checking for $ac_word... " >&6; } 31434 if ${ac_cv_path_AS+:} false; then : 31435 $as_echo_n "(cached) " >&6 31436 else 31437 case $AS in 31438 [\\/]* | ?:[\\/]*) 31439 ac_cv_path_AS="$AS" # Let the user override the test with a path. 31440 ;; 31441 *) 31442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31443 for as_dir in $PATH 31444 do 31445 IFS=$as_save_IFS 31446 test -z "$as_dir" && as_dir=. 31447 for ac_exec_ext in '' $ac_executable_extensions; do 31448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31449 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 31450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31451 break 2 31452 fi 31453 done 31454 done 31455 IFS=$as_save_IFS 31456 31457 ;; 31458 esac 31459 fi 31460 AS=$ac_cv_path_AS 31461 if test -n "$AS"; then 31462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 31463 $as_echo "$AS" >&6; } 31464 else 31465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31466 $as_echo "no" >&6; } 31467 fi 31468 31469 31470 if test "x$AS" = x; then 31471 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31472 fi 31473 else 31474 # Otherwise we believe it is a complete path. Use it as it is. 31475 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 31476 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 31477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 31478 $as_echo_n "checking for AS... " >&6; } 31479 if test ! -x "$tool_specified"; then 31480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31481 $as_echo "not found" >&6; } 31482 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 31483 fi 31484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31485 $as_echo "$tool_specified" >&6; } 31486 fi 31487 fi 31488 fi 31489 31490 31491 31492 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31493 31494 # First separate the path from the arguments. This will split at the first 31495 # space. 31496 complete="$AS" 31497 path="${complete%% *}" 31498 tmp="$complete EOL" 31499 arguments="${tmp#* }" 31500 31501 # Input might be given as Windows format, start by converting to 31502 # unix format. 31503 new_path=`$CYGPATH -u "$path"` 31504 31505 # Now try to locate executable using which 31506 new_path=`$WHICH "$new_path" 2> /dev/null` 31507 # bat and cmd files are not always considered executable in cygwin causing which 31508 # to not find them 31509 if test "x$new_path" = x \ 31510 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31511 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31512 new_path=`$CYGPATH -u "$path"` 31513 fi 31514 if test "x$new_path" = x; then 31515 # Oops. Which didn't find the executable. 31516 # The splitting of arguments from the executable at a space might have been incorrect, 31517 # since paths with space are more likely in Windows. Give it another try with the whole 31518 # argument. 31519 path="$complete" 31520 arguments="EOL" 31521 new_path=`$CYGPATH -u "$path"` 31522 new_path=`$WHICH "$new_path" 2> /dev/null` 31523 # bat and cmd files are not always considered executable in cygwin causing which 31524 # to not find them 31525 if test "x$new_path" = x \ 31526 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31527 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31528 new_path=`$CYGPATH -u "$path"` 31529 fi 31530 if test "x$new_path" = x; then 31531 # It's still not found. Now this is an unrecoverable error. 31532 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 31533 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 31534 has_space=`$ECHO "$complete" | $GREP " "` 31535 if test "x$has_space" != x; then 31536 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31537 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31538 fi 31539 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 31540 fi 31541 fi 31542 31543 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31544 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31545 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31546 # "foo.exe" is OK but "foo" is an error. 31547 # 31548 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31549 # It is also a way to make sure we got the proper file name for the real test later on. 31550 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31551 if test "x$test_shortpath" = x; then 31552 # Short path failed, file does not exist as specified. 31553 # Try adding .exe or .cmd 31554 if test -f "${new_path}.exe"; then 31555 input_to_shortpath="${new_path}.exe" 31556 elif test -f "${new_path}.cmd"; then 31557 input_to_shortpath="${new_path}.cmd" 31558 else 31559 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 31560 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 31561 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31562 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31563 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 31564 fi 31565 else 31566 input_to_shortpath="$new_path" 31567 fi 31568 31569 # Call helper function which possibly converts this using DOS-style short mode. 31570 # If so, the updated path is stored in $new_path. 31571 new_path="$input_to_shortpath" 31572 31573 input_path="$input_to_shortpath" 31574 # Check if we need to convert this using DOS-style short mode. If the path 31575 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31576 # take no chances and rewrite it. 31577 # Note: m4 eats our [], so we need to use [ and ] instead. 31578 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31579 if test "x$has_forbidden_chars" != x; then 31580 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31581 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31582 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31583 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31584 # Going to short mode and back again did indeed matter. Since short mode is 31585 # case insensitive, let's make it lowercase to improve readability. 31586 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31587 # Now convert it back to Unix-style (cygpath) 31588 input_path=`$CYGPATH -u "$shortmode_path"` 31589 new_path="$input_path" 31590 fi 31591 fi 31592 31593 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31594 if test "x$test_cygdrive_prefix" = x; then 31595 # As a simple fix, exclude /usr/bin since it's not a real path. 31596 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31597 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31598 # a path prefixed by /cygdrive for fixpath to work. 31599 new_path="$CYGWIN_ROOT_PATH$input_path" 31600 fi 31601 fi 31602 31603 # remove trailing .exe if any 31604 new_path="${new_path/%.exe/}" 31605 31606 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31607 31608 # First separate the path from the arguments. This will split at the first 31609 # space. 31610 complete="$AS" 31611 path="${complete%% *}" 31612 tmp="$complete EOL" 31613 arguments="${tmp#* }" 31614 31615 # Input might be given as Windows format, start by converting to 31616 # unix format. 31617 new_path="$path" 31618 31619 windows_path="$new_path" 31620 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31621 unix_path=`$CYGPATH -u "$windows_path"` 31622 new_path="$unix_path" 31623 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31624 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31625 new_path="$unix_path" 31626 fi 31627 31628 31629 # Now try to locate executable using which 31630 new_path=`$WHICH "$new_path" 2> /dev/null` 31631 31632 if test "x$new_path" = x; then 31633 # Oops. Which didn't find the executable. 31634 # The splitting of arguments from the executable at a space might have been incorrect, 31635 # since paths with space are more likely in Windows. Give it another try with the whole 31636 # argument. 31637 path="$complete" 31638 arguments="EOL" 31639 new_path="$path" 31640 31641 windows_path="$new_path" 31642 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31643 unix_path=`$CYGPATH -u "$windows_path"` 31644 new_path="$unix_path" 31645 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31646 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31647 new_path="$unix_path" 31648 fi 31649 31650 31651 new_path=`$WHICH "$new_path" 2> /dev/null` 31652 # bat and cmd files are not always considered executable in MSYS causing which 31653 # to not find them 31654 if test "x$new_path" = x \ 31655 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31656 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31657 new_path="$path" 31658 31659 windows_path="$new_path" 31660 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31661 unix_path=`$CYGPATH -u "$windows_path"` 31662 new_path="$unix_path" 31663 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31664 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31665 new_path="$unix_path" 31666 fi 31667 31668 fi 31669 31670 if test "x$new_path" = x; then 31671 # It's still not found. Now this is an unrecoverable error. 31672 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 31673 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 31674 has_space=`$ECHO "$complete" | $GREP " "` 31675 if test "x$has_space" != x; then 31676 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31677 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31678 fi 31679 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 31680 fi 31681 fi 31682 31683 # Now new_path has a complete unix path to the binary 31684 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31685 # Keep paths in /bin as-is, but remove trailing .exe if any 31686 new_path="${new_path/%.exe/}" 31687 # Do not save /bin paths to all_fixpath_prefixes! 31688 else 31689 # Not in mixed or Windows style, start by that. 31690 new_path=`cmd //c echo $new_path` 31691 31692 input_path="$new_path" 31693 # Check if we need to convert this using DOS-style short mode. If the path 31694 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31695 # take no chances and rewrite it. 31696 # Note: m4 eats our [], so we need to use [ and ] instead. 31697 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31698 if test "x$has_forbidden_chars" != x; then 31699 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31700 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31701 fi 31702 31703 # Output is in $new_path 31704 31705 windows_path="$new_path" 31706 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31707 unix_path=`$CYGPATH -u "$windows_path"` 31708 new_path="$unix_path" 31709 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31710 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31711 new_path="$unix_path" 31712 fi 31713 31714 # remove trailing .exe if any 31715 new_path="${new_path/%.exe/}" 31716 31717 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31718 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31719 fi 31720 31721 else 31722 # We're on a posix platform. Hooray! :) 31723 # First separate the path from the arguments. This will split at the first 31724 # space. 31725 complete="$AS" 31726 path="${complete%% *}" 31727 tmp="$complete EOL" 31728 arguments="${tmp#* }" 31729 31730 # Cannot rely on the command "which" here since it doesn't always work. 31731 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31732 if test -z "$is_absolute_path"; then 31733 # Path to executable is not absolute. Find it. 31734 IFS_save="$IFS" 31735 IFS=: 31736 for p in $PATH; do 31737 if test -f "$p/$path" && test -x "$p/$path"; then 31738 new_path="$p/$path" 31739 break 31740 fi 31741 done 31742 IFS="$IFS_save" 31743 else 31744 # This is an absolute path, we can use it without further modifications. 31745 new_path="$path" 31746 fi 31747 31748 if test "x$new_path" = x; then 31749 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 31750 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 31751 has_space=`$ECHO "$complete" | $GREP " "` 31752 if test "x$has_space" != x; then 31753 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31754 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31755 fi 31756 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 31757 fi 31758 fi 31759 31760 # Now join together the path and the arguments once again 31761 if test "x$arguments" != xEOL; then 31762 new_complete="$new_path ${arguments% *}" 31763 else 31764 new_complete="$new_path" 31765 fi 31766 31767 if test "x$complete" != "x$new_complete"; then 31768 AS="$new_complete" 31769 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 31770 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 31771 fi 31772 31773 else 31774 # FIXME: is this correct for microsoft? 31775 AS="$CC -c" 31776 fi 31777 31778 31779 # 31780 # Setup the archiver (AR) 31781 # 31782 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 31783 # The corresponding ar tool is lib.exe (used to create static libraries) 31784 # Extract the first word of "lib", so it can be a program name with args. 31785 set dummy lib; ac_word=$2 31786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31787 $as_echo_n "checking for $ac_word... " >&6; } 31788 if ${ac_cv_prog_AR+:} false; then : 31789 $as_echo_n "(cached) " >&6 31790 else 31791 if test -n "$AR"; then 31792 ac_cv_prog_AR="$AR" # Let the user override the test. 31793 else 31794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31795 for as_dir in $PATH 31796 do 31797 IFS=$as_save_IFS 31798 test -z "$as_dir" && as_dir=. 31799 for ac_exec_ext in '' $ac_executable_extensions; do 31800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31801 ac_cv_prog_AR="lib" 31802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31803 break 2 31804 fi 31805 done 31806 done 31807 IFS=$as_save_IFS 31808 31809 fi 31810 fi 31811 AR=$ac_cv_prog_AR 31812 if test -n "$AR"; then 31813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 31814 $as_echo "$AR" >&6; } 31815 else 31816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31817 $as_echo "no" >&6; } 31818 fi 31819 31820 31821 else 31822 31823 31824 # Publish this variable in the help. 31825 31826 31827 if test "x$AR" = x; then 31828 # The variable is not set by user, try to locate tool using the code snippet 31829 if test -n "$ac_tool_prefix"; then 31830 for ac_prog in ar 31831 do 31832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 31833 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 31834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31835 $as_echo_n "checking for $ac_word... " >&6; } 31836 if ${ac_cv_prog_AR+:} false; then : 31837 $as_echo_n "(cached) " >&6 31838 else 31839 if test -n "$AR"; then 31840 ac_cv_prog_AR="$AR" # Let the user override the test. 31841 else 31842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31843 for as_dir in $PATH 31844 do 31845 IFS=$as_save_IFS 31846 test -z "$as_dir" && as_dir=. 31847 for ac_exec_ext in '' $ac_executable_extensions; do 31848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31849 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 31850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31851 break 2 31852 fi 31853 done 31854 done 31855 IFS=$as_save_IFS 31856 31857 fi 31858 fi 31859 AR=$ac_cv_prog_AR 31860 if test -n "$AR"; then 31861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 31862 $as_echo "$AR" >&6; } 31863 else 31864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31865 $as_echo "no" >&6; } 31866 fi 31867 31868 31869 test -n "$AR" && break 31870 done 31871 fi 31872 if test -z "$AR"; then 31873 ac_ct_AR=$AR 31874 for ac_prog in ar 31875 do 31876 # Extract the first word of "$ac_prog", so it can be a program name with args. 31877 set dummy $ac_prog; ac_word=$2 31878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31879 $as_echo_n "checking for $ac_word... " >&6; } 31880 if ${ac_cv_prog_ac_ct_AR+:} false; then : 31881 $as_echo_n "(cached) " >&6 31882 else 31883 if test -n "$ac_ct_AR"; then 31884 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 31885 else 31886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31887 for as_dir in $PATH 31888 do 31889 IFS=$as_save_IFS 31890 test -z "$as_dir" && as_dir=. 31891 for ac_exec_ext in '' $ac_executable_extensions; do 31892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31893 ac_cv_prog_ac_ct_AR="$ac_prog" 31894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31895 break 2 31896 fi 31897 done 31898 done 31899 IFS=$as_save_IFS 31900 31901 fi 31902 fi 31903 ac_ct_AR=$ac_cv_prog_ac_ct_AR 31904 if test -n "$ac_ct_AR"; then 31905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 31906 $as_echo "$ac_ct_AR" >&6; } 31907 else 31908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31909 $as_echo "no" >&6; } 31910 fi 31911 31912 31913 test -n "$ac_ct_AR" && break 31914 done 31915 31916 if test "x$ac_ct_AR" = x; then 31917 AR="" 31918 else 31919 case $cross_compiling:$ac_tool_warned in 31920 yes:) 31921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31923 ac_tool_warned=yes ;; 31924 esac 31925 AR=$ac_ct_AR 31926 fi 31927 fi 31928 31929 else 31930 # The variable is set, but is it from the command line or the environment? 31931 31932 # Try to remove the string !AR! from our list. 31933 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 31934 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31935 # If it failed, the variable was not from the command line. Ignore it, 31936 # but warn the user (except for BASH, which is always set by the calling BASH). 31937 if test "xAR" != xBASH; then 31938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 31939 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 31940 fi 31941 # Try to locate tool using the code snippet 31942 if test -n "$ac_tool_prefix"; then 31943 for ac_prog in ar 31944 do 31945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 31946 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 31947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31948 $as_echo_n "checking for $ac_word... " >&6; } 31949 if ${ac_cv_prog_AR+:} false; then : 31950 $as_echo_n "(cached) " >&6 31951 else 31952 if test -n "$AR"; then 31953 ac_cv_prog_AR="$AR" # Let the user override the test. 31954 else 31955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31956 for as_dir in $PATH 31957 do 31958 IFS=$as_save_IFS 31959 test -z "$as_dir" && as_dir=. 31960 for ac_exec_ext in '' $ac_executable_extensions; do 31961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31962 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 31963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31964 break 2 31965 fi 31966 done 31967 done 31968 IFS=$as_save_IFS 31969 31970 fi 31971 fi 31972 AR=$ac_cv_prog_AR 31973 if test -n "$AR"; then 31974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 31975 $as_echo "$AR" >&6; } 31976 else 31977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31978 $as_echo "no" >&6; } 31979 fi 31980 31981 31982 test -n "$AR" && break 31983 done 31984 fi 31985 if test -z "$AR"; then 31986 ac_ct_AR=$AR 31987 for ac_prog in ar 31988 do 31989 # Extract the first word of "$ac_prog", so it can be a program name with args. 31990 set dummy $ac_prog; ac_word=$2 31991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31992 $as_echo_n "checking for $ac_word... " >&6; } 31993 if ${ac_cv_prog_ac_ct_AR+:} false; then : 31994 $as_echo_n "(cached) " >&6 31995 else 31996 if test -n "$ac_ct_AR"; then 31997 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 31998 else 31999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32000 for as_dir in $PATH 32001 do 32002 IFS=$as_save_IFS 32003 test -z "$as_dir" && as_dir=. 32004 for ac_exec_ext in '' $ac_executable_extensions; do 32005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32006 ac_cv_prog_ac_ct_AR="$ac_prog" 32007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32008 break 2 32009 fi 32010 done 32011 done 32012 IFS=$as_save_IFS 32013 32014 fi 32015 fi 32016 ac_ct_AR=$ac_cv_prog_ac_ct_AR 32017 if test -n "$ac_ct_AR"; then 32018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 32019 $as_echo "$ac_ct_AR" >&6; } 32020 else 32021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32022 $as_echo "no" >&6; } 32023 fi 32024 32025 32026 test -n "$ac_ct_AR" && break 32027 done 32028 32029 if test "x$ac_ct_AR" = x; then 32030 AR="" 32031 else 32032 case $cross_compiling:$ac_tool_warned in 32033 yes:) 32034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32036 ac_tool_warned=yes ;; 32037 esac 32038 AR=$ac_ct_AR 32039 fi 32040 fi 32041 32042 else 32043 # If it succeeded, then it was overridden by the user. We will use it 32044 # for the tool. 32045 32046 # First remove it from the list of overridden variables, so we can test 32047 # for unknown variables in the end. 32048 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 32049 32050 # Check if the provided tool contains a complete path. 32051 tool_specified="$AR" 32052 tool_basename="${tool_specified##*/}" 32053 if test "x$tool_basename" = "x$tool_specified"; then 32054 # A command without a complete path is provided, search $PATH. 32055 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 32056 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 32057 # Extract the first word of "$tool_basename", so it can be a program name with args. 32058 set dummy $tool_basename; ac_word=$2 32059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32060 $as_echo_n "checking for $ac_word... " >&6; } 32061 if ${ac_cv_path_AR+:} false; then : 32062 $as_echo_n "(cached) " >&6 32063 else 32064 case $AR in 32065 [\\/]* | ?:[\\/]*) 32066 ac_cv_path_AR="$AR" # Let the user override the test with a path. 32067 ;; 32068 *) 32069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32070 for as_dir in $PATH 32071 do 32072 IFS=$as_save_IFS 32073 test -z "$as_dir" && as_dir=. 32074 for ac_exec_ext in '' $ac_executable_extensions; do 32075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32076 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 32077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32078 break 2 32079 fi 32080 done 32081 done 32082 IFS=$as_save_IFS 32083 32084 ;; 32085 esac 32086 fi 32087 AR=$ac_cv_path_AR 32088 if test -n "$AR"; then 32089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32090 $as_echo "$AR" >&6; } 32091 else 32092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32093 $as_echo "no" >&6; } 32094 fi 32095 32096 32097 if test "x$AR" = x; then 32098 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 32099 fi 32100 else 32101 # Otherwise we believe it is a complete path. Use it as it is. 32102 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 32103 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 32104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 32105 $as_echo_n "checking for AR... " >&6; } 32106 if test ! -x "$tool_specified"; then 32107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32108 $as_echo "not found" >&6; } 32109 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 32110 fi 32111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 32112 $as_echo "$tool_specified" >&6; } 32113 fi 32114 fi 32115 fi 32116 32117 32118 fi 32119 32120 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32121 32122 # First separate the path from the arguments. This will split at the first 32123 # space. 32124 complete="$AR" 32125 path="${complete%% *}" 32126 tmp="$complete EOL" 32127 arguments="${tmp#* }" 32128 32129 # Input might be given as Windows format, start by converting to 32130 # unix format. 32131 new_path=`$CYGPATH -u "$path"` 32132 32133 # Now try to locate executable using which 32134 new_path=`$WHICH "$new_path" 2> /dev/null` 32135 # bat and cmd files are not always considered executable in cygwin causing which 32136 # to not find them 32137 if test "x$new_path" = x \ 32138 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32139 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32140 new_path=`$CYGPATH -u "$path"` 32141 fi 32142 if test "x$new_path" = x; then 32143 # Oops. Which didn't find the executable. 32144 # The splitting of arguments from the executable at a space might have been incorrect, 32145 # since paths with space are more likely in Windows. Give it another try with the whole 32146 # argument. 32147 path="$complete" 32148 arguments="EOL" 32149 new_path=`$CYGPATH -u "$path"` 32150 new_path=`$WHICH "$new_path" 2> /dev/null` 32151 # bat and cmd files are not always considered executable in cygwin causing which 32152 # to not find them 32153 if test "x$new_path" = x \ 32154 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32155 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32156 new_path=`$CYGPATH -u "$path"` 32157 fi 32158 if test "x$new_path" = x; then 32159 # It's still not found. Now this is an unrecoverable error. 32160 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32161 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32162 has_space=`$ECHO "$complete" | $GREP " "` 32163 if test "x$has_space" != x; then 32164 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32165 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32166 fi 32167 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32168 fi 32169 fi 32170 32171 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32172 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32173 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32174 # "foo.exe" is OK but "foo" is an error. 32175 # 32176 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32177 # It is also a way to make sure we got the proper file name for the real test later on. 32178 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32179 if test "x$test_shortpath" = x; then 32180 # Short path failed, file does not exist as specified. 32181 # Try adding .exe or .cmd 32182 if test -f "${new_path}.exe"; then 32183 input_to_shortpath="${new_path}.exe" 32184 elif test -f "${new_path}.cmd"; then 32185 input_to_shortpath="${new_path}.cmd" 32186 else 32187 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 32188 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 32189 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32190 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32191 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32192 fi 32193 else 32194 input_to_shortpath="$new_path" 32195 fi 32196 32197 # Call helper function which possibly converts this using DOS-style short mode. 32198 # If so, the updated path is stored in $new_path. 32199 new_path="$input_to_shortpath" 32200 32201 input_path="$input_to_shortpath" 32202 # Check if we need to convert this using DOS-style short mode. If the path 32203 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32204 # take no chances and rewrite it. 32205 # Note: m4 eats our [], so we need to use [ and ] instead. 32206 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32207 if test "x$has_forbidden_chars" != x; then 32208 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32209 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32210 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32211 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32212 # Going to short mode and back again did indeed matter. Since short mode is 32213 # case insensitive, let's make it lowercase to improve readability. 32214 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32215 # Now convert it back to Unix-style (cygpath) 32216 input_path=`$CYGPATH -u "$shortmode_path"` 32217 new_path="$input_path" 32218 fi 32219 fi 32220 32221 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32222 if test "x$test_cygdrive_prefix" = x; then 32223 # As a simple fix, exclude /usr/bin since it's not a real path. 32224 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32225 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32226 # a path prefixed by /cygdrive for fixpath to work. 32227 new_path="$CYGWIN_ROOT_PATH$input_path" 32228 fi 32229 fi 32230 32231 # remove trailing .exe if any 32232 new_path="${new_path/%.exe/}" 32233 32234 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32235 32236 # First separate the path from the arguments. This will split at the first 32237 # space. 32238 complete="$AR" 32239 path="${complete%% *}" 32240 tmp="$complete EOL" 32241 arguments="${tmp#* }" 32242 32243 # Input might be given as Windows format, start by converting to 32244 # unix format. 32245 new_path="$path" 32246 32247 windows_path="$new_path" 32248 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32249 unix_path=`$CYGPATH -u "$windows_path"` 32250 new_path="$unix_path" 32251 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32252 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32253 new_path="$unix_path" 32254 fi 32255 32256 32257 # Now try to locate executable using which 32258 new_path=`$WHICH "$new_path" 2> /dev/null` 32259 32260 if test "x$new_path" = x; then 32261 # Oops. Which didn't find the executable. 32262 # The splitting of arguments from the executable at a space might have been incorrect, 32263 # since paths with space are more likely in Windows. Give it another try with the whole 32264 # argument. 32265 path="$complete" 32266 arguments="EOL" 32267 new_path="$path" 32268 32269 windows_path="$new_path" 32270 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32271 unix_path=`$CYGPATH -u "$windows_path"` 32272 new_path="$unix_path" 32273 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32274 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32275 new_path="$unix_path" 32276 fi 32277 32278 32279 new_path=`$WHICH "$new_path" 2> /dev/null` 32280 # bat and cmd files are not always considered executable in MSYS causing which 32281 # to not find them 32282 if test "x$new_path" = x \ 32283 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32284 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32285 new_path="$path" 32286 32287 windows_path="$new_path" 32288 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32289 unix_path=`$CYGPATH -u "$windows_path"` 32290 new_path="$unix_path" 32291 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32292 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32293 new_path="$unix_path" 32294 fi 32295 32296 fi 32297 32298 if test "x$new_path" = x; then 32299 # It's still not found. Now this is an unrecoverable error. 32300 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32301 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32302 has_space=`$ECHO "$complete" | $GREP " "` 32303 if test "x$has_space" != x; then 32304 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32305 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32306 fi 32307 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32308 fi 32309 fi 32310 32311 # Now new_path has a complete unix path to the binary 32312 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32313 # Keep paths in /bin as-is, but remove trailing .exe if any 32314 new_path="${new_path/%.exe/}" 32315 # Do not save /bin paths to all_fixpath_prefixes! 32316 else 32317 # Not in mixed or Windows style, start by that. 32318 new_path=`cmd //c echo $new_path` 32319 32320 input_path="$new_path" 32321 # Check if we need to convert this using DOS-style short mode. If the path 32322 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32323 # take no chances and rewrite it. 32324 # Note: m4 eats our [], so we need to use [ and ] instead. 32325 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32326 if test "x$has_forbidden_chars" != x; then 32327 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32328 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32329 fi 32330 32331 # Output is in $new_path 32332 32333 windows_path="$new_path" 32334 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32335 unix_path=`$CYGPATH -u "$windows_path"` 32336 new_path="$unix_path" 32337 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32338 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32339 new_path="$unix_path" 32340 fi 32341 32342 # remove trailing .exe if any 32343 new_path="${new_path/%.exe/}" 32344 32345 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32346 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32347 fi 32348 32349 else 32350 # We're on a posix platform. Hooray! :) 32351 # First separate the path from the arguments. This will split at the first 32352 # space. 32353 complete="$AR" 32354 path="${complete%% *}" 32355 tmp="$complete EOL" 32356 arguments="${tmp#* }" 32357 32358 # Cannot rely on the command "which" here since it doesn't always work. 32359 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32360 if test -z "$is_absolute_path"; then 32361 # Path to executable is not absolute. Find it. 32362 IFS_save="$IFS" 32363 IFS=: 32364 for p in $PATH; do 32365 if test -f "$p/$path" && test -x "$p/$path"; then 32366 new_path="$p/$path" 32367 break 32368 fi 32369 done 32370 IFS="$IFS_save" 32371 else 32372 # This is an absolute path, we can use it without further modifications. 32373 new_path="$path" 32374 fi 32375 32376 if test "x$new_path" = x; then 32377 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32378 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32379 has_space=`$ECHO "$complete" | $GREP " "` 32380 if test "x$has_space" != x; then 32381 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32382 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32383 fi 32384 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32385 fi 32386 fi 32387 32388 # Now join together the path and the arguments once again 32389 if test "x$arguments" != xEOL; then 32390 new_complete="$new_path ${arguments% *}" 32391 else 32392 new_complete="$new_path" 32393 fi 32394 32395 if test "x$complete" != "x$new_complete"; then 32396 AR="$new_complete" 32397 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 32398 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 32399 fi 32400 32401 32402 32403 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 32404 ac_ext=m 32405 ac_cpp='$OBJCPP $CPPFLAGS' 32406 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32407 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32408 ac_compiler_gnu=$ac_cv_objc_compiler_gnu 32409 if test -n "$ac_tool_prefix"; then 32410 for ac_prog in gcc objcc objc cc CC 32411 do 32412 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32413 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32415 $as_echo_n "checking for $ac_word... " >&6; } 32416 if ${ac_cv_prog_OBJC+:} false; then : 32417 $as_echo_n "(cached) " >&6 32418 else 32419 if test -n "$OBJC"; then 32420 ac_cv_prog_OBJC="$OBJC" # Let the user override the test. 32421 else 32422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32423 for as_dir in $PATH 32424 do 32425 IFS=$as_save_IFS 32426 test -z "$as_dir" && as_dir=. 32427 for ac_exec_ext in '' $ac_executable_extensions; do 32428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32429 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" 32430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32431 break 2 32432 fi 32433 done 32434 done 32435 IFS=$as_save_IFS 32436 32437 fi 32438 fi 32439 OBJC=$ac_cv_prog_OBJC 32440 if test -n "$OBJC"; then 32441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 32442 $as_echo "$OBJC" >&6; } 32443 else 32444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32445 $as_echo "no" >&6; } 32446 fi 32447 32448 32449 test -n "$OBJC" && break 32450 done 32451 fi 32452 if test -z "$OBJC"; then 32453 ac_ct_OBJC=$OBJC 32454 for ac_prog in gcc objcc objc cc CC 32455 do 32456 # Extract the first word of "$ac_prog", so it can be a program name with args. 32457 set dummy $ac_prog; ac_word=$2 32458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32459 $as_echo_n "checking for $ac_word... " >&6; } 32460 if ${ac_cv_prog_ac_ct_OBJC+:} false; then : 32461 $as_echo_n "(cached) " >&6 32462 else 32463 if test -n "$ac_ct_OBJC"; then 32464 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. 32465 else 32466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32467 for as_dir in $PATH 32468 do 32469 IFS=$as_save_IFS 32470 test -z "$as_dir" && as_dir=. 32471 for ac_exec_ext in '' $ac_executable_extensions; do 32472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32473 ac_cv_prog_ac_ct_OBJC="$ac_prog" 32474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32475 break 2 32476 fi 32477 done 32478 done 32479 IFS=$as_save_IFS 32480 32481 fi 32482 fi 32483 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC 32484 if test -n "$ac_ct_OBJC"; then 32485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 32486 $as_echo "$ac_ct_OBJC" >&6; } 32487 else 32488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32489 $as_echo "no" >&6; } 32490 fi 32491 32492 32493 test -n "$ac_ct_OBJC" && break 32494 done 32495 32496 if test "x$ac_ct_OBJC" = x; then 32497 OBJC="gcc" 32498 else 32499 case $cross_compiling:$ac_tool_warned in 32500 yes:) 32501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32503 ac_tool_warned=yes ;; 32504 esac 32505 OBJC=$ac_ct_OBJC 32506 fi 32507 fi 32508 32509 # Provide some information about the compiler. 32510 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 32511 set X $ac_compile 32512 ac_compiler=$2 32513 for ac_option in --version -v -V -qversion; do 32514 { { ac_try="$ac_compiler $ac_option >&5" 32515 case "(($ac_try" in 32516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32517 *) ac_try_echo=$ac_try;; 32518 esac 32519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32520 $as_echo "$ac_try_echo"; } >&5 32521 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 32522 ac_status=$? 32523 if test -s conftest.err; then 32524 sed '10a\ 32525 ... rest of stderr output deleted ... 32526 10q' conftest.err >conftest.er1 32527 cat conftest.er1 >&5 32528 fi 32529 rm -f conftest.er1 conftest.err 32530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32531 test $ac_status = 0; } 32532 done 32533 32534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 32535 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } 32536 if ${ac_cv_objc_compiler_gnu+:} false; then : 32537 $as_echo_n "(cached) " >&6 32538 else 32539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32540 /* end confdefs.h. */ 32541 32542 int 32543 main () 32544 { 32545 #ifndef __GNUC__ 32546 choke me 32547 #endif 32548 32549 ; 32550 return 0; 32551 } 32552 _ACEOF 32553 if ac_fn_objc_try_compile "$LINENO"; then : 32554 ac_compiler_gnu=yes 32555 else 32556 ac_compiler_gnu=no 32557 fi 32558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32559 ac_cv_objc_compiler_gnu=$ac_compiler_gnu 32560 32561 fi 32562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 32563 $as_echo "$ac_cv_objc_compiler_gnu" >&6; } 32564 if test $ac_compiler_gnu = yes; then 32565 GOBJC=yes 32566 else 32567 GOBJC= 32568 fi 32569 ac_test_OBJCFLAGS=${OBJCFLAGS+set} 32570 ac_save_OBJCFLAGS=$OBJCFLAGS 32571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 32572 $as_echo_n "checking whether $OBJC accepts -g... " >&6; } 32573 if ${ac_cv_prog_objc_g+:} false; then : 32574 $as_echo_n "(cached) " >&6 32575 else 32576 ac_save_objc_werror_flag=$ac_objc_werror_flag 32577 ac_objc_werror_flag=yes 32578 ac_cv_prog_objc_g=no 32579 OBJCFLAGS="-g" 32580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32581 /* end confdefs.h. */ 32582 32583 int 32584 main () 32585 { 32586 32587 ; 32588 return 0; 32589 } 32590 _ACEOF 32591 if ac_fn_objc_try_compile "$LINENO"; then : 32592 ac_cv_prog_objc_g=yes 32593 else 32594 OBJCFLAGS="" 32595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32596 /* end confdefs.h. */ 32597 32598 int 32599 main () 32600 { 32601 32602 ; 32603 return 0; 32604 } 32605 _ACEOF 32606 if ac_fn_objc_try_compile "$LINENO"; then : 32607 32608 else 32609 ac_objc_werror_flag=$ac_save_objc_werror_flag 32610 OBJCFLAGS="-g" 32611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32612 /* end confdefs.h. */ 32613 32614 int 32615 main () 32616 { 32617 32618 ; 32619 return 0; 32620 } 32621 _ACEOF 32622 if ac_fn_objc_try_compile "$LINENO"; then : 32623 ac_cv_prog_objc_g=yes 32624 fi 32625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32626 fi 32627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32628 fi 32629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32630 ac_objc_werror_flag=$ac_save_objc_werror_flag 32631 fi 32632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 32633 $as_echo "$ac_cv_prog_objc_g" >&6; } 32634 if test "$ac_test_OBJCFLAGS" = set; then 32635 OBJCFLAGS=$ac_save_OBJCFLAGS 32636 elif test $ac_cv_prog_objc_g = yes; then 32637 if test "$GOBJC" = yes; then 32638 OBJCFLAGS="-g -O2" 32639 else 32640 OBJCFLAGS="-g" 32641 fi 32642 else 32643 if test "$GOBJC" = yes; then 32644 OBJCFLAGS="-O2" 32645 else 32646 OBJCFLAGS= 32647 fi 32648 fi 32649 ac_ext=cpp 32650 ac_cpp='$CXXCPP $CPPFLAGS' 32651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 32654 32655 32656 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32657 32658 # First separate the path from the arguments. This will split at the first 32659 # space. 32660 complete="$OBJC" 32661 path="${complete%% *}" 32662 tmp="$complete EOL" 32663 arguments="${tmp#* }" 32664 32665 # Input might be given as Windows format, start by converting to 32666 # unix format. 32667 new_path=`$CYGPATH -u "$path"` 32668 32669 # Now try to locate executable using which 32670 new_path=`$WHICH "$new_path" 2> /dev/null` 32671 # bat and cmd files are not always considered executable in cygwin causing which 32672 # to not find them 32673 if test "x$new_path" = x \ 32674 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32675 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32676 new_path=`$CYGPATH -u "$path"` 32677 fi 32678 if test "x$new_path" = x; then 32679 # Oops. Which didn't find the executable. 32680 # The splitting of arguments from the executable at a space might have been incorrect, 32681 # since paths with space are more likely in Windows. Give it another try with the whole 32682 # argument. 32683 path="$complete" 32684 arguments="EOL" 32685 new_path=`$CYGPATH -u "$path"` 32686 new_path=`$WHICH "$new_path" 2> /dev/null` 32687 # bat and cmd files are not always considered executable in cygwin causing which 32688 # to not find them 32689 if test "x$new_path" = x \ 32690 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32691 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32692 new_path=`$CYGPATH -u "$path"` 32693 fi 32694 if test "x$new_path" = x; then 32695 # It's still not found. Now this is an unrecoverable error. 32696 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 32697 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 32698 has_space=`$ECHO "$complete" | $GREP " "` 32699 if test "x$has_space" != x; then 32700 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32701 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32702 fi 32703 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 32704 fi 32705 fi 32706 32707 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32708 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32709 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32710 # "foo.exe" is OK but "foo" is an error. 32711 # 32712 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32713 # It is also a way to make sure we got the proper file name for the real test later on. 32714 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32715 if test "x$test_shortpath" = x; then 32716 # Short path failed, file does not exist as specified. 32717 # Try adding .exe or .cmd 32718 if test -f "${new_path}.exe"; then 32719 input_to_shortpath="${new_path}.exe" 32720 elif test -f "${new_path}.cmd"; then 32721 input_to_shortpath="${new_path}.cmd" 32722 else 32723 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$new_path\", is invalid." >&5 32724 $as_echo "$as_me: The path of OBJC, which resolves as \"$new_path\", is invalid." >&6;} 32725 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32726 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32727 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 32728 fi 32729 else 32730 input_to_shortpath="$new_path" 32731 fi 32732 32733 # Call helper function which possibly converts this using DOS-style short mode. 32734 # If so, the updated path is stored in $new_path. 32735 new_path="$input_to_shortpath" 32736 32737 input_path="$input_to_shortpath" 32738 # Check if we need to convert this using DOS-style short mode. If the path 32739 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32740 # take no chances and rewrite it. 32741 # Note: m4 eats our [], so we need to use [ and ] instead. 32742 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32743 if test "x$has_forbidden_chars" != x; then 32744 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32745 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32746 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32747 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32748 # Going to short mode and back again did indeed matter. Since short mode is 32749 # case insensitive, let's make it lowercase to improve readability. 32750 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32751 # Now convert it back to Unix-style (cygpath) 32752 input_path=`$CYGPATH -u "$shortmode_path"` 32753 new_path="$input_path" 32754 fi 32755 fi 32756 32757 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32758 if test "x$test_cygdrive_prefix" = x; then 32759 # As a simple fix, exclude /usr/bin since it's not a real path. 32760 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32761 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32762 # a path prefixed by /cygdrive for fixpath to work. 32763 new_path="$CYGWIN_ROOT_PATH$input_path" 32764 fi 32765 fi 32766 32767 # remove trailing .exe if any 32768 new_path="${new_path/%.exe/}" 32769 32770 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32771 32772 # First separate the path from the arguments. This will split at the first 32773 # space. 32774 complete="$OBJC" 32775 path="${complete%% *}" 32776 tmp="$complete EOL" 32777 arguments="${tmp#* }" 32778 32779 # Input might be given as Windows format, start by converting to 32780 # unix format. 32781 new_path="$path" 32782 32783 windows_path="$new_path" 32784 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32785 unix_path=`$CYGPATH -u "$windows_path"` 32786 new_path="$unix_path" 32787 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32788 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32789 new_path="$unix_path" 32790 fi 32791 32792 32793 # Now try to locate executable using which 32794 new_path=`$WHICH "$new_path" 2> /dev/null` 32795 32796 if test "x$new_path" = x; then 32797 # Oops. Which didn't find the executable. 32798 # The splitting of arguments from the executable at a space might have been incorrect, 32799 # since paths with space are more likely in Windows. Give it another try with the whole 32800 # argument. 32801 path="$complete" 32802 arguments="EOL" 32803 new_path="$path" 32804 32805 windows_path="$new_path" 32806 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32807 unix_path=`$CYGPATH -u "$windows_path"` 32808 new_path="$unix_path" 32809 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32810 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32811 new_path="$unix_path" 32812 fi 32813 32814 32815 new_path=`$WHICH "$new_path" 2> /dev/null` 32816 # bat and cmd files are not always considered executable in MSYS causing which 32817 # to not find them 32818 if test "x$new_path" = x \ 32819 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32820 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32821 new_path="$path" 32822 32823 windows_path="$new_path" 32824 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32825 unix_path=`$CYGPATH -u "$windows_path"` 32826 new_path="$unix_path" 32827 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32828 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32829 new_path="$unix_path" 32830 fi 32831 32832 fi 32833 32834 if test "x$new_path" = x; then 32835 # It's still not found. Now this is an unrecoverable error. 32836 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 32837 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 32838 has_space=`$ECHO "$complete" | $GREP " "` 32839 if test "x$has_space" != x; then 32840 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32841 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32842 fi 32843 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 32844 fi 32845 fi 32846 32847 # Now new_path has a complete unix path to the binary 32848 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32849 # Keep paths in /bin as-is, but remove trailing .exe if any 32850 new_path="${new_path/%.exe/}" 32851 # Do not save /bin paths to all_fixpath_prefixes! 32852 else 32853 # Not in mixed or Windows style, start by that. 32854 new_path=`cmd //c echo $new_path` 32855 32856 input_path="$new_path" 32857 # Check if we need to convert this using DOS-style short mode. If the path 32858 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32859 # take no chances and rewrite it. 32860 # Note: m4 eats our [], so we need to use [ and ] instead. 32861 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32862 if test "x$has_forbidden_chars" != x; then 32863 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32864 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32865 fi 32866 32867 # Output is in $new_path 32868 32869 windows_path="$new_path" 32870 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32871 unix_path=`$CYGPATH -u "$windows_path"` 32872 new_path="$unix_path" 32873 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32874 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32875 new_path="$unix_path" 32876 fi 32877 32878 # remove trailing .exe if any 32879 new_path="${new_path/%.exe/}" 32880 32881 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32882 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32883 fi 32884 32885 else 32886 # We're on a posix platform. Hooray! :) 32887 # First separate the path from the arguments. This will split at the first 32888 # space. 32889 complete="$OBJC" 32890 path="${complete%% *}" 32891 tmp="$complete EOL" 32892 arguments="${tmp#* }" 32893 32894 # Cannot rely on the command "which" here since it doesn't always work. 32895 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32896 if test -z "$is_absolute_path"; then 32897 # Path to executable is not absolute. Find it. 32898 IFS_save="$IFS" 32899 IFS=: 32900 for p in $PATH; do 32901 if test -f "$p/$path" && test -x "$p/$path"; then 32902 new_path="$p/$path" 32903 break 32904 fi 32905 done 32906 IFS="$IFS_save" 32907 else 32908 # This is an absolute path, we can use it without further modifications. 32909 new_path="$path" 32910 fi 32911 32912 if test "x$new_path" = x; then 32913 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 32914 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 32915 has_space=`$ECHO "$complete" | $GREP " "` 32916 if test "x$has_space" != x; then 32917 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32918 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32919 fi 32920 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 32921 fi 32922 fi 32923 32924 # Now join together the path and the arguments once again 32925 if test "x$arguments" != xEOL; then 32926 new_complete="$new_path ${arguments% *}" 32927 else 32928 new_complete="$new_path" 32929 fi 32930 32931 if test "x$complete" != "x$new_complete"; then 32932 OBJC="$new_complete" 32933 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJC to \"$new_complete\"" >&5 32934 $as_echo "$as_me: Rewriting OBJC to \"$new_complete\"" >&6;} 32935 fi 32936 32937 32938 32939 # Publish this variable in the help. 32940 32941 32942 if test "x$LIPO" = x; then 32943 # The variable is not set by user, try to locate tool using the code snippet 32944 for ac_prog in lipo 32945 do 32946 # Extract the first word of "$ac_prog", so it can be a program name with args. 32947 set dummy $ac_prog; ac_word=$2 32948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32949 $as_echo_n "checking for $ac_word... " >&6; } 32950 if ${ac_cv_path_LIPO+:} false; then : 32951 $as_echo_n "(cached) " >&6 32952 else 32953 case $LIPO in 32954 [\\/]* | ?:[\\/]*) 32955 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 32956 ;; 32957 *) 32958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32959 for as_dir in $PATH 32960 do 32961 IFS=$as_save_IFS 32962 test -z "$as_dir" && as_dir=. 32963 for ac_exec_ext in '' $ac_executable_extensions; do 32964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32965 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 32966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32967 break 2 32968 fi 32969 done 32970 done 32971 IFS=$as_save_IFS 32972 32973 ;; 32974 esac 32975 fi 32976 LIPO=$ac_cv_path_LIPO 32977 if test -n "$LIPO"; then 32978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 32979 $as_echo "$LIPO" >&6; } 32980 else 32981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32982 $as_echo "no" >&6; } 32983 fi 32984 32985 32986 test -n "$LIPO" && break 32987 done 32988 32989 else 32990 # The variable is set, but is it from the command line or the environment? 32991 32992 # Try to remove the string !LIPO! from our list. 32993 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 32994 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 32995 # If it failed, the variable was not from the command line. Ignore it, 32996 # but warn the user (except for BASH, which is always set by the calling BASH). 32997 if test "xLIPO" != xBASH; then 32998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 32999 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 33000 fi 33001 # Try to locate tool using the code snippet 33002 for ac_prog in lipo 33003 do 33004 # Extract the first word of "$ac_prog", so it can be a program name with args. 33005 set dummy $ac_prog; ac_word=$2 33006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33007 $as_echo_n "checking for $ac_word... " >&6; } 33008 if ${ac_cv_path_LIPO+:} false; then : 33009 $as_echo_n "(cached) " >&6 33010 else 33011 case $LIPO in 33012 [\\/]* | ?:[\\/]*) 33013 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33014 ;; 33015 *) 33016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33017 for as_dir in $PATH 33018 do 33019 IFS=$as_save_IFS 33020 test -z "$as_dir" && as_dir=. 33021 for ac_exec_ext in '' $ac_executable_extensions; do 33022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33023 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33025 break 2 33026 fi 33027 done 33028 done 33029 IFS=$as_save_IFS 33030 33031 ;; 33032 esac 33033 fi 33034 LIPO=$ac_cv_path_LIPO 33035 if test -n "$LIPO"; then 33036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33037 $as_echo "$LIPO" >&6; } 33038 else 33039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33040 $as_echo "no" >&6; } 33041 fi 33042 33043 33044 test -n "$LIPO" && break 33045 done 33046 33047 else 33048 # If it succeeded, then it was overridden by the user. We will use it 33049 # for the tool. 33050 33051 # First remove it from the list of overridden variables, so we can test 33052 # for unknown variables in the end. 33053 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33054 33055 # Check if the provided tool contains a complete path. 33056 tool_specified="$LIPO" 33057 tool_basename="${tool_specified##*/}" 33058 if test "x$tool_basename" = "x$tool_specified"; then 33059 # A command without a complete path is provided, search $PATH. 33060 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 33061 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 33062 # Extract the first word of "$tool_basename", so it can be a program name with args. 33063 set dummy $tool_basename; ac_word=$2 33064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33065 $as_echo_n "checking for $ac_word... " >&6; } 33066 if ${ac_cv_path_LIPO+:} false; then : 33067 $as_echo_n "(cached) " >&6 33068 else 33069 case $LIPO in 33070 [\\/]* | ?:[\\/]*) 33071 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33072 ;; 33073 *) 33074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33075 for as_dir in $PATH 33076 do 33077 IFS=$as_save_IFS 33078 test -z "$as_dir" && as_dir=. 33079 for ac_exec_ext in '' $ac_executable_extensions; do 33080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33081 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33083 break 2 33084 fi 33085 done 33086 done 33087 IFS=$as_save_IFS 33088 33089 ;; 33090 esac 33091 fi 33092 LIPO=$ac_cv_path_LIPO 33093 if test -n "$LIPO"; then 33094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33095 $as_echo "$LIPO" >&6; } 33096 else 33097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33098 $as_echo "no" >&6; } 33099 fi 33100 33101 33102 if test "x$LIPO" = x; then 33103 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33104 fi 33105 else 33106 # Otherwise we believe it is a complete path. Use it as it is. 33107 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 33108 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 33109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 33110 $as_echo_n "checking for LIPO... " >&6; } 33111 if test ! -x "$tool_specified"; then 33112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33113 $as_echo "not found" >&6; } 33114 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 33115 fi 33116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33117 $as_echo "$tool_specified" >&6; } 33118 fi 33119 fi 33120 fi 33121 33122 33123 33124 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33125 33126 # First separate the path from the arguments. This will split at the first 33127 # space. 33128 complete="$LIPO" 33129 path="${complete%% *}" 33130 tmp="$complete EOL" 33131 arguments="${tmp#* }" 33132 33133 # Input might be given as Windows format, start by converting to 33134 # unix format. 33135 new_path=`$CYGPATH -u "$path"` 33136 33137 # Now try to locate executable using which 33138 new_path=`$WHICH "$new_path" 2> /dev/null` 33139 # bat and cmd files are not always considered executable in cygwin causing which 33140 # to not find them 33141 if test "x$new_path" = x \ 33142 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33143 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33144 new_path=`$CYGPATH -u "$path"` 33145 fi 33146 if test "x$new_path" = x; then 33147 # Oops. Which didn't find the executable. 33148 # The splitting of arguments from the executable at a space might have been incorrect, 33149 # since paths with space are more likely in Windows. Give it another try with the whole 33150 # argument. 33151 path="$complete" 33152 arguments="EOL" 33153 new_path=`$CYGPATH -u "$path"` 33154 new_path=`$WHICH "$new_path" 2> /dev/null` 33155 # bat and cmd files are not always considered executable in cygwin causing which 33156 # to not find them 33157 if test "x$new_path" = x \ 33158 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33159 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33160 new_path=`$CYGPATH -u "$path"` 33161 fi 33162 if test "x$new_path" = x; then 33163 # It's still not found. Now this is an unrecoverable error. 33164 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33165 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33166 has_space=`$ECHO "$complete" | $GREP " "` 33167 if test "x$has_space" != x; then 33168 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33169 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33170 fi 33171 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33172 fi 33173 fi 33174 33175 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33176 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33177 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33178 # "foo.exe" is OK but "foo" is an error. 33179 # 33180 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33181 # It is also a way to make sure we got the proper file name for the real test later on. 33182 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33183 if test "x$test_shortpath" = x; then 33184 # Short path failed, file does not exist as specified. 33185 # Try adding .exe or .cmd 33186 if test -f "${new_path}.exe"; then 33187 input_to_shortpath="${new_path}.exe" 33188 elif test -f "${new_path}.cmd"; then 33189 input_to_shortpath="${new_path}.cmd" 33190 else 33191 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 33192 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 33193 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33194 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33195 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33196 fi 33197 else 33198 input_to_shortpath="$new_path" 33199 fi 33200 33201 # Call helper function which possibly converts this using DOS-style short mode. 33202 # If so, the updated path is stored in $new_path. 33203 new_path="$input_to_shortpath" 33204 33205 input_path="$input_to_shortpath" 33206 # Check if we need to convert this using DOS-style short mode. If the path 33207 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33208 # take no chances and rewrite it. 33209 # Note: m4 eats our [], so we need to use [ and ] instead. 33210 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33211 if test "x$has_forbidden_chars" != x; then 33212 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33213 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33214 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33215 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33216 # Going to short mode and back again did indeed matter. Since short mode is 33217 # case insensitive, let's make it lowercase to improve readability. 33218 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33219 # Now convert it back to Unix-style (cygpath) 33220 input_path=`$CYGPATH -u "$shortmode_path"` 33221 new_path="$input_path" 33222 fi 33223 fi 33224 33225 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33226 if test "x$test_cygdrive_prefix" = x; then 33227 # As a simple fix, exclude /usr/bin since it's not a real path. 33228 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33229 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33230 # a path prefixed by /cygdrive for fixpath to work. 33231 new_path="$CYGWIN_ROOT_PATH$input_path" 33232 fi 33233 fi 33234 33235 # remove trailing .exe if any 33236 new_path="${new_path/%.exe/}" 33237 33238 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33239 33240 # First separate the path from the arguments. This will split at the first 33241 # space. 33242 complete="$LIPO" 33243 path="${complete%% *}" 33244 tmp="$complete EOL" 33245 arguments="${tmp#* }" 33246 33247 # Input might be given as Windows format, start by converting to 33248 # unix format. 33249 new_path="$path" 33250 33251 windows_path="$new_path" 33252 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33253 unix_path=`$CYGPATH -u "$windows_path"` 33254 new_path="$unix_path" 33255 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33256 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33257 new_path="$unix_path" 33258 fi 33259 33260 33261 # Now try to locate executable using which 33262 new_path=`$WHICH "$new_path" 2> /dev/null` 33263 33264 if test "x$new_path" = x; then 33265 # Oops. Which didn't find the executable. 33266 # The splitting of arguments from the executable at a space might have been incorrect, 33267 # since paths with space are more likely in Windows. Give it another try with the whole 33268 # argument. 33269 path="$complete" 33270 arguments="EOL" 33271 new_path="$path" 33272 33273 windows_path="$new_path" 33274 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33275 unix_path=`$CYGPATH -u "$windows_path"` 33276 new_path="$unix_path" 33277 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33278 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33279 new_path="$unix_path" 33280 fi 33281 33282 33283 new_path=`$WHICH "$new_path" 2> /dev/null` 33284 # bat and cmd files are not always considered executable in MSYS causing which 33285 # to not find them 33286 if test "x$new_path" = x \ 33287 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33288 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33289 new_path="$path" 33290 33291 windows_path="$new_path" 33292 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33293 unix_path=`$CYGPATH -u "$windows_path"` 33294 new_path="$unix_path" 33295 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33296 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33297 new_path="$unix_path" 33298 fi 33299 33300 fi 33301 33302 if test "x$new_path" = x; then 33303 # It's still not found. Now this is an unrecoverable error. 33304 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33305 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33306 has_space=`$ECHO "$complete" | $GREP " "` 33307 if test "x$has_space" != x; then 33308 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33309 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33310 fi 33311 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33312 fi 33313 fi 33314 33315 # Now new_path has a complete unix path to the binary 33316 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33317 # Keep paths in /bin as-is, but remove trailing .exe if any 33318 new_path="${new_path/%.exe/}" 33319 # Do not save /bin paths to all_fixpath_prefixes! 33320 else 33321 # Not in mixed or Windows style, start by that. 33322 new_path=`cmd //c echo $new_path` 33323 33324 input_path="$new_path" 33325 # Check if we need to convert this using DOS-style short mode. If the path 33326 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33327 # take no chances and rewrite it. 33328 # Note: m4 eats our [], so we need to use [ and ] instead. 33329 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33330 if test "x$has_forbidden_chars" != x; then 33331 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33332 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33333 fi 33334 33335 # Output is in $new_path 33336 33337 windows_path="$new_path" 33338 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33339 unix_path=`$CYGPATH -u "$windows_path"` 33340 new_path="$unix_path" 33341 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33342 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33343 new_path="$unix_path" 33344 fi 33345 33346 # remove trailing .exe if any 33347 new_path="${new_path/%.exe/}" 33348 33349 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33350 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33351 fi 33352 33353 else 33354 # We're on a posix platform. Hooray! :) 33355 # First separate the path from the arguments. This will split at the first 33356 # space. 33357 complete="$LIPO" 33358 path="${complete%% *}" 33359 tmp="$complete EOL" 33360 arguments="${tmp#* }" 33361 33362 # Cannot rely on the command "which" here since it doesn't always work. 33363 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33364 if test -z "$is_absolute_path"; then 33365 # Path to executable is not absolute. Find it. 33366 IFS_save="$IFS" 33367 IFS=: 33368 for p in $PATH; do 33369 if test -f "$p/$path" && test -x "$p/$path"; then 33370 new_path="$p/$path" 33371 break 33372 fi 33373 done 33374 IFS="$IFS_save" 33375 else 33376 # This is an absolute path, we can use it without further modifications. 33377 new_path="$path" 33378 fi 33379 33380 if test "x$new_path" = x; then 33381 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33382 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33383 has_space=`$ECHO "$complete" | $GREP " "` 33384 if test "x$has_space" != x; then 33385 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33386 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33387 fi 33388 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33389 fi 33390 fi 33391 33392 # Now join together the path and the arguments once again 33393 if test "x$arguments" != xEOL; then 33394 new_complete="$new_path ${arguments% *}" 33395 else 33396 new_complete="$new_path" 33397 fi 33398 33399 if test "x$complete" != "x$new_complete"; then 33400 LIPO="$new_complete" 33401 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 33402 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 33403 fi 33404 33405 else 33406 OBJC= 33407 fi 33408 33409 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 33410 # Extract the first word of "mt", so it can be a program name with args. 33411 set dummy mt; ac_word=$2 33412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33413 $as_echo_n "checking for $ac_word... " >&6; } 33414 if ${ac_cv_prog_MT+:} false; then : 33415 $as_echo_n "(cached) " >&6 33416 else 33417 if test -n "$MT"; then 33418 ac_cv_prog_MT="$MT" # Let the user override the test. 33419 else 33420 ac_prog_rejected=no 33421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33422 for as_dir in $PATH 33423 do 33424 IFS=$as_save_IFS 33425 test -z "$as_dir" && as_dir=. 33426 for ac_exec_ext in '' $ac_executable_extensions; do 33427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33428 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 33429 ac_prog_rejected=yes 33430 continue 33431 fi 33432 ac_cv_prog_MT="mt" 33433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33434 break 2 33435 fi 33436 done 33437 done 33438 IFS=$as_save_IFS 33439 33440 if test $ac_prog_rejected = yes; then 33441 # We found a bogon in the path, so make sure we never use it. 33442 set dummy $ac_cv_prog_MT 33443 shift 33444 if test $# != 0; then 33445 # We chose a different compiler from the bogus one. 33446 # However, it has the same basename, so the bogon will be chosen 33447 # first if we set MT to just the basename; use the full file name. 33448 shift 33449 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 33450 fi 33451 fi 33452 fi 33453 fi 33454 MT=$ac_cv_prog_MT 33455 if test -n "$MT"; then 33456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 33457 $as_echo "$MT" >&6; } 33458 else 33459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33460 $as_echo "no" >&6; } 33461 fi 33462 33463 33464 33465 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33466 33467 # First separate the path from the arguments. This will split at the first 33468 # space. 33469 complete="$MT" 33470 path="${complete%% *}" 33471 tmp="$complete EOL" 33472 arguments="${tmp#* }" 33473 33474 # Input might be given as Windows format, start by converting to 33475 # unix format. 33476 new_path=`$CYGPATH -u "$path"` 33477 33478 # Now try to locate executable using which 33479 new_path=`$WHICH "$new_path" 2> /dev/null` 33480 # bat and cmd files are not always considered executable in cygwin causing which 33481 # to not find them 33482 if test "x$new_path" = x \ 33483 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33484 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33485 new_path=`$CYGPATH -u "$path"` 33486 fi 33487 if test "x$new_path" = x; then 33488 # Oops. Which didn't find the executable. 33489 # The splitting of arguments from the executable at a space might have been incorrect, 33490 # since paths with space are more likely in Windows. Give it another try with the whole 33491 # argument. 33492 path="$complete" 33493 arguments="EOL" 33494 new_path=`$CYGPATH -u "$path"` 33495 new_path=`$WHICH "$new_path" 2> /dev/null` 33496 # bat and cmd files are not always considered executable in cygwin causing which 33497 # to not find them 33498 if test "x$new_path" = x \ 33499 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33500 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33501 new_path=`$CYGPATH -u "$path"` 33502 fi 33503 if test "x$new_path" = x; then 33504 # It's still not found. Now this is an unrecoverable error. 33505 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 33506 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 33507 has_space=`$ECHO "$complete" | $GREP " "` 33508 if test "x$has_space" != x; then 33509 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33510 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33511 fi 33512 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33513 fi 33514 fi 33515 33516 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33517 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33518 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33519 # "foo.exe" is OK but "foo" is an error. 33520 # 33521 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33522 # It is also a way to make sure we got the proper file name for the real test later on. 33523 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33524 if test "x$test_shortpath" = x; then 33525 # Short path failed, file does not exist as specified. 33526 # Try adding .exe or .cmd 33527 if test -f "${new_path}.exe"; then 33528 input_to_shortpath="${new_path}.exe" 33529 elif test -f "${new_path}.cmd"; then 33530 input_to_shortpath="${new_path}.cmd" 33531 else 33532 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 33533 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 33534 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33535 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33536 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33537 fi 33538 else 33539 input_to_shortpath="$new_path" 33540 fi 33541 33542 # Call helper function which possibly converts this using DOS-style short mode. 33543 # If so, the updated path is stored in $new_path. 33544 new_path="$input_to_shortpath" 33545 33546 input_path="$input_to_shortpath" 33547 # Check if we need to convert this using DOS-style short mode. If the path 33548 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33549 # take no chances and rewrite it. 33550 # Note: m4 eats our [], so we need to use [ and ] instead. 33551 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33552 if test "x$has_forbidden_chars" != x; then 33553 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33554 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33555 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33556 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33557 # Going to short mode and back again did indeed matter. Since short mode is 33558 # case insensitive, let's make it lowercase to improve readability. 33559 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33560 # Now convert it back to Unix-style (cygpath) 33561 input_path=`$CYGPATH -u "$shortmode_path"` 33562 new_path="$input_path" 33563 fi 33564 fi 33565 33566 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33567 if test "x$test_cygdrive_prefix" = x; then 33568 # As a simple fix, exclude /usr/bin since it's not a real path. 33569 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33570 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33571 # a path prefixed by /cygdrive for fixpath to work. 33572 new_path="$CYGWIN_ROOT_PATH$input_path" 33573 fi 33574 fi 33575 33576 # remove trailing .exe if any 33577 new_path="${new_path/%.exe/}" 33578 33579 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33580 33581 # First separate the path from the arguments. This will split at the first 33582 # space. 33583 complete="$MT" 33584 path="${complete%% *}" 33585 tmp="$complete EOL" 33586 arguments="${tmp#* }" 33587 33588 # Input might be given as Windows format, start by converting to 33589 # unix format. 33590 new_path="$path" 33591 33592 windows_path="$new_path" 33593 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33594 unix_path=`$CYGPATH -u "$windows_path"` 33595 new_path="$unix_path" 33596 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33597 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33598 new_path="$unix_path" 33599 fi 33600 33601 33602 # Now try to locate executable using which 33603 new_path=`$WHICH "$new_path" 2> /dev/null` 33604 33605 if test "x$new_path" = x; then 33606 # Oops. Which didn't find the executable. 33607 # The splitting of arguments from the executable at a space might have been incorrect, 33608 # since paths with space are more likely in Windows. Give it another try with the whole 33609 # argument. 33610 path="$complete" 33611 arguments="EOL" 33612 new_path="$path" 33613 33614 windows_path="$new_path" 33615 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33616 unix_path=`$CYGPATH -u "$windows_path"` 33617 new_path="$unix_path" 33618 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33619 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33620 new_path="$unix_path" 33621 fi 33622 33623 33624 new_path=`$WHICH "$new_path" 2> /dev/null` 33625 # bat and cmd files are not always considered executable in MSYS causing which 33626 # to not find them 33627 if test "x$new_path" = x \ 33628 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33629 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33630 new_path="$path" 33631 33632 windows_path="$new_path" 33633 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33634 unix_path=`$CYGPATH -u "$windows_path"` 33635 new_path="$unix_path" 33636 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33637 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33638 new_path="$unix_path" 33639 fi 33640 33641 fi 33642 33643 if test "x$new_path" = x; then 33644 # It's still not found. Now this is an unrecoverable error. 33645 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 33646 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 33647 has_space=`$ECHO "$complete" | $GREP " "` 33648 if test "x$has_space" != x; then 33649 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33650 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33651 fi 33652 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33653 fi 33654 fi 33655 33656 # Now new_path has a complete unix path to the binary 33657 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33658 # Keep paths in /bin as-is, but remove trailing .exe if any 33659 new_path="${new_path/%.exe/}" 33660 # Do not save /bin paths to all_fixpath_prefixes! 33661 else 33662 # Not in mixed or Windows style, start by that. 33663 new_path=`cmd //c echo $new_path` 33664 33665 input_path="$new_path" 33666 # Check if we need to convert this using DOS-style short mode. If the path 33667 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33668 # take no chances and rewrite it. 33669 # Note: m4 eats our [], so we need to use [ and ] instead. 33670 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33671 if test "x$has_forbidden_chars" != x; then 33672 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33673 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33674 fi 33675 33676 # Output is in $new_path 33677 33678 windows_path="$new_path" 33679 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33680 unix_path=`$CYGPATH -u "$windows_path"` 33681 new_path="$unix_path" 33682 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33683 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33684 new_path="$unix_path" 33685 fi 33686 33687 # remove trailing .exe if any 33688 new_path="${new_path/%.exe/}" 33689 33690 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33691 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33692 fi 33693 33694 else 33695 # We're on a posix platform. Hooray! :) 33696 # First separate the path from the arguments. This will split at the first 33697 # space. 33698 complete="$MT" 33699 path="${complete%% *}" 33700 tmp="$complete EOL" 33701 arguments="${tmp#* }" 33702 33703 # Cannot rely on the command "which" here since it doesn't always work. 33704 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33705 if test -z "$is_absolute_path"; then 33706 # Path to executable is not absolute. Find it. 33707 IFS_save="$IFS" 33708 IFS=: 33709 for p in $PATH; do 33710 if test -f "$p/$path" && test -x "$p/$path"; then 33711 new_path="$p/$path" 33712 break 33713 fi 33714 done 33715 IFS="$IFS_save" 33716 else 33717 # This is an absolute path, we can use it without further modifications. 33718 new_path="$path" 33719 fi 33720 33721 if test "x$new_path" = x; then 33722 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 33723 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 33724 has_space=`$ECHO "$complete" | $GREP " "` 33725 if test "x$has_space" != x; then 33726 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33727 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33728 fi 33729 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33730 fi 33731 fi 33732 33733 # Now join together the path and the arguments once again 33734 if test "x$arguments" != xEOL; then 33735 new_complete="$new_path ${arguments% *}" 33736 else 33737 new_complete="$new_path" 33738 fi 33739 33740 if test "x$complete" != "x$new_complete"; then 33741 MT="$new_complete" 33742 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 33743 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 33744 fi 33745 33746 # Setup the resource compiler (RC) 33747 # Extract the first word of "rc", so it can be a program name with args. 33748 set dummy rc; ac_word=$2 33749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33750 $as_echo_n "checking for $ac_word... " >&6; } 33751 if ${ac_cv_prog_RC+:} false; then : 33752 $as_echo_n "(cached) " >&6 33753 else 33754 if test -n "$RC"; then 33755 ac_cv_prog_RC="$RC" # Let the user override the test. 33756 else 33757 ac_prog_rejected=no 33758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33759 for as_dir in $PATH 33760 do 33761 IFS=$as_save_IFS 33762 test -z "$as_dir" && as_dir=. 33763 for ac_exec_ext in '' $ac_executable_extensions; do 33764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33765 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 33766 ac_prog_rejected=yes 33767 continue 33768 fi 33769 ac_cv_prog_RC="rc" 33770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33771 break 2 33772 fi 33773 done 33774 done 33775 IFS=$as_save_IFS 33776 33777 if test $ac_prog_rejected = yes; then 33778 # We found a bogon in the path, so make sure we never use it. 33779 set dummy $ac_cv_prog_RC 33780 shift 33781 if test $# != 0; then 33782 # We chose a different compiler from the bogus one. 33783 # However, it has the same basename, so the bogon will be chosen 33784 # first if we set RC to just the basename; use the full file name. 33785 shift 33786 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 33787 fi 33788 fi 33789 fi 33790 fi 33791 RC=$ac_cv_prog_RC 33792 if test -n "$RC"; then 33793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 33794 $as_echo "$RC" >&6; } 33795 else 33796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33797 $as_echo "no" >&6; } 33798 fi 33799 33800 33801 33802 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33803 33804 # First separate the path from the arguments. This will split at the first 33805 # space. 33806 complete="$RC" 33807 path="${complete%% *}" 33808 tmp="$complete EOL" 33809 arguments="${tmp#* }" 33810 33811 # Input might be given as Windows format, start by converting to 33812 # unix format. 33813 new_path=`$CYGPATH -u "$path"` 33814 33815 # Now try to locate executable using which 33816 new_path=`$WHICH "$new_path" 2> /dev/null` 33817 # bat and cmd files are not always considered executable in cygwin causing which 33818 # to not find them 33819 if test "x$new_path" = x \ 33820 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33821 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33822 new_path=`$CYGPATH -u "$path"` 33823 fi 33824 if test "x$new_path" = x; then 33825 # Oops. Which didn't find the executable. 33826 # The splitting of arguments from the executable at a space might have been incorrect, 33827 # since paths with space are more likely in Windows. Give it another try with the whole 33828 # argument. 33829 path="$complete" 33830 arguments="EOL" 33831 new_path=`$CYGPATH -u "$path"` 33832 new_path=`$WHICH "$new_path" 2> /dev/null` 33833 # bat and cmd files are not always considered executable in cygwin causing which 33834 # to not find them 33835 if test "x$new_path" = x \ 33836 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33837 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33838 new_path=`$CYGPATH -u "$path"` 33839 fi 33840 if test "x$new_path" = x; then 33841 # It's still not found. Now this is an unrecoverable error. 33842 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 33843 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 33844 has_space=`$ECHO "$complete" | $GREP " "` 33845 if test "x$has_space" != x; then 33846 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33847 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33848 fi 33849 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 33850 fi 33851 fi 33852 33853 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33854 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33855 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33856 # "foo.exe" is OK but "foo" is an error. 33857 # 33858 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33859 # It is also a way to make sure we got the proper file name for the real test later on. 33860 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33861 if test "x$test_shortpath" = x; then 33862 # Short path failed, file does not exist as specified. 33863 # Try adding .exe or .cmd 33864 if test -f "${new_path}.exe"; then 33865 input_to_shortpath="${new_path}.exe" 33866 elif test -f "${new_path}.cmd"; then 33867 input_to_shortpath="${new_path}.cmd" 33868 else 33869 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 33870 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 33871 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33872 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33873 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 33874 fi 33875 else 33876 input_to_shortpath="$new_path" 33877 fi 33878 33879 # Call helper function which possibly converts this using DOS-style short mode. 33880 # If so, the updated path is stored in $new_path. 33881 new_path="$input_to_shortpath" 33882 33883 input_path="$input_to_shortpath" 33884 # Check if we need to convert this using DOS-style short mode. If the path 33885 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33886 # take no chances and rewrite it. 33887 # Note: m4 eats our [], so we need to use [ and ] instead. 33888 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33889 if test "x$has_forbidden_chars" != x; then 33890 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33891 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33892 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33893 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33894 # Going to short mode and back again did indeed matter. Since short mode is 33895 # case insensitive, let's make it lowercase to improve readability. 33896 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33897 # Now convert it back to Unix-style (cygpath) 33898 input_path=`$CYGPATH -u "$shortmode_path"` 33899 new_path="$input_path" 33900 fi 33901 fi 33902 33903 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33904 if test "x$test_cygdrive_prefix" = x; then 33905 # As a simple fix, exclude /usr/bin since it's not a real path. 33906 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33907 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33908 # a path prefixed by /cygdrive for fixpath to work. 33909 new_path="$CYGWIN_ROOT_PATH$input_path" 33910 fi 33911 fi 33912 33913 # remove trailing .exe if any 33914 new_path="${new_path/%.exe/}" 33915 33916 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33917 33918 # First separate the path from the arguments. This will split at the first 33919 # space. 33920 complete="$RC" 33921 path="${complete%% *}" 33922 tmp="$complete EOL" 33923 arguments="${tmp#* }" 33924 33925 # Input might be given as Windows format, start by converting to 33926 # unix format. 33927 new_path="$path" 33928 33929 windows_path="$new_path" 33930 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33931 unix_path=`$CYGPATH -u "$windows_path"` 33932 new_path="$unix_path" 33933 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33934 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33935 new_path="$unix_path" 33936 fi 33937 33938 33939 # Now try to locate executable using which 33940 new_path=`$WHICH "$new_path" 2> /dev/null` 33941 33942 if test "x$new_path" = x; then 33943 # Oops. Which didn't find the executable. 33944 # The splitting of arguments from the executable at a space might have been incorrect, 33945 # since paths with space are more likely in Windows. Give it another try with the whole 33946 # argument. 33947 path="$complete" 33948 arguments="EOL" 33949 new_path="$path" 33950 33951 windows_path="$new_path" 33952 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33953 unix_path=`$CYGPATH -u "$windows_path"` 33954 new_path="$unix_path" 33955 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33956 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33957 new_path="$unix_path" 33958 fi 33959 33960 33961 new_path=`$WHICH "$new_path" 2> /dev/null` 33962 # bat and cmd files are not always considered executable in MSYS causing which 33963 # to not find them 33964 if test "x$new_path" = x \ 33965 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33966 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33967 new_path="$path" 33968 33969 windows_path="$new_path" 33970 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33971 unix_path=`$CYGPATH -u "$windows_path"` 33972 new_path="$unix_path" 33973 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33974 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33975 new_path="$unix_path" 33976 fi 33977 33978 fi 33979 33980 if test "x$new_path" = x; then 33981 # It's still not found. Now this is an unrecoverable error. 33982 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 33983 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 33984 has_space=`$ECHO "$complete" | $GREP " "` 33985 if test "x$has_space" != x; then 33986 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33987 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33988 fi 33989 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 33990 fi 33991 fi 33992 33993 # Now new_path has a complete unix path to the binary 33994 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33995 # Keep paths in /bin as-is, but remove trailing .exe if any 33996 new_path="${new_path/%.exe/}" 33997 # Do not save /bin paths to all_fixpath_prefixes! 33998 else 33999 # Not in mixed or Windows style, start by that. 34000 new_path=`cmd //c echo $new_path` 34001 34002 input_path="$new_path" 34003 # Check if we need to convert this using DOS-style short mode. If the path 34004 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34005 # take no chances and rewrite it. 34006 # Note: m4 eats our [], so we need to use [ and ] instead. 34007 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34008 if test "x$has_forbidden_chars" != x; then 34009 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34010 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34011 fi 34012 34013 # Output is in $new_path 34014 34015 windows_path="$new_path" 34016 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34017 unix_path=`$CYGPATH -u "$windows_path"` 34018 new_path="$unix_path" 34019 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34020 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34021 new_path="$unix_path" 34022 fi 34023 34024 # remove trailing .exe if any 34025 new_path="${new_path/%.exe/}" 34026 34027 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34028 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34029 fi 34030 34031 else 34032 # We're on a posix platform. Hooray! :) 34033 # First separate the path from the arguments. This will split at the first 34034 # space. 34035 complete="$RC" 34036 path="${complete%% *}" 34037 tmp="$complete EOL" 34038 arguments="${tmp#* }" 34039 34040 # Cannot rely on the command "which" here since it doesn't always work. 34041 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34042 if test -z "$is_absolute_path"; then 34043 # Path to executable is not absolute. Find it. 34044 IFS_save="$IFS" 34045 IFS=: 34046 for p in $PATH; do 34047 if test -f "$p/$path" && test -x "$p/$path"; then 34048 new_path="$p/$path" 34049 break 34050 fi 34051 done 34052 IFS="$IFS_save" 34053 else 34054 # This is an absolute path, we can use it without further modifications. 34055 new_path="$path" 34056 fi 34057 34058 if test "x$new_path" = x; then 34059 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34060 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34061 has_space=`$ECHO "$complete" | $GREP " "` 34062 if test "x$has_space" != x; then 34063 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34064 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34065 fi 34066 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34067 fi 34068 fi 34069 34070 # Now join together the path and the arguments once again 34071 if test "x$arguments" != xEOL; then 34072 new_complete="$new_path ${arguments% *}" 34073 else 34074 new_complete="$new_path" 34075 fi 34076 34077 if test "x$complete" != "x$new_complete"; then 34078 RC="$new_complete" 34079 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 34080 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 34081 fi 34082 34083 # Extract the first word of "dumpbin", so it can be a program name with args. 34084 set dummy dumpbin; ac_word=$2 34085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34086 $as_echo_n "checking for $ac_word... " >&6; } 34087 if ${ac_cv_prog_DUMPBIN+:} false; then : 34088 $as_echo_n "(cached) " >&6 34089 else 34090 if test -n "$DUMPBIN"; then 34091 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 34092 else 34093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34094 for as_dir in $PATH 34095 do 34096 IFS=$as_save_IFS 34097 test -z "$as_dir" && as_dir=. 34098 for ac_exec_ext in '' $ac_executable_extensions; do 34099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34100 ac_cv_prog_DUMPBIN="dumpbin" 34101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34102 break 2 34103 fi 34104 done 34105 done 34106 IFS=$as_save_IFS 34107 34108 fi 34109 fi 34110 DUMPBIN=$ac_cv_prog_DUMPBIN 34111 if test -n "$DUMPBIN"; then 34112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 34113 $as_echo "$DUMPBIN" >&6; } 34114 else 34115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34116 $as_echo "no" >&6; } 34117 fi 34118 34119 34120 34121 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34122 34123 # First separate the path from the arguments. This will split at the first 34124 # space. 34125 complete="$DUMPBIN" 34126 path="${complete%% *}" 34127 tmp="$complete EOL" 34128 arguments="${tmp#* }" 34129 34130 # Input might be given as Windows format, start by converting to 34131 # unix format. 34132 new_path=`$CYGPATH -u "$path"` 34133 34134 # Now try to locate executable using which 34135 new_path=`$WHICH "$new_path" 2> /dev/null` 34136 # bat and cmd files are not always considered executable in cygwin causing which 34137 # to not find them 34138 if test "x$new_path" = x \ 34139 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34140 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34141 new_path=`$CYGPATH -u "$path"` 34142 fi 34143 if test "x$new_path" = x; then 34144 # Oops. Which didn't find the executable. 34145 # The splitting of arguments from the executable at a space might have been incorrect, 34146 # since paths with space are more likely in Windows. Give it another try with the whole 34147 # argument. 34148 path="$complete" 34149 arguments="EOL" 34150 new_path=`$CYGPATH -u "$path"` 34151 new_path=`$WHICH "$new_path" 2> /dev/null` 34152 # bat and cmd files are not always considered executable in cygwin causing which 34153 # to not find them 34154 if test "x$new_path" = x \ 34155 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34156 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34157 new_path=`$CYGPATH -u "$path"` 34158 fi 34159 if test "x$new_path" = x; then 34160 # It's still not found. Now this is an unrecoverable error. 34161 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34162 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34163 has_space=`$ECHO "$complete" | $GREP " "` 34164 if test "x$has_space" != x; then 34165 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34166 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34167 fi 34168 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34169 fi 34170 fi 34171 34172 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34173 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34174 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34175 # "foo.exe" is OK but "foo" is an error. 34176 # 34177 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34178 # It is also a way to make sure we got the proper file name for the real test later on. 34179 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34180 if test "x$test_shortpath" = x; then 34181 # Short path failed, file does not exist as specified. 34182 # Try adding .exe or .cmd 34183 if test -f "${new_path}.exe"; then 34184 input_to_shortpath="${new_path}.exe" 34185 elif test -f "${new_path}.cmd"; then 34186 input_to_shortpath="${new_path}.cmd" 34187 else 34188 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 34189 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 34190 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34191 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34192 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34193 fi 34194 else 34195 input_to_shortpath="$new_path" 34196 fi 34197 34198 # Call helper function which possibly converts this using DOS-style short mode. 34199 # If so, the updated path is stored in $new_path. 34200 new_path="$input_to_shortpath" 34201 34202 input_path="$input_to_shortpath" 34203 # Check if we need to convert this using DOS-style short mode. If the path 34204 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34205 # take no chances and rewrite it. 34206 # Note: m4 eats our [], so we need to use [ and ] instead. 34207 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34208 if test "x$has_forbidden_chars" != x; then 34209 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34210 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34211 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34212 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34213 # Going to short mode and back again did indeed matter. Since short mode is 34214 # case insensitive, let's make it lowercase to improve readability. 34215 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34216 # Now convert it back to Unix-style (cygpath) 34217 input_path=`$CYGPATH -u "$shortmode_path"` 34218 new_path="$input_path" 34219 fi 34220 fi 34221 34222 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34223 if test "x$test_cygdrive_prefix" = x; then 34224 # As a simple fix, exclude /usr/bin since it's not a real path. 34225 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34226 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34227 # a path prefixed by /cygdrive for fixpath to work. 34228 new_path="$CYGWIN_ROOT_PATH$input_path" 34229 fi 34230 fi 34231 34232 # remove trailing .exe if any 34233 new_path="${new_path/%.exe/}" 34234 34235 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34236 34237 # First separate the path from the arguments. This will split at the first 34238 # space. 34239 complete="$DUMPBIN" 34240 path="${complete%% *}" 34241 tmp="$complete EOL" 34242 arguments="${tmp#* }" 34243 34244 # Input might be given as Windows format, start by converting to 34245 # unix format. 34246 new_path="$path" 34247 34248 windows_path="$new_path" 34249 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34250 unix_path=`$CYGPATH -u "$windows_path"` 34251 new_path="$unix_path" 34252 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34253 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34254 new_path="$unix_path" 34255 fi 34256 34257 34258 # Now try to locate executable using which 34259 new_path=`$WHICH "$new_path" 2> /dev/null` 34260 34261 if test "x$new_path" = x; then 34262 # Oops. Which didn't find the executable. 34263 # The splitting of arguments from the executable at a space might have been incorrect, 34264 # since paths with space are more likely in Windows. Give it another try with the whole 34265 # argument. 34266 path="$complete" 34267 arguments="EOL" 34268 new_path="$path" 34269 34270 windows_path="$new_path" 34271 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34272 unix_path=`$CYGPATH -u "$windows_path"` 34273 new_path="$unix_path" 34274 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34275 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34276 new_path="$unix_path" 34277 fi 34278 34279 34280 new_path=`$WHICH "$new_path" 2> /dev/null` 34281 # bat and cmd files are not always considered executable in MSYS causing which 34282 # to not find them 34283 if test "x$new_path" = x \ 34284 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34285 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34286 new_path="$path" 34287 34288 windows_path="$new_path" 34289 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34290 unix_path=`$CYGPATH -u "$windows_path"` 34291 new_path="$unix_path" 34292 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34293 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34294 new_path="$unix_path" 34295 fi 34296 34297 fi 34298 34299 if test "x$new_path" = x; then 34300 # It's still not found. Now this is an unrecoverable error. 34301 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34302 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34303 has_space=`$ECHO "$complete" | $GREP " "` 34304 if test "x$has_space" != x; then 34305 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34306 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34307 fi 34308 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34309 fi 34310 fi 34311 34312 # Now new_path has a complete unix path to the binary 34313 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34314 # Keep paths in /bin as-is, but remove trailing .exe if any 34315 new_path="${new_path/%.exe/}" 34316 # Do not save /bin paths to all_fixpath_prefixes! 34317 else 34318 # Not in mixed or Windows style, start by that. 34319 new_path=`cmd //c echo $new_path` 34320 34321 input_path="$new_path" 34322 # Check if we need to convert this using DOS-style short mode. If the path 34323 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34324 # take no chances and rewrite it. 34325 # Note: m4 eats our [], so we need to use [ and ] instead. 34326 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34327 if test "x$has_forbidden_chars" != x; then 34328 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34329 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34330 fi 34331 34332 # Output is in $new_path 34333 34334 windows_path="$new_path" 34335 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34336 unix_path=`$CYGPATH -u "$windows_path"` 34337 new_path="$unix_path" 34338 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34339 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34340 new_path="$unix_path" 34341 fi 34342 34343 # remove trailing .exe if any 34344 new_path="${new_path/%.exe/}" 34345 34346 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34347 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34348 fi 34349 34350 else 34351 # We're on a posix platform. Hooray! :) 34352 # First separate the path from the arguments. This will split at the first 34353 # space. 34354 complete="$DUMPBIN" 34355 path="${complete%% *}" 34356 tmp="$complete EOL" 34357 arguments="${tmp#* }" 34358 34359 # Cannot rely on the command "which" here since it doesn't always work. 34360 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34361 if test -z "$is_absolute_path"; then 34362 # Path to executable is not absolute. Find it. 34363 IFS_save="$IFS" 34364 IFS=: 34365 for p in $PATH; do 34366 if test -f "$p/$path" && test -x "$p/$path"; then 34367 new_path="$p/$path" 34368 break 34369 fi 34370 done 34371 IFS="$IFS_save" 34372 else 34373 # This is an absolute path, we can use it without further modifications. 34374 new_path="$path" 34375 fi 34376 34377 if test "x$new_path" = x; then 34378 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34379 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34380 has_space=`$ECHO "$complete" | $GREP " "` 34381 if test "x$has_space" != x; then 34382 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34383 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34384 fi 34385 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34386 fi 34387 fi 34388 34389 # Now join together the path and the arguments once again 34390 if test "x$arguments" != xEOL; then 34391 new_complete="$new_path ${arguments% *}" 34392 else 34393 new_complete="$new_path" 34394 fi 34395 34396 if test "x$complete" != "x$new_complete"; then 34397 DUMPBIN="$new_complete" 34398 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 34399 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 34400 fi 34401 34402 # We need to check for 'msbuild.exe' because at the place where we expect to 34403 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 34404 # won't find the 'msbuild.exe' executable in that case (and the 34405 # 'ac_executable_extensions' is unusable due to performance reasons). 34406 # Notice that we intentionally don't fix up the path to MSBUILD because we 34407 # will call it in a DOS shell during freetype detection on Windows (see 34408 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 34409 # Extract the first word of "msbuild.exe", so it can be a program name with args. 34410 set dummy msbuild.exe; ac_word=$2 34411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34412 $as_echo_n "checking for $ac_word... " >&6; } 34413 if ${ac_cv_prog_MSBUILD+:} false; then : 34414 $as_echo_n "(cached) " >&6 34415 else 34416 if test -n "$MSBUILD"; then 34417 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 34418 else 34419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34420 for as_dir in $PATH 34421 do 34422 IFS=$as_save_IFS 34423 test -z "$as_dir" && as_dir=. 34424 for ac_exec_ext in '' $ac_executable_extensions; do 34425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34426 ac_cv_prog_MSBUILD="msbuild.exe" 34427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34428 break 2 34429 fi 34430 done 34431 done 34432 IFS=$as_save_IFS 34433 34434 fi 34435 fi 34436 MSBUILD=$ac_cv_prog_MSBUILD 34437 if test -n "$MSBUILD"; then 34438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 34439 $as_echo "$MSBUILD" >&6; } 34440 else 34441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34442 $as_echo "no" >&6; } 34443 fi 34444 34445 34446 fi 34447 34448 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 34449 34450 34451 # Publish this variable in the help. 34452 34453 34454 if test "x$STRIP" = x; then 34455 # The variable is not set by user, try to locate tool using the code snippet 34456 for ac_prog in strip 34457 do 34458 # Extract the first word of "$ac_prog", so it can be a program name with args. 34459 set dummy $ac_prog; ac_word=$2 34460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34461 $as_echo_n "checking for $ac_word... " >&6; } 34462 if ${ac_cv_path_STRIP+:} false; then : 34463 $as_echo_n "(cached) " >&6 34464 else 34465 case $STRIP in 34466 [\\/]* | ?:[\\/]*) 34467 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 34468 ;; 34469 *) 34470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34471 for as_dir in $PATH 34472 do 34473 IFS=$as_save_IFS 34474 test -z "$as_dir" && as_dir=. 34475 for ac_exec_ext in '' $ac_executable_extensions; do 34476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34477 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 34478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34479 break 2 34480 fi 34481 done 34482 done 34483 IFS=$as_save_IFS 34484 34485 ;; 34486 esac 34487 fi 34488 STRIP=$ac_cv_path_STRIP 34489 if test -n "$STRIP"; then 34490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 34491 $as_echo "$STRIP" >&6; } 34492 else 34493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34494 $as_echo "no" >&6; } 34495 fi 34496 34497 34498 test -n "$STRIP" && break 34499 done 34500 34501 else 34502 # The variable is set, but is it from the command line or the environment? 34503 34504 # Try to remove the string !STRIP! from our list. 34505 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 34506 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 34507 # If it failed, the variable was not from the command line. Ignore it, 34508 # but warn the user (except for BASH, which is always set by the calling BASH). 34509 if test "xSTRIP" != xBASH; then 34510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 34511 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 34512 fi 34513 # Try to locate tool using the code snippet 34514 for ac_prog in strip 34515 do 34516 # Extract the first word of "$ac_prog", so it can be a program name with args. 34517 set dummy $ac_prog; ac_word=$2 34518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34519 $as_echo_n "checking for $ac_word... " >&6; } 34520 if ${ac_cv_path_STRIP+:} false; then : 34521 $as_echo_n "(cached) " >&6 34522 else 34523 case $STRIP in 34524 [\\/]* | ?:[\\/]*) 34525 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 34526 ;; 34527 *) 34528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34529 for as_dir in $PATH 34530 do 34531 IFS=$as_save_IFS 34532 test -z "$as_dir" && as_dir=. 34533 for ac_exec_ext in '' $ac_executable_extensions; do 34534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34535 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 34536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34537 break 2 34538 fi 34539 done 34540 done 34541 IFS=$as_save_IFS 34542 34543 ;; 34544 esac 34545 fi 34546 STRIP=$ac_cv_path_STRIP 34547 if test -n "$STRIP"; then 34548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 34549 $as_echo "$STRIP" >&6; } 34550 else 34551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34552 $as_echo "no" >&6; } 34553 fi 34554 34555 34556 test -n "$STRIP" && break 34557 done 34558 34559 else 34560 # If it succeeded, then it was overridden by the user. We will use it 34561 # for the tool. 34562 34563 # First remove it from the list of overridden variables, so we can test 34564 # for unknown variables in the end. 34565 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 34566 34567 # Check if the provided tool contains a complete path. 34568 tool_specified="$STRIP" 34569 tool_basename="${tool_specified##*/}" 34570 if test "x$tool_basename" = "x$tool_specified"; then 34571 # A command without a complete path is provided, search $PATH. 34572 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 34573 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 34574 # Extract the first word of "$tool_basename", so it can be a program name with args. 34575 set dummy $tool_basename; ac_word=$2 34576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34577 $as_echo_n "checking for $ac_word... " >&6; } 34578 if ${ac_cv_path_STRIP+:} false; then : 34579 $as_echo_n "(cached) " >&6 34580 else 34581 case $STRIP in 34582 [\\/]* | ?:[\\/]*) 34583 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 34584 ;; 34585 *) 34586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34587 for as_dir in $PATH 34588 do 34589 IFS=$as_save_IFS 34590 test -z "$as_dir" && as_dir=. 34591 for ac_exec_ext in '' $ac_executable_extensions; do 34592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34593 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 34594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34595 break 2 34596 fi 34597 done 34598 done 34599 IFS=$as_save_IFS 34600 34601 ;; 34602 esac 34603 fi 34604 STRIP=$ac_cv_path_STRIP 34605 if test -n "$STRIP"; then 34606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 34607 $as_echo "$STRIP" >&6; } 34608 else 34609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34610 $as_echo "no" >&6; } 34611 fi 34612 34613 34614 if test "x$STRIP" = x; then 34615 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 34616 fi 34617 else 34618 # Otherwise we believe it is a complete path. Use it as it is. 34619 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 34620 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 34621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 34622 $as_echo_n "checking for STRIP... " >&6; } 34623 if test ! -x "$tool_specified"; then 34624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 34625 $as_echo "not found" >&6; } 34626 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 34627 fi 34628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 34629 $as_echo "$tool_specified" >&6; } 34630 fi 34631 fi 34632 fi 34633 34634 34635 34636 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34637 34638 # First separate the path from the arguments. This will split at the first 34639 # space. 34640 complete="$STRIP" 34641 path="${complete%% *}" 34642 tmp="$complete EOL" 34643 arguments="${tmp#* }" 34644 34645 # Input might be given as Windows format, start by converting to 34646 # unix format. 34647 new_path=`$CYGPATH -u "$path"` 34648 34649 # Now try to locate executable using which 34650 new_path=`$WHICH "$new_path" 2> /dev/null` 34651 # bat and cmd files are not always considered executable in cygwin causing which 34652 # to not find them 34653 if test "x$new_path" = x \ 34654 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34655 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34656 new_path=`$CYGPATH -u "$path"` 34657 fi 34658 if test "x$new_path" = x; then 34659 # Oops. Which didn't find the executable. 34660 # The splitting of arguments from the executable at a space might have been incorrect, 34661 # since paths with space are more likely in Windows. Give it another try with the whole 34662 # argument. 34663 path="$complete" 34664 arguments="EOL" 34665 new_path=`$CYGPATH -u "$path"` 34666 new_path=`$WHICH "$new_path" 2> /dev/null` 34667 # bat and cmd files are not always considered executable in cygwin causing which 34668 # to not find them 34669 if test "x$new_path" = x \ 34670 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34671 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34672 new_path=`$CYGPATH -u "$path"` 34673 fi 34674 if test "x$new_path" = x; then 34675 # It's still not found. Now this is an unrecoverable error. 34676 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 34677 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 34678 has_space=`$ECHO "$complete" | $GREP " "` 34679 if test "x$has_space" != x; then 34680 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34681 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34682 fi 34683 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 34684 fi 34685 fi 34686 34687 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34688 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34689 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34690 # "foo.exe" is OK but "foo" is an error. 34691 # 34692 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34693 # It is also a way to make sure we got the proper file name for the real test later on. 34694 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34695 if test "x$test_shortpath" = x; then 34696 # Short path failed, file does not exist as specified. 34697 # Try adding .exe or .cmd 34698 if test -f "${new_path}.exe"; then 34699 input_to_shortpath="${new_path}.exe" 34700 elif test -f "${new_path}.cmd"; then 34701 input_to_shortpath="${new_path}.cmd" 34702 else 34703 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 34704 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 34705 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34706 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34707 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 34708 fi 34709 else 34710 input_to_shortpath="$new_path" 34711 fi 34712 34713 # Call helper function which possibly converts this using DOS-style short mode. 34714 # If so, the updated path is stored in $new_path. 34715 new_path="$input_to_shortpath" 34716 34717 input_path="$input_to_shortpath" 34718 # Check if we need to convert this using DOS-style short mode. If the path 34719 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34720 # take no chances and rewrite it. 34721 # Note: m4 eats our [], so we need to use [ and ] instead. 34722 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34723 if test "x$has_forbidden_chars" != x; then 34724 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34725 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34726 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34727 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34728 # Going to short mode and back again did indeed matter. Since short mode is 34729 # case insensitive, let's make it lowercase to improve readability. 34730 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34731 # Now convert it back to Unix-style (cygpath) 34732 input_path=`$CYGPATH -u "$shortmode_path"` 34733 new_path="$input_path" 34734 fi 34735 fi 34736 34737 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34738 if test "x$test_cygdrive_prefix" = x; then 34739 # As a simple fix, exclude /usr/bin since it's not a real path. 34740 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34741 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34742 # a path prefixed by /cygdrive for fixpath to work. 34743 new_path="$CYGWIN_ROOT_PATH$input_path" 34744 fi 34745 fi 34746 34747 # remove trailing .exe if any 34748 new_path="${new_path/%.exe/}" 34749 34750 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34751 34752 # First separate the path from the arguments. This will split at the first 34753 # space. 34754 complete="$STRIP" 34755 path="${complete%% *}" 34756 tmp="$complete EOL" 34757 arguments="${tmp#* }" 34758 34759 # Input might be given as Windows format, start by converting to 34760 # unix format. 34761 new_path="$path" 34762 34763 windows_path="$new_path" 34764 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34765 unix_path=`$CYGPATH -u "$windows_path"` 34766 new_path="$unix_path" 34767 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34768 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34769 new_path="$unix_path" 34770 fi 34771 34772 34773 # Now try to locate executable using which 34774 new_path=`$WHICH "$new_path" 2> /dev/null` 34775 34776 if test "x$new_path" = x; then 34777 # Oops. Which didn't find the executable. 34778 # The splitting of arguments from the executable at a space might have been incorrect, 34779 # since paths with space are more likely in Windows. Give it another try with the whole 34780 # argument. 34781 path="$complete" 34782 arguments="EOL" 34783 new_path="$path" 34784 34785 windows_path="$new_path" 34786 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34787 unix_path=`$CYGPATH -u "$windows_path"` 34788 new_path="$unix_path" 34789 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34790 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34791 new_path="$unix_path" 34792 fi 34793 34794 34795 new_path=`$WHICH "$new_path" 2> /dev/null` 34796 # bat and cmd files are not always considered executable in MSYS causing which 34797 # to not find them 34798 if test "x$new_path" = x \ 34799 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34800 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34801 new_path="$path" 34802 34803 windows_path="$new_path" 34804 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34805 unix_path=`$CYGPATH -u "$windows_path"` 34806 new_path="$unix_path" 34807 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34808 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34809 new_path="$unix_path" 34810 fi 34811 34812 fi 34813 34814 if test "x$new_path" = x; then 34815 # It's still not found. Now this is an unrecoverable error. 34816 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 34817 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 34818 has_space=`$ECHO "$complete" | $GREP " "` 34819 if test "x$has_space" != x; then 34820 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34821 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34822 fi 34823 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 34824 fi 34825 fi 34826 34827 # Now new_path has a complete unix path to the binary 34828 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34829 # Keep paths in /bin as-is, but remove trailing .exe if any 34830 new_path="${new_path/%.exe/}" 34831 # Do not save /bin paths to all_fixpath_prefixes! 34832 else 34833 # Not in mixed or Windows style, start by that. 34834 new_path=`cmd //c echo $new_path` 34835 34836 input_path="$new_path" 34837 # Check if we need to convert this using DOS-style short mode. If the path 34838 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34839 # take no chances and rewrite it. 34840 # Note: m4 eats our [], so we need to use [ and ] instead. 34841 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34842 if test "x$has_forbidden_chars" != x; then 34843 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34844 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34845 fi 34846 34847 # Output is in $new_path 34848 34849 windows_path="$new_path" 34850 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34851 unix_path=`$CYGPATH -u "$windows_path"` 34852 new_path="$unix_path" 34853 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34854 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34855 new_path="$unix_path" 34856 fi 34857 34858 # remove trailing .exe if any 34859 new_path="${new_path/%.exe/}" 34860 34861 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34862 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34863 fi 34864 34865 else 34866 # We're on a posix platform. Hooray! :) 34867 # First separate the path from the arguments. This will split at the first 34868 # space. 34869 complete="$STRIP" 34870 path="${complete%% *}" 34871 tmp="$complete EOL" 34872 arguments="${tmp#* }" 34873 34874 # Cannot rely on the command "which" here since it doesn't always work. 34875 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34876 if test -z "$is_absolute_path"; then 34877 # Path to executable is not absolute. Find it. 34878 IFS_save="$IFS" 34879 IFS=: 34880 for p in $PATH; do 34881 if test -f "$p/$path" && test -x "$p/$path"; then 34882 new_path="$p/$path" 34883 break 34884 fi 34885 done 34886 IFS="$IFS_save" 34887 else 34888 # This is an absolute path, we can use it without further modifications. 34889 new_path="$path" 34890 fi 34891 34892 if test "x$new_path" = x; then 34893 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 34894 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 34895 has_space=`$ECHO "$complete" | $GREP " "` 34896 if test "x$has_space" != x; then 34897 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34898 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34899 fi 34900 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 34901 fi 34902 fi 34903 34904 # Now join together the path and the arguments once again 34905 if test "x$arguments" != xEOL; then 34906 new_complete="$new_path ${arguments% *}" 34907 else 34908 new_complete="$new_path" 34909 fi 34910 34911 if test "x$complete" != "x$new_complete"; then 34912 STRIP="$new_complete" 34913 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 34914 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 34915 fi 34916 34917 34918 34919 # Publish this variable in the help. 34920 34921 34922 if test "x$NM" = x; then 34923 # The variable is not set by user, try to locate tool using the code snippet 34924 for ac_prog in nm 34925 do 34926 # Extract the first word of "$ac_prog", so it can be a program name with args. 34927 set dummy $ac_prog; ac_word=$2 34928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34929 $as_echo_n "checking for $ac_word... " >&6; } 34930 if ${ac_cv_path_NM+:} false; then : 34931 $as_echo_n "(cached) " >&6 34932 else 34933 case $NM in 34934 [\\/]* | ?:[\\/]*) 34935 ac_cv_path_NM="$NM" # Let the user override the test with a path. 34936 ;; 34937 *) 34938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34939 for as_dir in $PATH 34940 do 34941 IFS=$as_save_IFS 34942 test -z "$as_dir" && as_dir=. 34943 for ac_exec_ext in '' $ac_executable_extensions; do 34944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34945 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 34946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34947 break 2 34948 fi 34949 done 34950 done 34951 IFS=$as_save_IFS 34952 34953 ;; 34954 esac 34955 fi 34956 NM=$ac_cv_path_NM 34957 if test -n "$NM"; then 34958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 34959 $as_echo "$NM" >&6; } 34960 else 34961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34962 $as_echo "no" >&6; } 34963 fi 34964 34965 34966 test -n "$NM" && break 34967 done 34968 34969 else 34970 # The variable is set, but is it from the command line or the environment? 34971 34972 # Try to remove the string !NM! from our list. 34973 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 34974 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 34975 # If it failed, the variable was not from the command line. Ignore it, 34976 # but warn the user (except for BASH, which is always set by the calling BASH). 34977 if test "xNM" != xBASH; then 34978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 34979 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 34980 fi 34981 # Try to locate tool using the code snippet 34982 for ac_prog in nm 34983 do 34984 # Extract the first word of "$ac_prog", so it can be a program name with args. 34985 set dummy $ac_prog; ac_word=$2 34986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34987 $as_echo_n "checking for $ac_word... " >&6; } 34988 if ${ac_cv_path_NM+:} false; then : 34989 $as_echo_n "(cached) " >&6 34990 else 34991 case $NM in 34992 [\\/]* | ?:[\\/]*) 34993 ac_cv_path_NM="$NM" # Let the user override the test with a path. 34994 ;; 34995 *) 34996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34997 for as_dir in $PATH 34998 do 34999 IFS=$as_save_IFS 35000 test -z "$as_dir" && as_dir=. 35001 for ac_exec_ext in '' $ac_executable_extensions; do 35002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35003 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35005 break 2 35006 fi 35007 done 35008 done 35009 IFS=$as_save_IFS 35010 35011 ;; 35012 esac 35013 fi 35014 NM=$ac_cv_path_NM 35015 if test -n "$NM"; then 35016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35017 $as_echo "$NM" >&6; } 35018 else 35019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35020 $as_echo "no" >&6; } 35021 fi 35022 35023 35024 test -n "$NM" && break 35025 done 35026 35027 else 35028 # If it succeeded, then it was overridden by the user. We will use it 35029 # for the tool. 35030 35031 # First remove it from the list of overridden variables, so we can test 35032 # for unknown variables in the end. 35033 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35034 35035 # Check if the provided tool contains a complete path. 35036 tool_specified="$NM" 35037 tool_basename="${tool_specified##*/}" 35038 if test "x$tool_basename" = "x$tool_specified"; then 35039 # A command without a complete path is provided, search $PATH. 35040 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 35041 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 35042 # Extract the first word of "$tool_basename", so it can be a program name with args. 35043 set dummy $tool_basename; ac_word=$2 35044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35045 $as_echo_n "checking for $ac_word... " >&6; } 35046 if ${ac_cv_path_NM+:} false; then : 35047 $as_echo_n "(cached) " >&6 35048 else 35049 case $NM in 35050 [\\/]* | ?:[\\/]*) 35051 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35052 ;; 35053 *) 35054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35055 for as_dir in $PATH 35056 do 35057 IFS=$as_save_IFS 35058 test -z "$as_dir" && as_dir=. 35059 for ac_exec_ext in '' $ac_executable_extensions; do 35060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35061 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35063 break 2 35064 fi 35065 done 35066 done 35067 IFS=$as_save_IFS 35068 35069 ;; 35070 esac 35071 fi 35072 NM=$ac_cv_path_NM 35073 if test -n "$NM"; then 35074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35075 $as_echo "$NM" >&6; } 35076 else 35077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35078 $as_echo "no" >&6; } 35079 fi 35080 35081 35082 if test "x$NM" = x; then 35083 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35084 fi 35085 else 35086 # Otherwise we believe it is a complete path. Use it as it is. 35087 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 35088 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 35089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 35090 $as_echo_n "checking for NM... " >&6; } 35091 if test ! -x "$tool_specified"; then 35092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35093 $as_echo "not found" >&6; } 35094 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 35095 fi 35096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35097 $as_echo "$tool_specified" >&6; } 35098 fi 35099 fi 35100 fi 35101 35102 35103 35104 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35105 35106 # First separate the path from the arguments. This will split at the first 35107 # space. 35108 complete="$NM" 35109 path="${complete%% *}" 35110 tmp="$complete EOL" 35111 arguments="${tmp#* }" 35112 35113 # Input might be given as Windows format, start by converting to 35114 # unix format. 35115 new_path=`$CYGPATH -u "$path"` 35116 35117 # Now try to locate executable using which 35118 new_path=`$WHICH "$new_path" 2> /dev/null` 35119 # bat and cmd files are not always considered executable in cygwin causing which 35120 # to not find them 35121 if test "x$new_path" = x \ 35122 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35123 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35124 new_path=`$CYGPATH -u "$path"` 35125 fi 35126 if test "x$new_path" = x; then 35127 # Oops. Which didn't find the executable. 35128 # The splitting of arguments from the executable at a space might have been incorrect, 35129 # since paths with space are more likely in Windows. Give it another try with the whole 35130 # argument. 35131 path="$complete" 35132 arguments="EOL" 35133 new_path=`$CYGPATH -u "$path"` 35134 new_path=`$WHICH "$new_path" 2> /dev/null` 35135 # bat and cmd files are not always considered executable in cygwin causing which 35136 # to not find them 35137 if test "x$new_path" = x \ 35138 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35139 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35140 new_path=`$CYGPATH -u "$path"` 35141 fi 35142 if test "x$new_path" = x; then 35143 # It's still not found. Now this is an unrecoverable error. 35144 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35145 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35146 has_space=`$ECHO "$complete" | $GREP " "` 35147 if test "x$has_space" != x; then 35148 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35149 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35150 fi 35151 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35152 fi 35153 fi 35154 35155 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35156 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35157 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35158 # "foo.exe" is OK but "foo" is an error. 35159 # 35160 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35161 # It is also a way to make sure we got the proper file name for the real test later on. 35162 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35163 if test "x$test_shortpath" = x; then 35164 # Short path failed, file does not exist as specified. 35165 # Try adding .exe or .cmd 35166 if test -f "${new_path}.exe"; then 35167 input_to_shortpath="${new_path}.exe" 35168 elif test -f "${new_path}.cmd"; then 35169 input_to_shortpath="${new_path}.cmd" 35170 else 35171 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 35172 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 35173 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35174 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35175 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35176 fi 35177 else 35178 input_to_shortpath="$new_path" 35179 fi 35180 35181 # Call helper function which possibly converts this using DOS-style short mode. 35182 # If so, the updated path is stored in $new_path. 35183 new_path="$input_to_shortpath" 35184 35185 input_path="$input_to_shortpath" 35186 # Check if we need to convert this using DOS-style short mode. If the path 35187 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35188 # take no chances and rewrite it. 35189 # Note: m4 eats our [], so we need to use [ and ] instead. 35190 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35191 if test "x$has_forbidden_chars" != x; then 35192 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35193 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35194 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35195 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35196 # Going to short mode and back again did indeed matter. Since short mode is 35197 # case insensitive, let's make it lowercase to improve readability. 35198 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35199 # Now convert it back to Unix-style (cygpath) 35200 input_path=`$CYGPATH -u "$shortmode_path"` 35201 new_path="$input_path" 35202 fi 35203 fi 35204 35205 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35206 if test "x$test_cygdrive_prefix" = x; then 35207 # As a simple fix, exclude /usr/bin since it's not a real path. 35208 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35209 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35210 # a path prefixed by /cygdrive for fixpath to work. 35211 new_path="$CYGWIN_ROOT_PATH$input_path" 35212 fi 35213 fi 35214 35215 # remove trailing .exe if any 35216 new_path="${new_path/%.exe/}" 35217 35218 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35219 35220 # First separate the path from the arguments. This will split at the first 35221 # space. 35222 complete="$NM" 35223 path="${complete%% *}" 35224 tmp="$complete EOL" 35225 arguments="${tmp#* }" 35226 35227 # Input might be given as Windows format, start by converting to 35228 # unix format. 35229 new_path="$path" 35230 35231 windows_path="$new_path" 35232 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35233 unix_path=`$CYGPATH -u "$windows_path"` 35234 new_path="$unix_path" 35235 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35236 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35237 new_path="$unix_path" 35238 fi 35239 35240 35241 # Now try to locate executable using which 35242 new_path=`$WHICH "$new_path" 2> /dev/null` 35243 35244 if test "x$new_path" = x; then 35245 # Oops. Which didn't find the executable. 35246 # The splitting of arguments from the executable at a space might have been incorrect, 35247 # since paths with space are more likely in Windows. Give it another try with the whole 35248 # argument. 35249 path="$complete" 35250 arguments="EOL" 35251 new_path="$path" 35252 35253 windows_path="$new_path" 35254 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35255 unix_path=`$CYGPATH -u "$windows_path"` 35256 new_path="$unix_path" 35257 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35258 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35259 new_path="$unix_path" 35260 fi 35261 35262 35263 new_path=`$WHICH "$new_path" 2> /dev/null` 35264 # bat and cmd files are not always considered executable in MSYS causing which 35265 # to not find them 35266 if test "x$new_path" = x \ 35267 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35268 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35269 new_path="$path" 35270 35271 windows_path="$new_path" 35272 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35273 unix_path=`$CYGPATH -u "$windows_path"` 35274 new_path="$unix_path" 35275 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35276 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35277 new_path="$unix_path" 35278 fi 35279 35280 fi 35281 35282 if test "x$new_path" = x; then 35283 # It's still not found. Now this is an unrecoverable error. 35284 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35285 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35286 has_space=`$ECHO "$complete" | $GREP " "` 35287 if test "x$has_space" != x; then 35288 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35289 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35290 fi 35291 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35292 fi 35293 fi 35294 35295 # Now new_path has a complete unix path to the binary 35296 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35297 # Keep paths in /bin as-is, but remove trailing .exe if any 35298 new_path="${new_path/%.exe/}" 35299 # Do not save /bin paths to all_fixpath_prefixes! 35300 else 35301 # Not in mixed or Windows style, start by that. 35302 new_path=`cmd //c echo $new_path` 35303 35304 input_path="$new_path" 35305 # Check if we need to convert this using DOS-style short mode. If the path 35306 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35307 # take no chances and rewrite it. 35308 # Note: m4 eats our [], so we need to use [ and ] instead. 35309 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35310 if test "x$has_forbidden_chars" != x; then 35311 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35312 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35313 fi 35314 35315 # Output is in $new_path 35316 35317 windows_path="$new_path" 35318 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35319 unix_path=`$CYGPATH -u "$windows_path"` 35320 new_path="$unix_path" 35321 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35322 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35323 new_path="$unix_path" 35324 fi 35325 35326 # remove trailing .exe if any 35327 new_path="${new_path/%.exe/}" 35328 35329 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35330 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35331 fi 35332 35333 else 35334 # We're on a posix platform. Hooray! :) 35335 # First separate the path from the arguments. This will split at the first 35336 # space. 35337 complete="$NM" 35338 path="${complete%% *}" 35339 tmp="$complete EOL" 35340 arguments="${tmp#* }" 35341 35342 # Cannot rely on the command "which" here since it doesn't always work. 35343 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35344 if test -z "$is_absolute_path"; then 35345 # Path to executable is not absolute. Find it. 35346 IFS_save="$IFS" 35347 IFS=: 35348 for p in $PATH; do 35349 if test -f "$p/$path" && test -x "$p/$path"; then 35350 new_path="$p/$path" 35351 break 35352 fi 35353 done 35354 IFS="$IFS_save" 35355 else 35356 # This is an absolute path, we can use it without further modifications. 35357 new_path="$path" 35358 fi 35359 35360 if test "x$new_path" = x; then 35361 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35362 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35363 has_space=`$ECHO "$complete" | $GREP " "` 35364 if test "x$has_space" != x; then 35365 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35366 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35367 fi 35368 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35369 fi 35370 fi 35371 35372 # Now join together the path and the arguments once again 35373 if test "x$arguments" != xEOL; then 35374 new_complete="$new_path ${arguments% *}" 35375 else 35376 new_complete="$new_path" 35377 fi 35378 35379 if test "x$complete" != "x$new_complete"; then 35380 NM="$new_complete" 35381 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 35382 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 35383 fi 35384 35385 35386 35387 # Publish this variable in the help. 35388 35389 35390 if test "x$GNM" = x; then 35391 # The variable is not set by user, try to locate tool using the code snippet 35392 for ac_prog in gnm 35393 do 35394 # Extract the first word of "$ac_prog", so it can be a program name with args. 35395 set dummy $ac_prog; ac_word=$2 35396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35397 $as_echo_n "checking for $ac_word... " >&6; } 35398 if ${ac_cv_path_GNM+:} false; then : 35399 $as_echo_n "(cached) " >&6 35400 else 35401 case $GNM in 35402 [\\/]* | ?:[\\/]*) 35403 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 35404 ;; 35405 *) 35406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35407 for as_dir in $PATH 35408 do 35409 IFS=$as_save_IFS 35410 test -z "$as_dir" && as_dir=. 35411 for ac_exec_ext in '' $ac_executable_extensions; do 35412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35413 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 35414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35415 break 2 35416 fi 35417 done 35418 done 35419 IFS=$as_save_IFS 35420 35421 ;; 35422 esac 35423 fi 35424 GNM=$ac_cv_path_GNM 35425 if test -n "$GNM"; then 35426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 35427 $as_echo "$GNM" >&6; } 35428 else 35429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35430 $as_echo "no" >&6; } 35431 fi 35432 35433 35434 test -n "$GNM" && break 35435 done 35436 35437 else 35438 # The variable is set, but is it from the command line or the environment? 35439 35440 # Try to remove the string !GNM! from our list. 35441 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 35442 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35443 # If it failed, the variable was not from the command line. Ignore it, 35444 # but warn the user (except for BASH, which is always set by the calling BASH). 35445 if test "xGNM" != xBASH; then 35446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 35447 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 35448 fi 35449 # Try to locate tool using the code snippet 35450 for ac_prog in gnm 35451 do 35452 # Extract the first word of "$ac_prog", so it can be a program name with args. 35453 set dummy $ac_prog; ac_word=$2 35454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35455 $as_echo_n "checking for $ac_word... " >&6; } 35456 if ${ac_cv_path_GNM+:} false; then : 35457 $as_echo_n "(cached) " >&6 35458 else 35459 case $GNM in 35460 [\\/]* | ?:[\\/]*) 35461 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 35462 ;; 35463 *) 35464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35465 for as_dir in $PATH 35466 do 35467 IFS=$as_save_IFS 35468 test -z "$as_dir" && as_dir=. 35469 for ac_exec_ext in '' $ac_executable_extensions; do 35470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35471 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 35472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35473 break 2 35474 fi 35475 done 35476 done 35477 IFS=$as_save_IFS 35478 35479 ;; 35480 esac 35481 fi 35482 GNM=$ac_cv_path_GNM 35483 if test -n "$GNM"; then 35484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 35485 $as_echo "$GNM" >&6; } 35486 else 35487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35488 $as_echo "no" >&6; } 35489 fi 35490 35491 35492 test -n "$GNM" && break 35493 done 35494 35495 else 35496 # If it succeeded, then it was overridden by the user. We will use it 35497 # for the tool. 35498 35499 # First remove it from the list of overridden variables, so we can test 35500 # for unknown variables in the end. 35501 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35502 35503 # Check if the provided tool contains a complete path. 35504 tool_specified="$GNM" 35505 tool_basename="${tool_specified##*/}" 35506 if test "x$tool_basename" = "x$tool_specified"; then 35507 # A command without a complete path is provided, search $PATH. 35508 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 35509 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 35510 # Extract the first word of "$tool_basename", so it can be a program name with args. 35511 set dummy $tool_basename; ac_word=$2 35512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35513 $as_echo_n "checking for $ac_word... " >&6; } 35514 if ${ac_cv_path_GNM+:} false; then : 35515 $as_echo_n "(cached) " >&6 35516 else 35517 case $GNM in 35518 [\\/]* | ?:[\\/]*) 35519 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 35520 ;; 35521 *) 35522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35523 for as_dir in $PATH 35524 do 35525 IFS=$as_save_IFS 35526 test -z "$as_dir" && as_dir=. 35527 for ac_exec_ext in '' $ac_executable_extensions; do 35528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35529 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 35530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35531 break 2 35532 fi 35533 done 35534 done 35535 IFS=$as_save_IFS 35536 35537 ;; 35538 esac 35539 fi 35540 GNM=$ac_cv_path_GNM 35541 if test -n "$GNM"; then 35542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 35543 $as_echo "$GNM" >&6; } 35544 else 35545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35546 $as_echo "no" >&6; } 35547 fi 35548 35549 35550 if test "x$GNM" = x; then 35551 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35552 fi 35553 else 35554 # Otherwise we believe it is a complete path. Use it as it is. 35555 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 35556 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 35557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 35558 $as_echo_n "checking for GNM... " >&6; } 35559 if test ! -x "$tool_specified"; then 35560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35561 $as_echo "not found" >&6; } 35562 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 35563 fi 35564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35565 $as_echo "$tool_specified" >&6; } 35566 fi 35567 fi 35568 fi 35569 35570 35571 35572 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35573 35574 # First separate the path from the arguments. This will split at the first 35575 # space. 35576 complete="$GNM" 35577 path="${complete%% *}" 35578 tmp="$complete EOL" 35579 arguments="${tmp#* }" 35580 35581 # Input might be given as Windows format, start by converting to 35582 # unix format. 35583 new_path=`$CYGPATH -u "$path"` 35584 35585 # Now try to locate executable using which 35586 new_path=`$WHICH "$new_path" 2> /dev/null` 35587 # bat and cmd files are not always considered executable in cygwin causing which 35588 # to not find them 35589 if test "x$new_path" = x \ 35590 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35591 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35592 new_path=`$CYGPATH -u "$path"` 35593 fi 35594 if test "x$new_path" = x; then 35595 # Oops. Which didn't find the executable. 35596 # The splitting of arguments from the executable at a space might have been incorrect, 35597 # since paths with space are more likely in Windows. Give it another try with the whole 35598 # argument. 35599 path="$complete" 35600 arguments="EOL" 35601 new_path=`$CYGPATH -u "$path"` 35602 new_path=`$WHICH "$new_path" 2> /dev/null` 35603 # bat and cmd files are not always considered executable in cygwin causing which 35604 # to not find them 35605 if test "x$new_path" = x \ 35606 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35607 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35608 new_path=`$CYGPATH -u "$path"` 35609 fi 35610 if test "x$new_path" = x; then 35611 # It's still not found. Now this is an unrecoverable error. 35612 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 35613 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 35614 has_space=`$ECHO "$complete" | $GREP " "` 35615 if test "x$has_space" != x; then 35616 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35617 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35618 fi 35619 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 35620 fi 35621 fi 35622 35623 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35624 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35625 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35626 # "foo.exe" is OK but "foo" is an error. 35627 # 35628 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35629 # It is also a way to make sure we got the proper file name for the real test later on. 35630 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35631 if test "x$test_shortpath" = x; then 35632 # Short path failed, file does not exist as specified. 35633 # Try adding .exe or .cmd 35634 if test -f "${new_path}.exe"; then 35635 input_to_shortpath="${new_path}.exe" 35636 elif test -f "${new_path}.cmd"; then 35637 input_to_shortpath="${new_path}.cmd" 35638 else 35639 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 35640 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 35641 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35642 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35643 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 35644 fi 35645 else 35646 input_to_shortpath="$new_path" 35647 fi 35648 35649 # Call helper function which possibly converts this using DOS-style short mode. 35650 # If so, the updated path is stored in $new_path. 35651 new_path="$input_to_shortpath" 35652 35653 input_path="$input_to_shortpath" 35654 # Check if we need to convert this using DOS-style short mode. If the path 35655 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35656 # take no chances and rewrite it. 35657 # Note: m4 eats our [], so we need to use [ and ] instead. 35658 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35659 if test "x$has_forbidden_chars" != x; then 35660 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35661 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35662 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35663 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35664 # Going to short mode and back again did indeed matter. Since short mode is 35665 # case insensitive, let's make it lowercase to improve readability. 35666 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35667 # Now convert it back to Unix-style (cygpath) 35668 input_path=`$CYGPATH -u "$shortmode_path"` 35669 new_path="$input_path" 35670 fi 35671 fi 35672 35673 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35674 if test "x$test_cygdrive_prefix" = x; then 35675 # As a simple fix, exclude /usr/bin since it's not a real path. 35676 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35677 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35678 # a path prefixed by /cygdrive for fixpath to work. 35679 new_path="$CYGWIN_ROOT_PATH$input_path" 35680 fi 35681 fi 35682 35683 # remove trailing .exe if any 35684 new_path="${new_path/%.exe/}" 35685 35686 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35687 35688 # First separate the path from the arguments. This will split at the first 35689 # space. 35690 complete="$GNM" 35691 path="${complete%% *}" 35692 tmp="$complete EOL" 35693 arguments="${tmp#* }" 35694 35695 # Input might be given as Windows format, start by converting to 35696 # unix format. 35697 new_path="$path" 35698 35699 windows_path="$new_path" 35700 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35701 unix_path=`$CYGPATH -u "$windows_path"` 35702 new_path="$unix_path" 35703 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35704 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35705 new_path="$unix_path" 35706 fi 35707 35708 35709 # Now try to locate executable using which 35710 new_path=`$WHICH "$new_path" 2> /dev/null` 35711 35712 if test "x$new_path" = x; then 35713 # Oops. Which didn't find the executable. 35714 # The splitting of arguments from the executable at a space might have been incorrect, 35715 # since paths with space are more likely in Windows. Give it another try with the whole 35716 # argument. 35717 path="$complete" 35718 arguments="EOL" 35719 new_path="$path" 35720 35721 windows_path="$new_path" 35722 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35723 unix_path=`$CYGPATH -u "$windows_path"` 35724 new_path="$unix_path" 35725 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35726 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35727 new_path="$unix_path" 35728 fi 35729 35730 35731 new_path=`$WHICH "$new_path" 2> /dev/null` 35732 # bat and cmd files are not always considered executable in MSYS causing which 35733 # to not find them 35734 if test "x$new_path" = x \ 35735 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35736 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35737 new_path="$path" 35738 35739 windows_path="$new_path" 35740 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35741 unix_path=`$CYGPATH -u "$windows_path"` 35742 new_path="$unix_path" 35743 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35744 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35745 new_path="$unix_path" 35746 fi 35747 35748 fi 35749 35750 if test "x$new_path" = x; then 35751 # It's still not found. Now this is an unrecoverable error. 35752 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 35753 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 35754 has_space=`$ECHO "$complete" | $GREP " "` 35755 if test "x$has_space" != x; then 35756 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35757 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35758 fi 35759 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 35760 fi 35761 fi 35762 35763 # Now new_path has a complete unix path to the binary 35764 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35765 # Keep paths in /bin as-is, but remove trailing .exe if any 35766 new_path="${new_path/%.exe/}" 35767 # Do not save /bin paths to all_fixpath_prefixes! 35768 else 35769 # Not in mixed or Windows style, start by that. 35770 new_path=`cmd //c echo $new_path` 35771 35772 input_path="$new_path" 35773 # Check if we need to convert this using DOS-style short mode. If the path 35774 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35775 # take no chances and rewrite it. 35776 # Note: m4 eats our [], so we need to use [ and ] instead. 35777 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35778 if test "x$has_forbidden_chars" != x; then 35779 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35780 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35781 fi 35782 35783 # Output is in $new_path 35784 35785 windows_path="$new_path" 35786 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35787 unix_path=`$CYGPATH -u "$windows_path"` 35788 new_path="$unix_path" 35789 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35790 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35791 new_path="$unix_path" 35792 fi 35793 35794 # remove trailing .exe if any 35795 new_path="${new_path/%.exe/}" 35796 35797 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35798 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35799 fi 35800 35801 else 35802 # We're on a posix platform. Hooray! :) 35803 # First separate the path from the arguments. This will split at the first 35804 # space. 35805 complete="$GNM" 35806 path="${complete%% *}" 35807 tmp="$complete EOL" 35808 arguments="${tmp#* }" 35809 35810 # Cannot rely on the command "which" here since it doesn't always work. 35811 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35812 if test -z "$is_absolute_path"; then 35813 # Path to executable is not absolute. Find it. 35814 IFS_save="$IFS" 35815 IFS=: 35816 for p in $PATH; do 35817 if test -f "$p/$path" && test -x "$p/$path"; then 35818 new_path="$p/$path" 35819 break 35820 fi 35821 done 35822 IFS="$IFS_save" 35823 else 35824 # This is an absolute path, we can use it without further modifications. 35825 new_path="$path" 35826 fi 35827 35828 if test "x$new_path" = x; then 35829 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 35830 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 35831 has_space=`$ECHO "$complete" | $GREP " "` 35832 if test "x$has_space" != x; then 35833 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35834 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35835 fi 35836 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 35837 fi 35838 fi 35839 35840 # Now join together the path and the arguments once again 35841 if test "x$arguments" != xEOL; then 35842 new_complete="$new_path ${arguments% *}" 35843 else 35844 new_complete="$new_path" 35845 fi 35846 35847 if test "x$complete" != "x$new_complete"; then 35848 GNM="$new_complete" 35849 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 35850 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 35851 fi 35852 35853 35854 35855 35856 # Publish this variable in the help. 35857 35858 35859 if test "x$MCS" = x; then 35860 # The variable is not set by user, try to locate tool using the code snippet 35861 for ac_prog in mcs 35862 do 35863 # Extract the first word of "$ac_prog", so it can be a program name with args. 35864 set dummy $ac_prog; ac_word=$2 35865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35866 $as_echo_n "checking for $ac_word... " >&6; } 35867 if ${ac_cv_path_MCS+:} false; then : 35868 $as_echo_n "(cached) " >&6 35869 else 35870 case $MCS in 35871 [\\/]* | ?:[\\/]*) 35872 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 35873 ;; 35874 *) 35875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35876 for as_dir in $PATH 35877 do 35878 IFS=$as_save_IFS 35879 test -z "$as_dir" && as_dir=. 35880 for ac_exec_ext in '' $ac_executable_extensions; do 35881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35882 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 35883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35884 break 2 35885 fi 35886 done 35887 done 35888 IFS=$as_save_IFS 35889 35890 ;; 35891 esac 35892 fi 35893 MCS=$ac_cv_path_MCS 35894 if test -n "$MCS"; then 35895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 35896 $as_echo "$MCS" >&6; } 35897 else 35898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35899 $as_echo "no" >&6; } 35900 fi 35901 35902 35903 test -n "$MCS" && break 35904 done 35905 35906 else 35907 # The variable is set, but is it from the command line or the environment? 35908 35909 # Try to remove the string !MCS! from our list. 35910 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MCS!/} 35911 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35912 # If it failed, the variable was not from the command line. Ignore it, 35913 # but warn the user (except for BASH, which is always set by the calling BASH). 35914 if test "xMCS" != xBASH; then 35915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&5 35916 $as_echo "$as_me: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&2;} 35917 fi 35918 # Try to locate tool using the code snippet 35919 for ac_prog in mcs 35920 do 35921 # Extract the first word of "$ac_prog", so it can be a program name with args. 35922 set dummy $ac_prog; ac_word=$2 35923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35924 $as_echo_n "checking for $ac_word... " >&6; } 35925 if ${ac_cv_path_MCS+:} false; then : 35926 $as_echo_n "(cached) " >&6 35927 else 35928 case $MCS in 35929 [\\/]* | ?:[\\/]*) 35930 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 35931 ;; 35932 *) 35933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35934 for as_dir in $PATH 35935 do 35936 IFS=$as_save_IFS 35937 test -z "$as_dir" && as_dir=. 35938 for ac_exec_ext in '' $ac_executable_extensions; do 35939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35940 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 35941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35942 break 2 35943 fi 35944 done 35945 done 35946 IFS=$as_save_IFS 35947 35948 ;; 35949 esac 35950 fi 35951 MCS=$ac_cv_path_MCS 35952 if test -n "$MCS"; then 35953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 35954 $as_echo "$MCS" >&6; } 35955 else 35956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35957 $as_echo "no" >&6; } 35958 fi 35959 35960 35961 test -n "$MCS" && break 35962 done 35963 35964 else 35965 # If it succeeded, then it was overridden by the user. We will use it 35966 # for the tool. 35967 35968 # First remove it from the list of overridden variables, so we can test 35969 # for unknown variables in the end. 35970 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35971 35972 # Check if the provided tool contains a complete path. 35973 tool_specified="$MCS" 35974 tool_basename="${tool_specified##*/}" 35975 if test "x$tool_basename" = "x$tool_specified"; then 35976 # A command without a complete path is provided, search $PATH. 35977 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MCS=$tool_basename" >&5 35978 $as_echo "$as_me: Will search for user supplied tool MCS=$tool_basename" >&6;} 35979 # Extract the first word of "$tool_basename", so it can be a program name with args. 35980 set dummy $tool_basename; ac_word=$2 35981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35982 $as_echo_n "checking for $ac_word... " >&6; } 35983 if ${ac_cv_path_MCS+:} false; then : 35984 $as_echo_n "(cached) " >&6 35985 else 35986 case $MCS in 35987 [\\/]* | ?:[\\/]*) 35988 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 35989 ;; 35990 *) 35991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35992 for as_dir in $PATH 35993 do 35994 IFS=$as_save_IFS 35995 test -z "$as_dir" && as_dir=. 35996 for ac_exec_ext in '' $ac_executable_extensions; do 35997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35998 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 35999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36000 break 2 36001 fi 36002 done 36003 done 36004 IFS=$as_save_IFS 36005 36006 ;; 36007 esac 36008 fi 36009 MCS=$ac_cv_path_MCS 36010 if test -n "$MCS"; then 36011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36012 $as_echo "$MCS" >&6; } 36013 else 36014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36015 $as_echo "no" >&6; } 36016 fi 36017 36018 36019 if test "x$MCS" = x; then 36020 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36021 fi 36022 else 36023 # Otherwise we believe it is a complete path. Use it as it is. 36024 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MCS=$tool_specified" >&5 36025 $as_echo "$as_me: Will use user supplied tool MCS=$tool_specified" >&6;} 36026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCS" >&5 36027 $as_echo_n "checking for MCS... " >&6; } 36028 if test ! -x "$tool_specified"; then 36029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36030 $as_echo "not found" >&6; } 36031 as_fn_error $? "User supplied tool MCS=$tool_specified does not exist or is not executable" "$LINENO" 5 36032 fi 36033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36034 $as_echo "$tool_specified" >&6; } 36035 fi 36036 fi 36037 fi 36038 36039 36040 36041 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36042 36043 # First separate the path from the arguments. This will split at the first 36044 # space. 36045 complete="$MCS" 36046 path="${complete%% *}" 36047 tmp="$complete EOL" 36048 arguments="${tmp#* }" 36049 36050 # Input might be given as Windows format, start by converting to 36051 # unix format. 36052 new_path=`$CYGPATH -u "$path"` 36053 36054 # Now try to locate executable using which 36055 new_path=`$WHICH "$new_path" 2> /dev/null` 36056 # bat and cmd files are not always considered executable in cygwin causing which 36057 # to not find them 36058 if test "x$new_path" = x \ 36059 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36060 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36061 new_path=`$CYGPATH -u "$path"` 36062 fi 36063 if test "x$new_path" = x; then 36064 # Oops. Which didn't find the executable. 36065 # The splitting of arguments from the executable at a space might have been incorrect, 36066 # since paths with space are more likely in Windows. Give it another try with the whole 36067 # argument. 36068 path="$complete" 36069 arguments="EOL" 36070 new_path=`$CYGPATH -u "$path"` 36071 new_path=`$WHICH "$new_path" 2> /dev/null` 36072 # bat and cmd files are not always considered executable in cygwin causing which 36073 # to not find them 36074 if test "x$new_path" = x \ 36075 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36076 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36077 new_path=`$CYGPATH -u "$path"` 36078 fi 36079 if test "x$new_path" = x; then 36080 # It's still not found. Now this is an unrecoverable error. 36081 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36082 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36083 has_space=`$ECHO "$complete" | $GREP " "` 36084 if test "x$has_space" != x; then 36085 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36086 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36087 fi 36088 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36089 fi 36090 fi 36091 36092 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36093 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36094 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36095 # "foo.exe" is OK but "foo" is an error. 36096 # 36097 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36098 # It is also a way to make sure we got the proper file name for the real test later on. 36099 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36100 if test "x$test_shortpath" = x; then 36101 # Short path failed, file does not exist as specified. 36102 # Try adding .exe or .cmd 36103 if test -f "${new_path}.exe"; then 36104 input_to_shortpath="${new_path}.exe" 36105 elif test -f "${new_path}.cmd"; then 36106 input_to_shortpath="${new_path}.cmd" 36107 else 36108 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$new_path\", is invalid." >&5 36109 $as_echo "$as_me: The path of MCS, which resolves as \"$new_path\", is invalid." >&6;} 36110 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36111 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36112 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36113 fi 36114 else 36115 input_to_shortpath="$new_path" 36116 fi 36117 36118 # Call helper function which possibly converts this using DOS-style short mode. 36119 # If so, the updated path is stored in $new_path. 36120 new_path="$input_to_shortpath" 36121 36122 input_path="$input_to_shortpath" 36123 # Check if we need to convert this using DOS-style short mode. If the path 36124 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36125 # take no chances and rewrite it. 36126 # Note: m4 eats our [], so we need to use [ and ] instead. 36127 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36128 if test "x$has_forbidden_chars" != x; then 36129 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36130 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36131 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36132 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36133 # Going to short mode and back again did indeed matter. Since short mode is 36134 # case insensitive, let's make it lowercase to improve readability. 36135 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36136 # Now convert it back to Unix-style (cygpath) 36137 input_path=`$CYGPATH -u "$shortmode_path"` 36138 new_path="$input_path" 36139 fi 36140 fi 36141 36142 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36143 if test "x$test_cygdrive_prefix" = x; then 36144 # As a simple fix, exclude /usr/bin since it's not a real path. 36145 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36146 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36147 # a path prefixed by /cygdrive for fixpath to work. 36148 new_path="$CYGWIN_ROOT_PATH$input_path" 36149 fi 36150 fi 36151 36152 # remove trailing .exe if any 36153 new_path="${new_path/%.exe/}" 36154 36155 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36156 36157 # First separate the path from the arguments. This will split at the first 36158 # space. 36159 complete="$MCS" 36160 path="${complete%% *}" 36161 tmp="$complete EOL" 36162 arguments="${tmp#* }" 36163 36164 # Input might be given as Windows format, start by converting to 36165 # unix format. 36166 new_path="$path" 36167 36168 windows_path="$new_path" 36169 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36170 unix_path=`$CYGPATH -u "$windows_path"` 36171 new_path="$unix_path" 36172 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36173 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36174 new_path="$unix_path" 36175 fi 36176 36177 36178 # Now try to locate executable using which 36179 new_path=`$WHICH "$new_path" 2> /dev/null` 36180 36181 if test "x$new_path" = x; then 36182 # Oops. Which didn't find the executable. 36183 # The splitting of arguments from the executable at a space might have been incorrect, 36184 # since paths with space are more likely in Windows. Give it another try with the whole 36185 # argument. 36186 path="$complete" 36187 arguments="EOL" 36188 new_path="$path" 36189 36190 windows_path="$new_path" 36191 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36192 unix_path=`$CYGPATH -u "$windows_path"` 36193 new_path="$unix_path" 36194 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36195 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36196 new_path="$unix_path" 36197 fi 36198 36199 36200 new_path=`$WHICH "$new_path" 2> /dev/null` 36201 # bat and cmd files are not always considered executable in MSYS causing which 36202 # to not find them 36203 if test "x$new_path" = x \ 36204 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36205 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36206 new_path="$path" 36207 36208 windows_path="$new_path" 36209 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36210 unix_path=`$CYGPATH -u "$windows_path"` 36211 new_path="$unix_path" 36212 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36213 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36214 new_path="$unix_path" 36215 fi 36216 36217 fi 36218 36219 if test "x$new_path" = x; then 36220 # It's still not found. Now this is an unrecoverable error. 36221 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36222 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36223 has_space=`$ECHO "$complete" | $GREP " "` 36224 if test "x$has_space" != x; then 36225 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36226 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36227 fi 36228 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36229 fi 36230 fi 36231 36232 # Now new_path has a complete unix path to the binary 36233 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36234 # Keep paths in /bin as-is, but remove trailing .exe if any 36235 new_path="${new_path/%.exe/}" 36236 # Do not save /bin paths to all_fixpath_prefixes! 36237 else 36238 # Not in mixed or Windows style, start by that. 36239 new_path=`cmd //c echo $new_path` 36240 36241 input_path="$new_path" 36242 # Check if we need to convert this using DOS-style short mode. If the path 36243 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36244 # take no chances and rewrite it. 36245 # Note: m4 eats our [], so we need to use [ and ] instead. 36246 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36247 if test "x$has_forbidden_chars" != x; then 36248 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36249 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36250 fi 36251 36252 # Output is in $new_path 36253 36254 windows_path="$new_path" 36255 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36256 unix_path=`$CYGPATH -u "$windows_path"` 36257 new_path="$unix_path" 36258 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36259 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36260 new_path="$unix_path" 36261 fi 36262 36263 # remove trailing .exe if any 36264 new_path="${new_path/%.exe/}" 36265 36266 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36267 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36268 fi 36269 36270 else 36271 # We're on a posix platform. Hooray! :) 36272 # First separate the path from the arguments. This will split at the first 36273 # space. 36274 complete="$MCS" 36275 path="${complete%% *}" 36276 tmp="$complete EOL" 36277 arguments="${tmp#* }" 36278 36279 # Cannot rely on the command "which" here since it doesn't always work. 36280 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36281 if test -z "$is_absolute_path"; then 36282 # Path to executable is not absolute. Find it. 36283 IFS_save="$IFS" 36284 IFS=: 36285 for p in $PATH; do 36286 if test -f "$p/$path" && test -x "$p/$path"; then 36287 new_path="$p/$path" 36288 break 36289 fi 36290 done 36291 IFS="$IFS_save" 36292 else 36293 # This is an absolute path, we can use it without further modifications. 36294 new_path="$path" 36295 fi 36296 36297 if test "x$new_path" = x; then 36298 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36299 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36300 has_space=`$ECHO "$complete" | $GREP " "` 36301 if test "x$has_space" != x; then 36302 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36303 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36304 fi 36305 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36306 fi 36307 fi 36308 36309 # Now join together the path and the arguments once again 36310 if test "x$arguments" != xEOL; then 36311 new_complete="$new_path ${arguments% *}" 36312 else 36313 new_complete="$new_path" 36314 fi 36315 36316 if test "x$complete" != "x$new_complete"; then 36317 MCS="$new_complete" 36318 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5 36319 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;} 36320 fi 36321 36322 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 36323 # FIXME: we should unify this with the solaris case above. 36324 36325 36326 # Publish this variable in the help. 36327 36328 36329 if test "x$STRIP" = x; then 36330 # The variable is not set by user, try to locate tool using the code snippet 36331 if test -n "$ac_tool_prefix"; then 36332 for ac_prog in strip 36333 do 36334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36337 $as_echo_n "checking for $ac_word... " >&6; } 36338 if ${ac_cv_prog_STRIP+:} false; then : 36339 $as_echo_n "(cached) " >&6 36340 else 36341 if test -n "$STRIP"; then 36342 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 36343 else 36344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36345 for as_dir in $PATH 36346 do 36347 IFS=$as_save_IFS 36348 test -z "$as_dir" && as_dir=. 36349 for ac_exec_ext in '' $ac_executable_extensions; do 36350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36351 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 36352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36353 break 2 36354 fi 36355 done 36356 done 36357 IFS=$as_save_IFS 36358 36359 fi 36360 fi 36361 STRIP=$ac_cv_prog_STRIP 36362 if test -n "$STRIP"; then 36363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36364 $as_echo "$STRIP" >&6; } 36365 else 36366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36367 $as_echo "no" >&6; } 36368 fi 36369 36370 36371 test -n "$STRIP" && break 36372 done 36373 fi 36374 if test -z "$STRIP"; then 36375 ac_ct_STRIP=$STRIP 36376 for ac_prog in strip 36377 do 36378 # Extract the first word of "$ac_prog", so it can be a program name with args. 36379 set dummy $ac_prog; ac_word=$2 36380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36381 $as_echo_n "checking for $ac_word... " >&6; } 36382 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 36383 $as_echo_n "(cached) " >&6 36384 else 36385 if test -n "$ac_ct_STRIP"; then 36386 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 36387 else 36388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36389 for as_dir in $PATH 36390 do 36391 IFS=$as_save_IFS 36392 test -z "$as_dir" && as_dir=. 36393 for ac_exec_ext in '' $ac_executable_extensions; do 36394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36395 ac_cv_prog_ac_ct_STRIP="$ac_prog" 36396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36397 break 2 36398 fi 36399 done 36400 done 36401 IFS=$as_save_IFS 36402 36403 fi 36404 fi 36405 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 36406 if test -n "$ac_ct_STRIP"; then 36407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 36408 $as_echo "$ac_ct_STRIP" >&6; } 36409 else 36410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36411 $as_echo "no" >&6; } 36412 fi 36413 36414 36415 test -n "$ac_ct_STRIP" && break 36416 done 36417 36418 if test "x$ac_ct_STRIP" = x; then 36419 STRIP="" 36420 else 36421 case $cross_compiling:$ac_tool_warned in 36422 yes:) 36423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36425 ac_tool_warned=yes ;; 36426 esac 36427 STRIP=$ac_ct_STRIP 36428 fi 36429 fi 36430 36431 else 36432 # The variable is set, but is it from the command line or the environment? 36433 36434 # Try to remove the string !STRIP! from our list. 36435 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 36436 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36437 # If it failed, the variable was not from the command line. Ignore it, 36438 # but warn the user (except for BASH, which is always set by the calling BASH). 36439 if test "xSTRIP" != xBASH; then 36440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 36441 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 36442 fi 36443 # Try to locate tool using the code snippet 36444 if test -n "$ac_tool_prefix"; then 36445 for ac_prog in strip 36446 do 36447 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36448 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36450 $as_echo_n "checking for $ac_word... " >&6; } 36451 if ${ac_cv_prog_STRIP+:} false; then : 36452 $as_echo_n "(cached) " >&6 36453 else 36454 if test -n "$STRIP"; then 36455 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 36456 else 36457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36458 for as_dir in $PATH 36459 do 36460 IFS=$as_save_IFS 36461 test -z "$as_dir" && as_dir=. 36462 for ac_exec_ext in '' $ac_executable_extensions; do 36463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36464 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 36465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36466 break 2 36467 fi 36468 done 36469 done 36470 IFS=$as_save_IFS 36471 36472 fi 36473 fi 36474 STRIP=$ac_cv_prog_STRIP 36475 if test -n "$STRIP"; then 36476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36477 $as_echo "$STRIP" >&6; } 36478 else 36479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36480 $as_echo "no" >&6; } 36481 fi 36482 36483 36484 test -n "$STRIP" && break 36485 done 36486 fi 36487 if test -z "$STRIP"; then 36488 ac_ct_STRIP=$STRIP 36489 for ac_prog in strip 36490 do 36491 # Extract the first word of "$ac_prog", so it can be a program name with args. 36492 set dummy $ac_prog; ac_word=$2 36493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36494 $as_echo_n "checking for $ac_word... " >&6; } 36495 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 36496 $as_echo_n "(cached) " >&6 36497 else 36498 if test -n "$ac_ct_STRIP"; then 36499 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 36500 else 36501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36502 for as_dir in $PATH 36503 do 36504 IFS=$as_save_IFS 36505 test -z "$as_dir" && as_dir=. 36506 for ac_exec_ext in '' $ac_executable_extensions; do 36507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36508 ac_cv_prog_ac_ct_STRIP="$ac_prog" 36509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36510 break 2 36511 fi 36512 done 36513 done 36514 IFS=$as_save_IFS 36515 36516 fi 36517 fi 36518 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 36519 if test -n "$ac_ct_STRIP"; then 36520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 36521 $as_echo "$ac_ct_STRIP" >&6; } 36522 else 36523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36524 $as_echo "no" >&6; } 36525 fi 36526 36527 36528 test -n "$ac_ct_STRIP" && break 36529 done 36530 36531 if test "x$ac_ct_STRIP" = x; then 36532 STRIP="" 36533 else 36534 case $cross_compiling:$ac_tool_warned in 36535 yes:) 36536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36538 ac_tool_warned=yes ;; 36539 esac 36540 STRIP=$ac_ct_STRIP 36541 fi 36542 fi 36543 36544 else 36545 # If it succeeded, then it was overridden by the user. We will use it 36546 # for the tool. 36547 36548 # First remove it from the list of overridden variables, so we can test 36549 # for unknown variables in the end. 36550 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36551 36552 # Check if the provided tool contains a complete path. 36553 tool_specified="$STRIP" 36554 tool_basename="${tool_specified##*/}" 36555 if test "x$tool_basename" = "x$tool_specified"; then 36556 # A command without a complete path is provided, search $PATH. 36557 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 36558 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 36559 # Extract the first word of "$tool_basename", so it can be a program name with args. 36560 set dummy $tool_basename; ac_word=$2 36561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36562 $as_echo_n "checking for $ac_word... " >&6; } 36563 if ${ac_cv_path_STRIP+:} false; then : 36564 $as_echo_n "(cached) " >&6 36565 else 36566 case $STRIP in 36567 [\\/]* | ?:[\\/]*) 36568 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 36569 ;; 36570 *) 36571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36572 for as_dir in $PATH 36573 do 36574 IFS=$as_save_IFS 36575 test -z "$as_dir" && as_dir=. 36576 for ac_exec_ext in '' $ac_executable_extensions; do 36577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36578 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 36579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36580 break 2 36581 fi 36582 done 36583 done 36584 IFS=$as_save_IFS 36585 36586 ;; 36587 esac 36588 fi 36589 STRIP=$ac_cv_path_STRIP 36590 if test -n "$STRIP"; then 36591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36592 $as_echo "$STRIP" >&6; } 36593 else 36594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36595 $as_echo "no" >&6; } 36596 fi 36597 36598 36599 if test "x$STRIP" = x; then 36600 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36601 fi 36602 else 36603 # Otherwise we believe it is a complete path. Use it as it is. 36604 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 36605 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 36606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 36607 $as_echo_n "checking for STRIP... " >&6; } 36608 if test ! -x "$tool_specified"; then 36609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36610 $as_echo "not found" >&6; } 36611 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 36612 fi 36613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36614 $as_echo "$tool_specified" >&6; } 36615 fi 36616 fi 36617 fi 36618 36619 36620 36621 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36622 36623 # First separate the path from the arguments. This will split at the first 36624 # space. 36625 complete="$STRIP" 36626 path="${complete%% *}" 36627 tmp="$complete EOL" 36628 arguments="${tmp#* }" 36629 36630 # Input might be given as Windows format, start by converting to 36631 # unix format. 36632 new_path=`$CYGPATH -u "$path"` 36633 36634 # Now try to locate executable using which 36635 new_path=`$WHICH "$new_path" 2> /dev/null` 36636 # bat and cmd files are not always considered executable in cygwin causing which 36637 # to not find them 36638 if test "x$new_path" = x \ 36639 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36640 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36641 new_path=`$CYGPATH -u "$path"` 36642 fi 36643 if test "x$new_path" = x; then 36644 # Oops. Which didn't find the executable. 36645 # The splitting of arguments from the executable at a space might have been incorrect, 36646 # since paths with space are more likely in Windows. Give it another try with the whole 36647 # argument. 36648 path="$complete" 36649 arguments="EOL" 36650 new_path=`$CYGPATH -u "$path"` 36651 new_path=`$WHICH "$new_path" 2> /dev/null` 36652 # bat and cmd files are not always considered executable in cygwin causing which 36653 # to not find them 36654 if test "x$new_path" = x \ 36655 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36656 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36657 new_path=`$CYGPATH -u "$path"` 36658 fi 36659 if test "x$new_path" = x; then 36660 # It's still not found. Now this is an unrecoverable error. 36661 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 36662 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 36663 has_space=`$ECHO "$complete" | $GREP " "` 36664 if test "x$has_space" != x; then 36665 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36666 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36667 fi 36668 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36669 fi 36670 fi 36671 36672 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36673 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36674 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36675 # "foo.exe" is OK but "foo" is an error. 36676 # 36677 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36678 # It is also a way to make sure we got the proper file name for the real test later on. 36679 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36680 if test "x$test_shortpath" = x; then 36681 # Short path failed, file does not exist as specified. 36682 # Try adding .exe or .cmd 36683 if test -f "${new_path}.exe"; then 36684 input_to_shortpath="${new_path}.exe" 36685 elif test -f "${new_path}.cmd"; then 36686 input_to_shortpath="${new_path}.cmd" 36687 else 36688 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 36689 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 36690 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36691 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36692 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36693 fi 36694 else 36695 input_to_shortpath="$new_path" 36696 fi 36697 36698 # Call helper function which possibly converts this using DOS-style short mode. 36699 # If so, the updated path is stored in $new_path. 36700 new_path="$input_to_shortpath" 36701 36702 input_path="$input_to_shortpath" 36703 # Check if we need to convert this using DOS-style short mode. If the path 36704 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36705 # take no chances and rewrite it. 36706 # Note: m4 eats our [], so we need to use [ and ] instead. 36707 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36708 if test "x$has_forbidden_chars" != x; then 36709 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36710 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36711 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36712 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36713 # Going to short mode and back again did indeed matter. Since short mode is 36714 # case insensitive, let's make it lowercase to improve readability. 36715 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36716 # Now convert it back to Unix-style (cygpath) 36717 input_path=`$CYGPATH -u "$shortmode_path"` 36718 new_path="$input_path" 36719 fi 36720 fi 36721 36722 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36723 if test "x$test_cygdrive_prefix" = x; then 36724 # As a simple fix, exclude /usr/bin since it's not a real path. 36725 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36726 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36727 # a path prefixed by /cygdrive for fixpath to work. 36728 new_path="$CYGWIN_ROOT_PATH$input_path" 36729 fi 36730 fi 36731 36732 # remove trailing .exe if any 36733 new_path="${new_path/%.exe/}" 36734 36735 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36736 36737 # First separate the path from the arguments. This will split at the first 36738 # space. 36739 complete="$STRIP" 36740 path="${complete%% *}" 36741 tmp="$complete EOL" 36742 arguments="${tmp#* }" 36743 36744 # Input might be given as Windows format, start by converting to 36745 # unix format. 36746 new_path="$path" 36747 36748 windows_path="$new_path" 36749 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36750 unix_path=`$CYGPATH -u "$windows_path"` 36751 new_path="$unix_path" 36752 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36753 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36754 new_path="$unix_path" 36755 fi 36756 36757 36758 # Now try to locate executable using which 36759 new_path=`$WHICH "$new_path" 2> /dev/null` 36760 36761 if test "x$new_path" = x; then 36762 # Oops. Which didn't find the executable. 36763 # The splitting of arguments from the executable at a space might have been incorrect, 36764 # since paths with space are more likely in Windows. Give it another try with the whole 36765 # argument. 36766 path="$complete" 36767 arguments="EOL" 36768 new_path="$path" 36769 36770 windows_path="$new_path" 36771 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36772 unix_path=`$CYGPATH -u "$windows_path"` 36773 new_path="$unix_path" 36774 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36775 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36776 new_path="$unix_path" 36777 fi 36778 36779 36780 new_path=`$WHICH "$new_path" 2> /dev/null` 36781 # bat and cmd files are not always considered executable in MSYS causing which 36782 # to not find them 36783 if test "x$new_path" = x \ 36784 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36785 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36786 new_path="$path" 36787 36788 windows_path="$new_path" 36789 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36790 unix_path=`$CYGPATH -u "$windows_path"` 36791 new_path="$unix_path" 36792 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36793 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36794 new_path="$unix_path" 36795 fi 36796 36797 fi 36798 36799 if test "x$new_path" = x; then 36800 # It's still not found. Now this is an unrecoverable error. 36801 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 36802 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 36803 has_space=`$ECHO "$complete" | $GREP " "` 36804 if test "x$has_space" != x; then 36805 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36806 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36807 fi 36808 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36809 fi 36810 fi 36811 36812 # Now new_path has a complete unix path to the binary 36813 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36814 # Keep paths in /bin as-is, but remove trailing .exe if any 36815 new_path="${new_path/%.exe/}" 36816 # Do not save /bin paths to all_fixpath_prefixes! 36817 else 36818 # Not in mixed or Windows style, start by that. 36819 new_path=`cmd //c echo $new_path` 36820 36821 input_path="$new_path" 36822 # Check if we need to convert this using DOS-style short mode. If the path 36823 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36824 # take no chances and rewrite it. 36825 # Note: m4 eats our [], so we need to use [ and ] instead. 36826 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36827 if test "x$has_forbidden_chars" != x; then 36828 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36829 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36830 fi 36831 36832 # Output is in $new_path 36833 36834 windows_path="$new_path" 36835 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36836 unix_path=`$CYGPATH -u "$windows_path"` 36837 new_path="$unix_path" 36838 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36839 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36840 new_path="$unix_path" 36841 fi 36842 36843 # remove trailing .exe if any 36844 new_path="${new_path/%.exe/}" 36845 36846 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36847 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36848 fi 36849 36850 else 36851 # We're on a posix platform. Hooray! :) 36852 # First separate the path from the arguments. This will split at the first 36853 # space. 36854 complete="$STRIP" 36855 path="${complete%% *}" 36856 tmp="$complete EOL" 36857 arguments="${tmp#* }" 36858 36859 # Cannot rely on the command "which" here since it doesn't always work. 36860 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36861 if test -z "$is_absolute_path"; then 36862 # Path to executable is not absolute. Find it. 36863 IFS_save="$IFS" 36864 IFS=: 36865 for p in $PATH; do 36866 if test -f "$p/$path" && test -x "$p/$path"; then 36867 new_path="$p/$path" 36868 break 36869 fi 36870 done 36871 IFS="$IFS_save" 36872 else 36873 # This is an absolute path, we can use it without further modifications. 36874 new_path="$path" 36875 fi 36876 36877 if test "x$new_path" = x; then 36878 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 36879 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 36880 has_space=`$ECHO "$complete" | $GREP " "` 36881 if test "x$has_space" != x; then 36882 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36883 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36884 fi 36885 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36886 fi 36887 fi 36888 36889 # Now join together the path and the arguments once again 36890 if test "x$arguments" != xEOL; then 36891 new_complete="$new_path ${arguments% *}" 36892 else 36893 new_complete="$new_path" 36894 fi 36895 36896 if test "x$complete" != "x$new_complete"; then 36897 STRIP="$new_complete" 36898 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 36899 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 36900 fi 36901 36902 # Extract the first word of "otool", so it can be a program name with args. 36903 set dummy otool; ac_word=$2 36904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36905 $as_echo_n "checking for $ac_word... " >&6; } 36906 if ${ac_cv_path_OTOOL+:} false; then : 36907 $as_echo_n "(cached) " >&6 36908 else 36909 case $OTOOL in 36910 [\\/]* | ?:[\\/]*) 36911 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 36912 ;; 36913 *) 36914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36915 for as_dir in $PATH 36916 do 36917 IFS=$as_save_IFS 36918 test -z "$as_dir" && as_dir=. 36919 for ac_exec_ext in '' $ac_executable_extensions; do 36920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36921 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 36922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36923 break 2 36924 fi 36925 done 36926 done 36927 IFS=$as_save_IFS 36928 36929 ;; 36930 esac 36931 fi 36932 OTOOL=$ac_cv_path_OTOOL 36933 if test -n "$OTOOL"; then 36934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 36935 $as_echo "$OTOOL" >&6; } 36936 else 36937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36938 $as_echo "no" >&6; } 36939 fi 36940 36941 36942 if test "x$OTOOL" = "x"; then 36943 OTOOL="true" 36944 fi 36945 36946 36947 # Publish this variable in the help. 36948 36949 36950 if test "x$NM" = x; then 36951 # The variable is not set by user, try to locate tool using the code snippet 36952 if test -n "$ac_tool_prefix"; then 36953 for ac_prog in nm 36954 do 36955 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36956 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36958 $as_echo_n "checking for $ac_word... " >&6; } 36959 if ${ac_cv_prog_NM+:} false; then : 36960 $as_echo_n "(cached) " >&6 36961 else 36962 if test -n "$NM"; then 36963 ac_cv_prog_NM="$NM" # Let the user override the test. 36964 else 36965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36966 for as_dir in $PATH 36967 do 36968 IFS=$as_save_IFS 36969 test -z "$as_dir" && as_dir=. 36970 for ac_exec_ext in '' $ac_executable_extensions; do 36971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36972 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 36973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36974 break 2 36975 fi 36976 done 36977 done 36978 IFS=$as_save_IFS 36979 36980 fi 36981 fi 36982 NM=$ac_cv_prog_NM 36983 if test -n "$NM"; then 36984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 36985 $as_echo "$NM" >&6; } 36986 else 36987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36988 $as_echo "no" >&6; } 36989 fi 36990 36991 36992 test -n "$NM" && break 36993 done 36994 fi 36995 if test -z "$NM"; then 36996 ac_ct_NM=$NM 36997 for ac_prog in nm 36998 do 36999 # Extract the first word of "$ac_prog", so it can be a program name with args. 37000 set dummy $ac_prog; ac_word=$2 37001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37002 $as_echo_n "checking for $ac_word... " >&6; } 37003 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37004 $as_echo_n "(cached) " >&6 37005 else 37006 if test -n "$ac_ct_NM"; then 37007 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37008 else 37009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37010 for as_dir in $PATH 37011 do 37012 IFS=$as_save_IFS 37013 test -z "$as_dir" && as_dir=. 37014 for ac_exec_ext in '' $ac_executable_extensions; do 37015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37016 ac_cv_prog_ac_ct_NM="$ac_prog" 37017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37018 break 2 37019 fi 37020 done 37021 done 37022 IFS=$as_save_IFS 37023 37024 fi 37025 fi 37026 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37027 if test -n "$ac_ct_NM"; then 37028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37029 $as_echo "$ac_ct_NM" >&6; } 37030 else 37031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37032 $as_echo "no" >&6; } 37033 fi 37034 37035 37036 test -n "$ac_ct_NM" && break 37037 done 37038 37039 if test "x$ac_ct_NM" = x; then 37040 NM="" 37041 else 37042 case $cross_compiling:$ac_tool_warned in 37043 yes:) 37044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37046 ac_tool_warned=yes ;; 37047 esac 37048 NM=$ac_ct_NM 37049 fi 37050 fi 37051 37052 else 37053 # The variable is set, but is it from the command line or the environment? 37054 37055 # Try to remove the string !NM! from our list. 37056 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 37057 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37058 # If it failed, the variable was not from the command line. Ignore it, 37059 # but warn the user (except for BASH, which is always set by the calling BASH). 37060 if test "xNM" != xBASH; then 37061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 37062 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 37063 fi 37064 # Try to locate tool using the code snippet 37065 if test -n "$ac_tool_prefix"; then 37066 for ac_prog in nm 37067 do 37068 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37069 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37071 $as_echo_n "checking for $ac_word... " >&6; } 37072 if ${ac_cv_prog_NM+:} false; then : 37073 $as_echo_n "(cached) " >&6 37074 else 37075 if test -n "$NM"; then 37076 ac_cv_prog_NM="$NM" # Let the user override the test. 37077 else 37078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37079 for as_dir in $PATH 37080 do 37081 IFS=$as_save_IFS 37082 test -z "$as_dir" && as_dir=. 37083 for ac_exec_ext in '' $ac_executable_extensions; do 37084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37085 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37087 break 2 37088 fi 37089 done 37090 done 37091 IFS=$as_save_IFS 37092 37093 fi 37094 fi 37095 NM=$ac_cv_prog_NM 37096 if test -n "$NM"; then 37097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37098 $as_echo "$NM" >&6; } 37099 else 37100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37101 $as_echo "no" >&6; } 37102 fi 37103 37104 37105 test -n "$NM" && break 37106 done 37107 fi 37108 if test -z "$NM"; then 37109 ac_ct_NM=$NM 37110 for ac_prog in nm 37111 do 37112 # Extract the first word of "$ac_prog", so it can be a program name with args. 37113 set dummy $ac_prog; ac_word=$2 37114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37115 $as_echo_n "checking for $ac_word... " >&6; } 37116 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37117 $as_echo_n "(cached) " >&6 37118 else 37119 if test -n "$ac_ct_NM"; then 37120 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37121 else 37122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37123 for as_dir in $PATH 37124 do 37125 IFS=$as_save_IFS 37126 test -z "$as_dir" && as_dir=. 37127 for ac_exec_ext in '' $ac_executable_extensions; do 37128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37129 ac_cv_prog_ac_ct_NM="$ac_prog" 37130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37131 break 2 37132 fi 37133 done 37134 done 37135 IFS=$as_save_IFS 37136 37137 fi 37138 fi 37139 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37140 if test -n "$ac_ct_NM"; then 37141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37142 $as_echo "$ac_ct_NM" >&6; } 37143 else 37144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37145 $as_echo "no" >&6; } 37146 fi 37147 37148 37149 test -n "$ac_ct_NM" && break 37150 done 37151 37152 if test "x$ac_ct_NM" = x; then 37153 NM="" 37154 else 37155 case $cross_compiling:$ac_tool_warned in 37156 yes:) 37157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37159 ac_tool_warned=yes ;; 37160 esac 37161 NM=$ac_ct_NM 37162 fi 37163 fi 37164 37165 else 37166 # If it succeeded, then it was overridden by the user. We will use it 37167 # for the tool. 37168 37169 # First remove it from the list of overridden variables, so we can test 37170 # for unknown variables in the end. 37171 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37172 37173 # Check if the provided tool contains a complete path. 37174 tool_specified="$NM" 37175 tool_basename="${tool_specified##*/}" 37176 if test "x$tool_basename" = "x$tool_specified"; then 37177 # A command without a complete path is provided, search $PATH. 37178 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 37179 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 37180 # Extract the first word of "$tool_basename", so it can be a program name with args. 37181 set dummy $tool_basename; ac_word=$2 37182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37183 $as_echo_n "checking for $ac_word... " >&6; } 37184 if ${ac_cv_path_NM+:} false; then : 37185 $as_echo_n "(cached) " >&6 37186 else 37187 case $NM in 37188 [\\/]* | ?:[\\/]*) 37189 ac_cv_path_NM="$NM" # Let the user override the test with a path. 37190 ;; 37191 *) 37192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37193 for as_dir in $PATH 37194 do 37195 IFS=$as_save_IFS 37196 test -z "$as_dir" && as_dir=. 37197 for ac_exec_ext in '' $ac_executable_extensions; do 37198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37199 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 37200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37201 break 2 37202 fi 37203 done 37204 done 37205 IFS=$as_save_IFS 37206 37207 ;; 37208 esac 37209 fi 37210 NM=$ac_cv_path_NM 37211 if test -n "$NM"; then 37212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37213 $as_echo "$NM" >&6; } 37214 else 37215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37216 $as_echo "no" >&6; } 37217 fi 37218 37219 37220 if test "x$NM" = x; then 37221 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37222 fi 37223 else 37224 # Otherwise we believe it is a complete path. Use it as it is. 37225 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 37226 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 37227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 37228 $as_echo_n "checking for NM... " >&6; } 37229 if test ! -x "$tool_specified"; then 37230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37231 $as_echo "not found" >&6; } 37232 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 37233 fi 37234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37235 $as_echo "$tool_specified" >&6; } 37236 fi 37237 fi 37238 fi 37239 37240 37241 37242 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37243 37244 # First separate the path from the arguments. This will split at the first 37245 # space. 37246 complete="$NM" 37247 path="${complete%% *}" 37248 tmp="$complete EOL" 37249 arguments="${tmp#* }" 37250 37251 # Input might be given as Windows format, start by converting to 37252 # unix format. 37253 new_path=`$CYGPATH -u "$path"` 37254 37255 # Now try to locate executable using which 37256 new_path=`$WHICH "$new_path" 2> /dev/null` 37257 # bat and cmd files are not always considered executable in cygwin causing which 37258 # to not find them 37259 if test "x$new_path" = x \ 37260 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37261 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37262 new_path=`$CYGPATH -u "$path"` 37263 fi 37264 if test "x$new_path" = x; then 37265 # Oops. Which didn't find the executable. 37266 # The splitting of arguments from the executable at a space might have been incorrect, 37267 # since paths with space are more likely in Windows. Give it another try with the whole 37268 # argument. 37269 path="$complete" 37270 arguments="EOL" 37271 new_path=`$CYGPATH -u "$path"` 37272 new_path=`$WHICH "$new_path" 2> /dev/null` 37273 # bat and cmd files are not always considered executable in cygwin causing which 37274 # to not find them 37275 if test "x$new_path" = x \ 37276 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37277 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37278 new_path=`$CYGPATH -u "$path"` 37279 fi 37280 if test "x$new_path" = x; then 37281 # It's still not found. Now this is an unrecoverable error. 37282 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37283 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37284 has_space=`$ECHO "$complete" | $GREP " "` 37285 if test "x$has_space" != x; then 37286 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37287 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37288 fi 37289 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37290 fi 37291 fi 37292 37293 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37294 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37295 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37296 # "foo.exe" is OK but "foo" is an error. 37297 # 37298 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37299 # It is also a way to make sure we got the proper file name for the real test later on. 37300 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37301 if test "x$test_shortpath" = x; then 37302 # Short path failed, file does not exist as specified. 37303 # Try adding .exe or .cmd 37304 if test -f "${new_path}.exe"; then 37305 input_to_shortpath="${new_path}.exe" 37306 elif test -f "${new_path}.cmd"; then 37307 input_to_shortpath="${new_path}.cmd" 37308 else 37309 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 37310 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 37311 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37312 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37313 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37314 fi 37315 else 37316 input_to_shortpath="$new_path" 37317 fi 37318 37319 # Call helper function which possibly converts this using DOS-style short mode. 37320 # If so, the updated path is stored in $new_path. 37321 new_path="$input_to_shortpath" 37322 37323 input_path="$input_to_shortpath" 37324 # Check if we need to convert this using DOS-style short mode. If the path 37325 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37326 # take no chances and rewrite it. 37327 # Note: m4 eats our [], so we need to use [ and ] instead. 37328 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37329 if test "x$has_forbidden_chars" != x; then 37330 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37331 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37332 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37333 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37334 # Going to short mode and back again did indeed matter. Since short mode is 37335 # case insensitive, let's make it lowercase to improve readability. 37336 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37337 # Now convert it back to Unix-style (cygpath) 37338 input_path=`$CYGPATH -u "$shortmode_path"` 37339 new_path="$input_path" 37340 fi 37341 fi 37342 37343 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37344 if test "x$test_cygdrive_prefix" = x; then 37345 # As a simple fix, exclude /usr/bin since it's not a real path. 37346 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37347 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37348 # a path prefixed by /cygdrive for fixpath to work. 37349 new_path="$CYGWIN_ROOT_PATH$input_path" 37350 fi 37351 fi 37352 37353 # remove trailing .exe if any 37354 new_path="${new_path/%.exe/}" 37355 37356 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37357 37358 # First separate the path from the arguments. This will split at the first 37359 # space. 37360 complete="$NM" 37361 path="${complete%% *}" 37362 tmp="$complete EOL" 37363 arguments="${tmp#* }" 37364 37365 # Input might be given as Windows format, start by converting to 37366 # unix format. 37367 new_path="$path" 37368 37369 windows_path="$new_path" 37370 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37371 unix_path=`$CYGPATH -u "$windows_path"` 37372 new_path="$unix_path" 37373 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37374 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37375 new_path="$unix_path" 37376 fi 37377 37378 37379 # Now try to locate executable using which 37380 new_path=`$WHICH "$new_path" 2> /dev/null` 37381 37382 if test "x$new_path" = x; then 37383 # Oops. Which didn't find the executable. 37384 # The splitting of arguments from the executable at a space might have been incorrect, 37385 # since paths with space are more likely in Windows. Give it another try with the whole 37386 # argument. 37387 path="$complete" 37388 arguments="EOL" 37389 new_path="$path" 37390 37391 windows_path="$new_path" 37392 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37393 unix_path=`$CYGPATH -u "$windows_path"` 37394 new_path="$unix_path" 37395 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37396 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37397 new_path="$unix_path" 37398 fi 37399 37400 37401 new_path=`$WHICH "$new_path" 2> /dev/null` 37402 # bat and cmd files are not always considered executable in MSYS causing which 37403 # to not find them 37404 if test "x$new_path" = x \ 37405 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37406 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37407 new_path="$path" 37408 37409 windows_path="$new_path" 37410 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37411 unix_path=`$CYGPATH -u "$windows_path"` 37412 new_path="$unix_path" 37413 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37414 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37415 new_path="$unix_path" 37416 fi 37417 37418 fi 37419 37420 if test "x$new_path" = x; then 37421 # It's still not found. Now this is an unrecoverable error. 37422 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37423 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37424 has_space=`$ECHO "$complete" | $GREP " "` 37425 if test "x$has_space" != x; then 37426 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37427 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37428 fi 37429 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37430 fi 37431 fi 37432 37433 # Now new_path has a complete unix path to the binary 37434 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37435 # Keep paths in /bin as-is, but remove trailing .exe if any 37436 new_path="${new_path/%.exe/}" 37437 # Do not save /bin paths to all_fixpath_prefixes! 37438 else 37439 # Not in mixed or Windows style, start by that. 37440 new_path=`cmd //c echo $new_path` 37441 37442 input_path="$new_path" 37443 # Check if we need to convert this using DOS-style short mode. If the path 37444 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37445 # take no chances and rewrite it. 37446 # Note: m4 eats our [], so we need to use [ and ] instead. 37447 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37448 if test "x$has_forbidden_chars" != x; then 37449 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37450 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37451 fi 37452 37453 # Output is in $new_path 37454 37455 windows_path="$new_path" 37456 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37457 unix_path=`$CYGPATH -u "$windows_path"` 37458 new_path="$unix_path" 37459 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37460 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37461 new_path="$unix_path" 37462 fi 37463 37464 # remove trailing .exe if any 37465 new_path="${new_path/%.exe/}" 37466 37467 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37468 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37469 fi 37470 37471 else 37472 # We're on a posix platform. Hooray! :) 37473 # First separate the path from the arguments. This will split at the first 37474 # space. 37475 complete="$NM" 37476 path="${complete%% *}" 37477 tmp="$complete EOL" 37478 arguments="${tmp#* }" 37479 37480 # Cannot rely on the command "which" here since it doesn't always work. 37481 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37482 if test -z "$is_absolute_path"; then 37483 # Path to executable is not absolute. Find it. 37484 IFS_save="$IFS" 37485 IFS=: 37486 for p in $PATH; do 37487 if test -f "$p/$path" && test -x "$p/$path"; then 37488 new_path="$p/$path" 37489 break 37490 fi 37491 done 37492 IFS="$IFS_save" 37493 else 37494 # This is an absolute path, we can use it without further modifications. 37495 new_path="$path" 37496 fi 37497 37498 if test "x$new_path" = x; then 37499 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37500 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37501 has_space=`$ECHO "$complete" | $GREP " "` 37502 if test "x$has_space" != x; then 37503 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37504 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37505 fi 37506 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37507 fi 37508 fi 37509 37510 # Now join together the path and the arguments once again 37511 if test "x$arguments" != xEOL; then 37512 new_complete="$new_path ${arguments% *}" 37513 else 37514 new_complete="$new_path" 37515 fi 37516 37517 if test "x$complete" != "x$new_complete"; then 37518 NM="$new_complete" 37519 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 37520 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 37521 fi 37522 37523 GNM="$NM" 37524 37525 fi 37526 37527 # objcopy is used for moving debug symbols to separate files when 37528 # full debug symbols are enabled. 37529 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 37530 37531 37532 # Publish this variable in the help. 37533 37534 37535 if test "x$OBJCOPY" = x; then 37536 # The variable is not set by user, try to locate tool using the code snippet 37537 if test -n "$ac_tool_prefix"; then 37538 for ac_prog in gobjcopy objcopy 37539 do 37540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37543 $as_echo_n "checking for $ac_word... " >&6; } 37544 if ${ac_cv_prog_OBJCOPY+:} false; then : 37545 $as_echo_n "(cached) " >&6 37546 else 37547 if test -n "$OBJCOPY"; then 37548 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 37549 else 37550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37551 for as_dir in $PATH 37552 do 37553 IFS=$as_save_IFS 37554 test -z "$as_dir" && as_dir=. 37555 for ac_exec_ext in '' $ac_executable_extensions; do 37556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37557 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 37558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37559 break 2 37560 fi 37561 done 37562 done 37563 IFS=$as_save_IFS 37564 37565 fi 37566 fi 37567 OBJCOPY=$ac_cv_prog_OBJCOPY 37568 if test -n "$OBJCOPY"; then 37569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 37570 $as_echo "$OBJCOPY" >&6; } 37571 else 37572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37573 $as_echo "no" >&6; } 37574 fi 37575 37576 37577 test -n "$OBJCOPY" && break 37578 done 37579 fi 37580 if test -z "$OBJCOPY"; then 37581 ac_ct_OBJCOPY=$OBJCOPY 37582 for ac_prog in gobjcopy objcopy 37583 do 37584 # Extract the first word of "$ac_prog", so it can be a program name with args. 37585 set dummy $ac_prog; ac_word=$2 37586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37587 $as_echo_n "checking for $ac_word... " >&6; } 37588 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 37589 $as_echo_n "(cached) " >&6 37590 else 37591 if test -n "$ac_ct_OBJCOPY"; then 37592 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 37593 else 37594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37595 for as_dir in $PATH 37596 do 37597 IFS=$as_save_IFS 37598 test -z "$as_dir" && as_dir=. 37599 for ac_exec_ext in '' $ac_executable_extensions; do 37600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37601 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 37602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37603 break 2 37604 fi 37605 done 37606 done 37607 IFS=$as_save_IFS 37608 37609 fi 37610 fi 37611 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 37612 if test -n "$ac_ct_OBJCOPY"; then 37613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 37614 $as_echo "$ac_ct_OBJCOPY" >&6; } 37615 else 37616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37617 $as_echo "no" >&6; } 37618 fi 37619 37620 37621 test -n "$ac_ct_OBJCOPY" && break 37622 done 37623 37624 if test "x$ac_ct_OBJCOPY" = x; then 37625 OBJCOPY="" 37626 else 37627 case $cross_compiling:$ac_tool_warned in 37628 yes:) 37629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37631 ac_tool_warned=yes ;; 37632 esac 37633 OBJCOPY=$ac_ct_OBJCOPY 37634 fi 37635 fi 37636 37637 else 37638 # The variable is set, but is it from the command line or the environment? 37639 37640 # Try to remove the string !OBJCOPY! from our list. 37641 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 37642 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37643 # If it failed, the variable was not from the command line. Ignore it, 37644 # but warn the user (except for BASH, which is always set by the calling BASH). 37645 if test "xOBJCOPY" != xBASH; then 37646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 37647 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 37648 fi 37649 # Try to locate tool using the code snippet 37650 if test -n "$ac_tool_prefix"; then 37651 for ac_prog in gobjcopy objcopy 37652 do 37653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37656 $as_echo_n "checking for $ac_word... " >&6; } 37657 if ${ac_cv_prog_OBJCOPY+:} false; then : 37658 $as_echo_n "(cached) " >&6 37659 else 37660 if test -n "$OBJCOPY"; then 37661 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 37662 else 37663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37664 for as_dir in $PATH 37665 do 37666 IFS=$as_save_IFS 37667 test -z "$as_dir" && as_dir=. 37668 for ac_exec_ext in '' $ac_executable_extensions; do 37669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37670 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 37671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37672 break 2 37673 fi 37674 done 37675 done 37676 IFS=$as_save_IFS 37677 37678 fi 37679 fi 37680 OBJCOPY=$ac_cv_prog_OBJCOPY 37681 if test -n "$OBJCOPY"; then 37682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 37683 $as_echo "$OBJCOPY" >&6; } 37684 else 37685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37686 $as_echo "no" >&6; } 37687 fi 37688 37689 37690 test -n "$OBJCOPY" && break 37691 done 37692 fi 37693 if test -z "$OBJCOPY"; then 37694 ac_ct_OBJCOPY=$OBJCOPY 37695 for ac_prog in gobjcopy objcopy 37696 do 37697 # Extract the first word of "$ac_prog", so it can be a program name with args. 37698 set dummy $ac_prog; ac_word=$2 37699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37700 $as_echo_n "checking for $ac_word... " >&6; } 37701 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 37702 $as_echo_n "(cached) " >&6 37703 else 37704 if test -n "$ac_ct_OBJCOPY"; then 37705 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 37706 else 37707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37708 for as_dir in $PATH 37709 do 37710 IFS=$as_save_IFS 37711 test -z "$as_dir" && as_dir=. 37712 for ac_exec_ext in '' $ac_executable_extensions; do 37713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37714 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 37715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37716 break 2 37717 fi 37718 done 37719 done 37720 IFS=$as_save_IFS 37721 37722 fi 37723 fi 37724 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 37725 if test -n "$ac_ct_OBJCOPY"; then 37726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 37727 $as_echo "$ac_ct_OBJCOPY" >&6; } 37728 else 37729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37730 $as_echo "no" >&6; } 37731 fi 37732 37733 37734 test -n "$ac_ct_OBJCOPY" && break 37735 done 37736 37737 if test "x$ac_ct_OBJCOPY" = x; then 37738 OBJCOPY="" 37739 else 37740 case $cross_compiling:$ac_tool_warned in 37741 yes:) 37742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37744 ac_tool_warned=yes ;; 37745 esac 37746 OBJCOPY=$ac_ct_OBJCOPY 37747 fi 37748 fi 37749 37750 else 37751 # If it succeeded, then it was overridden by the user. We will use it 37752 # for the tool. 37753 37754 # First remove it from the list of overridden variables, so we can test 37755 # for unknown variables in the end. 37756 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37757 37758 # Check if the provided tool contains a complete path. 37759 tool_specified="$OBJCOPY" 37760 tool_basename="${tool_specified##*/}" 37761 if test "x$tool_basename" = "x$tool_specified"; then 37762 # A command without a complete path is provided, search $PATH. 37763 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 37764 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 37765 # Extract the first word of "$tool_basename", so it can be a program name with args. 37766 set dummy $tool_basename; ac_word=$2 37767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37768 $as_echo_n "checking for $ac_word... " >&6; } 37769 if ${ac_cv_path_OBJCOPY+:} false; then : 37770 $as_echo_n "(cached) " >&6 37771 else 37772 case $OBJCOPY in 37773 [\\/]* | ?:[\\/]*) 37774 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 37775 ;; 37776 *) 37777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37778 for as_dir in $PATH 37779 do 37780 IFS=$as_save_IFS 37781 test -z "$as_dir" && as_dir=. 37782 for ac_exec_ext in '' $ac_executable_extensions; do 37783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37784 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 37785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37786 break 2 37787 fi 37788 done 37789 done 37790 IFS=$as_save_IFS 37791 37792 ;; 37793 esac 37794 fi 37795 OBJCOPY=$ac_cv_path_OBJCOPY 37796 if test -n "$OBJCOPY"; then 37797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 37798 $as_echo "$OBJCOPY" >&6; } 37799 else 37800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37801 $as_echo "no" >&6; } 37802 fi 37803 37804 37805 if test "x$OBJCOPY" = x; then 37806 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37807 fi 37808 else 37809 # Otherwise we believe it is a complete path. Use it as it is. 37810 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 37811 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 37812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 37813 $as_echo_n "checking for OBJCOPY... " >&6; } 37814 if test ! -x "$tool_specified"; then 37815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37816 $as_echo "not found" >&6; } 37817 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 37818 fi 37819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37820 $as_echo "$tool_specified" >&6; } 37821 fi 37822 fi 37823 fi 37824 37825 37826 # Only call fixup if objcopy was found. 37827 if test -n "$OBJCOPY"; then 37828 37829 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37830 37831 # First separate the path from the arguments. This will split at the first 37832 # space. 37833 complete="$OBJCOPY" 37834 path="${complete%% *}" 37835 tmp="$complete EOL" 37836 arguments="${tmp#* }" 37837 37838 # Input might be given as Windows format, start by converting to 37839 # unix format. 37840 new_path=`$CYGPATH -u "$path"` 37841 37842 # Now try to locate executable using which 37843 new_path=`$WHICH "$new_path" 2> /dev/null` 37844 # bat and cmd files are not always considered executable in cygwin causing which 37845 # to not find them 37846 if test "x$new_path" = x \ 37847 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37848 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37849 new_path=`$CYGPATH -u "$path"` 37850 fi 37851 if test "x$new_path" = x; then 37852 # Oops. Which didn't find the executable. 37853 # The splitting of arguments from the executable at a space might have been incorrect, 37854 # since paths with space are more likely in Windows. Give it another try with the whole 37855 # argument. 37856 path="$complete" 37857 arguments="EOL" 37858 new_path=`$CYGPATH -u "$path"` 37859 new_path=`$WHICH "$new_path" 2> /dev/null` 37860 # bat and cmd files are not always considered executable in cygwin causing which 37861 # to not find them 37862 if test "x$new_path" = x \ 37863 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37864 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37865 new_path=`$CYGPATH -u "$path"` 37866 fi 37867 if test "x$new_path" = x; then 37868 # It's still not found. Now this is an unrecoverable error. 37869 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 37870 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 37871 has_space=`$ECHO "$complete" | $GREP " "` 37872 if test "x$has_space" != x; then 37873 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37874 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37875 fi 37876 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 37877 fi 37878 fi 37879 37880 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37881 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37882 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37883 # "foo.exe" is OK but "foo" is an error. 37884 # 37885 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37886 # It is also a way to make sure we got the proper file name for the real test later on. 37887 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37888 if test "x$test_shortpath" = x; then 37889 # Short path failed, file does not exist as specified. 37890 # Try adding .exe or .cmd 37891 if test -f "${new_path}.exe"; then 37892 input_to_shortpath="${new_path}.exe" 37893 elif test -f "${new_path}.cmd"; then 37894 input_to_shortpath="${new_path}.cmd" 37895 else 37896 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 37897 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 37898 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37899 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37900 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 37901 fi 37902 else 37903 input_to_shortpath="$new_path" 37904 fi 37905 37906 # Call helper function which possibly converts this using DOS-style short mode. 37907 # If so, the updated path is stored in $new_path. 37908 new_path="$input_to_shortpath" 37909 37910 input_path="$input_to_shortpath" 37911 # Check if we need to convert this using DOS-style short mode. If the path 37912 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37913 # take no chances and rewrite it. 37914 # Note: m4 eats our [], so we need to use [ and ] instead. 37915 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37916 if test "x$has_forbidden_chars" != x; then 37917 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37918 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37919 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37920 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37921 # Going to short mode and back again did indeed matter. Since short mode is 37922 # case insensitive, let's make it lowercase to improve readability. 37923 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37924 # Now convert it back to Unix-style (cygpath) 37925 input_path=`$CYGPATH -u "$shortmode_path"` 37926 new_path="$input_path" 37927 fi 37928 fi 37929 37930 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37931 if test "x$test_cygdrive_prefix" = x; then 37932 # As a simple fix, exclude /usr/bin since it's not a real path. 37933 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37934 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37935 # a path prefixed by /cygdrive for fixpath to work. 37936 new_path="$CYGWIN_ROOT_PATH$input_path" 37937 fi 37938 fi 37939 37940 # remove trailing .exe if any 37941 new_path="${new_path/%.exe/}" 37942 37943 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37944 37945 # First separate the path from the arguments. This will split at the first 37946 # space. 37947 complete="$OBJCOPY" 37948 path="${complete%% *}" 37949 tmp="$complete EOL" 37950 arguments="${tmp#* }" 37951 37952 # Input might be given as Windows format, start by converting to 37953 # unix format. 37954 new_path="$path" 37955 37956 windows_path="$new_path" 37957 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37958 unix_path=`$CYGPATH -u "$windows_path"` 37959 new_path="$unix_path" 37960 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37961 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37962 new_path="$unix_path" 37963 fi 37964 37965 37966 # Now try to locate executable using which 37967 new_path=`$WHICH "$new_path" 2> /dev/null` 37968 37969 if test "x$new_path" = x; then 37970 # Oops. Which didn't find the executable. 37971 # The splitting of arguments from the executable at a space might have been incorrect, 37972 # since paths with space are more likely in Windows. Give it another try with the whole 37973 # argument. 37974 path="$complete" 37975 arguments="EOL" 37976 new_path="$path" 37977 37978 windows_path="$new_path" 37979 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37980 unix_path=`$CYGPATH -u "$windows_path"` 37981 new_path="$unix_path" 37982 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37983 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37984 new_path="$unix_path" 37985 fi 37986 37987 37988 new_path=`$WHICH "$new_path" 2> /dev/null` 37989 # bat and cmd files are not always considered executable in MSYS causing which 37990 # to not find them 37991 if test "x$new_path" = x \ 37992 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37993 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37994 new_path="$path" 37995 37996 windows_path="$new_path" 37997 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37998 unix_path=`$CYGPATH -u "$windows_path"` 37999 new_path="$unix_path" 38000 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38001 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38002 new_path="$unix_path" 38003 fi 38004 38005 fi 38006 38007 if test "x$new_path" = x; then 38008 # It's still not found. Now this is an unrecoverable error. 38009 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38010 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38011 has_space=`$ECHO "$complete" | $GREP " "` 38012 if test "x$has_space" != x; then 38013 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38014 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38015 fi 38016 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38017 fi 38018 fi 38019 38020 # Now new_path has a complete unix path to the binary 38021 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38022 # Keep paths in /bin as-is, but remove trailing .exe if any 38023 new_path="${new_path/%.exe/}" 38024 # Do not save /bin paths to all_fixpath_prefixes! 38025 else 38026 # Not in mixed or Windows style, start by that. 38027 new_path=`cmd //c echo $new_path` 38028 38029 input_path="$new_path" 38030 # Check if we need to convert this using DOS-style short mode. If the path 38031 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38032 # take no chances and rewrite it. 38033 # Note: m4 eats our [], so we need to use [ and ] instead. 38034 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38035 if test "x$has_forbidden_chars" != x; then 38036 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38037 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38038 fi 38039 38040 # Output is in $new_path 38041 38042 windows_path="$new_path" 38043 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38044 unix_path=`$CYGPATH -u "$windows_path"` 38045 new_path="$unix_path" 38046 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38047 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38048 new_path="$unix_path" 38049 fi 38050 38051 # remove trailing .exe if any 38052 new_path="${new_path/%.exe/}" 38053 38054 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38055 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38056 fi 38057 38058 else 38059 # We're on a posix platform. Hooray! :) 38060 # First separate the path from the arguments. This will split at the first 38061 # space. 38062 complete="$OBJCOPY" 38063 path="${complete%% *}" 38064 tmp="$complete EOL" 38065 arguments="${tmp#* }" 38066 38067 # Cannot rely on the command "which" here since it doesn't always work. 38068 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38069 if test -z "$is_absolute_path"; then 38070 # Path to executable is not absolute. Find it. 38071 IFS_save="$IFS" 38072 IFS=: 38073 for p in $PATH; do 38074 if test -f "$p/$path" && test -x "$p/$path"; then 38075 new_path="$p/$path" 38076 break 38077 fi 38078 done 38079 IFS="$IFS_save" 38080 else 38081 # This is an absolute path, we can use it without further modifications. 38082 new_path="$path" 38083 fi 38084 38085 if test "x$new_path" = x; then 38086 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38087 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38088 has_space=`$ECHO "$complete" | $GREP " "` 38089 if test "x$has_space" != x; then 38090 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38091 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38092 fi 38093 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38094 fi 38095 fi 38096 38097 # Now join together the path and the arguments once again 38098 if test "x$arguments" != xEOL; then 38099 new_complete="$new_path ${arguments% *}" 38100 else 38101 new_complete="$new_path" 38102 fi 38103 38104 if test "x$complete" != "x$new_complete"; then 38105 OBJCOPY="$new_complete" 38106 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 38107 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 38108 fi 38109 38110 fi 38111 fi 38112 38113 38114 38115 # Publish this variable in the help. 38116 38117 38118 if test "x$OBJDUMP" = x; then 38119 # The variable is not set by user, try to locate tool using the code snippet 38120 if test -n "$ac_tool_prefix"; then 38121 for ac_prog in gobjdump objdump 38122 do 38123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38126 $as_echo_n "checking for $ac_word... " >&6; } 38127 if ${ac_cv_prog_OBJDUMP+:} false; then : 38128 $as_echo_n "(cached) " >&6 38129 else 38130 if test -n "$OBJDUMP"; then 38131 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38132 else 38133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38134 for as_dir in $PATH 38135 do 38136 IFS=$as_save_IFS 38137 test -z "$as_dir" && as_dir=. 38138 for ac_exec_ext in '' $ac_executable_extensions; do 38139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38140 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38142 break 2 38143 fi 38144 done 38145 done 38146 IFS=$as_save_IFS 38147 38148 fi 38149 fi 38150 OBJDUMP=$ac_cv_prog_OBJDUMP 38151 if test -n "$OBJDUMP"; then 38152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38153 $as_echo "$OBJDUMP" >&6; } 38154 else 38155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38156 $as_echo "no" >&6; } 38157 fi 38158 38159 38160 test -n "$OBJDUMP" && break 38161 done 38162 fi 38163 if test -z "$OBJDUMP"; then 38164 ac_ct_OBJDUMP=$OBJDUMP 38165 for ac_prog in gobjdump objdump 38166 do 38167 # Extract the first word of "$ac_prog", so it can be a program name with args. 38168 set dummy $ac_prog; ac_word=$2 38169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38170 $as_echo_n "checking for $ac_word... " >&6; } 38171 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38172 $as_echo_n "(cached) " >&6 38173 else 38174 if test -n "$ac_ct_OBJDUMP"; then 38175 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38176 else 38177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38178 for as_dir in $PATH 38179 do 38180 IFS=$as_save_IFS 38181 test -z "$as_dir" && as_dir=. 38182 for ac_exec_ext in '' $ac_executable_extensions; do 38183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38184 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38186 break 2 38187 fi 38188 done 38189 done 38190 IFS=$as_save_IFS 38191 38192 fi 38193 fi 38194 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38195 if test -n "$ac_ct_OBJDUMP"; then 38196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38197 $as_echo "$ac_ct_OBJDUMP" >&6; } 38198 else 38199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38200 $as_echo "no" >&6; } 38201 fi 38202 38203 38204 test -n "$ac_ct_OBJDUMP" && break 38205 done 38206 38207 if test "x$ac_ct_OBJDUMP" = x; then 38208 OBJDUMP="" 38209 else 38210 case $cross_compiling:$ac_tool_warned in 38211 yes:) 38212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38214 ac_tool_warned=yes ;; 38215 esac 38216 OBJDUMP=$ac_ct_OBJDUMP 38217 fi 38218 fi 38219 38220 else 38221 # The variable is set, but is it from the command line or the environment? 38222 38223 # Try to remove the string !OBJDUMP! from our list. 38224 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 38225 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38226 # If it failed, the variable was not from the command line. Ignore it, 38227 # but warn the user (except for BASH, which is always set by the calling BASH). 38228 if test "xOBJDUMP" != xBASH; then 38229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 38230 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 38231 fi 38232 # Try to locate tool using the code snippet 38233 if test -n "$ac_tool_prefix"; then 38234 for ac_prog in gobjdump objdump 38235 do 38236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38237 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38239 $as_echo_n "checking for $ac_word... " >&6; } 38240 if ${ac_cv_prog_OBJDUMP+:} false; then : 38241 $as_echo_n "(cached) " >&6 38242 else 38243 if test -n "$OBJDUMP"; then 38244 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38245 else 38246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38247 for as_dir in $PATH 38248 do 38249 IFS=$as_save_IFS 38250 test -z "$as_dir" && as_dir=. 38251 for ac_exec_ext in '' $ac_executable_extensions; do 38252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38253 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38255 break 2 38256 fi 38257 done 38258 done 38259 IFS=$as_save_IFS 38260 38261 fi 38262 fi 38263 OBJDUMP=$ac_cv_prog_OBJDUMP 38264 if test -n "$OBJDUMP"; then 38265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38266 $as_echo "$OBJDUMP" >&6; } 38267 else 38268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38269 $as_echo "no" >&6; } 38270 fi 38271 38272 38273 test -n "$OBJDUMP" && break 38274 done 38275 fi 38276 if test -z "$OBJDUMP"; then 38277 ac_ct_OBJDUMP=$OBJDUMP 38278 for ac_prog in gobjdump objdump 38279 do 38280 # Extract the first word of "$ac_prog", so it can be a program name with args. 38281 set dummy $ac_prog; ac_word=$2 38282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38283 $as_echo_n "checking for $ac_word... " >&6; } 38284 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38285 $as_echo_n "(cached) " >&6 38286 else 38287 if test -n "$ac_ct_OBJDUMP"; then 38288 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38289 else 38290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38291 for as_dir in $PATH 38292 do 38293 IFS=$as_save_IFS 38294 test -z "$as_dir" && as_dir=. 38295 for ac_exec_ext in '' $ac_executable_extensions; do 38296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38297 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38299 break 2 38300 fi 38301 done 38302 done 38303 IFS=$as_save_IFS 38304 38305 fi 38306 fi 38307 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38308 if test -n "$ac_ct_OBJDUMP"; then 38309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38310 $as_echo "$ac_ct_OBJDUMP" >&6; } 38311 else 38312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38313 $as_echo "no" >&6; } 38314 fi 38315 38316 38317 test -n "$ac_ct_OBJDUMP" && break 38318 done 38319 38320 if test "x$ac_ct_OBJDUMP" = x; then 38321 OBJDUMP="" 38322 else 38323 case $cross_compiling:$ac_tool_warned in 38324 yes:) 38325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38327 ac_tool_warned=yes ;; 38328 esac 38329 OBJDUMP=$ac_ct_OBJDUMP 38330 fi 38331 fi 38332 38333 else 38334 # If it succeeded, then it was overridden by the user. We will use it 38335 # for the tool. 38336 38337 # First remove it from the list of overridden variables, so we can test 38338 # for unknown variables in the end. 38339 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38340 38341 # Check if the provided tool contains a complete path. 38342 tool_specified="$OBJDUMP" 38343 tool_basename="${tool_specified##*/}" 38344 if test "x$tool_basename" = "x$tool_specified"; then 38345 # A command without a complete path is provided, search $PATH. 38346 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 38347 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 38348 # Extract the first word of "$tool_basename", so it can be a program name with args. 38349 set dummy $tool_basename; ac_word=$2 38350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38351 $as_echo_n "checking for $ac_word... " >&6; } 38352 if ${ac_cv_path_OBJDUMP+:} false; then : 38353 $as_echo_n "(cached) " >&6 38354 else 38355 case $OBJDUMP in 38356 [\\/]* | ?:[\\/]*) 38357 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 38358 ;; 38359 *) 38360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38361 for as_dir in $PATH 38362 do 38363 IFS=$as_save_IFS 38364 test -z "$as_dir" && as_dir=. 38365 for ac_exec_ext in '' $ac_executable_extensions; do 38366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38367 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 38368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38369 break 2 38370 fi 38371 done 38372 done 38373 IFS=$as_save_IFS 38374 38375 ;; 38376 esac 38377 fi 38378 OBJDUMP=$ac_cv_path_OBJDUMP 38379 if test -n "$OBJDUMP"; then 38380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38381 $as_echo "$OBJDUMP" >&6; } 38382 else 38383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38384 $as_echo "no" >&6; } 38385 fi 38386 38387 38388 if test "x$OBJDUMP" = x; then 38389 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38390 fi 38391 else 38392 # Otherwise we believe it is a complete path. Use it as it is. 38393 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 38394 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 38395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 38396 $as_echo_n "checking for OBJDUMP... " >&6; } 38397 if test ! -x "$tool_specified"; then 38398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38399 $as_echo "not found" >&6; } 38400 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 38401 fi 38402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38403 $as_echo "$tool_specified" >&6; } 38404 fi 38405 fi 38406 fi 38407 38408 38409 if test "x$OBJDUMP" != x; then 38410 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 38411 # bails if argument is missing. 38412 38413 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38414 38415 # First separate the path from the arguments. This will split at the first 38416 # space. 38417 complete="$OBJDUMP" 38418 path="${complete%% *}" 38419 tmp="$complete EOL" 38420 arguments="${tmp#* }" 38421 38422 # Input might be given as Windows format, start by converting to 38423 # unix format. 38424 new_path=`$CYGPATH -u "$path"` 38425 38426 # Now try to locate executable using which 38427 new_path=`$WHICH "$new_path" 2> /dev/null` 38428 # bat and cmd files are not always considered executable in cygwin causing which 38429 # to not find them 38430 if test "x$new_path" = x \ 38431 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38432 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38433 new_path=`$CYGPATH -u "$path"` 38434 fi 38435 if test "x$new_path" = x; then 38436 # Oops. Which didn't find the executable. 38437 # The splitting of arguments from the executable at a space might have been incorrect, 38438 # since paths with space are more likely in Windows. Give it another try with the whole 38439 # argument. 38440 path="$complete" 38441 arguments="EOL" 38442 new_path=`$CYGPATH -u "$path"` 38443 new_path=`$WHICH "$new_path" 2> /dev/null` 38444 # bat and cmd files are not always considered executable in cygwin causing which 38445 # to not find them 38446 if test "x$new_path" = x \ 38447 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38448 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38449 new_path=`$CYGPATH -u "$path"` 38450 fi 38451 if test "x$new_path" = x; then 38452 # It's still not found. Now this is an unrecoverable error. 38453 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 38454 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 38455 has_space=`$ECHO "$complete" | $GREP " "` 38456 if test "x$has_space" != x; then 38457 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38458 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38459 fi 38460 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38461 fi 38462 fi 38463 38464 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38465 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38466 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38467 # "foo.exe" is OK but "foo" is an error. 38468 # 38469 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38470 # It is also a way to make sure we got the proper file name for the real test later on. 38471 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38472 if test "x$test_shortpath" = x; then 38473 # Short path failed, file does not exist as specified. 38474 # Try adding .exe or .cmd 38475 if test -f "${new_path}.exe"; then 38476 input_to_shortpath="${new_path}.exe" 38477 elif test -f "${new_path}.cmd"; then 38478 input_to_shortpath="${new_path}.cmd" 38479 else 38480 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 38481 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 38482 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38483 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38484 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38485 fi 38486 else 38487 input_to_shortpath="$new_path" 38488 fi 38489 38490 # Call helper function which possibly converts this using DOS-style short mode. 38491 # If so, the updated path is stored in $new_path. 38492 new_path="$input_to_shortpath" 38493 38494 input_path="$input_to_shortpath" 38495 # Check if we need to convert this using DOS-style short mode. If the path 38496 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38497 # take no chances and rewrite it. 38498 # Note: m4 eats our [], so we need to use [ and ] instead. 38499 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38500 if test "x$has_forbidden_chars" != x; then 38501 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38502 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38503 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38504 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38505 # Going to short mode and back again did indeed matter. Since short mode is 38506 # case insensitive, let's make it lowercase to improve readability. 38507 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38508 # Now convert it back to Unix-style (cygpath) 38509 input_path=`$CYGPATH -u "$shortmode_path"` 38510 new_path="$input_path" 38511 fi 38512 fi 38513 38514 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38515 if test "x$test_cygdrive_prefix" = x; then 38516 # As a simple fix, exclude /usr/bin since it's not a real path. 38517 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38518 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38519 # a path prefixed by /cygdrive for fixpath to work. 38520 new_path="$CYGWIN_ROOT_PATH$input_path" 38521 fi 38522 fi 38523 38524 # remove trailing .exe if any 38525 new_path="${new_path/%.exe/}" 38526 38527 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38528 38529 # First separate the path from the arguments. This will split at the first 38530 # space. 38531 complete="$OBJDUMP" 38532 path="${complete%% *}" 38533 tmp="$complete EOL" 38534 arguments="${tmp#* }" 38535 38536 # Input might be given as Windows format, start by converting to 38537 # unix format. 38538 new_path="$path" 38539 38540 windows_path="$new_path" 38541 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38542 unix_path=`$CYGPATH -u "$windows_path"` 38543 new_path="$unix_path" 38544 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38545 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38546 new_path="$unix_path" 38547 fi 38548 38549 38550 # Now try to locate executable using which 38551 new_path=`$WHICH "$new_path" 2> /dev/null` 38552 38553 if test "x$new_path" = x; then 38554 # Oops. Which didn't find the executable. 38555 # The splitting of arguments from the executable at a space might have been incorrect, 38556 # since paths with space are more likely in Windows. Give it another try with the whole 38557 # argument. 38558 path="$complete" 38559 arguments="EOL" 38560 new_path="$path" 38561 38562 windows_path="$new_path" 38563 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38564 unix_path=`$CYGPATH -u "$windows_path"` 38565 new_path="$unix_path" 38566 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38567 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38568 new_path="$unix_path" 38569 fi 38570 38571 38572 new_path=`$WHICH "$new_path" 2> /dev/null` 38573 # bat and cmd files are not always considered executable in MSYS causing which 38574 # to not find them 38575 if test "x$new_path" = x \ 38576 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38577 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38578 new_path="$path" 38579 38580 windows_path="$new_path" 38581 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38582 unix_path=`$CYGPATH -u "$windows_path"` 38583 new_path="$unix_path" 38584 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38585 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38586 new_path="$unix_path" 38587 fi 38588 38589 fi 38590 38591 if test "x$new_path" = x; then 38592 # It's still not found. Now this is an unrecoverable error. 38593 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 38594 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 38595 has_space=`$ECHO "$complete" | $GREP " "` 38596 if test "x$has_space" != x; then 38597 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38598 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38599 fi 38600 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38601 fi 38602 fi 38603 38604 # Now new_path has a complete unix path to the binary 38605 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38606 # Keep paths in /bin as-is, but remove trailing .exe if any 38607 new_path="${new_path/%.exe/}" 38608 # Do not save /bin paths to all_fixpath_prefixes! 38609 else 38610 # Not in mixed or Windows style, start by that. 38611 new_path=`cmd //c echo $new_path` 38612 38613 input_path="$new_path" 38614 # Check if we need to convert this using DOS-style short mode. If the path 38615 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38616 # take no chances and rewrite it. 38617 # Note: m4 eats our [], so we need to use [ and ] instead. 38618 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38619 if test "x$has_forbidden_chars" != x; then 38620 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38621 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38622 fi 38623 38624 # Output is in $new_path 38625 38626 windows_path="$new_path" 38627 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38628 unix_path=`$CYGPATH -u "$windows_path"` 38629 new_path="$unix_path" 38630 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38631 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38632 new_path="$unix_path" 38633 fi 38634 38635 # remove trailing .exe if any 38636 new_path="${new_path/%.exe/}" 38637 38638 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38639 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38640 fi 38641 38642 else 38643 # We're on a posix platform. Hooray! :) 38644 # First separate the path from the arguments. This will split at the first 38645 # space. 38646 complete="$OBJDUMP" 38647 path="${complete%% *}" 38648 tmp="$complete EOL" 38649 arguments="${tmp#* }" 38650 38651 # Cannot rely on the command "which" here since it doesn't always work. 38652 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38653 if test -z "$is_absolute_path"; then 38654 # Path to executable is not absolute. Find it. 38655 IFS_save="$IFS" 38656 IFS=: 38657 for p in $PATH; do 38658 if test -f "$p/$path" && test -x "$p/$path"; then 38659 new_path="$p/$path" 38660 break 38661 fi 38662 done 38663 IFS="$IFS_save" 38664 else 38665 # This is an absolute path, we can use it without further modifications. 38666 new_path="$path" 38667 fi 38668 38669 if test "x$new_path" = x; then 38670 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 38671 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 38672 has_space=`$ECHO "$complete" | $GREP " "` 38673 if test "x$has_space" != x; then 38674 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38675 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38676 fi 38677 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38678 fi 38679 fi 38680 38681 # Now join together the path and the arguments once again 38682 if test "x$arguments" != xEOL; then 38683 new_complete="$new_path ${arguments% *}" 38684 else 38685 new_complete="$new_path" 38686 fi 38687 38688 if test "x$complete" != "x$new_complete"; then 38689 OBJDUMP="$new_complete" 38690 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 38691 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 38692 fi 38693 38694 fi 38695 38696 38697 # Restore old path, except for the microsoft toolchain, which requires VS_PATH 38698 # to remain in place. Otherwise the compiler will not work in some situations 38699 # in later configure checks. 38700 if test "x$TOOLCHAIN_TYPE" != "xmicrosoft"; then 38701 PATH="$OLD_PATH" 38702 fi 38703 38704 # Restore the flags to the user specified values. 38705 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 38706 CFLAGS="$ORG_CFLAGS" 38707 CXXFLAGS="$ORG_CXXFLAGS" 38708 OBJCFLAGS="$ORG_OBJCFLAGS" 38709 38710 38711 # Finally do some processing after the detection phase 38712 38713 if test "x$COMPILE_TYPE" = "xcross"; then 38714 # Now we need to find a C/C++ compiler that can build executables for the 38715 # build platform. We can't use the AC_PROG_CC macro, since it can only be 38716 # used once. Also, we need to do this without adding a tools dir to the 38717 # path, otherwise we might pick up cross-compilers which don't use standard 38718 # naming. 38719 38720 # FIXME: we should list the discovered compilers as an exclude pattern! 38721 # If we do that, we can do this detection before POST_DETECTION, and still 38722 # find the build compilers in the tools dir, if needed. 38723 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 38724 38725 38726 # Publish this variable in the help. 38727 38728 38729 if test "x$BUILD_CC" = x; then 38730 # The variable is not set by user, try to locate tool using the code snippet 38731 for ac_prog in clang cl cc gcc 38732 do 38733 # Extract the first word of "$ac_prog", so it can be a program name with args. 38734 set dummy $ac_prog; ac_word=$2 38735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38736 $as_echo_n "checking for $ac_word... " >&6; } 38737 if ${ac_cv_path_BUILD_CC+:} false; then : 38738 $as_echo_n "(cached) " >&6 38739 else 38740 case $BUILD_CC in 38741 [\\/]* | ?:[\\/]*) 38742 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 38743 ;; 38744 *) 38745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38746 for as_dir in $PATH 38747 do 38748 IFS=$as_save_IFS 38749 test -z "$as_dir" && as_dir=. 38750 for ac_exec_ext in '' $ac_executable_extensions; do 38751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38752 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 38753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38754 break 2 38755 fi 38756 done 38757 done 38758 IFS=$as_save_IFS 38759 38760 ;; 38761 esac 38762 fi 38763 BUILD_CC=$ac_cv_path_BUILD_CC 38764 if test -n "$BUILD_CC"; then 38765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 38766 $as_echo "$BUILD_CC" >&6; } 38767 else 38768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38769 $as_echo "no" >&6; } 38770 fi 38771 38772 38773 test -n "$BUILD_CC" && break 38774 done 38775 38776 else 38777 # The variable is set, but is it from the command line or the environment? 38778 38779 # Try to remove the string !BUILD_CC! from our list. 38780 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 38781 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38782 # If it failed, the variable was not from the command line. Ignore it, 38783 # but warn the user (except for BASH, which is always set by the calling BASH). 38784 if test "xBUILD_CC" != xBASH; then 38785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 38786 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 38787 fi 38788 # Try to locate tool using the code snippet 38789 for ac_prog in clang cl cc gcc 38790 do 38791 # Extract the first word of "$ac_prog", so it can be a program name with args. 38792 set dummy $ac_prog; ac_word=$2 38793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38794 $as_echo_n "checking for $ac_word... " >&6; } 38795 if ${ac_cv_path_BUILD_CC+:} false; then : 38796 $as_echo_n "(cached) " >&6 38797 else 38798 case $BUILD_CC in 38799 [\\/]* | ?:[\\/]*) 38800 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 38801 ;; 38802 *) 38803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38804 for as_dir in $PATH 38805 do 38806 IFS=$as_save_IFS 38807 test -z "$as_dir" && as_dir=. 38808 for ac_exec_ext in '' $ac_executable_extensions; do 38809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38810 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 38811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38812 break 2 38813 fi 38814 done 38815 done 38816 IFS=$as_save_IFS 38817 38818 ;; 38819 esac 38820 fi 38821 BUILD_CC=$ac_cv_path_BUILD_CC 38822 if test -n "$BUILD_CC"; then 38823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 38824 $as_echo "$BUILD_CC" >&6; } 38825 else 38826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38827 $as_echo "no" >&6; } 38828 fi 38829 38830 38831 test -n "$BUILD_CC" && break 38832 done 38833 38834 else 38835 # If it succeeded, then it was overridden by the user. We will use it 38836 # for the tool. 38837 38838 # First remove it from the list of overridden variables, so we can test 38839 # for unknown variables in the end. 38840 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38841 38842 # Check if the provided tool contains a complete path. 38843 tool_specified="$BUILD_CC" 38844 tool_basename="${tool_specified##*/}" 38845 if test "x$tool_basename" = "x$tool_specified"; then 38846 # A command without a complete path is provided, search $PATH. 38847 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 38848 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 38849 # Extract the first word of "$tool_basename", so it can be a program name with args. 38850 set dummy $tool_basename; ac_word=$2 38851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38852 $as_echo_n "checking for $ac_word... " >&6; } 38853 if ${ac_cv_path_BUILD_CC+:} false; then : 38854 $as_echo_n "(cached) " >&6 38855 else 38856 case $BUILD_CC in 38857 [\\/]* | ?:[\\/]*) 38858 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 38859 ;; 38860 *) 38861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38862 for as_dir in $PATH 38863 do 38864 IFS=$as_save_IFS 38865 test -z "$as_dir" && as_dir=. 38866 for ac_exec_ext in '' $ac_executable_extensions; do 38867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38868 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 38869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38870 break 2 38871 fi 38872 done 38873 done 38874 IFS=$as_save_IFS 38875 38876 ;; 38877 esac 38878 fi 38879 BUILD_CC=$ac_cv_path_BUILD_CC 38880 if test -n "$BUILD_CC"; then 38881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 38882 $as_echo "$BUILD_CC" >&6; } 38883 else 38884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38885 $as_echo "no" >&6; } 38886 fi 38887 38888 38889 if test "x$BUILD_CC" = x; then 38890 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38891 fi 38892 else 38893 # Otherwise we believe it is a complete path. Use it as it is. 38894 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 38895 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 38896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 38897 $as_echo_n "checking for BUILD_CC... " >&6; } 38898 if test ! -x "$tool_specified"; then 38899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38900 $as_echo "not found" >&6; } 38901 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 38902 fi 38903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38904 $as_echo "$tool_specified" >&6; } 38905 fi 38906 fi 38907 fi 38908 38909 38910 38911 38912 # Publish this variable in the help. 38913 38914 38915 if test "x$BUILD_CXX" = x; then 38916 # The variable is not set by user, try to locate tool using the code snippet 38917 for ac_prog in clang++ cl CC g++ 38918 do 38919 # Extract the first word of "$ac_prog", so it can be a program name with args. 38920 set dummy $ac_prog; ac_word=$2 38921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38922 $as_echo_n "checking for $ac_word... " >&6; } 38923 if ${ac_cv_path_BUILD_CXX+:} false; then : 38924 $as_echo_n "(cached) " >&6 38925 else 38926 case $BUILD_CXX in 38927 [\\/]* | ?:[\\/]*) 38928 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 38929 ;; 38930 *) 38931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38932 for as_dir in $PATH 38933 do 38934 IFS=$as_save_IFS 38935 test -z "$as_dir" && as_dir=. 38936 for ac_exec_ext in '' $ac_executable_extensions; do 38937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38938 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 38939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38940 break 2 38941 fi 38942 done 38943 done 38944 IFS=$as_save_IFS 38945 38946 ;; 38947 esac 38948 fi 38949 BUILD_CXX=$ac_cv_path_BUILD_CXX 38950 if test -n "$BUILD_CXX"; then 38951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 38952 $as_echo "$BUILD_CXX" >&6; } 38953 else 38954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38955 $as_echo "no" >&6; } 38956 fi 38957 38958 38959 test -n "$BUILD_CXX" && break 38960 done 38961 38962 else 38963 # The variable is set, but is it from the command line or the environment? 38964 38965 # Try to remove the string !BUILD_CXX! from our list. 38966 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 38967 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38968 # If it failed, the variable was not from the command line. Ignore it, 38969 # but warn the user (except for BASH, which is always set by the calling BASH). 38970 if test "xBUILD_CXX" != xBASH; then 38971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 38972 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 38973 fi 38974 # Try to locate tool using the code snippet 38975 for ac_prog in clang++ cl CC g++ 38976 do 38977 # Extract the first word of "$ac_prog", so it can be a program name with args. 38978 set dummy $ac_prog; ac_word=$2 38979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38980 $as_echo_n "checking for $ac_word... " >&6; } 38981 if ${ac_cv_path_BUILD_CXX+:} false; then : 38982 $as_echo_n "(cached) " >&6 38983 else 38984 case $BUILD_CXX in 38985 [\\/]* | ?:[\\/]*) 38986 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 38987 ;; 38988 *) 38989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38990 for as_dir in $PATH 38991 do 38992 IFS=$as_save_IFS 38993 test -z "$as_dir" && as_dir=. 38994 for ac_exec_ext in '' $ac_executable_extensions; do 38995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38996 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 38997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38998 break 2 38999 fi 39000 done 39001 done 39002 IFS=$as_save_IFS 39003 39004 ;; 39005 esac 39006 fi 39007 BUILD_CXX=$ac_cv_path_BUILD_CXX 39008 if test -n "$BUILD_CXX"; then 39009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39010 $as_echo "$BUILD_CXX" >&6; } 39011 else 39012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39013 $as_echo "no" >&6; } 39014 fi 39015 39016 39017 test -n "$BUILD_CXX" && break 39018 done 39019 39020 else 39021 # If it succeeded, then it was overridden by the user. We will use it 39022 # for the tool. 39023 39024 # First remove it from the list of overridden variables, so we can test 39025 # for unknown variables in the end. 39026 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39027 39028 # Check if the provided tool contains a complete path. 39029 tool_specified="$BUILD_CXX" 39030 tool_basename="${tool_specified##*/}" 39031 if test "x$tool_basename" = "x$tool_specified"; then 39032 # A command without a complete path is provided, search $PATH. 39033 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 39034 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 39035 # Extract the first word of "$tool_basename", so it can be a program name with args. 39036 set dummy $tool_basename; ac_word=$2 39037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39038 $as_echo_n "checking for $ac_word... " >&6; } 39039 if ${ac_cv_path_BUILD_CXX+:} false; then : 39040 $as_echo_n "(cached) " >&6 39041 else 39042 case $BUILD_CXX in 39043 [\\/]* | ?:[\\/]*) 39044 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39045 ;; 39046 *) 39047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39048 for as_dir in $PATH 39049 do 39050 IFS=$as_save_IFS 39051 test -z "$as_dir" && as_dir=. 39052 for ac_exec_ext in '' $ac_executable_extensions; do 39053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39054 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39056 break 2 39057 fi 39058 done 39059 done 39060 IFS=$as_save_IFS 39061 39062 ;; 39063 esac 39064 fi 39065 BUILD_CXX=$ac_cv_path_BUILD_CXX 39066 if test -n "$BUILD_CXX"; then 39067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39068 $as_echo "$BUILD_CXX" >&6; } 39069 else 39070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39071 $as_echo "no" >&6; } 39072 fi 39073 39074 39075 if test "x$BUILD_CXX" = x; then 39076 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39077 fi 39078 else 39079 # Otherwise we believe it is a complete path. Use it as it is. 39080 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 39081 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 39082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 39083 $as_echo_n "checking for BUILD_CXX... " >&6; } 39084 if test ! -x "$tool_specified"; then 39085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39086 $as_echo "not found" >&6; } 39087 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 39088 fi 39089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39090 $as_echo "$tool_specified" >&6; } 39091 fi 39092 fi 39093 fi 39094 39095 39096 else 39097 39098 39099 39100 # Publish this variable in the help. 39101 39102 39103 if test "x$BUILD_CC" = x; then 39104 # The variable is not set by user, try to locate tool using the code snippet 39105 for ac_prog in cl cc gcc 39106 do 39107 # Extract the first word of "$ac_prog", so it can be a program name with args. 39108 set dummy $ac_prog; ac_word=$2 39109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39110 $as_echo_n "checking for $ac_word... " >&6; } 39111 if ${ac_cv_path_BUILD_CC+:} false; then : 39112 $as_echo_n "(cached) " >&6 39113 else 39114 case $BUILD_CC in 39115 [\\/]* | ?:[\\/]*) 39116 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39117 ;; 39118 *) 39119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39120 for as_dir in $PATH 39121 do 39122 IFS=$as_save_IFS 39123 test -z "$as_dir" && as_dir=. 39124 for ac_exec_ext in '' $ac_executable_extensions; do 39125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39126 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39128 break 2 39129 fi 39130 done 39131 done 39132 IFS=$as_save_IFS 39133 39134 ;; 39135 esac 39136 fi 39137 BUILD_CC=$ac_cv_path_BUILD_CC 39138 if test -n "$BUILD_CC"; then 39139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39140 $as_echo "$BUILD_CC" >&6; } 39141 else 39142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39143 $as_echo "no" >&6; } 39144 fi 39145 39146 39147 test -n "$BUILD_CC" && break 39148 done 39149 39150 else 39151 # The variable is set, but is it from the command line or the environment? 39152 39153 # Try to remove the string !BUILD_CC! from our list. 39154 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 39155 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39156 # If it failed, the variable was not from the command line. Ignore it, 39157 # but warn the user (except for BASH, which is always set by the calling BASH). 39158 if test "xBUILD_CC" != xBASH; then 39159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 39160 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 39161 fi 39162 # Try to locate tool using the code snippet 39163 for ac_prog in cl cc gcc 39164 do 39165 # Extract the first word of "$ac_prog", so it can be a program name with args. 39166 set dummy $ac_prog; ac_word=$2 39167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39168 $as_echo_n "checking for $ac_word... " >&6; } 39169 if ${ac_cv_path_BUILD_CC+:} false; then : 39170 $as_echo_n "(cached) " >&6 39171 else 39172 case $BUILD_CC in 39173 [\\/]* | ?:[\\/]*) 39174 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39175 ;; 39176 *) 39177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39178 for as_dir in $PATH 39179 do 39180 IFS=$as_save_IFS 39181 test -z "$as_dir" && as_dir=. 39182 for ac_exec_ext in '' $ac_executable_extensions; do 39183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39184 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39186 break 2 39187 fi 39188 done 39189 done 39190 IFS=$as_save_IFS 39191 39192 ;; 39193 esac 39194 fi 39195 BUILD_CC=$ac_cv_path_BUILD_CC 39196 if test -n "$BUILD_CC"; then 39197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39198 $as_echo "$BUILD_CC" >&6; } 39199 else 39200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39201 $as_echo "no" >&6; } 39202 fi 39203 39204 39205 test -n "$BUILD_CC" && break 39206 done 39207 39208 else 39209 # If it succeeded, then it was overridden by the user. We will use it 39210 # for the tool. 39211 39212 # First remove it from the list of overridden variables, so we can test 39213 # for unknown variables in the end. 39214 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39215 39216 # Check if the provided tool contains a complete path. 39217 tool_specified="$BUILD_CC" 39218 tool_basename="${tool_specified##*/}" 39219 if test "x$tool_basename" = "x$tool_specified"; then 39220 # A command without a complete path is provided, search $PATH. 39221 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 39222 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 39223 # Extract the first word of "$tool_basename", so it can be a program name with args. 39224 set dummy $tool_basename; ac_word=$2 39225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39226 $as_echo_n "checking for $ac_word... " >&6; } 39227 if ${ac_cv_path_BUILD_CC+:} false; then : 39228 $as_echo_n "(cached) " >&6 39229 else 39230 case $BUILD_CC in 39231 [\\/]* | ?:[\\/]*) 39232 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39233 ;; 39234 *) 39235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39236 for as_dir in $PATH 39237 do 39238 IFS=$as_save_IFS 39239 test -z "$as_dir" && as_dir=. 39240 for ac_exec_ext in '' $ac_executable_extensions; do 39241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39242 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39244 break 2 39245 fi 39246 done 39247 done 39248 IFS=$as_save_IFS 39249 39250 ;; 39251 esac 39252 fi 39253 BUILD_CC=$ac_cv_path_BUILD_CC 39254 if test -n "$BUILD_CC"; then 39255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39256 $as_echo "$BUILD_CC" >&6; } 39257 else 39258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39259 $as_echo "no" >&6; } 39260 fi 39261 39262 39263 if test "x$BUILD_CC" = x; then 39264 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39265 fi 39266 else 39267 # Otherwise we believe it is a complete path. Use it as it is. 39268 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 39269 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 39270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 39271 $as_echo_n "checking for BUILD_CC... " >&6; } 39272 if test ! -x "$tool_specified"; then 39273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39274 $as_echo "not found" >&6; } 39275 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 39276 fi 39277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39278 $as_echo "$tool_specified" >&6; } 39279 fi 39280 fi 39281 fi 39282 39283 39284 39285 if test "x$BUILD_CC" = x; then 39286 as_fn_error $? "Could not find required tool for BUILD_CC" "$LINENO" 5 39287 fi 39288 39289 39290 39291 39292 39293 # Publish this variable in the help. 39294 39295 39296 if test "x$BUILD_CXX" = x; then 39297 # The variable is not set by user, try to locate tool using the code snippet 39298 for ac_prog in cl CC g++ 39299 do 39300 # Extract the first word of "$ac_prog", so it can be a program name with args. 39301 set dummy $ac_prog; ac_word=$2 39302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39303 $as_echo_n "checking for $ac_word... " >&6; } 39304 if ${ac_cv_path_BUILD_CXX+:} false; then : 39305 $as_echo_n "(cached) " >&6 39306 else 39307 case $BUILD_CXX in 39308 [\\/]* | ?:[\\/]*) 39309 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39310 ;; 39311 *) 39312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39313 for as_dir in $PATH 39314 do 39315 IFS=$as_save_IFS 39316 test -z "$as_dir" && as_dir=. 39317 for ac_exec_ext in '' $ac_executable_extensions; do 39318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39319 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39321 break 2 39322 fi 39323 done 39324 done 39325 IFS=$as_save_IFS 39326 39327 ;; 39328 esac 39329 fi 39330 BUILD_CXX=$ac_cv_path_BUILD_CXX 39331 if test -n "$BUILD_CXX"; then 39332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39333 $as_echo "$BUILD_CXX" >&6; } 39334 else 39335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39336 $as_echo "no" >&6; } 39337 fi 39338 39339 39340 test -n "$BUILD_CXX" && break 39341 done 39342 39343 else 39344 # The variable is set, but is it from the command line or the environment? 39345 39346 # Try to remove the string !BUILD_CXX! from our list. 39347 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 39348 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39349 # If it failed, the variable was not from the command line. Ignore it, 39350 # but warn the user (except for BASH, which is always set by the calling BASH). 39351 if test "xBUILD_CXX" != xBASH; then 39352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 39353 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 39354 fi 39355 # Try to locate tool using the code snippet 39356 for ac_prog in cl CC g++ 39357 do 39358 # Extract the first word of "$ac_prog", so it can be a program name with args. 39359 set dummy $ac_prog; ac_word=$2 39360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39361 $as_echo_n "checking for $ac_word... " >&6; } 39362 if ${ac_cv_path_BUILD_CXX+:} false; then : 39363 $as_echo_n "(cached) " >&6 39364 else 39365 case $BUILD_CXX in 39366 [\\/]* | ?:[\\/]*) 39367 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39368 ;; 39369 *) 39370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39371 for as_dir in $PATH 39372 do 39373 IFS=$as_save_IFS 39374 test -z "$as_dir" && as_dir=. 39375 for ac_exec_ext in '' $ac_executable_extensions; do 39376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39377 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39379 break 2 39380 fi 39381 done 39382 done 39383 IFS=$as_save_IFS 39384 39385 ;; 39386 esac 39387 fi 39388 BUILD_CXX=$ac_cv_path_BUILD_CXX 39389 if test -n "$BUILD_CXX"; then 39390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39391 $as_echo "$BUILD_CXX" >&6; } 39392 else 39393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39394 $as_echo "no" >&6; } 39395 fi 39396 39397 39398 test -n "$BUILD_CXX" && break 39399 done 39400 39401 else 39402 # If it succeeded, then it was overridden by the user. We will use it 39403 # for the tool. 39404 39405 # First remove it from the list of overridden variables, so we can test 39406 # for unknown variables in the end. 39407 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39408 39409 # Check if the provided tool contains a complete path. 39410 tool_specified="$BUILD_CXX" 39411 tool_basename="${tool_specified##*/}" 39412 if test "x$tool_basename" = "x$tool_specified"; then 39413 # A command without a complete path is provided, search $PATH. 39414 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 39415 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 39416 # Extract the first word of "$tool_basename", so it can be a program name with args. 39417 set dummy $tool_basename; ac_word=$2 39418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39419 $as_echo_n "checking for $ac_word... " >&6; } 39420 if ${ac_cv_path_BUILD_CXX+:} false; then : 39421 $as_echo_n "(cached) " >&6 39422 else 39423 case $BUILD_CXX in 39424 [\\/]* | ?:[\\/]*) 39425 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39426 ;; 39427 *) 39428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39429 for as_dir in $PATH 39430 do 39431 IFS=$as_save_IFS 39432 test -z "$as_dir" && as_dir=. 39433 for ac_exec_ext in '' $ac_executable_extensions; do 39434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39435 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39437 break 2 39438 fi 39439 done 39440 done 39441 IFS=$as_save_IFS 39442 39443 ;; 39444 esac 39445 fi 39446 BUILD_CXX=$ac_cv_path_BUILD_CXX 39447 if test -n "$BUILD_CXX"; then 39448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39449 $as_echo "$BUILD_CXX" >&6; } 39450 else 39451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39452 $as_echo "no" >&6; } 39453 fi 39454 39455 39456 if test "x$BUILD_CXX" = x; then 39457 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39458 fi 39459 else 39460 # Otherwise we believe it is a complete path. Use it as it is. 39461 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 39462 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 39463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 39464 $as_echo_n "checking for BUILD_CXX... " >&6; } 39465 if test ! -x "$tool_specified"; then 39466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39467 $as_echo "not found" >&6; } 39468 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 39469 fi 39470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39471 $as_echo "$tool_specified" >&6; } 39472 fi 39473 fi 39474 fi 39475 39476 39477 39478 if test "x$BUILD_CXX" = x; then 39479 as_fn_error $? "Could not find required tool for BUILD_CXX" "$LINENO" 5 39480 fi 39481 39482 39483 fi 39484 39485 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39486 39487 # First separate the path from the arguments. This will split at the first 39488 # space. 39489 complete="$BUILD_CC" 39490 path="${complete%% *}" 39491 tmp="$complete EOL" 39492 arguments="${tmp#* }" 39493 39494 # Input might be given as Windows format, start by converting to 39495 # unix format. 39496 new_path=`$CYGPATH -u "$path"` 39497 39498 # Now try to locate executable using which 39499 new_path=`$WHICH "$new_path" 2> /dev/null` 39500 # bat and cmd files are not always considered executable in cygwin causing which 39501 # to not find them 39502 if test "x$new_path" = x \ 39503 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39504 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39505 new_path=`$CYGPATH -u "$path"` 39506 fi 39507 if test "x$new_path" = x; then 39508 # Oops. Which didn't find the executable. 39509 # The splitting of arguments from the executable at a space might have been incorrect, 39510 # since paths with space are more likely in Windows. Give it another try with the whole 39511 # argument. 39512 path="$complete" 39513 arguments="EOL" 39514 new_path=`$CYGPATH -u "$path"` 39515 new_path=`$WHICH "$new_path" 2> /dev/null` 39516 # bat and cmd files are not always considered executable in cygwin causing which 39517 # to not find them 39518 if test "x$new_path" = x \ 39519 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39520 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39521 new_path=`$CYGPATH -u "$path"` 39522 fi 39523 if test "x$new_path" = x; then 39524 # It's still not found. Now this is an unrecoverable error. 39525 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39526 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39527 has_space=`$ECHO "$complete" | $GREP " "` 39528 if test "x$has_space" != x; then 39529 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39530 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39531 fi 39532 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39533 fi 39534 fi 39535 39536 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39537 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39538 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39539 # "foo.exe" is OK but "foo" is an error. 39540 # 39541 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39542 # It is also a way to make sure we got the proper file name for the real test later on. 39543 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39544 if test "x$test_shortpath" = x; then 39545 # Short path failed, file does not exist as specified. 39546 # Try adding .exe or .cmd 39547 if test -f "${new_path}.exe"; then 39548 input_to_shortpath="${new_path}.exe" 39549 elif test -f "${new_path}.cmd"; then 39550 input_to_shortpath="${new_path}.cmd" 39551 else 39552 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 39553 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 39554 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39555 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39556 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39557 fi 39558 else 39559 input_to_shortpath="$new_path" 39560 fi 39561 39562 # Call helper function which possibly converts this using DOS-style short mode. 39563 # If so, the updated path is stored in $new_path. 39564 new_path="$input_to_shortpath" 39565 39566 input_path="$input_to_shortpath" 39567 # Check if we need to convert this using DOS-style short mode. If the path 39568 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39569 # take no chances and rewrite it. 39570 # Note: m4 eats our [], so we need to use [ and ] instead. 39571 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39572 if test "x$has_forbidden_chars" != x; then 39573 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39574 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39575 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39576 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39577 # Going to short mode and back again did indeed matter. Since short mode is 39578 # case insensitive, let's make it lowercase to improve readability. 39579 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39580 # Now convert it back to Unix-style (cygpath) 39581 input_path=`$CYGPATH -u "$shortmode_path"` 39582 new_path="$input_path" 39583 fi 39584 fi 39585 39586 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39587 if test "x$test_cygdrive_prefix" = x; then 39588 # As a simple fix, exclude /usr/bin since it's not a real path. 39589 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39590 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39591 # a path prefixed by /cygdrive for fixpath to work. 39592 new_path="$CYGWIN_ROOT_PATH$input_path" 39593 fi 39594 fi 39595 39596 # remove trailing .exe if any 39597 new_path="${new_path/%.exe/}" 39598 39599 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39600 39601 # First separate the path from the arguments. This will split at the first 39602 # space. 39603 complete="$BUILD_CC" 39604 path="${complete%% *}" 39605 tmp="$complete EOL" 39606 arguments="${tmp#* }" 39607 39608 # Input might be given as Windows format, start by converting to 39609 # unix format. 39610 new_path="$path" 39611 39612 windows_path="$new_path" 39613 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39614 unix_path=`$CYGPATH -u "$windows_path"` 39615 new_path="$unix_path" 39616 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39617 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39618 new_path="$unix_path" 39619 fi 39620 39621 39622 # Now try to locate executable using which 39623 new_path=`$WHICH "$new_path" 2> /dev/null` 39624 39625 if test "x$new_path" = x; then 39626 # Oops. Which didn't find the executable. 39627 # The splitting of arguments from the executable at a space might have been incorrect, 39628 # since paths with space are more likely in Windows. Give it another try with the whole 39629 # argument. 39630 path="$complete" 39631 arguments="EOL" 39632 new_path="$path" 39633 39634 windows_path="$new_path" 39635 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39636 unix_path=`$CYGPATH -u "$windows_path"` 39637 new_path="$unix_path" 39638 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39639 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39640 new_path="$unix_path" 39641 fi 39642 39643 39644 new_path=`$WHICH "$new_path" 2> /dev/null` 39645 # bat and cmd files are not always considered executable in MSYS causing which 39646 # to not find them 39647 if test "x$new_path" = x \ 39648 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39649 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39650 new_path="$path" 39651 39652 windows_path="$new_path" 39653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39654 unix_path=`$CYGPATH -u "$windows_path"` 39655 new_path="$unix_path" 39656 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39657 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39658 new_path="$unix_path" 39659 fi 39660 39661 fi 39662 39663 if test "x$new_path" = x; then 39664 # It's still not found. Now this is an unrecoverable error. 39665 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39666 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39667 has_space=`$ECHO "$complete" | $GREP " "` 39668 if test "x$has_space" != x; then 39669 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39670 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39671 fi 39672 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39673 fi 39674 fi 39675 39676 # Now new_path has a complete unix path to the binary 39677 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39678 # Keep paths in /bin as-is, but remove trailing .exe if any 39679 new_path="${new_path/%.exe/}" 39680 # Do not save /bin paths to all_fixpath_prefixes! 39681 else 39682 # Not in mixed or Windows style, start by that. 39683 new_path=`cmd //c echo $new_path` 39684 39685 input_path="$new_path" 39686 # Check if we need to convert this using DOS-style short mode. If the path 39687 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39688 # take no chances and rewrite it. 39689 # Note: m4 eats our [], so we need to use [ and ] instead. 39690 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39691 if test "x$has_forbidden_chars" != x; then 39692 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39693 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39694 fi 39695 39696 # Output is in $new_path 39697 39698 windows_path="$new_path" 39699 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39700 unix_path=`$CYGPATH -u "$windows_path"` 39701 new_path="$unix_path" 39702 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39703 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39704 new_path="$unix_path" 39705 fi 39706 39707 # remove trailing .exe if any 39708 new_path="${new_path/%.exe/}" 39709 39710 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39711 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39712 fi 39713 39714 else 39715 # We're on a posix platform. Hooray! :) 39716 # First separate the path from the arguments. This will split at the first 39717 # space. 39718 complete="$BUILD_CC" 39719 path="${complete%% *}" 39720 tmp="$complete EOL" 39721 arguments="${tmp#* }" 39722 39723 # Cannot rely on the command "which" here since it doesn't always work. 39724 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39725 if test -z "$is_absolute_path"; then 39726 # Path to executable is not absolute. Find it. 39727 IFS_save="$IFS" 39728 IFS=: 39729 for p in $PATH; do 39730 if test -f "$p/$path" && test -x "$p/$path"; then 39731 new_path="$p/$path" 39732 break 39733 fi 39734 done 39735 IFS="$IFS_save" 39736 else 39737 # This is an absolute path, we can use it without further modifications. 39738 new_path="$path" 39739 fi 39740 39741 if test "x$new_path" = x; then 39742 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39743 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39744 has_space=`$ECHO "$complete" | $GREP " "` 39745 if test "x$has_space" != x; then 39746 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39747 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39748 fi 39749 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39750 fi 39751 fi 39752 39753 # Now join together the path and the arguments once again 39754 if test "x$arguments" != xEOL; then 39755 new_complete="$new_path ${arguments% *}" 39756 else 39757 new_complete="$new_path" 39758 fi 39759 39760 if test "x$complete" != "x$new_complete"; then 39761 BUILD_CC="$new_complete" 39762 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 39763 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 39764 fi 39765 39766 39767 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39768 39769 # First separate the path from the arguments. This will split at the first 39770 # space. 39771 complete="$BUILD_CXX" 39772 path="${complete%% *}" 39773 tmp="$complete EOL" 39774 arguments="${tmp#* }" 39775 39776 # Input might be given as Windows format, start by converting to 39777 # unix format. 39778 new_path=`$CYGPATH -u "$path"` 39779 39780 # Now try to locate executable using which 39781 new_path=`$WHICH "$new_path" 2> /dev/null` 39782 # bat and cmd files are not always considered executable in cygwin causing which 39783 # to not find them 39784 if test "x$new_path" = x \ 39785 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39786 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39787 new_path=`$CYGPATH -u "$path"` 39788 fi 39789 if test "x$new_path" = x; then 39790 # Oops. Which didn't find the executable. 39791 # The splitting of arguments from the executable at a space might have been incorrect, 39792 # since paths with space are more likely in Windows. Give it another try with the whole 39793 # argument. 39794 path="$complete" 39795 arguments="EOL" 39796 new_path=`$CYGPATH -u "$path"` 39797 new_path=`$WHICH "$new_path" 2> /dev/null` 39798 # bat and cmd files are not always considered executable in cygwin causing which 39799 # to not find them 39800 if test "x$new_path" = x \ 39801 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39802 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39803 new_path=`$CYGPATH -u "$path"` 39804 fi 39805 if test "x$new_path" = x; then 39806 # It's still not found. Now this is an unrecoverable error. 39807 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 39808 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 39809 has_space=`$ECHO "$complete" | $GREP " "` 39810 if test "x$has_space" != x; then 39811 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39812 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39813 fi 39814 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39815 fi 39816 fi 39817 39818 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39819 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39820 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39821 # "foo.exe" is OK but "foo" is an error. 39822 # 39823 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39824 # It is also a way to make sure we got the proper file name for the real test later on. 39825 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39826 if test "x$test_shortpath" = x; then 39827 # Short path failed, file does not exist as specified. 39828 # Try adding .exe or .cmd 39829 if test -f "${new_path}.exe"; then 39830 input_to_shortpath="${new_path}.exe" 39831 elif test -f "${new_path}.cmd"; then 39832 input_to_shortpath="${new_path}.cmd" 39833 else 39834 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 39835 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 39836 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39837 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39838 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39839 fi 39840 else 39841 input_to_shortpath="$new_path" 39842 fi 39843 39844 # Call helper function which possibly converts this using DOS-style short mode. 39845 # If so, the updated path is stored in $new_path. 39846 new_path="$input_to_shortpath" 39847 39848 input_path="$input_to_shortpath" 39849 # Check if we need to convert this using DOS-style short mode. If the path 39850 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39851 # take no chances and rewrite it. 39852 # Note: m4 eats our [], so we need to use [ and ] instead. 39853 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39854 if test "x$has_forbidden_chars" != x; then 39855 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39856 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39857 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39858 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39859 # Going to short mode and back again did indeed matter. Since short mode is 39860 # case insensitive, let's make it lowercase to improve readability. 39861 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39862 # Now convert it back to Unix-style (cygpath) 39863 input_path=`$CYGPATH -u "$shortmode_path"` 39864 new_path="$input_path" 39865 fi 39866 fi 39867 39868 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39869 if test "x$test_cygdrive_prefix" = x; then 39870 # As a simple fix, exclude /usr/bin since it's not a real path. 39871 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39872 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39873 # a path prefixed by /cygdrive for fixpath to work. 39874 new_path="$CYGWIN_ROOT_PATH$input_path" 39875 fi 39876 fi 39877 39878 # remove trailing .exe if any 39879 new_path="${new_path/%.exe/}" 39880 39881 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39882 39883 # First separate the path from the arguments. This will split at the first 39884 # space. 39885 complete="$BUILD_CXX" 39886 path="${complete%% *}" 39887 tmp="$complete EOL" 39888 arguments="${tmp#* }" 39889 39890 # Input might be given as Windows format, start by converting to 39891 # unix format. 39892 new_path="$path" 39893 39894 windows_path="$new_path" 39895 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39896 unix_path=`$CYGPATH -u "$windows_path"` 39897 new_path="$unix_path" 39898 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39899 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39900 new_path="$unix_path" 39901 fi 39902 39903 39904 # Now try to locate executable using which 39905 new_path=`$WHICH "$new_path" 2> /dev/null` 39906 39907 if test "x$new_path" = x; then 39908 # Oops. Which didn't find the executable. 39909 # The splitting of arguments from the executable at a space might have been incorrect, 39910 # since paths with space are more likely in Windows. Give it another try with the whole 39911 # argument. 39912 path="$complete" 39913 arguments="EOL" 39914 new_path="$path" 39915 39916 windows_path="$new_path" 39917 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39918 unix_path=`$CYGPATH -u "$windows_path"` 39919 new_path="$unix_path" 39920 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39921 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39922 new_path="$unix_path" 39923 fi 39924 39925 39926 new_path=`$WHICH "$new_path" 2> /dev/null` 39927 # bat and cmd files are not always considered executable in MSYS causing which 39928 # to not find them 39929 if test "x$new_path" = x \ 39930 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39931 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39932 new_path="$path" 39933 39934 windows_path="$new_path" 39935 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39936 unix_path=`$CYGPATH -u "$windows_path"` 39937 new_path="$unix_path" 39938 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39939 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39940 new_path="$unix_path" 39941 fi 39942 39943 fi 39944 39945 if test "x$new_path" = x; then 39946 # It's still not found. Now this is an unrecoverable error. 39947 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 39948 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 39949 has_space=`$ECHO "$complete" | $GREP " "` 39950 if test "x$has_space" != x; then 39951 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39952 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39953 fi 39954 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39955 fi 39956 fi 39957 39958 # Now new_path has a complete unix path to the binary 39959 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39960 # Keep paths in /bin as-is, but remove trailing .exe if any 39961 new_path="${new_path/%.exe/}" 39962 # Do not save /bin paths to all_fixpath_prefixes! 39963 else 39964 # Not in mixed or Windows style, start by that. 39965 new_path=`cmd //c echo $new_path` 39966 39967 input_path="$new_path" 39968 # Check if we need to convert this using DOS-style short mode. If the path 39969 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39970 # take no chances and rewrite it. 39971 # Note: m4 eats our [], so we need to use [ and ] instead. 39972 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39973 if test "x$has_forbidden_chars" != x; then 39974 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39975 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39976 fi 39977 39978 # Output is in $new_path 39979 39980 windows_path="$new_path" 39981 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39982 unix_path=`$CYGPATH -u "$windows_path"` 39983 new_path="$unix_path" 39984 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39985 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39986 new_path="$unix_path" 39987 fi 39988 39989 # remove trailing .exe if any 39990 new_path="${new_path/%.exe/}" 39991 39992 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39993 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39994 fi 39995 39996 else 39997 # We're on a posix platform. Hooray! :) 39998 # First separate the path from the arguments. This will split at the first 39999 # space. 40000 complete="$BUILD_CXX" 40001 path="${complete%% *}" 40002 tmp="$complete EOL" 40003 arguments="${tmp#* }" 40004 40005 # Cannot rely on the command "which" here since it doesn't always work. 40006 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40007 if test -z "$is_absolute_path"; then 40008 # Path to executable is not absolute. Find it. 40009 IFS_save="$IFS" 40010 IFS=: 40011 for p in $PATH; do 40012 if test -f "$p/$path" && test -x "$p/$path"; then 40013 new_path="$p/$path" 40014 break 40015 fi 40016 done 40017 IFS="$IFS_save" 40018 else 40019 # This is an absolute path, we can use it without further modifications. 40020 new_path="$path" 40021 fi 40022 40023 if test "x$new_path" = x; then 40024 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40025 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40026 has_space=`$ECHO "$complete" | $GREP " "` 40027 if test "x$has_space" != x; then 40028 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40029 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40030 fi 40031 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40032 fi 40033 fi 40034 40035 # Now join together the path and the arguments once again 40036 if test "x$arguments" != xEOL; then 40037 new_complete="$new_path ${arguments% *}" 40038 else 40039 new_complete="$new_path" 40040 fi 40041 40042 if test "x$complete" != "x$new_complete"; then 40043 BUILD_CXX="$new_complete" 40044 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 40045 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 40046 fi 40047 40048 40049 40050 # Publish this variable in the help. 40051 40052 40053 if test "x$BUILD_LD" = x; then 40054 # The variable is not set by user, try to locate tool using the code snippet 40055 for ac_prog in ld 40056 do 40057 # Extract the first word of "$ac_prog", so it can be a program name with args. 40058 set dummy $ac_prog; ac_word=$2 40059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40060 $as_echo_n "checking for $ac_word... " >&6; } 40061 if ${ac_cv_path_BUILD_LD+:} false; then : 40062 $as_echo_n "(cached) " >&6 40063 else 40064 case $BUILD_LD in 40065 [\\/]* | ?:[\\/]*) 40066 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40067 ;; 40068 *) 40069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40070 for as_dir in $PATH 40071 do 40072 IFS=$as_save_IFS 40073 test -z "$as_dir" && as_dir=. 40074 for ac_exec_ext in '' $ac_executable_extensions; do 40075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40076 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40078 break 2 40079 fi 40080 done 40081 done 40082 IFS=$as_save_IFS 40083 40084 ;; 40085 esac 40086 fi 40087 BUILD_LD=$ac_cv_path_BUILD_LD 40088 if test -n "$BUILD_LD"; then 40089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40090 $as_echo "$BUILD_LD" >&6; } 40091 else 40092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40093 $as_echo "no" >&6; } 40094 fi 40095 40096 40097 test -n "$BUILD_LD" && break 40098 done 40099 40100 else 40101 # The variable is set, but is it from the command line or the environment? 40102 40103 # Try to remove the string !BUILD_LD! from our list. 40104 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_LD!/} 40105 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40106 # If it failed, the variable was not from the command line. Ignore it, 40107 # but warn the user (except for BASH, which is always set by the calling BASH). 40108 if test "xBUILD_LD" != xBASH; then 40109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&5 40110 $as_echo "$as_me: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&2;} 40111 fi 40112 # Try to locate tool using the code snippet 40113 for ac_prog in ld 40114 do 40115 # Extract the first word of "$ac_prog", so it can be a program name with args. 40116 set dummy $ac_prog; ac_word=$2 40117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40118 $as_echo_n "checking for $ac_word... " >&6; } 40119 if ${ac_cv_path_BUILD_LD+:} false; then : 40120 $as_echo_n "(cached) " >&6 40121 else 40122 case $BUILD_LD in 40123 [\\/]* | ?:[\\/]*) 40124 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40125 ;; 40126 *) 40127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40128 for as_dir in $PATH 40129 do 40130 IFS=$as_save_IFS 40131 test -z "$as_dir" && as_dir=. 40132 for ac_exec_ext in '' $ac_executable_extensions; do 40133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40134 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40136 break 2 40137 fi 40138 done 40139 done 40140 IFS=$as_save_IFS 40141 40142 ;; 40143 esac 40144 fi 40145 BUILD_LD=$ac_cv_path_BUILD_LD 40146 if test -n "$BUILD_LD"; then 40147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40148 $as_echo "$BUILD_LD" >&6; } 40149 else 40150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40151 $as_echo "no" >&6; } 40152 fi 40153 40154 40155 test -n "$BUILD_LD" && break 40156 done 40157 40158 else 40159 # If it succeeded, then it was overridden by the user. We will use it 40160 # for the tool. 40161 40162 # First remove it from the list of overridden variables, so we can test 40163 # for unknown variables in the end. 40164 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40165 40166 # Check if the provided tool contains a complete path. 40167 tool_specified="$BUILD_LD" 40168 tool_basename="${tool_specified##*/}" 40169 if test "x$tool_basename" = "x$tool_specified"; then 40170 # A command without a complete path is provided, search $PATH. 40171 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_LD=$tool_basename" >&5 40172 $as_echo "$as_me: Will search for user supplied tool BUILD_LD=$tool_basename" >&6;} 40173 # Extract the first word of "$tool_basename", so it can be a program name with args. 40174 set dummy $tool_basename; ac_word=$2 40175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40176 $as_echo_n "checking for $ac_word... " >&6; } 40177 if ${ac_cv_path_BUILD_LD+:} false; then : 40178 $as_echo_n "(cached) " >&6 40179 else 40180 case $BUILD_LD in 40181 [\\/]* | ?:[\\/]*) 40182 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40183 ;; 40184 *) 40185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40186 for as_dir in $PATH 40187 do 40188 IFS=$as_save_IFS 40189 test -z "$as_dir" && as_dir=. 40190 for ac_exec_ext in '' $ac_executable_extensions; do 40191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40192 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40194 break 2 40195 fi 40196 done 40197 done 40198 IFS=$as_save_IFS 40199 40200 ;; 40201 esac 40202 fi 40203 BUILD_LD=$ac_cv_path_BUILD_LD 40204 if test -n "$BUILD_LD"; then 40205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40206 $as_echo "$BUILD_LD" >&6; } 40207 else 40208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40209 $as_echo "no" >&6; } 40210 fi 40211 40212 40213 if test "x$BUILD_LD" = x; then 40214 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40215 fi 40216 else 40217 # Otherwise we believe it is a complete path. Use it as it is. 40218 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_LD=$tool_specified" >&5 40219 $as_echo "$as_me: Will use user supplied tool BUILD_LD=$tool_specified" >&6;} 40220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5 40221 $as_echo_n "checking for BUILD_LD... " >&6; } 40222 if test ! -x "$tool_specified"; then 40223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40224 $as_echo "not found" >&6; } 40225 as_fn_error $? "User supplied tool BUILD_LD=$tool_specified does not exist or is not executable" "$LINENO" 5 40226 fi 40227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40228 $as_echo "$tool_specified" >&6; } 40229 fi 40230 fi 40231 fi 40232 40233 40234 40235 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40236 40237 # First separate the path from the arguments. This will split at the first 40238 # space. 40239 complete="$BUILD_LD" 40240 path="${complete%% *}" 40241 tmp="$complete EOL" 40242 arguments="${tmp#* }" 40243 40244 # Input might be given as Windows format, start by converting to 40245 # unix format. 40246 new_path=`$CYGPATH -u "$path"` 40247 40248 # Now try to locate executable using which 40249 new_path=`$WHICH "$new_path" 2> /dev/null` 40250 # bat and cmd files are not always considered executable in cygwin causing which 40251 # to not find them 40252 if test "x$new_path" = x \ 40253 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40254 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40255 new_path=`$CYGPATH -u "$path"` 40256 fi 40257 if test "x$new_path" = x; then 40258 # Oops. Which didn't find the executable. 40259 # The splitting of arguments from the executable at a space might have been incorrect, 40260 # since paths with space are more likely in Windows. Give it another try with the whole 40261 # argument. 40262 path="$complete" 40263 arguments="EOL" 40264 new_path=`$CYGPATH -u "$path"` 40265 new_path=`$WHICH "$new_path" 2> /dev/null` 40266 # bat and cmd files are not always considered executable in cygwin causing which 40267 # to not find them 40268 if test "x$new_path" = x \ 40269 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40270 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40271 new_path=`$CYGPATH -u "$path"` 40272 fi 40273 if test "x$new_path" = x; then 40274 # It's still not found. Now this is an unrecoverable error. 40275 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40276 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40277 has_space=`$ECHO "$complete" | $GREP " "` 40278 if test "x$has_space" != x; then 40279 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40280 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40281 fi 40282 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40283 fi 40284 fi 40285 40286 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40287 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40288 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40289 # "foo.exe" is OK but "foo" is an error. 40290 # 40291 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40292 # It is also a way to make sure we got the proper file name for the real test later on. 40293 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40294 if test "x$test_shortpath" = x; then 40295 # Short path failed, file does not exist as specified. 40296 # Try adding .exe or .cmd 40297 if test -f "${new_path}.exe"; then 40298 input_to_shortpath="${new_path}.exe" 40299 elif test -f "${new_path}.cmd"; then 40300 input_to_shortpath="${new_path}.cmd" 40301 else 40302 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5 40303 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;} 40304 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40305 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40306 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40307 fi 40308 else 40309 input_to_shortpath="$new_path" 40310 fi 40311 40312 # Call helper function which possibly converts this using DOS-style short mode. 40313 # If so, the updated path is stored in $new_path. 40314 new_path="$input_to_shortpath" 40315 40316 input_path="$input_to_shortpath" 40317 # Check if we need to convert this using DOS-style short mode. If the path 40318 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40319 # take no chances and rewrite it. 40320 # Note: m4 eats our [], so we need to use [ and ] instead. 40321 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40322 if test "x$has_forbidden_chars" != x; then 40323 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40324 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40325 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40326 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40327 # Going to short mode and back again did indeed matter. Since short mode is 40328 # case insensitive, let's make it lowercase to improve readability. 40329 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40330 # Now convert it back to Unix-style (cygpath) 40331 input_path=`$CYGPATH -u "$shortmode_path"` 40332 new_path="$input_path" 40333 fi 40334 fi 40335 40336 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40337 if test "x$test_cygdrive_prefix" = x; then 40338 # As a simple fix, exclude /usr/bin since it's not a real path. 40339 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40340 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40341 # a path prefixed by /cygdrive for fixpath to work. 40342 new_path="$CYGWIN_ROOT_PATH$input_path" 40343 fi 40344 fi 40345 40346 # remove trailing .exe if any 40347 new_path="${new_path/%.exe/}" 40348 40349 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40350 40351 # First separate the path from the arguments. This will split at the first 40352 # space. 40353 complete="$BUILD_LD" 40354 path="${complete%% *}" 40355 tmp="$complete EOL" 40356 arguments="${tmp#* }" 40357 40358 # Input might be given as Windows format, start by converting to 40359 # unix format. 40360 new_path="$path" 40361 40362 windows_path="$new_path" 40363 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40364 unix_path=`$CYGPATH -u "$windows_path"` 40365 new_path="$unix_path" 40366 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40367 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40368 new_path="$unix_path" 40369 fi 40370 40371 40372 # Now try to locate executable using which 40373 new_path=`$WHICH "$new_path" 2> /dev/null` 40374 40375 if test "x$new_path" = x; then 40376 # Oops. Which didn't find the executable. 40377 # The splitting of arguments from the executable at a space might have been incorrect, 40378 # since paths with space are more likely in Windows. Give it another try with the whole 40379 # argument. 40380 path="$complete" 40381 arguments="EOL" 40382 new_path="$path" 40383 40384 windows_path="$new_path" 40385 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40386 unix_path=`$CYGPATH -u "$windows_path"` 40387 new_path="$unix_path" 40388 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40389 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40390 new_path="$unix_path" 40391 fi 40392 40393 40394 new_path=`$WHICH "$new_path" 2> /dev/null` 40395 # bat and cmd files are not always considered executable in MSYS causing which 40396 # to not find them 40397 if test "x$new_path" = x \ 40398 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40399 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40400 new_path="$path" 40401 40402 windows_path="$new_path" 40403 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40404 unix_path=`$CYGPATH -u "$windows_path"` 40405 new_path="$unix_path" 40406 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40407 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40408 new_path="$unix_path" 40409 fi 40410 40411 fi 40412 40413 if test "x$new_path" = x; then 40414 # It's still not found. Now this is an unrecoverable error. 40415 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40416 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40417 has_space=`$ECHO "$complete" | $GREP " "` 40418 if test "x$has_space" != x; then 40419 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40420 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40421 fi 40422 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40423 fi 40424 fi 40425 40426 # Now new_path has a complete unix path to the binary 40427 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40428 # Keep paths in /bin as-is, but remove trailing .exe if any 40429 new_path="${new_path/%.exe/}" 40430 # Do not save /bin paths to all_fixpath_prefixes! 40431 else 40432 # Not in mixed or Windows style, start by that. 40433 new_path=`cmd //c echo $new_path` 40434 40435 input_path="$new_path" 40436 # Check if we need to convert this using DOS-style short mode. If the path 40437 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40438 # take no chances and rewrite it. 40439 # Note: m4 eats our [], so we need to use [ and ] instead. 40440 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40441 if test "x$has_forbidden_chars" != x; then 40442 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40443 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40444 fi 40445 40446 # Output is in $new_path 40447 40448 windows_path="$new_path" 40449 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40450 unix_path=`$CYGPATH -u "$windows_path"` 40451 new_path="$unix_path" 40452 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40453 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40454 new_path="$unix_path" 40455 fi 40456 40457 # remove trailing .exe if any 40458 new_path="${new_path/%.exe/}" 40459 40460 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40461 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40462 fi 40463 40464 else 40465 # We're on a posix platform. Hooray! :) 40466 # First separate the path from the arguments. This will split at the first 40467 # space. 40468 complete="$BUILD_LD" 40469 path="${complete%% *}" 40470 tmp="$complete EOL" 40471 arguments="${tmp#* }" 40472 40473 # Cannot rely on the command "which" here since it doesn't always work. 40474 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40475 if test -z "$is_absolute_path"; then 40476 # Path to executable is not absolute. Find it. 40477 IFS_save="$IFS" 40478 IFS=: 40479 for p in $PATH; do 40480 if test -f "$p/$path" && test -x "$p/$path"; then 40481 new_path="$p/$path" 40482 break 40483 fi 40484 done 40485 IFS="$IFS_save" 40486 else 40487 # This is an absolute path, we can use it without further modifications. 40488 new_path="$path" 40489 fi 40490 40491 if test "x$new_path" = x; then 40492 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40493 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40494 has_space=`$ECHO "$complete" | $GREP " "` 40495 if test "x$has_space" != x; then 40496 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40497 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40498 fi 40499 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40500 fi 40501 fi 40502 40503 # Now join together the path and the arguments once again 40504 if test "x$arguments" != xEOL; then 40505 new_complete="$new_path ${arguments% *}" 40506 else 40507 new_complete="$new_path" 40508 fi 40509 40510 if test "x$complete" != "x$new_complete"; then 40511 BUILD_LD="$new_complete" 40512 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5 40513 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;} 40514 fi 40515 40516 else 40517 # If we are not cross compiling, use the normal target compilers for 40518 # building the build platform executables. 40519 BUILD_CC="$CC" 40520 BUILD_CXX="$CXX" 40521 BUILD_LD="$LD" 40522 fi 40523 40524 40525 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40526 # For hotspot, we need these in Windows mixed path, 40527 # so rewrite them all. Need added .exe suffix. 40528 HOTSPOT_CXX="$CXX.exe" 40529 HOTSPOT_LD="$LD.exe" 40530 HOTSPOT_MT="$MT.exe" 40531 HOTSPOT_RC="$RC.exe" 40532 40533 unix_path="$HOTSPOT_CXX" 40534 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40535 windows_path=`$CYGPATH -m "$unix_path"` 40536 HOTSPOT_CXX="$windows_path" 40537 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40538 windows_path=`cmd //c echo $unix_path` 40539 HOTSPOT_CXX="$windows_path" 40540 fi 40541 40542 40543 unix_path="$HOTSPOT_LD" 40544 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40545 windows_path=`$CYGPATH -m "$unix_path"` 40546 HOTSPOT_LD="$windows_path" 40547 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40548 windows_path=`cmd //c echo $unix_path` 40549 HOTSPOT_LD="$windows_path" 40550 fi 40551 40552 40553 unix_path="$HOTSPOT_MT" 40554 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40555 windows_path=`$CYGPATH -m "$unix_path"` 40556 HOTSPOT_MT="$windows_path" 40557 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40558 windows_path=`cmd //c echo $unix_path` 40559 HOTSPOT_MT="$windows_path" 40560 fi 40561 40562 40563 unix_path="$HOTSPOT_RC" 40564 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40565 windows_path=`$CYGPATH -m "$unix_path"` 40566 HOTSPOT_RC="$windows_path" 40567 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40568 windows_path=`cmd //c echo $unix_path` 40569 HOTSPOT_RC="$windows_path" 40570 fi 40571 40572 40573 40574 else 40575 HOTSPOT_CXX="$CXX" 40576 HOTSPOT_LD="$LD" 40577 fi 40578 40579 40580 40581 if test "x$TOOLCHAIN_TYPE" = xclang; then 40582 USE_CLANG=true 40583 fi 40584 40585 40586 # LDEXE is the linker to use, when creating executables. Not really used. 40587 # FIXME: These should just be removed! 40588 LDEXE="$LD" 40589 LDEXECXX="$LDCXX" 40590 40591 40592 40593 40594 # The package path is used only on macosx? 40595 # FIXME: clean this up, and/or move it elsewhere. 40596 PACKAGE_PATH=/opt/local 40597 40598 40599 # Check for extra potential brokenness. 40600 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40601 # On Windows, double-check that we got the right compiler. 40602 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 40603 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 40604 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 40605 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 40606 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\" or \"x86\"." "$LINENO" 5 40607 fi 40608 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 40609 if test "x$COMPILER_CPU_TEST" != "xx64"; then 40610 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 40611 fi 40612 fi 40613 fi 40614 40615 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40616 # If this is a --hash-style=gnu system, use --hash-style=both, why? 40617 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 40618 # This is later checked when setting flags. 40619 fi 40620 40621 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 40622 # in executable.' 40623 USING_BROKEN_SUSE_LD=no 40624 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 40625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 40626 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 40627 echo "SUNWprivate_1.1 { local: *; };" > version-script.map 40628 echo "int main() { }" > main.c 40629 if $CXX -Xlinker -version-script=version-script.map main.c 2>&5 >&5; then 40630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40631 $as_echo "no" >&6; } 40632 USING_BROKEN_SUSE_LD=no 40633 else 40634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40635 $as_echo "yes" >&6; } 40636 USING_BROKEN_SUSE_LD=yes 40637 fi 40638 rm -rf version-script.map main.c 40639 fi 40640 40641 40642 40643 # Setup the JTReg Regression Test Harness. 40644 40645 40646 # Check whether --with-jtreg was given. 40647 if test "${with_jtreg+set}" = set; then : 40648 withval=$with_jtreg; 40649 else 40650 with_jtreg=no 40651 fi 40652 40653 40654 if test "x$with_jtreg" = xno; then 40655 # jtreg disabled 40656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 40657 $as_echo_n "checking for jtreg... " >&6; } 40658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40659 $as_echo "no" >&6; } 40660 else 40661 if test "x$with_jtreg" != xyes; then 40662 # with path specified. 40663 JT_HOME="$with_jtreg" 40664 fi 40665 40666 if test "x$JT_HOME" != x; then 40667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 40668 $as_echo_n "checking for jtreg... " >&6; } 40669 40670 # use JT_HOME enviroment var. 40671 40672 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40673 40674 # Input might be given as Windows format, start by converting to 40675 # unix format. 40676 path="$JT_HOME" 40677 new_path=`$CYGPATH -u "$path"` 40678 40679 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40680 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40681 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40682 # "foo.exe" is OK but "foo" is an error. 40683 # 40684 # This test is therefore slightly more accurate than "test -f" to check for file precense. 40685 # It is also a way to make sure we got the proper file name for the real test later on. 40686 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40687 if test "x$test_shortpath" = x; then 40688 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 40689 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 40690 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 40691 fi 40692 40693 # Call helper function which possibly converts this using DOS-style short mode. 40694 # If so, the updated path is stored in $new_path. 40695 40696 input_path="$new_path" 40697 # Check if we need to convert this using DOS-style short mode. If the path 40698 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40699 # take no chances and rewrite it. 40700 # Note: m4 eats our [], so we need to use [ and ] instead. 40701 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40702 if test "x$has_forbidden_chars" != x; then 40703 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40704 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40705 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40706 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40707 # Going to short mode and back again did indeed matter. Since short mode is 40708 # case insensitive, let's make it lowercase to improve readability. 40709 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40710 # Now convert it back to Unix-style (cygpath) 40711 input_path=`$CYGPATH -u "$shortmode_path"` 40712 new_path="$input_path" 40713 fi 40714 fi 40715 40716 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40717 if test "x$test_cygdrive_prefix" = x; then 40718 # As a simple fix, exclude /usr/bin since it's not a real path. 40719 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 40720 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40721 # a path prefixed by /cygdrive for fixpath to work. 40722 new_path="$CYGWIN_ROOT_PATH$input_path" 40723 fi 40724 fi 40725 40726 40727 if test "x$path" != "x$new_path"; then 40728 JT_HOME="$new_path" 40729 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 40730 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 40731 fi 40732 40733 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40734 40735 path="$JT_HOME" 40736 has_colon=`$ECHO $path | $GREP ^.:` 40737 new_path="$path" 40738 if test "x$has_colon" = x; then 40739 # Not in mixed or Windows style, start by that. 40740 new_path=`cmd //c echo $path` 40741 fi 40742 40743 40744 input_path="$new_path" 40745 # Check if we need to convert this using DOS-style short mode. If the path 40746 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40747 # take no chances and rewrite it. 40748 # Note: m4 eats our [], so we need to use [ and ] instead. 40749 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40750 if test "x$has_forbidden_chars" != x; then 40751 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40752 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40753 fi 40754 40755 40756 windows_path="$new_path" 40757 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40758 unix_path=`$CYGPATH -u "$windows_path"` 40759 new_path="$unix_path" 40760 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40761 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40762 new_path="$unix_path" 40763 fi 40764 40765 if test "x$path" != "x$new_path"; then 40766 JT_HOME="$new_path" 40767 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 40768 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 40769 fi 40770 40771 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40772 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40773 40774 else 40775 # We're on a posix platform. Hooray! :) 40776 path="$JT_HOME" 40777 has_space=`$ECHO "$path" | $GREP " "` 40778 if test "x$has_space" != x; then 40779 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 40780 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 40781 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 40782 fi 40783 40784 # Use eval to expand a potential ~ 40785 eval path="$path" 40786 if test ! -f "$path" && test ! -d "$path"; then 40787 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 40788 fi 40789 40790 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 40791 fi 40792 40793 40794 # jtreg win32 script works for everybody 40795 JTREGEXE="$JT_HOME/bin/jtreg" 40796 40797 if test ! -f "$JTREGEXE"; then 40798 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 40799 fi 40800 40801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40802 $as_echo "$JTREGEXE" >&6; } 40803 else 40804 # try to find jtreg on path 40805 40806 40807 40808 # Publish this variable in the help. 40809 40810 40811 if test "x$JTREGEXE" = x; then 40812 # The variable is not set by user, try to locate tool using the code snippet 40813 for ac_prog in jtreg 40814 do 40815 # Extract the first word of "$ac_prog", so it can be a program name with args. 40816 set dummy $ac_prog; ac_word=$2 40817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40818 $as_echo_n "checking for $ac_word... " >&6; } 40819 if ${ac_cv_path_JTREGEXE+:} false; then : 40820 $as_echo_n "(cached) " >&6 40821 else 40822 case $JTREGEXE in 40823 [\\/]* | ?:[\\/]*) 40824 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 40825 ;; 40826 *) 40827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40828 for as_dir in $PATH 40829 do 40830 IFS=$as_save_IFS 40831 test -z "$as_dir" && as_dir=. 40832 for ac_exec_ext in '' $ac_executable_extensions; do 40833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40834 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 40835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40836 break 2 40837 fi 40838 done 40839 done 40840 IFS=$as_save_IFS 40841 40842 ;; 40843 esac 40844 fi 40845 JTREGEXE=$ac_cv_path_JTREGEXE 40846 if test -n "$JTREGEXE"; then 40847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40848 $as_echo "$JTREGEXE" >&6; } 40849 else 40850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40851 $as_echo "no" >&6; } 40852 fi 40853 40854 40855 test -n "$JTREGEXE" && break 40856 done 40857 40858 else 40859 # The variable is set, but is it from the command line or the environment? 40860 40861 # Try to remove the string !JTREGEXE! from our list. 40862 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 40863 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40864 # If it failed, the variable was not from the command line. Ignore it, 40865 # but warn the user (except for BASH, which is always set by the calling BASH). 40866 if test "xJTREGEXE" != xBASH; then 40867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 40868 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 40869 fi 40870 # Try to locate tool using the code snippet 40871 for ac_prog in jtreg 40872 do 40873 # Extract the first word of "$ac_prog", so it can be a program name with args. 40874 set dummy $ac_prog; ac_word=$2 40875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40876 $as_echo_n "checking for $ac_word... " >&6; } 40877 if ${ac_cv_path_JTREGEXE+:} false; then : 40878 $as_echo_n "(cached) " >&6 40879 else 40880 case $JTREGEXE in 40881 [\\/]* | ?:[\\/]*) 40882 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 40883 ;; 40884 *) 40885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40886 for as_dir in $PATH 40887 do 40888 IFS=$as_save_IFS 40889 test -z "$as_dir" && as_dir=. 40890 for ac_exec_ext in '' $ac_executable_extensions; do 40891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40892 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 40893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40894 break 2 40895 fi 40896 done 40897 done 40898 IFS=$as_save_IFS 40899 40900 ;; 40901 esac 40902 fi 40903 JTREGEXE=$ac_cv_path_JTREGEXE 40904 if test -n "$JTREGEXE"; then 40905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40906 $as_echo "$JTREGEXE" >&6; } 40907 else 40908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40909 $as_echo "no" >&6; } 40910 fi 40911 40912 40913 test -n "$JTREGEXE" && break 40914 done 40915 40916 else 40917 # If it succeeded, then it was overridden by the user. We will use it 40918 # for the tool. 40919 40920 # First remove it from the list of overridden variables, so we can test 40921 # for unknown variables in the end. 40922 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40923 40924 # Check if the provided tool contains a complete path. 40925 tool_specified="$JTREGEXE" 40926 tool_basename="${tool_specified##*/}" 40927 if test "x$tool_basename" = "x$tool_specified"; then 40928 # A command without a complete path is provided, search $PATH. 40929 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 40930 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 40931 # Extract the first word of "$tool_basename", so it can be a program name with args. 40932 set dummy $tool_basename; ac_word=$2 40933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40934 $as_echo_n "checking for $ac_word... " >&6; } 40935 if ${ac_cv_path_JTREGEXE+:} false; then : 40936 $as_echo_n "(cached) " >&6 40937 else 40938 case $JTREGEXE in 40939 [\\/]* | ?:[\\/]*) 40940 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 40941 ;; 40942 *) 40943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40944 for as_dir in $PATH 40945 do 40946 IFS=$as_save_IFS 40947 test -z "$as_dir" && as_dir=. 40948 for ac_exec_ext in '' $ac_executable_extensions; do 40949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40950 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 40951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40952 break 2 40953 fi 40954 done 40955 done 40956 IFS=$as_save_IFS 40957 40958 ;; 40959 esac 40960 fi 40961 JTREGEXE=$ac_cv_path_JTREGEXE 40962 if test -n "$JTREGEXE"; then 40963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40964 $as_echo "$JTREGEXE" >&6; } 40965 else 40966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40967 $as_echo "no" >&6; } 40968 fi 40969 40970 40971 if test "x$JTREGEXE" = x; then 40972 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40973 fi 40974 else 40975 # Otherwise we believe it is a complete path. Use it as it is. 40976 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 40977 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 40978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 40979 $as_echo_n "checking for JTREGEXE... " >&6; } 40980 if test ! -x "$tool_specified"; then 40981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40982 $as_echo "not found" >&6; } 40983 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 40984 fi 40985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40986 $as_echo "$tool_specified" >&6; } 40987 fi 40988 fi 40989 fi 40990 40991 40992 40993 if test "x$JTREGEXE" = x; then 40994 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 40995 fi 40996 40997 40998 JT_HOME="`$DIRNAME $JTREGEXE`" 40999 fi 41000 fi 41001 41002 41003 41004 41005 41006 41007 # Option used to tell the compiler whether to create 32- or 64-bit executables 41008 if test "x$TOOLCHAIN_TYPE" = xxlc; then 41009 COMPILER_TARGET_BITS_FLAG="-q" 41010 else 41011 COMPILER_TARGET_BITS_FLAG="-m" 41012 fi 41013 41014 41015 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 41016 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41017 ARFLAGS="-r" 41018 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41019 ARFLAGS="-X64" 41020 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 41021 # lib.exe is used as AR to create static libraries. 41022 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 41023 else 41024 ARFLAGS="" 41025 fi 41026 41027 41028 ## Setup strip. 41029 # FIXME: should this really be per platform, or should it be per toolchain type? 41030 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 41031 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 41032 if test "x$OPENJDK_TARGET_OS" = xlinux; then 41033 STRIPFLAGS="-g" 41034 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 41035 STRIPFLAGS="-x" 41036 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 41037 STRIPFLAGS="-S" 41038 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41039 STRIPFLAGS="-X32_64" 41040 fi 41041 41042 if test "x$OPENJDK_TARGET_OS" != xwindows; then 41043 POST_STRIP_CMD="$STRIP $STRIPFLAGS" 41044 fi 41045 41046 41047 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41048 # FIXME: break out into MCSFLAGS 41049 POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\"" 41050 fi 41051 41052 41053 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41054 CC_OUT_OPTION=-Fo 41055 EXE_OUT_OPTION=-out: 41056 LD_OUT_OPTION=-out: 41057 AR_OUT_OPTION=-out: 41058 else 41059 # The option used to specify the target .o,.a or .so file. 41060 # When compiling, how to specify the to be created object file. 41061 CC_OUT_OPTION='-o$(SPACE)' 41062 # When linking, how to specify the to be created executable. 41063 EXE_OUT_OPTION='-o$(SPACE)' 41064 # When linking, how to specify the to be created dynamically linkable library. 41065 LD_OUT_OPTION='-o$(SPACE)' 41066 # When archiving, how to specify the to be create static archive for object files. 41067 AR_OUT_OPTION='rcs$(SPACE)' 41068 fi 41069 41070 41071 41072 41073 41074 # On Windows, we need to set RC flags. 41075 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41076 RC_FLAGS="-nologo -l 0x409 -r" 41077 if test "x$VARIANT" = xOPT; then 41078 RC_FLAGS="$RC_FLAGS -d NDEBUG" 41079 fi 41080 41081 # The version variables used to create RC_FLAGS may be overridden 41082 # in a custom configure script, or possibly the command line. 41083 # Let those variables be expanded at make time in spec.gmk. 41084 # The \$ are escaped to the shell, and the $(...) variables 41085 # are evaluated by make. 41086 RC_FLAGS="$RC_FLAGS \ 41087 -d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \ 41088 -d \"JDK_COMPANY=\$(COMPANY_NAME)\" \ 41089 -d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 41090 -d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(COOKED_JDK_UPDATE_VERSION).\$(COOKED_BUILD_NUMBER)\" \ 41091 -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 41092 -d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \ 41093 -d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(COOKED_JDK_UPDATE_VERSION),\$(COOKED_JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\"" 41094 fi 41095 41096 41097 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41098 # FIXME: likely bug, should be CCXXFLAGS_JDK? or one for C or CXX. 41099 CCXXFLAGS="$CCXXFLAGS -nologo" 41100 fi 41101 41102 if test "x$SYSROOT" != "x"; then 41103 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41104 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41105 # Solaris Studio does not have a concept of sysroot. Instead we must 41106 # make sure the default include and lib dirs are appended to each 41107 # compile and link command line. 41108 SYSROOT_CFLAGS="-I$SYSROOT/usr/include" 41109 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 41110 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 41111 -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 41112 fi 41113 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 41114 SYSROOT_CFLAGS="--sysroot=\"$SYSROOT\"" 41115 SYSROOT_LDFLAGS="--sysroot=\"$SYSROOT\"" 41116 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41117 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\"" 41118 SYSROOT_LDFLAGS="-isysroot \"$SYSROOT\"" 41119 fi 41120 # Propagate the sysroot args to hotspot 41121 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS" 41122 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS" 41123 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS" 41124 fi 41125 41126 41127 41128 41129 # FIXME: Currently we must test this after toolchain but before flags. Fix! 41130 41131 # Now we can test some aspects on the target using configure macros. 41132 41133 41134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 41135 $as_echo_n "checking for ANSI C header files... " >&6; } 41136 if ${ac_cv_header_stdc+:} false; then : 41137 $as_echo_n "(cached) " >&6 41138 else 41139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41140 /* end confdefs.h. */ 41141 #include <stdlib.h> 41142 #include <stdarg.h> 41143 #include <string.h> 41144 #include <float.h> 41145 41146 int 41147 main () 41148 { 41149 41150 ; 41151 return 0; 41152 } 41153 _ACEOF 41154 if ac_fn_cxx_try_compile "$LINENO"; then : 41155 ac_cv_header_stdc=yes 41156 else 41157 ac_cv_header_stdc=no 41158 fi 41159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41160 41161 if test $ac_cv_header_stdc = yes; then 41162 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 41163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41164 /* end confdefs.h. */ 41165 #include <string.h> 41166 41167 _ACEOF 41168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41169 $EGREP "memchr" >/dev/null 2>&1; then : 41170 41171 else 41172 ac_cv_header_stdc=no 41173 fi 41174 rm -f conftest* 41175 41176 fi 41177 41178 if test $ac_cv_header_stdc = yes; then 41179 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 41180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41181 /* end confdefs.h. */ 41182 #include <stdlib.h> 41183 41184 _ACEOF 41185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41186 $EGREP "free" >/dev/null 2>&1; then : 41187 41188 else 41189 ac_cv_header_stdc=no 41190 fi 41191 rm -f conftest* 41192 41193 fi 41194 41195 if test $ac_cv_header_stdc = yes; then 41196 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 41197 if test "$cross_compiling" = yes; then : 41198 : 41199 else 41200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41201 /* end confdefs.h. */ 41202 #include <ctype.h> 41203 #include <stdlib.h> 41204 #if ((' ' & 0x0FF) == 0x020) 41205 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 41206 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 41207 #else 41208 # define ISLOWER(c) \ 41209 (('a' <= (c) && (c) <= 'i') \ 41210 || ('j' <= (c) && (c) <= 'r') \ 41211 || ('s' <= (c) && (c) <= 'z')) 41212 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 41213 #endif 41214 41215 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 41216 int 41217 main () 41218 { 41219 int i; 41220 for (i = 0; i < 256; i++) 41221 if (XOR (islower (i), ISLOWER (i)) 41222 || toupper (i) != TOUPPER (i)) 41223 return 2; 41224 return 0; 41225 } 41226 _ACEOF 41227 if ac_fn_cxx_try_run "$LINENO"; then : 41228 41229 else 41230 ac_cv_header_stdc=no 41231 fi 41232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41233 conftest.$ac_objext conftest.beam conftest.$ac_ext 41234 fi 41235 41236 fi 41237 fi 41238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 41239 $as_echo "$ac_cv_header_stdc" >&6; } 41240 if test $ac_cv_header_stdc = yes; then 41241 41242 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 41243 41244 fi 41245 41246 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 41247 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 41248 inttypes.h stdint.h unistd.h 41249 do : 41250 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 41251 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 41252 " 41253 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 41254 cat >>confdefs.h <<_ACEOF 41255 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 41256 _ACEOF 41257 41258 fi 41259 41260 done 41261 41262 41263 41264 ############################################################################### 41265 # 41266 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 41267 # (The JVM can use 32 or 64 bit Java pointers but that decision 41268 # is made at runtime.) 41269 # 41270 41271 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 41272 # Always specify -m flag on Solaris 41273 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 41274 41275 # When we add flags to the "official" CFLAGS etc, we need to 41276 # keep track of these additions in ADDED_CFLAGS etc. These 41277 # will later be checked to make sure only controlled additions 41278 # have been made to CFLAGS etc. 41279 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41280 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41281 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41282 41283 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41284 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41285 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41286 41287 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41288 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41289 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41290 41291 elif test "x$COMPILE_TYPE" = xreduced; then 41292 if test "x$OPENJDK_TARGET_OS" != xwindows; then 41293 # Specify -m if running reduced on other Posix platforms 41294 41295 # When we add flags to the "official" CFLAGS etc, we need to 41296 # keep track of these additions in ADDED_CFLAGS etc. These 41297 # will later be checked to make sure only controlled additions 41298 # have been made to CFLAGS etc. 41299 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41300 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41301 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41302 41303 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41304 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41305 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41306 41307 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41308 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41309 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41310 41311 fi 41312 fi 41313 41314 # Make compilation sanity check 41315 for ac_header in stdio.h 41316 do : 41317 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 41318 if test "x$ac_cv_header_stdio_h" = xyes; then : 41319 cat >>confdefs.h <<_ACEOF 41320 #define HAVE_STDIO_H 1 41321 _ACEOF 41322 41323 else 41324 41325 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 41326 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 41327 if test "x$COMPILE_TYPE" = xreduced; then 41328 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5 41329 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;} 41330 elif test "x$COMPILE_TYPE" = xcross; then 41331 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 41332 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 41333 fi 41334 as_fn_error $? "Cannot continue." "$LINENO" 5 41335 41336 fi 41337 41338 done 41339 41340 41341 # The cast to long int works around a bug in the HP C Compiler 41342 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41343 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41344 # This bug is HP SR number 8606223364. 41345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41346 $as_echo_n "checking size of int *... " >&6; } 41347 if ${ac_cv_sizeof_int_p+:} false; then : 41348 $as_echo_n "(cached) " >&6 41349 else 41350 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41351 41352 else 41353 if test "$ac_cv_type_int_p" = yes; then 41354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41356 as_fn_error 77 "cannot compute sizeof (int *) 41357 See \`config.log' for more details" "$LINENO" 5; } 41358 else 41359 ac_cv_sizeof_int_p=0 41360 fi 41361 fi 41362 41363 fi 41364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 41365 $as_echo "$ac_cv_sizeof_int_p" >&6; } 41366 41367 41368 41369 cat >>confdefs.h <<_ACEOF 41370 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 41371 _ACEOF 41372 41373 41374 41375 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 41376 if test "x$ac_cv_sizeof_int_p" = x; then 41377 # The test failed, lets stick to the assumed value. 41378 { $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 41379 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 41380 else 41381 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41382 41383 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41384 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 41385 # Let's try to implicitely set the compilers target architecture and retry the test 41386 { $as_echo "$as_me:${as_lineno-$LINENO}: The tested number of bits in the target ($TESTED_TARGET_CPU_BITS) differs from the number of bits expected to be found in the target ($OPENJDK_TARGET_CPU_BITS)." >&5 41387 $as_echo "$as_me: The tested number of bits in the target ($TESTED_TARGET_CPU_BITS) differs from the number of bits expected to be found in the target ($OPENJDK_TARGET_CPU_BITS)." >&6;} 41388 { $as_echo "$as_me:${as_lineno-$LINENO}: I'll retry after setting the platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5 41389 $as_echo "$as_me: I'll retry after setting the platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;} 41390 41391 # When we add flags to the "official" CFLAGS etc, we need to 41392 # keep track of these additions in ADDED_CFLAGS etc. These 41393 # will later be checked to make sure only controlled additions 41394 # have been made to CFLAGS etc. 41395 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41396 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41397 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41398 41399 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41400 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41401 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41402 41403 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41404 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41405 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41406 41407 41408 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 41409 unset ac_cv_sizeof_int_p 41410 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 41411 cat >>confdefs.h <<_ACEOF 41412 #undef SIZEOF_INT_P 41413 _ACEOF 41414 41415 # The cast to long int works around a bug in the HP C Compiler 41416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41418 # This bug is HP SR number 8606223364. 41419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41420 $as_echo_n "checking size of int *... " >&6; } 41421 if ${ac_cv_sizeof_int_p+:} false; then : 41422 $as_echo_n "(cached) " >&6 41423 else 41424 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41425 41426 else 41427 if test "$ac_cv_type_int_p" = yes; then 41428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41430 as_fn_error 77 "cannot compute sizeof (int *) 41431 See \`config.log' for more details" "$LINENO" 5; } 41432 else 41433 ac_cv_sizeof_int_p=0 41434 fi 41435 fi 41436 41437 fi 41438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 41439 $as_echo "$ac_cv_sizeof_int_p" >&6; } 41440 41441 41442 41443 cat >>confdefs.h <<_ACEOF 41444 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 41445 _ACEOF 41446 41447 41448 41449 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41450 41451 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41452 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 41453 fi 41454 fi 41455 fi 41456 41457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 41458 $as_echo_n "checking for target address size... " >&6; } 41459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 41460 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 41461 41462 41463 ############################################################################### 41464 # 41465 # Is the target little of big endian? 41466 # 41467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 41468 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 41469 if ${ac_cv_c_bigendian+:} false; then : 41470 $as_echo_n "(cached) " >&6 41471 else 41472 ac_cv_c_bigendian=unknown 41473 # See if we're dealing with a universal compiler. 41474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41475 /* end confdefs.h. */ 41476 #ifndef __APPLE_CC__ 41477 not a universal capable compiler 41478 #endif 41479 typedef int dummy; 41480 41481 _ACEOF 41482 if ac_fn_cxx_try_compile "$LINENO"; then : 41483 41484 # Check for potential -arch flags. It is not universal unless 41485 # there are at least two -arch flags with different values. 41486 ac_arch= 41487 ac_prev= 41488 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 41489 if test -n "$ac_prev"; then 41490 case $ac_word in 41491 i?86 | x86_64 | ppc | ppc64) 41492 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 41493 ac_arch=$ac_word 41494 else 41495 ac_cv_c_bigendian=universal 41496 break 41497 fi 41498 ;; 41499 esac 41500 ac_prev= 41501 elif test "x$ac_word" = "x-arch"; then 41502 ac_prev=arch 41503 fi 41504 done 41505 fi 41506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41507 if test $ac_cv_c_bigendian = unknown; then 41508 # See if sys/param.h defines the BYTE_ORDER macro. 41509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41510 /* end confdefs.h. */ 41511 #include <sys/types.h> 41512 #include <sys/param.h> 41513 41514 int 41515 main () 41516 { 41517 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 41518 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 41519 && LITTLE_ENDIAN) 41520 bogus endian macros 41521 #endif 41522 41523 ; 41524 return 0; 41525 } 41526 _ACEOF 41527 if ac_fn_cxx_try_compile "$LINENO"; then : 41528 # It does; now see whether it defined to BIG_ENDIAN or not. 41529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41530 /* end confdefs.h. */ 41531 #include <sys/types.h> 41532 #include <sys/param.h> 41533 41534 int 41535 main () 41536 { 41537 #if BYTE_ORDER != BIG_ENDIAN 41538 not big endian 41539 #endif 41540 41541 ; 41542 return 0; 41543 } 41544 _ACEOF 41545 if ac_fn_cxx_try_compile "$LINENO"; then : 41546 ac_cv_c_bigendian=yes 41547 else 41548 ac_cv_c_bigendian=no 41549 fi 41550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41551 fi 41552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41553 fi 41554 if test $ac_cv_c_bigendian = unknown; then 41555 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 41556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41557 /* end confdefs.h. */ 41558 #include <limits.h> 41559 41560 int 41561 main () 41562 { 41563 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 41564 bogus endian macros 41565 #endif 41566 41567 ; 41568 return 0; 41569 } 41570 _ACEOF 41571 if ac_fn_cxx_try_compile "$LINENO"; then : 41572 # It does; now see whether it defined to _BIG_ENDIAN or not. 41573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41574 /* end confdefs.h. */ 41575 #include <limits.h> 41576 41577 int 41578 main () 41579 { 41580 #ifndef _BIG_ENDIAN 41581 not big endian 41582 #endif 41583 41584 ; 41585 return 0; 41586 } 41587 _ACEOF 41588 if ac_fn_cxx_try_compile "$LINENO"; then : 41589 ac_cv_c_bigendian=yes 41590 else 41591 ac_cv_c_bigendian=no 41592 fi 41593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41594 fi 41595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41596 fi 41597 if test $ac_cv_c_bigendian = unknown; then 41598 # Compile a test program. 41599 if test "$cross_compiling" = yes; then : 41600 # Try to guess by grepping values from an object file. 41601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41602 /* end confdefs.h. */ 41603 short int ascii_mm[] = 41604 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 41605 short int ascii_ii[] = 41606 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 41607 int use_ascii (int i) { 41608 return ascii_mm[i] + ascii_ii[i]; 41609 } 41610 short int ebcdic_ii[] = 41611 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 41612 short int ebcdic_mm[] = 41613 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 41614 int use_ebcdic (int i) { 41615 return ebcdic_mm[i] + ebcdic_ii[i]; 41616 } 41617 extern int foo; 41618 41619 int 41620 main () 41621 { 41622 return use_ascii (foo) == use_ebcdic (foo); 41623 ; 41624 return 0; 41625 } 41626 _ACEOF 41627 if ac_fn_cxx_try_compile "$LINENO"; then : 41628 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 41629 ac_cv_c_bigendian=yes 41630 fi 41631 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 41632 if test "$ac_cv_c_bigendian" = unknown; then 41633 ac_cv_c_bigendian=no 41634 else 41635 # finding both strings is unlikely to happen, but who knows? 41636 ac_cv_c_bigendian=unknown 41637 fi 41638 fi 41639 fi 41640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41641 else 41642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41643 /* end confdefs.h. */ 41644 $ac_includes_default 41645 int 41646 main () 41647 { 41648 41649 /* Are we little or big endian? From Harbison&Steele. */ 41650 union 41651 { 41652 long int l; 41653 char c[sizeof (long int)]; 41654 } u; 41655 u.l = 1; 41656 return u.c[sizeof (long int) - 1] == 1; 41657 41658 ; 41659 return 0; 41660 } 41661 _ACEOF 41662 if ac_fn_cxx_try_run "$LINENO"; then : 41663 ac_cv_c_bigendian=no 41664 else 41665 ac_cv_c_bigendian=yes 41666 fi 41667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41668 conftest.$ac_objext conftest.beam conftest.$ac_ext 41669 fi 41670 41671 fi 41672 fi 41673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 41674 $as_echo "$ac_cv_c_bigendian" >&6; } 41675 case $ac_cv_c_bigendian in #( 41676 yes) 41677 ENDIAN="big";; #( 41678 no) 41679 ENDIAN="little" ;; #( 41680 universal) 41681 ENDIAN="universal_endianness" 41682 ;; #( 41683 *) 41684 ENDIAN="unknown" ;; 41685 esac 41686 41687 41688 if test "x$ENDIAN" = xuniversal_endianness; then 41689 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 41690 fi 41691 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 41692 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 41693 fi 41694 41695 41696 # Configure flags for the tools 41697 41698 ############################################################################### 41699 # 41700 # How to compile shared libraries. 41701 # 41702 41703 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41704 PICFLAG="-fPIC" 41705 PIEFLAG="-fPIE" 41706 C_FLAG_REORDER='' 41707 CXX_FLAG_REORDER='' 41708 41709 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41710 # Linking is different on MacOSX 41711 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 41712 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 41713 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 41714 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 41715 SET_SHARED_LIBRARY_MAPFILE='' 41716 else 41717 # Default works for linux, might work on other platforms as well. 41718 SHARED_LIBRARY_FLAGS='-shared' 41719 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 41720 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 41721 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 41722 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 41723 fi 41724 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41725 PICFLAG='' 41726 C_FLAG_REORDER='' 41727 CXX_FLAG_REORDER='' 41728 41729 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41730 # Linking is different on MacOSX 41731 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 41732 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 41733 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 41734 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 41735 SET_SHARED_LIBRARY_MAPFILE='' 41736 else 41737 # Default works for linux, might work on other platforms as well. 41738 SHARED_LIBRARY_FLAGS='-shared' 41739 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 41740 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 41741 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 41742 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 41743 fi 41744 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41745 PICFLAG="-KPIC" 41746 PIEFLAG="" 41747 C_FLAG_REORDER='-xF' 41748 CXX_FLAG_REORDER='-xF' 41749 SHARED_LIBRARY_FLAGS="-G" 41750 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 41751 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 41752 SET_SHARED_LIBRARY_NAME='' 41753 SET_SHARED_LIBRARY_MAPFILE='-M$1' 41754 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41755 PICFLAG="-qpic=large" 41756 PIEFLAG="" 41757 C_FLAG_REORDER='' 41758 CXX_FLAG_REORDER='' 41759 SHARED_LIBRARY_FLAGS="-qmkshrobj" 41760 SET_EXECUTABLE_ORIGIN="" 41761 SET_SHARED_LIBRARY_ORIGIN='' 41762 SET_SHARED_LIBRARY_NAME='' 41763 SET_SHARED_LIBRARY_MAPFILE='' 41764 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41765 PICFLAG="" 41766 PIEFLAG="" 41767 C_FLAG_REORDER='' 41768 CXX_FLAG_REORDER='' 41769 SHARED_LIBRARY_FLAGS="-LD" 41770 SET_EXECUTABLE_ORIGIN='' 41771 SET_SHARED_LIBRARY_ORIGIN='' 41772 SET_SHARED_LIBRARY_NAME='' 41773 SET_SHARED_LIBRARY_MAPFILE='' 41774 fi 41775 41776 41777 41778 41779 41780 41781 41782 41783 41784 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41785 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 41786 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 41787 CFLAGS_JDKLIB_EXTRA='-xstrconst' 41788 fi 41789 # The (cross) compiler is now configured, we can now test capabilities 41790 # of the target platform. 41791 41792 41793 41794 ############################################################################### 41795 # 41796 # Setup the opt flags for different compilers 41797 # and different operating systems. 41798 # 41799 41800 # FIXME: this was indirectly the old default, but just inherited. 41801 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41802 # C_FLAG_DEPS="-MMD -MF" 41803 # fi 41804 41805 # Generate make dependency files 41806 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41807 C_FLAG_DEPS="-MMD -MF" 41808 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41809 C_FLAG_DEPS="-MMD -MF" 41810 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41811 C_FLAG_DEPS="-xMMD -xMF" 41812 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41813 C_FLAG_DEPS="-qmakedep=gcc -MF" 41814 fi 41815 CXX_FLAG_DEPS="$C_FLAG_DEPS" 41816 41817 41818 41819 # Debug symbols 41820 # 41821 # By default don't set any specific assembler debug 41822 # info flags for toolchains unless we know they work. 41823 # See JDK-8207057. 41824 ASFLAGS_DEBUG_SYMBOLS="" 41825 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41826 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 41827 CFLAGS_DEBUG_SYMBOLS="-g1" 41828 CXXFLAGS_DEBUG_SYMBOLS="-g1" 41829 else 41830 CFLAGS_DEBUG_SYMBOLS="-g" 41831 CXXFLAGS_DEBUG_SYMBOLS="-g" 41832 fi 41833 ASFLAGS_DEBUG_SYMBOLS="-g" 41834 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41835 CFLAGS_DEBUG_SYMBOLS="-g" 41836 CXXFLAGS_DEBUG_SYMBOLS="-g" 41837 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41838 CFLAGS_DEBUG_SYMBOLS="-g -xs" 41839 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 41840 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41841 CFLAGS_DEBUG_SYMBOLS="-g" 41842 CXXFLAGS_DEBUG_SYMBOLS="-g" 41843 fi 41844 41845 41846 41847 41848 # Optimization levels 41849 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41850 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xalias_level=basic -xbuiltin=%all -xdepend -xrestrict -xlibmil" 41851 41852 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 41853 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 41854 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xregs=no%frameptr" 41855 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 41856 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 41857 C_O_FLAG_NONE="-xregs=no%frameptr" 41858 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 41859 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 41860 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 41861 CXX_O_FLAG_NONE="-xregs=no%frameptr" 41862 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 41863 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 41864 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 41865 fi 41866 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 41867 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 41868 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 41869 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 41870 C_O_FLAG_NONE="" 41871 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 41872 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 41873 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 41874 CXX_O_FLAG_NONE="" 41875 fi 41876 else 41877 # The remaining toolchains share opt flags between CC and CXX; 41878 # setup for C and duplicate afterwards. 41879 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41880 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41881 # On MacOSX we optimize for size, something 41882 # we should do for all platforms? 41883 C_O_FLAG_HIGHEST="-Os" 41884 C_O_FLAG_HI="-Os" 41885 C_O_FLAG_NORM="-Os" 41886 C_O_FLAG_NONE="" 41887 else 41888 C_O_FLAG_HIGHEST="-O3" 41889 C_O_FLAG_HI="-O3" 41890 C_O_FLAG_NORM="-O2" 41891 C_O_FLAG_NONE="-O0" 41892 fi 41893 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41894 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41895 # On MacOSX we optimize for size, something 41896 # we should do for all platforms? 41897 C_O_FLAG_HIGHEST="-Os" 41898 C_O_FLAG_HI="-Os" 41899 C_O_FLAG_NORM="-Os" 41900 C_O_FLAG_NONE="" 41901 else 41902 C_O_FLAG_HIGHEST="-O3" 41903 C_O_FLAG_HI="-O3" 41904 C_O_FLAG_NORM="-O2" 41905 C_O_FLAG_NONE="-O0" 41906 fi 41907 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41908 C_O_FLAG_HIGHEST="-O3" 41909 C_O_FLAG_HI="-O3 -qstrict" 41910 C_O_FLAG_NORM="-O2" 41911 C_O_FLAG_NONE="" 41912 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41913 C_O_FLAG_HIGHEST="-O2" 41914 C_O_FLAG_HI="-O1" 41915 C_O_FLAG_NORM="-O1" 41916 C_O_FLAG_NONE="-Od" 41917 fi 41918 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 41919 CXX_O_FLAG_HI="$C_O_FLAG_HI" 41920 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 41921 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 41922 fi 41923 41924 41925 41926 41927 41928 41929 41930 41931 41932 41933 41934 # Special extras... 41935 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41936 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 41937 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 41938 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 41939 fi 41940 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41941 LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall" 41942 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 41943 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 41944 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 41945 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS -fstack-protector" 41946 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS -fstack-protector" 41947 if test "x$OPENJDK_TARGET_OS" != xmacosx; then 41948 LDFLAGS_JDK="$LDFLAGS_JDK -Wl,-z,relro" 41949 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS -Wl,-z,relro" 41950 fi 41951 CXXSTD_CXXFLAG="-std=gnu++98" 41952 41953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"" >&5 41954 $as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"... " >&6; } 41955 supports=yes 41956 41957 saved_cxxflags="$CXXFLAGS" 41958 CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG -Werror" 41959 ac_ext=cpp 41960 ac_cpp='$CXXCPP $CPPFLAGS' 41961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41964 41965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41966 /* end confdefs.h. */ 41967 int i; 41968 _ACEOF 41969 if ac_fn_cxx_try_compile "$LINENO"; then : 41970 41971 else 41972 supports=no 41973 fi 41974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41975 ac_ext=cpp 41976 ac_cpp='$CXXCPP $CPPFLAGS' 41977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41980 41981 CXXFLAGS="$saved_cxxflags" 41982 41983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41984 $as_echo "$supports" >&6; } 41985 if test "x$supports" = "xyes" ; then 41986 : 41987 else 41988 CXXSTD_CXXFLAG="" 41989 fi 41990 41991 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${CXXSTD_CXXFLAG}" 41992 JVM_CFLAGS="${JVM_CFLAGS} ${CXXSTD_CXXFLAG}" 41993 41994 fi 41995 41996 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 41997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 41998 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 41999 fi 42000 42001 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 42002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 42003 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 42004 fi 42005 42006 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 42007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 42008 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 42009 fi 42010 42011 42012 if test "x$ASFLAGS" != "x"; then 42013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring ASFLAGS($ASFLAGS) found in environment. Use --with-extra-asflags" >&5 42014 $as_echo "$as_me: WARNING: Ignoring ASFLAGS($ASFLAGS) found in environment. Use --with-extra-asflags" >&2;} 42015 fi 42016 42017 42018 # Check whether --with-extra-cflags was given. 42019 if test "${with_extra_cflags+set}" = set; then : 42020 withval=$with_extra_cflags; 42021 fi 42022 42023 42024 42025 # Check whether --with-extra-cxxflags was given. 42026 if test "${with_extra_cxxflags+set}" = set; then : 42027 withval=$with_extra_cxxflags; 42028 fi 42029 42030 42031 42032 # Check whether --with-extra-ldflags was given. 42033 if test "${with_extra_ldflags+set}" = set; then : 42034 withval=$with_extra_ldflags; 42035 fi 42036 42037 42038 42039 # Check whether --with-extra-asflags was given. 42040 if test "${with_extra_asflags+set}" = set; then : 42041 withval=$with_extra_asflags; 42042 fi 42043 42044 42045 CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags" 42046 CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags" 42047 LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags" 42048 42049 # Hotspot needs these set in their legacy form 42050 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $with_extra_cflags" 42051 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $with_extra_cxxflags" 42052 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $with_extra_ldflags" 42053 LEGACY_EXTRA_ASFLAGS="$with_extra_asflags" 42054 42055 42056 42057 42058 42059 42060 ############################################################################### 42061 # 42062 # Now setup the CFLAGS and LDFLAGS for the JDK build. 42063 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 42064 # 42065 42066 FDLIBM_CFLAGS="" 42067 # Setup compiler/platform specific flags to CFLAGS_JDK, 42068 # CXXFLAGS_JDK and CCXXFLAGS_JDK (common to C and CXX?) 42069 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42070 # these options are used for both C and C++ compiles 42071 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Wall -Wno-parentheses -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 42072 -pipe -fstack-protector -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 42073 case $OPENJDK_TARGET_CPU_ARCH in 42074 arm ) 42075 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 42076 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42077 ;; 42078 ppc ) 42079 # on ppc we don't prevent gcc to omit frame pointer nor strict-aliasing 42080 ;; 42081 * ) 42082 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fno-omit-frame-pointer" 42083 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42084 ;; 42085 esac 42086 42087 REFERENCE_VERSION=6 42088 42089 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 42090 as_fn_error $? "Internal error: Cannot compare to $REFERENCE_VERSION, only three parts (X.Y.Z) is supported" "$LINENO" 5 42091 fi 42092 42093 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 42094 as_fn_error $? "Internal error: Cannot compare to $REFERENCE_VERSION, only parts < 99999 is supported" "$LINENO" 5 42095 fi 42096 42097 # Version comparison method inspired by http://stackoverflow.com/a/24067243 42098 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 42099 42100 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 42101 42102 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 42103 # runs afoul of the more aggressive versions of these optimisations. 42104 # Notably, value range propagation now assumes that the this pointer of C++ 42105 # member functions is non-null. 42106 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 42107 42108 42109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5 42110 $as_echo_n "checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; } 42111 supports=yes 42112 42113 saved_cflags="$CFLAGS" 42114 CFLAGS="$CFLAGS $NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror" 42115 ac_ext=c 42116 ac_cpp='$CPP $CPPFLAGS' 42117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42119 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42120 42121 42122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42123 /* end confdefs.h. */ 42124 int i; 42125 _ACEOF 42126 if ac_fn_c_try_compile "$LINENO"; then : 42127 42128 else 42129 supports=no 42130 fi 42131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42132 ac_ext=cpp 42133 ac_cpp='$CXXCPP $CPPFLAGS' 42134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42137 42138 CFLAGS="$saved_cflags" 42139 42140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42141 $as_echo "$supports" >&6; } 42142 if test "x$supports" = "xyes" ; then 42143 C_COMP_SUPPORTS="yes" 42144 else 42145 C_COMP_SUPPORTS="no" 42146 fi 42147 42148 42149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5 42150 $as_echo_n "checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; } 42151 supports=yes 42152 42153 saved_cxxflags="$CXXFLAGS" 42154 CXXFLAGS="$CXXFLAG $NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror" 42155 ac_ext=cpp 42156 ac_cpp='$CXXCPP $CPPFLAGS' 42157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42160 42161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42162 /* end confdefs.h. */ 42163 int i; 42164 _ACEOF 42165 if ac_fn_cxx_try_compile "$LINENO"; then : 42166 42167 else 42168 supports=no 42169 fi 42170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42171 ac_ext=cpp 42172 ac_cpp='$CXXCPP $CPPFLAGS' 42173 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42174 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42175 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42176 42177 CXXFLAGS="$saved_cxxflags" 42178 42179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42180 $as_echo "$supports" >&6; } 42181 if test "x$supports" = "xyes" ; then 42182 CXX_COMP_SUPPORTS="yes" 42183 else 42184 CXX_COMP_SUPPORTS="no" 42185 fi 42186 42187 42188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5 42189 $as_echo_n "checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; } 42190 supports=no 42191 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 42192 42193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42194 $as_echo "$supports" >&6; } 42195 if test "x$supports" = "xyes" ; then 42196 : 42197 else 42198 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="" 42199 fi 42200 42201 42202 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 42203 42204 42205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 42206 $as_echo_n "checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } 42207 supports=yes 42208 42209 saved_cflags="$CFLAGS" 42210 CFLAGS="$CFLAGS $NO_LIFETIME_DSE_CFLAG -Werror" 42211 ac_ext=c 42212 ac_cpp='$CPP $CPPFLAGS' 42213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42215 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42216 42217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42218 /* end confdefs.h. */ 42219 int i; 42220 _ACEOF 42221 if ac_fn_c_try_compile "$LINENO"; then : 42222 42223 else 42224 supports=no 42225 fi 42226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42227 ac_ext=cpp 42228 ac_cpp='$CXXCPP $CPPFLAGS' 42229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42232 42233 CFLAGS="$saved_cflags" 42234 42235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42236 $as_echo "$supports" >&6; } 42237 if test "x$supports" = "xyes" ; then 42238 C_COMP_SUPPORTS="yes" 42239 else 42240 C_COMP_SUPPORTS="no" 42241 fi 42242 42243 42244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 42245 $as_echo_n "checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } 42246 supports=yes 42247 42248 saved_cxxflags="$CXXFLAGS" 42249 CXXFLAGS="$CXXFLAG $NO_LIFETIME_DSE_CFLAG -Werror" 42250 ac_ext=cpp 42251 ac_cpp='$CXXCPP $CPPFLAGS' 42252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42255 42256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42257 /* end confdefs.h. */ 42258 int i; 42259 _ACEOF 42260 if ac_fn_cxx_try_compile "$LINENO"; then : 42261 42262 else 42263 supports=no 42264 fi 42265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42266 ac_ext=cpp 42267 ac_cpp='$CXXCPP $CPPFLAGS' 42268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42271 42272 CXXFLAGS="$saved_cxxflags" 42273 42274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42275 $as_echo "$supports" >&6; } 42276 if test "x$supports" = "xyes" ; then 42277 CXX_COMP_SUPPORTS="yes" 42278 else 42279 CXX_COMP_SUPPORTS="no" 42280 fi 42281 42282 42283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 42284 $as_echo_n "checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } 42285 supports=no 42286 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 42287 42288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42289 $as_echo "$supports" >&6; } 42290 if test "x$supports" = "xyes" ; then 42291 : 42292 else 42293 NO_LIFETIME_DSE_CFLAG="" 42294 fi 42295 42296 CFLAGS_JDK="${CFLAGS_JDK} ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 42297 42298 42299 42300 else 42301 : 42302 fi 42303 42304 42305 # Check that the compiler supports -ffp-contract=off flag 42306 # Set FDLIBM_CFLAGS to -ffp-contract=off if it does. 42307 # For GCC < 4.6, on x86, x86_64 and ppc check for 42308 # -mno-fused-madd and -fno-strict-aliasing. If they exist, 42309 # use them as a substitute for -ffp-contract=off. 42310 # 42311 # These flags are required for GCC-based builds of 42312 # fdlibm with optimization without losing precision. 42313 # Notably, -ffp-contract=off needs to be added for GCC >= 4.6, 42314 # -mno-fused-madd -fno-strict-aliasing for GCC < 4.6 42315 COMPILER_FP_CONTRACT_OFF_FLAG="-ffp-contract=off" 42316 42317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$COMPILER_FP_CONTRACT_OFF_FLAG -Werror\"" >&5 42318 $as_echo_n "checking if the C++ compiler supports \"$COMPILER_FP_CONTRACT_OFF_FLAG -Werror\"... " >&6; } 42319 supports=yes 42320 42321 saved_cxxflags="$CXXFLAGS" 42322 CXXFLAGS="$CXXFLAG $COMPILER_FP_CONTRACT_OFF_FLAG -Werror" 42323 ac_ext=cpp 42324 ac_cpp='$CXXCPP $CPPFLAGS' 42325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42328 42329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42330 /* end confdefs.h. */ 42331 int i; 42332 _ACEOF 42333 if ac_fn_cxx_try_compile "$LINENO"; then : 42334 42335 else 42336 supports=no 42337 fi 42338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42339 ac_ext=cpp 42340 ac_cpp='$CXXCPP $CPPFLAGS' 42341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42344 42345 CXXFLAGS="$saved_cxxflags" 42346 42347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42348 $as_echo "$supports" >&6; } 42349 if test "x$supports" = "xyes" ; then 42350 : 42351 else 42352 COMPILER_FP_CONTRACT_OFF_FLAG="" 42353 fi 42354 42355 if test "x$COMPILER_FP_CONTRACT_OFF_FLAG" = x; then 42356 if test "$OPENJDK_TARGET_CPU_ARCH" = "x86" || 42357 test "$OPENJDK_TARGET_CPU_ARCH" = "x86_64" || 42358 test "$OPENJDK_TARGET_CPU_ARCH" = "ppc"; then 42359 M_NO_FUSED_ADD_FLAG="-mno-fused-madd" 42360 42361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$M_NO_FUSED_ADD_FLAG -Werror\"" >&5 42362 $as_echo_n "checking if the C++ compiler supports \"$M_NO_FUSED_ADD_FLAG -Werror\"... " >&6; } 42363 supports=yes 42364 42365 saved_cxxflags="$CXXFLAGS" 42366 CXXFLAGS="$CXXFLAG $M_NO_FUSED_ADD_FLAG -Werror" 42367 ac_ext=cpp 42368 ac_cpp='$CXXCPP $CPPFLAGS' 42369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42372 42373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42374 /* end confdefs.h. */ 42375 int i; 42376 _ACEOF 42377 if ac_fn_cxx_try_compile "$LINENO"; then : 42378 42379 else 42380 supports=no 42381 fi 42382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42383 ac_ext=cpp 42384 ac_cpp='$CXXCPP $CPPFLAGS' 42385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42388 42389 CXXFLAGS="$saved_cxxflags" 42390 42391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42392 $as_echo "$supports" >&6; } 42393 if test "x$supports" = "xyes" ; then 42394 : 42395 else 42396 M_NO_FUSED_ADD_FLAG="" 42397 fi 42398 42399 NO_STRICT_ALIASING_FLAG="-fno-strict-aliasing" 42400 42401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_STRICT_ALIASING_FLAG -Werror\"" >&5 42402 $as_echo_n "checking if the C++ compiler supports \"$NO_STRICT_ALIASING_FLAG -Werror\"... " >&6; } 42403 supports=yes 42404 42405 saved_cxxflags="$CXXFLAGS" 42406 CXXFLAGS="$CXXFLAG $NO_STRICT_ALIASING_FLAG -Werror" 42407 ac_ext=cpp 42408 ac_cpp='$CXXCPP $CPPFLAGS' 42409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42412 42413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42414 /* end confdefs.h. */ 42415 int i; 42416 _ACEOF 42417 if ac_fn_cxx_try_compile "$LINENO"; then : 42418 42419 else 42420 supports=no 42421 fi 42422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42423 ac_ext=cpp 42424 ac_cpp='$CXXCPP $CPPFLAGS' 42425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42428 42429 CXXFLAGS="$saved_cxxflags" 42430 42431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42432 $as_echo "$supports" >&6; } 42433 if test "x$supports" = "xyes" ; then 42434 : 42435 else 42436 NO_STRICT_ALIASING_FLAG="" 42437 fi 42438 42439 if test "x$M_NO_FUSED_ADD_FLAG" != "x" && test "x$NO_STRICT_ALIASING_FLAG" != "x"; then 42440 FDLIBM_CFLAGS="$M_NO_FUSED_ADD_FLAG $NO_STRICT_ALIASING_FLAG" 42441 fi 42442 fi 42443 else 42444 FDLIBM_CFLAGS="$COMPILER_FP_CONTRACT_OFF_FLAG" 42445 fi 42446 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42447 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 42448 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 42449 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 42450 CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE" 42451 fi 42452 42453 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 42454 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 42455 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42456 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42457 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42458 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42459 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK \ 42460 -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 42461 -DWIN32_LEAN_AND_MEAN \ 42462 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 42463 -DWIN32 -DIAL" 42464 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 42465 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64" 42466 else 42467 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86" 42468 fi 42469 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 42470 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 42471 # studio. 42472 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 42473 CCXXFLAGS_JDK="$CCXXFLAGS_JDK \ 42474 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 42475 fi 42476 fi 42477 42478 42479 ############################################################################### 42480 42481 # Adjust flags according to debug level. 42482 case $DEBUG_LEVEL in 42483 fastdebug ) 42484 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS" 42485 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS" 42486 C_O_FLAG_HI="$C_O_FLAG_NORM" 42487 C_O_FLAG_NORM="$C_O_FLAG_NORM" 42488 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 42489 CXX_O_FLAG_NORM="$CXX_O_FLAG_NORM" 42490 JAVAC_FLAGS="$JAVAC_FLAGS -g" 42491 ;; 42492 slowdebug ) 42493 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS" 42494 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS" 42495 C_O_FLAG_HI="$C_O_FLAG_NONE" 42496 C_O_FLAG_NORM="$C_O_FLAG_NONE" 42497 CXX_O_FLAG_HI="$CXX_O_FLAG_NONE" 42498 CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE" 42499 JAVAC_FLAGS="$JAVAC_FLAGS -g" 42500 ;; 42501 esac 42502 42503 # Setup LP64 42504 CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64" 42505 42506 # Set some common defines. These works for all compilers, but assume 42507 # -D is universally accepted. 42508 42509 # Setup endianness 42510 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 42511 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 42512 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 42513 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 42514 # Note: -Dmacro is the same as #define macro 1 42515 # -Dmacro= is the same as #define macro 42516 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42517 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 42518 else 42519 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 42520 fi 42521 else 42522 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 42523 # are defined in the system? 42524 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42525 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN=" 42526 else 42527 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN" 42528 fi 42529 fi 42530 if test "x$OPENJDK_TARGET_CPU" = xppc64le; then 42531 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DABI_ELFv2" 42532 fi 42533 42534 # Setup target OS define. Use OS target name but in upper case. 42535 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 42536 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 42537 42538 # Setup target CPU 42539 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 42540 42541 # Setup debug/release defines 42542 if test "x$DEBUG_LEVEL" = xrelease; then 42543 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DNDEBUG" 42544 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42545 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DTRIMMED" 42546 fi 42547 else 42548 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DDEBUG" 42549 fi 42550 42551 # Setup release name 42552 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'" 42553 42554 42555 # Set some additional per-OS defines. 42556 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42557 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 42558 elif test "x$OPENJDK_TARGET_OS" = xaix; then 42559 # FIXME: PPC64 should not be here. 42560 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DPPC64" 42561 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 42562 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 42563 fi 42564 42565 # Additional macosx handling 42566 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42567 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42568 # FIXME: This needs to be exported in spec.gmk due to closed legacy code. 42569 # FIXME: clean this up, and/or move it elsewhere. 42570 42571 # Setting these parameters makes it an error to link to macosx APIs that are 42572 # newer than the given OS version and makes the linked binaries compatible 42573 # even if built on a newer version of the OS. 42574 # The expected format is X.Y.Z 42575 MACOSX_VERSION_MIN=10.7.0 42576 42577 42578 # The macro takes the version with no dots, ex: 1070 42579 # Let the flags variables get resolved in make for easier override on make 42580 # command line. 42581 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42582 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42583 fi 42584 fi 42585 42586 # Setup some hard coded includes 42587 CCXXFLAGS_JDK="$CCXXFLAGS_JDK \ 42588 -I${JDK_OUTPUTDIR}/include \ 42589 -I${JDK_OUTPUTDIR}/include/$OPENJDK_TARGET_OS \ 42590 -I${JDK_TOPDIR}/src/share/javavm/export \ 42591 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_EXPORT_DIR/javavm/export \ 42592 -I${JDK_TOPDIR}/src/share/native/common \ 42593 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_API_DIR/native/common" 42594 42595 # The shared libraries are compiled using the picflag. 42596 CFLAGS_JDKLIB="$CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 42597 CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA " 42598 42599 # Executable flags 42600 CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK $PIEFLAG" 42601 CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PIEFLAG" 42602 42603 42604 42605 42606 42607 42608 # Setup LDFLAGS et al. 42609 # 42610 # Now this is odd. The JDK native libraries have to link against libjvm.so 42611 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. 42612 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library 42613 # is identical for client and server? Yes. Which is picked at runtime (client or server)? 42614 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following 42615 # libraries will link to whatever is in memory. Yuck. 42616 # 42617 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh. 42618 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42619 LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no" 42620 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 42621 LDFLAGS_JDK="$LDFLAGS_JDK -safeseh" 42622 fi 42623 # TODO: make -debug optional "--disable-full-debug-symbols" 42624 LDFLAGS_JDK="$LDFLAGS_JDK -debug" 42625 LDFLAGS_JDKLIB="${LDFLAGS_JDK} -dll -libpath:${JDK_OUTPUTDIR}/lib" 42626 LDFLAGS_JDKLIB_SUFFIX="" 42627 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 42628 LDFLAGS_STACK_SIZE=1048576 42629 else 42630 LDFLAGS_STACK_SIZE=327680 42631 fi 42632 LDFLAGS_JDKEXE="${LDFLAGS_JDK} /STACK:$LDFLAGS_STACK_SIZE" 42633 else 42634 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42635 # If this is a --hash-style=gnu system, use --hash-style=both, why? 42636 # We have previously set HAS_GNU_HASH if this is the case 42637 if test -n "$HAS_GNU_HASH"; then 42638 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both " 42639 fi 42640 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42641 # And since we now know that the linker is gnu, then add: 42642 # -z defs, to forbid undefined symbols in object files 42643 # -z noexecstack, to mark stack regions as non-executable 42644 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs -Xlinker -z -Xlinker noexecstack" 42645 if test "x$DEBUG_LEVEL" = "xrelease"; then 42646 # When building release libraries, tell the linker optimize them. 42647 # Should this be supplied to the OSS linker as well? 42648 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" 42649 fi 42650 fi 42651 fi 42652 42653 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42654 LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext" 42655 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib" 42656 fi 42657 42658 LDFLAGS_JDKLIB="${LDFLAGS_JDK} $SHARED_LIBRARY_FLAGS \ 42659 -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}" 42660 42661 # On some platforms (mac) the linker warns about non existing -L dirs. 42662 # Add server first if available. Linking aginst client does not always produce the same results. 42663 # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1. 42664 # Default to server for other variants. 42665 if test "x$JVM_VARIANT_SERVER" = xtrue; then 42666 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 42667 elif test "x$JVM_VARIANT_CLIENT" = xtrue; then 42668 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/client" 42669 elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 42670 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/minimal" 42671 else 42672 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 42673 fi 42674 42675 LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm" 42676 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42677 LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc" 42678 fi 42679 42680 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 42681 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42682 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" 42683 fi 42684 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42685 # Enabling pie on 32 bit builds prevents the JVM from allocating a continuous 42686 # java heap. 42687 if test "x$OPENJDK_TARGET_CPU_BITS" != "x32"; then 42688 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -pie" 42689 fi 42690 fi 42691 fi 42692 42693 42694 42695 42696 42697 42698 42699 # Some Zero and Shark settings. 42700 # ZERO_ARCHFLAG tells the compiler which mode to build for 42701 case "${OPENJDK_TARGET_CPU}" in 42702 s390) 42703 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 42704 ;; 42705 *) 42706 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42707 esac 42708 42709 42710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$ZERO_ARCHFLAG\"" >&5 42711 $as_echo_n "checking if the C compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 42712 supports=yes 42713 42714 saved_cflags="$CFLAGS" 42715 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 42716 ac_ext=c 42717 ac_cpp='$CPP $CPPFLAGS' 42718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42720 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42721 42722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42723 /* end confdefs.h. */ 42724 int i; 42725 _ACEOF 42726 if ac_fn_c_try_compile "$LINENO"; then : 42727 42728 else 42729 supports=no 42730 fi 42731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42732 ac_ext=cpp 42733 ac_cpp='$CXXCPP $CPPFLAGS' 42734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42737 42738 CFLAGS="$saved_cflags" 42739 42740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42741 $as_echo "$supports" >&6; } 42742 if test "x$supports" = "xyes" ; then 42743 C_COMP_SUPPORTS="yes" 42744 else 42745 C_COMP_SUPPORTS="no" 42746 fi 42747 42748 42749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"" >&5 42750 $as_echo_n "checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 42751 supports=yes 42752 42753 saved_cxxflags="$CXXFLAGS" 42754 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 42755 ac_ext=cpp 42756 ac_cpp='$CXXCPP $CPPFLAGS' 42757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42760 42761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42762 /* end confdefs.h. */ 42763 int i; 42764 _ACEOF 42765 if ac_fn_cxx_try_compile "$LINENO"; then : 42766 42767 else 42768 supports=no 42769 fi 42770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42771 ac_ext=cpp 42772 ac_cpp='$CXXCPP $CPPFLAGS' 42773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42776 42777 CXXFLAGS="$saved_cxxflags" 42778 42779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42780 $as_echo "$supports" >&6; } 42781 if test "x$supports" = "xyes" ; then 42782 CXX_COMP_SUPPORTS="yes" 42783 else 42784 CXX_COMP_SUPPORTS="no" 42785 fi 42786 42787 42788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$ZERO_ARCHFLAG\"" >&5 42789 $as_echo_n "checking if both compilers support \"$ZERO_ARCHFLAG\"... " >&6; } 42790 supports=no 42791 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 42792 42793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42794 $as_echo "$supports" >&6; } 42795 if test "x$supports" = "xyes" ; then 42796 : 42797 else 42798 ZERO_ARCHFLAG="" 42799 fi 42800 42801 42802 42803 # Check that the compiler supports -mX (or -qX on AIX) flags 42804 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 42805 42806 42807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 42808 $as_echo_n "checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 42809 supports=yes 42810 42811 saved_cflags="$CFLAGS" 42812 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42813 ac_ext=c 42814 ac_cpp='$CPP $CPPFLAGS' 42815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42817 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42818 42819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42820 /* end confdefs.h. */ 42821 int i; 42822 _ACEOF 42823 if ac_fn_c_try_compile "$LINENO"; then : 42824 42825 else 42826 supports=no 42827 fi 42828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42829 ac_ext=cpp 42830 ac_cpp='$CXXCPP $CPPFLAGS' 42831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42834 42835 CFLAGS="$saved_cflags" 42836 42837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42838 $as_echo "$supports" >&6; } 42839 if test "x$supports" = "xyes" ; then 42840 C_COMP_SUPPORTS="yes" 42841 else 42842 C_COMP_SUPPORTS="no" 42843 fi 42844 42845 42846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 42847 $as_echo_n "checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 42848 supports=yes 42849 42850 saved_cxxflags="$CXXFLAGS" 42851 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42852 ac_ext=cpp 42853 ac_cpp='$CXXCPP $CPPFLAGS' 42854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42857 42858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42859 /* end confdefs.h. */ 42860 int i; 42861 _ACEOF 42862 if ac_fn_cxx_try_compile "$LINENO"; then : 42863 42864 else 42865 supports=no 42866 fi 42867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42868 ac_ext=cpp 42869 ac_cpp='$CXXCPP $CPPFLAGS' 42870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42873 42874 CXXFLAGS="$saved_cxxflags" 42875 42876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42877 $as_echo "$supports" >&6; } 42878 if test "x$supports" = "xyes" ; then 42879 CXX_COMP_SUPPORTS="yes" 42880 else 42881 CXX_COMP_SUPPORTS="no" 42882 fi 42883 42884 42885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 42886 $as_echo_n "checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 42887 supports=no 42888 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 42889 42890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42891 $as_echo "$supports" >&6; } 42892 if test "x$supports" = "xyes" ; then 42893 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 42894 else 42895 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 42896 fi 42897 42898 42899 42900 42901 # Setup debug symbols (need objcopy from the toolchain for that) 42902 42903 # Backwards compatibility. --with-native-debug-symbols is preferred post JDK-8207234, 42904 # but if somebody does not specify it via configure, we still want to preserve old 42905 # behaviour of --disable-debug-symbols 42906 # 42907 # ENABLE_DEBUG_SYMBOLS 42908 # This must be done after the toolchain is setup, since we're looking at objcopy. 42909 # 42910 # Check whether --enable-debug-symbols was given. 42911 if test "${enable_debug_symbols+set}" = set; then : 42912 enableval=$enable_debug_symbols; 42913 fi 42914 42915 42916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5 42917 $as_echo_n "checking if we should generate debug symbols... " >&6; } 42918 42919 if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then 42920 # explicit enabling of enable-debug-symbols and can't find objcopy 42921 # this is an error 42922 as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5 42923 fi 42924 42925 if test "x$enable_debug_symbols" = "xyes"; then 42926 ENABLE_DEBUG_SYMBOLS=true 42927 elif test "x$enable_debug_symbols" = "xno"; then 42928 ENABLE_DEBUG_SYMBOLS=false 42929 else 42930 # Default is on if objcopy is found 42931 if test "x$OBJCOPY" != x; then 42932 ENABLE_DEBUG_SYMBOLS=true 42933 # AIX, MacOS X and Windows don't use objcopy but default is on for those OSes 42934 elif test "x$OPENJDK_TARGET_OS" = xaix || test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then 42935 ENABLE_DEBUG_SYMBOLS=true 42936 else 42937 ENABLE_DEBUG_SYMBOLS=false 42938 fi 42939 fi 42940 42941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5 42942 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; } 42943 42944 # Backwards compatibility. --with-native-debug-symbols is preferred post JDK-8207234, 42945 # but if somebody does not specify it via configure, we still want to preserve old 42946 # behaviour of --disable-zip-debug-info. 42947 # 42948 # ZIP_DEBUGINFO_FILES 42949 # 42950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5 42951 $as_echo_n "checking if we should zip debug-info files... " >&6; } 42952 # Check whether --enable-zip-debug-info was given. 42953 if test "${enable_zip_debug_info+set}" = set; then : 42954 enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}" 42955 else 42956 enable_zip_debug_info="yes" 42957 fi 42958 42959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5 42960 $as_echo "${enable_zip_debug_info}" >&6; } 42961 42962 if test "x${enable_zip_debug_info}" = "xno"; then 42963 ZIP_DEBUGINFO_FILES=false 42964 elif test "x${enable_zip_debug_info}" = "xyes"; then 42965 ZIP_DEBUGINFO_FILES=true 42966 fi 42967 42968 # 42969 # NATIVE_DEBUG_SYMBOLS 42970 # This must be done after the toolchain is setup, since we're looking at objcopy. 42971 # In addition, this must be done after ENABLE_DEBUG_SYMBOLS and ZIP_DEBUGINFO_FILES 42972 # checking in order to preserve backwards compatibility post JDK-8207234. 42973 # 42974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of native debug symbols to use (this will override previous settings)" >&5 42975 $as_echo_n "checking what type of native debug symbols to use (this will override previous settings)... " >&6; } 42976 42977 # Check whether --with-native-debug-symbols was given. 42978 if test "${with_native_debug_symbols+set}" = set; then : 42979 withval=$with_native_debug_symbols; 42980 42981 else 42982 42983 # Default to unset for backwards compatibility 42984 with_native_debug_symbols="" 42985 42986 fi 42987 42988 NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols 42989 if test "x$NATIVE_DEBUG_SYMBOLS" = x; then 42990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified" >&5 42991 $as_echo "not specified" >&6; } 42992 else 42993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE_DEBUG_SYMBOLS" >&5 42994 $as_echo "$NATIVE_DEBUG_SYMBOLS" >&6; } 42995 fi 42996 # Default is empty 42997 DEBUG_BINARIES= 42998 # Default is min_strip. Possible values are min_strip, all_strip, no_strip 42999 STRIP_POLICY=min_strip 43000 43001 if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then 43002 43003 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 43004 if test "x$OBJCOPY" = x; then 43005 # enabling of enable-debug-symbols and can't find objcopy 43006 # this is an error 43007 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 43008 fi 43009 fi 43010 43011 ENABLE_DEBUG_SYMBOLS=true 43012 STRIP_POLICY=min_strip 43013 ZIP_DEBUGINFO_FILES=true 43014 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then 43015 ENABLE_DEBUG_SYMBOLS=false 43016 STRIP_POLICY=min_strip 43017 ZIP_DEBUGINFO_FILES=false 43018 elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then 43019 ENABLE_DEBUG_SYMBOLS=true 43020 STRIP_POLICY=no_strip 43021 ZIP_DEBUGINFO_FILES=false 43022 POST_STRIP_CMD= 43023 DEBUG_BINARIES=true 43024 elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then 43025 43026 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 43027 if test "x$OBJCOPY" = x; then 43028 # enabling of enable-debug-symbols and can't find objcopy 43029 # this is an error 43030 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 43031 fi 43032 fi 43033 43034 ENABLE_DEBUG_SYMBOLS=true 43035 STRIP_POLICY=min_strip 43036 ZIP_DEBUGINFO_FILES=false 43037 elif test "x$NATIVE_DEBUG_SYMBOLS" != x; then 43038 as_fn_error $? "Allowed native debug symbols are: none, internal, external, zipped" "$LINENO" 5 43039 else 43040 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-native-debug-symbols not specified. Using values from --disable-debug-symbols and --disable-zip-debug-info" >&5 43041 $as_echo "$as_me: --with-native-debug-symbols not specified. Using values from --disable-debug-symbols and --disable-zip-debug-info" >&6;} 43042 fi 43043 43044 43045 43046 43047 43048 43049 43050 43051 ############################################################################### 43052 # 43053 # Check dependencies for external and internal libraries. 43054 # 43055 ############################################################################### 43056 43057 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 43058 43059 # When using cygwin or msys, we need a wrapper binary that renames 43060 # /cygdrive/c/ arguments into c:/ arguments and peeks into 43061 # @files and rewrites these too! This wrapper binary is 43062 # called fixpath. 43063 FIXPATH= 43064 if test "x$OPENJDK_BUILD_OS" = xwindows; then 43065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 43066 $as_echo_n "checking if fixpath can be created... " >&6; } 43067 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 43068 FIXPATH_BIN="$OUTPUT_ROOT/fixpath.exe" 43069 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 43070 FIXPATH_SRC=`$CYGPATH -m $FIXPATH_SRC` 43071 FIXPATH_BIN=`$CYGPATH -m $FIXPATH_BIN` 43072 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 43073 FIXPATH="$OUTPUT_ROOT/fixpath.exe -c" 43074 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 43075 FIXPATH_SRC=`cmd //c echo $FIXPATH_SRC` 43076 FIXPATH_BIN=`cmd //c echo $FIXPATH_BIN` 43077 43078 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 43079 # @ was chosen as separator to minimize risk of other tools messing around with it 43080 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" | tr ' ' '\n' | grep '^/./' | sort | uniq` 43081 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 43082 43083 FIXPATH="$OUTPUT_ROOT/fixpath -m$fixpath_argument_list" 43084 fi 43085 rm -f $OUTPUT_ROOT/fixpath* 43086 cd $OUTPUT_ROOT 43087 $CC $FIXPATH_SRC -Fe$FIXPATH_BIN > $OUTPUT_ROOT/fixpath1.log 2>&1 43088 cd $CURDIR 43089 43090 if test ! -x $OUTPUT_ROOT/fixpath.exe; then 43091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43092 $as_echo "no" >&6; } 43093 cat $OUTPUT_ROOT/fixpath1.log 43094 as_fn_error $? "Could not create $OUTPUT_ROOT/fixpath.exe" "$LINENO" 5 43095 fi 43096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43097 $as_echo "yes" >&6; } 43098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 43099 $as_echo_n "checking if fixpath.exe works... " >&6; } 43100 cd $OUTPUT_ROOT 43101 $FIXPATH $CC $SRC_ROOT/common/src/fixpath.c -Fe$OUTPUT_ROOT/fixpath2.exe > $OUTPUT_ROOT/fixpath2.log 2>&1 43102 cd $CURDIR 43103 if test ! -x $OUTPUT_ROOT/fixpath2.exe; then 43104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43105 $as_echo "no" >&6; } 43106 cat $OUTPUT_ROOT/fixpath2.log 43107 as_fn_error $? "fixpath did not work!" "$LINENO" 5 43108 fi 43109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43110 $as_echo "yes" >&6; } 43111 rm -f $OUTPUT_ROOT/fixpath?.??? $OUTPUT_ROOT/fixpath.obj 43112 fi 43113 43114 43115 43116 43117 43118 43119 ############################################################################### 43120 # 43121 # OS specific settings that we never will need to probe. 43122 # 43123 if test "x$OPENJDK_TARGET_OS" = xlinux; then 43124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5 43125 $as_echo_n "checking what is not needed on Linux?... " >&6; } 43126 PULSE_NOT_NEEDED=yes 43127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5 43128 $as_echo "pulse" >&6; } 43129 fi 43130 43131 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 43132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5 43133 $as_echo_n "checking what is not needed on Solaris?... " >&6; } 43134 ALSA_NOT_NEEDED=yes 43135 PULSE_NOT_NEEDED=yes 43136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 43137 $as_echo "alsa pulse" >&6; } 43138 fi 43139 43140 if test "x$OPENJDK_TARGET_OS" = xaix; then 43141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5 43142 $as_echo_n "checking what is not needed on AIX?... " >&6; } 43143 ALSA_NOT_NEEDED=yes 43144 PULSE_NOT_NEEDED=yes 43145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 43146 $as_echo "alsa pulse" >&6; } 43147 fi 43148 43149 43150 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5 43152 $as_echo_n "checking what is not needed on Windows?... " >&6; } 43153 CUPS_NOT_NEEDED=yes 43154 ALSA_NOT_NEEDED=yes 43155 PULSE_NOT_NEEDED=yes 43156 X11_NOT_NEEDED=yes 43157 FONTCONFIG_NOT_NEEDED=yes 43158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5 43159 $as_echo "alsa cups pulse x11" >&6; } 43160 fi 43161 43162 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 43163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5 43164 $as_echo_n "checking what is not needed on MacOSX?... " >&6; } 43165 ALSA_NOT_NEEDED=yes 43166 PULSE_NOT_NEEDED=yes 43167 X11_NOT_NEEDED=yes 43168 FONTCONFIG_NOT_NEEDED=yes 43169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5 43170 $as_echo "alsa pulse x11" >&6; } 43171 fi 43172 43173 if test "x$OPENJDK_TARGET_OS" = xbsd; then 43174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5 43175 $as_echo_n "checking what is not needed on bsd?... " >&6; } 43176 ALSA_NOT_NEEDED=yes 43177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5 43178 $as_echo "alsa" >&6; } 43179 fi 43180 43181 if test "x$OPENJDK" = "xfalse"; then 43182 FREETYPE_NOT_NEEDED=yes 43183 fi 43184 43185 if test "x$SUPPORT_HEADFUL" = xno; then 43186 X11_NOT_NEEDED=yes 43187 fi 43188 43189 # Deprecated and now ignored 43190 43191 # Check whether --enable-macosx-runtime-support was given. 43192 if test "${enable_macosx_runtime_support+set}" = set; then : 43193 enableval=$enable_macosx_runtime_support; 43194 fi 43195 43196 if test "x$enable_macosx_runtime_support" != x; then 43197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&5 43198 $as_echo "$as_me: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&2;} 43199 fi 43200 43201 43202 43203 43204 ############################################################################### 43205 # 43206 # Check for X Windows 43207 # 43208 43209 # Check if the user has specified sysroot, but not --x-includes or --x-libraries. 43210 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 43211 # --x-libraries for the sysroot, if that seems to be correct. 43212 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 43213 if test "x$SYSROOT" != "x"; then 43214 if test "x$x_includes" = xNONE; then 43215 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 43216 x_includes="$SYSROOT/usr/X11R6/include" 43217 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 43218 x_includes="$SYSROOT/usr/include" 43219 fi 43220 fi 43221 if test "x$x_libraries" = xNONE; then 43222 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 43223 x_libraries="$SYSROOT/usr/X11R6/lib" 43224 elif test "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 43225 x_libraries="$SYSROOT/usr/lib64" 43226 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 43227 x_libraries="$SYSROOT/usr/lib" 43228 fi 43229 fi 43230 fi 43231 fi 43232 43233 # Now let autoconf do it's magic 43234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 43235 $as_echo_n "checking for X... " >&6; } 43236 43237 43238 # Check whether --with-x was given. 43239 if test "${with_x+set}" = set; then : 43240 withval=$with_x; 43241 fi 43242 43243 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 43244 if test "x$with_x" = xno; then 43245 # The user explicitly disabled X. 43246 have_x=disabled 43247 else 43248 case $x_includes,$x_libraries in #( 43249 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 43250 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 43251 $as_echo_n "(cached) " >&6 43252 else 43253 # One or both of the vars are not set, and there is no cached value. 43254 ac_x_includes=no ac_x_libraries=no 43255 rm -f -r conftest.dir 43256 if mkdir conftest.dir; then 43257 cd conftest.dir 43258 cat >Imakefile <<'_ACEOF' 43259 incroot: 43260 @echo incroot='${INCROOT}' 43261 usrlibdir: 43262 @echo usrlibdir='${USRLIBDIR}' 43263 libdir: 43264 @echo libdir='${LIBDIR}' 43265 _ACEOF 43266 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 43267 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 43268 for ac_var in incroot usrlibdir libdir; do 43269 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 43270 done 43271 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 43272 for ac_extension in a so sl dylib la dll; do 43273 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 43274 test -f "$ac_im_libdir/libX11.$ac_extension"; then 43275 ac_im_usrlibdir=$ac_im_libdir; break 43276 fi 43277 done 43278 # Screen out bogus values from the imake configuration. They are 43279 # bogus both because they are the default anyway, and because 43280 # using them would break gcc on systems where it needs fixed includes. 43281 case $ac_im_incroot in 43282 /usr/include) ac_x_includes= ;; 43283 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 43284 esac 43285 case $ac_im_usrlibdir in 43286 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 43287 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 43288 esac 43289 fi 43290 cd .. 43291 rm -f -r conftest.dir 43292 fi 43293 43294 # Standard set of common directories for X headers. 43295 # Check X11 before X11Rn because it is often a symlink to the current release. 43296 ac_x_header_dirs=' 43297 /usr/X11/include 43298 /usr/X11R7/include 43299 /usr/X11R6/include 43300 /usr/X11R5/include 43301 /usr/X11R4/include 43302 43303 /usr/include/X11 43304 /usr/include/X11R7 43305 /usr/include/X11R6 43306 /usr/include/X11R5 43307 /usr/include/X11R4 43308 43309 /usr/local/X11/include 43310 /usr/local/X11R7/include 43311 /usr/local/X11R6/include 43312 /usr/local/X11R5/include 43313 /usr/local/X11R4/include 43314 43315 /usr/local/include/X11 43316 /usr/local/include/X11R7 43317 /usr/local/include/X11R6 43318 /usr/local/include/X11R5 43319 /usr/local/include/X11R4 43320 43321 /usr/X386/include 43322 /usr/x386/include 43323 /usr/XFree86/include/X11 43324 43325 /usr/include 43326 /usr/local/include 43327 /usr/unsupported/include 43328 /usr/athena/include 43329 /usr/local/x11r5/include 43330 /usr/lpp/Xamples/include 43331 43332 /usr/openwin/include 43333 /usr/openwin/share/include' 43334 43335 if test "$ac_x_includes" = no; then 43336 # Guess where to find include files, by looking for Xlib.h. 43337 # First, try using that file with no special directory specified. 43338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43339 /* end confdefs.h. */ 43340 #include <X11/Xlib.h> 43341 _ACEOF 43342 if ac_fn_cxx_try_cpp "$LINENO"; then : 43343 # We can compile using X headers with no special include directory. 43344 ac_x_includes= 43345 else 43346 for ac_dir in $ac_x_header_dirs; do 43347 if test -r "$ac_dir/X11/Xlib.h"; then 43348 ac_x_includes=$ac_dir 43349 break 43350 fi 43351 done 43352 fi 43353 rm -f conftest.err conftest.i conftest.$ac_ext 43354 fi # $ac_x_includes = no 43355 43356 if test "$ac_x_libraries" = no; then 43357 # Check for the libraries. 43358 # See if we find them without any special options. 43359 # Don't add to $LIBS permanently. 43360 ac_save_LIBS=$LIBS 43361 LIBS="-lX11 $LIBS" 43362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43363 /* end confdefs.h. */ 43364 #include <X11/Xlib.h> 43365 int 43366 main () 43367 { 43368 XrmInitialize () 43369 ; 43370 return 0; 43371 } 43372 _ACEOF 43373 if ac_fn_cxx_try_link "$LINENO"; then : 43374 LIBS=$ac_save_LIBS 43375 # We can link X programs with no special library path. 43376 ac_x_libraries= 43377 else 43378 LIBS=$ac_save_LIBS 43379 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 43380 do 43381 # Don't even attempt the hair of trying to link an X program! 43382 for ac_extension in a so sl dylib la dll; do 43383 if test -r "$ac_dir/libX11.$ac_extension"; then 43384 ac_x_libraries=$ac_dir 43385 break 2 43386 fi 43387 done 43388 done 43389 fi 43390 rm -f core conftest.err conftest.$ac_objext \ 43391 conftest$ac_exeext conftest.$ac_ext 43392 fi # $ac_x_libraries = no 43393 43394 case $ac_x_includes,$ac_x_libraries in #( 43395 no,* | *,no | *\'*) 43396 # Didn't find X, or a directory has "'" in its name. 43397 ac_cv_have_x="have_x=no";; #( 43398 *) 43399 # Record where we found X for the cache. 43400 ac_cv_have_x="have_x=yes\ 43401 ac_x_includes='$ac_x_includes'\ 43402 ac_x_libraries='$ac_x_libraries'" 43403 esac 43404 fi 43405 ;; #( 43406 *) have_x=yes;; 43407 esac 43408 eval "$ac_cv_have_x" 43409 fi # $with_x != no 43410 43411 if test "$have_x" != yes; then 43412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 43413 $as_echo "$have_x" >&6; } 43414 no_x=yes 43415 else 43416 # If each of the values was on the command line, it overrides each guess. 43417 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 43418 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 43419 # Update the cache value to reflect the command line values. 43420 ac_cv_have_x="have_x=yes\ 43421 ac_x_includes='$x_includes'\ 43422 ac_x_libraries='$x_libraries'" 43423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 43424 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 43425 fi 43426 43427 if test "$no_x" = yes; then 43428 # Not all programs may use this symbol, but it does not hurt to define it. 43429 43430 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 43431 43432 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 43433 else 43434 if test -n "$x_includes"; then 43435 X_CFLAGS="$X_CFLAGS -I$x_includes" 43436 fi 43437 43438 # It would also be nice to do this for all -L options, not just this one. 43439 if test -n "$x_libraries"; then 43440 X_LIBS="$X_LIBS -L$x_libraries" 43441 # For Solaris; some versions of Sun CC require a space after -R and 43442 # others require no space. Words are not sufficient . . . . 43443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 43444 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 43445 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 43446 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 43447 ac_cxx_werror_flag=yes 43448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43449 /* end confdefs.h. */ 43450 43451 int 43452 main () 43453 { 43454 43455 ; 43456 return 0; 43457 } 43458 _ACEOF 43459 if ac_fn_cxx_try_link "$LINENO"; then : 43460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43461 $as_echo "no" >&6; } 43462 X_LIBS="$X_LIBS -R$x_libraries" 43463 else 43464 LIBS="$ac_xsave_LIBS -R $x_libraries" 43465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43466 /* end confdefs.h. */ 43467 43468 int 43469 main () 43470 { 43471 43472 ; 43473 return 0; 43474 } 43475 _ACEOF 43476 if ac_fn_cxx_try_link "$LINENO"; then : 43477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43478 $as_echo "yes" >&6; } 43479 X_LIBS="$X_LIBS -R $x_libraries" 43480 else 43481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 43482 $as_echo "neither works" >&6; } 43483 fi 43484 rm -f core conftest.err conftest.$ac_objext \ 43485 conftest$ac_exeext conftest.$ac_ext 43486 fi 43487 rm -f core conftest.err conftest.$ac_objext \ 43488 conftest$ac_exeext conftest.$ac_ext 43489 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 43490 LIBS=$ac_xsave_LIBS 43491 fi 43492 43493 # Check for system-dependent libraries X programs must link with. 43494 # Do this before checking for the system-independent R6 libraries 43495 # (-lICE), since we may need -lsocket or whatever for X linking. 43496 43497 if test "$ISC" = yes; then 43498 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 43499 else 43500 # Martyn Johnson says this is needed for Ultrix, if the X 43501 # libraries were built with DECnet support. And Karl Berry says 43502 # the Alpha needs dnet_stub (dnet does not exist). 43503 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 43504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43505 /* end confdefs.h. */ 43506 43507 /* Override any GCC internal prototype to avoid an error. 43508 Use char because int might match the return type of a GCC 43509 builtin and then its argument prototype would still apply. */ 43510 #ifdef __cplusplus 43511 extern "C" 43512 #endif 43513 char XOpenDisplay (); 43514 int 43515 main () 43516 { 43517 return XOpenDisplay (); 43518 ; 43519 return 0; 43520 } 43521 _ACEOF 43522 if ac_fn_cxx_try_link "$LINENO"; then : 43523 43524 else 43525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 43526 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 43527 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 43528 $as_echo_n "(cached) " >&6 43529 else 43530 ac_check_lib_save_LIBS=$LIBS 43531 LIBS="-ldnet $LIBS" 43532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43533 /* end confdefs.h. */ 43534 43535 /* Override any GCC internal prototype to avoid an error. 43536 Use char because int might match the return type of a GCC 43537 builtin and then its argument prototype would still apply. */ 43538 #ifdef __cplusplus 43539 extern "C" 43540 #endif 43541 char dnet_ntoa (); 43542 int 43543 main () 43544 { 43545 return dnet_ntoa (); 43546 ; 43547 return 0; 43548 } 43549 _ACEOF 43550 if ac_fn_cxx_try_link "$LINENO"; then : 43551 ac_cv_lib_dnet_dnet_ntoa=yes 43552 else 43553 ac_cv_lib_dnet_dnet_ntoa=no 43554 fi 43555 rm -f core conftest.err conftest.$ac_objext \ 43556 conftest$ac_exeext conftest.$ac_ext 43557 LIBS=$ac_check_lib_save_LIBS 43558 fi 43559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 43560 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 43561 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 43562 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 43563 fi 43564 43565 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 43566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 43567 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 43568 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 43569 $as_echo_n "(cached) " >&6 43570 else 43571 ac_check_lib_save_LIBS=$LIBS 43572 LIBS="-ldnet_stub $LIBS" 43573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43574 /* end confdefs.h. */ 43575 43576 /* Override any GCC internal prototype to avoid an error. 43577 Use char because int might match the return type of a GCC 43578 builtin and then its argument prototype would still apply. */ 43579 #ifdef __cplusplus 43580 extern "C" 43581 #endif 43582 char dnet_ntoa (); 43583 int 43584 main () 43585 { 43586 return dnet_ntoa (); 43587 ; 43588 return 0; 43589 } 43590 _ACEOF 43591 if ac_fn_cxx_try_link "$LINENO"; then : 43592 ac_cv_lib_dnet_stub_dnet_ntoa=yes 43593 else 43594 ac_cv_lib_dnet_stub_dnet_ntoa=no 43595 fi 43596 rm -f core conftest.err conftest.$ac_objext \ 43597 conftest$ac_exeext conftest.$ac_ext 43598 LIBS=$ac_check_lib_save_LIBS 43599 fi 43600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 43601 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 43602 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 43603 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 43604 fi 43605 43606 fi 43607 fi 43608 rm -f core conftest.err conftest.$ac_objext \ 43609 conftest$ac_exeext conftest.$ac_ext 43610 LIBS="$ac_xsave_LIBS" 43611 43612 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 43613 # to get the SysV transport functions. 43614 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 43615 # needs -lnsl. 43616 # The nsl library prevents programs from opening the X display 43617 # on Irix 5.2, according to T.E. Dickey. 43618 # The functions gethostbyname, getservbyname, and inet_addr are 43619 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 43620 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 43621 if test "x$ac_cv_func_gethostbyname" = xyes; then : 43622 43623 fi 43624 43625 if test $ac_cv_func_gethostbyname = no; then 43626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 43627 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 43628 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 43629 $as_echo_n "(cached) " >&6 43630 else 43631 ac_check_lib_save_LIBS=$LIBS 43632 LIBS="-lnsl $LIBS" 43633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43634 /* end confdefs.h. */ 43635 43636 /* Override any GCC internal prototype to avoid an error. 43637 Use char because int might match the return type of a GCC 43638 builtin and then its argument prototype would still apply. */ 43639 #ifdef __cplusplus 43640 extern "C" 43641 #endif 43642 char gethostbyname (); 43643 int 43644 main () 43645 { 43646 return gethostbyname (); 43647 ; 43648 return 0; 43649 } 43650 _ACEOF 43651 if ac_fn_cxx_try_link "$LINENO"; then : 43652 ac_cv_lib_nsl_gethostbyname=yes 43653 else 43654 ac_cv_lib_nsl_gethostbyname=no 43655 fi 43656 rm -f core conftest.err conftest.$ac_objext \ 43657 conftest$ac_exeext conftest.$ac_ext 43658 LIBS=$ac_check_lib_save_LIBS 43659 fi 43660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 43661 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 43662 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 43663 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 43664 fi 43665 43666 if test $ac_cv_lib_nsl_gethostbyname = no; then 43667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 43668 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 43669 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 43670 $as_echo_n "(cached) " >&6 43671 else 43672 ac_check_lib_save_LIBS=$LIBS 43673 LIBS="-lbsd $LIBS" 43674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43675 /* end confdefs.h. */ 43676 43677 /* Override any GCC internal prototype to avoid an error. 43678 Use char because int might match the return type of a GCC 43679 builtin and then its argument prototype would still apply. */ 43680 #ifdef __cplusplus 43681 extern "C" 43682 #endif 43683 char gethostbyname (); 43684 int 43685 main () 43686 { 43687 return gethostbyname (); 43688 ; 43689 return 0; 43690 } 43691 _ACEOF 43692 if ac_fn_cxx_try_link "$LINENO"; then : 43693 ac_cv_lib_bsd_gethostbyname=yes 43694 else 43695 ac_cv_lib_bsd_gethostbyname=no 43696 fi 43697 rm -f core conftest.err conftest.$ac_objext \ 43698 conftest$ac_exeext conftest.$ac_ext 43699 LIBS=$ac_check_lib_save_LIBS 43700 fi 43701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 43702 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 43703 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 43704 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 43705 fi 43706 43707 fi 43708 fi 43709 43710 # lieder@skyler.mavd.honeywell.com says without -lsocket, 43711 # socket/setsockopt and other routines are undefined under SCO ODT 43712 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 43713 # on later versions), says Simon Leinen: it contains gethostby* 43714 # variants that don't use the name server (or something). -lsocket 43715 # must be given before -lnsl if both are needed. We assume that 43716 # if connect needs -lnsl, so does gethostbyname. 43717 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 43718 if test "x$ac_cv_func_connect" = xyes; then : 43719 43720 fi 43721 43722 if test $ac_cv_func_connect = no; then 43723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 43724 $as_echo_n "checking for connect in -lsocket... " >&6; } 43725 if ${ac_cv_lib_socket_connect+:} false; then : 43726 $as_echo_n "(cached) " >&6 43727 else 43728 ac_check_lib_save_LIBS=$LIBS 43729 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 43730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43731 /* end confdefs.h. */ 43732 43733 /* Override any GCC internal prototype to avoid an error. 43734 Use char because int might match the return type of a GCC 43735 builtin and then its argument prototype would still apply. */ 43736 #ifdef __cplusplus 43737 extern "C" 43738 #endif 43739 char connect (); 43740 int 43741 main () 43742 { 43743 return connect (); 43744 ; 43745 return 0; 43746 } 43747 _ACEOF 43748 if ac_fn_cxx_try_link "$LINENO"; then : 43749 ac_cv_lib_socket_connect=yes 43750 else 43751 ac_cv_lib_socket_connect=no 43752 fi 43753 rm -f core conftest.err conftest.$ac_objext \ 43754 conftest$ac_exeext conftest.$ac_ext 43755 LIBS=$ac_check_lib_save_LIBS 43756 fi 43757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 43758 $as_echo "$ac_cv_lib_socket_connect" >&6; } 43759 if test "x$ac_cv_lib_socket_connect" = xyes; then : 43760 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 43761 fi 43762 43763 fi 43764 43765 # Guillermo Gomez says -lposix is necessary on A/UX. 43766 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 43767 if test "x$ac_cv_func_remove" = xyes; then : 43768 43769 fi 43770 43771 if test $ac_cv_func_remove = no; then 43772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 43773 $as_echo_n "checking for remove in -lposix... " >&6; } 43774 if ${ac_cv_lib_posix_remove+:} false; then : 43775 $as_echo_n "(cached) " >&6 43776 else 43777 ac_check_lib_save_LIBS=$LIBS 43778 LIBS="-lposix $LIBS" 43779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43780 /* end confdefs.h. */ 43781 43782 /* Override any GCC internal prototype to avoid an error. 43783 Use char because int might match the return type of a GCC 43784 builtin and then its argument prototype would still apply. */ 43785 #ifdef __cplusplus 43786 extern "C" 43787 #endif 43788 char remove (); 43789 int 43790 main () 43791 { 43792 return remove (); 43793 ; 43794 return 0; 43795 } 43796 _ACEOF 43797 if ac_fn_cxx_try_link "$LINENO"; then : 43798 ac_cv_lib_posix_remove=yes 43799 else 43800 ac_cv_lib_posix_remove=no 43801 fi 43802 rm -f core conftest.err conftest.$ac_objext \ 43803 conftest$ac_exeext conftest.$ac_ext 43804 LIBS=$ac_check_lib_save_LIBS 43805 fi 43806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 43807 $as_echo "$ac_cv_lib_posix_remove" >&6; } 43808 if test "x$ac_cv_lib_posix_remove" = xyes; then : 43809 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 43810 fi 43811 43812 fi 43813 43814 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 43815 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 43816 if test "x$ac_cv_func_shmat" = xyes; then : 43817 43818 fi 43819 43820 if test $ac_cv_func_shmat = no; then 43821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 43822 $as_echo_n "checking for shmat in -lipc... " >&6; } 43823 if ${ac_cv_lib_ipc_shmat+:} false; then : 43824 $as_echo_n "(cached) " >&6 43825 else 43826 ac_check_lib_save_LIBS=$LIBS 43827 LIBS="-lipc $LIBS" 43828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43829 /* end confdefs.h. */ 43830 43831 /* Override any GCC internal prototype to avoid an error. 43832 Use char because int might match the return type of a GCC 43833 builtin and then its argument prototype would still apply. */ 43834 #ifdef __cplusplus 43835 extern "C" 43836 #endif 43837 char shmat (); 43838 int 43839 main () 43840 { 43841 return shmat (); 43842 ; 43843 return 0; 43844 } 43845 _ACEOF 43846 if ac_fn_cxx_try_link "$LINENO"; then : 43847 ac_cv_lib_ipc_shmat=yes 43848 else 43849 ac_cv_lib_ipc_shmat=no 43850 fi 43851 rm -f core conftest.err conftest.$ac_objext \ 43852 conftest$ac_exeext conftest.$ac_ext 43853 LIBS=$ac_check_lib_save_LIBS 43854 fi 43855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 43856 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 43857 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 43858 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 43859 fi 43860 43861 fi 43862 fi 43863 43864 # Check for libraries that X11R6 Xt/Xaw programs need. 43865 ac_save_LDFLAGS=$LDFLAGS 43866 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 43867 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 43868 # check for ICE first), but we must link in the order -lSM -lICE or 43869 # we get undefined symbols. So assume we have SM if we have ICE. 43870 # These have to be linked with before -lX11, unlike the other 43871 # libraries we check for below, so use a different variable. 43872 # John Interrante, Karl Berry 43873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 43874 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 43875 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 43876 $as_echo_n "(cached) " >&6 43877 else 43878 ac_check_lib_save_LIBS=$LIBS 43879 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 43880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43881 /* end confdefs.h. */ 43882 43883 /* Override any GCC internal prototype to avoid an error. 43884 Use char because int might match the return type of a GCC 43885 builtin and then its argument prototype would still apply. */ 43886 #ifdef __cplusplus 43887 extern "C" 43888 #endif 43889 char IceConnectionNumber (); 43890 int 43891 main () 43892 { 43893 return IceConnectionNumber (); 43894 ; 43895 return 0; 43896 } 43897 _ACEOF 43898 if ac_fn_cxx_try_link "$LINENO"; then : 43899 ac_cv_lib_ICE_IceConnectionNumber=yes 43900 else 43901 ac_cv_lib_ICE_IceConnectionNumber=no 43902 fi 43903 rm -f core conftest.err conftest.$ac_objext \ 43904 conftest$ac_exeext conftest.$ac_ext 43905 LIBS=$ac_check_lib_save_LIBS 43906 fi 43907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 43908 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 43909 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 43910 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 43911 fi 43912 43913 LDFLAGS=$ac_save_LDFLAGS 43914 43915 fi 43916 43917 43918 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 43919 # this doesn't make sense so we remove it. 43920 if test "x$COMPILE_TYPE" = xcross; then 43921 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 43922 fi 43923 43924 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then 43925 43926 # Print a helpful message on how to acquire the necessary build dependency. 43927 # x11 is the help tag: freetype, cups, pulse, alsa etc 43928 MISSING_DEPENDENCY=x11 43929 43930 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43931 cygwin_help $MISSING_DEPENDENCY 43932 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43933 msys_help $MISSING_DEPENDENCY 43934 else 43935 PKGHANDLER_COMMAND= 43936 43937 case $PKGHANDLER in 43938 apt-get) 43939 apt_help $MISSING_DEPENDENCY ;; 43940 yum) 43941 yum_help $MISSING_DEPENDENCY ;; 43942 port) 43943 port_help $MISSING_DEPENDENCY ;; 43944 pkgutil) 43945 pkgutil_help $MISSING_DEPENDENCY ;; 43946 pkgadd) 43947 pkgadd_help $MISSING_DEPENDENCY ;; 43948 esac 43949 43950 if test "x$PKGHANDLER_COMMAND" != x; then 43951 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 43952 fi 43953 fi 43954 43955 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 43956 fi 43957 43958 43959 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 43960 OPENWIN_HOME="/usr/openwin" 43961 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 43962 X_LIBS="-L$SYSROOT$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 43963 -L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 43964 -R$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 43965 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 43966 fi 43967 43968 # 43969 # Weird Sol10 something check...TODO change to try compile 43970 # 43971 if test "x${OPENJDK_TARGET_OS}" = xsolaris; then 43972 if test "`uname -r`" = "5.10"; then 43973 if test "`${EGREP} -c XLinearGradient ${OPENWIN_HOME}/share/include/X11/extensions/Xrender.h`" = "0"; then 43974 X_CFLAGS="${X_CFLAGS} -DSOLARIS10_NO_XRENDER_STRUCTS" 43975 fi 43976 fi 43977 fi 43978 43979 ac_ext=c 43980 ac_cpp='$CPP $CPPFLAGS' 43981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43983 ac_compiler_gnu=$ac_cv_c_compiler_gnu 43984 43985 OLD_CFLAGS="$CFLAGS" 43986 CFLAGS="$CFLAGS $X_CFLAGS" 43987 43988 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 43989 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 43990 do : 43991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 43992 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 43993 # include <X11/Xlib.h> 43994 # include <X11/Xutil.h> 43995 43996 43997 " 43998 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 43999 cat >>confdefs.h <<_ACEOF 44000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 44001 _ACEOF 44002 X11_A_OK=yes 44003 else 44004 X11_A_OK=no; break 44005 fi 44006 44007 done 44008 44009 44010 CFLAGS="$OLD_CFLAGS" 44011 ac_ext=cpp 44012 ac_cpp='$CXXCPP $CPPFLAGS' 44013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 44016 44017 44018 if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then 44019 44020 # Print a helpful message on how to acquire the necessary build dependency. 44021 # x11 is the help tag: freetype, cups, pulse, alsa etc 44022 MISSING_DEPENDENCY=x11 44023 44024 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44025 cygwin_help $MISSING_DEPENDENCY 44026 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44027 msys_help $MISSING_DEPENDENCY 44028 else 44029 PKGHANDLER_COMMAND= 44030 44031 case $PKGHANDLER in 44032 apt-get) 44033 apt_help $MISSING_DEPENDENCY ;; 44034 yum) 44035 yum_help $MISSING_DEPENDENCY ;; 44036 port) 44037 port_help $MISSING_DEPENDENCY ;; 44038 pkgutil) 44039 pkgutil_help $MISSING_DEPENDENCY ;; 44040 pkgadd) 44041 pkgadd_help $MISSING_DEPENDENCY ;; 44042 esac 44043 44044 if test "x$PKGHANDLER_COMMAND" != x; then 44045 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44046 fi 44047 fi 44048 44049 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 44050 fi 44051 44052 44053 44054 44055 44056 44057 ############################################################################### 44058 # 44059 # The common unix printing system cups is used to print from java. 44060 # 44061 44062 # Check whether --with-cups was given. 44063 if test "${with_cups+set}" = set; then : 44064 withval=$with_cups; 44065 fi 44066 44067 44068 # Check whether --with-cups-include was given. 44069 if test "${with_cups_include+set}" = set; then : 44070 withval=$with_cups_include; 44071 fi 44072 44073 44074 if test "x$CUPS_NOT_NEEDED" = xyes; then 44075 if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then 44076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5 44077 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;} 44078 fi 44079 CUPS_CFLAGS= 44080 else 44081 CUPS_FOUND=no 44082 44083 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 44084 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 44085 fi 44086 44087 if test "x${with_cups}" != x; then 44088 CUPS_CFLAGS="-I${with_cups}/include" 44089 CUPS_FOUND=yes 44090 fi 44091 if test "x${with_cups_include}" != x; then 44092 CUPS_CFLAGS="-I${with_cups_include}" 44093 CUPS_FOUND=yes 44094 fi 44095 if test "x$CUPS_FOUND" = xno; then 44096 44097 44098 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 44099 # Source the builddeps file again, to make sure it uses the latest variables! 44100 . $builddepsfile 44101 # Look for a target and build machine specific resource! 44102 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 44103 if test "x$resource" = x; then 44104 # Ok, lets instead look for a target specific resource 44105 eval resource=\${builddep_cups_TARGET_${rewritten_target_var}} 44106 fi 44107 if test "x$resource" = x; then 44108 # Ok, lets instead look for a build specific resource 44109 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}} 44110 fi 44111 if test "x$resource" = x; then 44112 # Ok, lets instead look for a generic resource 44113 # (The cups comes from M4 and not the shell, thus no need for eval here.) 44114 resource=${builddep_cups} 44115 fi 44116 if test "x$resource" != x; then 44117 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5 44118 $as_echo "$as_me: Using builddeps $resource for cups" >&6;} 44119 # If the resource in the builddeps.conf file is an existing directory, 44120 # for example /java/linux/cups 44121 if test -d ${resource}; then 44122 depdir=${resource} 44123 else 44124 44125 # cups is for example mymodule 44126 # $resource is for example libs/general/libmymod_1_2_3.zip 44127 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 44128 # $with_builddeps_dir is for example /localhome/builddeps 44129 # depdir is the name of the variable into which we store the depdir, eg MYMOD 44130 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 44131 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 44132 filename=`basename $resource` 44133 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 44134 filebase=${filename%%.*} 44135 extension=${filename#*.} 44136 installdir=$with_builddeps_dir/$filebase 44137 if test ! -f $installdir/$filename.unpacked; then 44138 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5 44139 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;} 44140 if test ! -d $installdir; then 44141 mkdir -p $installdir 44142 fi 44143 if test ! -d $installdir; then 44144 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 44145 fi 44146 tmpfile=`mktemp $installdir/cups.XXXXXXXXX` 44147 touch $tmpfile 44148 if test ! -f $tmpfile; then 44149 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 44150 fi 44151 44152 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 44153 # $tmpfile is the local file name for the downloaded file. 44154 VALID_TOOL=no 44155 if test "x$BDEPS_FTP" = xwget; then 44156 VALID_TOOL=yes 44157 wget -O $tmpfile $with_builddeps_server/$resource 44158 fi 44159 if test "x$BDEPS_FTP" = xlftp; then 44160 VALID_TOOL=yes 44161 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 44162 fi 44163 if test "x$BDEPS_FTP" = xftp; then 44164 VALID_TOOL=yes 44165 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 44166 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 44167 FTPUSERPWD=${FTPSERVER%%@*} 44168 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 44169 FTPUSER=${userpwd%%:*} 44170 FTPPWD=${userpwd#*@} 44171 FTPSERVER=${FTPSERVER#*@} 44172 else 44173 FTPUSER=ftp 44174 FTPPWD=ftp 44175 fi 44176 # the "pass" command does not work on some 44177 # ftp clients (read ftp.exe) but if it works, 44178 # passive mode is better! 44179 ( \ 44180 echo "user $FTPUSER $FTPPWD" ; \ 44181 echo "pass" ; \ 44182 echo "bin" ; \ 44183 echo "get $FTPPATH $tmpfile" ; \ 44184 ) | ftp -in $FTPSERVER 44185 fi 44186 if test "x$VALID_TOOL" != xyes; then 44187 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 44188 fi 44189 44190 mv $tmpfile $installdir/$filename 44191 if test ! -s $installdir/$filename; then 44192 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 44193 fi 44194 case "$extension" in 44195 zip) echo "Unzipping $installdir/$filename..." 44196 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 44197 ;; 44198 tar.gz) echo "Untaring $installdir/$filename..." 44199 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44200 ;; 44201 tgz) echo "Untaring $installdir/$filename..." 44202 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44203 ;; 44204 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 44205 ;; 44206 esac 44207 fi 44208 if test -f $installdir/$filename.unpacked; then 44209 depdir=$installdir 44210 fi 44211 44212 fi 44213 # Source the builddeps file again, because in the previous command, the depdir 44214 # was updated to point at the current build dependency install directory. 44215 . $builddepsfile 44216 # Now extract variables from the builddeps.conf files. 44217 theroot=${builddep_cups_ROOT} 44218 thecflags=${builddep_cups_CFLAGS} 44219 thelibs=${builddep_cups_LIBS} 44220 if test "x$depdir" = x; then 44221 as_fn_error $? "Could not download build dependency cups" "$LINENO" 5 44222 fi 44223 CUPS=$depdir 44224 if test "x$theroot" != x; then 44225 CUPS="$theroot" 44226 fi 44227 if test "x$thecflags" != x; then 44228 CUPS_CFLAGS="$thecflags" 44229 fi 44230 if test "x$thelibs" != x; then 44231 CUPS_LIBS="$thelibs" 44232 fi 44233 CUPS_FOUND=yes 44234 44235 fi 44236 44237 fi 44238 44239 fi 44240 if test "x$CUPS_FOUND" = xno; then 44241 # Are the cups headers installed in the default /usr/include location? 44242 for ac_header in cups/cups.h cups/ppd.h 44243 do : 44244 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 44245 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 44246 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 44247 cat >>confdefs.h <<_ACEOF 44248 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 44249 _ACEOF 44250 44251 CUPS_FOUND=yes 44252 CUPS_CFLAGS= 44253 DEFAULT_CUPS=yes 44254 44255 44256 fi 44257 44258 done 44259 44260 fi 44261 if test "x$CUPS_FOUND" = xno; then 44262 # Getting nervous now? Lets poke around for standard Solaris third-party 44263 # package installation locations. 44264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 44265 $as_echo_n "checking for cups headers... " >&6; } 44266 if test -s $SYSROOT/opt/sfw/cups/include/cups/cups.h; then 44267 # An SFW package seems to be installed! 44268 CUPS_FOUND=yes 44269 CUPS_CFLAGS="-I$SYSROOT/opt/sfw/cups/include" 44270 elif test -s $SYSROOT/opt/csw/include/cups/cups.h; then 44271 # A CSW package seems to be installed! 44272 CUPS_FOUND=yes 44273 CUPS_CFLAGS="-I$SYSROOT/opt/csw/include" 44274 fi 44275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 44276 $as_echo "$CUPS_FOUND" >&6; } 44277 fi 44278 if test "x$CUPS_FOUND" = xno; then 44279 44280 # Print a helpful message on how to acquire the necessary build dependency. 44281 # cups is the help tag: freetype, cups, pulse, alsa etc 44282 MISSING_DEPENDENCY=cups 44283 44284 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44285 cygwin_help $MISSING_DEPENDENCY 44286 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44287 msys_help $MISSING_DEPENDENCY 44288 else 44289 PKGHANDLER_COMMAND= 44290 44291 case $PKGHANDLER in 44292 apt-get) 44293 apt_help $MISSING_DEPENDENCY ;; 44294 yum) 44295 yum_help $MISSING_DEPENDENCY ;; 44296 port) 44297 port_help $MISSING_DEPENDENCY ;; 44298 pkgutil) 44299 pkgutil_help $MISSING_DEPENDENCY ;; 44300 pkgadd) 44301 pkgadd_help $MISSING_DEPENDENCY ;; 44302 esac 44303 44304 if test "x$PKGHANDLER_COMMAND" != x; then 44305 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44306 fi 44307 fi 44308 44309 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 44310 fi 44311 fi 44312 44313 44314 44315 44316 44317 44318 ############################################################################### 44319 # 44320 # The ubiquitous freetype library is used to render fonts. 44321 # 44322 44323 # Check whether --with-freetype was given. 44324 if test "${with_freetype+set}" = set; then : 44325 withval=$with_freetype; 44326 fi 44327 44328 44329 # Check whether --with-freetype-include was given. 44330 if test "${with_freetype_include+set}" = set; then : 44331 withval=$with_freetype_include; 44332 fi 44333 44334 44335 # Check whether --with-freetype-lib was given. 44336 if test "${with_freetype_lib+set}" = set; then : 44337 withval=$with_freetype_lib; 44338 fi 44339 44340 44341 # Check whether --with-freetype-src was given. 44342 if test "${with_freetype_src+set}" = set; then : 44343 withval=$with_freetype_src; 44344 fi 44345 44346 # Check whether --enable-freetype-bundling was given. 44347 if test "${enable_freetype_bundling+set}" = set; then : 44348 enableval=$enable_freetype_bundling; 44349 fi 44350 44351 44352 FREETYPE_CFLAGS= 44353 FREETYPE_LIBS= 44354 FREETYPE_BUNDLE_LIB_PATH= 44355 44356 if test "x$FREETYPE_NOT_NEEDED" = xyes; then 44357 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x || test "x$with_freetype_src" != x; then 44358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5 44359 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;} 44360 fi 44361 if test "x$enable_freetype_bundling" != x; then 44362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 44363 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 44364 fi 44365 else 44366 # freetype is needed to build; go get it! 44367 44368 BUNDLE_FREETYPE="$enable_freetype_bundling" 44369 44370 if test "x$with_freetype_src" != x; then 44371 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44372 # Try to build freetype if --with-freetype-src was given on Windows 44373 44374 FREETYPE_SRC_PATH="$with_freetype_src" 44375 BUILD_FREETYPE=yes 44376 44377 # Check if the freetype sources are acessible.. 44378 if ! test -d $FREETYPE_SRC_PATH; then 44379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src specified, but can't find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&5 44380 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can't find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 44381 BUILD_FREETYPE=no 44382 fi 44383 # ..and contain a vc2010 project file 44384 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 44385 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 44386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&5 44387 $as_echo "$as_me: WARNING: Can't find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 44388 BUILD_FREETYPE=no 44389 fi 44390 # Now check if configure found a version of 'msbuild.exe' 44391 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 44392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find an msbuild.exe executable (you may try to install .NET 4.0) - ignoring --with-freetype-src" >&5 44393 $as_echo "$as_me: WARNING: Can't find an msbuild.exe executable (you may try to install .NET 4.0) - ignoring --with-freetype-src" >&2;} 44394 BUILD_FREETYPE=no 44395 fi 44396 44397 # Ready to go.. 44398 if test "x$BUILD_FREETYPE" = xyes; then 44399 44400 # msbuild requires trailing slashes for output directories 44401 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 44402 freetype_lib_path_unix="$freetype_lib_path" 44403 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 44404 44405 unix_path="$vcxproj_path" 44406 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44407 windows_path=`$CYGPATH -m "$unix_path"` 44408 vcxproj_path="$windows_path" 44409 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44410 windows_path=`cmd //c echo $unix_path` 44411 vcxproj_path="$windows_path" 44412 fi 44413 44414 44415 unix_path="$freetype_lib_path" 44416 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44417 windows_path=`$CYGPATH -m "$unix_path"` 44418 freetype_lib_path="$windows_path" 44419 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44420 windows_path=`cmd //c echo $unix_path` 44421 freetype_lib_path="$windows_path" 44422 fi 44423 44424 44425 unix_path="$freetype_obj_path" 44426 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44427 windows_path=`$CYGPATH -m "$unix_path"` 44428 freetype_obj_path="$windows_path" 44429 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44430 windows_path=`cmd //c echo $unix_path` 44431 freetype_obj_path="$windows_path" 44432 fi 44433 44434 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 44435 freetype_platform=x64 44436 else 44437 freetype_platform=win32 44438 fi 44439 44440 # The original freetype project file is for VS 2010 (i.e. 'v100'), 44441 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 44442 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 44443 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 44444 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 44445 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 44446 44447 # First we try to build the freetype.dll 44448 $ECHO -e "@echo off\n"\ 44449 "$MSBUILD $vcxproj_path "\ 44450 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 44451 "/p:Configuration=\"Release Multithreaded\" "\ 44452 "/p:Platform=$freetype_platform "\ 44453 "/p:ConfigurationType=DynamicLibrary "\ 44454 "/p:TargetName=freetype "\ 44455 "/p:OutDir=\"$freetype_lib_path\" "\ 44456 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 44457 cmd /c freetype.bat 44458 44459 if test -s "$freetype_lib_path_unix/freetype.dll"; then 44460 # If that succeeds we also build freetype.lib 44461 $ECHO -e "@echo off\n"\ 44462 "$MSBUILD $vcxproj_path "\ 44463 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 44464 "/p:Configuration=\"Release Multithreaded\" "\ 44465 "/p:Platform=$freetype_platform "\ 44466 "/p:ConfigurationType=StaticLibrary "\ 44467 "/p:TargetName=freetype "\ 44468 "/p:OutDir=\"$freetype_lib_path\" "\ 44469 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 44470 cmd /c freetype.bat 44471 44472 if test -s "$freetype_lib_path_unix/freetype.lib"; then 44473 # Once we build both, lib and dll, set freetype lib and include path appropriately 44474 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 44475 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 44476 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 44477 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 44478 else 44479 BUILD_FREETYPE=no 44480 fi 44481 else 44482 BUILD_FREETYPE=no 44483 fi 44484 fi 44485 44486 if test "x$BUILD_FREETYPE" = xyes; then 44487 # Okay, we built it. Check that it works. 44488 44489 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44490 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44491 METHOD="--with-freetype-src" 44492 44493 # First check if the files exists. 44494 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44495 # We found an arbitrary include file. That's a good sign. 44496 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44497 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44498 FOUND_FREETYPE=yes 44499 44500 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44501 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44502 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44503 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44504 FOUND_FREETYPE=no 44505 else 44506 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44507 # On Windows, we will need both .lib and .dll file. 44508 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44509 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44510 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44511 FOUND_FREETYPE=no 44512 fi 44513 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 44514 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44515 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44516 fi 44517 fi 44518 fi 44519 44520 if test "x$FOUND_FREETYPE" = xyes; then 44521 44522 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44523 44524 # Input might be given as Windows format, start by converting to 44525 # unix format. 44526 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44527 new_path=`$CYGPATH -u "$path"` 44528 44529 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44530 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44531 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44532 # "foo.exe" is OK but "foo" is an error. 44533 # 44534 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44535 # It is also a way to make sure we got the proper file name for the real test later on. 44536 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44537 if test "x$test_shortpath" = x; then 44538 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44539 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44540 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44541 fi 44542 44543 # Call helper function which possibly converts this using DOS-style short mode. 44544 # If so, the updated path is stored in $new_path. 44545 44546 input_path="$new_path" 44547 # Check if we need to convert this using DOS-style short mode. If the path 44548 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44549 # take no chances and rewrite it. 44550 # Note: m4 eats our [], so we need to use [ and ] instead. 44551 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44552 if test "x$has_forbidden_chars" != x; then 44553 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44554 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44555 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44556 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44557 # Going to short mode and back again did indeed matter. Since short mode is 44558 # case insensitive, let's make it lowercase to improve readability. 44559 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44560 # Now convert it back to Unix-style (cygpath) 44561 input_path=`$CYGPATH -u "$shortmode_path"` 44562 new_path="$input_path" 44563 fi 44564 fi 44565 44566 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44567 if test "x$test_cygdrive_prefix" = x; then 44568 # As a simple fix, exclude /usr/bin since it's not a real path. 44569 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44570 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44571 # a path prefixed by /cygdrive for fixpath to work. 44572 new_path="$CYGWIN_ROOT_PATH$input_path" 44573 fi 44574 fi 44575 44576 44577 if test "x$path" != "x$new_path"; then 44578 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44579 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44580 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44581 fi 44582 44583 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44584 44585 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44586 has_colon=`$ECHO $path | $GREP ^.:` 44587 new_path="$path" 44588 if test "x$has_colon" = x; then 44589 # Not in mixed or Windows style, start by that. 44590 new_path=`cmd //c echo $path` 44591 fi 44592 44593 44594 input_path="$new_path" 44595 # Check if we need to convert this using DOS-style short mode. If the path 44596 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44597 # take no chances and rewrite it. 44598 # Note: m4 eats our [], so we need to use [ and ] instead. 44599 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44600 if test "x$has_forbidden_chars" != x; then 44601 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44602 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44603 fi 44604 44605 44606 windows_path="$new_path" 44607 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44608 unix_path=`$CYGPATH -u "$windows_path"` 44609 new_path="$unix_path" 44610 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44611 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44612 new_path="$unix_path" 44613 fi 44614 44615 if test "x$path" != "x$new_path"; then 44616 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44617 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44618 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44619 fi 44620 44621 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44622 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44623 44624 else 44625 # We're on a posix platform. Hooray! :) 44626 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44627 has_space=`$ECHO "$path" | $GREP " "` 44628 if test "x$has_space" != x; then 44629 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44630 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44631 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44632 fi 44633 44634 # Use eval to expand a potential ~ 44635 eval path="$path" 44636 if test ! -f "$path" && test ! -d "$path"; then 44637 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44638 fi 44639 44640 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44641 fi 44642 44643 44644 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44645 44646 # Input might be given as Windows format, start by converting to 44647 # unix format. 44648 path="$POTENTIAL_FREETYPE_LIB_PATH" 44649 new_path=`$CYGPATH -u "$path"` 44650 44651 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44652 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44653 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44654 # "foo.exe" is OK but "foo" is an error. 44655 # 44656 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44657 # It is also a way to make sure we got the proper file name for the real test later on. 44658 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44659 if test "x$test_shortpath" = x; then 44660 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44661 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44662 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44663 fi 44664 44665 # Call helper function which possibly converts this using DOS-style short mode. 44666 # If so, the updated path is stored in $new_path. 44667 44668 input_path="$new_path" 44669 # Check if we need to convert this using DOS-style short mode. If the path 44670 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44671 # take no chances and rewrite it. 44672 # Note: m4 eats our [], so we need to use [ and ] instead. 44673 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44674 if test "x$has_forbidden_chars" != x; then 44675 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44676 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44677 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44678 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44679 # Going to short mode and back again did indeed matter. Since short mode is 44680 # case insensitive, let's make it lowercase to improve readability. 44681 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44682 # Now convert it back to Unix-style (cygpath) 44683 input_path=`$CYGPATH -u "$shortmode_path"` 44684 new_path="$input_path" 44685 fi 44686 fi 44687 44688 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44689 if test "x$test_cygdrive_prefix" = x; then 44690 # As a simple fix, exclude /usr/bin since it's not a real path. 44691 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44692 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44693 # a path prefixed by /cygdrive for fixpath to work. 44694 new_path="$CYGWIN_ROOT_PATH$input_path" 44695 fi 44696 fi 44697 44698 44699 if test "x$path" != "x$new_path"; then 44700 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44701 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44702 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44703 fi 44704 44705 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44706 44707 path="$POTENTIAL_FREETYPE_LIB_PATH" 44708 has_colon=`$ECHO $path | $GREP ^.:` 44709 new_path="$path" 44710 if test "x$has_colon" = x; then 44711 # Not in mixed or Windows style, start by that. 44712 new_path=`cmd //c echo $path` 44713 fi 44714 44715 44716 input_path="$new_path" 44717 # Check if we need to convert this using DOS-style short mode. If the path 44718 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44719 # take no chances and rewrite it. 44720 # Note: m4 eats our [], so we need to use [ and ] instead. 44721 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44722 if test "x$has_forbidden_chars" != x; then 44723 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44724 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44725 fi 44726 44727 44728 windows_path="$new_path" 44729 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44730 unix_path=`$CYGPATH -u "$windows_path"` 44731 new_path="$unix_path" 44732 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44733 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44734 new_path="$unix_path" 44735 fi 44736 44737 if test "x$path" != "x$new_path"; then 44738 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44739 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44740 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44741 fi 44742 44743 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44744 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44745 44746 else 44747 # We're on a posix platform. Hooray! :) 44748 path="$POTENTIAL_FREETYPE_LIB_PATH" 44749 has_space=`$ECHO "$path" | $GREP " "` 44750 if test "x$has_space" != x; then 44751 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44752 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44753 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44754 fi 44755 44756 # Use eval to expand a potential ~ 44757 eval path="$path" 44758 if test ! -f "$path" && test ! -d "$path"; then 44759 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44760 fi 44761 44762 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44763 fi 44764 44765 44766 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44768 $as_echo_n "checking for freetype includes... " >&6; } 44769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44770 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44771 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44773 $as_echo_n "checking for freetype libraries... " >&6; } 44774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44775 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44776 fi 44777 44778 if test "x$FOUND_FREETYPE" != xyes; then 44779 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 44780 fi 44781 else 44782 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 44783 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 44784 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 44785 fi 44786 else 44787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 44788 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 44789 fi 44790 fi 44791 44792 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 44793 # User has specified settings 44794 44795 if test "x$BUNDLE_FREETYPE" = x; then 44796 # If not specified, default is to bundle freetype 44797 BUNDLE_FREETYPE=yes 44798 fi 44799 44800 if test "x$with_freetype" != x; then 44801 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 44802 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 44803 fi 44804 44805 # Allow --with-freetype-lib and --with-freetype-include to override 44806 if test "x$with_freetype_include" != x; then 44807 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 44808 fi 44809 if test "x$with_freetype_lib" != x; then 44810 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 44811 fi 44812 44813 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 44814 # Okay, we got it. Check that it works. 44815 44816 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44817 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44818 METHOD="--with-freetype" 44819 44820 # First check if the files exists. 44821 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44822 # We found an arbitrary include file. That's a good sign. 44823 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44824 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44825 FOUND_FREETYPE=yes 44826 44827 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44828 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44829 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44830 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44831 FOUND_FREETYPE=no 44832 else 44833 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44834 # On Windows, we will need both .lib and .dll file. 44835 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44836 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44837 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44838 FOUND_FREETYPE=no 44839 fi 44840 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 44841 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44842 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44843 fi 44844 fi 44845 fi 44846 44847 if test "x$FOUND_FREETYPE" = xyes; then 44848 44849 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44850 44851 # Input might be given as Windows format, start by converting to 44852 # unix format. 44853 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44854 new_path=`$CYGPATH -u "$path"` 44855 44856 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44857 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44858 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44859 # "foo.exe" is OK but "foo" is an error. 44860 # 44861 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44862 # It is also a way to make sure we got the proper file name for the real test later on. 44863 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44864 if test "x$test_shortpath" = x; then 44865 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44866 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44867 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44868 fi 44869 44870 # Call helper function which possibly converts this using DOS-style short mode. 44871 # If so, the updated path is stored in $new_path. 44872 44873 input_path="$new_path" 44874 # Check if we need to convert this using DOS-style short mode. If the path 44875 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44876 # take no chances and rewrite it. 44877 # Note: m4 eats our [], so we need to use [ and ] instead. 44878 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44879 if test "x$has_forbidden_chars" != x; then 44880 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44881 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44882 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44883 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44884 # Going to short mode and back again did indeed matter. Since short mode is 44885 # case insensitive, let's make it lowercase to improve readability. 44886 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44887 # Now convert it back to Unix-style (cygpath) 44888 input_path=`$CYGPATH -u "$shortmode_path"` 44889 new_path="$input_path" 44890 fi 44891 fi 44892 44893 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44894 if test "x$test_cygdrive_prefix" = x; then 44895 # As a simple fix, exclude /usr/bin since it's not a real path. 44896 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44897 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44898 # a path prefixed by /cygdrive for fixpath to work. 44899 new_path="$CYGWIN_ROOT_PATH$input_path" 44900 fi 44901 fi 44902 44903 44904 if test "x$path" != "x$new_path"; then 44905 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44906 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44907 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44908 fi 44909 44910 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44911 44912 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44913 has_colon=`$ECHO $path | $GREP ^.:` 44914 new_path="$path" 44915 if test "x$has_colon" = x; then 44916 # Not in mixed or Windows style, start by that. 44917 new_path=`cmd //c echo $path` 44918 fi 44919 44920 44921 input_path="$new_path" 44922 # Check if we need to convert this using DOS-style short mode. If the path 44923 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44924 # take no chances and rewrite it. 44925 # Note: m4 eats our [], so we need to use [ and ] instead. 44926 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44927 if test "x$has_forbidden_chars" != x; then 44928 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44929 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44930 fi 44931 44932 44933 windows_path="$new_path" 44934 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44935 unix_path=`$CYGPATH -u "$windows_path"` 44936 new_path="$unix_path" 44937 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44938 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44939 new_path="$unix_path" 44940 fi 44941 44942 if test "x$path" != "x$new_path"; then 44943 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44944 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44945 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44946 fi 44947 44948 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44949 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44950 44951 else 44952 # We're on a posix platform. Hooray! :) 44953 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44954 has_space=`$ECHO "$path" | $GREP " "` 44955 if test "x$has_space" != x; then 44956 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44957 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44958 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44959 fi 44960 44961 # Use eval to expand a potential ~ 44962 eval path="$path" 44963 if test ! -f "$path" && test ! -d "$path"; then 44964 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44965 fi 44966 44967 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44968 fi 44969 44970 44971 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44972 44973 # Input might be given as Windows format, start by converting to 44974 # unix format. 44975 path="$POTENTIAL_FREETYPE_LIB_PATH" 44976 new_path=`$CYGPATH -u "$path"` 44977 44978 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44979 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44980 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44981 # "foo.exe" is OK but "foo" is an error. 44982 # 44983 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44984 # It is also a way to make sure we got the proper file name for the real test later on. 44985 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44986 if test "x$test_shortpath" = x; then 44987 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44988 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44989 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44990 fi 44991 44992 # Call helper function which possibly converts this using DOS-style short mode. 44993 # If so, the updated path is stored in $new_path. 44994 44995 input_path="$new_path" 44996 # Check if we need to convert this using DOS-style short mode. If the path 44997 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44998 # take no chances and rewrite it. 44999 # Note: m4 eats our [], so we need to use [ and ] instead. 45000 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45001 if test "x$has_forbidden_chars" != x; then 45002 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45003 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45004 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45005 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45006 # Going to short mode and back again did indeed matter. Since short mode is 45007 # case insensitive, let's make it lowercase to improve readability. 45008 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45009 # Now convert it back to Unix-style (cygpath) 45010 input_path=`$CYGPATH -u "$shortmode_path"` 45011 new_path="$input_path" 45012 fi 45013 fi 45014 45015 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45016 if test "x$test_cygdrive_prefix" = x; then 45017 # As a simple fix, exclude /usr/bin since it's not a real path. 45018 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45019 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45020 # a path prefixed by /cygdrive for fixpath to work. 45021 new_path="$CYGWIN_ROOT_PATH$input_path" 45022 fi 45023 fi 45024 45025 45026 if test "x$path" != "x$new_path"; then 45027 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45028 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45029 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45030 fi 45031 45032 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45033 45034 path="$POTENTIAL_FREETYPE_LIB_PATH" 45035 has_colon=`$ECHO $path | $GREP ^.:` 45036 new_path="$path" 45037 if test "x$has_colon" = x; then 45038 # Not in mixed or Windows style, start by that. 45039 new_path=`cmd //c echo $path` 45040 fi 45041 45042 45043 input_path="$new_path" 45044 # Check if we need to convert this using DOS-style short mode. If the path 45045 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45046 # take no chances and rewrite it. 45047 # Note: m4 eats our [], so we need to use [ and ] instead. 45048 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45049 if test "x$has_forbidden_chars" != x; then 45050 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45051 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45052 fi 45053 45054 45055 windows_path="$new_path" 45056 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45057 unix_path=`$CYGPATH -u "$windows_path"` 45058 new_path="$unix_path" 45059 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45060 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45061 new_path="$unix_path" 45062 fi 45063 45064 if test "x$path" != "x$new_path"; then 45065 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45066 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45067 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45068 fi 45069 45070 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45071 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45072 45073 else 45074 # We're on a posix platform. Hooray! :) 45075 path="$POTENTIAL_FREETYPE_LIB_PATH" 45076 has_space=`$ECHO "$path" | $GREP " "` 45077 if test "x$has_space" != x; then 45078 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45079 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45080 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45081 fi 45082 45083 # Use eval to expand a potential ~ 45084 eval path="$path" 45085 if test ! -f "$path" && test ! -d "$path"; then 45086 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45087 fi 45088 45089 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45090 fi 45091 45092 45093 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45095 $as_echo_n "checking for freetype includes... " >&6; } 45096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45097 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45098 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45100 $as_echo_n "checking for freetype libraries... " >&6; } 45101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45102 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45103 fi 45104 45105 if test "x$FOUND_FREETYPE" != xyes; then 45106 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 45107 fi 45108 else 45109 # User specified only one of lib or include. This is an error. 45110 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 45111 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 45112 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 45113 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 45114 else 45115 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 45116 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 45117 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 45118 fi 45119 fi 45120 else 45121 # User did not specify settings, but we need freetype. Try to locate it. 45122 45123 if test "x$BUNDLE_FREETYPE" = x; then 45124 # If not specified, default is to bundle freetype only on windows 45125 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45126 BUNDLE_FREETYPE=yes 45127 else 45128 BUNDLE_FREETYPE=no 45129 fi 45130 fi 45131 45132 if test "x$FOUND_FREETYPE" != xyes; then 45133 # Check builddeps 45134 45135 45136 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 45137 # Source the builddeps file again, to make sure it uses the latest variables! 45138 . $builddepsfile 45139 # Look for a target and build machine specific resource! 45140 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 45141 if test "x$resource" = x; then 45142 # Ok, lets instead look for a target specific resource 45143 eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}} 45144 fi 45145 if test "x$resource" = x; then 45146 # Ok, lets instead look for a build specific resource 45147 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}} 45148 fi 45149 if test "x$resource" = x; then 45150 # Ok, lets instead look for a generic resource 45151 # (The freetype2 comes from M4 and not the shell, thus no need for eval here.) 45152 resource=${builddep_freetype2} 45153 fi 45154 if test "x$resource" != x; then 45155 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5 45156 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;} 45157 # If the resource in the builddeps.conf file is an existing directory, 45158 # for example /java/linux/cups 45159 if test -d ${resource}; then 45160 depdir=${resource} 45161 else 45162 45163 # freetype2 is for example mymodule 45164 # $resource is for example libs/general/libmymod_1_2_3.zip 45165 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 45166 # $with_builddeps_dir is for example /localhome/builddeps 45167 # depdir is the name of the variable into which we store the depdir, eg MYMOD 45168 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 45169 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 45170 filename=`basename $resource` 45171 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 45172 filebase=${filename%%.*} 45173 extension=${filename#*.} 45174 installdir=$with_builddeps_dir/$filebase 45175 if test ! -f $installdir/$filename.unpacked; then 45176 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5 45177 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;} 45178 if test ! -d $installdir; then 45179 mkdir -p $installdir 45180 fi 45181 if test ! -d $installdir; then 45182 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 45183 fi 45184 tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX` 45185 touch $tmpfile 45186 if test ! -f $tmpfile; then 45187 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 45188 fi 45189 45190 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 45191 # $tmpfile is the local file name for the downloaded file. 45192 VALID_TOOL=no 45193 if test "x$BDEPS_FTP" = xwget; then 45194 VALID_TOOL=yes 45195 wget -O $tmpfile $with_builddeps_server/$resource 45196 fi 45197 if test "x$BDEPS_FTP" = xlftp; then 45198 VALID_TOOL=yes 45199 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 45200 fi 45201 if test "x$BDEPS_FTP" = xftp; then 45202 VALID_TOOL=yes 45203 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 45204 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 45205 FTPUSERPWD=${FTPSERVER%%@*} 45206 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 45207 FTPUSER=${userpwd%%:*} 45208 FTPPWD=${userpwd#*@} 45209 FTPSERVER=${FTPSERVER#*@} 45210 else 45211 FTPUSER=ftp 45212 FTPPWD=ftp 45213 fi 45214 # the "pass" command does not work on some 45215 # ftp clients (read ftp.exe) but if it works, 45216 # passive mode is better! 45217 ( \ 45218 echo "user $FTPUSER $FTPPWD" ; \ 45219 echo "pass" ; \ 45220 echo "bin" ; \ 45221 echo "get $FTPPATH $tmpfile" ; \ 45222 ) | ftp -in $FTPSERVER 45223 fi 45224 if test "x$VALID_TOOL" != xyes; then 45225 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 45226 fi 45227 45228 mv $tmpfile $installdir/$filename 45229 if test ! -s $installdir/$filename; then 45230 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 45231 fi 45232 case "$extension" in 45233 zip) echo "Unzipping $installdir/$filename..." 45234 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 45235 ;; 45236 tar.gz) echo "Untaring $installdir/$filename..." 45237 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 45238 ;; 45239 tgz) echo "Untaring $installdir/$filename..." 45240 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 45241 ;; 45242 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 45243 ;; 45244 esac 45245 fi 45246 if test -f $installdir/$filename.unpacked; then 45247 depdir=$installdir 45248 fi 45249 45250 fi 45251 # Source the builddeps file again, because in the previous command, the depdir 45252 # was updated to point at the current build dependency install directory. 45253 . $builddepsfile 45254 # Now extract variables from the builddeps.conf files. 45255 theroot=${builddep_freetype2_ROOT} 45256 thecflags=${builddep_freetype2_CFLAGS} 45257 thelibs=${builddep_freetype2_LIBS} 45258 if test "x$depdir" = x; then 45259 as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5 45260 fi 45261 FREETYPE=$depdir 45262 if test "x$theroot" != x; then 45263 FREETYPE="$theroot" 45264 fi 45265 if test "x$thecflags" != x; then 45266 FREETYPE_CFLAGS="$thecflags" 45267 fi 45268 if test "x$thelibs" != x; then 45269 FREETYPE_LIBS="$thelibs" 45270 fi 45271 FOUND_FREETYPE=yes 45272 else FOUND_FREETYPE=no 45273 45274 fi 45275 else FOUND_FREETYPE=no 45276 45277 fi 45278 45279 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 45280 if test "x$FOUND_FREETYPE" = xyes; then 45281 if test "x$BUNDLE_FREETYPE" = xyes; then 45282 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using builddeps, but ignoring since we can not bundle that" >&5 45283 $as_echo "$as_me: Found freetype using builddeps, but ignoring since we can not bundle that" >&6;} 45284 FOUND_FREETYPE=no 45285 else 45286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 45287 $as_echo_n "checking for freetype... " >&6; } 45288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using builddeps)" >&5 45289 $as_echo "yes (using builddeps)" >&6; } 45290 fi 45291 fi 45292 fi 45293 45294 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 45295 if test "x$SYSROOT" = x; then 45296 if test "x$FOUND_FREETYPE" != xyes; then 45297 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 45298 if test "x$PKG_CONFIG" != x; then 45299 45300 pkg_failed=no 45301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 45302 $as_echo_n "checking for FREETYPE... " >&6; } 45303 45304 if test -n "$FREETYPE_CFLAGS"; then 45305 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 45306 elif test -n "$PKG_CONFIG"; then 45307 if test -n "$PKG_CONFIG" && \ 45308 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 45309 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 45310 ac_status=$? 45311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45312 test $ac_status = 0; }; then 45313 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 45314 else 45315 pkg_failed=yes 45316 fi 45317 else 45318 pkg_failed=untried 45319 fi 45320 if test -n "$FREETYPE_LIBS"; then 45321 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 45322 elif test -n "$PKG_CONFIG"; then 45323 if test -n "$PKG_CONFIG" && \ 45324 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 45325 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 45326 ac_status=$? 45327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45328 test $ac_status = 0; }; then 45329 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 45330 else 45331 pkg_failed=yes 45332 fi 45333 else 45334 pkg_failed=untried 45335 fi 45336 45337 45338 45339 if test $pkg_failed = yes; then 45340 45341 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 45342 _pkg_short_errors_supported=yes 45343 else 45344 _pkg_short_errors_supported=no 45345 fi 45346 if test $_pkg_short_errors_supported = yes; then 45347 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 45348 else 45349 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 45350 fi 45351 # Put the nasty error message in config.log where it belongs 45352 echo "$FREETYPE_PKG_ERRORS" >&5 45353 45354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45355 $as_echo "no" >&6; } 45356 FOUND_FREETYPE=no 45357 elif test $pkg_failed = untried; then 45358 FOUND_FREETYPE=no 45359 else 45360 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 45361 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 45362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45363 $as_echo "yes" >&6; } 45364 FOUND_FREETYPE=yes 45365 fi 45366 if test "x$FOUND_FREETYPE" = xyes; then 45367 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 45368 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 45369 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 45370 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 45371 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 45372 fi 45373 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 45374 if test "x$BUNDLE_FREETYPE" = xyes; then 45375 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 45376 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 45377 FOUND_FREETYPE=no 45378 else 45379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 45380 $as_echo_n "checking for freetype... " >&6; } 45381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 45382 $as_echo "yes (using pkg-config)" >&6; } 45383 fi 45384 fi 45385 fi 45386 fi 45387 fi 45388 45389 if test "x$FOUND_FREETYPE" != xyes; then 45390 # Check in well-known locations 45391 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45392 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 45393 45394 windows_path="$FREETYPE_BASE_DIR" 45395 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45396 unix_path=`$CYGPATH -u "$windows_path"` 45397 FREETYPE_BASE_DIR="$unix_path" 45398 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45399 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45400 FREETYPE_BASE_DIR="$unix_path" 45401 fi 45402 45403 45404 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45405 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45406 METHOD="well-known location" 45407 45408 # First check if the files exists. 45409 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45410 # We found an arbitrary include file. That's a good sign. 45411 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45412 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45413 FOUND_FREETYPE=yes 45414 45415 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45416 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45417 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45418 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45419 FOUND_FREETYPE=no 45420 else 45421 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45422 # On Windows, we will need both .lib and .dll file. 45423 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45424 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45425 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45426 FOUND_FREETYPE=no 45427 fi 45428 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 45429 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 45430 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 45431 fi 45432 fi 45433 fi 45434 45435 if test "x$FOUND_FREETYPE" = xyes; then 45436 45437 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45438 45439 # Input might be given as Windows format, start by converting to 45440 # unix format. 45441 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45442 new_path=`$CYGPATH -u "$path"` 45443 45444 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45445 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45446 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45447 # "foo.exe" is OK but "foo" is an error. 45448 # 45449 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45450 # It is also a way to make sure we got the proper file name for the real test later on. 45451 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45452 if test "x$test_shortpath" = x; then 45453 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45454 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45455 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45456 fi 45457 45458 # Call helper function which possibly converts this using DOS-style short mode. 45459 # If so, the updated path is stored in $new_path. 45460 45461 input_path="$new_path" 45462 # Check if we need to convert this using DOS-style short mode. If the path 45463 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45464 # take no chances and rewrite it. 45465 # Note: m4 eats our [], so we need to use [ and ] instead. 45466 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45467 if test "x$has_forbidden_chars" != x; then 45468 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45469 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45470 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45471 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45472 # Going to short mode and back again did indeed matter. Since short mode is 45473 # case insensitive, let's make it lowercase to improve readability. 45474 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45475 # Now convert it back to Unix-style (cygpath) 45476 input_path=`$CYGPATH -u "$shortmode_path"` 45477 new_path="$input_path" 45478 fi 45479 fi 45480 45481 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45482 if test "x$test_cygdrive_prefix" = x; then 45483 # As a simple fix, exclude /usr/bin since it's not a real path. 45484 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45485 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45486 # a path prefixed by /cygdrive for fixpath to work. 45487 new_path="$CYGWIN_ROOT_PATH$input_path" 45488 fi 45489 fi 45490 45491 45492 if test "x$path" != "x$new_path"; then 45493 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45494 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45495 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45496 fi 45497 45498 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45499 45500 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45501 has_colon=`$ECHO $path | $GREP ^.:` 45502 new_path="$path" 45503 if test "x$has_colon" = x; then 45504 # Not in mixed or Windows style, start by that. 45505 new_path=`cmd //c echo $path` 45506 fi 45507 45508 45509 input_path="$new_path" 45510 # Check if we need to convert this using DOS-style short mode. If the path 45511 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45512 # take no chances and rewrite it. 45513 # Note: m4 eats our [], so we need to use [ and ] instead. 45514 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45515 if test "x$has_forbidden_chars" != x; then 45516 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45517 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45518 fi 45519 45520 45521 windows_path="$new_path" 45522 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45523 unix_path=`$CYGPATH -u "$windows_path"` 45524 new_path="$unix_path" 45525 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45526 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45527 new_path="$unix_path" 45528 fi 45529 45530 if test "x$path" != "x$new_path"; then 45531 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45532 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45533 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45534 fi 45535 45536 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45537 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45538 45539 else 45540 # We're on a posix platform. Hooray! :) 45541 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45542 has_space=`$ECHO "$path" | $GREP " "` 45543 if test "x$has_space" != x; then 45544 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45545 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45546 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45547 fi 45548 45549 # Use eval to expand a potential ~ 45550 eval path="$path" 45551 if test ! -f "$path" && test ! -d "$path"; then 45552 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45553 fi 45554 45555 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45556 fi 45557 45558 45559 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45560 45561 # Input might be given as Windows format, start by converting to 45562 # unix format. 45563 path="$POTENTIAL_FREETYPE_LIB_PATH" 45564 new_path=`$CYGPATH -u "$path"` 45565 45566 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45567 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45568 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45569 # "foo.exe" is OK but "foo" is an error. 45570 # 45571 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45572 # It is also a way to make sure we got the proper file name for the real test later on. 45573 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45574 if test "x$test_shortpath" = x; then 45575 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45576 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45577 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45578 fi 45579 45580 # Call helper function which possibly converts this using DOS-style short mode. 45581 # If so, the updated path is stored in $new_path. 45582 45583 input_path="$new_path" 45584 # Check if we need to convert this using DOS-style short mode. If the path 45585 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45586 # take no chances and rewrite it. 45587 # Note: m4 eats our [], so we need to use [ and ] instead. 45588 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45589 if test "x$has_forbidden_chars" != x; then 45590 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45591 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45592 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45593 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45594 # Going to short mode and back again did indeed matter. Since short mode is 45595 # case insensitive, let's make it lowercase to improve readability. 45596 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45597 # Now convert it back to Unix-style (cygpath) 45598 input_path=`$CYGPATH -u "$shortmode_path"` 45599 new_path="$input_path" 45600 fi 45601 fi 45602 45603 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45604 if test "x$test_cygdrive_prefix" = x; then 45605 # As a simple fix, exclude /usr/bin since it's not a real path. 45606 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45607 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45608 # a path prefixed by /cygdrive for fixpath to work. 45609 new_path="$CYGWIN_ROOT_PATH$input_path" 45610 fi 45611 fi 45612 45613 45614 if test "x$path" != "x$new_path"; then 45615 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45616 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45617 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45618 fi 45619 45620 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45621 45622 path="$POTENTIAL_FREETYPE_LIB_PATH" 45623 has_colon=`$ECHO $path | $GREP ^.:` 45624 new_path="$path" 45625 if test "x$has_colon" = x; then 45626 # Not in mixed or Windows style, start by that. 45627 new_path=`cmd //c echo $path` 45628 fi 45629 45630 45631 input_path="$new_path" 45632 # Check if we need to convert this using DOS-style short mode. If the path 45633 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45634 # take no chances and rewrite it. 45635 # Note: m4 eats our [], so we need to use [ and ] instead. 45636 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45637 if test "x$has_forbidden_chars" != x; then 45638 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45639 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45640 fi 45641 45642 45643 windows_path="$new_path" 45644 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45645 unix_path=`$CYGPATH -u "$windows_path"` 45646 new_path="$unix_path" 45647 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45648 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45649 new_path="$unix_path" 45650 fi 45651 45652 if test "x$path" != "x$new_path"; then 45653 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45654 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45655 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45656 fi 45657 45658 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45659 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45660 45661 else 45662 # We're on a posix platform. Hooray! :) 45663 path="$POTENTIAL_FREETYPE_LIB_PATH" 45664 has_space=`$ECHO "$path" | $GREP " "` 45665 if test "x$has_space" != x; then 45666 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45667 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45668 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45669 fi 45670 45671 # Use eval to expand a potential ~ 45672 eval path="$path" 45673 if test ! -f "$path" && test ! -d "$path"; then 45674 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45675 fi 45676 45677 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45678 fi 45679 45680 45681 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45683 $as_echo_n "checking for freetype includes... " >&6; } 45684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45685 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45686 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45688 $as_echo_n "checking for freetype libraries... " >&6; } 45689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45690 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45691 fi 45692 45693 if test "x$FOUND_FREETYPE" != xyes; then 45694 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 45695 45696 windows_path="$FREETYPE_BASE_DIR" 45697 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45698 unix_path=`$CYGPATH -u "$windows_path"` 45699 FREETYPE_BASE_DIR="$unix_path" 45700 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45701 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45702 FREETYPE_BASE_DIR="$unix_path" 45703 fi 45704 45705 45706 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45707 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45708 METHOD="well-known location" 45709 45710 # First check if the files exists. 45711 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45712 # We found an arbitrary include file. That's a good sign. 45713 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45714 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45715 FOUND_FREETYPE=yes 45716 45717 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45718 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45719 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45720 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45721 FOUND_FREETYPE=no 45722 else 45723 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45724 # On Windows, we will need both .lib and .dll file. 45725 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45726 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45727 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45728 FOUND_FREETYPE=no 45729 fi 45730 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 45731 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 45732 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 45733 fi 45734 fi 45735 fi 45736 45737 if test "x$FOUND_FREETYPE" = xyes; then 45738 45739 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45740 45741 # Input might be given as Windows format, start by converting to 45742 # unix format. 45743 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45744 new_path=`$CYGPATH -u "$path"` 45745 45746 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45747 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45748 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45749 # "foo.exe" is OK but "foo" is an error. 45750 # 45751 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45752 # It is also a way to make sure we got the proper file name for the real test later on. 45753 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45754 if test "x$test_shortpath" = x; then 45755 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45756 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45757 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45758 fi 45759 45760 # Call helper function which possibly converts this using DOS-style short mode. 45761 # If so, the updated path is stored in $new_path. 45762 45763 input_path="$new_path" 45764 # Check if we need to convert this using DOS-style short mode. If the path 45765 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45766 # take no chances and rewrite it. 45767 # Note: m4 eats our [], so we need to use [ and ] instead. 45768 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45769 if test "x$has_forbidden_chars" != x; then 45770 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45771 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45772 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45773 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45774 # Going to short mode and back again did indeed matter. Since short mode is 45775 # case insensitive, let's make it lowercase to improve readability. 45776 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45777 # Now convert it back to Unix-style (cygpath) 45778 input_path=`$CYGPATH -u "$shortmode_path"` 45779 new_path="$input_path" 45780 fi 45781 fi 45782 45783 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45784 if test "x$test_cygdrive_prefix" = x; then 45785 # As a simple fix, exclude /usr/bin since it's not a real path. 45786 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45787 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45788 # a path prefixed by /cygdrive for fixpath to work. 45789 new_path="$CYGWIN_ROOT_PATH$input_path" 45790 fi 45791 fi 45792 45793 45794 if test "x$path" != "x$new_path"; then 45795 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45796 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45797 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45798 fi 45799 45800 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45801 45802 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45803 has_colon=`$ECHO $path | $GREP ^.:` 45804 new_path="$path" 45805 if test "x$has_colon" = x; then 45806 # Not in mixed or Windows style, start by that. 45807 new_path=`cmd //c echo $path` 45808 fi 45809 45810 45811 input_path="$new_path" 45812 # Check if we need to convert this using DOS-style short mode. If the path 45813 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45814 # take no chances and rewrite it. 45815 # Note: m4 eats our [], so we need to use [ and ] instead. 45816 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45817 if test "x$has_forbidden_chars" != x; then 45818 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45819 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45820 fi 45821 45822 45823 windows_path="$new_path" 45824 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45825 unix_path=`$CYGPATH -u "$windows_path"` 45826 new_path="$unix_path" 45827 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45828 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45829 new_path="$unix_path" 45830 fi 45831 45832 if test "x$path" != "x$new_path"; then 45833 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45834 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45835 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45836 fi 45837 45838 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45839 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45840 45841 else 45842 # We're on a posix platform. Hooray! :) 45843 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45844 has_space=`$ECHO "$path" | $GREP " "` 45845 if test "x$has_space" != x; then 45846 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45847 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45848 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45849 fi 45850 45851 # Use eval to expand a potential ~ 45852 eval path="$path" 45853 if test ! -f "$path" && test ! -d "$path"; then 45854 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45855 fi 45856 45857 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45858 fi 45859 45860 45861 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45862 45863 # Input might be given as Windows format, start by converting to 45864 # unix format. 45865 path="$POTENTIAL_FREETYPE_LIB_PATH" 45866 new_path=`$CYGPATH -u "$path"` 45867 45868 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45869 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45870 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45871 # "foo.exe" is OK but "foo" is an error. 45872 # 45873 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45874 # It is also a way to make sure we got the proper file name for the real test later on. 45875 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45876 if test "x$test_shortpath" = x; then 45877 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45878 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45879 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45880 fi 45881 45882 # Call helper function which possibly converts this using DOS-style short mode. 45883 # If so, the updated path is stored in $new_path. 45884 45885 input_path="$new_path" 45886 # Check if we need to convert this using DOS-style short mode. If the path 45887 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45888 # take no chances and rewrite it. 45889 # Note: m4 eats our [], so we need to use [ and ] instead. 45890 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45891 if test "x$has_forbidden_chars" != x; then 45892 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45893 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45894 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45895 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45896 # Going to short mode and back again did indeed matter. Since short mode is 45897 # case insensitive, let's make it lowercase to improve readability. 45898 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45899 # Now convert it back to Unix-style (cygpath) 45900 input_path=`$CYGPATH -u "$shortmode_path"` 45901 new_path="$input_path" 45902 fi 45903 fi 45904 45905 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45906 if test "x$test_cygdrive_prefix" = x; then 45907 # As a simple fix, exclude /usr/bin since it's not a real path. 45908 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45909 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45910 # a path prefixed by /cygdrive for fixpath to work. 45911 new_path="$CYGWIN_ROOT_PATH$input_path" 45912 fi 45913 fi 45914 45915 45916 if test "x$path" != "x$new_path"; then 45917 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45918 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45919 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45920 fi 45921 45922 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45923 45924 path="$POTENTIAL_FREETYPE_LIB_PATH" 45925 has_colon=`$ECHO $path | $GREP ^.:` 45926 new_path="$path" 45927 if test "x$has_colon" = x; then 45928 # Not in mixed or Windows style, start by that. 45929 new_path=`cmd //c echo $path` 45930 fi 45931 45932 45933 input_path="$new_path" 45934 # Check if we need to convert this using DOS-style short mode. If the path 45935 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45936 # take no chances and rewrite it. 45937 # Note: m4 eats our [], so we need to use [ and ] instead. 45938 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45939 if test "x$has_forbidden_chars" != x; then 45940 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45941 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45942 fi 45943 45944 45945 windows_path="$new_path" 45946 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45947 unix_path=`$CYGPATH -u "$windows_path"` 45948 new_path="$unix_path" 45949 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45950 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45951 new_path="$unix_path" 45952 fi 45953 45954 if test "x$path" != "x$new_path"; then 45955 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45956 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45957 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45958 fi 45959 45960 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45961 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45962 45963 else 45964 # We're on a posix platform. Hooray! :) 45965 path="$POTENTIAL_FREETYPE_LIB_PATH" 45966 has_space=`$ECHO "$path" | $GREP " "` 45967 if test "x$has_space" != x; then 45968 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45969 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45970 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45971 fi 45972 45973 # Use eval to expand a potential ~ 45974 eval path="$path" 45975 if test ! -f "$path" && test ! -d "$path"; then 45976 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45977 fi 45978 45979 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45980 fi 45981 45982 45983 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45985 $as_echo_n "checking for freetype includes... " >&6; } 45986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45987 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45988 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45990 $as_echo_n "checking for freetype libraries... " >&6; } 45991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45992 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45993 fi 45994 45995 fi 45996 else 45997 FREETYPE_BASE_DIR="$SYSROOT/usr" 45998 45999 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46000 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46001 METHOD="well-known location" 46002 46003 # First check if the files exists. 46004 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46005 # We found an arbitrary include file. That's a good sign. 46006 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46007 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46008 FOUND_FREETYPE=yes 46009 46010 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 46011 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46012 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46013 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46014 FOUND_FREETYPE=no 46015 else 46016 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46017 # On Windows, we will need both .lib and .dll file. 46018 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 46019 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 46020 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 46021 FOUND_FREETYPE=no 46022 fi 46023 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 46024 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 46025 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 46026 fi 46027 fi 46028 fi 46029 46030 if test "x$FOUND_FREETYPE" = xyes; then 46031 46032 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46033 46034 # Input might be given as Windows format, start by converting to 46035 # unix format. 46036 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46037 new_path=`$CYGPATH -u "$path"` 46038 46039 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46040 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46041 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46042 # "foo.exe" is OK but "foo" is an error. 46043 # 46044 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46045 # It is also a way to make sure we got the proper file name for the real test later on. 46046 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46047 if test "x$test_shortpath" = x; then 46048 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46049 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46050 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46051 fi 46052 46053 # Call helper function which possibly converts this using DOS-style short mode. 46054 # If so, the updated path is stored in $new_path. 46055 46056 input_path="$new_path" 46057 # Check if we need to convert this using DOS-style short mode. If the path 46058 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46059 # take no chances and rewrite it. 46060 # Note: m4 eats our [], so we need to use [ and ] instead. 46061 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46062 if test "x$has_forbidden_chars" != x; then 46063 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46064 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46065 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46066 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46067 # Going to short mode and back again did indeed matter. Since short mode is 46068 # case insensitive, let's make it lowercase to improve readability. 46069 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46070 # Now convert it back to Unix-style (cygpath) 46071 input_path=`$CYGPATH -u "$shortmode_path"` 46072 new_path="$input_path" 46073 fi 46074 fi 46075 46076 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46077 if test "x$test_cygdrive_prefix" = x; then 46078 # As a simple fix, exclude /usr/bin since it's not a real path. 46079 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46080 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46081 # a path prefixed by /cygdrive for fixpath to work. 46082 new_path="$CYGWIN_ROOT_PATH$input_path" 46083 fi 46084 fi 46085 46086 46087 if test "x$path" != "x$new_path"; then 46088 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46089 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46090 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46091 fi 46092 46093 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46094 46095 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46096 has_colon=`$ECHO $path | $GREP ^.:` 46097 new_path="$path" 46098 if test "x$has_colon" = x; then 46099 # Not in mixed or Windows style, start by that. 46100 new_path=`cmd //c echo $path` 46101 fi 46102 46103 46104 input_path="$new_path" 46105 # Check if we need to convert this using DOS-style short mode. If the path 46106 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46107 # take no chances and rewrite it. 46108 # Note: m4 eats our [], so we need to use [ and ] instead. 46109 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46110 if test "x$has_forbidden_chars" != x; then 46111 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46112 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46113 fi 46114 46115 46116 windows_path="$new_path" 46117 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46118 unix_path=`$CYGPATH -u "$windows_path"` 46119 new_path="$unix_path" 46120 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46121 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46122 new_path="$unix_path" 46123 fi 46124 46125 if test "x$path" != "x$new_path"; then 46126 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46127 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46128 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46129 fi 46130 46131 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46132 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46133 46134 else 46135 # We're on a posix platform. Hooray! :) 46136 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46137 has_space=`$ECHO "$path" | $GREP " "` 46138 if test "x$has_space" != x; then 46139 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46140 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46141 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46142 fi 46143 46144 # Use eval to expand a potential ~ 46145 eval path="$path" 46146 if test ! -f "$path" && test ! -d "$path"; then 46147 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46148 fi 46149 46150 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46151 fi 46152 46153 46154 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46155 46156 # Input might be given as Windows format, start by converting to 46157 # unix format. 46158 path="$POTENTIAL_FREETYPE_LIB_PATH" 46159 new_path=`$CYGPATH -u "$path"` 46160 46161 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46162 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46163 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46164 # "foo.exe" is OK but "foo" is an error. 46165 # 46166 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46167 # It is also a way to make sure we got the proper file name for the real test later on. 46168 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46169 if test "x$test_shortpath" = x; then 46170 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46171 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46172 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46173 fi 46174 46175 # Call helper function which possibly converts this using DOS-style short mode. 46176 # If so, the updated path is stored in $new_path. 46177 46178 input_path="$new_path" 46179 # Check if we need to convert this using DOS-style short mode. If the path 46180 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46181 # take no chances and rewrite it. 46182 # Note: m4 eats our [], so we need to use [ and ] instead. 46183 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46184 if test "x$has_forbidden_chars" != x; then 46185 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46186 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46187 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46188 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46189 # Going to short mode and back again did indeed matter. Since short mode is 46190 # case insensitive, let's make it lowercase to improve readability. 46191 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46192 # Now convert it back to Unix-style (cygpath) 46193 input_path=`$CYGPATH -u "$shortmode_path"` 46194 new_path="$input_path" 46195 fi 46196 fi 46197 46198 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46199 if test "x$test_cygdrive_prefix" = x; then 46200 # As a simple fix, exclude /usr/bin since it's not a real path. 46201 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46202 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46203 # a path prefixed by /cygdrive for fixpath to work. 46204 new_path="$CYGWIN_ROOT_PATH$input_path" 46205 fi 46206 fi 46207 46208 46209 if test "x$path" != "x$new_path"; then 46210 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46211 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46212 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46213 fi 46214 46215 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46216 46217 path="$POTENTIAL_FREETYPE_LIB_PATH" 46218 has_colon=`$ECHO $path | $GREP ^.:` 46219 new_path="$path" 46220 if test "x$has_colon" = x; then 46221 # Not in mixed or Windows style, start by that. 46222 new_path=`cmd //c echo $path` 46223 fi 46224 46225 46226 input_path="$new_path" 46227 # Check if we need to convert this using DOS-style short mode. If the path 46228 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46229 # take no chances and rewrite it. 46230 # Note: m4 eats our [], so we need to use [ and ] instead. 46231 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46232 if test "x$has_forbidden_chars" != x; then 46233 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46234 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46235 fi 46236 46237 46238 windows_path="$new_path" 46239 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46240 unix_path=`$CYGPATH -u "$windows_path"` 46241 new_path="$unix_path" 46242 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46243 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46244 new_path="$unix_path" 46245 fi 46246 46247 if test "x$path" != "x$new_path"; then 46248 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46249 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46250 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46251 fi 46252 46253 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46254 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46255 46256 else 46257 # We're on a posix platform. Hooray! :) 46258 path="$POTENTIAL_FREETYPE_LIB_PATH" 46259 has_space=`$ECHO "$path" | $GREP " "` 46260 if test "x$has_space" != x; then 46261 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46262 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46263 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46264 fi 46265 46266 # Use eval to expand a potential ~ 46267 eval path="$path" 46268 if test ! -f "$path" && test ! -d "$path"; then 46269 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46270 fi 46271 46272 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46273 fi 46274 46275 46276 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46278 $as_echo_n "checking for freetype includes... " >&6; } 46279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46280 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46281 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46283 $as_echo_n "checking for freetype libraries... " >&6; } 46284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46285 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46286 fi 46287 46288 46289 if test "x$FOUND_FREETYPE" != xyes; then 46290 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 46291 46292 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46293 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46294 METHOD="well-known location" 46295 46296 # First check if the files exists. 46297 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46298 # We found an arbitrary include file. That's a good sign. 46299 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46300 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46301 FOUND_FREETYPE=yes 46302 46303 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 46304 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46305 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46306 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46307 FOUND_FREETYPE=no 46308 else 46309 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46310 # On Windows, we will need both .lib and .dll file. 46311 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 46312 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 46313 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 46314 FOUND_FREETYPE=no 46315 fi 46316 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 46317 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 46318 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 46319 fi 46320 fi 46321 fi 46322 46323 if test "x$FOUND_FREETYPE" = xyes; then 46324 46325 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46326 46327 # Input might be given as Windows format, start by converting to 46328 # unix format. 46329 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46330 new_path=`$CYGPATH -u "$path"` 46331 46332 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46333 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46334 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46335 # "foo.exe" is OK but "foo" is an error. 46336 # 46337 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46338 # It is also a way to make sure we got the proper file name for the real test later on. 46339 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46340 if test "x$test_shortpath" = x; then 46341 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46342 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46343 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46344 fi 46345 46346 # Call helper function which possibly converts this using DOS-style short mode. 46347 # If so, the updated path is stored in $new_path. 46348 46349 input_path="$new_path" 46350 # Check if we need to convert this using DOS-style short mode. If the path 46351 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46352 # take no chances and rewrite it. 46353 # Note: m4 eats our [], so we need to use [ and ] instead. 46354 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46355 if test "x$has_forbidden_chars" != x; then 46356 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46357 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46358 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46359 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46360 # Going to short mode and back again did indeed matter. Since short mode is 46361 # case insensitive, let's make it lowercase to improve readability. 46362 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46363 # Now convert it back to Unix-style (cygpath) 46364 input_path=`$CYGPATH -u "$shortmode_path"` 46365 new_path="$input_path" 46366 fi 46367 fi 46368 46369 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46370 if test "x$test_cygdrive_prefix" = x; then 46371 # As a simple fix, exclude /usr/bin since it's not a real path. 46372 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46373 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46374 # a path prefixed by /cygdrive for fixpath to work. 46375 new_path="$CYGWIN_ROOT_PATH$input_path" 46376 fi 46377 fi 46378 46379 46380 if test "x$path" != "x$new_path"; then 46381 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46382 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46383 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46384 fi 46385 46386 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46387 46388 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46389 has_colon=`$ECHO $path | $GREP ^.:` 46390 new_path="$path" 46391 if test "x$has_colon" = x; then 46392 # Not in mixed or Windows style, start by that. 46393 new_path=`cmd //c echo $path` 46394 fi 46395 46396 46397 input_path="$new_path" 46398 # Check if we need to convert this using DOS-style short mode. If the path 46399 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46400 # take no chances and rewrite it. 46401 # Note: m4 eats our [], so we need to use [ and ] instead. 46402 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46403 if test "x$has_forbidden_chars" != x; then 46404 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46405 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46406 fi 46407 46408 46409 windows_path="$new_path" 46410 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46411 unix_path=`$CYGPATH -u "$windows_path"` 46412 new_path="$unix_path" 46413 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46414 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46415 new_path="$unix_path" 46416 fi 46417 46418 if test "x$path" != "x$new_path"; then 46419 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46420 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46421 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46422 fi 46423 46424 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46425 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46426 46427 else 46428 # We're on a posix platform. Hooray! :) 46429 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46430 has_space=`$ECHO "$path" | $GREP " "` 46431 if test "x$has_space" != x; then 46432 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46433 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46434 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46435 fi 46436 46437 # Use eval to expand a potential ~ 46438 eval path="$path" 46439 if test ! -f "$path" && test ! -d "$path"; then 46440 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46441 fi 46442 46443 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46444 fi 46445 46446 46447 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46448 46449 # Input might be given as Windows format, start by converting to 46450 # unix format. 46451 path="$POTENTIAL_FREETYPE_LIB_PATH" 46452 new_path=`$CYGPATH -u "$path"` 46453 46454 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46455 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46456 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46457 # "foo.exe" is OK but "foo" is an error. 46458 # 46459 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46460 # It is also a way to make sure we got the proper file name for the real test later on. 46461 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46462 if test "x$test_shortpath" = x; then 46463 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46464 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46465 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46466 fi 46467 46468 # Call helper function which possibly converts this using DOS-style short mode. 46469 # If so, the updated path is stored in $new_path. 46470 46471 input_path="$new_path" 46472 # Check if we need to convert this using DOS-style short mode. If the path 46473 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46474 # take no chances and rewrite it. 46475 # Note: m4 eats our [], so we need to use [ and ] instead. 46476 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46477 if test "x$has_forbidden_chars" != x; then 46478 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46479 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46480 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46481 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46482 # Going to short mode and back again did indeed matter. Since short mode is 46483 # case insensitive, let's make it lowercase to improve readability. 46484 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46485 # Now convert it back to Unix-style (cygpath) 46486 input_path=`$CYGPATH -u "$shortmode_path"` 46487 new_path="$input_path" 46488 fi 46489 fi 46490 46491 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46492 if test "x$test_cygdrive_prefix" = x; then 46493 # As a simple fix, exclude /usr/bin since it's not a real path. 46494 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46495 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46496 # a path prefixed by /cygdrive for fixpath to work. 46497 new_path="$CYGWIN_ROOT_PATH$input_path" 46498 fi 46499 fi 46500 46501 46502 if test "x$path" != "x$new_path"; then 46503 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46504 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46505 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46506 fi 46507 46508 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46509 46510 path="$POTENTIAL_FREETYPE_LIB_PATH" 46511 has_colon=`$ECHO $path | $GREP ^.:` 46512 new_path="$path" 46513 if test "x$has_colon" = x; then 46514 # Not in mixed or Windows style, start by that. 46515 new_path=`cmd //c echo $path` 46516 fi 46517 46518 46519 input_path="$new_path" 46520 # Check if we need to convert this using DOS-style short mode. If the path 46521 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46522 # take no chances and rewrite it. 46523 # Note: m4 eats our [], so we need to use [ and ] instead. 46524 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46525 if test "x$has_forbidden_chars" != x; then 46526 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46527 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46528 fi 46529 46530 46531 windows_path="$new_path" 46532 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46533 unix_path=`$CYGPATH -u "$windows_path"` 46534 new_path="$unix_path" 46535 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46536 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46537 new_path="$unix_path" 46538 fi 46539 46540 if test "x$path" != "x$new_path"; then 46541 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46542 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46543 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46544 fi 46545 46546 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46547 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46548 46549 else 46550 # We're on a posix platform. Hooray! :) 46551 path="$POTENTIAL_FREETYPE_LIB_PATH" 46552 has_space=`$ECHO "$path" | $GREP " "` 46553 if test "x$has_space" != x; then 46554 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46555 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46556 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46557 fi 46558 46559 # Use eval to expand a potential ~ 46560 eval path="$path" 46561 if test ! -f "$path" && test ! -d "$path"; then 46562 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46563 fi 46564 46565 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46566 fi 46567 46568 46569 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46571 $as_echo_n "checking for freetype includes... " >&6; } 46572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46573 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46574 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46576 $as_echo_n "checking for freetype libraries... " >&6; } 46577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46578 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46579 fi 46580 46581 fi 46582 46583 if test "x$FOUND_FREETYPE" != xyes; then 46584 FREETYPE_BASE_DIR="$SYSROOT/usr/sfw" 46585 46586 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46587 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46588 METHOD="well-known location" 46589 46590 # First check if the files exists. 46591 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46592 # We found an arbitrary include file. That's a good sign. 46593 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46594 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46595 FOUND_FREETYPE=yes 46596 46597 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 46598 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46599 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46600 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46601 FOUND_FREETYPE=no 46602 else 46603 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46604 # On Windows, we will need both .lib and .dll file. 46605 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 46606 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 46607 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 46608 FOUND_FREETYPE=no 46609 fi 46610 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 46611 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 46612 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 46613 fi 46614 fi 46615 fi 46616 46617 if test "x$FOUND_FREETYPE" = xyes; then 46618 46619 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46620 46621 # Input might be given as Windows format, start by converting to 46622 # unix format. 46623 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46624 new_path=`$CYGPATH -u "$path"` 46625 46626 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46627 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46628 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46629 # "foo.exe" is OK but "foo" is an error. 46630 # 46631 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46632 # It is also a way to make sure we got the proper file name for the real test later on. 46633 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46634 if test "x$test_shortpath" = x; then 46635 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46636 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46637 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46638 fi 46639 46640 # Call helper function which possibly converts this using DOS-style short mode. 46641 # If so, the updated path is stored in $new_path. 46642 46643 input_path="$new_path" 46644 # Check if we need to convert this using DOS-style short mode. If the path 46645 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46646 # take no chances and rewrite it. 46647 # Note: m4 eats our [], so we need to use [ and ] instead. 46648 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46649 if test "x$has_forbidden_chars" != x; then 46650 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46651 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46652 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46653 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46654 # Going to short mode and back again did indeed matter. Since short mode is 46655 # case insensitive, let's make it lowercase to improve readability. 46656 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46657 # Now convert it back to Unix-style (cygpath) 46658 input_path=`$CYGPATH -u "$shortmode_path"` 46659 new_path="$input_path" 46660 fi 46661 fi 46662 46663 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46664 if test "x$test_cygdrive_prefix" = x; then 46665 # As a simple fix, exclude /usr/bin since it's not a real path. 46666 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46667 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46668 # a path prefixed by /cygdrive for fixpath to work. 46669 new_path="$CYGWIN_ROOT_PATH$input_path" 46670 fi 46671 fi 46672 46673 46674 if test "x$path" != "x$new_path"; then 46675 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46676 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46677 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46678 fi 46679 46680 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46681 46682 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46683 has_colon=`$ECHO $path | $GREP ^.:` 46684 new_path="$path" 46685 if test "x$has_colon" = x; then 46686 # Not in mixed or Windows style, start by that. 46687 new_path=`cmd //c echo $path` 46688 fi 46689 46690 46691 input_path="$new_path" 46692 # Check if we need to convert this using DOS-style short mode. If the path 46693 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46694 # take no chances and rewrite it. 46695 # Note: m4 eats our [], so we need to use [ and ] instead. 46696 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46697 if test "x$has_forbidden_chars" != x; then 46698 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46699 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46700 fi 46701 46702 46703 windows_path="$new_path" 46704 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46705 unix_path=`$CYGPATH -u "$windows_path"` 46706 new_path="$unix_path" 46707 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46708 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46709 new_path="$unix_path" 46710 fi 46711 46712 if test "x$path" != "x$new_path"; then 46713 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46714 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46715 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46716 fi 46717 46718 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46719 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46720 46721 else 46722 # We're on a posix platform. Hooray! :) 46723 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46724 has_space=`$ECHO "$path" | $GREP " "` 46725 if test "x$has_space" != x; then 46726 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46727 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46728 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46729 fi 46730 46731 # Use eval to expand a potential ~ 46732 eval path="$path" 46733 if test ! -f "$path" && test ! -d "$path"; then 46734 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46735 fi 46736 46737 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46738 fi 46739 46740 46741 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46742 46743 # Input might be given as Windows format, start by converting to 46744 # unix format. 46745 path="$POTENTIAL_FREETYPE_LIB_PATH" 46746 new_path=`$CYGPATH -u "$path"` 46747 46748 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46749 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46750 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46751 # "foo.exe" is OK but "foo" is an error. 46752 # 46753 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46754 # It is also a way to make sure we got the proper file name for the real test later on. 46755 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46756 if test "x$test_shortpath" = x; then 46757 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46758 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46759 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46760 fi 46761 46762 # Call helper function which possibly converts this using DOS-style short mode. 46763 # If so, the updated path is stored in $new_path. 46764 46765 input_path="$new_path" 46766 # Check if we need to convert this using DOS-style short mode. If the path 46767 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46768 # take no chances and rewrite it. 46769 # Note: m4 eats our [], so we need to use [ and ] instead. 46770 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46771 if test "x$has_forbidden_chars" != x; then 46772 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46773 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46774 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46775 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46776 # Going to short mode and back again did indeed matter. Since short mode is 46777 # case insensitive, let's make it lowercase to improve readability. 46778 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46779 # Now convert it back to Unix-style (cygpath) 46780 input_path=`$CYGPATH -u "$shortmode_path"` 46781 new_path="$input_path" 46782 fi 46783 fi 46784 46785 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46786 if test "x$test_cygdrive_prefix" = x; then 46787 # As a simple fix, exclude /usr/bin since it's not a real path. 46788 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46789 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46790 # a path prefixed by /cygdrive for fixpath to work. 46791 new_path="$CYGWIN_ROOT_PATH$input_path" 46792 fi 46793 fi 46794 46795 46796 if test "x$path" != "x$new_path"; then 46797 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46798 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46799 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46800 fi 46801 46802 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46803 46804 path="$POTENTIAL_FREETYPE_LIB_PATH" 46805 has_colon=`$ECHO $path | $GREP ^.:` 46806 new_path="$path" 46807 if test "x$has_colon" = x; then 46808 # Not in mixed or Windows style, start by that. 46809 new_path=`cmd //c echo $path` 46810 fi 46811 46812 46813 input_path="$new_path" 46814 # Check if we need to convert this using DOS-style short mode. If the path 46815 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46816 # take no chances and rewrite it. 46817 # Note: m4 eats our [], so we need to use [ and ] instead. 46818 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46819 if test "x$has_forbidden_chars" != x; then 46820 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46821 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46822 fi 46823 46824 46825 windows_path="$new_path" 46826 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46827 unix_path=`$CYGPATH -u "$windows_path"` 46828 new_path="$unix_path" 46829 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46830 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46831 new_path="$unix_path" 46832 fi 46833 46834 if test "x$path" != "x$new_path"; then 46835 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46836 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46837 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46838 fi 46839 46840 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46841 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46842 46843 else 46844 # We're on a posix platform. Hooray! :) 46845 path="$POTENTIAL_FREETYPE_LIB_PATH" 46846 has_space=`$ECHO "$path" | $GREP " "` 46847 if test "x$has_space" != x; then 46848 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46849 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46850 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46851 fi 46852 46853 # Use eval to expand a potential ~ 46854 eval path="$path" 46855 if test ! -f "$path" && test ! -d "$path"; then 46856 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46857 fi 46858 46859 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46860 fi 46861 46862 46863 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46865 $as_echo_n "checking for freetype includes... " >&6; } 46866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46867 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46868 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46870 $as_echo_n "checking for freetype libraries... " >&6; } 46871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46872 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46873 fi 46874 46875 fi 46876 46877 if test "x$FOUND_FREETYPE" != xyes; then 46878 FREETYPE_BASE_DIR="$SYSROOT/usr" 46879 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 46880 46881 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46882 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 46883 METHOD="well-known location" 46884 46885 # First check if the files exists. 46886 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46887 # We found an arbitrary include file. That's a good sign. 46888 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46889 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46890 FOUND_FREETYPE=yes 46891 46892 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 46893 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46894 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46895 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46896 FOUND_FREETYPE=no 46897 else 46898 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46899 # On Windows, we will need both .lib and .dll file. 46900 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 46901 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 46902 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 46903 FOUND_FREETYPE=no 46904 fi 46905 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 46906 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 46907 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 46908 fi 46909 fi 46910 fi 46911 46912 if test "x$FOUND_FREETYPE" = xyes; then 46913 46914 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46915 46916 # Input might be given as Windows format, start by converting to 46917 # unix format. 46918 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46919 new_path=`$CYGPATH -u "$path"` 46920 46921 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46922 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46923 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46924 # "foo.exe" is OK but "foo" is an error. 46925 # 46926 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46927 # It is also a way to make sure we got the proper file name for the real test later on. 46928 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46929 if test "x$test_shortpath" = x; then 46930 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46931 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46932 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46933 fi 46934 46935 # Call helper function which possibly converts this using DOS-style short mode. 46936 # If so, the updated path is stored in $new_path. 46937 46938 input_path="$new_path" 46939 # Check if we need to convert this using DOS-style short mode. If the path 46940 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46941 # take no chances and rewrite it. 46942 # Note: m4 eats our [], so we need to use [ and ] instead. 46943 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46944 if test "x$has_forbidden_chars" != x; then 46945 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46946 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46947 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46948 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46949 # Going to short mode and back again did indeed matter. Since short mode is 46950 # case insensitive, let's make it lowercase to improve readability. 46951 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46952 # Now convert it back to Unix-style (cygpath) 46953 input_path=`$CYGPATH -u "$shortmode_path"` 46954 new_path="$input_path" 46955 fi 46956 fi 46957 46958 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46959 if test "x$test_cygdrive_prefix" = x; then 46960 # As a simple fix, exclude /usr/bin since it's not a real path. 46961 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46962 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46963 # a path prefixed by /cygdrive for fixpath to work. 46964 new_path="$CYGWIN_ROOT_PATH$input_path" 46965 fi 46966 fi 46967 46968 46969 if test "x$path" != "x$new_path"; then 46970 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46971 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46972 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46973 fi 46974 46975 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46976 46977 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46978 has_colon=`$ECHO $path | $GREP ^.:` 46979 new_path="$path" 46980 if test "x$has_colon" = x; then 46981 # Not in mixed or Windows style, start by that. 46982 new_path=`cmd //c echo $path` 46983 fi 46984 46985 46986 input_path="$new_path" 46987 # Check if we need to convert this using DOS-style short mode. If the path 46988 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46989 # take no chances and rewrite it. 46990 # Note: m4 eats our [], so we need to use [ and ] instead. 46991 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46992 if test "x$has_forbidden_chars" != x; then 46993 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46994 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46995 fi 46996 46997 46998 windows_path="$new_path" 46999 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47000 unix_path=`$CYGPATH -u "$windows_path"` 47001 new_path="$unix_path" 47002 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47003 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47004 new_path="$unix_path" 47005 fi 47006 47007 if test "x$path" != "x$new_path"; then 47008 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47009 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47010 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47011 fi 47012 47013 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47014 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47015 47016 else 47017 # We're on a posix platform. Hooray! :) 47018 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47019 has_space=`$ECHO "$path" | $GREP " "` 47020 if test "x$has_space" != x; then 47021 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47022 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47023 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47024 fi 47025 47026 # Use eval to expand a potential ~ 47027 eval path="$path" 47028 if test ! -f "$path" && test ! -d "$path"; then 47029 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47030 fi 47031 47032 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47033 fi 47034 47035 47036 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47037 47038 # Input might be given as Windows format, start by converting to 47039 # unix format. 47040 path="$POTENTIAL_FREETYPE_LIB_PATH" 47041 new_path=`$CYGPATH -u "$path"` 47042 47043 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47044 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47045 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47046 # "foo.exe" is OK but "foo" is an error. 47047 # 47048 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47049 # It is also a way to make sure we got the proper file name for the real test later on. 47050 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47051 if test "x$test_shortpath" = x; then 47052 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47053 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47054 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47055 fi 47056 47057 # Call helper function which possibly converts this using DOS-style short mode. 47058 # If so, the updated path is stored in $new_path. 47059 47060 input_path="$new_path" 47061 # Check if we need to convert this using DOS-style short mode. If the path 47062 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47063 # take no chances and rewrite it. 47064 # Note: m4 eats our [], so we need to use [ and ] instead. 47065 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47066 if test "x$has_forbidden_chars" != x; then 47067 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47068 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47069 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47070 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47071 # Going to short mode and back again did indeed matter. Since short mode is 47072 # case insensitive, let's make it lowercase to improve readability. 47073 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47074 # Now convert it back to Unix-style (cygpath) 47075 input_path=`$CYGPATH -u "$shortmode_path"` 47076 new_path="$input_path" 47077 fi 47078 fi 47079 47080 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47081 if test "x$test_cygdrive_prefix" = x; then 47082 # As a simple fix, exclude /usr/bin since it's not a real path. 47083 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47084 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47085 # a path prefixed by /cygdrive for fixpath to work. 47086 new_path="$CYGWIN_ROOT_PATH$input_path" 47087 fi 47088 fi 47089 47090 47091 if test "x$path" != "x$new_path"; then 47092 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47093 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47094 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47095 fi 47096 47097 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47098 47099 path="$POTENTIAL_FREETYPE_LIB_PATH" 47100 has_colon=`$ECHO $path | $GREP ^.:` 47101 new_path="$path" 47102 if test "x$has_colon" = x; then 47103 # Not in mixed or Windows style, start by that. 47104 new_path=`cmd //c echo $path` 47105 fi 47106 47107 47108 input_path="$new_path" 47109 # Check if we need to convert this using DOS-style short mode. If the path 47110 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47111 # take no chances and rewrite it. 47112 # Note: m4 eats our [], so we need to use [ and ] instead. 47113 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47114 if test "x$has_forbidden_chars" != x; then 47115 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47116 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47117 fi 47118 47119 47120 windows_path="$new_path" 47121 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47122 unix_path=`$CYGPATH -u "$windows_path"` 47123 new_path="$unix_path" 47124 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47125 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47126 new_path="$unix_path" 47127 fi 47128 47129 if test "x$path" != "x$new_path"; then 47130 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47131 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47132 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47133 fi 47134 47135 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47136 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47137 47138 else 47139 # We're on a posix platform. Hooray! :) 47140 path="$POTENTIAL_FREETYPE_LIB_PATH" 47141 has_space=`$ECHO "$path" | $GREP " "` 47142 if test "x$has_space" != x; then 47143 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47144 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47145 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47146 fi 47147 47148 # Use eval to expand a potential ~ 47149 eval path="$path" 47150 if test ! -f "$path" && test ! -d "$path"; then 47151 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47152 fi 47153 47154 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47155 fi 47156 47157 47158 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47160 $as_echo_n "checking for freetype includes... " >&6; } 47161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47162 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47163 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47165 $as_echo_n "checking for freetype libraries... " >&6; } 47166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47167 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47168 fi 47169 47170 else 47171 47172 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47173 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 47174 METHOD="well-known location" 47175 47176 # First check if the files exists. 47177 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47178 # We found an arbitrary include file. That's a good sign. 47179 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47180 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47181 FOUND_FREETYPE=yes 47182 47183 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 47184 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47185 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47186 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47187 FOUND_FREETYPE=no 47188 else 47189 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47190 # On Windows, we will need both .lib and .dll file. 47191 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 47192 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 47193 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 47194 FOUND_FREETYPE=no 47195 fi 47196 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 47197 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 47198 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 47199 fi 47200 fi 47201 fi 47202 47203 if test "x$FOUND_FREETYPE" = xyes; then 47204 47205 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47206 47207 # Input might be given as Windows format, start by converting to 47208 # unix format. 47209 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47210 new_path=`$CYGPATH -u "$path"` 47211 47212 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47213 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47214 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47215 # "foo.exe" is OK but "foo" is an error. 47216 # 47217 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47218 # It is also a way to make sure we got the proper file name for the real test later on. 47219 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47220 if test "x$test_shortpath" = x; then 47221 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47222 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47223 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47224 fi 47225 47226 # Call helper function which possibly converts this using DOS-style short mode. 47227 # If so, the updated path is stored in $new_path. 47228 47229 input_path="$new_path" 47230 # Check if we need to convert this using DOS-style short mode. If the path 47231 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47232 # take no chances and rewrite it. 47233 # Note: m4 eats our [], so we need to use [ and ] instead. 47234 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47235 if test "x$has_forbidden_chars" != x; then 47236 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47237 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47238 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47239 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47240 # Going to short mode and back again did indeed matter. Since short mode is 47241 # case insensitive, let's make it lowercase to improve readability. 47242 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47243 # Now convert it back to Unix-style (cygpath) 47244 input_path=`$CYGPATH -u "$shortmode_path"` 47245 new_path="$input_path" 47246 fi 47247 fi 47248 47249 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47250 if test "x$test_cygdrive_prefix" = x; then 47251 # As a simple fix, exclude /usr/bin since it's not a real path. 47252 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47253 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47254 # a path prefixed by /cygdrive for fixpath to work. 47255 new_path="$CYGWIN_ROOT_PATH$input_path" 47256 fi 47257 fi 47258 47259 47260 if test "x$path" != "x$new_path"; then 47261 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47262 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47263 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47264 fi 47265 47266 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47267 47268 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47269 has_colon=`$ECHO $path | $GREP ^.:` 47270 new_path="$path" 47271 if test "x$has_colon" = x; then 47272 # Not in mixed or Windows style, start by that. 47273 new_path=`cmd //c echo $path` 47274 fi 47275 47276 47277 input_path="$new_path" 47278 # Check if we need to convert this using DOS-style short mode. If the path 47279 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47280 # take no chances and rewrite it. 47281 # Note: m4 eats our [], so we need to use [ and ] instead. 47282 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47283 if test "x$has_forbidden_chars" != x; then 47284 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47285 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47286 fi 47287 47288 47289 windows_path="$new_path" 47290 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47291 unix_path=`$CYGPATH -u "$windows_path"` 47292 new_path="$unix_path" 47293 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47294 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47295 new_path="$unix_path" 47296 fi 47297 47298 if test "x$path" != "x$new_path"; then 47299 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47300 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47301 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47302 fi 47303 47304 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47305 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47306 47307 else 47308 # We're on a posix platform. Hooray! :) 47309 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47310 has_space=`$ECHO "$path" | $GREP " "` 47311 if test "x$has_space" != x; then 47312 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47313 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47314 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47315 fi 47316 47317 # Use eval to expand a potential ~ 47318 eval path="$path" 47319 if test ! -f "$path" && test ! -d "$path"; then 47320 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47321 fi 47322 47323 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47324 fi 47325 47326 47327 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47328 47329 # Input might be given as Windows format, start by converting to 47330 # unix format. 47331 path="$POTENTIAL_FREETYPE_LIB_PATH" 47332 new_path=`$CYGPATH -u "$path"` 47333 47334 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47335 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47336 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47337 # "foo.exe" is OK but "foo" is an error. 47338 # 47339 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47340 # It is also a way to make sure we got the proper file name for the real test later on. 47341 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47342 if test "x$test_shortpath" = x; then 47343 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47344 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47345 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47346 fi 47347 47348 # Call helper function which possibly converts this using DOS-style short mode. 47349 # If so, the updated path is stored in $new_path. 47350 47351 input_path="$new_path" 47352 # Check if we need to convert this using DOS-style short mode. If the path 47353 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47354 # take no chances and rewrite it. 47355 # Note: m4 eats our [], so we need to use [ and ] instead. 47356 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47357 if test "x$has_forbidden_chars" != x; then 47358 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47359 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47360 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47361 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47362 # Going to short mode and back again did indeed matter. Since short mode is 47363 # case insensitive, let's make it lowercase to improve readability. 47364 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47365 # Now convert it back to Unix-style (cygpath) 47366 input_path=`$CYGPATH -u "$shortmode_path"` 47367 new_path="$input_path" 47368 fi 47369 fi 47370 47371 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47372 if test "x$test_cygdrive_prefix" = x; then 47373 # As a simple fix, exclude /usr/bin since it's not a real path. 47374 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47375 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47376 # a path prefixed by /cygdrive for fixpath to work. 47377 new_path="$CYGWIN_ROOT_PATH$input_path" 47378 fi 47379 fi 47380 47381 47382 if test "x$path" != "x$new_path"; then 47383 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47384 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47385 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47386 fi 47387 47388 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47389 47390 path="$POTENTIAL_FREETYPE_LIB_PATH" 47391 has_colon=`$ECHO $path | $GREP ^.:` 47392 new_path="$path" 47393 if test "x$has_colon" = x; then 47394 # Not in mixed or Windows style, start by that. 47395 new_path=`cmd //c echo $path` 47396 fi 47397 47398 47399 input_path="$new_path" 47400 # Check if we need to convert this using DOS-style short mode. If the path 47401 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47402 # take no chances and rewrite it. 47403 # Note: m4 eats our [], so we need to use [ and ] instead. 47404 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47405 if test "x$has_forbidden_chars" != x; then 47406 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47407 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47408 fi 47409 47410 47411 windows_path="$new_path" 47412 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47413 unix_path=`$CYGPATH -u "$windows_path"` 47414 new_path="$unix_path" 47415 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47416 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47417 new_path="$unix_path" 47418 fi 47419 47420 if test "x$path" != "x$new_path"; then 47421 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47422 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47423 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47424 fi 47425 47426 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47427 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47428 47429 else 47430 # We're on a posix platform. Hooray! :) 47431 path="$POTENTIAL_FREETYPE_LIB_PATH" 47432 has_space=`$ECHO "$path" | $GREP " "` 47433 if test "x$has_space" != x; then 47434 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47435 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47436 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47437 fi 47438 47439 # Use eval to expand a potential ~ 47440 eval path="$path" 47441 if test ! -f "$path" && test ! -d "$path"; then 47442 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47443 fi 47444 47445 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47446 fi 47447 47448 47449 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47451 $as_echo_n "checking for freetype includes... " >&6; } 47452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47453 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47454 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47456 $as_echo_n "checking for freetype libraries... " >&6; } 47457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47458 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47459 fi 47460 47461 if test "x$FOUND_FREETYPE" != xyes; then 47462 47463 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47464 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 47465 METHOD="well-known location" 47466 47467 # First check if the files exists. 47468 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47469 # We found an arbitrary include file. That's a good sign. 47470 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47471 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47472 FOUND_FREETYPE=yes 47473 47474 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 47475 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47476 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47477 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47478 FOUND_FREETYPE=no 47479 else 47480 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47481 # On Windows, we will need both .lib and .dll file. 47482 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 47483 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 47484 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 47485 FOUND_FREETYPE=no 47486 fi 47487 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 47488 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 47489 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 47490 fi 47491 fi 47492 fi 47493 47494 if test "x$FOUND_FREETYPE" = xyes; then 47495 47496 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47497 47498 # Input might be given as Windows format, start by converting to 47499 # unix format. 47500 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47501 new_path=`$CYGPATH -u "$path"` 47502 47503 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47504 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47505 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47506 # "foo.exe" is OK but "foo" is an error. 47507 # 47508 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47509 # It is also a way to make sure we got the proper file name for the real test later on. 47510 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47511 if test "x$test_shortpath" = x; then 47512 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47513 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47514 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47515 fi 47516 47517 # Call helper function which possibly converts this using DOS-style short mode. 47518 # If so, the updated path is stored in $new_path. 47519 47520 input_path="$new_path" 47521 # Check if we need to convert this using DOS-style short mode. If the path 47522 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47523 # take no chances and rewrite it. 47524 # Note: m4 eats our [], so we need to use [ and ] instead. 47525 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47526 if test "x$has_forbidden_chars" != x; then 47527 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47528 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47529 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47530 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47531 # Going to short mode and back again did indeed matter. Since short mode is 47532 # case insensitive, let's make it lowercase to improve readability. 47533 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47534 # Now convert it back to Unix-style (cygpath) 47535 input_path=`$CYGPATH -u "$shortmode_path"` 47536 new_path="$input_path" 47537 fi 47538 fi 47539 47540 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47541 if test "x$test_cygdrive_prefix" = x; then 47542 # As a simple fix, exclude /usr/bin since it's not a real path. 47543 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47544 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47545 # a path prefixed by /cygdrive for fixpath to work. 47546 new_path="$CYGWIN_ROOT_PATH$input_path" 47547 fi 47548 fi 47549 47550 47551 if test "x$path" != "x$new_path"; then 47552 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47553 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47554 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47555 fi 47556 47557 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47558 47559 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47560 has_colon=`$ECHO $path | $GREP ^.:` 47561 new_path="$path" 47562 if test "x$has_colon" = x; then 47563 # Not in mixed or Windows style, start by that. 47564 new_path=`cmd //c echo $path` 47565 fi 47566 47567 47568 input_path="$new_path" 47569 # Check if we need to convert this using DOS-style short mode. If the path 47570 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47571 # take no chances and rewrite it. 47572 # Note: m4 eats our [], so we need to use [ and ] instead. 47573 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47574 if test "x$has_forbidden_chars" != x; then 47575 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47576 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47577 fi 47578 47579 47580 windows_path="$new_path" 47581 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47582 unix_path=`$CYGPATH -u "$windows_path"` 47583 new_path="$unix_path" 47584 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47585 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47586 new_path="$unix_path" 47587 fi 47588 47589 if test "x$path" != "x$new_path"; then 47590 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47591 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47592 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47593 fi 47594 47595 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47596 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47597 47598 else 47599 # We're on a posix platform. Hooray! :) 47600 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47601 has_space=`$ECHO "$path" | $GREP " "` 47602 if test "x$has_space" != x; then 47603 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47604 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47605 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47606 fi 47607 47608 # Use eval to expand a potential ~ 47609 eval path="$path" 47610 if test ! -f "$path" && test ! -d "$path"; then 47611 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47612 fi 47613 47614 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47615 fi 47616 47617 47618 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47619 47620 # Input might be given as Windows format, start by converting to 47621 # unix format. 47622 path="$POTENTIAL_FREETYPE_LIB_PATH" 47623 new_path=`$CYGPATH -u "$path"` 47624 47625 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47626 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47627 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47628 # "foo.exe" is OK but "foo" is an error. 47629 # 47630 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47631 # It is also a way to make sure we got the proper file name for the real test later on. 47632 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47633 if test "x$test_shortpath" = x; then 47634 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47635 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47636 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47637 fi 47638 47639 # Call helper function which possibly converts this using DOS-style short mode. 47640 # If so, the updated path is stored in $new_path. 47641 47642 input_path="$new_path" 47643 # Check if we need to convert this using DOS-style short mode. If the path 47644 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47645 # take no chances and rewrite it. 47646 # Note: m4 eats our [], so we need to use [ and ] instead. 47647 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47648 if test "x$has_forbidden_chars" != x; then 47649 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47650 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47651 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47652 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47653 # Going to short mode and back again did indeed matter. Since short mode is 47654 # case insensitive, let's make it lowercase to improve readability. 47655 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47656 # Now convert it back to Unix-style (cygpath) 47657 input_path=`$CYGPATH -u "$shortmode_path"` 47658 new_path="$input_path" 47659 fi 47660 fi 47661 47662 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47663 if test "x$test_cygdrive_prefix" = x; then 47664 # As a simple fix, exclude /usr/bin since it's not a real path. 47665 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47666 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47667 # a path prefixed by /cygdrive for fixpath to work. 47668 new_path="$CYGWIN_ROOT_PATH$input_path" 47669 fi 47670 fi 47671 47672 47673 if test "x$path" != "x$new_path"; then 47674 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47675 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47676 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47677 fi 47678 47679 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47680 47681 path="$POTENTIAL_FREETYPE_LIB_PATH" 47682 has_colon=`$ECHO $path | $GREP ^.:` 47683 new_path="$path" 47684 if test "x$has_colon" = x; then 47685 # Not in mixed or Windows style, start by that. 47686 new_path=`cmd //c echo $path` 47687 fi 47688 47689 47690 input_path="$new_path" 47691 # Check if we need to convert this using DOS-style short mode. If the path 47692 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47693 # take no chances and rewrite it. 47694 # Note: m4 eats our [], so we need to use [ and ] instead. 47695 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47696 if test "x$has_forbidden_chars" != x; then 47697 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47698 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47699 fi 47700 47701 47702 windows_path="$new_path" 47703 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47704 unix_path=`$CYGPATH -u "$windows_path"` 47705 new_path="$unix_path" 47706 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47707 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47708 new_path="$unix_path" 47709 fi 47710 47711 if test "x$path" != "x$new_path"; then 47712 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47713 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47714 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47715 fi 47716 47717 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47718 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47719 47720 else 47721 # We're on a posix platform. Hooray! :) 47722 path="$POTENTIAL_FREETYPE_LIB_PATH" 47723 has_space=`$ECHO "$path" | $GREP " "` 47724 if test "x$has_space" != x; then 47725 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47726 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47727 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47728 fi 47729 47730 # Use eval to expand a potential ~ 47731 eval path="$path" 47732 if test ! -f "$path" && test ! -d "$path"; then 47733 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47734 fi 47735 47736 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47737 fi 47738 47739 47740 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47742 $as_echo_n "checking for freetype includes... " >&6; } 47743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47744 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47745 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47747 $as_echo_n "checking for freetype libraries... " >&6; } 47748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47749 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47750 fi 47751 47752 fi 47753 fi 47754 fi 47755 fi 47756 fi # end check in well-known locations 47757 47758 if test "x$FOUND_FREETYPE" != xyes; then 47759 47760 # Print a helpful message on how to acquire the necessary build dependency. 47761 # freetype is the help tag: freetype, cups, pulse, alsa etc 47762 MISSING_DEPENDENCY=freetype 47763 47764 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47765 cygwin_help $MISSING_DEPENDENCY 47766 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47767 msys_help $MISSING_DEPENDENCY 47768 else 47769 PKGHANDLER_COMMAND= 47770 47771 case $PKGHANDLER in 47772 apt-get) 47773 apt_help $MISSING_DEPENDENCY ;; 47774 yum) 47775 yum_help $MISSING_DEPENDENCY ;; 47776 port) 47777 port_help $MISSING_DEPENDENCY ;; 47778 pkgutil) 47779 pkgutil_help $MISSING_DEPENDENCY ;; 47780 pkgadd) 47781 pkgadd_help $MISSING_DEPENDENCY ;; 47782 esac 47783 47784 if test "x$PKGHANDLER_COMMAND" != x; then 47785 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 47786 fi 47787 fi 47788 47789 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 47790 fi 47791 fi # end user specified settings 47792 47793 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 47794 if test "x$FREETYPE_CFLAGS" = x; then 47795 47796 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47797 47798 # Input might be given as Windows format, start by converting to 47799 # unix format. 47800 path="$FREETYPE_INCLUDE_PATH" 47801 new_path=`$CYGPATH -u "$path"` 47802 47803 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47804 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47805 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47806 # "foo.exe" is OK but "foo" is an error. 47807 # 47808 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47809 # It is also a way to make sure we got the proper file name for the real test later on. 47810 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47811 if test "x$test_shortpath" = x; then 47812 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47813 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47814 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 47815 fi 47816 47817 # Call helper function which possibly converts this using DOS-style short mode. 47818 # If so, the updated path is stored in $new_path. 47819 47820 input_path="$new_path" 47821 # Check if we need to convert this using DOS-style short mode. If the path 47822 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47823 # take no chances and rewrite it. 47824 # Note: m4 eats our [], so we need to use [ and ] instead. 47825 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47826 if test "x$has_forbidden_chars" != x; then 47827 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47828 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47829 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47830 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47831 # Going to short mode and back again did indeed matter. Since short mode is 47832 # case insensitive, let's make it lowercase to improve readability. 47833 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47834 # Now convert it back to Unix-style (cygpath) 47835 input_path=`$CYGPATH -u "$shortmode_path"` 47836 new_path="$input_path" 47837 fi 47838 fi 47839 47840 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47841 if test "x$test_cygdrive_prefix" = x; then 47842 # As a simple fix, exclude /usr/bin since it's not a real path. 47843 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47844 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47845 # a path prefixed by /cygdrive for fixpath to work. 47846 new_path="$CYGWIN_ROOT_PATH$input_path" 47847 fi 47848 fi 47849 47850 47851 if test "x$path" != "x$new_path"; then 47852 FREETYPE_INCLUDE_PATH="$new_path" 47853 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47854 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47855 fi 47856 47857 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47858 47859 path="$FREETYPE_INCLUDE_PATH" 47860 has_colon=`$ECHO $path | $GREP ^.:` 47861 new_path="$path" 47862 if test "x$has_colon" = x; then 47863 # Not in mixed or Windows style, start by that. 47864 new_path=`cmd //c echo $path` 47865 fi 47866 47867 47868 input_path="$new_path" 47869 # Check if we need to convert this using DOS-style short mode. If the path 47870 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47871 # take no chances and rewrite it. 47872 # Note: m4 eats our [], so we need to use [ and ] instead. 47873 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47874 if test "x$has_forbidden_chars" != x; then 47875 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47876 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47877 fi 47878 47879 47880 windows_path="$new_path" 47881 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47882 unix_path=`$CYGPATH -u "$windows_path"` 47883 new_path="$unix_path" 47884 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47885 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47886 new_path="$unix_path" 47887 fi 47888 47889 if test "x$path" != "x$new_path"; then 47890 FREETYPE_INCLUDE_PATH="$new_path" 47891 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47892 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47893 fi 47894 47895 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47896 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47897 47898 else 47899 # We're on a posix platform. Hooray! :) 47900 path="$FREETYPE_INCLUDE_PATH" 47901 has_space=`$ECHO "$path" | $GREP " "` 47902 if test "x$has_space" != x; then 47903 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47904 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47905 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47906 fi 47907 47908 # Use eval to expand a potential ~ 47909 eval path="$path" 47910 if test ! -f "$path" && test ! -d "$path"; then 47911 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47912 fi 47913 47914 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47915 fi 47916 47917 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 47918 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 47919 else 47920 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 47921 fi 47922 fi 47923 47924 if test "x$FREETYPE_LIBS" = x; then 47925 47926 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47927 47928 # Input might be given as Windows format, start by converting to 47929 # unix format. 47930 path="$FREETYPE_LIB_PATH" 47931 new_path=`$CYGPATH -u "$path"` 47932 47933 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47934 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47935 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47936 # "foo.exe" is OK but "foo" is an error. 47937 # 47938 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47939 # It is also a way to make sure we got the proper file name for the real test later on. 47940 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47941 if test "x$test_shortpath" = x; then 47942 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47943 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47944 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 47945 fi 47946 47947 # Call helper function which possibly converts this using DOS-style short mode. 47948 # If so, the updated path is stored in $new_path. 47949 47950 input_path="$new_path" 47951 # Check if we need to convert this using DOS-style short mode. If the path 47952 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47953 # take no chances and rewrite it. 47954 # Note: m4 eats our [], so we need to use [ and ] instead. 47955 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47956 if test "x$has_forbidden_chars" != x; then 47957 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47958 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47959 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47960 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47961 # Going to short mode and back again did indeed matter. Since short mode is 47962 # case insensitive, let's make it lowercase to improve readability. 47963 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47964 # Now convert it back to Unix-style (cygpath) 47965 input_path=`$CYGPATH -u "$shortmode_path"` 47966 new_path="$input_path" 47967 fi 47968 fi 47969 47970 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47971 if test "x$test_cygdrive_prefix" = x; then 47972 # As a simple fix, exclude /usr/bin since it's not a real path. 47973 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47974 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47975 # a path prefixed by /cygdrive for fixpath to work. 47976 new_path="$CYGWIN_ROOT_PATH$input_path" 47977 fi 47978 fi 47979 47980 47981 if test "x$path" != "x$new_path"; then 47982 FREETYPE_LIB_PATH="$new_path" 47983 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 47984 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47985 fi 47986 47987 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47988 47989 path="$FREETYPE_LIB_PATH" 47990 has_colon=`$ECHO $path | $GREP ^.:` 47991 new_path="$path" 47992 if test "x$has_colon" = x; then 47993 # Not in mixed or Windows style, start by that. 47994 new_path=`cmd //c echo $path` 47995 fi 47996 47997 47998 input_path="$new_path" 47999 # Check if we need to convert this using DOS-style short mode. If the path 48000 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48001 # take no chances and rewrite it. 48002 # Note: m4 eats our [], so we need to use [ and ] instead. 48003 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48004 if test "x$has_forbidden_chars" != x; then 48005 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48006 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48007 fi 48008 48009 48010 windows_path="$new_path" 48011 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48012 unix_path=`$CYGPATH -u "$windows_path"` 48013 new_path="$unix_path" 48014 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48015 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48016 new_path="$unix_path" 48017 fi 48018 48019 if test "x$path" != "x$new_path"; then 48020 FREETYPE_LIB_PATH="$new_path" 48021 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 48022 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48023 fi 48024 48025 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48026 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48027 48028 else 48029 # We're on a posix platform. Hooray! :) 48030 path="$FREETYPE_LIB_PATH" 48031 has_space=`$ECHO "$path" | $GREP " "` 48032 if test "x$has_space" != x; then 48033 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48034 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48035 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48036 fi 48037 48038 # Use eval to expand a potential ~ 48039 eval path="$path" 48040 if test ! -f "$path" && test ! -d "$path"; then 48041 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48042 fi 48043 48044 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 48045 fi 48046 48047 if test "x$OPENJDK_TARGET_OS" = xwindows; then 48048 FREETYPE_LIBS="$FREETYPE_LIB_PATH/freetype.lib" 48049 else 48050 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -lfreetype" 48051 fi 48052 fi 48053 48054 # Try to compile it 48055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 48056 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 48057 ac_ext=cpp 48058 ac_cpp='$CXXCPP $CPPFLAGS' 48059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48062 48063 PREV_CXXCFLAGS="$CXXFLAGS" 48064 PREV_LIBS="$LIBS" 48065 PREV_CXX="$CXX" 48066 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 48067 LIBS="$LIBS $FREETYPE_LIBS" 48068 CXX="$FIXPATH $CXX" 48069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48070 /* end confdefs.h. */ 48071 48072 #include<ft2build.h> 48073 #include FT_FREETYPE_H 48074 int main () { 48075 FT_Init_FreeType(NULL); 48076 return 0; 48077 } 48078 48079 _ACEOF 48080 if ac_fn_cxx_try_link "$LINENO"; then : 48081 48082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48083 $as_echo "yes" >&6; } 48084 48085 else 48086 48087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48088 $as_echo "no" >&6; } 48089 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 48090 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 48091 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 48092 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 48093 48094 48095 # Print a helpful message on how to acquire the necessary build dependency. 48096 # freetype is the help tag: freetype, cups, pulse, alsa etc 48097 MISSING_DEPENDENCY=freetype 48098 48099 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48100 cygwin_help $MISSING_DEPENDENCY 48101 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48102 msys_help $MISSING_DEPENDENCY 48103 else 48104 PKGHANDLER_COMMAND= 48105 48106 case $PKGHANDLER in 48107 apt-get) 48108 apt_help $MISSING_DEPENDENCY ;; 48109 yum) 48110 yum_help $MISSING_DEPENDENCY ;; 48111 port) 48112 port_help $MISSING_DEPENDENCY ;; 48113 pkgutil) 48114 pkgutil_help $MISSING_DEPENDENCY ;; 48115 pkgadd) 48116 pkgadd_help $MISSING_DEPENDENCY ;; 48117 esac 48118 48119 if test "x$PKGHANDLER_COMMAND" != x; then 48120 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48121 fi 48122 fi 48123 48124 48125 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 48126 48127 48128 fi 48129 rm -f core conftest.err conftest.$ac_objext \ 48130 conftest$ac_exeext conftest.$ac_ext 48131 CXXCFLAGS="$PREV_CXXFLAGS" 48132 LIBS="$PREV_LIBS" 48133 CXX="$PREV_CXX" 48134 ac_ext=cpp 48135 ac_cpp='$CXXCPP $CPPFLAGS' 48136 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48137 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48138 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48139 48140 48141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 48142 $as_echo_n "checking if we should bundle freetype... " >&6; } 48143 if test "x$BUNDLE_FREETYPE" = xyes; then 48144 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 48145 fi 48146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 48147 $as_echo "$BUNDLE_FREETYPE" >&6; } 48148 48149 fi # end freetype needed 48150 48151 48152 48153 48154 48155 48156 48157 ############################################################################### 48158 # 48159 # Check for alsa headers and libraries. Used on Linux/GNU systems. 48160 # 48161 48162 # Check whether --with-alsa was given. 48163 if test "${with_alsa+set}" = set; then : 48164 withval=$with_alsa; 48165 fi 48166 48167 48168 # Check whether --with-alsa-include was given. 48169 if test "${with_alsa_include+set}" = set; then : 48170 withval=$with_alsa_include; 48171 fi 48172 48173 48174 # Check whether --with-alsa-lib was given. 48175 if test "${with_alsa_lib+set}" = set; then : 48176 withval=$with_alsa_lib; 48177 fi 48178 48179 48180 if test "x$ALSA_NOT_NEEDED" = xyes; then 48181 if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then 48182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5 48183 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;} 48184 fi 48185 ALSA_CFLAGS= 48186 ALSA_LIBS= 48187 else 48188 ALSA_FOUND=no 48189 48190 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 48191 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 48192 fi 48193 48194 if test "x${with_alsa}" != x; then 48195 ALSA_LIBS="-L${with_alsa}/lib -lasound" 48196 ALSA_CFLAGS="-I${with_alsa}/include" 48197 ALSA_FOUND=yes 48198 fi 48199 if test "x${with_alsa_include}" != x; then 48200 ALSA_CFLAGS="-I${with_alsa_include}" 48201 ALSA_FOUND=yes 48202 fi 48203 if test "x${with_alsa_lib}" != x; then 48204 ALSA_LIBS="-L${with_alsa_lib} -lasound" 48205 ALSA_FOUND=yes 48206 fi 48207 if test "x$ALSA_FOUND" = xno; then 48208 48209 48210 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 48211 # Source the builddeps file again, to make sure it uses the latest variables! 48212 . $builddepsfile 48213 # Look for a target and build machine specific resource! 48214 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 48215 if test "x$resource" = x; then 48216 # Ok, lets instead look for a target specific resource 48217 eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}} 48218 fi 48219 if test "x$resource" = x; then 48220 # Ok, lets instead look for a build specific resource 48221 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}} 48222 fi 48223 if test "x$resource" = x; then 48224 # Ok, lets instead look for a generic resource 48225 # (The alsa comes from M4 and not the shell, thus no need for eval here.) 48226 resource=${builddep_alsa} 48227 fi 48228 if test "x$resource" != x; then 48229 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5 48230 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;} 48231 # If the resource in the builddeps.conf file is an existing directory, 48232 # for example /java/linux/cups 48233 if test -d ${resource}; then 48234 depdir=${resource} 48235 else 48236 48237 # alsa is for example mymodule 48238 # $resource is for example libs/general/libmymod_1_2_3.zip 48239 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 48240 # $with_builddeps_dir is for example /localhome/builddeps 48241 # depdir is the name of the variable into which we store the depdir, eg MYMOD 48242 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 48243 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 48244 filename=`basename $resource` 48245 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 48246 filebase=${filename%%.*} 48247 extension=${filename#*.} 48248 installdir=$with_builddeps_dir/$filebase 48249 if test ! -f $installdir/$filename.unpacked; then 48250 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5 48251 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;} 48252 if test ! -d $installdir; then 48253 mkdir -p $installdir 48254 fi 48255 if test ! -d $installdir; then 48256 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 48257 fi 48258 tmpfile=`mktemp $installdir/alsa.XXXXXXXXX` 48259 touch $tmpfile 48260 if test ! -f $tmpfile; then 48261 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 48262 fi 48263 48264 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 48265 # $tmpfile is the local file name for the downloaded file. 48266 VALID_TOOL=no 48267 if test "x$BDEPS_FTP" = xwget; then 48268 VALID_TOOL=yes 48269 wget -O $tmpfile $with_builddeps_server/$resource 48270 fi 48271 if test "x$BDEPS_FTP" = xlftp; then 48272 VALID_TOOL=yes 48273 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 48274 fi 48275 if test "x$BDEPS_FTP" = xftp; then 48276 VALID_TOOL=yes 48277 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 48278 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 48279 FTPUSERPWD=${FTPSERVER%%@*} 48280 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 48281 FTPUSER=${userpwd%%:*} 48282 FTPPWD=${userpwd#*@} 48283 FTPSERVER=${FTPSERVER#*@} 48284 else 48285 FTPUSER=ftp 48286 FTPPWD=ftp 48287 fi 48288 # the "pass" command does not work on some 48289 # ftp clients (read ftp.exe) but if it works, 48290 # passive mode is better! 48291 ( \ 48292 echo "user $FTPUSER $FTPPWD" ; \ 48293 echo "pass" ; \ 48294 echo "bin" ; \ 48295 echo "get $FTPPATH $tmpfile" ; \ 48296 ) | ftp -in $FTPSERVER 48297 fi 48298 if test "x$VALID_TOOL" != xyes; then 48299 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 48300 fi 48301 48302 mv $tmpfile $installdir/$filename 48303 if test ! -s $installdir/$filename; then 48304 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 48305 fi 48306 case "$extension" in 48307 zip) echo "Unzipping $installdir/$filename..." 48308 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 48309 ;; 48310 tar.gz) echo "Untaring $installdir/$filename..." 48311 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 48312 ;; 48313 tgz) echo "Untaring $installdir/$filename..." 48314 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 48315 ;; 48316 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 48317 ;; 48318 esac 48319 fi 48320 if test -f $installdir/$filename.unpacked; then 48321 depdir=$installdir 48322 fi 48323 48324 fi 48325 # Source the builddeps file again, because in the previous command, the depdir 48326 # was updated to point at the current build dependency install directory. 48327 . $builddepsfile 48328 # Now extract variables from the builddeps.conf files. 48329 theroot=${builddep_alsa_ROOT} 48330 thecflags=${builddep_alsa_CFLAGS} 48331 thelibs=${builddep_alsa_LIBS} 48332 if test "x$depdir" = x; then 48333 as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5 48334 fi 48335 ALSA=$depdir 48336 if test "x$theroot" != x; then 48337 ALSA="$theroot" 48338 fi 48339 if test "x$thecflags" != x; then 48340 ALSA_CFLAGS="$thecflags" 48341 fi 48342 if test "x$thelibs" != x; then 48343 ALSA_LIBS="$thelibs" 48344 fi 48345 ALSA_FOUND=yes 48346 else ALSA_FOUND=no 48347 48348 fi 48349 else ALSA_FOUND=no 48350 48351 fi 48352 48353 fi 48354 # Do not try pkg-config if we have a sysroot set. 48355 if test "x$SYSROOT" = x; then 48356 if test "x$ALSA_FOUND" = xno; then 48357 48358 pkg_failed=no 48359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 48360 $as_echo_n "checking for ALSA... " >&6; } 48361 48362 if test -n "$ALSA_CFLAGS"; then 48363 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 48364 elif test -n "$PKG_CONFIG"; then 48365 if test -n "$PKG_CONFIG" && \ 48366 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 48367 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 48368 ac_status=$? 48369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48370 test $ac_status = 0; }; then 48371 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 48372 else 48373 pkg_failed=yes 48374 fi 48375 else 48376 pkg_failed=untried 48377 fi 48378 if test -n "$ALSA_LIBS"; then 48379 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 48380 elif test -n "$PKG_CONFIG"; then 48381 if test -n "$PKG_CONFIG" && \ 48382 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 48383 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 48384 ac_status=$? 48385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48386 test $ac_status = 0; }; then 48387 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 48388 else 48389 pkg_failed=yes 48390 fi 48391 else 48392 pkg_failed=untried 48393 fi 48394 48395 48396 48397 if test $pkg_failed = yes; then 48398 48399 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 48400 _pkg_short_errors_supported=yes 48401 else 48402 _pkg_short_errors_supported=no 48403 fi 48404 if test $_pkg_short_errors_supported = yes; then 48405 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 48406 else 48407 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 48408 fi 48409 # Put the nasty error message in config.log where it belongs 48410 echo "$ALSA_PKG_ERRORS" >&5 48411 48412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48413 $as_echo "no" >&6; } 48414 ALSA_FOUND=no 48415 elif test $pkg_failed = untried; then 48416 ALSA_FOUND=no 48417 else 48418 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 48419 ALSA_LIBS=$pkg_cv_ALSA_LIBS 48420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48421 $as_echo "yes" >&6; } 48422 ALSA_FOUND=yes 48423 fi 48424 fi 48425 fi 48426 if test "x$ALSA_FOUND" = xno; then 48427 for ac_header in alsa/asoundlib.h 48428 do : 48429 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 48430 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 48431 cat >>confdefs.h <<_ACEOF 48432 #define HAVE_ALSA_ASOUNDLIB_H 1 48433 _ACEOF 48434 48435 ALSA_FOUND=yes 48436 ALSA_CFLAGS=-Iignoreme 48437 ALSA_LIBS=-lasound 48438 DEFAULT_ALSA=yes 48439 48440 else 48441 ALSA_FOUND=no 48442 fi 48443 48444 done 48445 48446 fi 48447 if test "x$ALSA_FOUND" = xno; then 48448 48449 # Print a helpful message on how to acquire the necessary build dependency. 48450 # alsa is the help tag: freetype, cups, pulse, alsa etc 48451 MISSING_DEPENDENCY=alsa 48452 48453 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48454 cygwin_help $MISSING_DEPENDENCY 48455 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48456 msys_help $MISSING_DEPENDENCY 48457 else 48458 PKGHANDLER_COMMAND= 48459 48460 case $PKGHANDLER in 48461 apt-get) 48462 apt_help $MISSING_DEPENDENCY ;; 48463 yum) 48464 yum_help $MISSING_DEPENDENCY ;; 48465 port) 48466 port_help $MISSING_DEPENDENCY ;; 48467 pkgutil) 48468 pkgutil_help $MISSING_DEPENDENCY ;; 48469 pkgadd) 48470 pkgadd_help $MISSING_DEPENDENCY ;; 48471 esac 48472 48473 if test "x$PKGHANDLER_COMMAND" != x; then 48474 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48475 fi 48476 fi 48477 48478 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5 48479 fi 48480 fi 48481 48482 48483 48484 48485 48486 48487 # Check whether --with-fontconfig was given. 48488 if test "${with_fontconfig+set}" = set; then : 48489 withval=$with_fontconfig; 48490 fi 48491 48492 48493 # Check whether --with-fontconfig-include was given. 48494 if test "${with_fontconfig_include+set}" = set; then : 48495 withval=$with_fontconfig_include; 48496 fi 48497 48498 48499 if test "x$FONTCONFIG_NOT_NEEDED" = xyes; then 48500 if (test "x${with_fontconfig}" != x && test "x${with_fontconfig}" != xno) || \ 48501 (test "x${with_fontconfig_include}" != x && test "x${with_fontconfig_include}" != xno); then 48502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fontconfig not used, so --with-fontconfig[-*] is ignored" >&5 48503 $as_echo "$as_me: WARNING: fontconfig not used, so --with-fontconfig[-*] is ignored" >&2;} 48504 fi 48505 FONTCONFIG_CFLAGS= 48506 else 48507 FONTCONFIG_FOUND=no 48508 48509 if test "x${with_fontconfig}" = xno || test "x${with_fontconfig_include}" = xno; then 48510 as_fn_error $? "It is not possible to disable the use of fontconfig. Remove the --without-fontconfig option." "$LINENO" 5 48511 fi 48512 48513 if test "x${with_fontconfig}" != x; then 48514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig headers" >&5 48515 $as_echo_n "checking for fontconfig headers... " >&6; } 48516 if test -s "${with_fontconfig}/include/fontconfig/fontconfig.h"; then 48517 FONTCONFIG_CFLAGS="-I${with_fontconfig}/include" 48518 FONTCONFIG_FOUND=yes 48519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_FOUND" >&5 48520 $as_echo "$FONTCONFIG_FOUND" >&6; } 48521 else 48522 as_fn_error $? "Can't find 'include/fontconfig/fontconfig.h' under ${with_fontconfig} given with the --with-fontconfig option." "$LINENO" 5 48523 fi 48524 fi 48525 if test "x${with_fontconfig_include}" != x; then 48526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig headers" >&5 48527 $as_echo_n "checking for fontconfig headers... " >&6; } 48528 if test -s "${with_fontconfig_include}/fontconfig/fontconfig.h"; then 48529 FONTCONFIG_CFLAGS="-I${with_fontconfig_include}" 48530 FONTCONFIG_FOUND=yes 48531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_FOUND" >&5 48532 $as_echo "$FONTCONFIG_FOUND" >&6; } 48533 else 48534 as_fn_error $? "Can't find 'fontconfig/fontconfig.h' under ${with_fontconfig_include} given with the --with-fontconfig-include option." "$LINENO" 5 48535 fi 48536 fi 48537 if test "x$FONTCONFIG_FOUND" = xno; then 48538 # Are the fontconfig headers installed in the default /usr/include location? 48539 for ac_header in fontconfig/fontconfig.h 48540 do : 48541 ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default" 48542 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then : 48543 cat >>confdefs.h <<_ACEOF 48544 #define HAVE_FONTCONFIG_FONTCONFIG_H 1 48545 _ACEOF 48546 48547 FONTCONFIG_FOUND=yes 48548 FONTCONFIG_CFLAGS= 48549 DEFAULT_FONTCONFIG=yes 48550 48551 fi 48552 48553 done 48554 48555 fi 48556 if test "x$FONTCONFIG_FOUND" = xno; then 48557 48558 # Print a helpful message on how to acquire the necessary build dependency. 48559 # fontconfig is the help tag: freetype, cups, pulse, alsa etc 48560 MISSING_DEPENDENCY=fontconfig 48561 48562 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48563 cygwin_help $MISSING_DEPENDENCY 48564 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48565 msys_help $MISSING_DEPENDENCY 48566 else 48567 PKGHANDLER_COMMAND= 48568 48569 case $PKGHANDLER in 48570 apt-get) 48571 apt_help $MISSING_DEPENDENCY ;; 48572 yum) 48573 yum_help $MISSING_DEPENDENCY ;; 48574 port) 48575 port_help $MISSING_DEPENDENCY ;; 48576 pkgutil) 48577 pkgutil_help $MISSING_DEPENDENCY ;; 48578 pkgadd) 48579 pkgadd_help $MISSING_DEPENDENCY ;; 48580 esac 48581 48582 if test "x$PKGHANDLER_COMMAND" != x; then 48583 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48584 fi 48585 fi 48586 48587 as_fn_error $? "Could not find fontconfig! $HELP_MSG " "$LINENO" 5 48588 fi 48589 fi 48590 48591 48592 48593 48594 48595 ############################################################################### 48596 # 48597 # Check for the jpeg library 48598 # 48599 48600 USE_EXTERNAL_LIBJPEG=true 48601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5 48602 $as_echo_n "checking for main in -ljpeg... " >&6; } 48603 if ${ac_cv_lib_jpeg_main+:} false; then : 48604 $as_echo_n "(cached) " >&6 48605 else 48606 ac_check_lib_save_LIBS=$LIBS 48607 LIBS="-ljpeg $LIBS" 48608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48609 /* end confdefs.h. */ 48610 48611 48612 int 48613 main () 48614 { 48615 return main (); 48616 ; 48617 return 0; 48618 } 48619 _ACEOF 48620 if ac_fn_cxx_try_link "$LINENO"; then : 48621 ac_cv_lib_jpeg_main=yes 48622 else 48623 ac_cv_lib_jpeg_main=no 48624 fi 48625 rm -f core conftest.err conftest.$ac_objext \ 48626 conftest$ac_exeext conftest.$ac_ext 48627 LIBS=$ac_check_lib_save_LIBS 48628 fi 48629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5 48630 $as_echo "$ac_cv_lib_jpeg_main" >&6; } 48631 if test "x$ac_cv_lib_jpeg_main" = xyes; then : 48632 cat >>confdefs.h <<_ACEOF 48633 #define HAVE_LIBJPEG 1 48634 _ACEOF 48635 48636 LIBS="-ljpeg $LIBS" 48637 48638 else 48639 USE_EXTERNAL_LIBJPEG=false 48640 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5 48641 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;} 48642 48643 fi 48644 48645 48646 48647 ############################################################################### 48648 # 48649 # Check for the gif library 48650 # 48651 48652 48653 # Check whether --with-giflib was given. 48654 if test "${with_giflib+set}" = set; then : 48655 withval=$with_giflib; 48656 fi 48657 48658 48659 48660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 48661 $as_echo_n "checking for which giflib to use... " >&6; } 48662 48663 # default is bundled 48664 DEFAULT_GIFLIB=bundled 48665 48666 # 48667 # if user didn't specify, use DEFAULT_GIFLIB 48668 # 48669 if test "x${with_giflib}" = "x"; then 48670 with_giflib=${DEFAULT_GIFLIB} 48671 fi 48672 48673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 48674 $as_echo "${with_giflib}" >&6; } 48675 48676 if test "x${with_giflib}" = "xbundled"; then 48677 USE_EXTERNAL_LIBGIF=false 48678 elif test "x${with_giflib}" = "xsystem"; then 48679 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 48680 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 48681 48682 else 48683 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 48684 fi 48685 48686 48687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 48688 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 48689 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 48690 $as_echo_n "(cached) " >&6 48691 else 48692 ac_check_lib_save_LIBS=$LIBS 48693 LIBS="-lgif $LIBS" 48694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48695 /* end confdefs.h. */ 48696 48697 /* Override any GCC internal prototype to avoid an error. 48698 Use char because int might match the return type of a GCC 48699 builtin and then its argument prototype would still apply. */ 48700 #ifdef __cplusplus 48701 extern "C" 48702 #endif 48703 char DGifGetCode (); 48704 int 48705 main () 48706 { 48707 return DGifGetCode (); 48708 ; 48709 return 0; 48710 } 48711 _ACEOF 48712 if ac_fn_cxx_try_link "$LINENO"; then : 48713 ac_cv_lib_gif_DGifGetCode=yes 48714 else 48715 ac_cv_lib_gif_DGifGetCode=no 48716 fi 48717 rm -f core conftest.err conftest.$ac_objext \ 48718 conftest$ac_exeext conftest.$ac_ext 48719 LIBS=$ac_check_lib_save_LIBS 48720 fi 48721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 48722 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 48723 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 48724 cat >>confdefs.h <<_ACEOF 48725 #define HAVE_LIBGIF 1 48726 _ACEOF 48727 48728 LIBS="-lgif $LIBS" 48729 48730 else 48731 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 48732 fi 48733 48734 48735 USE_EXTERNAL_LIBGIF=true 48736 else 48737 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 48738 fi 48739 48740 48741 ############################################################################### 48742 # 48743 # Check for the zlib library 48744 # 48745 48746 48747 # Check whether --with-zlib was given. 48748 if test "${with_zlib+set}" = set; then : 48749 withval=$with_zlib; 48750 fi 48751 48752 48753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 48754 $as_echo_n "checking for compress in -lz... " >&6; } 48755 if ${ac_cv_lib_z_compress+:} false; then : 48756 $as_echo_n "(cached) " >&6 48757 else 48758 ac_check_lib_save_LIBS=$LIBS 48759 LIBS="-lz $LIBS" 48760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48761 /* end confdefs.h. */ 48762 48763 /* Override any GCC internal prototype to avoid an error. 48764 Use char because int might match the return type of a GCC 48765 builtin and then its argument prototype would still apply. */ 48766 #ifdef __cplusplus 48767 extern "C" 48768 #endif 48769 char compress (); 48770 int 48771 main () 48772 { 48773 return compress (); 48774 ; 48775 return 0; 48776 } 48777 _ACEOF 48778 if ac_fn_cxx_try_link "$LINENO"; then : 48779 ac_cv_lib_z_compress=yes 48780 else 48781 ac_cv_lib_z_compress=no 48782 fi 48783 rm -f core conftest.err conftest.$ac_objext \ 48784 conftest$ac_exeext conftest.$ac_ext 48785 LIBS=$ac_check_lib_save_LIBS 48786 fi 48787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 48788 $as_echo "$ac_cv_lib_z_compress" >&6; } 48789 if test "x$ac_cv_lib_z_compress" = xyes; then : 48790 ZLIB_FOUND=yes 48791 else 48792 ZLIB_FOUND=no 48793 fi 48794 48795 48796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 48797 $as_echo_n "checking for which zlib to use... " >&6; } 48798 48799 DEFAULT_ZLIB=bundled 48800 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 48801 # 48802 # On macosx default is system...on others default is 48803 # 48804 DEFAULT_ZLIB=system 48805 fi 48806 48807 if test "x${ZLIB_FOUND}" != "xyes"; then 48808 # 48809 # If we don't find any system...set default to bundled 48810 # 48811 DEFAULT_ZLIB=bundled 48812 fi 48813 48814 # 48815 # If user didn't specify, use DEFAULT_ZLIB 48816 # 48817 if test "x${with_zlib}" = "x"; then 48818 with_zlib=${DEFAULT_ZLIB} 48819 fi 48820 48821 if test "x${with_zlib}" = "xbundled"; then 48822 USE_EXTERNAL_LIBZ=false 48823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 48824 $as_echo "bundled" >&6; } 48825 elif test "x${with_zlib}" = "xsystem"; then 48826 if test "x${ZLIB_FOUND}" = "xyes"; then 48827 USE_EXTERNAL_LIBZ=true 48828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 48829 $as_echo "system" >&6; } 48830 else 48831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 48832 $as_echo "system not found" >&6; } 48833 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 48834 fi 48835 else 48836 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 48837 fi 48838 48839 48840 48841 ############################################################################### 48842 LIBZIP_CAN_USE_MMAP=true 48843 48844 48845 48846 ############################################################################### 48847 # 48848 # Check if altzone exists in time.h 48849 # 48850 48851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48852 /* end confdefs.h. */ 48853 #include <time.h> 48854 int 48855 main () 48856 { 48857 return (int)altzone; 48858 ; 48859 return 0; 48860 } 48861 _ACEOF 48862 if ac_fn_cxx_try_link "$LINENO"; then : 48863 has_altzone=yes 48864 else 48865 has_altzone=no 48866 fi 48867 rm -f core conftest.err conftest.$ac_objext \ 48868 conftest$ac_exeext conftest.$ac_ext 48869 if test "x$has_altzone" = xyes; then 48870 48871 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 48872 48873 fi 48874 48875 ############################################################################### 48876 # 48877 # Check the maths library 48878 # 48879 48880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 48881 $as_echo_n "checking for cos in -lm... " >&6; } 48882 if ${ac_cv_lib_m_cos+:} false; then : 48883 $as_echo_n "(cached) " >&6 48884 else 48885 ac_check_lib_save_LIBS=$LIBS 48886 LIBS="-lm $LIBS" 48887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48888 /* end confdefs.h. */ 48889 48890 /* Override any GCC internal prototype to avoid an error. 48891 Use char because int might match the return type of a GCC 48892 builtin and then its argument prototype would still apply. */ 48893 #ifdef __cplusplus 48894 extern "C" 48895 #endif 48896 char cos (); 48897 int 48898 main () 48899 { 48900 return cos (); 48901 ; 48902 return 0; 48903 } 48904 _ACEOF 48905 if ac_fn_cxx_try_link "$LINENO"; then : 48906 ac_cv_lib_m_cos=yes 48907 else 48908 ac_cv_lib_m_cos=no 48909 fi 48910 rm -f core conftest.err conftest.$ac_objext \ 48911 conftest$ac_exeext conftest.$ac_ext 48912 LIBS=$ac_check_lib_save_LIBS 48913 fi 48914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 48915 $as_echo "$ac_cv_lib_m_cos" >&6; } 48916 if test "x$ac_cv_lib_m_cos" = xyes; then : 48917 cat >>confdefs.h <<_ACEOF 48918 #define HAVE_LIBM 1 48919 _ACEOF 48920 48921 LIBS="-lm $LIBS" 48922 48923 else 48924 48925 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 48926 $as_echo "$as_me: Maths library was not found" >&6;} 48927 48928 48929 fi 48930 48931 48932 48933 ############################################################################### 48934 # 48935 # Check for libdl.so 48936 48937 save_LIBS="$LIBS" 48938 LIBS="" 48939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 48940 $as_echo_n "checking for dlopen in -ldl... " >&6; } 48941 if ${ac_cv_lib_dl_dlopen+:} false; then : 48942 $as_echo_n "(cached) " >&6 48943 else 48944 ac_check_lib_save_LIBS=$LIBS 48945 LIBS="-ldl $LIBS" 48946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48947 /* end confdefs.h. */ 48948 48949 /* Override any GCC internal prototype to avoid an error. 48950 Use char because int might match the return type of a GCC 48951 builtin and then its argument prototype would still apply. */ 48952 #ifdef __cplusplus 48953 extern "C" 48954 #endif 48955 char dlopen (); 48956 int 48957 main () 48958 { 48959 return dlopen (); 48960 ; 48961 return 0; 48962 } 48963 _ACEOF 48964 if ac_fn_cxx_try_link "$LINENO"; then : 48965 ac_cv_lib_dl_dlopen=yes 48966 else 48967 ac_cv_lib_dl_dlopen=no 48968 fi 48969 rm -f core conftest.err conftest.$ac_objext \ 48970 conftest$ac_exeext conftest.$ac_ext 48971 LIBS=$ac_check_lib_save_LIBS 48972 fi 48973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 48974 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 48975 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 48976 cat >>confdefs.h <<_ACEOF 48977 #define HAVE_LIBDL 1 48978 _ACEOF 48979 48980 LIBS="-ldl $LIBS" 48981 48982 fi 48983 48984 LIBDL="$LIBS" 48985 48986 LIBS="$save_LIBS" 48987 48988 48989 ############################################################################### 48990 # 48991 # statically link libstdc++ before C++ ABI is stablized on Linux unless 48992 # dynamic build is configured on command line. 48993 # 48994 48995 # Check whether --with-stdc++lib was given. 48996 if test "${with_stdc__lib+set}" = set; then : 48997 withval=$with_stdc__lib; 48998 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 48999 && test "x$with_stdc__lib" != xdefault; then 49000 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 49001 fi 49002 49003 else 49004 with_stdc__lib=default 49005 49006 fi 49007 49008 49009 if test "x$OPENJDK_TARGET_OS" = xlinux; then 49010 # Test if -lstdc++ works. 49011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 49012 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 49013 ac_ext=cpp 49014 ac_cpp='$CXXCPP $CPPFLAGS' 49015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49018 49019 OLD_CXXFLAGS="$CXXFLAGS" 49020 CXXFLAGS="$CXXFLAGS -lstdc++" 49021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49022 /* end confdefs.h. */ 49023 49024 int 49025 main () 49026 { 49027 return 0; 49028 ; 49029 return 0; 49030 } 49031 _ACEOF 49032 if ac_fn_cxx_try_link "$LINENO"; then : 49033 has_dynamic_libstdcxx=yes 49034 else 49035 has_dynamic_libstdcxx=no 49036 fi 49037 rm -f core conftest.err conftest.$ac_objext \ 49038 conftest$ac_exeext conftest.$ac_ext 49039 CXXFLAGS="$OLD_CXXFLAGS" 49040 ac_ext=cpp 49041 ac_cpp='$CXXCPP $CPPFLAGS' 49042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49045 49046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 49047 $as_echo "$has_dynamic_libstdcxx" >&6; } 49048 49049 # Test if stdc++ can be linked statically. 49050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 49051 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 49052 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 49053 ac_ext=cpp 49054 ac_cpp='$CXXCPP $CPPFLAGS' 49055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49058 49059 OLD_LIBS="$LIBS" 49060 OLD_CXX="$CXX" 49061 LIBS="$STATIC_STDCXX_FLAGS" 49062 CXX="$CC" 49063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49064 /* end confdefs.h. */ 49065 49066 int 49067 main () 49068 { 49069 return 0; 49070 ; 49071 return 0; 49072 } 49073 _ACEOF 49074 if ac_fn_cxx_try_link "$LINENO"; then : 49075 has_static_libstdcxx=yes 49076 else 49077 has_static_libstdcxx=no 49078 fi 49079 rm -f core conftest.err conftest.$ac_objext \ 49080 conftest$ac_exeext conftest.$ac_ext 49081 LIBS="$OLD_LIBS" 49082 CXX="$OLD_CXX" 49083 ac_ext=cpp 49084 ac_cpp='$CXXCPP $CPPFLAGS' 49085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49088 49089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 49090 $as_echo "$has_static_libstdcxx" >&6; } 49091 49092 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 49093 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 49094 fi 49095 49096 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 49097 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 49098 fi 49099 49100 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 49101 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 49102 fi 49103 49104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 49105 $as_echo_n "checking how to link with libstdc++... " >&6; } 49106 # If dynamic was requested, it's available since it would fail above otherwise. 49107 # If dynamic wasn't requested, go with static unless it isn't available. 49108 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49109 LIBCXX="$LIBCXX -lstdc++" 49110 LDCXX="$CXX" 49111 STATIC_CXX_SETTING="STATIC_CXX=false" 49112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 49113 $as_echo "dynamic" >&6; } 49114 else 49115 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 49116 LDCXX="$CC" 49117 STATIC_CXX_SETTING="STATIC_CXX=true" 49118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 49119 $as_echo "static" >&6; } 49120 fi 49121 fi 49122 49123 49124 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49125 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 49126 49127 pkg_failed=no 49128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 49129 $as_echo_n "checking for LIBFFI... " >&6; } 49130 49131 if test -n "$LIBFFI_CFLAGS"; then 49132 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 49133 elif test -n "$PKG_CONFIG"; then 49134 if test -n "$PKG_CONFIG" && \ 49135 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 49136 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 49137 ac_status=$? 49138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49139 test $ac_status = 0; }; then 49140 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 49141 else 49142 pkg_failed=yes 49143 fi 49144 else 49145 pkg_failed=untried 49146 fi 49147 if test -n "$LIBFFI_LIBS"; then 49148 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 49149 elif test -n "$PKG_CONFIG"; then 49150 if test -n "$PKG_CONFIG" && \ 49151 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 49152 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 49153 ac_status=$? 49154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49155 test $ac_status = 0; }; then 49156 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 49157 else 49158 pkg_failed=yes 49159 fi 49160 else 49161 pkg_failed=untried 49162 fi 49163 49164 49165 49166 if test $pkg_failed = yes; then 49167 49168 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 49169 _pkg_short_errors_supported=yes 49170 else 49171 _pkg_short_errors_supported=no 49172 fi 49173 if test $_pkg_short_errors_supported = yes; then 49174 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 49175 else 49176 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 49177 fi 49178 # Put the nasty error message in config.log where it belongs 49179 echo "$LIBFFI_PKG_ERRORS" >&5 49180 49181 as_fn_error $? "Package requirements (libffi) were not met: 49182 49183 $LIBFFI_PKG_ERRORS 49184 49185 Consider adjusting the PKG_CONFIG_PATH environment variable if you 49186 installed software in a non-standard prefix. 49187 49188 Alternatively, you may set the environment variables LIBFFI_CFLAGS 49189 and LIBFFI_LIBS to avoid the need to call pkg-config. 49190 See the pkg-config man page for more details. 49191 " "$LINENO" 5 49192 elif test $pkg_failed = untried; then 49193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 49194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 49195 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 49196 is in your PATH or set the PKG_CONFIG environment variable to the full 49197 path to pkg-config. 49198 49199 Alternatively, you may set the environment variables LIBFFI_CFLAGS 49200 and LIBFFI_LIBS to avoid the need to call pkg-config. 49201 See the pkg-config man page for more details. 49202 49203 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 49204 See \`config.log' for more details" "$LINENO" 5; } 49205 else 49206 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 49207 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 49208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49209 $as_echo "yes" >&6; } 49210 : 49211 fi 49212 49213 fi 49214 49215 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49216 # Extract the first word of "llvm-config", so it can be a program name with args. 49217 set dummy llvm-config; ac_word=$2 49218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49219 $as_echo_n "checking for $ac_word... " >&6; } 49220 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 49221 $as_echo_n "(cached) " >&6 49222 else 49223 if test -n "$LLVM_CONFIG"; then 49224 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 49225 else 49226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49227 for as_dir in $PATH 49228 do 49229 IFS=$as_save_IFS 49230 test -z "$as_dir" && as_dir=. 49231 for ac_exec_ext in '' $ac_executable_extensions; do 49232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49233 ac_cv_prog_LLVM_CONFIG="llvm-config" 49234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49235 break 2 49236 fi 49237 done 49238 done 49239 IFS=$as_save_IFS 49240 49241 fi 49242 fi 49243 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 49244 if test -n "$LLVM_CONFIG"; then 49245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 49246 $as_echo "$LLVM_CONFIG" >&6; } 49247 else 49248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49249 $as_echo "no" >&6; } 49250 fi 49251 49252 49253 49254 if test "x$LLVM_CONFIG" != xllvm-config; then 49255 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 49256 fi 49257 49258 llvm_components="jit mcjit engine nativecodegen native" 49259 unset LLVM_CFLAGS 49260 for flag in $("$LLVM_CONFIG" --cxxflags); do 49261 if echo "${flag}" | grep -q '^-[ID]'; then 49262 if test "${flag}" != "-D_DEBUG" ; then 49263 if test "${LLVM_CFLAGS}" != "" ; then 49264 LLVM_CFLAGS="${LLVM_CFLAGS} " 49265 fi 49266 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 49267 fi 49268 fi 49269 done 49270 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') 49271 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 49272 49273 unset LLVM_LDFLAGS 49274 for flag in $("${LLVM_CONFIG}" --ldflags); do 49275 if echo "${flag}" | grep -q '^-L'; then 49276 if test "${LLVM_LDFLAGS}" != ""; then 49277 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 49278 fi 49279 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 49280 fi 49281 done 49282 49283 unset LLVM_LIBS 49284 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 49285 if echo "${flag}" | grep -q '^-l'; then 49286 if test "${LLVM_LIBS}" != ""; then 49287 LLVM_LIBS="${LLVM_LIBS} " 49288 fi 49289 LLVM_LIBS="${LLVM_LIBS}${flag}" 49290 fi 49291 done 49292 49293 49294 49295 49296 fi 49297 49298 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 49299 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 49300 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 49301 fi 49302 49303 # TODO better (platform agnostic) test 49304 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then 49305 LIBCXX="-lstdc++" 49306 fi 49307 49308 49309 49310 49311 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 49312 49313 49314 # Check whether --with-msvcr-dll was given. 49315 if test "${with_msvcr_dll+set}" = set; then : 49316 withval=$with_msvcr_dll; 49317 fi 49318 49319 49320 if test "x$with_msvcr_dll" != x; then 49321 # If given explicitely by user, do not probe. If not present, fail directly. 49322 49323 DLL_NAME="$MSVCR_NAME" 49324 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 49325 METHOD="--with-msvcr-dll" 49326 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49327 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49328 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49329 49330 # Need to check if the found msvcr is correct architecture 49331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49332 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49333 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49334 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49335 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49336 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49337 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49338 CORRECT_MSVCR_ARCH="PE32 executable" 49339 else 49340 CORRECT_MSVCR_ARCH="PE32+ executable" 49341 fi 49342 else 49343 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49344 CORRECT_MSVCR_ARCH=386 49345 else 49346 CORRECT_MSVCR_ARCH=x86-64 49347 fi 49348 fi 49349 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49351 $as_echo "ok" >&6; } 49352 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49353 49354 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49355 49356 # Input might be given as Windows format, start by converting to 49357 # unix format. 49358 path="$MSVC_DLL" 49359 new_path=`$CYGPATH -u "$path"` 49360 49361 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49362 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49363 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49364 # "foo.exe" is OK but "foo" is an error. 49365 # 49366 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49367 # It is also a way to make sure we got the proper file name for the real test later on. 49368 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49369 if test "x$test_shortpath" = x; then 49370 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49371 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49372 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49373 fi 49374 49375 # Call helper function which possibly converts this using DOS-style short mode. 49376 # If so, the updated path is stored in $new_path. 49377 49378 input_path="$new_path" 49379 # Check if we need to convert this using DOS-style short mode. If the path 49380 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49381 # take no chances and rewrite it. 49382 # Note: m4 eats our [], so we need to use [ and ] instead. 49383 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49384 if test "x$has_forbidden_chars" != x; then 49385 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49386 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49387 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49388 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49389 # Going to short mode and back again did indeed matter. Since short mode is 49390 # case insensitive, let's make it lowercase to improve readability. 49391 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49392 # Now convert it back to Unix-style (cygpath) 49393 input_path=`$CYGPATH -u "$shortmode_path"` 49394 new_path="$input_path" 49395 fi 49396 fi 49397 49398 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49399 if test "x$test_cygdrive_prefix" = x; then 49400 # As a simple fix, exclude /usr/bin since it's not a real path. 49401 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49402 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49403 # a path prefixed by /cygdrive for fixpath to work. 49404 new_path="$CYGWIN_ROOT_PATH$input_path" 49405 fi 49406 fi 49407 49408 49409 if test "x$path" != "x$new_path"; then 49410 MSVC_DLL="$new_path" 49411 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49412 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49413 fi 49414 49415 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49416 49417 path="$MSVC_DLL" 49418 has_colon=`$ECHO $path | $GREP ^.:` 49419 new_path="$path" 49420 if test "x$has_colon" = x; then 49421 # Not in mixed or Windows style, start by that. 49422 new_path=`cmd //c echo $path` 49423 fi 49424 49425 49426 input_path="$new_path" 49427 # Check if we need to convert this using DOS-style short mode. If the path 49428 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49429 # take no chances and rewrite it. 49430 # Note: m4 eats our [], so we need to use [ and ] instead. 49431 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49432 if test "x$has_forbidden_chars" != x; then 49433 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49434 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49435 fi 49436 49437 49438 windows_path="$new_path" 49439 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49440 unix_path=`$CYGPATH -u "$windows_path"` 49441 new_path="$unix_path" 49442 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49443 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49444 new_path="$unix_path" 49445 fi 49446 49447 if test "x$path" != "x$new_path"; then 49448 MSVC_DLL="$new_path" 49449 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49450 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49451 fi 49452 49453 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49454 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49455 49456 else 49457 # We're on a posix platform. Hooray! :) 49458 path="$MSVC_DLL" 49459 has_space=`$ECHO "$path" | $GREP " "` 49460 if test "x$has_space" != x; then 49461 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49462 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49463 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49464 fi 49465 49466 # Use eval to expand a potential ~ 49467 eval path="$path" 49468 if test ! -f "$path" && test ! -d "$path"; then 49469 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49470 fi 49471 49472 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49473 fi 49474 49475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49476 $as_echo_n "checking for $DLL_NAME... " >&6; } 49477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49478 $as_echo "$MSVC_DLL" >&6; } 49479 else 49480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49481 $as_echo "incorrect, ignoring" >&6; } 49482 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49483 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49484 fi 49485 fi 49486 49487 if test "x$MSVC_DLL" = x; then 49488 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 49489 fi 49490 MSVCR_DLL="$MSVC_DLL" 49491 elif test "x$DEVKIT_MSVCR_DLL" != x; then 49492 49493 DLL_NAME="$MSVCR_NAME" 49494 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCR_DLL" 49495 METHOD="devkit" 49496 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49497 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49498 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49499 49500 # Need to check if the found msvcr is correct architecture 49501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49502 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49503 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49504 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49505 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49506 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49507 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49508 CORRECT_MSVCR_ARCH="PE32 executable" 49509 else 49510 CORRECT_MSVCR_ARCH="PE32+ executable" 49511 fi 49512 else 49513 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49514 CORRECT_MSVCR_ARCH=386 49515 else 49516 CORRECT_MSVCR_ARCH=x86-64 49517 fi 49518 fi 49519 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49521 $as_echo "ok" >&6; } 49522 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49523 49524 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49525 49526 # Input might be given as Windows format, start by converting to 49527 # unix format. 49528 path="$MSVC_DLL" 49529 new_path=`$CYGPATH -u "$path"` 49530 49531 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49532 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49533 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49534 # "foo.exe" is OK but "foo" is an error. 49535 # 49536 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49537 # It is also a way to make sure we got the proper file name for the real test later on. 49538 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49539 if test "x$test_shortpath" = x; then 49540 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49541 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49542 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49543 fi 49544 49545 # Call helper function which possibly converts this using DOS-style short mode. 49546 # If so, the updated path is stored in $new_path. 49547 49548 input_path="$new_path" 49549 # Check if we need to convert this using DOS-style short mode. If the path 49550 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49551 # take no chances and rewrite it. 49552 # Note: m4 eats our [], so we need to use [ and ] instead. 49553 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49554 if test "x$has_forbidden_chars" != x; then 49555 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49556 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49557 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49558 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49559 # Going to short mode and back again did indeed matter. Since short mode is 49560 # case insensitive, let's make it lowercase to improve readability. 49561 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49562 # Now convert it back to Unix-style (cygpath) 49563 input_path=`$CYGPATH -u "$shortmode_path"` 49564 new_path="$input_path" 49565 fi 49566 fi 49567 49568 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49569 if test "x$test_cygdrive_prefix" = x; then 49570 # As a simple fix, exclude /usr/bin since it's not a real path. 49571 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49572 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49573 # a path prefixed by /cygdrive for fixpath to work. 49574 new_path="$CYGWIN_ROOT_PATH$input_path" 49575 fi 49576 fi 49577 49578 49579 if test "x$path" != "x$new_path"; then 49580 MSVC_DLL="$new_path" 49581 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49582 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49583 fi 49584 49585 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49586 49587 path="$MSVC_DLL" 49588 has_colon=`$ECHO $path | $GREP ^.:` 49589 new_path="$path" 49590 if test "x$has_colon" = x; then 49591 # Not in mixed or Windows style, start by that. 49592 new_path=`cmd //c echo $path` 49593 fi 49594 49595 49596 input_path="$new_path" 49597 # Check if we need to convert this using DOS-style short mode. If the path 49598 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49599 # take no chances and rewrite it. 49600 # Note: m4 eats our [], so we need to use [ and ] instead. 49601 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49602 if test "x$has_forbidden_chars" != x; then 49603 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49604 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49605 fi 49606 49607 49608 windows_path="$new_path" 49609 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49610 unix_path=`$CYGPATH -u "$windows_path"` 49611 new_path="$unix_path" 49612 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49613 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49614 new_path="$unix_path" 49615 fi 49616 49617 if test "x$path" != "x$new_path"; then 49618 MSVC_DLL="$new_path" 49619 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49620 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49621 fi 49622 49623 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49624 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49625 49626 else 49627 # We're on a posix platform. Hooray! :) 49628 path="$MSVC_DLL" 49629 has_space=`$ECHO "$path" | $GREP " "` 49630 if test "x$has_space" != x; then 49631 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49632 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49633 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49634 fi 49635 49636 # Use eval to expand a potential ~ 49637 eval path="$path" 49638 if test ! -f "$path" && test ! -d "$path"; then 49639 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49640 fi 49641 49642 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49643 fi 49644 49645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49646 $as_echo_n "checking for $DLL_NAME... " >&6; } 49647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49648 $as_echo "$MSVC_DLL" >&6; } 49649 else 49650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49651 $as_echo "incorrect, ignoring" >&6; } 49652 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49653 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49654 fi 49655 fi 49656 49657 if test "x$MSVC_DLL" = x; then 49658 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by devkit" "$LINENO" 5 49659 fi 49660 MSVCR_DLL="$MSVC_DLL" 49661 else 49662 49663 DLL_NAME="${MSVCR_NAME}" 49664 MSVC_DLL= 49665 49666 if test "x$MSVC_DLL" = x; then 49667 if test "x$VCINSTALLDIR" != x; then 49668 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 49669 49670 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49671 49672 # Input might be given as Windows format, start by converting to 49673 # unix format. 49674 path="$CYGWIN_VC_INSTALL_DIR" 49675 new_path=`$CYGPATH -u "$path"` 49676 49677 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49678 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49679 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49680 # "foo.exe" is OK but "foo" is an error. 49681 # 49682 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49683 # It is also a way to make sure we got the proper file name for the real test later on. 49684 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49685 if test "x$test_shortpath" = x; then 49686 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&5 49687 $as_echo "$as_me: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&6;} 49688 as_fn_error $? "Cannot locate the the path of CYGWIN_VC_INSTALL_DIR" "$LINENO" 5 49689 fi 49690 49691 # Call helper function which possibly converts this using DOS-style short mode. 49692 # If so, the updated path is stored in $new_path. 49693 49694 input_path="$new_path" 49695 # Check if we need to convert this using DOS-style short mode. If the path 49696 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49697 # take no chances and rewrite it. 49698 # Note: m4 eats our [], so we need to use [ and ] instead. 49699 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49700 if test "x$has_forbidden_chars" != x; then 49701 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49702 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49703 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49704 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49705 # Going to short mode and back again did indeed matter. Since short mode is 49706 # case insensitive, let's make it lowercase to improve readability. 49707 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49708 # Now convert it back to Unix-style (cygpath) 49709 input_path=`$CYGPATH -u "$shortmode_path"` 49710 new_path="$input_path" 49711 fi 49712 fi 49713 49714 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49715 if test "x$test_cygdrive_prefix" = x; then 49716 # As a simple fix, exclude /usr/bin since it's not a real path. 49717 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49718 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49719 # a path prefixed by /cygdrive for fixpath to work. 49720 new_path="$CYGWIN_ROOT_PATH$input_path" 49721 fi 49722 fi 49723 49724 49725 if test "x$path" != "x$new_path"; then 49726 CYGWIN_VC_INSTALL_DIR="$new_path" 49727 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&5 49728 $as_echo "$as_me: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&6;} 49729 fi 49730 49731 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49732 49733 path="$CYGWIN_VC_INSTALL_DIR" 49734 has_colon=`$ECHO $path | $GREP ^.:` 49735 new_path="$path" 49736 if test "x$has_colon" = x; then 49737 # Not in mixed or Windows style, start by that. 49738 new_path=`cmd //c echo $path` 49739 fi 49740 49741 49742 input_path="$new_path" 49743 # Check if we need to convert this using DOS-style short mode. If the path 49744 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49745 # take no chances and rewrite it. 49746 # Note: m4 eats our [], so we need to use [ and ] instead. 49747 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49748 if test "x$has_forbidden_chars" != x; then 49749 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49750 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49751 fi 49752 49753 49754 windows_path="$new_path" 49755 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49756 unix_path=`$CYGPATH -u "$windows_path"` 49757 new_path="$unix_path" 49758 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49759 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49760 new_path="$unix_path" 49761 fi 49762 49763 if test "x$path" != "x$new_path"; then 49764 CYGWIN_VC_INSTALL_DIR="$new_path" 49765 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&5 49766 $as_echo "$as_me: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&6;} 49767 fi 49768 49769 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49770 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49771 49772 else 49773 # We're on a posix platform. Hooray! :) 49774 path="$CYGWIN_VC_INSTALL_DIR" 49775 has_space=`$ECHO "$path" | $GREP " "` 49776 if test "x$has_space" != x; then 49777 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&5 49778 $as_echo "$as_me: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&6;} 49779 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49780 fi 49781 49782 # Use eval to expand a potential ~ 49783 eval path="$path" 49784 if test ! -f "$path" && test ! -d "$path"; then 49785 as_fn_error $? "The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is not found." "$LINENO" 5 49786 fi 49787 49788 CYGWIN_VC_INSTALL_DIR="`cd "$path"; $THEPWDCMD -L`" 49789 fi 49790 49791 if test "$VS_VERSION" -lt 2017; then 49792 # Probe: Using well-known location from Visual Studio 12.0 and older 49793 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49794 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 49795 else 49796 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 49797 fi 49798 else 49799 # Probe: Using well-known location from VS 2017 49800 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49801 POSSIBLE_MSVC_DLL="`ls $CYGWIN_VC_INSTALL_DIR/Redist/MSVC/*/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME`" 49802 else 49803 POSSIBLE_MSVC_DLL="`ls $CYGWIN_VC_INSTALL_DIR/Redist/MSVC/*/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME`" 49804 fi 49805 fi 49806 # In case any of the above finds more than one file, loop over them. 49807 for possible_msvc_dll in $POSSIBLE_MSVC_DLL; do 49808 $ECHO "POSSIBLE_MSVC_DLL $possible_msvc_dll" 49809 49810 DLL_NAME="$DLL_NAME" 49811 POSSIBLE_MSVC_DLL="$possible_msvc_dll" 49812 METHOD="well-known location in VCINSTALLDIR" 49813 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49814 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49815 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49816 49817 # Need to check if the found msvcr is correct architecture 49818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49819 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49820 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49821 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49822 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49823 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49824 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49825 CORRECT_MSVCR_ARCH="PE32 executable" 49826 else 49827 CORRECT_MSVCR_ARCH="PE32+ executable" 49828 fi 49829 else 49830 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49831 CORRECT_MSVCR_ARCH=386 49832 else 49833 CORRECT_MSVCR_ARCH=x86-64 49834 fi 49835 fi 49836 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49838 $as_echo "ok" >&6; } 49839 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49840 49841 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49842 49843 # Input might be given as Windows format, start by converting to 49844 # unix format. 49845 path="$MSVC_DLL" 49846 new_path=`$CYGPATH -u "$path"` 49847 49848 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49849 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49850 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49851 # "foo.exe" is OK but "foo" is an error. 49852 # 49853 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49854 # It is also a way to make sure we got the proper file name for the real test later on. 49855 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49856 if test "x$test_shortpath" = x; then 49857 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49858 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49859 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49860 fi 49861 49862 # Call helper function which possibly converts this using DOS-style short mode. 49863 # If so, the updated path is stored in $new_path. 49864 49865 input_path="$new_path" 49866 # Check if we need to convert this using DOS-style short mode. If the path 49867 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49868 # take no chances and rewrite it. 49869 # Note: m4 eats our [], so we need to use [ and ] instead. 49870 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49871 if test "x$has_forbidden_chars" != x; then 49872 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49873 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49874 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49875 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49876 # Going to short mode and back again did indeed matter. Since short mode is 49877 # case insensitive, let's make it lowercase to improve readability. 49878 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49879 # Now convert it back to Unix-style (cygpath) 49880 input_path=`$CYGPATH -u "$shortmode_path"` 49881 new_path="$input_path" 49882 fi 49883 fi 49884 49885 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49886 if test "x$test_cygdrive_prefix" = x; then 49887 # As a simple fix, exclude /usr/bin since it's not a real path. 49888 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49889 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49890 # a path prefixed by /cygdrive for fixpath to work. 49891 new_path="$CYGWIN_ROOT_PATH$input_path" 49892 fi 49893 fi 49894 49895 49896 if test "x$path" != "x$new_path"; then 49897 MSVC_DLL="$new_path" 49898 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49899 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49900 fi 49901 49902 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49903 49904 path="$MSVC_DLL" 49905 has_colon=`$ECHO $path | $GREP ^.:` 49906 new_path="$path" 49907 if test "x$has_colon" = x; then 49908 # Not in mixed or Windows style, start by that. 49909 new_path=`cmd //c echo $path` 49910 fi 49911 49912 49913 input_path="$new_path" 49914 # Check if we need to convert this using DOS-style short mode. If the path 49915 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49916 # take no chances and rewrite it. 49917 # Note: m4 eats our [], so we need to use [ and ] instead. 49918 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49919 if test "x$has_forbidden_chars" != x; then 49920 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49921 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49922 fi 49923 49924 49925 windows_path="$new_path" 49926 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49927 unix_path=`$CYGPATH -u "$windows_path"` 49928 new_path="$unix_path" 49929 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49930 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49931 new_path="$unix_path" 49932 fi 49933 49934 if test "x$path" != "x$new_path"; then 49935 MSVC_DLL="$new_path" 49936 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49937 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49938 fi 49939 49940 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49941 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49942 49943 else 49944 # We're on a posix platform. Hooray! :) 49945 path="$MSVC_DLL" 49946 has_space=`$ECHO "$path" | $GREP " "` 49947 if test "x$has_space" != x; then 49948 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49949 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49950 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49951 fi 49952 49953 # Use eval to expand a potential ~ 49954 eval path="$path" 49955 if test ! -f "$path" && test ! -d "$path"; then 49956 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49957 fi 49958 49959 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49960 fi 49961 49962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49963 $as_echo_n "checking for $DLL_NAME... " >&6; } 49964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49965 $as_echo "$MSVC_DLL" >&6; } 49966 else 49967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49968 $as_echo "incorrect, ignoring" >&6; } 49969 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49970 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49971 fi 49972 fi 49973 49974 done 49975 fi 49976 fi 49977 49978 if test "x$MSVC_DLL" = x; then 49979 # Probe: Check in the Boot JDK directory. 49980 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 49981 49982 DLL_NAME="$DLL_NAME" 49983 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 49984 METHOD="well-known location in Boot JDK" 49985 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49986 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49987 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49988 49989 # Need to check if the found msvcr is correct architecture 49990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49991 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49992 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49993 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49994 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49995 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49996 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49997 CORRECT_MSVCR_ARCH="PE32 executable" 49998 else 49999 CORRECT_MSVCR_ARCH="PE32+ executable" 50000 fi 50001 else 50002 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50003 CORRECT_MSVCR_ARCH=386 50004 else 50005 CORRECT_MSVCR_ARCH=x86-64 50006 fi 50007 fi 50008 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50010 $as_echo "ok" >&6; } 50011 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50012 50013 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50014 50015 # Input might be given as Windows format, start by converting to 50016 # unix format. 50017 path="$MSVC_DLL" 50018 new_path=`$CYGPATH -u "$path"` 50019 50020 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50021 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50022 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50023 # "foo.exe" is OK but "foo" is an error. 50024 # 50025 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50026 # It is also a way to make sure we got the proper file name for the real test later on. 50027 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50028 if test "x$test_shortpath" = x; then 50029 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50030 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50031 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50032 fi 50033 50034 # Call helper function which possibly converts this using DOS-style short mode. 50035 # If so, the updated path is stored in $new_path. 50036 50037 input_path="$new_path" 50038 # Check if we need to convert this using DOS-style short mode. If the path 50039 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50040 # take no chances and rewrite it. 50041 # Note: m4 eats our [], so we need to use [ and ] instead. 50042 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50043 if test "x$has_forbidden_chars" != x; then 50044 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50045 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50046 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50047 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50048 # Going to short mode and back again did indeed matter. Since short mode is 50049 # case insensitive, let's make it lowercase to improve readability. 50050 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50051 # Now convert it back to Unix-style (cygpath) 50052 input_path=`$CYGPATH -u "$shortmode_path"` 50053 new_path="$input_path" 50054 fi 50055 fi 50056 50057 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50058 if test "x$test_cygdrive_prefix" = x; then 50059 # As a simple fix, exclude /usr/bin since it's not a real path. 50060 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50061 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50062 # a path prefixed by /cygdrive for fixpath to work. 50063 new_path="$CYGWIN_ROOT_PATH$input_path" 50064 fi 50065 fi 50066 50067 50068 if test "x$path" != "x$new_path"; then 50069 MSVC_DLL="$new_path" 50070 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50071 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50072 fi 50073 50074 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50075 50076 path="$MSVC_DLL" 50077 has_colon=`$ECHO $path | $GREP ^.:` 50078 new_path="$path" 50079 if test "x$has_colon" = x; then 50080 # Not in mixed or Windows style, start by that. 50081 new_path=`cmd //c echo $path` 50082 fi 50083 50084 50085 input_path="$new_path" 50086 # Check if we need to convert this using DOS-style short mode. If the path 50087 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50088 # take no chances and rewrite it. 50089 # Note: m4 eats our [], so we need to use [ and ] instead. 50090 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50091 if test "x$has_forbidden_chars" != x; then 50092 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50093 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50094 fi 50095 50096 50097 windows_path="$new_path" 50098 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50099 unix_path=`$CYGPATH -u "$windows_path"` 50100 new_path="$unix_path" 50101 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50102 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50103 new_path="$unix_path" 50104 fi 50105 50106 if test "x$path" != "x$new_path"; then 50107 MSVC_DLL="$new_path" 50108 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50109 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50110 fi 50111 50112 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50113 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50114 50115 else 50116 # We're on a posix platform. Hooray! :) 50117 path="$MSVC_DLL" 50118 has_space=`$ECHO "$path" | $GREP " "` 50119 if test "x$has_space" != x; then 50120 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50121 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50122 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50123 fi 50124 50125 # Use eval to expand a potential ~ 50126 eval path="$path" 50127 if test ! -f "$path" && test ! -d "$path"; then 50128 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50129 fi 50130 50131 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50132 fi 50133 50134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50135 $as_echo_n "checking for $DLL_NAME... " >&6; } 50136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50137 $as_echo "$MSVC_DLL" >&6; } 50138 else 50139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50140 $as_echo "incorrect, ignoring" >&6; } 50141 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50142 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50143 fi 50144 fi 50145 50146 fi 50147 50148 if test "x$MSVC_DLL" = x; then 50149 # Probe: Look in the Windows system32 directory 50150 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 50151 50152 windows_path="$CYGWIN_SYSTEMROOT" 50153 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50154 unix_path=`$CYGPATH -u "$windows_path"` 50155 CYGWIN_SYSTEMROOT="$unix_path" 50156 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50157 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50158 CYGWIN_SYSTEMROOT="$unix_path" 50159 fi 50160 50161 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 50162 50163 DLL_NAME="$DLL_NAME" 50164 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50165 METHOD="well-known location in SYSTEMROOT" 50166 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50167 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50168 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50169 50170 # Need to check if the found msvcr is correct architecture 50171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50172 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50173 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50174 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50175 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50176 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50177 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50178 CORRECT_MSVCR_ARCH="PE32 executable" 50179 else 50180 CORRECT_MSVCR_ARCH="PE32+ executable" 50181 fi 50182 else 50183 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50184 CORRECT_MSVCR_ARCH=386 50185 else 50186 CORRECT_MSVCR_ARCH=x86-64 50187 fi 50188 fi 50189 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50191 $as_echo "ok" >&6; } 50192 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50193 50194 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50195 50196 # Input might be given as Windows format, start by converting to 50197 # unix format. 50198 path="$MSVC_DLL" 50199 new_path=`$CYGPATH -u "$path"` 50200 50201 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50202 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50203 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50204 # "foo.exe" is OK but "foo" is an error. 50205 # 50206 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50207 # It is also a way to make sure we got the proper file name for the real test later on. 50208 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50209 if test "x$test_shortpath" = x; then 50210 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50211 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50212 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50213 fi 50214 50215 # Call helper function which possibly converts this using DOS-style short mode. 50216 # If so, the updated path is stored in $new_path. 50217 50218 input_path="$new_path" 50219 # Check if we need to convert this using DOS-style short mode. If the path 50220 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50221 # take no chances and rewrite it. 50222 # Note: m4 eats our [], so we need to use [ and ] instead. 50223 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50224 if test "x$has_forbidden_chars" != x; then 50225 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50226 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50227 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50228 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50229 # Going to short mode and back again did indeed matter. Since short mode is 50230 # case insensitive, let's make it lowercase to improve readability. 50231 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50232 # Now convert it back to Unix-style (cygpath) 50233 input_path=`$CYGPATH -u "$shortmode_path"` 50234 new_path="$input_path" 50235 fi 50236 fi 50237 50238 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50239 if test "x$test_cygdrive_prefix" = x; then 50240 # As a simple fix, exclude /usr/bin since it's not a real path. 50241 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50242 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50243 # a path prefixed by /cygdrive for fixpath to work. 50244 new_path="$CYGWIN_ROOT_PATH$input_path" 50245 fi 50246 fi 50247 50248 50249 if test "x$path" != "x$new_path"; then 50250 MSVC_DLL="$new_path" 50251 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50252 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50253 fi 50254 50255 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50256 50257 path="$MSVC_DLL" 50258 has_colon=`$ECHO $path | $GREP ^.:` 50259 new_path="$path" 50260 if test "x$has_colon" = x; then 50261 # Not in mixed or Windows style, start by that. 50262 new_path=`cmd //c echo $path` 50263 fi 50264 50265 50266 input_path="$new_path" 50267 # Check if we need to convert this using DOS-style short mode. If the path 50268 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50269 # take no chances and rewrite it. 50270 # Note: m4 eats our [], so we need to use [ and ] instead. 50271 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50272 if test "x$has_forbidden_chars" != x; then 50273 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50274 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50275 fi 50276 50277 50278 windows_path="$new_path" 50279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50280 unix_path=`$CYGPATH -u "$windows_path"` 50281 new_path="$unix_path" 50282 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50283 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50284 new_path="$unix_path" 50285 fi 50286 50287 if test "x$path" != "x$new_path"; then 50288 MSVC_DLL="$new_path" 50289 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50290 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50291 fi 50292 50293 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50294 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50295 50296 else 50297 # We're on a posix platform. Hooray! :) 50298 path="$MSVC_DLL" 50299 has_space=`$ECHO "$path" | $GREP " "` 50300 if test "x$has_space" != x; then 50301 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50302 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50303 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50304 fi 50305 50306 # Use eval to expand a potential ~ 50307 eval path="$path" 50308 if test ! -f "$path" && test ! -d "$path"; then 50309 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50310 fi 50311 50312 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50313 fi 50314 50315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50316 $as_echo_n "checking for $DLL_NAME... " >&6; } 50317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50318 $as_echo "$MSVC_DLL" >&6; } 50319 else 50320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50321 $as_echo "incorrect, ignoring" >&6; } 50322 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50323 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50324 fi 50325 fi 50326 50327 fi 50328 50329 if test "x$MSVC_DLL" = x; then 50330 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 50331 if test "x$VS100COMNTOOLS" != x; then 50332 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 50333 50334 windows_path="$CYGWIN_VS_TOOLS_DIR" 50335 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50336 unix_path=`$CYGPATH -u "$windows_path"` 50337 CYGWIN_VS_TOOLS_DIR="$unix_path" 50338 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50339 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50340 CYGWIN_VS_TOOLS_DIR="$unix_path" 50341 fi 50342 50343 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50344 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 50345 | $GREP -i /x64/ | $HEAD --lines 1` 50346 else 50347 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 50348 | $GREP -i /x86/ | $HEAD --lines 1` 50349 fi 50350 50351 DLL_NAME="$DLL_NAME" 50352 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50353 METHOD="search of VS100COMNTOOLS" 50354 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50355 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50356 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50357 50358 # Need to check if the found msvcr is correct architecture 50359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50360 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50361 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50362 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50363 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50364 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50365 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50366 CORRECT_MSVCR_ARCH="PE32 executable" 50367 else 50368 CORRECT_MSVCR_ARCH="PE32+ executable" 50369 fi 50370 else 50371 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50372 CORRECT_MSVCR_ARCH=386 50373 else 50374 CORRECT_MSVCR_ARCH=x86-64 50375 fi 50376 fi 50377 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50379 $as_echo "ok" >&6; } 50380 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50381 50382 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50383 50384 # Input might be given as Windows format, start by converting to 50385 # unix format. 50386 path="$MSVC_DLL" 50387 new_path=`$CYGPATH -u "$path"` 50388 50389 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50390 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50391 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50392 # "foo.exe" is OK but "foo" is an error. 50393 # 50394 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50395 # It is also a way to make sure we got the proper file name for the real test later on. 50396 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50397 if test "x$test_shortpath" = x; then 50398 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50399 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50400 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50401 fi 50402 50403 # Call helper function which possibly converts this using DOS-style short mode. 50404 # If so, the updated path is stored in $new_path. 50405 50406 input_path="$new_path" 50407 # Check if we need to convert this using DOS-style short mode. If the path 50408 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50409 # take no chances and rewrite it. 50410 # Note: m4 eats our [], so we need to use [ and ] instead. 50411 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50412 if test "x$has_forbidden_chars" != x; then 50413 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50414 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50415 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50416 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50417 # Going to short mode and back again did indeed matter. Since short mode is 50418 # case insensitive, let's make it lowercase to improve readability. 50419 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50420 # Now convert it back to Unix-style (cygpath) 50421 input_path=`$CYGPATH -u "$shortmode_path"` 50422 new_path="$input_path" 50423 fi 50424 fi 50425 50426 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50427 if test "x$test_cygdrive_prefix" = x; then 50428 # As a simple fix, exclude /usr/bin since it's not a real path. 50429 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50430 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50431 # a path prefixed by /cygdrive for fixpath to work. 50432 new_path="$CYGWIN_ROOT_PATH$input_path" 50433 fi 50434 fi 50435 50436 50437 if test "x$path" != "x$new_path"; then 50438 MSVC_DLL="$new_path" 50439 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50440 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50441 fi 50442 50443 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50444 50445 path="$MSVC_DLL" 50446 has_colon=`$ECHO $path | $GREP ^.:` 50447 new_path="$path" 50448 if test "x$has_colon" = x; then 50449 # Not in mixed or Windows style, start by that. 50450 new_path=`cmd //c echo $path` 50451 fi 50452 50453 50454 input_path="$new_path" 50455 # Check if we need to convert this using DOS-style short mode. If the path 50456 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50457 # take no chances and rewrite it. 50458 # Note: m4 eats our [], so we need to use [ and ] instead. 50459 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50460 if test "x$has_forbidden_chars" != x; then 50461 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50462 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50463 fi 50464 50465 50466 windows_path="$new_path" 50467 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50468 unix_path=`$CYGPATH -u "$windows_path"` 50469 new_path="$unix_path" 50470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50471 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50472 new_path="$unix_path" 50473 fi 50474 50475 if test "x$path" != "x$new_path"; then 50476 MSVC_DLL="$new_path" 50477 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50478 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50479 fi 50480 50481 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50482 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50483 50484 else 50485 # We're on a posix platform. Hooray! :) 50486 path="$MSVC_DLL" 50487 has_space=`$ECHO "$path" | $GREP " "` 50488 if test "x$has_space" != x; then 50489 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50490 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50491 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50492 fi 50493 50494 # Use eval to expand a potential ~ 50495 eval path="$path" 50496 if test ! -f "$path" && test ! -d "$path"; then 50497 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50498 fi 50499 50500 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50501 fi 50502 50503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50504 $as_echo_n "checking for $DLL_NAME... " >&6; } 50505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50506 $as_echo "$MSVC_DLL" >&6; } 50507 else 50508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50509 $as_echo "incorrect, ignoring" >&6; } 50510 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50511 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50512 fi 50513 fi 50514 50515 fi 50516 fi 50517 50518 if test "x$MSVC_DLL" = x; then 50519 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 50520 # (This was the original behaviour; kept since it might turn something up) 50521 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 50522 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50523 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50524 | $GREP x64 | $HEAD --lines 1` 50525 else 50526 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50527 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 50528 if test "x$POSSIBLE_MSVC_DLL" = x; then 50529 # We're grasping at straws now... 50530 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50531 | $HEAD --lines 1` 50532 fi 50533 fi 50534 50535 50536 DLL_NAME="$DLL_NAME" 50537 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50538 METHOD="search of VCINSTALLDIR" 50539 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50540 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50541 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50542 50543 # Need to check if the found msvcr is correct architecture 50544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50545 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50546 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50547 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50548 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50549 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50550 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50551 CORRECT_MSVCR_ARCH="PE32 executable" 50552 else 50553 CORRECT_MSVCR_ARCH="PE32+ executable" 50554 fi 50555 else 50556 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50557 CORRECT_MSVCR_ARCH=386 50558 else 50559 CORRECT_MSVCR_ARCH=x86-64 50560 fi 50561 fi 50562 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50564 $as_echo "ok" >&6; } 50565 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50566 50567 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50568 50569 # Input might be given as Windows format, start by converting to 50570 # unix format. 50571 path="$MSVC_DLL" 50572 new_path=`$CYGPATH -u "$path"` 50573 50574 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50575 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50576 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50577 # "foo.exe" is OK but "foo" is an error. 50578 # 50579 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50580 # It is also a way to make sure we got the proper file name for the real test later on. 50581 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50582 if test "x$test_shortpath" = x; then 50583 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50584 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50585 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50586 fi 50587 50588 # Call helper function which possibly converts this using DOS-style short mode. 50589 # If so, the updated path is stored in $new_path. 50590 50591 input_path="$new_path" 50592 # Check if we need to convert this using DOS-style short mode. If the path 50593 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50594 # take no chances and rewrite it. 50595 # Note: m4 eats our [], so we need to use [ and ] instead. 50596 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50597 if test "x$has_forbidden_chars" != x; then 50598 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50599 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50600 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50601 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50602 # Going to short mode and back again did indeed matter. Since short mode is 50603 # case insensitive, let's make it lowercase to improve readability. 50604 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50605 # Now convert it back to Unix-style (cygpath) 50606 input_path=`$CYGPATH -u "$shortmode_path"` 50607 new_path="$input_path" 50608 fi 50609 fi 50610 50611 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50612 if test "x$test_cygdrive_prefix" = x; then 50613 # As a simple fix, exclude /usr/bin since it's not a real path. 50614 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50615 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50616 # a path prefixed by /cygdrive for fixpath to work. 50617 new_path="$CYGWIN_ROOT_PATH$input_path" 50618 fi 50619 fi 50620 50621 50622 if test "x$path" != "x$new_path"; then 50623 MSVC_DLL="$new_path" 50624 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50625 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50626 fi 50627 50628 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50629 50630 path="$MSVC_DLL" 50631 has_colon=`$ECHO $path | $GREP ^.:` 50632 new_path="$path" 50633 if test "x$has_colon" = x; then 50634 # Not in mixed or Windows style, start by that. 50635 new_path=`cmd //c echo $path` 50636 fi 50637 50638 50639 input_path="$new_path" 50640 # Check if we need to convert this using DOS-style short mode. If the path 50641 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50642 # take no chances and rewrite it. 50643 # Note: m4 eats our [], so we need to use [ and ] instead. 50644 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50645 if test "x$has_forbidden_chars" != x; then 50646 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50647 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50648 fi 50649 50650 50651 windows_path="$new_path" 50652 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50653 unix_path=`$CYGPATH -u "$windows_path"` 50654 new_path="$unix_path" 50655 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50656 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50657 new_path="$unix_path" 50658 fi 50659 50660 if test "x$path" != "x$new_path"; then 50661 MSVC_DLL="$new_path" 50662 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50663 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50664 fi 50665 50666 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50667 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50668 50669 else 50670 # We're on a posix platform. Hooray! :) 50671 path="$MSVC_DLL" 50672 has_space=`$ECHO "$path" | $GREP " "` 50673 if test "x$has_space" != x; then 50674 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50675 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50676 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50677 fi 50678 50679 # Use eval to expand a potential ~ 50680 eval path="$path" 50681 if test ! -f "$path" && test ! -d "$path"; then 50682 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50683 fi 50684 50685 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50686 fi 50687 50688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50689 $as_echo_n "checking for $DLL_NAME... " >&6; } 50690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50691 $as_echo "$MSVC_DLL" >&6; } 50692 else 50693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50694 $as_echo "incorrect, ignoring" >&6; } 50695 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50696 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50697 fi 50698 fi 50699 50700 fi 50701 fi 50702 50703 if test "x$MSVC_DLL" = x; then 50704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50705 $as_echo_n "checking for $DLL_NAME... " >&6; } 50706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50707 $as_echo "no" >&6; } 50708 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 50709 fi 50710 50711 MSVCR_DLL="$MSVC_DLL" 50712 fi 50713 50714 50715 50716 # Check whether --with-msvcp-dll was given. 50717 if test "${with_msvcp_dll+set}" = set; then : 50718 withval=$with_msvcp_dll; 50719 fi 50720 50721 50722 if test "x$MSVCP_NAME" != "x"; then 50723 if test "x$with_msvcp_dll" != x; then 50724 # If given explicitely by user, do not probe. If not present, fail directly. 50725 50726 DLL_NAME="$MSVCP_NAME" 50727 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 50728 METHOD="--with-msvcp-dll" 50729 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50730 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50731 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50732 50733 # Need to check if the found msvcr is correct architecture 50734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50735 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50736 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50737 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50738 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50739 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50740 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50741 CORRECT_MSVCR_ARCH="PE32 executable" 50742 else 50743 CORRECT_MSVCR_ARCH="PE32+ executable" 50744 fi 50745 else 50746 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50747 CORRECT_MSVCR_ARCH=386 50748 else 50749 CORRECT_MSVCR_ARCH=x86-64 50750 fi 50751 fi 50752 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50754 $as_echo "ok" >&6; } 50755 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50756 50757 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50758 50759 # Input might be given as Windows format, start by converting to 50760 # unix format. 50761 path="$MSVC_DLL" 50762 new_path=`$CYGPATH -u "$path"` 50763 50764 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50765 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50766 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50767 # "foo.exe" is OK but "foo" is an error. 50768 # 50769 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50770 # It is also a way to make sure we got the proper file name for the real test later on. 50771 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50772 if test "x$test_shortpath" = x; then 50773 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50774 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50775 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50776 fi 50777 50778 # Call helper function which possibly converts this using DOS-style short mode. 50779 # If so, the updated path is stored in $new_path. 50780 50781 input_path="$new_path" 50782 # Check if we need to convert this using DOS-style short mode. If the path 50783 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50784 # take no chances and rewrite it. 50785 # Note: m4 eats our [], so we need to use [ and ] instead. 50786 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50787 if test "x$has_forbidden_chars" != x; then 50788 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50789 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50790 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50791 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50792 # Going to short mode and back again did indeed matter. Since short mode is 50793 # case insensitive, let's make it lowercase to improve readability. 50794 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50795 # Now convert it back to Unix-style (cygpath) 50796 input_path=`$CYGPATH -u "$shortmode_path"` 50797 new_path="$input_path" 50798 fi 50799 fi 50800 50801 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50802 if test "x$test_cygdrive_prefix" = x; then 50803 # As a simple fix, exclude /usr/bin since it's not a real path. 50804 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50805 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50806 # a path prefixed by /cygdrive for fixpath to work. 50807 new_path="$CYGWIN_ROOT_PATH$input_path" 50808 fi 50809 fi 50810 50811 50812 if test "x$path" != "x$new_path"; then 50813 MSVC_DLL="$new_path" 50814 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50815 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50816 fi 50817 50818 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50819 50820 path="$MSVC_DLL" 50821 has_colon=`$ECHO $path | $GREP ^.:` 50822 new_path="$path" 50823 if test "x$has_colon" = x; then 50824 # Not in mixed or Windows style, start by that. 50825 new_path=`cmd //c echo $path` 50826 fi 50827 50828 50829 input_path="$new_path" 50830 # Check if we need to convert this using DOS-style short mode. If the path 50831 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50832 # take no chances and rewrite it. 50833 # Note: m4 eats our [], so we need to use [ and ] instead. 50834 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50835 if test "x$has_forbidden_chars" != x; then 50836 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50837 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50838 fi 50839 50840 50841 windows_path="$new_path" 50842 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50843 unix_path=`$CYGPATH -u "$windows_path"` 50844 new_path="$unix_path" 50845 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50846 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50847 new_path="$unix_path" 50848 fi 50849 50850 if test "x$path" != "x$new_path"; then 50851 MSVC_DLL="$new_path" 50852 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50853 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50854 fi 50855 50856 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50857 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50858 50859 else 50860 # We're on a posix platform. Hooray! :) 50861 path="$MSVC_DLL" 50862 has_space=`$ECHO "$path" | $GREP " "` 50863 if test "x$has_space" != x; then 50864 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50865 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50866 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50867 fi 50868 50869 # Use eval to expand a potential ~ 50870 eval path="$path" 50871 if test ! -f "$path" && test ! -d "$path"; then 50872 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50873 fi 50874 50875 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50876 fi 50877 50878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50879 $as_echo_n "checking for $DLL_NAME... " >&6; } 50880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50881 $as_echo "$MSVC_DLL" >&6; } 50882 else 50883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50884 $as_echo "incorrect, ignoring" >&6; } 50885 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50886 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50887 fi 50888 fi 50889 50890 if test "x$MSVC_DLL" = x; then 50891 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 50892 fi 50893 MSVCP_DLL="$MSVC_DLL" 50894 elif test "x$DEVKIT_MSVCP_DLL" != x; then 50895 50896 DLL_NAME="$MSVCP_NAME" 50897 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCP_DLL" 50898 METHOD="devkit" 50899 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50900 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50901 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50902 50903 # Need to check if the found msvcr is correct architecture 50904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50905 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50906 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50907 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50908 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50909 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50910 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50911 CORRECT_MSVCR_ARCH="PE32 executable" 50912 else 50913 CORRECT_MSVCR_ARCH="PE32+ executable" 50914 fi 50915 else 50916 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50917 CORRECT_MSVCR_ARCH=386 50918 else 50919 CORRECT_MSVCR_ARCH=x86-64 50920 fi 50921 fi 50922 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50924 $as_echo "ok" >&6; } 50925 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50926 50927 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50928 50929 # Input might be given as Windows format, start by converting to 50930 # unix format. 50931 path="$MSVC_DLL" 50932 new_path=`$CYGPATH -u "$path"` 50933 50934 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50935 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50936 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50937 # "foo.exe" is OK but "foo" is an error. 50938 # 50939 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50940 # It is also a way to make sure we got the proper file name for the real test later on. 50941 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50942 if test "x$test_shortpath" = x; then 50943 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50944 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50945 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50946 fi 50947 50948 # Call helper function which possibly converts this using DOS-style short mode. 50949 # If so, the updated path is stored in $new_path. 50950 50951 input_path="$new_path" 50952 # Check if we need to convert this using DOS-style short mode. If the path 50953 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50954 # take no chances and rewrite it. 50955 # Note: m4 eats our [], so we need to use [ and ] instead. 50956 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50957 if test "x$has_forbidden_chars" != x; then 50958 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50959 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50960 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50961 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50962 # Going to short mode and back again did indeed matter. Since short mode is 50963 # case insensitive, let's make it lowercase to improve readability. 50964 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50965 # Now convert it back to Unix-style (cygpath) 50966 input_path=`$CYGPATH -u "$shortmode_path"` 50967 new_path="$input_path" 50968 fi 50969 fi 50970 50971 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50972 if test "x$test_cygdrive_prefix" = x; then 50973 # As a simple fix, exclude /usr/bin since it's not a real path. 50974 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50975 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50976 # a path prefixed by /cygdrive for fixpath to work. 50977 new_path="$CYGWIN_ROOT_PATH$input_path" 50978 fi 50979 fi 50980 50981 50982 if test "x$path" != "x$new_path"; then 50983 MSVC_DLL="$new_path" 50984 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50985 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50986 fi 50987 50988 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50989 50990 path="$MSVC_DLL" 50991 has_colon=`$ECHO $path | $GREP ^.:` 50992 new_path="$path" 50993 if test "x$has_colon" = x; then 50994 # Not in mixed or Windows style, start by that. 50995 new_path=`cmd //c echo $path` 50996 fi 50997 50998 50999 input_path="$new_path" 51000 # Check if we need to convert this using DOS-style short mode. If the path 51001 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51002 # take no chances and rewrite it. 51003 # Note: m4 eats our [], so we need to use [ and ] instead. 51004 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51005 if test "x$has_forbidden_chars" != x; then 51006 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51007 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51008 fi 51009 51010 51011 windows_path="$new_path" 51012 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51013 unix_path=`$CYGPATH -u "$windows_path"` 51014 new_path="$unix_path" 51015 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51016 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51017 new_path="$unix_path" 51018 fi 51019 51020 if test "x$path" != "x$new_path"; then 51021 MSVC_DLL="$new_path" 51022 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51023 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51024 fi 51025 51026 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51027 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51028 51029 else 51030 # We're on a posix platform. Hooray! :) 51031 path="$MSVC_DLL" 51032 has_space=`$ECHO "$path" | $GREP " "` 51033 if test "x$has_space" != x; then 51034 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51035 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51036 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51037 fi 51038 51039 # Use eval to expand a potential ~ 51040 eval path="$path" 51041 if test ! -f "$path" && test ! -d "$path"; then 51042 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 51043 fi 51044 51045 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 51046 fi 51047 51048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 51049 $as_echo_n "checking for $DLL_NAME... " >&6; } 51050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 51051 $as_echo "$MSVC_DLL" >&6; } 51052 else 51053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 51054 $as_echo "incorrect, ignoring" >&6; } 51055 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 51056 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 51057 fi 51058 fi 51059 51060 if test "x$MSVC_DLL" = x; then 51061 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by devkit" "$LINENO" 5 51062 fi 51063 MSVCP_DLL="$MSVC_DLL" 51064 else 51065 51066 DLL_NAME="${MSVCP_NAME}" 51067 MSVC_DLL= 51068 51069 if test "x$MSVC_DLL" = x; then 51070 if test "x$VCINSTALLDIR" != x; then 51071 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 51072 51073 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51074 51075 # Input might be given as Windows format, start by converting to 51076 # unix format. 51077 path="$CYGWIN_VC_INSTALL_DIR" 51078 new_path=`$CYGPATH -u "$path"` 51079 51080 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51081 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51082 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51083 # "foo.exe" is OK but "foo" is an error. 51084 # 51085 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51086 # It is also a way to make sure we got the proper file name for the real test later on. 51087 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51088 if test "x$test_shortpath" = x; then 51089 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&5 51090 $as_echo "$as_me: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&6;} 51091 as_fn_error $? "Cannot locate the the path of CYGWIN_VC_INSTALL_DIR" "$LINENO" 5 51092 fi 51093 51094 # Call helper function which possibly converts this using DOS-style short mode. 51095 # If so, the updated path is stored in $new_path. 51096 51097 input_path="$new_path" 51098 # Check if we need to convert this using DOS-style short mode. If the path 51099 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51100 # take no chances and rewrite it. 51101 # Note: m4 eats our [], so we need to use [ and ] instead. 51102 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51103 if test "x$has_forbidden_chars" != x; then 51104 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51105 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51106 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51107 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51108 # Going to short mode and back again did indeed matter. Since short mode is 51109 # case insensitive, let's make it lowercase to improve readability. 51110 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51111 # Now convert it back to Unix-style (cygpath) 51112 input_path=`$CYGPATH -u "$shortmode_path"` 51113 new_path="$input_path" 51114 fi 51115 fi 51116 51117 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51118 if test "x$test_cygdrive_prefix" = x; then 51119 # As a simple fix, exclude /usr/bin since it's not a real path. 51120 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51121 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51122 # a path prefixed by /cygdrive for fixpath to work. 51123 new_path="$CYGWIN_ROOT_PATH$input_path" 51124 fi 51125 fi 51126 51127 51128 if test "x$path" != "x$new_path"; then 51129 CYGWIN_VC_INSTALL_DIR="$new_path" 51130 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&5 51131 $as_echo "$as_me: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&6;} 51132 fi 51133 51134 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51135 51136 path="$CYGWIN_VC_INSTALL_DIR" 51137 has_colon=`$ECHO $path | $GREP ^.:` 51138 new_path="$path" 51139 if test "x$has_colon" = x; then 51140 # Not in mixed or Windows style, start by that. 51141 new_path=`cmd //c echo $path` 51142 fi 51143 51144 51145 input_path="$new_path" 51146 # Check if we need to convert this using DOS-style short mode. If the path 51147 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51148 # take no chances and rewrite it. 51149 # Note: m4 eats our [], so we need to use [ and ] instead. 51150 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51151 if test "x$has_forbidden_chars" != x; then 51152 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51153 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51154 fi 51155 51156 51157 windows_path="$new_path" 51158 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51159 unix_path=`$CYGPATH -u "$windows_path"` 51160 new_path="$unix_path" 51161 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51162 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51163 new_path="$unix_path" 51164 fi 51165 51166 if test "x$path" != "x$new_path"; then 51167 CYGWIN_VC_INSTALL_DIR="$new_path" 51168 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&5 51169 $as_echo "$as_me: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&6;} 51170 fi 51171 51172 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51173 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51174 51175 else 51176 # We're on a posix platform. Hooray! :) 51177 path="$CYGWIN_VC_INSTALL_DIR" 51178 has_space=`$ECHO "$path" | $GREP " "` 51179 if test "x$has_space" != x; then 51180 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&5 51181 $as_echo "$as_me: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&6;} 51182 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51183 fi 51184 51185 # Use eval to expand a potential ~ 51186 eval path="$path" 51187 if test ! -f "$path" && test ! -d "$path"; then 51188 as_fn_error $? "The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is not found." "$LINENO" 5 51189 fi 51190 51191 CYGWIN_VC_INSTALL_DIR="`cd "$path"; $THEPWDCMD -L`" 51192 fi 51193 51194 if test "$VS_VERSION" -lt 2017; then 51195 # Probe: Using well-known location from Visual Studio 12.0 and older 51196 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 51197 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 51198 else 51199 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 51200 fi 51201 else 51202 # Probe: Using well-known location from VS 2017 51203 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 51204 POSSIBLE_MSVC_DLL="`ls $CYGWIN_VC_INSTALL_DIR/Redist/MSVC/*/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME`" 51205 else 51206 POSSIBLE_MSVC_DLL="`ls $CYGWIN_VC_INSTALL_DIR/Redist/MSVC/*/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME`" 51207 fi 51208 fi 51209 # In case any of the above finds more than one file, loop over them. 51210 for possible_msvc_dll in $POSSIBLE_MSVC_DLL; do 51211 $ECHO "POSSIBLE_MSVC_DLL $possible_msvc_dll" 51212 51213 DLL_NAME="$DLL_NAME" 51214 POSSIBLE_MSVC_DLL="$possible_msvc_dll" 51215 METHOD="well-known location in VCINSTALLDIR" 51216 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 51217 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 51218 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 51219 51220 # Need to check if the found msvcr is correct architecture 51221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 51222 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 51223 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 51224 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51225 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 51226 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 51227 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51228 CORRECT_MSVCR_ARCH="PE32 executable" 51229 else 51230 CORRECT_MSVCR_ARCH="PE32+ executable" 51231 fi 51232 else 51233 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51234 CORRECT_MSVCR_ARCH=386 51235 else 51236 CORRECT_MSVCR_ARCH=x86-64 51237 fi 51238 fi 51239 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 51240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 51241 $as_echo "ok" >&6; } 51242 MSVC_DLL="$POSSIBLE_MSVC_DLL" 51243 51244 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51245 51246 # Input might be given as Windows format, start by converting to 51247 # unix format. 51248 path="$MSVC_DLL" 51249 new_path=`$CYGPATH -u "$path"` 51250 51251 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51252 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51253 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51254 # "foo.exe" is OK but "foo" is an error. 51255 # 51256 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51257 # It is also a way to make sure we got the proper file name for the real test later on. 51258 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51259 if test "x$test_shortpath" = x; then 51260 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51261 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51262 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 51263 fi 51264 51265 # Call helper function which possibly converts this using DOS-style short mode. 51266 # If so, the updated path is stored in $new_path. 51267 51268 input_path="$new_path" 51269 # Check if we need to convert this using DOS-style short mode. If the path 51270 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51271 # take no chances and rewrite it. 51272 # Note: m4 eats our [], so we need to use [ and ] instead. 51273 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51274 if test "x$has_forbidden_chars" != x; then 51275 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51276 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51277 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51278 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51279 # Going to short mode and back again did indeed matter. Since short mode is 51280 # case insensitive, let's make it lowercase to improve readability. 51281 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51282 # Now convert it back to Unix-style (cygpath) 51283 input_path=`$CYGPATH -u "$shortmode_path"` 51284 new_path="$input_path" 51285 fi 51286 fi 51287 51288 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51289 if test "x$test_cygdrive_prefix" = x; then 51290 # As a simple fix, exclude /usr/bin since it's not a real path. 51291 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51292 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51293 # a path prefixed by /cygdrive for fixpath to work. 51294 new_path="$CYGWIN_ROOT_PATH$input_path" 51295 fi 51296 fi 51297 51298 51299 if test "x$path" != "x$new_path"; then 51300 MSVC_DLL="$new_path" 51301 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51302 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51303 fi 51304 51305 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51306 51307 path="$MSVC_DLL" 51308 has_colon=`$ECHO $path | $GREP ^.:` 51309 new_path="$path" 51310 if test "x$has_colon" = x; then 51311 # Not in mixed or Windows style, start by that. 51312 new_path=`cmd //c echo $path` 51313 fi 51314 51315 51316 input_path="$new_path" 51317 # Check if we need to convert this using DOS-style short mode. If the path 51318 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51319 # take no chances and rewrite it. 51320 # Note: m4 eats our [], so we need to use [ and ] instead. 51321 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51322 if test "x$has_forbidden_chars" != x; then 51323 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51324 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51325 fi 51326 51327 51328 windows_path="$new_path" 51329 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51330 unix_path=`$CYGPATH -u "$windows_path"` 51331 new_path="$unix_path" 51332 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51333 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51334 new_path="$unix_path" 51335 fi 51336 51337 if test "x$path" != "x$new_path"; then 51338 MSVC_DLL="$new_path" 51339 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51340 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51341 fi 51342 51343 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51344 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51345 51346 else 51347 # We're on a posix platform. Hooray! :) 51348 path="$MSVC_DLL" 51349 has_space=`$ECHO "$path" | $GREP " "` 51350 if test "x$has_space" != x; then 51351 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51352 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51353 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51354 fi 51355 51356 # Use eval to expand a potential ~ 51357 eval path="$path" 51358 if test ! -f "$path" && test ! -d "$path"; then 51359 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 51360 fi 51361 51362 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 51363 fi 51364 51365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 51366 $as_echo_n "checking for $DLL_NAME... " >&6; } 51367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 51368 $as_echo "$MSVC_DLL" >&6; } 51369 else 51370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 51371 $as_echo "incorrect, ignoring" >&6; } 51372 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 51373 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 51374 fi 51375 fi 51376 51377 done 51378 fi 51379 fi 51380 51381 if test "x$MSVC_DLL" = x; then 51382 # Probe: Check in the Boot JDK directory. 51383 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 51384 51385 DLL_NAME="$DLL_NAME" 51386 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 51387 METHOD="well-known location in Boot JDK" 51388 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 51389 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 51390 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 51391 51392 # Need to check if the found msvcr is correct architecture 51393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 51394 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 51395 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 51396 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51397 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 51398 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 51399 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51400 CORRECT_MSVCR_ARCH="PE32 executable" 51401 else 51402 CORRECT_MSVCR_ARCH="PE32+ executable" 51403 fi 51404 else 51405 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51406 CORRECT_MSVCR_ARCH=386 51407 else 51408 CORRECT_MSVCR_ARCH=x86-64 51409 fi 51410 fi 51411 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 51412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 51413 $as_echo "ok" >&6; } 51414 MSVC_DLL="$POSSIBLE_MSVC_DLL" 51415 51416 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51417 51418 # Input might be given as Windows format, start by converting to 51419 # unix format. 51420 path="$MSVC_DLL" 51421 new_path=`$CYGPATH -u "$path"` 51422 51423 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51424 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51425 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51426 # "foo.exe" is OK but "foo" is an error. 51427 # 51428 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51429 # It is also a way to make sure we got the proper file name for the real test later on. 51430 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51431 if test "x$test_shortpath" = x; then 51432 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51433 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51434 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 51435 fi 51436 51437 # Call helper function which possibly converts this using DOS-style short mode. 51438 # If so, the updated path is stored in $new_path. 51439 51440 input_path="$new_path" 51441 # Check if we need to convert this using DOS-style short mode. If the path 51442 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51443 # take no chances and rewrite it. 51444 # Note: m4 eats our [], so we need to use [ and ] instead. 51445 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51446 if test "x$has_forbidden_chars" != x; then 51447 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51448 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51449 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51450 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51451 # Going to short mode and back again did indeed matter. Since short mode is 51452 # case insensitive, let's make it lowercase to improve readability. 51453 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51454 # Now convert it back to Unix-style (cygpath) 51455 input_path=`$CYGPATH -u "$shortmode_path"` 51456 new_path="$input_path" 51457 fi 51458 fi 51459 51460 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51461 if test "x$test_cygdrive_prefix" = x; then 51462 # As a simple fix, exclude /usr/bin since it's not a real path. 51463 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51464 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51465 # a path prefixed by /cygdrive for fixpath to work. 51466 new_path="$CYGWIN_ROOT_PATH$input_path" 51467 fi 51468 fi 51469 51470 51471 if test "x$path" != "x$new_path"; then 51472 MSVC_DLL="$new_path" 51473 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51474 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51475 fi 51476 51477 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51478 51479 path="$MSVC_DLL" 51480 has_colon=`$ECHO $path | $GREP ^.:` 51481 new_path="$path" 51482 if test "x$has_colon" = x; then 51483 # Not in mixed or Windows style, start by that. 51484 new_path=`cmd //c echo $path` 51485 fi 51486 51487 51488 input_path="$new_path" 51489 # Check if we need to convert this using DOS-style short mode. If the path 51490 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51491 # take no chances and rewrite it. 51492 # Note: m4 eats our [], so we need to use [ and ] instead. 51493 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51494 if test "x$has_forbidden_chars" != x; then 51495 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51496 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51497 fi 51498 51499 51500 windows_path="$new_path" 51501 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51502 unix_path=`$CYGPATH -u "$windows_path"` 51503 new_path="$unix_path" 51504 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51505 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51506 new_path="$unix_path" 51507 fi 51508 51509 if test "x$path" != "x$new_path"; then 51510 MSVC_DLL="$new_path" 51511 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51512 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51513 fi 51514 51515 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51516 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51517 51518 else 51519 # We're on a posix platform. Hooray! :) 51520 path="$MSVC_DLL" 51521 has_space=`$ECHO "$path" | $GREP " "` 51522 if test "x$has_space" != x; then 51523 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51524 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51525 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51526 fi 51527 51528 # Use eval to expand a potential ~ 51529 eval path="$path" 51530 if test ! -f "$path" && test ! -d "$path"; then 51531 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 51532 fi 51533 51534 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 51535 fi 51536 51537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 51538 $as_echo_n "checking for $DLL_NAME... " >&6; } 51539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 51540 $as_echo "$MSVC_DLL" >&6; } 51541 else 51542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 51543 $as_echo "incorrect, ignoring" >&6; } 51544 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 51545 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 51546 fi 51547 fi 51548 51549 fi 51550 51551 if test "x$MSVC_DLL" = x; then 51552 # Probe: Look in the Windows system32 directory 51553 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 51554 51555 windows_path="$CYGWIN_SYSTEMROOT" 51556 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51557 unix_path=`$CYGPATH -u "$windows_path"` 51558 CYGWIN_SYSTEMROOT="$unix_path" 51559 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51560 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51561 CYGWIN_SYSTEMROOT="$unix_path" 51562 fi 51563 51564 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 51565 51566 DLL_NAME="$DLL_NAME" 51567 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 51568 METHOD="well-known location in SYSTEMROOT" 51569 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 51570 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 51571 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 51572 51573 # Need to check if the found msvcr is correct architecture 51574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 51575 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 51576 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 51577 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51578 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 51579 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 51580 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51581 CORRECT_MSVCR_ARCH="PE32 executable" 51582 else 51583 CORRECT_MSVCR_ARCH="PE32+ executable" 51584 fi 51585 else 51586 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51587 CORRECT_MSVCR_ARCH=386 51588 else 51589 CORRECT_MSVCR_ARCH=x86-64 51590 fi 51591 fi 51592 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 51593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 51594 $as_echo "ok" >&6; } 51595 MSVC_DLL="$POSSIBLE_MSVC_DLL" 51596 51597 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51598 51599 # Input might be given as Windows format, start by converting to 51600 # unix format. 51601 path="$MSVC_DLL" 51602 new_path=`$CYGPATH -u "$path"` 51603 51604 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51605 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51606 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51607 # "foo.exe" is OK but "foo" is an error. 51608 # 51609 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51610 # It is also a way to make sure we got the proper file name for the real test later on. 51611 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51612 if test "x$test_shortpath" = x; then 51613 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51614 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51615 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 51616 fi 51617 51618 # Call helper function which possibly converts this using DOS-style short mode. 51619 # If so, the updated path is stored in $new_path. 51620 51621 input_path="$new_path" 51622 # Check if we need to convert this using DOS-style short mode. If the path 51623 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51624 # take no chances and rewrite it. 51625 # Note: m4 eats our [], so we need to use [ and ] instead. 51626 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51627 if test "x$has_forbidden_chars" != x; then 51628 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51629 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51630 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51631 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51632 # Going to short mode and back again did indeed matter. Since short mode is 51633 # case insensitive, let's make it lowercase to improve readability. 51634 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51635 # Now convert it back to Unix-style (cygpath) 51636 input_path=`$CYGPATH -u "$shortmode_path"` 51637 new_path="$input_path" 51638 fi 51639 fi 51640 51641 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51642 if test "x$test_cygdrive_prefix" = x; then 51643 # As a simple fix, exclude /usr/bin since it's not a real path. 51644 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51645 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51646 # a path prefixed by /cygdrive for fixpath to work. 51647 new_path="$CYGWIN_ROOT_PATH$input_path" 51648 fi 51649 fi 51650 51651 51652 if test "x$path" != "x$new_path"; then 51653 MSVC_DLL="$new_path" 51654 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51655 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51656 fi 51657 51658 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51659 51660 path="$MSVC_DLL" 51661 has_colon=`$ECHO $path | $GREP ^.:` 51662 new_path="$path" 51663 if test "x$has_colon" = x; then 51664 # Not in mixed or Windows style, start by that. 51665 new_path=`cmd //c echo $path` 51666 fi 51667 51668 51669 input_path="$new_path" 51670 # Check if we need to convert this using DOS-style short mode. If the path 51671 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51672 # take no chances and rewrite it. 51673 # Note: m4 eats our [], so we need to use [ and ] instead. 51674 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51675 if test "x$has_forbidden_chars" != x; then 51676 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51677 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51678 fi 51679 51680 51681 windows_path="$new_path" 51682 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51683 unix_path=`$CYGPATH -u "$windows_path"` 51684 new_path="$unix_path" 51685 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51686 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51687 new_path="$unix_path" 51688 fi 51689 51690 if test "x$path" != "x$new_path"; then 51691 MSVC_DLL="$new_path" 51692 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51693 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51694 fi 51695 51696 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51697 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51698 51699 else 51700 # We're on a posix platform. Hooray! :) 51701 path="$MSVC_DLL" 51702 has_space=`$ECHO "$path" | $GREP " "` 51703 if test "x$has_space" != x; then 51704 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51705 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51706 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51707 fi 51708 51709 # Use eval to expand a potential ~ 51710 eval path="$path" 51711 if test ! -f "$path" && test ! -d "$path"; then 51712 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 51713 fi 51714 51715 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 51716 fi 51717 51718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 51719 $as_echo_n "checking for $DLL_NAME... " >&6; } 51720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 51721 $as_echo "$MSVC_DLL" >&6; } 51722 else 51723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 51724 $as_echo "incorrect, ignoring" >&6; } 51725 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 51726 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 51727 fi 51728 fi 51729 51730 fi 51731 51732 if test "x$MSVC_DLL" = x; then 51733 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 51734 if test "x$VS100COMNTOOLS" != x; then 51735 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 51736 51737 windows_path="$CYGWIN_VS_TOOLS_DIR" 51738 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51739 unix_path=`$CYGPATH -u "$windows_path"` 51740 CYGWIN_VS_TOOLS_DIR="$unix_path" 51741 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51742 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51743 CYGWIN_VS_TOOLS_DIR="$unix_path" 51744 fi 51745 51746 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 51747 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 51748 | $GREP -i /x64/ | $HEAD --lines 1` 51749 else 51750 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 51751 | $GREP -i /x86/ | $HEAD --lines 1` 51752 fi 51753 51754 DLL_NAME="$DLL_NAME" 51755 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 51756 METHOD="search of VS100COMNTOOLS" 51757 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 51758 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 51759 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 51760 51761 # Need to check if the found msvcr is correct architecture 51762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 51763 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 51764 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 51765 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51766 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 51767 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 51768 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51769 CORRECT_MSVCR_ARCH="PE32 executable" 51770 else 51771 CORRECT_MSVCR_ARCH="PE32+ executable" 51772 fi 51773 else 51774 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51775 CORRECT_MSVCR_ARCH=386 51776 else 51777 CORRECT_MSVCR_ARCH=x86-64 51778 fi 51779 fi 51780 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 51781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 51782 $as_echo "ok" >&6; } 51783 MSVC_DLL="$POSSIBLE_MSVC_DLL" 51784 51785 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51786 51787 # Input might be given as Windows format, start by converting to 51788 # unix format. 51789 path="$MSVC_DLL" 51790 new_path=`$CYGPATH -u "$path"` 51791 51792 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51793 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51794 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51795 # "foo.exe" is OK but "foo" is an error. 51796 # 51797 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51798 # It is also a way to make sure we got the proper file name for the real test later on. 51799 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51800 if test "x$test_shortpath" = x; then 51801 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51802 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51803 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 51804 fi 51805 51806 # Call helper function which possibly converts this using DOS-style short mode. 51807 # If so, the updated path is stored in $new_path. 51808 51809 input_path="$new_path" 51810 # Check if we need to convert this using DOS-style short mode. If the path 51811 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51812 # take no chances and rewrite it. 51813 # Note: m4 eats our [], so we need to use [ and ] instead. 51814 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51815 if test "x$has_forbidden_chars" != x; then 51816 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51817 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51818 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51819 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51820 # Going to short mode and back again did indeed matter. Since short mode is 51821 # case insensitive, let's make it lowercase to improve readability. 51822 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51823 # Now convert it back to Unix-style (cygpath) 51824 input_path=`$CYGPATH -u "$shortmode_path"` 51825 new_path="$input_path" 51826 fi 51827 fi 51828 51829 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51830 if test "x$test_cygdrive_prefix" = x; then 51831 # As a simple fix, exclude /usr/bin since it's not a real path. 51832 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51833 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51834 # a path prefixed by /cygdrive for fixpath to work. 51835 new_path="$CYGWIN_ROOT_PATH$input_path" 51836 fi 51837 fi 51838 51839 51840 if test "x$path" != "x$new_path"; then 51841 MSVC_DLL="$new_path" 51842 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51843 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51844 fi 51845 51846 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51847 51848 path="$MSVC_DLL" 51849 has_colon=`$ECHO $path | $GREP ^.:` 51850 new_path="$path" 51851 if test "x$has_colon" = x; then 51852 # Not in mixed or Windows style, start by that. 51853 new_path=`cmd //c echo $path` 51854 fi 51855 51856 51857 input_path="$new_path" 51858 # Check if we need to convert this using DOS-style short mode. If the path 51859 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51860 # take no chances and rewrite it. 51861 # Note: m4 eats our [], so we need to use [ and ] instead. 51862 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51863 if test "x$has_forbidden_chars" != x; then 51864 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51865 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51866 fi 51867 51868 51869 windows_path="$new_path" 51870 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51871 unix_path=`$CYGPATH -u "$windows_path"` 51872 new_path="$unix_path" 51873 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51874 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51875 new_path="$unix_path" 51876 fi 51877 51878 if test "x$path" != "x$new_path"; then 51879 MSVC_DLL="$new_path" 51880 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51881 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51882 fi 51883 51884 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51885 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51886 51887 else 51888 # We're on a posix platform. Hooray! :) 51889 path="$MSVC_DLL" 51890 has_space=`$ECHO "$path" | $GREP " "` 51891 if test "x$has_space" != x; then 51892 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51893 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51894 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51895 fi 51896 51897 # Use eval to expand a potential ~ 51898 eval path="$path" 51899 if test ! -f "$path" && test ! -d "$path"; then 51900 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 51901 fi 51902 51903 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 51904 fi 51905 51906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 51907 $as_echo_n "checking for $DLL_NAME... " >&6; } 51908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 51909 $as_echo "$MSVC_DLL" >&6; } 51910 else 51911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 51912 $as_echo "incorrect, ignoring" >&6; } 51913 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 51914 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 51915 fi 51916 fi 51917 51918 fi 51919 fi 51920 51921 if test "x$MSVC_DLL" = x; then 51922 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 51923 # (This was the original behaviour; kept since it might turn something up) 51924 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 51925 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 51926 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 51927 | $GREP x64 | $HEAD --lines 1` 51928 else 51929 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 51930 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 51931 if test "x$POSSIBLE_MSVC_DLL" = x; then 51932 # We're grasping at straws now... 51933 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 51934 | $HEAD --lines 1` 51935 fi 51936 fi 51937 51938 51939 DLL_NAME="$DLL_NAME" 51940 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 51941 METHOD="search of VCINSTALLDIR" 51942 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 51943 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 51944 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 51945 51946 # Need to check if the found msvcr is correct architecture 51947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 51948 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 51949 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 51950 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51951 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 51952 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 51953 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51954 CORRECT_MSVCR_ARCH="PE32 executable" 51955 else 51956 CORRECT_MSVCR_ARCH="PE32+ executable" 51957 fi 51958 else 51959 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51960 CORRECT_MSVCR_ARCH=386 51961 else 51962 CORRECT_MSVCR_ARCH=x86-64 51963 fi 51964 fi 51965 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 51966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 51967 $as_echo "ok" >&6; } 51968 MSVC_DLL="$POSSIBLE_MSVC_DLL" 51969 51970 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51971 51972 # Input might be given as Windows format, start by converting to 51973 # unix format. 51974 path="$MSVC_DLL" 51975 new_path=`$CYGPATH -u "$path"` 51976 51977 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51978 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51979 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51980 # "foo.exe" is OK but "foo" is an error. 51981 # 51982 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51983 # It is also a way to make sure we got the proper file name for the real test later on. 51984 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51985 if test "x$test_shortpath" = x; then 51986 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51987 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51988 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 51989 fi 51990 51991 # Call helper function which possibly converts this using DOS-style short mode. 51992 # If so, the updated path is stored in $new_path. 51993 51994 input_path="$new_path" 51995 # Check if we need to convert this using DOS-style short mode. If the path 51996 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51997 # take no chances and rewrite it. 51998 # Note: m4 eats our [], so we need to use [ and ] instead. 51999 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 52000 if test "x$has_forbidden_chars" != x; then 52001 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52002 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 52003 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 52004 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 52005 # Going to short mode and back again did indeed matter. Since short mode is 52006 # case insensitive, let's make it lowercase to improve readability. 52007 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52008 # Now convert it back to Unix-style (cygpath) 52009 input_path=`$CYGPATH -u "$shortmode_path"` 52010 new_path="$input_path" 52011 fi 52012 fi 52013 52014 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 52015 if test "x$test_cygdrive_prefix" = x; then 52016 # As a simple fix, exclude /usr/bin since it's not a real path. 52017 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 52018 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 52019 # a path prefixed by /cygdrive for fixpath to work. 52020 new_path="$CYGWIN_ROOT_PATH$input_path" 52021 fi 52022 fi 52023 52024 52025 if test "x$path" != "x$new_path"; then 52026 MSVC_DLL="$new_path" 52027 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 52028 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 52029 fi 52030 52031 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52032 52033 path="$MSVC_DLL" 52034 has_colon=`$ECHO $path | $GREP ^.:` 52035 new_path="$path" 52036 if test "x$has_colon" = x; then 52037 # Not in mixed or Windows style, start by that. 52038 new_path=`cmd //c echo $path` 52039 fi 52040 52041 52042 input_path="$new_path" 52043 # Check if we need to convert this using DOS-style short mode. If the path 52044 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52045 # take no chances and rewrite it. 52046 # Note: m4 eats our [], so we need to use [ and ] instead. 52047 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 52048 if test "x$has_forbidden_chars" != x; then 52049 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52050 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52051 fi 52052 52053 52054 windows_path="$new_path" 52055 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52056 unix_path=`$CYGPATH -u "$windows_path"` 52057 new_path="$unix_path" 52058 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52059 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 52060 new_path="$unix_path" 52061 fi 52062 52063 if test "x$path" != "x$new_path"; then 52064 MSVC_DLL="$new_path" 52065 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 52066 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 52067 fi 52068 52069 # Save the first 10 bytes of this path to the storage, so fixpath can work. 52070 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 52071 52072 else 52073 # We're on a posix platform. Hooray! :) 52074 path="$MSVC_DLL" 52075 has_space=`$ECHO "$path" | $GREP " "` 52076 if test "x$has_space" != x; then 52077 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 52078 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 52079 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 52080 fi 52081 52082 # Use eval to expand a potential ~ 52083 eval path="$path" 52084 if test ! -f "$path" && test ! -d "$path"; then 52085 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 52086 fi 52087 52088 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 52089 fi 52090 52091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 52092 $as_echo_n "checking for $DLL_NAME... " >&6; } 52093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 52094 $as_echo "$MSVC_DLL" >&6; } 52095 else 52096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 52097 $as_echo "incorrect, ignoring" >&6; } 52098 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 52099 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 52100 fi 52101 fi 52102 52103 fi 52104 fi 52105 52106 if test "x$MSVC_DLL" = x; then 52107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 52108 $as_echo_n "checking for $DLL_NAME... " >&6; } 52109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52110 $as_echo "no" >&6; } 52111 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 52112 fi 52113 52114 MSVCP_DLL="$MSVC_DLL" 52115 fi 52116 52117 fi 52118 52119 52120 # Check whether --with-ucrt-dll-dir was given. 52121 if test "${with_ucrt_dll_dir+set}" = set; then : 52122 withval=$with_ucrt_dll_dir; 52123 fi 52124 52125 52126 if test "x$USE_UCRT" = "xtrue"; then 52127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCRT DLL dir" >&5 52128 $as_echo_n "checking for UCRT DLL dir... " >&6; } 52129 if test "x$with_ucrt_dll_dir" != x; then 52130 if test -z "$(ls -d "$with_ucrt_dll_dir/"*.dll 2> /dev/null)"; then 52131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52132 $as_echo "no" >&6; } 52133 as_fn_error $? "Could not find any dlls in $with_ucrt_dll_dir" "$LINENO" 5 52134 else 52135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ucrt_dll_dir" >&5 52136 $as_echo "$with_ucrt_dll_dir" >&6; } 52137 UCRT_DLL_DIR="$with_ucrt_dll_dir" 52138 52139 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52140 52141 # Input might be given as Windows format, start by converting to 52142 # unix format. 52143 path="$UCRT_DLL_DIR" 52144 new_path=`$CYGPATH -u "$path"` 52145 52146 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 52147 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 52148 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 52149 # "foo.exe" is OK but "foo" is an error. 52150 # 52151 # This test is therefore slightly more accurate than "test -f" to check for file precense. 52152 # It is also a way to make sure we got the proper file name for the real test later on. 52153 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 52154 if test "x$test_shortpath" = x; then 52155 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of UCRT_DLL_DIR, which resolves as \"$path\", is invalid." >&5 52156 $as_echo "$as_me: The path of UCRT_DLL_DIR, which resolves as \"$path\", is invalid." >&6;} 52157 as_fn_error $? "Cannot locate the the path of UCRT_DLL_DIR" "$LINENO" 5 52158 fi 52159 52160 # Call helper function which possibly converts this using DOS-style short mode. 52161 # If so, the updated path is stored in $new_path. 52162 52163 input_path="$new_path" 52164 # Check if we need to convert this using DOS-style short mode. If the path 52165 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52166 # take no chances and rewrite it. 52167 # Note: m4 eats our [], so we need to use [ and ] instead. 52168 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 52169 if test "x$has_forbidden_chars" != x; then 52170 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52171 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 52172 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 52173 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 52174 # Going to short mode and back again did indeed matter. Since short mode is 52175 # case insensitive, let's make it lowercase to improve readability. 52176 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52177 # Now convert it back to Unix-style (cygpath) 52178 input_path=`$CYGPATH -u "$shortmode_path"` 52179 new_path="$input_path" 52180 fi 52181 fi 52182 52183 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 52184 if test "x$test_cygdrive_prefix" = x; then 52185 # As a simple fix, exclude /usr/bin since it's not a real path. 52186 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 52187 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 52188 # a path prefixed by /cygdrive for fixpath to work. 52189 new_path="$CYGWIN_ROOT_PATH$input_path" 52190 fi 52191 fi 52192 52193 52194 if test "x$path" != "x$new_path"; then 52195 UCRT_DLL_DIR="$new_path" 52196 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting UCRT_DLL_DIR to \"$new_path\"" >&5 52197 $as_echo "$as_me: Rewriting UCRT_DLL_DIR to \"$new_path\"" >&6;} 52198 fi 52199 52200 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52201 52202 path="$UCRT_DLL_DIR" 52203 has_colon=`$ECHO $path | $GREP ^.:` 52204 new_path="$path" 52205 if test "x$has_colon" = x; then 52206 # Not in mixed or Windows style, start by that. 52207 new_path=`cmd //c echo $path` 52208 fi 52209 52210 52211 input_path="$new_path" 52212 # Check if we need to convert this using DOS-style short mode. If the path 52213 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52214 # take no chances and rewrite it. 52215 # Note: m4 eats our [], so we need to use [ and ] instead. 52216 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 52217 if test "x$has_forbidden_chars" != x; then 52218 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52219 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52220 fi 52221 52222 52223 windows_path="$new_path" 52224 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52225 unix_path=`$CYGPATH -u "$windows_path"` 52226 new_path="$unix_path" 52227 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52228 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 52229 new_path="$unix_path" 52230 fi 52231 52232 if test "x$path" != "x$new_path"; then 52233 UCRT_DLL_DIR="$new_path" 52234 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting UCRT_DLL_DIR to \"$new_path\"" >&5 52235 $as_echo "$as_me: Rewriting UCRT_DLL_DIR to \"$new_path\"" >&6;} 52236 fi 52237 52238 # Save the first 10 bytes of this path to the storage, so fixpath can work. 52239 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 52240 52241 else 52242 # We're on a posix platform. Hooray! :) 52243 path="$UCRT_DLL_DIR" 52244 has_space=`$ECHO "$path" | $GREP " "` 52245 if test "x$has_space" != x; then 52246 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of UCRT_DLL_DIR, which resolves as \"$path\", is invalid." >&5 52247 $as_echo "$as_me: The path of UCRT_DLL_DIR, which resolves as \"$path\", is invalid." >&6;} 52248 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 52249 fi 52250 52251 # Use eval to expand a potential ~ 52252 eval path="$path" 52253 if test ! -f "$path" && test ! -d "$path"; then 52254 as_fn_error $? "The path of UCRT_DLL_DIR, which resolves as \"$path\", is not found." "$LINENO" 5 52255 fi 52256 52257 UCRT_DLL_DIR="`cd "$path"; $THEPWDCMD -L`" 52258 fi 52259 52260 fi 52261 elif test "x$DEVKIT_UCRT_DLL_DIR" != "x"; then 52262 UCRT_DLL_DIR="$DEVKIT_UCRT_DLL_DIR" 52263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UCRT_DLL_DIR" >&5 52264 $as_echo "$UCRT_DLL_DIR" >&6; } 52265 else 52266 CYGWIN_WINDOWSSDKDIR="${WINDOWSSDKDIR}" 52267 52268 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52269 52270 # Input might be given as Windows format, start by converting to 52271 # unix format. 52272 path="$CYGWIN_WINDOWSSDKDIR" 52273 new_path=`$CYGPATH -u "$path"` 52274 52275 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 52276 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 52277 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 52278 # "foo.exe" is OK but "foo" is an error. 52279 # 52280 # This test is therefore slightly more accurate than "test -f" to check for file precense. 52281 # It is also a way to make sure we got the proper file name for the real test later on. 52282 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 52283 if test "x$test_shortpath" = x; then 52284 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CYGWIN_WINDOWSSDKDIR, which resolves as \"$path\", is invalid." >&5 52285 $as_echo "$as_me: The path of CYGWIN_WINDOWSSDKDIR, which resolves as \"$path\", is invalid." >&6;} 52286 as_fn_error $? "Cannot locate the the path of CYGWIN_WINDOWSSDKDIR" "$LINENO" 5 52287 fi 52288 52289 # Call helper function which possibly converts this using DOS-style short mode. 52290 # If so, the updated path is stored in $new_path. 52291 52292 input_path="$new_path" 52293 # Check if we need to convert this using DOS-style short mode. If the path 52294 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52295 # take no chances and rewrite it. 52296 # Note: m4 eats our [], so we need to use [ and ] instead. 52297 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 52298 if test "x$has_forbidden_chars" != x; then 52299 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52300 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 52301 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 52302 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 52303 # Going to short mode and back again did indeed matter. Since short mode is 52304 # case insensitive, let's make it lowercase to improve readability. 52305 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52306 # Now convert it back to Unix-style (cygpath) 52307 input_path=`$CYGPATH -u "$shortmode_path"` 52308 new_path="$input_path" 52309 fi 52310 fi 52311 52312 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 52313 if test "x$test_cygdrive_prefix" = x; then 52314 # As a simple fix, exclude /usr/bin since it's not a real path. 52315 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 52316 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 52317 # a path prefixed by /cygdrive for fixpath to work. 52318 new_path="$CYGWIN_ROOT_PATH$input_path" 52319 fi 52320 fi 52321 52322 52323 if test "x$path" != "x$new_path"; then 52324 CYGWIN_WINDOWSSDKDIR="$new_path" 52325 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CYGWIN_WINDOWSSDKDIR to \"$new_path\"" >&5 52326 $as_echo "$as_me: Rewriting CYGWIN_WINDOWSSDKDIR to \"$new_path\"" >&6;} 52327 fi 52328 52329 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52330 52331 path="$CYGWIN_WINDOWSSDKDIR" 52332 has_colon=`$ECHO $path | $GREP ^.:` 52333 new_path="$path" 52334 if test "x$has_colon" = x; then 52335 # Not in mixed or Windows style, start by that. 52336 new_path=`cmd //c echo $path` 52337 fi 52338 52339 52340 input_path="$new_path" 52341 # Check if we need to convert this using DOS-style short mode. If the path 52342 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52343 # take no chances and rewrite it. 52344 # Note: m4 eats our [], so we need to use [ and ] instead. 52345 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 52346 if test "x$has_forbidden_chars" != x; then 52347 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52348 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52349 fi 52350 52351 52352 windows_path="$new_path" 52353 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52354 unix_path=`$CYGPATH -u "$windows_path"` 52355 new_path="$unix_path" 52356 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52357 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 52358 new_path="$unix_path" 52359 fi 52360 52361 if test "x$path" != "x$new_path"; then 52362 CYGWIN_WINDOWSSDKDIR="$new_path" 52363 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CYGWIN_WINDOWSSDKDIR to \"$new_path\"" >&5 52364 $as_echo "$as_me: Rewriting CYGWIN_WINDOWSSDKDIR to \"$new_path\"" >&6;} 52365 fi 52366 52367 # Save the first 10 bytes of this path to the storage, so fixpath can work. 52368 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 52369 52370 else 52371 # We're on a posix platform. Hooray! :) 52372 path="$CYGWIN_WINDOWSSDKDIR" 52373 has_space=`$ECHO "$path" | $GREP " "` 52374 if test "x$has_space" != x; then 52375 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CYGWIN_WINDOWSSDKDIR, which resolves as \"$path\", is invalid." >&5 52376 $as_echo "$as_me: The path of CYGWIN_WINDOWSSDKDIR, which resolves as \"$path\", is invalid." >&6;} 52377 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 52378 fi 52379 52380 # Use eval to expand a potential ~ 52381 eval path="$path" 52382 if test ! -f "$path" && test ! -d "$path"; then 52383 as_fn_error $? "The path of CYGWIN_WINDOWSSDKDIR, which resolves as \"$path\", is not found." "$LINENO" 5 52384 fi 52385 52386 CYGWIN_WINDOWSSDKDIR="`cd "$path"; $THEPWDCMD -L`" 52387 fi 52388 52389 dll_subdir=$OPENJDK_TARGET_CPU 52390 if test "x$dll_subdir" = "xx86_64"; then 52391 dll_subdir="x64" 52392 fi 52393 UCRT_DLL_DIR="$CYGWIN_WINDOWSSDKDIR/Redist/ucrt/DLLs/$dll_subdir" 52394 if test -z "$(ls -d "$UCRT_DLL_DIR/"*.dll 2> /dev/null)"; then 52395 # Try with version subdir 52396 UCRT_DLL_DIR="`ls -d $CYGWIN_WINDOWSSDKDIR/Redist/*/ucrt/DLLs/$dll_subdir \ 52397 2> /dev/null | $SORT -d | $HEAD -n1`" 52398 if test -z "$UCRT_DLL_DIR" \ 52399 || test -z "$(ls -d "$UCRT_DLL_DIR/"*.dll 2> /dev/null)"; then 52400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52401 $as_echo "no" >&6; } 52402 as_fn_error $? "Could not find any dlls in $UCRT_DLL_DIR" "$LINENO" 5 52403 else 52404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UCRT_DLL_DIR" >&5 52405 $as_echo "$UCRT_DLL_DIR" >&6; } 52406 fi 52407 else 52408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UCRT_DLL_DIR" >&5 52409 $as_echo "$UCRT_DLL_DIR" >&6; } 52410 fi 52411 fi 52412 else 52413 UCRT_DLL_DIR= 52414 fi 52415 52416 52417 52418 52419 # Check whether --with-dxsdk was given. 52420 if test "${with_dxsdk+set}" = set; then : 52421 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 52422 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 52423 fi 52424 52425 52426 52427 52428 # Check whether --with-dxsdk-lib was given. 52429 if test "${with_dxsdk_lib+set}" = set; then : 52430 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 52431 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 52432 fi 52433 52434 52435 52436 52437 # Check whether --with-dxsdk-include was given. 52438 if test "${with_dxsdk_include+set}" = set; then : 52439 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 52440 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 52441 fi 52442 52443 52444 fi 52445 52446 52447 ############################################################################### 52448 # 52449 # We need to do some final tweaking, when everything else is done. 52450 # 52451 ############################################################################### 52452 52453 52454 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 52455 52456 52457 # The name of the Service Agent jar. 52458 SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}" 52459 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 52460 SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}" 52461 fi 52462 52463 52464 52465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 52466 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 52467 52468 if test -d "${SRC_ROOT}/jdk/src/share/native/sun/security/ec/impl"; then 52469 ENABLE_INTREE_EC=yes 52470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52471 $as_echo "yes" >&6; } 52472 else 52473 ENABLE_INTREE_EC=no 52474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52475 $as_echo "no" >&6; } 52476 fi 52477 52478 52479 52480 52481 ############################################################################### 52482 # 52483 # Configure parts of the build that only affect the build performance, 52484 # not the result. 52485 # 52486 ############################################################################### 52487 52488 52489 # How many cores do we have on this build system? 52490 52491 # Check whether --with-num-cores was given. 52492 if test "${with_num_cores+set}" = set; then : 52493 withval=$with_num_cores; 52494 fi 52495 52496 if test "x$with_num_cores" = x; then 52497 # The number of cores were not specified, try to probe them. 52498 52499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 52500 $as_echo_n "checking for number of cores... " >&6; } 52501 NUM_CORES=1 52502 FOUND_CORES=no 52503 52504 if test -f /proc/cpuinfo; then 52505 # Looks like a Linux (or cygwin) system 52506 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 52507 FOUND_CORES=yes 52508 elif test -x /usr/sbin/psrinfo; then 52509 # Looks like a Solaris system 52510 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 52511 FOUND_CORES=yes 52512 elif test -x /usr/sbin/system_profiler; then 52513 # Looks like a MacOSX system 52514 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` 52515 FOUND_CORES=yes 52516 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 52517 NUM_LCPU=`lparstat -m 2> /dev/null | $GREP -o "lcpu=[0-9]*" | $CUT -d "=" -f 2` 52518 if test -n "$NUM_LCPU"; then 52519 NUM_CORES=$NUM_LCPU 52520 FOUND_CORES=yes 52521 fi 52522 elif test -n "$NUMBER_OF_PROCESSORS"; then 52523 # On windows, look in the env 52524 NUM_CORES=$NUMBER_OF_PROCESSORS 52525 FOUND_CORES=yes 52526 fi 52527 52528 if test "x$FOUND_CORES" = xyes; then 52529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 52530 $as_echo "$NUM_CORES" >&6; } 52531 else 52532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 52533 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 52534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 52535 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 52536 fi 52537 52538 else 52539 NUM_CORES=$with_num_cores 52540 fi 52541 52542 52543 52544 # How much memory do we have on this build system? 52545 52546 # Check whether --with-memory-size was given. 52547 if test "${with_memory_size+set}" = set; then : 52548 withval=$with_memory_size; 52549 fi 52550 52551 if test "x$with_memory_size" = x; then 52552 # The memory size was not specified, try to probe it. 52553 52554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 52555 $as_echo_n "checking for memory size... " >&6; } 52556 # Default to 1024 MB 52557 MEMORY_SIZE=1024 52558 FOUND_MEM=no 52559 52560 if test -f /proc/meminfo; then 52561 # Looks like a Linux (or cygwin) system 52562 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 52563 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 52564 FOUND_MEM=yes 52565 elif test -x /usr/sbin/prtconf; then 52566 # Looks like a Solaris or AIX system 52567 MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 52568 FOUND_MEM=yes 52569 elif test -x /usr/sbin/system_profiler; then 52570 # Looks like a MacOSX system 52571 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'` 52572 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` 52573 FOUND_MEM=yes 52574 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 52575 # Windows, but without cygwin 52576 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 52577 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 52578 FOUND_MEM=yes 52579 fi 52580 52581 if test "x$FOUND_MEM" = xyes; then 52582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 52583 $as_echo "$MEMORY_SIZE MB" >&6; } 52584 else 52585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to 1024 MB" >&5 52586 $as_echo "could not detect memory size, defaulting to 1024 MB" >&6; } 52587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 52588 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 52589 fi 52590 52591 else 52592 MEMORY_SIZE=$with_memory_size 52593 fi 52594 52595 52596 52597 # Provide a decent default number of parallel jobs for make depending on 52598 # number of cores, amount of memory and machine architecture. 52599 52600 # Check whether --with-jobs was given. 52601 if test "${with_jobs+set}" = set; then : 52602 withval=$with_jobs; 52603 fi 52604 52605 if test "x$with_jobs" = x; then 52606 # Number of jobs was not specified, calculate. 52607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 52608 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 52609 # Approximate memory in GB, rounding up a bit. 52610 memory_gb=`expr $MEMORY_SIZE / 1100` 52611 # Pick the lowest of memory in gb and number of cores. 52612 if test "$memory_gb" -lt "$NUM_CORES"; then 52613 JOBS="$memory_gb" 52614 else 52615 JOBS="$NUM_CORES" 52616 # On bigger machines, leave some room for other processes to run 52617 if test "$JOBS" -gt "4"; then 52618 JOBS=`expr $JOBS '*' 90 / 100` 52619 fi 52620 fi 52621 # Cap number of jobs to 16 52622 if test "$JOBS" -gt "16"; then 52623 JOBS=16 52624 fi 52625 if test "$JOBS" -eq "0"; then 52626 JOBS=1 52627 fi 52628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 52629 $as_echo "$JOBS" >&6; } 52630 else 52631 JOBS=$with_jobs 52632 fi 52633 52634 52635 52636 # Setup smart javac (after cores and memory have been setup) 52637 52638 52639 # Check whether --with-sjavac-server-java was given. 52640 if test "${with_sjavac_server_java+set}" = set; then : 52641 withval=$with_sjavac_server_java; 52642 fi 52643 52644 52645 if test "x$with_sjavac_server_java" != x; then 52646 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 52647 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 52648 if test "x$FOUND_VERSION" = x; then 52649 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 52650 fi 52651 else 52652 SJAVAC_SERVER_JAVA="" 52653 # Hotspot specific options. 52654 52655 $ECHO "Check if jvm arg is ok: -verbosegc" >&5 52656 $ECHO "Command: $JAVA -verbosegc -version" >&5 52657 OUTPUT=`$JAVA -verbosegc -version 2>&1` 52658 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52659 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52660 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52661 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -verbosegc" 52662 JVM_ARG_OK=true 52663 else 52664 $ECHO "Arg failed:" >&5 52665 $ECHO "$OUTPUT" >&5 52666 JVM_ARG_OK=false 52667 fi 52668 52669 # JRockit specific options. 52670 52671 $ECHO "Check if jvm arg is ok: -Xverbose:gc" >&5 52672 $ECHO "Command: $JAVA -Xverbose:gc -version" >&5 52673 OUTPUT=`$JAVA -Xverbose:gc -version 2>&1` 52674 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52675 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52676 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52677 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xverbose:gc" 52678 JVM_ARG_OK=true 52679 else 52680 $ECHO "Arg failed:" >&5 52681 $ECHO "$OUTPUT" >&5 52682 JVM_ARG_OK=false 52683 fi 52684 52685 SJAVAC_SERVER_JAVA="$JAVA $SJAVAC_SERVER_JAVA" 52686 fi 52687 52688 52689 if test "$MEMORY_SIZE" -gt "2500"; then 52690 52691 $ECHO "Check if jvm arg is ok: -d64" >&5 52692 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 52693 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 52694 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52695 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52696 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52697 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -d64" 52698 JVM_ARG_OK=true 52699 else 52700 $ECHO "Arg failed:" >&5 52701 $ECHO "$OUTPUT" >&5 52702 JVM_ARG_OK=false 52703 fi 52704 52705 if test "$JVM_ARG_OK" = true; then 52706 JVM_64BIT=true 52707 JVM_ARG_OK=false 52708 fi 52709 fi 52710 52711 if test "$JVM_64BIT" = true; then 52712 if test "$MEMORY_SIZE" -gt "17000"; then 52713 52714 $ECHO "Check if jvm arg is ok: -Xms10G -Xmx10G" >&5 52715 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version" >&5 52716 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version 2>&1` 52717 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52718 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52719 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52720 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G" 52721 JVM_ARG_OK=true 52722 else 52723 $ECHO "Arg failed:" >&5 52724 $ECHO "$OUTPUT" >&5 52725 JVM_ARG_OK=false 52726 fi 52727 52728 fi 52729 if test "$MEMORY_SIZE" -gt "10000" && test "$JVM_ARG_OK" = false; then 52730 52731 $ECHO "Check if jvm arg is ok: -Xms6G -Xmx6G" >&5 52732 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version" >&5 52733 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version 2>&1` 52734 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52735 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52736 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52737 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G" 52738 JVM_ARG_OK=true 52739 else 52740 $ECHO "Arg failed:" >&5 52741 $ECHO "$OUTPUT" >&5 52742 JVM_ARG_OK=false 52743 fi 52744 52745 fi 52746 if test "$MEMORY_SIZE" -gt "5000" && test "$JVM_ARG_OK" = false; then 52747 52748 $ECHO "Check if jvm arg is ok: -Xms1G -Xmx3G" >&5 52749 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version" >&5 52750 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version 2>&1` 52751 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52752 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52753 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52754 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G" 52755 JVM_ARG_OK=true 52756 else 52757 $ECHO "Arg failed:" >&5 52758 $ECHO "$OUTPUT" >&5 52759 JVM_ARG_OK=false 52760 fi 52761 52762 fi 52763 if test "$MEMORY_SIZE" -gt "3800" && test "$JVM_ARG_OK" = false; then 52764 52765 $ECHO "Check if jvm arg is ok: -Xms1G -Xmx2500M" >&5 52766 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version" >&5 52767 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1` 52768 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52769 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52770 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52771 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M" 52772 JVM_ARG_OK=true 52773 else 52774 $ECHO "Arg failed:" >&5 52775 $ECHO "$OUTPUT" >&5 52776 JVM_ARG_OK=false 52777 fi 52778 52779 fi 52780 fi 52781 if test "$MEMORY_SIZE" -gt "2500" && test "$JVM_ARG_OK" = false; then 52782 52783 $ECHO "Check if jvm arg is ok: -Xms1000M -Xmx1500M" >&5 52784 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version" >&5 52785 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version 2>&1` 52786 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52787 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52788 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52789 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M" 52790 JVM_ARG_OK=true 52791 else 52792 $ECHO "Arg failed:" >&5 52793 $ECHO "$OUTPUT" >&5 52794 JVM_ARG_OK=false 52795 fi 52796 52797 fi 52798 if test "$MEMORY_SIZE" -gt "1000" && test "$JVM_ARG_OK" = false; then 52799 52800 $ECHO "Check if jvm arg is ok: -Xms400M -Xmx1100M" >&5 52801 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version" >&5 52802 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version 2>&1` 52803 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52804 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52805 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52806 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M" 52807 JVM_ARG_OK=true 52808 else 52809 $ECHO "Arg failed:" >&5 52810 $ECHO "$OUTPUT" >&5 52811 JVM_ARG_OK=false 52812 fi 52813 52814 fi 52815 if test "$JVM_ARG_OK" = false; then 52816 52817 $ECHO "Check if jvm arg is ok: -Xms256M -Xmx512M" >&5 52818 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version" >&5 52819 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version 2>&1` 52820 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52821 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52822 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52823 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M" 52824 JVM_ARG_OK=true 52825 else 52826 $ECHO "Arg failed:" >&5 52827 $ECHO "$OUTPUT" >&5 52828 JVM_ARG_OK=false 52829 fi 52830 52831 fi 52832 52833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 52834 $as_echo_n "checking whether to use sjavac... " >&6; } 52835 # Check whether --enable-sjavac was given. 52836 if test "${enable_sjavac+set}" = set; then : 52837 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 52838 else 52839 ENABLE_SJAVAC='no' 52840 fi 52841 52842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 52843 $as_echo "$ENABLE_SJAVAC" >&6; } 52844 52845 52846 if test "x$ENABLE_SJAVAC" = xyes; then 52847 SJAVAC_SERVER_DIR="$OUTPUT_ROOT/javacservers" 52848 else 52849 SJAVAC_SERVER_DIR= 52850 fi 52851 52852 52853 52854 # Can the C/C++ compiler use precompiled headers? 52855 52856 52857 ############################################################################### 52858 # 52859 # Can the C/C++ compiler use precompiled headers? 52860 # 52861 # Check whether --enable-precompiled-headers was given. 52862 if test "${enable_precompiled_headers+set}" = set; then : 52863 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 52864 else 52865 ENABLE_PRECOMPH=yes 52866 fi 52867 52868 52869 USE_PRECOMPILED_HEADER=1 52870 if test "x$ENABLE_PRECOMPH" = xno; then 52871 USE_PRECOMPILED_HEADER=0 52872 fi 52873 52874 if test "x$ENABLE_PRECOMPH" = xyes; then 52875 # Check that the compiler actually supports precomp headers. 52876 if test "x$TOOLCHAIN_TYPE" = xgcc; then 52877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 52878 $as_echo_n "checking that precompiled headers work... " >&6; } 52879 echo "int alfa();" > conftest.h 52880 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 52881 if test ! -f conftest.hpp.gch; then 52882 USE_PRECOMPILED_HEADER=0 52883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52884 $as_echo "no" >&6; } 52885 else 52886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52887 $as_echo "yes" >&6; } 52888 fi 52889 rm -f conftest.h conftest.hpp.gch 52890 fi 52891 fi 52892 52893 52894 52895 52896 # Setup use of ccache, if available 52897 52898 # Check whether --enable-ccache was given. 52899 if test "${enable_ccache+set}" = set; then : 52900 enableval=$enable_ccache; 52901 fi 52902 52903 52904 CCACHE= 52905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 52906 $as_echo_n "checking is ccache enabled... " >&6; } 52907 ENABLE_CCACHE=$enable_ccache 52908 if test "x$enable_ccache" = xyes; then 52909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52910 $as_echo "yes" >&6; } 52911 OLD_PATH="$PATH" 52912 if test "x$TOOLCHAIN_PATH" != x; then 52913 PATH=$TOOLCHAIN_PATH:$PATH 52914 fi 52915 52916 52917 52918 # Publish this variable in the help. 52919 52920 52921 if test "x$CCACHE" = x; then 52922 # The variable is not set by user, try to locate tool using the code snippet 52923 for ac_prog in ccache 52924 do 52925 # Extract the first word of "$ac_prog", so it can be a program name with args. 52926 set dummy $ac_prog; ac_word=$2 52927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 52928 $as_echo_n "checking for $ac_word... " >&6; } 52929 if ${ac_cv_path_CCACHE+:} false; then : 52930 $as_echo_n "(cached) " >&6 52931 else 52932 case $CCACHE in 52933 [\\/]* | ?:[\\/]*) 52934 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 52935 ;; 52936 *) 52937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 52938 for as_dir in $PATH 52939 do 52940 IFS=$as_save_IFS 52941 test -z "$as_dir" && as_dir=. 52942 for ac_exec_ext in '' $ac_executable_extensions; do 52943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 52944 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 52945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 52946 break 2 52947 fi 52948 done 52949 done 52950 IFS=$as_save_IFS 52951 52952 ;; 52953 esac 52954 fi 52955 CCACHE=$ac_cv_path_CCACHE 52956 if test -n "$CCACHE"; then 52957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 52958 $as_echo "$CCACHE" >&6; } 52959 else 52960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52961 $as_echo "no" >&6; } 52962 fi 52963 52964 52965 test -n "$CCACHE" && break 52966 done 52967 52968 else 52969 # The variable is set, but is it from the command line or the environment? 52970 52971 # Try to remove the string !CCACHE! from our list. 52972 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 52973 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 52974 # If it failed, the variable was not from the command line. Ignore it, 52975 # but warn the user (except for BASH, which is always set by the calling BASH). 52976 if test "xCCACHE" != xBASH; then 52977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 52978 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 52979 fi 52980 # Try to locate tool using the code snippet 52981 for ac_prog in ccache 52982 do 52983 # Extract the first word of "$ac_prog", so it can be a program name with args. 52984 set dummy $ac_prog; ac_word=$2 52985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 52986 $as_echo_n "checking for $ac_word... " >&6; } 52987 if ${ac_cv_path_CCACHE+:} false; then : 52988 $as_echo_n "(cached) " >&6 52989 else 52990 case $CCACHE in 52991 [\\/]* | ?:[\\/]*) 52992 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 52993 ;; 52994 *) 52995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 52996 for as_dir in $PATH 52997 do 52998 IFS=$as_save_IFS 52999 test -z "$as_dir" && as_dir=. 53000 for ac_exec_ext in '' $ac_executable_extensions; do 53001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 53002 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 53003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 53004 break 2 53005 fi 53006 done 53007 done 53008 IFS=$as_save_IFS 53009 53010 ;; 53011 esac 53012 fi 53013 CCACHE=$ac_cv_path_CCACHE 53014 if test -n "$CCACHE"; then 53015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 53016 $as_echo "$CCACHE" >&6; } 53017 else 53018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53019 $as_echo "no" >&6; } 53020 fi 53021 53022 53023 test -n "$CCACHE" && break 53024 done 53025 53026 else 53027 # If it succeeded, then it was overridden by the user. We will use it 53028 # for the tool. 53029 53030 # First remove it from the list of overridden variables, so we can test 53031 # for unknown variables in the end. 53032 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 53033 53034 # Check if the provided tool contains a complete path. 53035 tool_specified="$CCACHE" 53036 tool_basename="${tool_specified##*/}" 53037 if test "x$tool_basename" = "x$tool_specified"; then 53038 # A command without a complete path is provided, search $PATH. 53039 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 53040 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 53041 # Extract the first word of "$tool_basename", so it can be a program name with args. 53042 set dummy $tool_basename; ac_word=$2 53043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 53044 $as_echo_n "checking for $ac_word... " >&6; } 53045 if ${ac_cv_path_CCACHE+:} false; then : 53046 $as_echo_n "(cached) " >&6 53047 else 53048 case $CCACHE in 53049 [\\/]* | ?:[\\/]*) 53050 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 53051 ;; 53052 *) 53053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 53054 for as_dir in $PATH 53055 do 53056 IFS=$as_save_IFS 53057 test -z "$as_dir" && as_dir=. 53058 for ac_exec_ext in '' $ac_executable_extensions; do 53059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 53060 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 53061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 53062 break 2 53063 fi 53064 done 53065 done 53066 IFS=$as_save_IFS 53067 53068 ;; 53069 esac 53070 fi 53071 CCACHE=$ac_cv_path_CCACHE 53072 if test -n "$CCACHE"; then 53073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 53074 $as_echo "$CCACHE" >&6; } 53075 else 53076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53077 $as_echo "no" >&6; } 53078 fi 53079 53080 53081 if test "x$CCACHE" = x; then 53082 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 53083 fi 53084 else 53085 # Otherwise we believe it is a complete path. Use it as it is. 53086 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 53087 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 53088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 53089 $as_echo_n "checking for CCACHE... " >&6; } 53090 if test ! -x "$tool_specified"; then 53091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 53092 $as_echo "not found" >&6; } 53093 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 53094 fi 53095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 53096 $as_echo "$tool_specified" >&6; } 53097 fi 53098 fi 53099 fi 53100 53101 53102 53103 if test "x$CCACHE" = x; then 53104 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 53105 fi 53106 53107 53108 CCACHE_STATUS="enabled" 53109 PATH="$OLD_PATH" 53110 elif test "x$enable_ccache" = xno; then 53111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 53112 $as_echo "no, explicitly disabled" >&6; } 53113 elif test "x$enable_ccache" = x; then 53114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53115 $as_echo "no" >&6; } 53116 else 53117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 53118 $as_echo "unknown" >&6; } 53119 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 53120 fi 53121 53122 53123 53124 # Check whether --with-ccache-dir was given. 53125 if test "${with_ccache_dir+set}" = set; then : 53126 withval=$with_ccache_dir; 53127 fi 53128 53129 53130 if test "x$with_ccache_dir" != x; then 53131 # When using a non home ccache directory, assume the use is to share ccache files 53132 # with other users. Thus change the umask. 53133 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 53134 if test "x$CCACHE" = x; then 53135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 53136 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 53137 fi 53138 fi 53139 53140 if test "x$CCACHE" != x; then 53141 53142 if test "x$CCACHE" != x; then 53143 # Only use ccache if it is 3.1.4 or later, which supports 53144 # precompiled headers. 53145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5 53146 $as_echo_n "checking if ccache supports precompiled headers... " >&6; } 53147 HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null` 53148 if test "x$HAS_GOOD_CCACHE" = x; then 53149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5 53150 $as_echo "no, disabling ccache" >&6; } 53151 CCACHE= 53152 CCACHE_STATUS="disabled" 53153 else 53154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 53155 $as_echo "yes" >&6; } 53156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 53157 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 53158 PUSHED_FLAGS="$CXXFLAGS" 53159 CXXFLAGS="-fpch-preprocess $CXXFLAGS" 53160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53161 /* end confdefs.h. */ 53162 53163 int 53164 main () 53165 { 53166 53167 ; 53168 return 0; 53169 } 53170 _ACEOF 53171 if ac_fn_cxx_try_compile "$LINENO"; then : 53172 CC_KNOWS_CCACHE_TRICK=yes 53173 else 53174 CC_KNOWS_CCACHE_TRICK=no 53175 fi 53176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53177 CXXFLAGS="$PUSHED_FLAGS" 53178 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 53179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 53180 $as_echo "yes" >&6; } 53181 else 53182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5 53183 $as_echo "no, disabling ccaching of precompiled headers" >&6; } 53184 CCACHE= 53185 CCACHE_STATUS="disabled" 53186 fi 53187 fi 53188 fi 53189 53190 if test "x$CCACHE" != x; then 53191 CCACHE_SLOPPINESS=time_macros 53192 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE" 53193 CCACHE_FLAGS=-fpch-preprocess 53194 53195 if test "x$SET_CCACHE_DIR" != x; then 53196 mkdir -p $CCACHE_DIR > /dev/null 2>&1 53197 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 53198 fi 53199 fi 53200 53201 fi 53202 53203 53204 ############################################################################### 53205 # 53206 # And now the finish... 53207 # 53208 ############################################################################### 53209 53210 # Check for some common pitfalls 53211 53212 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53213 file_to_test="$SRC_ROOT/LICENSE" 53214 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 53215 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 53216 fi 53217 fi 53218 53219 53220 # Did user specify any unknown variables? 53221 53222 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 53223 # Replace the separating ! with spaces before presenting for end user. 53224 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 53225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 53226 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 53227 fi 53228 53229 53230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 53231 $as_echo_n "checking if build directory is on local disk... " >&6; } 53232 53233 # df -l lists only local disks; if the given directory is not found then 53234 # a non-zero exit code is given 53235 if test "x$DF" = x; then 53236 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53237 # msys does not have df; use Windows "net use" instead. 53238 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 53239 if test "x$IS_NETWORK_DISK" = x; then 53240 OUTPUT_DIR_IS_LOCAL="yes" 53241 else 53242 OUTPUT_DIR_IS_LOCAL="no" 53243 fi 53244 else 53245 # No df here, say it's local 53246 OUTPUT_DIR_IS_LOCAL="yes" 53247 fi 53248 else 53249 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 53250 OUTPUT_DIR_IS_LOCAL="yes" 53251 else 53252 OUTPUT_DIR_IS_LOCAL="no" 53253 fi 53254 fi 53255 53256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 53257 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 53258 53259 53260 53261 # Check if the user has any old-style ALT_ variables set. 53262 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 53263 53264 # Before generating output files, test if they exist. If they do, this is a reconfigure. 53265 # Since we can't properly handle the dependencies for this, warn the user about the situation 53266 if test -e $OUTPUT_ROOT/spec.gmk; then 53267 IS_RECONFIGURE=yes 53268 else 53269 IS_RECONFIGURE=no 53270 fi 53271 53272 53273 # At the end, call the custom hook. (Dummy macro if no custom sources available) 53274 53275 53276 # We're messing a bit with internal autoconf variables to put the config.status 53277 # in the output directory instead of the current directory. 53278 CONFIG_STATUS="$OUTPUT_ROOT/config.status" 53279 53280 # Create the actual output files. Now the main work of configure is done. 53281 cat >confcache <<\_ACEOF 53282 # This file is a shell script that caches the results of configure 53283 # tests run on this system so they can be shared between configure 53284 # scripts and configure runs, see configure's option --config-cache. 53285 # It is not useful on other systems. If it contains results you don't 53286 # want to keep, you may remove or edit it. 53287 # 53288 # config.status only pays attention to the cache file if you give it 53289 # the --recheck option to rerun configure. 53290 # 53291 # `ac_cv_env_foo' variables (set or unset) will be overridden when 53292 # loading this file, other *unset* `ac_cv_foo' will be assigned the 53293 # following values. 53294 53295 _ACEOF 53296 53297 # The following way of writing the cache mishandles newlines in values, 53298 # but we know of no workaround that is simple, portable, and efficient. 53299 # So, we kill variables containing newlines. 53300 # Ultrix sh set writes to stderr and can't be redirected directly, 53301 # and sets the high bit in the cache file unless we assign to the vars. 53302 ( 53303 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 53304 eval ac_val=\$$ac_var 53305 case $ac_val in #( 53306 *${as_nl}*) 53307 case $ac_var in #( 53308 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 53309 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 53310 esac 53311 case $ac_var in #( 53312 _ | IFS | as_nl) ;; #( 53313 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 53314 *) { eval $ac_var=; unset $ac_var;} ;; 53315 esac ;; 53316 esac 53317 done 53318 53319 (set) 2>&1 | 53320 case $as_nl`(ac_space=' '; set) 2>&1` in #( 53321 *${as_nl}ac_space=\ *) 53322 # `set' does not quote correctly, so add quotes: double-quote 53323 # substitution turns \\\\ into \\, and sed turns \\ into \. 53324 sed -n \ 53325 "s/'/'\\\\''/g; 53326 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 53327 ;; #( 53328 *) 53329 # `set' quotes correctly as required by POSIX, so do not add quotes. 53330 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 53331 ;; 53332 esac | 53333 sort 53334 ) | 53335 sed ' 53336 /^ac_cv_env_/b end 53337 t clear 53338 :clear 53339 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 53340 t end 53341 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 53342 :end' >>confcache 53343 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 53344 if test -w "$cache_file"; then 53345 if test "x$cache_file" != "x/dev/null"; then 53346 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 53347 $as_echo "$as_me: updating cache $cache_file" >&6;} 53348 if test ! -f "$cache_file" || test -h "$cache_file"; then 53349 cat confcache >"$cache_file" 53350 else 53351 case $cache_file in #( 53352 */* | ?:*) 53353 mv -f confcache "$cache_file"$$ && 53354 mv -f "$cache_file"$$ "$cache_file" ;; #( 53355 *) 53356 mv -f confcache "$cache_file" ;; 53357 esac 53358 fi 53359 fi 53360 else 53361 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 53362 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 53363 fi 53364 fi 53365 rm -f confcache 53366 53367 test "x$prefix" = xNONE && prefix=$ac_default_prefix 53368 # Let make expand exec_prefix. 53369 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 53370 53371 DEFS=-DHAVE_CONFIG_H 53372 53373 ac_libobjs= 53374 ac_ltlibobjs= 53375 U= 53376 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 53377 # 1. Remove the extension, and $U if already installed. 53378 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 53379 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 53380 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 53381 # will be set to the directory where LIBOBJS objects are built. 53382 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 53383 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 53384 done 53385 LIBOBJS=$ac_libobjs 53386 53387 LTLIBOBJS=$ac_ltlibobjs 53388 53389 53390 53391 : "${CONFIG_STATUS=./config.status}" 53392 ac_write_fail=0 53393 ac_clean_files_save=$ac_clean_files 53394 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 53395 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 53396 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 53397 as_write_fail=0 53398 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 53399 #! $SHELL 53400 # Generated by $as_me. 53401 # Run this file to recreate the current configuration. 53402 # Compiler output produced by configure, useful for debugging 53403 # configure, is in config.log if it exists. 53404 53405 debug=false 53406 ac_cs_recheck=false 53407 ac_cs_silent=false 53408 53409 SHELL=\${CONFIG_SHELL-$SHELL} 53410 export SHELL 53411 _ASEOF 53412 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 53413 ## -------------------- ## 53414 ## M4sh Initialization. ## 53415 ## -------------------- ## 53416 53417 # Be more Bourne compatible 53418 DUALCASE=1; export DUALCASE # for MKS sh 53419 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 53420 emulate sh 53421 NULLCMD=: 53422 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 53423 # is contrary to our usage. Disable this feature. 53424 alias -g '${1+"$@"}'='"$@"' 53425 setopt NO_GLOB_SUBST 53426 else 53427 case `(set -o) 2>/dev/null` in #( 53428 *posix*) : 53429 set -o posix ;; #( 53430 *) : 53431 ;; 53432 esac 53433 fi 53434 53435 53436 as_nl=' 53437 ' 53438 export as_nl 53439 # Printing a long string crashes Solaris 7 /usr/bin/printf. 53440 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 53441 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 53442 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 53443 # Prefer a ksh shell builtin over an external printf program on Solaris, 53444 # but without wasting forks for bash or zsh. 53445 if test -z "$BASH_VERSION$ZSH_VERSION" \ 53446 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 53447 as_echo='print -r --' 53448 as_echo_n='print -rn --' 53449 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 53450 as_echo='printf %s\n' 53451 as_echo_n='printf %s' 53452 else 53453 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 53454 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53455 as_echo_n='/usr/ucb/echo -n' 53456 else 53457 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 53458 as_echo_n_body='eval 53459 arg=$1; 53460 case $arg in #( 53461 *"$as_nl"*) 53462 expr "X$arg" : "X\\(.*\\)$as_nl"; 53463 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 53464 esac; 53465 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 53466 ' 53467 export as_echo_n_body 53468 as_echo_n='sh -c $as_echo_n_body as_echo' 53469 fi 53470 export as_echo_body 53471 as_echo='sh -c $as_echo_body as_echo' 53472 fi 53473 53474 # The user is always right. 53475 if test "${PATH_SEPARATOR+set}" != set; then 53476 PATH_SEPARATOR=: 53477 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 53478 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 53479 PATH_SEPARATOR=';' 53480 } 53481 fi 53482 53483 53484 # IFS 53485 # We need space, tab and new line, in precisely that order. Quoting is 53486 # there to prevent editors from complaining about space-tab. 53487 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 53488 # splitting by setting IFS to empty value.) 53489 IFS=" "" $as_nl" 53490 53491 # Find who we are. Look in the path if we contain no directory separator. 53492 as_myself= 53493 case $0 in #(( 53494 *[\\/]* ) as_myself=$0 ;; 53495 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 53496 for as_dir in $PATH 53497 do 53498 IFS=$as_save_IFS 53499 test -z "$as_dir" && as_dir=. 53500 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 53501 done 53502 IFS=$as_save_IFS 53503 53504 ;; 53505 esac 53506 # We did not find ourselves, most probably we were run as `sh COMMAND' 53507 # in which case we are not to be found in the path. 53508 if test "x$as_myself" = x; then 53509 as_myself=$0 53510 fi 53511 if test ! -f "$as_myself"; then 53512 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 53513 exit 1 53514 fi 53515 53516 # Unset variables that we do not need and which cause bugs (e.g. in 53517 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 53518 # suppresses any "Segmentation fault" message there. '((' could 53519 # trigger a bug in pdksh 5.2.14. 53520 for as_var in BASH_ENV ENV MAIL MAILPATH 53521 do eval test x\${$as_var+set} = xset \ 53522 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 53523 done 53524 PS1='$ ' 53525 PS2='> ' 53526 PS4='+ ' 53527 53528 # NLS nuisances. 53529 LC_ALL=C 53530 export LC_ALL 53531 LANGUAGE=C 53532 export LANGUAGE 53533 53534 # CDPATH. 53535 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 53536 53537 53538 # as_fn_error STATUS ERROR [LINENO LOG_FD] 53539 # ---------------------------------------- 53540 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 53541 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 53542 # script with STATUS, using 1 if that was 0. 53543 as_fn_error () 53544 { 53545 as_status=$1; test $as_status -eq 0 && as_status=1 53546 if test "$4"; then 53547 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 53548 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 53549 fi 53550 $as_echo "$as_me: error: $2" >&2 53551 as_fn_exit $as_status 53552 } # as_fn_error 53553 53554 53555 # as_fn_set_status STATUS 53556 # ----------------------- 53557 # Set $? to STATUS, without forking. 53558 as_fn_set_status () 53559 { 53560 return $1 53561 } # as_fn_set_status 53562 53563 # as_fn_exit STATUS 53564 # ----------------- 53565 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 53566 as_fn_exit () 53567 { 53568 set +e 53569 as_fn_set_status $1 53570 exit $1 53571 } # as_fn_exit 53572 53573 # as_fn_unset VAR 53574 # --------------- 53575 # Portably unset VAR. 53576 as_fn_unset () 53577 { 53578 { eval $1=; unset $1;} 53579 } 53580 as_unset=as_fn_unset 53581 # as_fn_append VAR VALUE 53582 # ---------------------- 53583 # Append the text in VALUE to the end of the definition contained in VAR. Take 53584 # advantage of any shell optimizations that allow amortized linear growth over 53585 # repeated appends, instead of the typical quadratic growth present in naive 53586 # implementations. 53587 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 53588 eval 'as_fn_append () 53589 { 53590 eval $1+=\$2 53591 }' 53592 else 53593 as_fn_append () 53594 { 53595 eval $1=\$$1\$2 53596 } 53597 fi # as_fn_append 53598 53599 # as_fn_arith ARG... 53600 # ------------------ 53601 # Perform arithmetic evaluation on the ARGs, and store the result in the 53602 # global $as_val. Take advantage of shells that can avoid forks. The arguments 53603 # must be portable across $(()) and expr. 53604 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 53605 eval 'as_fn_arith () 53606 { 53607 as_val=$(( $* )) 53608 }' 53609 else 53610 as_fn_arith () 53611 { 53612 as_val=`expr "$@" || test $? -eq 1` 53613 } 53614 fi # as_fn_arith 53615 53616 53617 if expr a : '\(a\)' >/dev/null 2>&1 && 53618 test "X`expr 00001 : '.*\(...\)'`" = X001; then 53619 as_expr=expr 53620 else 53621 as_expr=false 53622 fi 53623 53624 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 53625 as_basename=basename 53626 else 53627 as_basename=false 53628 fi 53629 53630 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 53631 as_dirname=dirname 53632 else 53633 as_dirname=false 53634 fi 53635 53636 as_me=`$as_basename -- "$0" || 53637 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 53638 X"$0" : 'X\(//\)$' \| \ 53639 X"$0" : 'X\(/\)' \| . 2>/dev/null || 53640 $as_echo X/"$0" | 53641 sed '/^.*\/\([^/][^/]*\)\/*$/{ 53642 s//\1/ 53643 q 53644 } 53645 /^X\/\(\/\/\)$/{ 53646 s//\1/ 53647 q 53648 } 53649 /^X\/\(\/\).*/{ 53650 s//\1/ 53651 q 53652 } 53653 s/.*/./; q'` 53654 53655 # Avoid depending upon Character Ranges. 53656 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 53657 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 53658 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 53659 as_cr_digits='0123456789' 53660 as_cr_alnum=$as_cr_Letters$as_cr_digits 53661 53662 ECHO_C= ECHO_N= ECHO_T= 53663 case `echo -n x` in #((((( 53664 -n*) 53665 case `echo 'xy\c'` in 53666 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 53667 xy) ECHO_C='\c';; 53668 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 53669 ECHO_T=' ';; 53670 esac;; 53671 *) 53672 ECHO_N='-n';; 53673 esac 53674 53675 rm -f conf$$ conf$$.exe conf$$.file 53676 if test -d conf$$.dir; then 53677 rm -f conf$$.dir/conf$$.file 53678 else 53679 rm -f conf$$.dir 53680 mkdir conf$$.dir 2>/dev/null 53681 fi 53682 if (echo >conf$$.file) 2>/dev/null; then 53683 if ln -s conf$$.file conf$$ 2>/dev/null; then 53684 as_ln_s='ln -s' 53685 # ... but there are two gotchas: 53686 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 53687 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 53688 # In both cases, we have to default to `cp -pR'. 53689 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 53690 as_ln_s='cp -pR' 53691 elif ln conf$$.file conf$$ 2>/dev/null; then 53692 as_ln_s=ln 53693 else 53694 as_ln_s='cp -pR' 53695 fi 53696 else 53697 as_ln_s='cp -pR' 53698 fi 53699 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 53700 rmdir conf$$.dir 2>/dev/null 53701 53702 53703 # as_fn_mkdir_p 53704 # ------------- 53705 # Create "$as_dir" as a directory, including parents if necessary. 53706 as_fn_mkdir_p () 53707 { 53708 53709 case $as_dir in #( 53710 -*) as_dir=./$as_dir;; 53711 esac 53712 test -d "$as_dir" || eval $as_mkdir_p || { 53713 as_dirs= 53714 while :; do 53715 case $as_dir in #( 53716 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 53717 *) as_qdir=$as_dir;; 53718 esac 53719 as_dirs="'$as_qdir' $as_dirs" 53720 as_dir=`$as_dirname -- "$as_dir" || 53721 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 53722 X"$as_dir" : 'X\(//\)[^/]' \| \ 53723 X"$as_dir" : 'X\(//\)$' \| \ 53724 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 53725 $as_echo X"$as_dir" | 53726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 53727 s//\1/ 53728 q 53729 } 53730 /^X\(\/\/\)[^/].*/{ 53731 s//\1/ 53732 q 53733 } 53734 /^X\(\/\/\)$/{ 53735 s//\1/ 53736 q 53737 } 53738 /^X\(\/\).*/{ 53739 s//\1/ 53740 q 53741 } 53742 s/.*/./; q'` 53743 test -d "$as_dir" && break 53744 done 53745 test -z "$as_dirs" || eval "mkdir $as_dirs" 53746 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 53747 53748 53749 } # as_fn_mkdir_p 53750 if mkdir -p . 2>/dev/null; then 53751 as_mkdir_p='mkdir -p "$as_dir"' 53752 else 53753 test -d ./-p && rmdir ./-p 53754 as_mkdir_p=false 53755 fi 53756 53757 53758 # as_fn_executable_p FILE 53759 # ----------------------- 53760 # Test if FILE is an executable regular file. 53761 as_fn_executable_p () 53762 { 53763 test -f "$1" && test -x "$1" 53764 } # as_fn_executable_p 53765 as_test_x='test -x' 53766 as_executable_p=as_fn_executable_p 53767 53768 # Sed expression to map a string onto a valid CPP name. 53769 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 53770 53771 # Sed expression to map a string onto a valid variable name. 53772 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 53773 53774 53775 exec 6>&1 53776 ## ----------------------------------- ## 53777 ## Main body of $CONFIG_STATUS script. ## 53778 ## ----------------------------------- ## 53779 _ASEOF 53780 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 53781 53782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53783 # Save the log message, to keep $0 and so on meaningful, and to 53784 # report actual input values of CONFIG_FILES etc. instead of their 53785 # values after options handling. 53786 ac_log=" 53787 This file was extended by OpenJDK $as_me jdk8, which was 53788 generated by GNU Autoconf 2.69. Invocation command line was 53789 53790 CONFIG_FILES = $CONFIG_FILES 53791 CONFIG_HEADERS = $CONFIG_HEADERS 53792 CONFIG_LINKS = $CONFIG_LINKS 53793 CONFIG_COMMANDS = $CONFIG_COMMANDS 53794 $ $0 $@ 53795 53796 on `(hostname || uname -n) 2>/dev/null | sed 1q` 53797 " 53798 53799 _ACEOF 53800 53801 case $ac_config_files in *" 53802 "*) set x $ac_config_files; shift; ac_config_files=$*;; 53803 esac 53804 53805 case $ac_config_headers in *" 53806 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 53807 esac 53808 53809 53810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53811 # Files that config.status was made for. 53812 config_files="$ac_config_files" 53813 config_headers="$ac_config_headers" 53814 53815 _ACEOF 53816 53817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53818 ac_cs_usage="\ 53819 \`$as_me' instantiates files and other configuration actions 53820 from templates according to the current configuration. Unless the files 53821 and actions are specified as TAGs, all are instantiated by default. 53822 53823 Usage: $0 [OPTION]... [TAG]... 53824 53825 -h, --help print this help, then exit 53826 -V, --version print version number and configuration settings, then exit 53827 --config print configuration, then exit 53828 -q, --quiet, --silent 53829 do not print progress messages 53830 -d, --debug don't remove temporary files 53831 --recheck update $as_me by reconfiguring in the same conditions 53832 --file=FILE[:TEMPLATE] 53833 instantiate the configuration file FILE 53834 --header=FILE[:TEMPLATE] 53835 instantiate the configuration header FILE 53836 53837 Configuration files: 53838 $config_files 53839 53840 Configuration headers: 53841 $config_headers 53842 53843 Report bugs to <build-dev@openjdk.java.net>. 53844 OpenJDK home page: <http://openjdk.java.net>." 53845 53846 _ACEOF 53847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53848 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 53849 ac_cs_version="\\ 53850 OpenJDK config.status jdk8 53851 configured by $0, generated by GNU Autoconf 2.69, 53852 with options \\"\$ac_cs_config\\" 53853 53854 Copyright (C) 2012 Free Software Foundation, Inc. 53855 This config.status script is free software; the Free Software Foundation 53856 gives unlimited permission to copy, distribute and modify it." 53857 53858 ac_pwd='$ac_pwd' 53859 srcdir='$srcdir' 53860 AWK='$AWK' 53861 test -n "\$AWK" || AWK=awk 53862 _ACEOF 53863 53864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53865 # The default lists apply if the user does not specify any file. 53866 ac_need_defaults=: 53867 while test $# != 0 53868 do 53869 case $1 in 53870 --*=?*) 53871 ac_option=`expr "X$1" : 'X\([^=]*\)='` 53872 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 53873 ac_shift=: 53874 ;; 53875 --*=) 53876 ac_option=`expr "X$1" : 'X\([^=]*\)='` 53877 ac_optarg= 53878 ac_shift=: 53879 ;; 53880 *) 53881 ac_option=$1 53882 ac_optarg=$2 53883 ac_shift=shift 53884 ;; 53885 esac 53886 53887 case $ac_option in 53888 # Handling of the options. 53889 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 53890 ac_cs_recheck=: ;; 53891 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 53892 $as_echo "$ac_cs_version"; exit ;; 53893 --config | --confi | --conf | --con | --co | --c ) 53894 $as_echo "$ac_cs_config"; exit ;; 53895 --debug | --debu | --deb | --de | --d | -d ) 53896 debug=: ;; 53897 --file | --fil | --fi | --f ) 53898 $ac_shift 53899 case $ac_optarg in 53900 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 53901 '') as_fn_error $? "missing file argument" ;; 53902 esac 53903 as_fn_append CONFIG_FILES " '$ac_optarg'" 53904 ac_need_defaults=false;; 53905 --header | --heade | --head | --hea ) 53906 $ac_shift 53907 case $ac_optarg in 53908 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 53909 esac 53910 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 53911 ac_need_defaults=false;; 53912 --he | --h) 53913 # Conflict between --help and --header 53914 as_fn_error $? "ambiguous option: \`$1' 53915 Try \`$0 --help' for more information.";; 53916 --help | --hel | -h ) 53917 $as_echo "$ac_cs_usage"; exit ;; 53918 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 53919 | -silent | --silent | --silen | --sile | --sil | --si | --s) 53920 ac_cs_silent=: ;; 53921 53922 # This is an error. 53923 -*) as_fn_error $? "unrecognized option: \`$1' 53924 Try \`$0 --help' for more information." ;; 53925 53926 *) as_fn_append ac_config_targets " $1" 53927 ac_need_defaults=false ;; 53928 53929 esac 53930 shift 53931 done 53932 53933 ac_configure_extra_args= 53934 53935 if $ac_cs_silent; then 53936 exec 6>/dev/null 53937 ac_configure_extra_args="$ac_configure_extra_args --silent" 53938 fi 53939 53940 _ACEOF 53941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53942 if \$ac_cs_recheck; then 53943 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 53944 shift 53945 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 53946 CONFIG_SHELL='$SHELL' 53947 export CONFIG_SHELL 53948 exec "\$@" 53949 fi 53950 53951 _ACEOF 53952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53953 exec 5>>config.log 53954 { 53955 echo 53956 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 53957 ## Running $as_me. ## 53958 _ASBOX 53959 $as_echo "$ac_log" 53960 } >&5 53961 53962 _ACEOF 53963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53964 _ACEOF 53965 53966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53967 53968 # Handling of arguments. 53969 for ac_config_target in $ac_config_targets 53970 do 53971 case $ac_config_target in 53972 "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;; 53973 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 53974 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 53975 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 53976 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 53977 "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;; 53978 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 53979 53980 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 53981 esac 53982 done 53983 53984 53985 # If the user did not use the arguments to specify the items to instantiate, 53986 # then the envvar interface is used. Set only those that are not. 53987 # We use the long form for the default assignment because of an extremely 53988 # bizarre bug on SunOS 4.1.3. 53989 if $ac_need_defaults; then 53990 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 53991 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 53992 fi 53993 53994 # Have a temporary directory for convenience. Make it in the build tree 53995 # simply because there is no reason against having it here, and in addition, 53996 # creating and moving files from /tmp can sometimes cause problems. 53997 # Hook for its removal unless debugging. 53998 # Note that there is a small window in which the directory will not be cleaned: 53999 # after its creation but before its name has been assigned to `$tmp'. 54000 $debug || 54001 { 54002 tmp= ac_tmp= 54003 trap 'exit_status=$? 54004 : "${ac_tmp:=$tmp}" 54005 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 54006 ' 0 54007 trap 'as_fn_exit 1' 1 2 13 15 54008 } 54009 # Create a (secure) tmp directory for tmp files. 54010 54011 { 54012 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 54013 test -d "$tmp" 54014 } || 54015 { 54016 tmp=./conf$$-$RANDOM 54017 (umask 077 && mkdir "$tmp") 54018 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 54019 ac_tmp=$tmp 54020 54021 # Set up the scripts for CONFIG_FILES section. 54022 # No need to generate them if there are no CONFIG_FILES. 54023 # This happens for instance with `./config.status config.h'. 54024 if test -n "$CONFIG_FILES"; then 54025 54026 54027 ac_cr=`echo X | tr X '\015'` 54028 # On cygwin, bash can eat \r inside `` if the user requested igncr. 54029 # But we know of no other shell where ac_cr would be empty at this 54030 # point, so we can use a bashism as a fallback. 54031 if test "x$ac_cr" = x; then 54032 eval ac_cr=\$\'\\r\' 54033 fi 54034 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 54035 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 54036 ac_cs_awk_cr='\\r' 54037 else 54038 ac_cs_awk_cr=$ac_cr 54039 fi 54040 54041 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 54042 _ACEOF 54043 54044 54045 { 54046 echo "cat >conf$$subs.awk <<_ACEOF" && 54047 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 54048 echo "_ACEOF" 54049 } >conf$$subs.sh || 54050 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 54051 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 54052 ac_delim='%!_!# ' 54053 for ac_last_try in false false false false false :; do 54054 . ./conf$$subs.sh || 54055 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 54056 54057 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 54058 if test $ac_delim_n = $ac_delim_num; then 54059 break 54060 elif $ac_last_try; then 54061 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 54062 else 54063 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 54064 fi 54065 done 54066 rm -f conf$$subs.sh 54067 54068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 54069 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 54070 _ACEOF 54071 sed -n ' 54072 h 54073 s/^/S["/; s/!.*/"]=/ 54074 p 54075 g 54076 s/^[^!]*!// 54077 :repl 54078 t repl 54079 s/'"$ac_delim"'$// 54080 t delim 54081 :nl 54082 h 54083 s/\(.\{148\}\)..*/\1/ 54084 t more1 54085 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 54086 p 54087 n 54088 b repl 54089 :more1 54090 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 54091 p 54092 g 54093 s/.\{148\}// 54094 t nl 54095 :delim 54096 h 54097 s/\(.\{148\}\)..*/\1/ 54098 t more2 54099 s/["\\]/\\&/g; s/^/"/; s/$/"/ 54100 p 54101 b 54102 :more2 54103 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 54104 p 54105 g 54106 s/.\{148\}// 54107 t delim 54108 ' <conf$$subs.awk | sed ' 54109 /^[^""]/{ 54110 N 54111 s/\n// 54112 } 54113 ' >>$CONFIG_STATUS || ac_write_fail=1 54114 rm -f conf$$subs.awk 54115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 54116 _ACAWK 54117 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 54118 for (key in S) S_is_set[key] = 1 54119 FS = "" 54120 54121 } 54122 { 54123 line = $ 0 54124 nfields = split(line, field, "@") 54125 substed = 0 54126 len = length(field[1]) 54127 for (i = 2; i < nfields; i++) { 54128 key = field[i] 54129 keylen = length(key) 54130 if (S_is_set[key]) { 54131 value = S[key] 54132 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 54133 len += length(value) + length(field[++i]) 54134 substed = 1 54135 } else 54136 len += 1 + keylen 54137 } 54138 54139 print line 54140 } 54141 54142 _ACAWK 54143 _ACEOF 54144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 54145 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 54146 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 54147 else 54148 cat 54149 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 54150 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 54151 _ACEOF 54152 54153 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 54154 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 54155 # trailing colons and then remove the whole line if VPATH becomes empty 54156 # (actually we leave an empty line to preserve line numbers). 54157 if test "x$srcdir" = x.; then 54158 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 54159 h 54160 s/// 54161 s/^/:/ 54162 s/[ ]*$/:/ 54163 s/:\$(srcdir):/:/g 54164 s/:\${srcdir}:/:/g 54165 s/:@srcdir@:/:/g 54166 s/^:*// 54167 s/:*$// 54168 x 54169 s/\(=[ ]*\).*/\1/ 54170 G 54171 s/\n// 54172 s/^[^=]*=[ ]*$// 54173 }' 54174 fi 54175 54176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 54177 fi # test -n "$CONFIG_FILES" 54178 54179 # Set up the scripts for CONFIG_HEADERS section. 54180 # No need to generate them if there are no CONFIG_HEADERS. 54181 # This happens for instance with `./config.status Makefile'. 54182 if test -n "$CONFIG_HEADERS"; then 54183 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 54184 BEGIN { 54185 _ACEOF 54186 54187 # Transform confdefs.h into an awk script `defines.awk', embedded as 54188 # here-document in config.status, that substitutes the proper values into 54189 # config.h.in to produce config.h. 54190 54191 # Create a delimiter string that does not exist in confdefs.h, to ease 54192 # handling of long lines. 54193 ac_delim='%!_!# ' 54194 for ac_last_try in false false :; do 54195 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 54196 if test -z "$ac_tt"; then 54197 break 54198 elif $ac_last_try; then 54199 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 54200 else 54201 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 54202 fi 54203 done 54204 54205 # For the awk script, D is an array of macro values keyed by name, 54206 # likewise P contains macro parameters if any. Preserve backslash 54207 # newline sequences. 54208 54209 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 54210 sed -n ' 54211 s/.\{148\}/&'"$ac_delim"'/g 54212 t rset 54213 :rset 54214 s/^[ ]*#[ ]*define[ ][ ]*/ / 54215 t def 54216 d 54217 :def 54218 s/\\$// 54219 t bsnl 54220 s/["\\]/\\&/g 54221 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 54222 D["\1"]=" \3"/p 54223 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 54224 d 54225 :bsnl 54226 s/["\\]/\\&/g 54227 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 54228 D["\1"]=" \3\\\\\\n"\\/p 54229 t cont 54230 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 54231 t cont 54232 d 54233 :cont 54234 n 54235 s/.\{148\}/&'"$ac_delim"'/g 54236 t clear 54237 :clear 54238 s/\\$// 54239 t bsnlc 54240 s/["\\]/\\&/g; s/^/"/; s/$/"/p 54241 d 54242 :bsnlc 54243 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 54244 b cont 54245 ' <confdefs.h | sed ' 54246 s/'"$ac_delim"'/"\\\ 54247 "/g' >>$CONFIG_STATUS || ac_write_fail=1 54248 54249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 54250 for (key in D) D_is_set[key] = 1 54251 FS = "" 54252 } 54253 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 54254 line = \$ 0 54255 split(line, arg, " ") 54256 if (arg[1] == "#") { 54257 defundef = arg[2] 54258 mac1 = arg[3] 54259 } else { 54260 defundef = substr(arg[1], 2) 54261 mac1 = arg[2] 54262 } 54263 split(mac1, mac2, "(") #) 54264 macro = mac2[1] 54265 prefix = substr(line, 1, index(line, defundef) - 1) 54266 if (D_is_set[macro]) { 54267 # Preserve the white space surrounding the "#". 54268 print prefix "define", macro P[macro] D[macro] 54269 next 54270 } else { 54271 # Replace #undef with comments. This is necessary, for example, 54272 # in the case of _POSIX_SOURCE, which is predefined and required 54273 # on some systems where configure will not decide to define it. 54274 if (defundef == "undef") { 54275 print "/*", prefix defundef, macro, "*/" 54276 next 54277 } 54278 } 54279 } 54280 { print } 54281 _ACAWK 54282 _ACEOF 54283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 54284 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 54285 fi # test -n "$CONFIG_HEADERS" 54286 54287 54288 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 54289 shift 54290 for ac_tag 54291 do 54292 case $ac_tag in 54293 :[FHLC]) ac_mode=$ac_tag; continue;; 54294 esac 54295 case $ac_mode$ac_tag in 54296 :[FHL]*:*);; 54297 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 54298 :[FH]-) ac_tag=-:-;; 54299 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 54300 esac 54301 ac_save_IFS=$IFS 54302 IFS=: 54303 set x $ac_tag 54304 IFS=$ac_save_IFS 54305 shift 54306 ac_file=$1 54307 shift 54308 54309 case $ac_mode in 54310 :L) ac_source=$1;; 54311 :[FH]) 54312 ac_file_inputs= 54313 for ac_f 54314 do 54315 case $ac_f in 54316 -) ac_f="$ac_tmp/stdin";; 54317 *) # Look for the file first in the build tree, then in the source tree 54318 # (if the path is not absolute). The absolute path cannot be DOS-style, 54319 # because $ac_f cannot contain `:'. 54320 test -f "$ac_f" || 54321 case $ac_f in 54322 [\\/$]*) false;; 54323 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 54324 esac || 54325 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 54326 esac 54327 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 54328 as_fn_append ac_file_inputs " '$ac_f'" 54329 done 54330 54331 # Let's still pretend it is `configure' which instantiates (i.e., don't 54332 # use $as_me), people would be surprised to read: 54333 # /* config.h. Generated by config.status. */ 54334 configure_input='Generated from '` 54335 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 54336 `' by configure.' 54337 if test x"$ac_file" != x-; then 54338 configure_input="$ac_file. $configure_input" 54339 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 54340 $as_echo "$as_me: creating $ac_file" >&6;} 54341 fi 54342 # Neutralize special characters interpreted by sed in replacement strings. 54343 case $configure_input in #( 54344 *\&* | *\|* | *\\* ) 54345 ac_sed_conf_input=`$as_echo "$configure_input" | 54346 sed 's/[\\\\&|]/\\\\&/g'`;; #( 54347 *) ac_sed_conf_input=$configure_input;; 54348 esac 54349 54350 case $ac_tag in 54351 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 54352 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 54353 esac 54354 ;; 54355 esac 54356 54357 ac_dir=`$as_dirname -- "$ac_file" || 54358 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 54359 X"$ac_file" : 'X\(//\)[^/]' \| \ 54360 X"$ac_file" : 'X\(//\)$' \| \ 54361 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 54362 $as_echo X"$ac_file" | 54363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 54364 s//\1/ 54365 q 54366 } 54367 /^X\(\/\/\)[^/].*/{ 54368 s//\1/ 54369 q 54370 } 54371 /^X\(\/\/\)$/{ 54372 s//\1/ 54373 q 54374 } 54375 /^X\(\/\).*/{ 54376 s//\1/ 54377 q 54378 } 54379 s/.*/./; q'` 54380 as_dir="$ac_dir"; as_fn_mkdir_p 54381 ac_builddir=. 54382 54383 case "$ac_dir" in 54384 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 54385 *) 54386 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 54387 # A ".." for each directory in $ac_dir_suffix. 54388 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 54389 case $ac_top_builddir_sub in 54390 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 54391 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 54392 esac ;; 54393 esac 54394 ac_abs_top_builddir=$ac_pwd 54395 ac_abs_builddir=$ac_pwd$ac_dir_suffix 54396 # for backward compatibility: 54397 ac_top_builddir=$ac_top_build_prefix 54398 54399 case $srcdir in 54400 .) # We are building in place. 54401 ac_srcdir=. 54402 ac_top_srcdir=$ac_top_builddir_sub 54403 ac_abs_top_srcdir=$ac_pwd ;; 54404 [\\/]* | ?:[\\/]* ) # Absolute name. 54405 ac_srcdir=$srcdir$ac_dir_suffix; 54406 ac_top_srcdir=$srcdir 54407 ac_abs_top_srcdir=$srcdir ;; 54408 *) # Relative name. 54409 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 54410 ac_top_srcdir=$ac_top_build_prefix$srcdir 54411 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 54412 esac 54413 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 54414 54415 54416 case $ac_mode in 54417 :F) 54418 # 54419 # CONFIG_FILE 54420 # 54421 54422 _ACEOF 54423 54424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 54425 # If the template does not know about datarootdir, expand it. 54426 # FIXME: This hack should be removed a few years after 2.60. 54427 ac_datarootdir_hack=; ac_datarootdir_seen= 54428 ac_sed_dataroot=' 54429 /datarootdir/ { 54430 p 54431 q 54432 } 54433 /@datadir@/p 54434 /@docdir@/p 54435 /@infodir@/p 54436 /@localedir@/p 54437 /@mandir@/p' 54438 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 54439 *datarootdir*) ac_datarootdir_seen=yes;; 54440 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 54441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 54442 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 54443 _ACEOF 54444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 54445 ac_datarootdir_hack=' 54446 s&@datadir@&$datadir&g 54447 s&@docdir@&$docdir&g 54448 s&@infodir@&$infodir&g 54449 s&@localedir@&$localedir&g 54450 s&@mandir@&$mandir&g 54451 s&\\\${datarootdir}&$datarootdir&g' ;; 54452 esac 54453 _ACEOF 54454 54455 # Neutralize VPATH when `$srcdir' = `.'. 54456 # Shell code in configure.ac might set extrasub. 54457 # FIXME: do we really want to maintain this feature? 54458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 54459 ac_sed_extra="$ac_vpsub 54460 $extrasub 54461 _ACEOF 54462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 54463 :t 54464 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 54465 s|@configure_input@|$ac_sed_conf_input|;t t 54466 s&@top_builddir@&$ac_top_builddir_sub&;t t 54467 s&@top_build_prefix@&$ac_top_build_prefix&;t t 54468 s&@srcdir@&$ac_srcdir&;t t 54469 s&@abs_srcdir@&$ac_abs_srcdir&;t t 54470 s&@top_srcdir@&$ac_top_srcdir&;t t 54471 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 54472 s&@builddir@&$ac_builddir&;t t 54473 s&@abs_builddir@&$ac_abs_builddir&;t t 54474 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 54475 $ac_datarootdir_hack 54476 " 54477 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 54478 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 54479 54480 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 54481 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 54482 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 54483 "$ac_tmp/out"`; test -z "$ac_out"; } && 54484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 54485 which seems to be undefined. Please make sure it is defined" >&5 54486 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 54487 which seems to be undefined. Please make sure it is defined" >&2;} 54488 54489 rm -f "$ac_tmp/stdin" 54490 case $ac_file in 54491 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 54492 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 54493 esac \ 54494 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 54495 ;; 54496 :H) 54497 # 54498 # CONFIG_HEADER 54499 # 54500 if test x"$ac_file" != x-; then 54501 { 54502 $as_echo "/* $configure_input */" \ 54503 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 54504 } >"$ac_tmp/config.h" \ 54505 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 54506 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 54507 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 54508 $as_echo "$as_me: $ac_file is unchanged" >&6;} 54509 else 54510 rm -f "$ac_file" 54511 mv "$ac_tmp/config.h" "$ac_file" \ 54512 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 54513 fi 54514 else 54515 $as_echo "/* $configure_input */" \ 54516 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 54517 || as_fn_error $? "could not create -" "$LINENO" 5 54518 fi 54519 ;; 54520 54521 54522 esac 54523 54524 done # for ac_tag 54525 54526 54527 as_fn_exit 0 54528 _ACEOF 54529 ac_clean_files=$ac_clean_files_save 54530 54531 test $ac_write_fail = 0 || 54532 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 54533 54534 54535 # configure is writing to config.log, and then calls config.status. 54536 # config.status does its own redirection, appending to config.log. 54537 # Unfortunately, on DOS this fails, as config.log is still kept open 54538 # by configure, so config.status won't be able to write to it; its 54539 # output is simply discarded. So we exec the FD to /dev/null, 54540 # effectively closing config.log, so it can be properly (re)opened and 54541 # appended to by config.status. When coming back to configure, we 54542 # need to make the FD available again. 54543 if test "$no_create" != yes; then 54544 ac_cs_success=: 54545 ac_config_status_args= 54546 test "$silent" = yes && 54547 ac_config_status_args="$ac_config_status_args --quiet" 54548 exec 5>/dev/null 54549 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 54550 exec 5>>config.log 54551 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 54552 # would make configure fail if this is the last instruction. 54553 $ac_cs_success || as_fn_exit 1 54554 fi 54555 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 54556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 54557 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 54558 fi 54559 54560 54561 # After AC_OUTPUT, we need to do final work 54562 54563 54564 # Rotate our log file (configure.log) 54565 if test -e "$OUTPUT_ROOT/configure.log.old"; then 54566 $RM -f "$OUTPUT_ROOT/configure.log.old" 54567 fi 54568 if test -e "$OUTPUT_ROOT/configure.log"; then 54569 $MV -f "$OUTPUT_ROOT/configure.log" "$OUTPUT_ROOT/configure.log.old" 2> /dev/null 54570 fi 54571 54572 # Move configure.log from current directory to the build output root 54573 if test -e ./configure.log; then 54574 echo found it 54575 $MV -f ./configure.log "$OUTPUT_ROOT/configure.log" 2> /dev/null 54576 fi 54577 54578 # Make the compare script executable 54579 $CHMOD +x $OUTPUT_ROOT/compare.sh 54580 54581 54582 # Finally output some useful information to the user 54583 54584 # Finally output some useful information to the user 54585 54586 printf "\n" 54587 printf "====================================================\n" 54588 printf "A new configuration has been successfully created in\n" 54589 printf "$OUTPUT_ROOT\n" 54590 if test "x$CONFIGURE_COMMAND_LINE" != x; then 54591 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 54592 else 54593 printf "using default settings.\n" 54594 fi 54595 54596 printf "\n" 54597 printf "Configuration summary:\n" 54598 printf "* Debug level: $DEBUG_LEVEL\n" 54599 printf "* JDK variant: $JDK_VARIANT\n" 54600 printf "* JVM variants: $with_jvm_variants\n" 54601 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 54602 54603 printf "\n" 54604 printf "Tools summary:\n" 54605 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 54606 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 54607 fi 54608 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 54609 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)\n" 54610 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 54611 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 54612 54613 printf "\n" 54614 printf "Build performance summary:\n" 54615 printf "* Cores to use: $JOBS\n" 54616 printf "* Memory limit: $MEMORY_SIZE MB\n" 54617 if test "x$CCACHE_STATUS" != "x"; then 54618 printf "* ccache status: $CCACHE_STATUS\n" 54619 fi 54620 printf "\n" 54621 54622 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 54623 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 54624 printf "will result in longer build times.\n" 54625 printf "\n" 54626 fi 54627 54628 if test "x$FOUND_ALT_VARIABLES" != "x"; then 54629 printf "WARNING: You have old-style ALT_ environment variables set.\n" 54630 printf "These are not respected, and will be ignored. It is recommended\n" 54631 printf "that you clean your environment. The following variables are set:\n" 54632 printf "$FOUND_ALT_VARIABLES\n" 54633 printf "\n" 54634 fi 54635 54636 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 54637 printf "WARNING: Your build output directory is not on a local disk.\n" 54638 printf "This will severely degrade build performance!\n" 54639 printf "It is recommended that you create an output directory on a local disk,\n" 54640 printf "and run the configure script again from that directory.\n" 54641 printf "\n" 54642 fi 54643 54644 if test "x$IS_RECONFIGURE" = "xyes"; then 54645 printf "WARNING: The result of this configuration has overridden an older\n" 54646 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 54647 printf "proper build. Failure to do so might result in strange build problems.\n" 54648 printf "\n" 54649 fi 54650 54651 if test "x$UNSUPPORTED_TOOLCHAIN_VERSION" = "xyes"; then 54652 printf "WARNING: The toolchain version used is known to have issues. Please\n" 54653 printf "consider using a supported version unless you know what you are doing.\n" 54654 printf "\n" 54655 fi 54656 54657 54658 # Locate config.log. 54659 if test -e "./config.log"; then 54660 CONFIG_LOG_PATH="." 54661 fi 54662 54663 if test -e "$CONFIG_LOG_PATH/config.log"; then 54664 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" > /dev/null 2>&1 54665 if test $? -eq 0; then 54666 printf "The following warnings were produced. Repeated here for convenience:\n" 54667 # We must quote sed expression (using []) to stop m4 from eating the []. 54668 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" | $SED -e 's/^configure:[0-9]*: //' 54669 printf "\n" 54670 fi 54671 fi 54672