1 #!/bin/bash 2 # 3 # ########################################################## 4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ### 5 # ########################################################## 6 # 7 #! /bin/sh 8 # Guess values for system-dependent variables and create Makefiles. 9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9. 10 # 11 # Report bugs to <build-dev@openjdk.java.net>. 12 # 13 # 14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 15 # 16 # 17 # This configure script is free software; the Free Software Foundation 18 # gives unlimited permission to copy, distribute and modify it. 19 ## -------------------- ## 20 ## M4sh Initialization. ## 21 ## -------------------- ## 22 23 # Be more Bourne compatible 24 DUALCASE=1; export DUALCASE # for MKS sh 25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26 emulate sh 27 NULLCMD=: 28 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 29 # is contrary to our usage. Disable this feature. 30 alias -g '${1+"$@"}'='"$@"' 31 setopt NO_GLOB_SUBST 32 else 33 case `(set -o) 2>/dev/null` in #( 34 *posix*) : 35 set -o posix ;; #( 36 *) : 37 ;; 38 esac 39 fi 40 41 42 as_nl=' 43 ' 44 export as_nl 45 # Printing a long string crashes Solaris 7 /usr/bin/printf. 46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49 # Prefer a ksh shell builtin over an external printf program on Solaris, 50 # but without wasting forks for bash or zsh. 51 if test -z "$BASH_VERSION$ZSH_VERSION" \ 52 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 53 as_echo='print -r --' 54 as_echo_n='print -rn --' 55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 56 as_echo='printf %s\n' 57 as_echo_n='printf %s' 58 else 59 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 60 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 61 as_echo_n='/usr/ucb/echo -n' 62 else 63 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 64 as_echo_n_body='eval 65 arg=$1; 66 case $arg in #( 67 *"$as_nl"*) 68 expr "X$arg" : "X\\(.*\\)$as_nl"; 69 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 70 esac; 71 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 72 ' 73 export as_echo_n_body 74 as_echo_n='sh -c $as_echo_n_body as_echo' 75 fi 76 export as_echo_body 77 as_echo='sh -c $as_echo_body as_echo' 78 fi 79 80 # The user is always right. 81 if test "${PATH_SEPARATOR+set}" != set; then 82 PATH_SEPARATOR=: 83 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 84 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 85 PATH_SEPARATOR=';' 86 } 87 fi 88 89 90 # IFS 91 # We need space, tab and new line, in precisely that order. Quoting is 92 # there to prevent editors from complaining about space-tab. 93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 94 # splitting by setting IFS to empty value.) 95 IFS=" "" $as_nl" 96 97 # Find who we are. Look in the path if we contain no directory separator. 98 as_myself= 99 case $0 in #(( 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102 for as_dir in $PATH 103 do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107 done 108 IFS=$as_save_IFS 109 110 ;; 111 esac 112 # We did not find ourselves, most probably we were run as `sh COMMAND' 113 # in which case we are not to be found in the path. 114 if test "x$as_myself" = x; then 115 as_myself=$0 116 fi 117 if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 exit 1 120 fi 121 122 # Unset variables that we do not need and which cause bugs (e.g. in 123 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 124 # suppresses any "Segmentation fault" message there. '((' could 125 # trigger a bug in pdksh 5.2.14. 126 for as_var in BASH_ENV ENV MAIL MAILPATH 127 do eval test x\${$as_var+set} = xset \ 128 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 129 done 130 PS1='$ ' 131 PS2='> ' 132 PS4='+ ' 133 134 # NLS nuisances. 135 LC_ALL=C 136 export LC_ALL 137 LANGUAGE=C 138 export LANGUAGE 139 140 # CDPATH. 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 142 143 # Use a proper internal environment variable to ensure we don't fall 144 # into an infinite loop, continuously re-executing ourselves. 145 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 146 _as_can_reexec=no; export _as_can_reexec; 147 # We cannot yet assume a decent shell, so we have to provide a 148 # neutralization value for shells without unset; and this also 149 # works around shells that cannot unset nonexistent variables. 150 # Preserve -v and -x to the replacement shell. 151 BASH_ENV=/dev/null 152 ENV=/dev/null 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 154 case $- in # (((( 155 *v*x* | *x*v* ) as_opts=-vx ;; 156 *v* ) as_opts=-v ;; 157 *x* ) as_opts=-x ;; 158 * ) as_opts= ;; 159 esac 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 161 # Admittedly, this is quite paranoid, since all the known shells bail 162 # out after a failed `exec'. 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 164 as_fn_exit 255 165 fi 166 # We don't want this to propagate to other subprocesses. 167 { _as_can_reexec=; unset _as_can_reexec;} 168 if test "x$CONFIG_SHELL" = x; then 169 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 170 emulate sh 171 NULLCMD=: 172 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 173 # is contrary to our usage. Disable this feature. 174 alias -g '\${1+\"\$@\"}'='\"\$@\"' 175 setopt NO_GLOB_SUBST 176 else 177 case \`(set -o) 2>/dev/null\` in #( 178 *posix*) : 179 set -o posix ;; #( 180 *) : 181 ;; 182 esac 183 fi 184 " 185 as_required="as_fn_return () { (exit \$1); } 186 as_fn_success () { as_fn_return 0; } 187 as_fn_failure () { as_fn_return 1; } 188 as_fn_ret_success () { return 0; } 189 as_fn_ret_failure () { return 1; } 190 191 exitcode=0 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 197 198 else 199 exitcode=1; echo positional parameters were not saved. 200 fi 201 test x\$exitcode = x0 || exit 1 202 test -x / || exit 1" 203 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 204 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 205 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 206 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 207 test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210 else 211 as_have_required=no 212 fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215 else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217 as_found=false 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219 do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233 fi 234 fi 235 done;; 236 esac 237 as_found=false 238 done 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242 fi; } 243 IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249 # neutralization value for shells without unset; and this also 250 # works around shells that cannot unset nonexistent variables. 251 # Preserve -v and -x to the replacement shell. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262 # Admittedly, this is quite paranoid, since all the known shells bail 263 # out after a failed `exec'. 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265 exit 255 266 fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org and 276 $0: build-dev@openjdk.java.net about your system, including 277 $0: any error possibly output before this message. Then 278 $0: install a modern shell, or manually run the script 279 $0: under such a shell if you do have one." 280 fi 281 exit 1 282 fi 283 fi 284 fi 285 SHELL=${CONFIG_SHELL-/bin/sh} 286 export SHELL 287 # Unset more variables known to interfere with behavior of common tools. 288 CLICOLOR_FORCE= GREP_OPTIONS= 289 unset CLICOLOR_FORCE GREP_OPTIONS 290 291 ## --------------------- ## 292 ## M4sh Shell Functions. ## 293 ## --------------------- ## 294 # as_fn_unset VAR 295 # --------------- 296 # Portably unset VAR. 297 as_fn_unset () 298 { 299 { eval $1=; unset $1;} 300 } 301 as_unset=as_fn_unset 302 303 # as_fn_set_status STATUS 304 # ----------------------- 305 # Set $? to STATUS, without forking. 306 as_fn_set_status () 307 { 308 return $1 309 } # as_fn_set_status 310 311 # as_fn_exit STATUS 312 # ----------------- 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 314 as_fn_exit () 315 { 316 set +e 317 as_fn_set_status $1 318 exit $1 319 } # as_fn_exit 320 321 # as_fn_mkdir_p 322 # ------------- 323 # Create "$as_dir" as a directory, including parents if necessary. 324 as_fn_mkdir_p () 325 { 326 327 case $as_dir in #( 328 -*) as_dir=./$as_dir;; 329 esac 330 test -d "$as_dir" || eval $as_mkdir_p || { 331 as_dirs= 332 while :; do 333 case $as_dir in #( 334 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 335 *) as_qdir=$as_dir;; 336 esac 337 as_dirs="'$as_qdir' $as_dirs" 338 as_dir=`$as_dirname -- "$as_dir" || 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 340 X"$as_dir" : 'X\(//\)[^/]' \| \ 341 X"$as_dir" : 'X\(//\)$' \| \ 342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 343 $as_echo X"$as_dir" | 344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 345 s//\1/ 346 q 347 } 348 /^X\(\/\/\)[^/].*/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\/\)$/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\).*/{ 357 s//\1/ 358 q 359 } 360 s/.*/./; q'` 361 test -d "$as_dir" && break 362 done 363 test -z "$as_dirs" || eval "mkdir $as_dirs" 364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 365 366 367 } # as_fn_mkdir_p 368 369 # as_fn_executable_p FILE 370 # ----------------------- 371 # Test if FILE is an executable regular file. 372 as_fn_executable_p () 373 { 374 test -f "$1" && test -x "$1" 375 } # as_fn_executable_p 376 # as_fn_append VAR VALUE 377 # ---------------------- 378 # Append the text in VALUE to the end of the definition contained in VAR. Take 379 # advantage of any shell optimizations that allow amortized linear growth over 380 # repeated appends, instead of the typical quadratic growth present in naive 381 # implementations. 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 383 eval 'as_fn_append () 384 { 385 eval $1+=\$2 386 }' 387 else 388 as_fn_append () 389 { 390 eval $1=\$$1\$2 391 } 392 fi # as_fn_append 393 394 # as_fn_arith ARG... 395 # ------------------ 396 # Perform arithmetic evaluation on the ARGs, and store the result in the 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments 398 # must be portable across $(()) and expr. 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 400 eval 'as_fn_arith () 401 { 402 as_val=$(( $* )) 403 }' 404 else 405 as_fn_arith () 406 { 407 as_val=`expr "$@" || test $? -eq 1` 408 } 409 fi # as_fn_arith 410 411 412 # as_fn_error STATUS ERROR [LINENO LOG_FD] 413 # ---------------------------------------- 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 416 # script with STATUS, using 1 if that was 0. 417 as_fn_error () 418 { 419 as_status=$1; test $as_status -eq 0 && as_status=1 420 if test "$4"; then 421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 422 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 423 fi 424 $as_echo "$as_me: error: $2" >&2 425 as_fn_exit $as_status 426 } # as_fn_error 427 428 if expr a : '\(a\)' >/dev/null 2>&1 && 429 test "X`expr 00001 : '.*\(...\)'`" = X001; then 430 as_expr=expr 431 else 432 as_expr=false 433 fi 434 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 436 as_basename=basename 437 else 438 as_basename=false 439 fi 440 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 442 as_dirname=dirname 443 else 444 as_dirname=false 445 fi 446 447 as_me=`$as_basename -- "$0" || 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 449 X"$0" : 'X\(//\)$' \| \ 450 X"$0" : 'X\(/\)' \| . 2>/dev/null || 451 $as_echo X/"$0" | 452 sed '/^.*\/\([^/][^/]*\)\/*$/{ 453 s//\1/ 454 q 455 } 456 /^X\/\(\/\/\)$/{ 457 s//\1/ 458 q 459 } 460 /^X\/\(\/\).*/{ 461 s//\1/ 462 q 463 } 464 s/.*/./; q'` 465 466 # Avoid depending upon Character Ranges. 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 470 as_cr_digits='0123456789' 471 as_cr_alnum=$as_cr_Letters$as_cr_digits 472 473 474 as_lineno_1=$LINENO as_lineno_1a=$LINENO 475 as_lineno_2=$LINENO as_lineno_2a=$LINENO 476 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 477 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 479 sed -n ' 480 p 481 /[$]LINENO/= 482 ' <$as_myself | 483 sed ' 484 s/[$]LINENO.*/&-/ 485 t lineno 486 b 487 :lineno 488 N 489 :loop 490 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 491 t loop 492 s/-\n.*// 493 ' >$as_me.lineno && 494 chmod +x "$as_me.lineno" || 495 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 496 497 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 498 # already done that, so ensure we don't try to do so again and fall 499 # in an infinite loop. This has already happened in practice. 500 _as_can_reexec=no; export _as_can_reexec 501 # Don't try to exec as it changes $[0], causing all sort of problems 502 # (the dirname of $[0] is not the place where we might find the 503 # original and so on. Autoconf is especially sensitive to this). 504 . "./$as_me.lineno" 505 # Exit status is that of the last command. 506 exit 507 } 508 509 ECHO_C= ECHO_N= ECHO_T= 510 case `echo -n x` in #((((( 511 -n*) 512 case `echo 'xy\c'` in 513 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 514 xy) ECHO_C='\c';; 515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 516 ECHO_T=' ';; 517 esac;; 518 *) 519 ECHO_N='-n';; 520 esac 521 522 rm -f conf$$ conf$$.exe conf$$.file 523 if test -d conf$$.dir; then 524 rm -f conf$$.dir/conf$$.file 525 else 526 rm -f conf$$.dir 527 mkdir conf$$.dir 2>/dev/null 528 fi 529 if (echo >conf$$.file) 2>/dev/null; then 530 if ln -s conf$$.file conf$$ 2>/dev/null; then 531 as_ln_s='ln -s' 532 # ... but there are two gotchas: 533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 535 # In both cases, we have to default to `cp -pR'. 536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 537 as_ln_s='cp -pR' 538 elif ln conf$$.file conf$$ 2>/dev/null; then 539 as_ln_s=ln 540 else 541 as_ln_s='cp -pR' 542 fi 543 else 544 as_ln_s='cp -pR' 545 fi 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 547 rmdir conf$$.dir 2>/dev/null 548 549 if mkdir -p . 2>/dev/null; then 550 as_mkdir_p='mkdir -p "$as_dir"' 551 else 552 test -d ./-p && rmdir ./-p 553 as_mkdir_p=false 554 fi 555 556 as_test_x='test -x' 557 as_executable_p=as_fn_executable_p 558 559 # Sed expression to map a string onto a valid CPP name. 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 561 562 # Sed expression to map a string onto a valid variable name. 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 564 565 566 test -n "$DJDIR" || exec 7<&0 </dev/null 567 exec 6>&1 568 569 # Name of the host. 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 571 # so uname gets run too. 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 573 574 # 575 # Initializations. 576 # 577 ac_default_prefix=/usr/local 578 ac_clean_files= 579 ac_config_libobj_dir=. 580 LIBOBJS= 581 cross_compiling=no 582 subdirs= 583 MFLAGS= 584 MAKEFLAGS= 585 586 # Identity of this package. 587 PACKAGE_NAME='OpenJDK' 588 PACKAGE_TARNAME='openjdk' 589 PACKAGE_VERSION='jdk9' 590 PACKAGE_STRING='OpenJDK jdk9' 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net' 592 PACKAGE_URL='http://openjdk.java.net' 593 594 # Factoring default headers for most tests. 595 ac_includes_default="\ 596 #include <stdio.h> 597 #ifdef HAVE_SYS_TYPES_H 598 # include <sys/types.h> 599 #endif 600 #ifdef HAVE_SYS_STAT_H 601 # include <sys/stat.h> 602 #endif 603 #ifdef STDC_HEADERS 604 # include <stdlib.h> 605 # include <stddef.h> 606 #else 607 # ifdef HAVE_STDLIB_H 608 # include <stdlib.h> 609 # endif 610 #endif 611 #ifdef HAVE_STRING_H 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 613 # include <memory.h> 614 # endif 615 # include <string.h> 616 #endif 617 #ifdef HAVE_STRINGS_H 618 # include <strings.h> 619 #endif 620 #ifdef HAVE_INTTYPES_H 621 # include <inttypes.h> 622 #endif 623 #ifdef HAVE_STDINT_H 624 # include <stdint.h> 625 #endif 626 #ifdef HAVE_UNISTD_H 627 # include <unistd.h> 628 #endif" 629 630 ac_subst_vars='LTLIBOBJS 631 LIBOBJS 632 CCACHE 633 USE_PRECOMPILED_HEADER 634 SJAVAC_SERVER_DIR 635 ENABLE_SJAVAC 636 SJAVAC_SERVER_JAVA_FLAGS 637 SJAVAC_SERVER_JAVA 638 JAVA_TOOL_FLAGS_SMALL 639 JAVA_FLAGS_SMALL 640 JAVA_FLAGS_BIG 641 JAVA_FLAGS 642 JOBS 643 MEMORY_SIZE 644 NUM_CORES 645 ENABLE_INTREE_EC 646 SALIB_NAME 647 HOTSPOT_MAKE_ARGS 648 MSVCR_DLL 649 LIBCXX 650 LLVM_LIBS 651 LLVM_LDFLAGS 652 LLVM_CFLAGS 653 LLVM_CONFIG 654 LIBFFI_LIBS 655 LIBFFI_CFLAGS 656 STATIC_CXX_SETTING 657 LIBDL 658 LIBM 659 LIBZIP_CAN_USE_MMAP 660 USE_EXTERNAL_LIBZ 661 USE_EXTERNAL_LIBPNG 662 PNG_LIBS 663 PNG_CFLAGS 664 USE_EXTERNAL_LCMS 665 LCMS_LIBS 666 LCMS_CFLAGS 667 USE_EXTERNAL_LIBGIF 668 USE_EXTERNAL_LIBJPEG 669 ALSA_LIBS 670 ALSA_CFLAGS 671 FREETYPE_BUNDLE_LIB_PATH 672 FREETYPE_LIBS 673 FREETYPE_CFLAGS 674 CUPS_CFLAGS 675 X_EXTRA_LIBS 676 X_LIBS 677 X_PRE_LIBS 678 X_CFLAGS 679 XMKMF 680 FIXPATH 681 ZIP_DEBUGINFO_FILES 682 ENABLE_DEBUG_SYMBOLS 683 CFLAGS_WARNINGS_ARE_ERRORS 684 COMPILER_SUPPORTS_TARGET_BITS_FLAG 685 ZERO_ARCHFLAG 686 LDFLAGS_CXX_JDK 687 LDFLAGS_JDKEXE_SUFFIX 688 LDFLAGS_JDKLIB_SUFFIX 689 LDFLAGS_JDKEXE 690 LDFLAGS_JDKLIB 691 CXXFLAGS_JDKEXE 692 CXXFLAGS_JDKLIB 693 CFLAGS_JDKEXE 694 CFLAGS_JDKLIB 695 MACOSX_VERSION_MIN 696 LEGACY_EXTRA_LDFLAGS 697 LEGACY_EXTRA_CXXFLAGS 698 LEGACY_EXTRA_CFLAGS 699 CXX_O_FLAG_NONE 700 CXX_O_FLAG_DEBUG 701 CXX_O_FLAG_NORM 702 CXX_O_FLAG_HI 703 CXX_O_FLAG_HIGHEST 704 C_O_FLAG_NONE 705 C_O_FLAG_DEBUG 706 C_O_FLAG_NORM 707 C_O_FLAG_HI 708 C_O_FLAG_HIGHEST 709 CXXFLAGS_DEBUG_OPTIONS 710 CFLAGS_DEBUG_OPTIONS 711 CXXFLAGS_DEBUG_SYMBOLS 712 CFLAGS_DEBUG_SYMBOLS 713 CXX_FLAG_DEPS 714 C_FLAG_DEPS 715 SET_SHARED_LIBRARY_MAPFILE 716 SET_SHARED_LIBRARY_NAME 717 SET_SHARED_LIBRARY_ORIGIN 718 SET_EXECUTABLE_ORIGIN 719 SHARED_LIBRARY_FLAGS 720 CXX_FLAG_REORDER 721 C_FLAG_REORDER 722 SYSROOT_LDFLAGS 723 SYSROOT_CFLAGS 724 RC_FLAGS 725 AR_OUT_OPTION 726 LD_OUT_OPTION 727 EXE_OUT_OPTION 728 CC_OUT_OPTION 729 POST_MCS_CMD 730 POST_STRIP_CMD 731 ARFLAGS 732 COMPILER_TARGET_BITS_FLAG 733 JT_HOME 734 JTREGEXE 735 USING_BROKEN_SUSE_LD 736 PACKAGE_PATH 737 LDEXECXX 738 LDEXE 739 USE_CLANG 740 HOTSPOT_LD 741 HOTSPOT_CXX 742 HOTSPOT_RC 743 HOTSPOT_MT 744 BUILD_LD 745 BUILD_CXX 746 BUILD_CC 747 ac_ct_OBJDUMP 748 OBJDUMP 749 ac_ct_OBJCOPY 750 OBJCOPY 751 ac_ct_NM 752 ac_ct_STRIP 753 MCS 754 GNM 755 NM 756 STRIP 757 MSBUILD 758 DUMPBIN 759 RC 760 MT 761 LIPO 762 ac_ct_OBJC 763 OBJCFLAGS 764 OBJC 765 ac_ct_AR 766 AR 767 AS 768 LDCXX 769 LD 770 CXXCPP 771 CPP 772 ac_ct_CXX 773 CXXFLAGS 774 CXX 775 ac_ct_PROPER_COMPILER_CXX 776 PROPER_COMPILER_CXX 777 TOOLCHAIN_PATH_CXX 778 POTENTIAL_CXX 779 OBJEXT 780 EXEEXT 781 ac_ct_CC 782 CPPFLAGS 783 LDFLAGS 784 CFLAGS 785 CC 786 ac_ct_PROPER_COMPILER_CC 787 PROPER_COMPILER_CC 788 TOOLCHAIN_PATH_CC 789 POTENTIAL_CC 790 VS_LIB 791 VS_INCLUDE 792 VS_PATH 793 CYGWIN_LINK 794 EXE_SUFFIX 795 OBJ_SUFFIX 796 STATIC_LIBRARY 797 SHARED_LIBRARY 798 STATIC_LIBRARY_SUFFIX 799 SHARED_LIBRARY_SUFFIX 800 LIBRARY_PREFIX 801 TOOLCHAIN_TYPE 802 BUILD_HOTSPOT 803 HOTSPOT_DIST 804 BUILD_OUTPUT 805 OVERRIDE_SRC_ROOT 806 ADD_SRC_ROOT 807 JDK_TOPDIR 808 NASHORN_TOPDIR 809 HOTSPOT_TOPDIR 810 JAXWS_TOPDIR 811 JAXP_TOPDIR 812 CORBA_TOPDIR 813 LANGTOOLS_TOPDIR 814 JAVAC_FLAGS 815 BOOT_JDK_SOURCETARGET 816 JARSIGNER 817 NATIVE2ASCII 818 JAR 819 JAVAH 820 JAVAC 821 JAVA 822 BOOT_JDK 823 BOOT_TOOLSJAR 824 BOOT_RTJAR 825 JAVA_CHECK 826 JAVAC_CHECK 827 COOKED_BUILD_NUMBER 828 JDK_VERSION 829 COPYRIGHT_YEAR 830 MACOSX_BUNDLE_ID_BASE 831 MACOSX_BUNDLE_NAME_BASE 832 COMPANY_NAME 833 JDK_RC_PLATFORM_NAME 834 PRODUCT_SUFFIX 835 PRODUCT_NAME 836 LAUNCHER_NAME 837 MILESTONE 838 JDK_BUILD_NUMBER 839 JDK_UPDATE_VERSION 840 JDK_MICRO_VERSION 841 JDK_MINOR_VERSION 842 JDK_MAJOR_VERSION 843 USER_RELEASE_SUFFIX 844 COMPRESS_JARS 845 RMICONNECTOR_IIOP 846 UNLIMITED_CRYPTO 847 CACERTS_FILE 848 TEST_IN_BUILD 849 BUILD_HEADLESS 850 SUPPORT_HEADFUL 851 SUPPORT_HEADLESS 852 BDEPS_FTP 853 BDEPS_UNZIP 854 OS_VERSION_MICRO 855 OS_VERSION_MINOR 856 OS_VERSION_MAJOR 857 PKG_CONFIG 858 CODESIGN 859 XATTR 860 DSYMUTIL 861 IS_GNU_TIME 862 TIME 863 STAT 864 HG 865 READELF 866 OTOOL 867 LDD 868 ZIP 869 UNZIP 870 FIND_DELETE 871 OUTPUT_SYNC 872 OUTPUT_SYNC_SUPPORTED 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 SDKROOT 883 XCODEBUILD 884 BUILD_VARIANT_RELEASE 885 DEBUG_CLASSFILES 886 FASTDEBUG 887 VARIANT 888 DEBUG_LEVEL 889 MACOSX_UNIVERSAL 890 INCLUDE_SA 891 JVM_VARIANT_CORE 892 JVM_VARIANT_ZEROSHARK 893 JVM_VARIANT_ZERO 894 JVM_VARIANT_KERNEL 895 JVM_VARIANT_MINIMAL1 896 JVM_VARIANT_CLIENT 897 JVM_VARIANT_SERVER 898 JVM_VARIANTS 899 JVM_INTERPRETER 900 JDK_VARIANT 901 SET_OPENJDK 902 BUILD_LOG_WRAPPER 903 BUILD_LOG_PREVIOUS 904 BUILD_LOG 905 TOPDIR 906 PATH_SEP 907 ZERO_ARCHDEF 908 DEFINE_CROSS_COMPILE_ARCH 909 LP64 910 OPENJDK_TARGET_OS_EXPORT_DIR 911 OPENJDK_TARGET_OS_API_DIR 912 OPENJDK_TARGET_CPU_JLI_CFLAGS 913 OPENJDK_TARGET_CPU_OSARCH 914 OPENJDK_TARGET_CPU_ISADIR 915 OPENJDK_TARGET_CPU_LIBDIR 916 OPENJDK_TARGET_CPU_LEGACY_LIB 917 OPENJDK_TARGET_CPU_LEGACY 918 REQUIRED_OS_VERSION 919 REQUIRED_OS_NAME 920 COMPILE_TYPE 921 OPENJDK_TARGET_CPU_ENDIAN 922 OPENJDK_TARGET_CPU_BITS 923 OPENJDK_TARGET_CPU_ARCH 924 OPENJDK_TARGET_CPU 925 OPENJDK_TARGET_OS_ENV 926 OPENJDK_TARGET_OS_API 927 OPENJDK_TARGET_OS 928 OPENJDK_BUILD_CPU_ENDIAN 929 OPENJDK_BUILD_CPU_BITS 930 OPENJDK_BUILD_CPU_ARCH 931 OPENJDK_BUILD_CPU 932 OPENJDK_BUILD_OS_ENV 933 OPENJDK_BUILD_OS_API 934 OPENJDK_BUILD_OS 935 OPENJDK_BUILD_AUTOCONF_NAME 936 OPENJDK_TARGET_AUTOCONF_NAME 937 target_os 938 target_vendor 939 target_cpu 940 target 941 host_os 942 host_vendor 943 host_cpu 944 host 945 build_os 946 build_vendor 947 build_cpu 948 build 949 CPIO 950 SETFILE 951 DF 952 READLINK 953 CYGPATH 954 SED 955 FGREP 956 EGREP 957 GREP 958 AWK 959 XARGS 960 WHICH 961 WC 962 UNIQ 963 UNAME 964 TR 965 TOUCH 966 TEE 967 TAR 968 TAIL 969 SORT 970 SH 971 RM 972 PRINTF 973 NAWK 974 MV 975 MKTEMP 976 MKDIR 977 LS 978 LN 979 HEAD 980 FIND 981 FILE 982 EXPR 983 ECHO 984 DIRNAME 985 DIFF 986 DATE 987 CUT 988 CP 989 COMM 990 CMP 991 CHMOD 992 CAT 993 BASH 994 BASENAME 995 DATE_WHEN_CONFIGURED 996 CONFIGURE_COMMAND_LINE 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 localstatedir 1017 sharedstatedir 1018 sysconfdir 1019 datadir 1020 datarootdir 1021 libexecdir 1022 sbindir 1023 bindir 1024 program_transform_name 1025 prefix 1026 exec_prefix 1027 PACKAGE_URL 1028 PACKAGE_BUGREPORT 1029 PACKAGE_STRING 1030 PACKAGE_VERSION 1031 PACKAGE_TARNAME 1032 PACKAGE_NAME 1033 PATH_SEPARATOR 1034 SHELL' 1035 ac_subst_files='' 1036 ac_user_opts=' 1037 enable_option_checking 1038 with_target_bits 1039 enable_openjdk_only 1040 with_custom_make_dir 1041 with_jdk_variant 1042 with_jvm_interpreter 1043 with_jvm_variants 1044 enable_debug 1045 with_debug_level 1046 with_devkit 1047 with_sys_root 1048 with_sysroot 1049 with_tools_dir 1050 with_toolchain_path 1051 with_extra_path 1052 with_sdk_name 1053 with_conf_name 1054 with_output_sync 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_rmiconnector_iiop 1064 with_milestone 1065 with_update_version 1066 with_user_release_suffix 1067 with_build_number 1068 with_boot_jdk 1069 with_add_source_root 1070 with_override_source_root 1071 with_adds_and_overrides 1072 with_override_langtools 1073 with_override_corba 1074 with_override_jaxp 1075 with_override_jaxws 1076 with_override_hotspot 1077 with_override_nashorn 1078 with_override_jdk 1079 with_import_hotspot 1080 with_toolchain_type 1081 with_jtreg 1082 with_extra_cflags 1083 with_extra_cxxflags 1084 with_extra_ldflags 1085 enable_debug_symbols 1086 enable_zip_debug_info 1087 with_x 1088 with_cups 1089 with_cups_include 1090 with_freetype 1091 with_freetype_include 1092 with_freetype_lib 1093 with_freetype_src 1094 enable_freetype_bundling 1095 with_alsa 1096 with_alsa_include 1097 with_alsa_lib 1098 with_libjpeg 1099 with_giflib 1100 with_lcms 1101 with_libpng 1102 with_zlib 1103 with_stdc__lib 1104 with_msvcr_dll 1105 with_dxsdk 1106 with_dxsdk_lib 1107 with_dxsdk_include 1108 with_num_cores 1109 with_memory_size 1110 with_jobs 1111 with_boot_jdk_jvmargs 1112 with_sjavac_server_java 1113 enable_sjavac 1114 enable_precompiled_headers 1115 enable_ccache 1116 with_ccache_dir 1117 ' 1118 ac_precious_vars='build_alias 1119 host_alias 1120 target_alias 1121 BASENAME 1122 BASH 1123 CAT 1124 CHMOD 1125 CMP 1126 COMM 1127 CP 1128 CUT 1129 DATE 1130 DIFF 1131 DIRNAME 1132 ECHO 1133 EXPR 1134 FILE 1135 FIND 1136 HEAD 1137 LN 1138 LS 1139 MKDIR 1140 MKTEMP 1141 MV 1142 NAWK 1143 PRINTF 1144 RM 1145 SH 1146 SORT 1147 TAIL 1148 TAR 1149 TEE 1150 TOUCH 1151 TR 1152 UNAME 1153 UNIQ 1154 WC 1155 WHICH 1156 XARGS 1157 AWK 1158 GREP 1159 EGREP 1160 FGREP 1161 SED 1162 CYGPATH 1163 READLINK 1164 DF 1165 SETFILE 1166 CPIO 1167 UNZIP 1168 ZIP 1169 LDD 1170 OTOOL 1171 READELF 1172 HG 1173 STAT 1174 TIME 1175 DSYMUTIL 1176 XATTR 1177 CODESIGN 1178 PKG_CONFIG 1179 JAVA 1180 JAVAC 1181 JAVAH 1182 JAR 1183 NATIVE2ASCII 1184 JARSIGNER 1185 CC 1186 CFLAGS 1187 LDFLAGS 1188 LIBS 1189 CPPFLAGS 1190 CXX 1191 CXXFLAGS 1192 CCC 1193 CPP 1194 CXXCPP 1195 AS 1196 AR 1197 OBJC 1198 OBJCFLAGS 1199 LIPO 1200 STRIP 1201 NM 1202 GNM 1203 MCS 1204 OBJCOPY 1205 OBJDUMP 1206 BUILD_CC 1207 BUILD_CXX 1208 BUILD_LD 1209 JTREGEXE 1210 XMKMF 1211 FREETYPE_CFLAGS 1212 FREETYPE_LIBS 1213 ALSA_CFLAGS 1214 ALSA_LIBS 1215 LCMS_CFLAGS 1216 LCMS_LIBS 1217 PNG_CFLAGS 1218 PNG_LIBS 1219 LIBFFI_CFLAGS 1220 LIBFFI_LIBS 1221 CCACHE' 1222 1223 1224 # Initialize some variables set by options. 1225 ac_init_help= 1226 ac_init_version=false 1227 ac_unrecognized_opts= 1228 ac_unrecognized_sep= 1229 # The variables have the same names as the options, with 1230 # dashes changed to underlines. 1231 cache_file=/dev/null 1232 exec_prefix=NONE 1233 no_create= 1234 no_recursion= 1235 prefix=NONE 1236 program_prefix=NONE 1237 program_suffix=NONE 1238 program_transform_name=s,x,x, 1239 silent= 1240 site= 1241 srcdir= 1242 verbose= 1243 x_includes=NONE 1244 x_libraries=NONE 1245 1246 # Installation directory options. 1247 # These are left unexpanded so users can "make install exec_prefix=/foo" 1248 # and all the variables that are supposed to be based on exec_prefix 1249 # by default will actually change. 1250 # Use braces instead of parens because sh, perl, etc. also accept them. 1251 # (The list follows the same order as the GNU Coding Standards.) 1252 bindir='${exec_prefix}/bin' 1253 sbindir='${exec_prefix}/sbin' 1254 libexecdir='${exec_prefix}/libexec' 1255 datarootdir='${prefix}/share' 1256 datadir='${datarootdir}' 1257 sysconfdir='${prefix}/etc' 1258 sharedstatedir='${prefix}/com' 1259 localstatedir='${prefix}/var' 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 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1513 ac_prev=sbindir ;; 1514 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1515 | --sbi=* | --sb=*) 1516 sbindir=$ac_optarg ;; 1517 1518 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1519 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1520 | --sharedst | --shareds | --shared | --share | --shar \ 1521 | --sha | --sh) 1522 ac_prev=sharedstatedir ;; 1523 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1524 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1525 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1526 | --sha=* | --sh=*) 1527 sharedstatedir=$ac_optarg ;; 1528 1529 -site | --site | --sit) 1530 ac_prev=site ;; 1531 -site=* | --site=* | --sit=*) 1532 site=$ac_optarg ;; 1533 1534 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1535 ac_prev=srcdir ;; 1536 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1537 srcdir=$ac_optarg ;; 1538 1539 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1540 | --syscon | --sysco | --sysc | --sys | --sy) 1541 ac_prev=sysconfdir ;; 1542 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1543 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1544 sysconfdir=$ac_optarg ;; 1545 1546 -target | --target | --targe | --targ | --tar | --ta | --t) 1547 ac_prev=target_alias ;; 1548 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1549 target_alias=$ac_optarg ;; 1550 1551 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1552 verbose=yes ;; 1553 1554 -version | --version | --versio | --versi | --vers | -V) 1555 ac_init_version=: ;; 1556 1557 -with-* | --with-*) 1558 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1559 # Reject names that are not valid shell variable names. 1560 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1561 as_fn_error $? "invalid package name: $ac_useropt" 1562 ac_useropt_orig=$ac_useropt 1563 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1564 case $ac_user_opts in 1565 *" 1566 "with_$ac_useropt" 1567 "*) ;; 1568 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1569 ac_unrecognized_sep=', ';; 1570 esac 1571 eval with_$ac_useropt=\$ac_optarg ;; 1572 1573 -without-* | --without-*) 1574 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1575 # Reject names that are not valid shell variable names. 1576 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1577 as_fn_error $? "invalid package name: $ac_useropt" 1578 ac_useropt_orig=$ac_useropt 1579 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1580 case $ac_user_opts in 1581 *" 1582 "with_$ac_useropt" 1583 "*) ;; 1584 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1585 ac_unrecognized_sep=', ';; 1586 esac 1587 eval with_$ac_useropt=no ;; 1588 1589 --x) 1590 # Obsolete; use --with-x. 1591 with_x=yes ;; 1592 1593 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1594 | --x-incl | --x-inc | --x-in | --x-i) 1595 ac_prev=x_includes ;; 1596 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1597 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1598 x_includes=$ac_optarg ;; 1599 1600 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1601 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1602 ac_prev=x_libraries ;; 1603 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1604 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1605 x_libraries=$ac_optarg ;; 1606 1607 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1608 Try \`$0 --help' for more information" 1609 ;; 1610 1611 *=*) 1612 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1613 # Reject names that are not valid shell variable names. 1614 case $ac_envvar in #( 1615 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1616 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1617 esac 1618 eval $ac_envvar=\$ac_optarg 1619 export $ac_envvar ;; 1620 1621 *) 1622 # FIXME: should be removed in autoconf 3.0. 1623 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1624 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1625 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1626 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1627 ;; 1628 1629 esac 1630 done 1631 1632 if test -n "$ac_prev"; then 1633 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1634 as_fn_error $? "missing argument to $ac_option" 1635 fi 1636 1637 if test -n "$ac_unrecognized_opts"; then 1638 case $enable_option_checking in 1639 no) ;; 1640 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1641 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1642 esac 1643 fi 1644 1645 # Check all directory arguments for consistency. 1646 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1647 datadir sysconfdir sharedstatedir localstatedir includedir \ 1648 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1649 libdir localedir mandir 1650 do 1651 eval ac_val=\$$ac_var 1652 # Remove trailing slashes. 1653 case $ac_val in 1654 */ ) 1655 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1656 eval $ac_var=\$ac_val;; 1657 esac 1658 # Be sure to have absolute directory names. 1659 case $ac_val in 1660 [\\/$]* | ?:[\\/]* ) continue;; 1661 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1662 esac 1663 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1664 done 1665 1666 # There might be people who depend on the old broken behavior: `$host' 1667 # used to hold the argument of --host etc. 1668 # FIXME: To remove some day. 1669 build=$build_alias 1670 host=$host_alias 1671 target=$target_alias 1672 1673 # FIXME: To remove some day. 1674 if test "x$host_alias" != x; then 1675 if test "x$build_alias" = x; then 1676 cross_compiling=maybe 1677 elif test "x$build_alias" != "x$host_alias"; then 1678 cross_compiling=yes 1679 fi 1680 fi 1681 1682 ac_tool_prefix= 1683 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1684 1685 test "$silent" = yes && exec 6>/dev/null 1686 1687 1688 ac_pwd=`pwd` && test -n "$ac_pwd" && 1689 ac_ls_di=`ls -di .` && 1690 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1691 as_fn_error $? "working directory cannot be determined" 1692 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1693 as_fn_error $? "pwd does not report name of working directory" 1694 1695 1696 # Find the source files, if location was not specified. 1697 if test -z "$srcdir"; then 1698 ac_srcdir_defaulted=yes 1699 # Try the directory containing this script, then the parent directory. 1700 ac_confdir=`$as_dirname -- "$as_myself" || 1701 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1702 X"$as_myself" : 'X\(//\)[^/]' \| \ 1703 X"$as_myself" : 'X\(//\)$' \| \ 1704 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1705 $as_echo X"$as_myself" | 1706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1707 s//\1/ 1708 q 1709 } 1710 /^X\(\/\/\)[^/].*/{ 1711 s//\1/ 1712 q 1713 } 1714 /^X\(\/\/\)$/{ 1715 s//\1/ 1716 q 1717 } 1718 /^X\(\/\).*/{ 1719 s//\1/ 1720 q 1721 } 1722 s/.*/./; q'` 1723 srcdir=$ac_confdir 1724 if test ! -r "$srcdir/$ac_unique_file"; then 1725 srcdir=.. 1726 fi 1727 else 1728 ac_srcdir_defaulted=no 1729 fi 1730 if test ! -r "$srcdir/$ac_unique_file"; then 1731 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1732 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1733 fi 1734 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1735 ac_abs_confdir=`( 1736 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1737 pwd)` 1738 # When building in place, set srcdir=. 1739 if test "$ac_abs_confdir" = "$ac_pwd"; then 1740 srcdir=. 1741 fi 1742 # Remove unnecessary trailing slashes from srcdir. 1743 # Double slashes in file names in object file debugging info 1744 # mess up M-x gdb in Emacs. 1745 case $srcdir in 1746 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1747 esac 1748 for ac_var in $ac_precious_vars; do 1749 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1750 eval ac_env_${ac_var}_value=\$${ac_var} 1751 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1752 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1753 done 1754 1755 # 1756 # Report the --help message. 1757 # 1758 if test "$ac_init_help" = "long"; then 1759 # Omit some internal or obsolete options to make the list less imposing. 1760 # This message is too long to be a string in the A/UX 3.1 sh. 1761 cat <<_ACEOF 1762 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1763 1764 Usage: $0 [OPTION]... [VAR=VALUE]... 1765 1766 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1767 VAR=VALUE. See below for descriptions of some of the useful variables. 1768 1769 Defaults for the options are specified in brackets. 1770 1771 Configuration: 1772 -h, --help display this help and exit 1773 --help=short display options specific to this package 1774 --help=recursive display the short help of all the included packages 1775 -V, --version display version information and exit 1776 -q, --quiet, --silent do not print \`checking ...' messages 1777 --cache-file=FILE cache test results in FILE [disabled] 1778 -C, --config-cache alias for \`--cache-file=config.cache' 1779 -n, --no-create do not create output files 1780 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1781 1782 Installation directories: 1783 --prefix=PREFIX install architecture-independent files in PREFIX 1784 [$ac_default_prefix] 1785 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1786 [PREFIX] 1787 1788 By default, \`make install' will install all the files in 1789 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1790 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1791 for instance \`--prefix=\$HOME'. 1792 1793 For better control, use the options below. 1794 1795 Fine tuning of the installation directories: 1796 --bindir=DIR user executables [EPREFIX/bin] 1797 --sbindir=DIR system admin executables [EPREFIX/sbin] 1798 --libexecdir=DIR program executables [EPREFIX/libexec] 1799 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1800 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1801 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1802 --libdir=DIR object code libraries [EPREFIX/lib] 1803 --includedir=DIR C header files [PREFIX/include] 1804 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1805 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1806 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1807 --infodir=DIR info documentation [DATAROOTDIR/info] 1808 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1809 --mandir=DIR man documentation [DATAROOTDIR/man] 1810 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1811 --htmldir=DIR html documentation [DOCDIR] 1812 --dvidir=DIR dvi documentation [DOCDIR] 1813 --pdfdir=DIR pdf documentation [DOCDIR] 1814 --psdir=DIR ps documentation [DOCDIR] 1815 _ACEOF 1816 1817 cat <<\_ACEOF 1818 1819 X features: 1820 --x-includes=DIR X include files are in DIR 1821 --x-libraries=DIR X library files are in DIR 1822 1823 System types: 1824 --build=BUILD configure for building on BUILD [guessed] 1825 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1826 --target=TARGET configure for building compilers for TARGET [HOST] 1827 _ACEOF 1828 fi 1829 1830 if test -n "$ac_init_help"; then 1831 case $ac_init_help in 1832 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1833 esac 1834 cat <<\_ACEOF 1835 1836 Optional Features: 1837 --disable-option-checking ignore unrecognized --enable/--with options 1838 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1839 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1840 --enable-openjdk-only suppress building custom source even if present 1841 [disabled] 1842 --enable-debug set the debug level to fastdebug (shorthand for 1843 --with-debug-level=fastdebug) [disabled] 1844 --disable-headful disable building headful support (graphical UI 1845 support) [enabled] 1846 --enable-hotspot-test-in-build 1847 run the Queens test after Hotspot build [disabled] 1848 --enable-unlimited-crypto 1849 Enable unlimited crypto policy [disabled] 1850 --enable-rmiconnector-iiop 1851 enable the JMX RMIConnector iiop transport 1852 [disabled] 1853 --disable-debug-symbols disable generation of debug symbols [enabled] 1854 --disable-zip-debug-info 1855 disable zipping of debug-info files [enabled] 1856 --disable-freetype-bundling 1857 disable bundling of the freetype library with the 1858 build result [enabled on Windows or when using 1859 --with-freetype, disabled otherwise] 1860 --enable-sjavac use sjavac to do fast incremental compiles 1861 [disabled] 1862 --disable-precompiled-headers 1863 disable using precompiled headers when compiling C++ 1864 [enabled] 1865 --enable-ccache enable using ccache to speed up recompilations 1866 [disabled] 1867 1868 Optional Packages: 1869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1871 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 1872 support it), e.g. --with-target-bits=32 [guessed] 1873 --with-custom-make-dir Deprecated. Option is kept for backwards 1874 compatibility and is ignored 1875 --with-jdk-variant JDK variant to build (normal) [normal] 1876 --with-jvm-interpreter JVM interpreter to build (template, cpp) [template] 1877 --with-jvm-variants JVM variants (separated by commas) to build (server, 1878 client, minimal1, kernel, zero, zeroshark, core) 1879 [server] 1880 --with-debug-level set the debug level (release, fastdebug, slowdebug, 1881 optimized (HotSpot build only)) [release] 1882 --with-devkit use this devkit for compilers, tools and resources 1883 --with-sys-root alias for --with-sysroot for backwards compatability 1884 --with-sysroot use this directory as sysroot 1885 --with-tools-dir alias for --with-toolchain-path for backwards 1886 compatibility 1887 --with-toolchain-path prepend these directories when searching for 1888 toolchain binaries (compilers etc) 1889 --with-extra-path prepend these directories to the default path 1890 --with-sdk-name use the platform SDK of the given name. [macosx] 1891 --with-conf-name use this as the name of the configuration [generated 1892 from important configuration options] 1893 --with-output-sync set make output sync type if supported by make. 1894 [recurse] 1895 --with-builddeps-conf use this configuration file for the builddeps 1896 --with-builddeps-server download and use build dependencies from this server 1897 url 1898 --with-builddeps-dir store downloaded build dependencies here 1899 [/localhome/builddeps] 1900 --with-builddeps-group chgrp the downloaded build dependencies to this 1901 group 1902 --with-cacerts-file specify alternative cacerts file 1903 --with-milestone Set milestone value for build [internal] 1904 --with-update-version Set update version value for build [b00] 1905 --with-user-release-suffix 1906 Add a custom string to the version string if build 1907 number is not set.[username_builddateb00] 1908 --with-build-number Set build number value for build [b00] 1909 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1910 --with-add-source-root for each and every source directory, look in this 1911 additional source root for the same directory; if it 1912 exists and have files in it, include it in the build 1913 --with-override-source-root 1914 for each and every source directory, look in this 1915 override source root for the same directory; if it 1916 exists, use that directory instead and ignore the 1917 directory in the original source root 1918 --with-adds-and-overrides 1919 use the subdirs 'adds' and 'overrides' in the 1920 specified directory as add-source-root and 1921 override-source-root 1922 --with-override-langtools 1923 use this langtools dir for the build 1924 --with-override-corba use this corba dir for the build 1925 --with-override-jaxp use this jaxp dir for the build 1926 --with-override-jaxws use this jaxws dir for the build 1927 --with-override-hotspot use this hotspot dir for the build 1928 --with-override-nashorn use this nashorn dir for the build 1929 --with-override-jdk use this jdk dir for the build 1930 --with-import-hotspot import hotspot binaries from this jdk image or 1931 hotspot build dist dir instead of building from 1932 source 1933 --with-toolchain-type the toolchain type (or family) to use, use '--help' 1934 to show possible values [platform dependent] 1935 --with-jtreg Regression Test Harness [probed] 1936 --with-extra-cflags extra flags to be used when compiling jdk c-files 1937 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 1938 --with-extra-ldflags extra flags to be used when linking jdk 1939 --with-x use the X Window System 1940 --with-cups specify prefix directory for the cups package 1941 (expecting the headers under PATH/include) 1942 --with-cups-include specify directory for the cups include files 1943 --with-freetype specify prefix directory for the freetype package 1944 (expecting the libraries under PATH/lib and the 1945 headers under PATH/include) 1946 --with-freetype-include specify directory for the freetype include files 1947 --with-freetype-lib specify directory for the freetype library 1948 --with-freetype-src specify directory with freetype sources to 1949 automatically build the library (experimental, 1950 Windows-only) 1951 --with-alsa specify prefix directory for the alsa package 1952 (expecting the libraries under PATH/lib and the 1953 headers under PATH/include) 1954 --with-alsa-include specify directory for the alsa include files 1955 --with-alsa-lib specify directory for the alsa library 1956 --with-libjpeg use libjpeg from build system or OpenJDK source 1957 (system, bundled) [bundled] 1958 --with-giflib use giflib from build system or OpenJDK source 1959 (system, bundled) [bundled] 1960 --with-lcms use lcms2 from build system or OpenJDK source 1961 (system, bundled) [bundled] 1962 --with-libpng use libpng from build system or OpenJDK source 1963 (system, bundled) [bundled] 1964 --with-zlib use zlib from build system or OpenJDK source 1965 (system, bundled) [bundled] 1966 --with-stdc++lib=<static>,<dynamic>,<default> 1967 force linking of the C++ runtime on Linux to either 1968 static or dynamic, default is static with dynamic as 1969 fallback 1970 --with-msvcr-dll copy this msvcr100.dll into the built JDK (Windows 1971 only) [probed] 1972 --with-dxsdk Deprecated. Option is kept for backwards 1973 compatibility and is ignored 1974 --with-dxsdk-lib Deprecated. Option is kept for backwards 1975 compatibility and is ignored 1976 --with-dxsdk-include Deprecated. Option is kept for backwards 1977 compatibility and is ignored 1978 --with-num-cores number of cores in the build system, e.g. 1979 --with-num-cores=8 [probed] 1980 --with-memory-size memory (in MB) available in the build system, e.g. 1981 --with-memory-size=1024 [probed] 1982 --with-jobs number of parallel jobs to let make run [calculated 1983 based on cores and memory] 1984 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 1985 invocations of boot JDK, overriding the default 1986 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 1987 -enableassertions" 1988 --with-sjavac-server-java 1989 use this java binary for running the sjavac 1990 background server [Boot JDK java] 1991 --with-ccache-dir where to store ccache files [~/.ccache] 1992 1993 Some influential environment variables: 1994 BASENAME Override default value for BASENAME 1995 BASH Override default value for BASH 1996 CAT Override default value for CAT 1997 CHMOD Override default value for CHMOD 1998 CMP Override default value for CMP 1999 COMM Override default value for COMM 2000 CP Override default value for CP 2001 CUT Override default value for CUT 2002 DATE Override default value for DATE 2003 DIFF Override default value for DIFF 2004 DIRNAME Override default value for DIRNAME 2005 ECHO Override default value for ECHO 2006 EXPR Override default value for EXPR 2007 FILE Override default value for FILE 2008 FIND Override default value for FIND 2009 HEAD Override default value for HEAD 2010 LN Override default value for LN 2011 LS Override default value for LS 2012 MKDIR Override default value for MKDIR 2013 MKTEMP Override default value for MKTEMP 2014 MV Override default value for MV 2015 NAWK Override default value for NAWK 2016 PRINTF Override default value for PRINTF 2017 RM Override default value for RM 2018 SH Override default value for SH 2019 SORT Override default value for SORT 2020 TAIL Override default value for TAIL 2021 TAR Override default value for TAR 2022 TEE Override default value for TEE 2023 TOUCH Override default value for TOUCH 2024 TR Override default value for TR 2025 UNAME Override default value for UNAME 2026 UNIQ Override default value for UNIQ 2027 WC Override default value for WC 2028 WHICH Override default value for WHICH 2029 XARGS Override default value for XARGS 2030 AWK Override default value for AWK 2031 GREP Override default value for GREP 2032 EGREP Override default value for EGREP 2033 FGREP Override default value for FGREP 2034 SED Override default value for SED 2035 CYGPATH Override default value for CYGPATH 2036 READLINK Override default value for READLINK 2037 DF Override default value for DF 2038 SETFILE Override default value for SETFILE 2039 CPIO Override default value for CPIO 2040 UNZIP Override default value for UNZIP 2041 ZIP Override default value for ZIP 2042 LDD Override default value for LDD 2043 OTOOL Override default value for OTOOL 2044 READELF Override default value for READELF 2045 HG Override default value for HG 2046 STAT Override default value for STAT 2047 TIME Override default value for TIME 2048 DSYMUTIL Override default value for DSYMUTIL 2049 XATTR Override default value for XATTR 2050 CODESIGN Override default value for CODESIGN 2051 PKG_CONFIG path to pkg-config utility 2052 JAVA Override default value for JAVA 2053 JAVAC Override default value for JAVAC 2054 JAVAH Override default value for JAVAH 2055 JAR Override default value for JAR 2056 NATIVE2ASCII 2057 Override default value for NATIVE2ASCII 2058 JARSIGNER Override default value for JARSIGNER 2059 CC C compiler command 2060 CFLAGS C compiler flags 2061 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2062 nonstandard directory <lib dir> 2063 LIBS libraries to pass to the linker, e.g. -l<library> 2064 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2065 you have headers in a nonstandard directory <include dir> 2066 CXX C++ compiler command 2067 CXXFLAGS C++ compiler flags 2068 CPP C preprocessor 2069 CXXCPP C++ preprocessor 2070 AS Override default value for AS 2071 AR Override default value for AR 2072 OBJC Objective C compiler command 2073 OBJCFLAGS Objective C compiler flags 2074 LIPO Override default value for LIPO 2075 STRIP Override default value for STRIP 2076 NM Override default value for NM 2077 GNM Override default value for GNM 2078 MCS Override default value for MCS 2079 OBJCOPY Override default value for OBJCOPY 2080 OBJDUMP Override default value for OBJDUMP 2081 BUILD_CC Override default value for BUILD_CC 2082 BUILD_CXX Override default value for BUILD_CXX 2083 BUILD_LD Override default value for BUILD_LD 2084 JTREGEXE Override default value for JTREGEXE 2085 XMKMF Path to xmkmf, Makefile generator for X Window System 2086 FREETYPE_CFLAGS 2087 C compiler flags for FREETYPE, overriding pkg-config 2088 FREETYPE_LIBS 2089 linker flags for FREETYPE, overriding pkg-config 2090 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2091 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2092 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2093 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2094 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2095 PNG_LIBS linker flags for PNG, overriding pkg-config 2096 LIBFFI_CFLAGS 2097 C compiler flags for LIBFFI, overriding pkg-config 2098 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2099 CCACHE Override default value for CCACHE 2100 2101 Use these variables to override the choices made by `configure' or to help 2102 it to find libraries and programs with nonstandard names/locations. 2103 2104 Report bugs to <build-dev@openjdk.java.net>. 2105 OpenJDK home page: <http://openjdk.java.net>. 2106 _ACEOF 2107 ac_status=$? 2108 fi 2109 2110 if test "$ac_init_help" = "recursive"; then 2111 # If there are subdirs, report their specific --help. 2112 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2113 test -d "$ac_dir" || 2114 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2115 continue 2116 ac_builddir=. 2117 2118 case "$ac_dir" in 2119 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2120 *) 2121 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2122 # A ".." for each directory in $ac_dir_suffix. 2123 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2124 case $ac_top_builddir_sub in 2125 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2126 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2127 esac ;; 2128 esac 2129 ac_abs_top_builddir=$ac_pwd 2130 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2131 # for backward compatibility: 2132 ac_top_builddir=$ac_top_build_prefix 2133 2134 case $srcdir in 2135 .) # We are building in place. 2136 ac_srcdir=. 2137 ac_top_srcdir=$ac_top_builddir_sub 2138 ac_abs_top_srcdir=$ac_pwd ;; 2139 [\\/]* | ?:[\\/]* ) # Absolute name. 2140 ac_srcdir=$srcdir$ac_dir_suffix; 2141 ac_top_srcdir=$srcdir 2142 ac_abs_top_srcdir=$srcdir ;; 2143 *) # Relative name. 2144 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2145 ac_top_srcdir=$ac_top_build_prefix$srcdir 2146 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2147 esac 2148 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2149 2150 cd "$ac_dir" || { ac_status=$?; continue; } 2151 # Check for guested configure. 2152 if test -f "$ac_srcdir/configure.gnu"; then 2153 echo && 2154 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2155 elif test -f "$ac_srcdir/configure"; then 2156 echo && 2157 $SHELL "$ac_srcdir/configure" --help=recursive 2158 else 2159 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2160 fi || ac_status=$? 2161 cd "$ac_pwd" || { ac_status=$?; break; } 2162 done 2163 fi 2164 2165 test -n "$ac_init_help" && exit $ac_status 2166 if $ac_init_version; then 2167 cat <<\_ACEOF 2168 OpenJDK configure jdk9 2169 generated by GNU Autoconf 2.69 2170 2171 Copyright (C) 2012 Free Software Foundation, Inc. 2172 This configure script is free software; the Free Software Foundation 2173 gives unlimited permission to copy, distribute and modify it. 2174 _ACEOF 2175 exit 2176 fi 2177 2178 ## ------------------------ ## 2179 ## Autoconf initialization. ## 2180 ## ------------------------ ## 2181 2182 # ac_fn_c_try_compile LINENO 2183 # -------------------------- 2184 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2185 ac_fn_c_try_compile () 2186 { 2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2188 rm -f conftest.$ac_objext 2189 if { { ac_try="$ac_compile" 2190 case "(($ac_try" in 2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2192 *) ac_try_echo=$ac_try;; 2193 esac 2194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2195 $as_echo "$ac_try_echo"; } >&5 2196 (eval "$ac_compile") 2>conftest.err 2197 ac_status=$? 2198 if test -s conftest.err; then 2199 grep -v '^ *+' conftest.err >conftest.er1 2200 cat conftest.er1 >&5 2201 mv -f conftest.er1 conftest.err 2202 fi 2203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2204 test $ac_status = 0; } && { 2205 test -z "$ac_c_werror_flag" || 2206 test ! -s conftest.err 2207 } && test -s conftest.$ac_objext; then : 2208 ac_retval=0 2209 else 2210 $as_echo "$as_me: failed program was:" >&5 2211 sed 's/^/| /' conftest.$ac_ext >&5 2212 2213 ac_retval=1 2214 fi 2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2216 as_fn_set_status $ac_retval 2217 2218 } # ac_fn_c_try_compile 2219 2220 # ac_fn_cxx_try_compile LINENO 2221 # ---------------------------- 2222 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2223 ac_fn_cxx_try_compile () 2224 { 2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2226 rm -f conftest.$ac_objext 2227 if { { ac_try="$ac_compile" 2228 case "(($ac_try" in 2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2230 *) ac_try_echo=$ac_try;; 2231 esac 2232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2233 $as_echo "$ac_try_echo"; } >&5 2234 (eval "$ac_compile") 2>conftest.err 2235 ac_status=$? 2236 if test -s conftest.err; then 2237 grep -v '^ *+' conftest.err >conftest.er1 2238 cat conftest.er1 >&5 2239 mv -f conftest.er1 conftest.err 2240 fi 2241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2242 test $ac_status = 0; } && { 2243 test -z "$ac_cxx_werror_flag" || 2244 test ! -s conftest.err 2245 } && test -s conftest.$ac_objext; then : 2246 ac_retval=0 2247 else 2248 $as_echo "$as_me: failed program was:" >&5 2249 sed 's/^/| /' conftest.$ac_ext >&5 2250 2251 ac_retval=1 2252 fi 2253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2254 as_fn_set_status $ac_retval 2255 2256 } # ac_fn_cxx_try_compile 2257 2258 # ac_fn_c_try_cpp LINENO 2259 # ---------------------- 2260 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2261 ac_fn_c_try_cpp () 2262 { 2263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2264 if { { ac_try="$ac_cpp conftest.$ac_ext" 2265 case "(($ac_try" in 2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2267 *) ac_try_echo=$ac_try;; 2268 esac 2269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2270 $as_echo "$ac_try_echo"; } >&5 2271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2272 ac_status=$? 2273 if test -s conftest.err; then 2274 grep -v '^ *+' conftest.err >conftest.er1 2275 cat conftest.er1 >&5 2276 mv -f conftest.er1 conftest.err 2277 fi 2278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2279 test $ac_status = 0; } > conftest.i && { 2280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2281 test ! -s conftest.err 2282 }; then : 2283 ac_retval=0 2284 else 2285 $as_echo "$as_me: failed program was:" >&5 2286 sed 's/^/| /' conftest.$ac_ext >&5 2287 2288 ac_retval=1 2289 fi 2290 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2291 as_fn_set_status $ac_retval 2292 2293 } # ac_fn_c_try_cpp 2294 2295 # ac_fn_cxx_try_cpp LINENO 2296 # ------------------------ 2297 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2298 ac_fn_cxx_try_cpp () 2299 { 2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2301 if { { ac_try="$ac_cpp conftest.$ac_ext" 2302 case "(($ac_try" in 2303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2304 *) ac_try_echo=$ac_try;; 2305 esac 2306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2307 $as_echo "$ac_try_echo"; } >&5 2308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2309 ac_status=$? 2310 if test -s conftest.err; then 2311 grep -v '^ *+' conftest.err >conftest.er1 2312 cat conftest.er1 >&5 2313 mv -f conftest.er1 conftest.err 2314 fi 2315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2316 test $ac_status = 0; } > conftest.i && { 2317 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2318 test ! -s conftest.err 2319 }; then : 2320 ac_retval=0 2321 else 2322 $as_echo "$as_me: failed program was:" >&5 2323 sed 's/^/| /' conftest.$ac_ext >&5 2324 2325 ac_retval=1 2326 fi 2327 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2328 as_fn_set_status $ac_retval 2329 2330 } # ac_fn_cxx_try_cpp 2331 2332 # ac_fn_objc_try_compile LINENO 2333 # ----------------------------- 2334 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2335 ac_fn_objc_try_compile () 2336 { 2337 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2338 rm -f conftest.$ac_objext 2339 if { { ac_try="$ac_compile" 2340 case "(($ac_try" in 2341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2342 *) ac_try_echo=$ac_try;; 2343 esac 2344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2345 $as_echo "$ac_try_echo"; } >&5 2346 (eval "$ac_compile") 2>conftest.err 2347 ac_status=$? 2348 if test -s conftest.err; then 2349 grep -v '^ *+' conftest.err >conftest.er1 2350 cat conftest.er1 >&5 2351 mv -f conftest.er1 conftest.err 2352 fi 2353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2354 test $ac_status = 0; } && { 2355 test -z "$ac_objc_werror_flag" || 2356 test ! -s conftest.err 2357 } && test -s conftest.$ac_objext; then : 2358 ac_retval=0 2359 else 2360 $as_echo "$as_me: failed program was:" >&5 2361 sed 's/^/| /' conftest.$ac_ext >&5 2362 2363 ac_retval=1 2364 fi 2365 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2366 as_fn_set_status $ac_retval 2367 2368 } # ac_fn_objc_try_compile 2369 2370 # ac_fn_c_try_link LINENO 2371 # ----------------------- 2372 # Try to link conftest.$ac_ext, and return whether this succeeded. 2373 ac_fn_c_try_link () 2374 { 2375 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2376 rm -f conftest.$ac_objext conftest$ac_exeext 2377 if { { ac_try="$ac_link" 2378 case "(($ac_try" in 2379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2380 *) ac_try_echo=$ac_try;; 2381 esac 2382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2383 $as_echo "$ac_try_echo"; } >&5 2384 (eval "$ac_link") 2>conftest.err 2385 ac_status=$? 2386 if test -s conftest.err; then 2387 grep -v '^ *+' conftest.err >conftest.er1 2388 cat conftest.er1 >&5 2389 mv -f conftest.er1 conftest.err 2390 fi 2391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2392 test $ac_status = 0; } && { 2393 test -z "$ac_c_werror_flag" || 2394 test ! -s conftest.err 2395 } && test -s conftest$ac_exeext && { 2396 test "$cross_compiling" = yes || 2397 test -x conftest$ac_exeext 2398 }; then : 2399 ac_retval=0 2400 else 2401 $as_echo "$as_me: failed program was:" >&5 2402 sed 's/^/| /' conftest.$ac_ext >&5 2403 2404 ac_retval=1 2405 fi 2406 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2407 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2408 # interfere with the next link command; also delete a directory that is 2409 # left behind by Apple's compiler. We do this before executing the actions. 2410 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2411 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2412 as_fn_set_status $ac_retval 2413 2414 } # ac_fn_c_try_link 2415 2416 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2417 # --------------------------------------------------------- 2418 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2419 # the include files in INCLUDES and setting the cache variable VAR 2420 # accordingly. 2421 ac_fn_cxx_check_header_mongrel () 2422 { 2423 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2424 if eval \${$3+:} false; then : 2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2426 $as_echo_n "checking for $2... " >&6; } 2427 if eval \${$3+:} false; then : 2428 $as_echo_n "(cached) " >&6 2429 fi 2430 eval ac_res=\$$3 2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2432 $as_echo "$ac_res" >&6; } 2433 else 2434 # Is the header compilable? 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2436 $as_echo_n "checking $2 usability... " >&6; } 2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2438 /* end confdefs.h. */ 2439 $4 2440 #include <$2> 2441 _ACEOF 2442 if ac_fn_cxx_try_compile "$LINENO"; then : 2443 ac_header_compiler=yes 2444 else 2445 ac_header_compiler=no 2446 fi 2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2449 $as_echo "$ac_header_compiler" >&6; } 2450 2451 # Is the header present? 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2453 $as_echo_n "checking $2 presence... " >&6; } 2454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2455 /* end confdefs.h. */ 2456 #include <$2> 2457 _ACEOF 2458 if ac_fn_cxx_try_cpp "$LINENO"; then : 2459 ac_header_preproc=yes 2460 else 2461 ac_header_preproc=no 2462 fi 2463 rm -f conftest.err conftest.i conftest.$ac_ext 2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2465 $as_echo "$ac_header_preproc" >&6; } 2466 2467 # So? What about this header? 2468 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2469 yes:no: ) 2470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2471 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2473 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2474 ;; 2475 no:yes:* ) 2476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2477 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2479 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2481 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2483 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2485 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2486 ( $as_echo "## ----------------------------------------- ## 2487 ## Report this to build-dev@openjdk.java.net ## 2488 ## ----------------------------------------- ##" 2489 ) | sed "s/^/$as_me: WARNING: /" >&2 2490 ;; 2491 esac 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2493 $as_echo_n "checking for $2... " >&6; } 2494 if eval \${$3+:} false; then : 2495 $as_echo_n "(cached) " >&6 2496 else 2497 eval "$3=\$ac_header_compiler" 2498 fi 2499 eval ac_res=\$$3 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2501 $as_echo "$ac_res" >&6; } 2502 fi 2503 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2504 2505 } # ac_fn_cxx_check_header_mongrel 2506 2507 # ac_fn_cxx_try_run LINENO 2508 # ------------------------ 2509 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2510 # that executables *can* be run. 2511 ac_fn_cxx_try_run () 2512 { 2513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2514 if { { ac_try="$ac_link" 2515 case "(($ac_try" in 2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2517 *) ac_try_echo=$ac_try;; 2518 esac 2519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2520 $as_echo "$ac_try_echo"; } >&5 2521 (eval "$ac_link") 2>&5 2522 ac_status=$? 2523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2524 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2525 { { case "(($ac_try" in 2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2527 *) ac_try_echo=$ac_try;; 2528 esac 2529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2530 $as_echo "$ac_try_echo"; } >&5 2531 (eval "$ac_try") 2>&5 2532 ac_status=$? 2533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2534 test $ac_status = 0; }; }; then : 2535 ac_retval=0 2536 else 2537 $as_echo "$as_me: program exited with status $ac_status" >&5 2538 $as_echo "$as_me: failed program was:" >&5 2539 sed 's/^/| /' conftest.$ac_ext >&5 2540 2541 ac_retval=$ac_status 2542 fi 2543 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2544 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2545 as_fn_set_status $ac_retval 2546 2547 } # ac_fn_cxx_try_run 2548 2549 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2550 # --------------------------------------------------------- 2551 # Tests whether HEADER exists and can be compiled using the include files in 2552 # INCLUDES, setting the cache variable VAR accordingly. 2553 ac_fn_cxx_check_header_compile () 2554 { 2555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2557 $as_echo_n "checking for $2... " >&6; } 2558 if eval \${$3+:} false; then : 2559 $as_echo_n "(cached) " >&6 2560 else 2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2562 /* end confdefs.h. */ 2563 $4 2564 #include <$2> 2565 _ACEOF 2566 if ac_fn_cxx_try_compile "$LINENO"; then : 2567 eval "$3=yes" 2568 else 2569 eval "$3=no" 2570 fi 2571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2572 fi 2573 eval ac_res=\$$3 2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2575 $as_echo "$ac_res" >&6; } 2576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2577 2578 } # ac_fn_cxx_check_header_compile 2579 2580 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2581 # ---------------------------------------------- 2582 # Tries to find the compile-time value of EXPR in a program that includes 2583 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2584 # computed 2585 ac_fn_cxx_compute_int () 2586 { 2587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2588 if test "$cross_compiling" = yes; then 2589 # Depending upon the size, compute the lo and hi bounds. 2590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2591 /* end confdefs.h. */ 2592 $4 2593 int 2594 main () 2595 { 2596 static int test_array [1 - 2 * !(($2) >= 0)]; 2597 test_array [0] = 0; 2598 return test_array [0]; 2599 2600 ; 2601 return 0; 2602 } 2603 _ACEOF 2604 if ac_fn_cxx_try_compile "$LINENO"; then : 2605 ac_lo=0 ac_mid=0 2606 while :; do 2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2608 /* end confdefs.h. */ 2609 $4 2610 int 2611 main () 2612 { 2613 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2614 test_array [0] = 0; 2615 return test_array [0]; 2616 2617 ; 2618 return 0; 2619 } 2620 _ACEOF 2621 if ac_fn_cxx_try_compile "$LINENO"; then : 2622 ac_hi=$ac_mid; break 2623 else 2624 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2625 if test $ac_lo -le $ac_mid; then 2626 ac_lo= ac_hi= 2627 break 2628 fi 2629 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2630 fi 2631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2632 done 2633 else 2634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2635 /* end confdefs.h. */ 2636 $4 2637 int 2638 main () 2639 { 2640 static int test_array [1 - 2 * !(($2) < 0)]; 2641 test_array [0] = 0; 2642 return test_array [0]; 2643 2644 ; 2645 return 0; 2646 } 2647 _ACEOF 2648 if ac_fn_cxx_try_compile "$LINENO"; then : 2649 ac_hi=-1 ac_mid=-1 2650 while :; do 2651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2652 /* end confdefs.h. */ 2653 $4 2654 int 2655 main () 2656 { 2657 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2658 test_array [0] = 0; 2659 return test_array [0]; 2660 2661 ; 2662 return 0; 2663 } 2664 _ACEOF 2665 if ac_fn_cxx_try_compile "$LINENO"; then : 2666 ac_lo=$ac_mid; break 2667 else 2668 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2669 if test $ac_mid -le $ac_hi; then 2670 ac_lo= ac_hi= 2671 break 2672 fi 2673 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2674 fi 2675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2676 done 2677 else 2678 ac_lo= ac_hi= 2679 fi 2680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2681 fi 2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2683 # Binary search between lo and hi bounds. 2684 while test "x$ac_lo" != "x$ac_hi"; do 2685 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2687 /* end confdefs.h. */ 2688 $4 2689 int 2690 main () 2691 { 2692 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2693 test_array [0] = 0; 2694 return test_array [0]; 2695 2696 ; 2697 return 0; 2698 } 2699 _ACEOF 2700 if ac_fn_cxx_try_compile "$LINENO"; then : 2701 ac_hi=$ac_mid 2702 else 2703 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2704 fi 2705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2706 done 2707 case $ac_lo in #(( 2708 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2709 '') ac_retval=1 ;; 2710 esac 2711 else 2712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2713 /* end confdefs.h. */ 2714 $4 2715 static long int longval () { return $2; } 2716 static unsigned long int ulongval () { return $2; } 2717 #include <stdio.h> 2718 #include <stdlib.h> 2719 int 2720 main () 2721 { 2722 2723 FILE *f = fopen ("conftest.val", "w"); 2724 if (! f) 2725 return 1; 2726 if (($2) < 0) 2727 { 2728 long int i = longval (); 2729 if (i != ($2)) 2730 return 1; 2731 fprintf (f, "%ld", i); 2732 } 2733 else 2734 { 2735 unsigned long int i = ulongval (); 2736 if (i != ($2)) 2737 return 1; 2738 fprintf (f, "%lu", i); 2739 } 2740 /* Do not output a trailing newline, as this causes \r\n confusion 2741 on some platforms. */ 2742 return ferror (f) || fclose (f) != 0; 2743 2744 ; 2745 return 0; 2746 } 2747 _ACEOF 2748 if ac_fn_cxx_try_run "$LINENO"; then : 2749 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2750 else 2751 ac_retval=1 2752 fi 2753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2754 conftest.$ac_objext conftest.beam conftest.$ac_ext 2755 rm -f conftest.val 2756 2757 fi 2758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2759 as_fn_set_status $ac_retval 2760 2761 } # ac_fn_cxx_compute_int 2762 2763 # ac_fn_cxx_try_link LINENO 2764 # ------------------------- 2765 # Try to link conftest.$ac_ext, and return whether this succeeded. 2766 ac_fn_cxx_try_link () 2767 { 2768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2769 rm -f conftest.$ac_objext conftest$ac_exeext 2770 if { { ac_try="$ac_link" 2771 case "(($ac_try" in 2772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2773 *) ac_try_echo=$ac_try;; 2774 esac 2775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2776 $as_echo "$ac_try_echo"; } >&5 2777 (eval "$ac_link") 2>conftest.err 2778 ac_status=$? 2779 if test -s conftest.err; then 2780 grep -v '^ *+' conftest.err >conftest.er1 2781 cat conftest.er1 >&5 2782 mv -f conftest.er1 conftest.err 2783 fi 2784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2785 test $ac_status = 0; } && { 2786 test -z "$ac_cxx_werror_flag" || 2787 test ! -s conftest.err 2788 } && test -s conftest$ac_exeext && { 2789 test "$cross_compiling" = yes || 2790 test -x conftest$ac_exeext 2791 }; then : 2792 ac_retval=0 2793 else 2794 $as_echo "$as_me: failed program was:" >&5 2795 sed 's/^/| /' conftest.$ac_ext >&5 2796 2797 ac_retval=1 2798 fi 2799 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2800 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2801 # interfere with the next link command; also delete a directory that is 2802 # left behind by Apple's compiler. We do this before executing the actions. 2803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2805 as_fn_set_status $ac_retval 2806 2807 } # ac_fn_cxx_try_link 2808 2809 # ac_fn_cxx_check_func LINENO FUNC VAR 2810 # ------------------------------------ 2811 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2812 ac_fn_cxx_check_func () 2813 { 2814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2816 $as_echo_n "checking for $2... " >&6; } 2817 if eval \${$3+:} false; then : 2818 $as_echo_n "(cached) " >&6 2819 else 2820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2821 /* end confdefs.h. */ 2822 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2823 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2824 #define $2 innocuous_$2 2825 2826 /* System header to define __stub macros and hopefully few prototypes, 2827 which can conflict with char $2 (); below. 2828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2829 <limits.h> exists even on freestanding compilers. */ 2830 2831 #ifdef __STDC__ 2832 # include <limits.h> 2833 #else 2834 # include <assert.h> 2835 #endif 2836 2837 #undef $2 2838 2839 /* Override any GCC internal prototype to avoid an error. 2840 Use char because int might match the return type of a GCC 2841 builtin and then its argument prototype would still apply. */ 2842 #ifdef __cplusplus 2843 extern "C" 2844 #endif 2845 char $2 (); 2846 /* The GNU C library defines this for functions which it implements 2847 to always fail with ENOSYS. Some functions are actually named 2848 something starting with __ and the normal name is an alias. */ 2849 #if defined __stub_$2 || defined __stub___$2 2850 choke me 2851 #endif 2852 2853 int 2854 main () 2855 { 2856 return $2 (); 2857 ; 2858 return 0; 2859 } 2860 _ACEOF 2861 if ac_fn_cxx_try_link "$LINENO"; then : 2862 eval "$3=yes" 2863 else 2864 eval "$3=no" 2865 fi 2866 rm -f core conftest.err conftest.$ac_objext \ 2867 conftest$ac_exeext conftest.$ac_ext 2868 fi 2869 eval ac_res=\$$3 2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2871 $as_echo "$ac_res" >&6; } 2872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2873 2874 } # ac_fn_cxx_check_func 2875 2876 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2877 # ------------------------------------------------------- 2878 # Tests whether HEADER exists and can be compiled using the include files in 2879 # INCLUDES, setting the cache variable VAR accordingly. 2880 ac_fn_c_check_header_compile () 2881 { 2882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2884 $as_echo_n "checking for $2... " >&6; } 2885 if eval \${$3+:} false; then : 2886 $as_echo_n "(cached) " >&6 2887 else 2888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2889 /* end confdefs.h. */ 2890 $4 2891 #include <$2> 2892 _ACEOF 2893 if ac_fn_c_try_compile "$LINENO"; then : 2894 eval "$3=yes" 2895 else 2896 eval "$3=no" 2897 fi 2898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2899 fi 2900 eval ac_res=\$$3 2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2902 $as_echo "$ac_res" >&6; } 2903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2904 2905 } # ac_fn_c_check_header_compile 2906 cat >config.log <<_ACEOF 2907 This file contains any messages produced by compilers while 2908 running configure, to aid debugging if configure makes a mistake. 2909 2910 It was created by OpenJDK $as_me jdk9, which was 2911 generated by GNU Autoconf 2.69. Invocation command line was 2912 2913 $ $0 $@ 2914 2915 _ACEOF 2916 exec 5>>config.log 2917 { 2918 cat <<_ASUNAME 2919 ## --------- ## 2920 ## Platform. ## 2921 ## --------- ## 2922 2923 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2924 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2925 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2926 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2927 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2928 2929 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2930 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2931 2932 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2933 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2934 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2935 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2936 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2937 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2938 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2939 2940 _ASUNAME 2941 2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2943 for as_dir in $PATH 2944 do 2945 IFS=$as_save_IFS 2946 test -z "$as_dir" && as_dir=. 2947 $as_echo "PATH: $as_dir" 2948 done 2949 IFS=$as_save_IFS 2950 2951 } >&5 2952 2953 cat >&5 <<_ACEOF 2954 2955 2956 ## ----------- ## 2957 ## Core tests. ## 2958 ## ----------- ## 2959 2960 _ACEOF 2961 2962 2963 # Keep a trace of the command line. 2964 # Strip out --no-create and --no-recursion so they do not pile up. 2965 # Strip out --silent because we don't want to record it for future runs. 2966 # Also quote any args containing shell meta-characters. 2967 # Make two passes to allow for proper duplicate-argument suppression. 2968 ac_configure_args= 2969 ac_configure_args0= 2970 ac_configure_args1= 2971 ac_must_keep_next=false 2972 for ac_pass in 1 2 2973 do 2974 for ac_arg 2975 do 2976 case $ac_arg in 2977 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2978 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2979 | -silent | --silent | --silen | --sile | --sil) 2980 continue ;; 2981 *\'*) 2982 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2983 esac 2984 case $ac_pass in 2985 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2986 2) 2987 as_fn_append ac_configure_args1 " '$ac_arg'" 2988 if test $ac_must_keep_next = true; then 2989 ac_must_keep_next=false # Got value, back to normal. 2990 else 2991 case $ac_arg in 2992 *=* | --config-cache | -C | -disable-* | --disable-* \ 2993 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2994 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2995 | -with-* | --with-* | -without-* | --without-* | --x) 2996 case "$ac_configure_args0 " in 2997 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2998 esac 2999 ;; 3000 -* ) ac_must_keep_next=true ;; 3001 esac 3002 fi 3003 as_fn_append ac_configure_args " '$ac_arg'" 3004 ;; 3005 esac 3006 done 3007 done 3008 { ac_configure_args0=; unset ac_configure_args0;} 3009 { ac_configure_args1=; unset ac_configure_args1;} 3010 3011 # When interrupted or exit'd, cleanup temporary files, and complete 3012 # config.log. We remove comments because anyway the quotes in there 3013 # would cause problems or look ugly. 3014 # WARNING: Use '\'' to represent an apostrophe within the trap. 3015 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3016 trap 'exit_status=$? 3017 # Save into config.log some information that might help in debugging. 3018 { 3019 echo 3020 3021 $as_echo "## ---------------- ## 3022 ## Cache variables. ## 3023 ## ---------------- ##" 3024 echo 3025 # The following way of writing the cache mishandles newlines in values, 3026 ( 3027 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3028 eval ac_val=\$$ac_var 3029 case $ac_val in #( 3030 *${as_nl}*) 3031 case $ac_var in #( 3032 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3033 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3034 esac 3035 case $ac_var in #( 3036 _ | IFS | as_nl) ;; #( 3037 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3038 *) { eval $ac_var=; unset $ac_var;} ;; 3039 esac ;; 3040 esac 3041 done 3042 (set) 2>&1 | 3043 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3044 *${as_nl}ac_space=\ *) 3045 sed -n \ 3046 "s/'\''/'\''\\\\'\'''\''/g; 3047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3048 ;; #( 3049 *) 3050 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3051 ;; 3052 esac | 3053 sort 3054 ) 3055 echo 3056 3057 $as_echo "## ----------------- ## 3058 ## Output variables. ## 3059 ## ----------------- ##" 3060 echo 3061 for ac_var in $ac_subst_vars 3062 do 3063 eval ac_val=\$$ac_var 3064 case $ac_val in 3065 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3066 esac 3067 $as_echo "$ac_var='\''$ac_val'\''" 3068 done | sort 3069 echo 3070 3071 if test -n "$ac_subst_files"; then 3072 $as_echo "## ------------------- ## 3073 ## File substitutions. ## 3074 ## ------------------- ##" 3075 echo 3076 for ac_var in $ac_subst_files 3077 do 3078 eval ac_val=\$$ac_var 3079 case $ac_val in 3080 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3081 esac 3082 $as_echo "$ac_var='\''$ac_val'\''" 3083 done | sort 3084 echo 3085 fi 3086 3087 if test -s confdefs.h; then 3088 $as_echo "## ----------- ## 3089 ## confdefs.h. ## 3090 ## ----------- ##" 3091 echo 3092 cat confdefs.h 3093 echo 3094 fi 3095 test "$ac_signal" != 0 && 3096 $as_echo "$as_me: caught signal $ac_signal" 3097 $as_echo "$as_me: exit $exit_status" 3098 } >&5 3099 rm -f core *.core core.conftest.* && 3100 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3101 exit $exit_status 3102 ' 0 3103 for ac_signal in 1 2 13 15; do 3104 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3105 done 3106 ac_signal=0 3107 3108 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3109 rm -f -r conftest* confdefs.h 3110 3111 $as_echo "/* confdefs.h */" > confdefs.h 3112 3113 # Predefined preprocessor variables. 3114 3115 cat >>confdefs.h <<_ACEOF 3116 #define PACKAGE_NAME "$PACKAGE_NAME" 3117 _ACEOF 3118 3119 cat >>confdefs.h <<_ACEOF 3120 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3121 _ACEOF 3122 3123 cat >>confdefs.h <<_ACEOF 3124 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3125 _ACEOF 3126 3127 cat >>confdefs.h <<_ACEOF 3128 #define PACKAGE_STRING "$PACKAGE_STRING" 3129 _ACEOF 3130 3131 cat >>confdefs.h <<_ACEOF 3132 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3133 _ACEOF 3134 3135 cat >>confdefs.h <<_ACEOF 3136 #define PACKAGE_URL "$PACKAGE_URL" 3137 _ACEOF 3138 3139 3140 # Let the site file select an alternate cache file if it wants to. 3141 # Prefer an explicitly selected file to automatically selected ones. 3142 ac_site_file1=NONE 3143 ac_site_file2=NONE 3144 if test -n "$CONFIG_SITE"; then 3145 # We do not want a PATH search for config.site. 3146 case $CONFIG_SITE in #(( 3147 -*) ac_site_file1=./$CONFIG_SITE;; 3148 */*) ac_site_file1=$CONFIG_SITE;; 3149 *) ac_site_file1=./$CONFIG_SITE;; 3150 esac 3151 elif test "x$prefix" != xNONE; then 3152 ac_site_file1=$prefix/share/config.site 3153 ac_site_file2=$prefix/etc/config.site 3154 else 3155 ac_site_file1=$ac_default_prefix/share/config.site 3156 ac_site_file2=$ac_default_prefix/etc/config.site 3157 fi 3158 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3159 do 3160 test "x$ac_site_file" = xNONE && continue 3161 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3162 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3163 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3164 sed 's/^/| /' "$ac_site_file" >&5 3165 . "$ac_site_file" \ 3166 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3168 as_fn_error $? "failed to load site script $ac_site_file 3169 See \`config.log' for more details" "$LINENO" 5; } 3170 fi 3171 done 3172 3173 if test -r "$cache_file"; then 3174 # Some versions of bash will fail to source /dev/null (special files 3175 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3176 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3177 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3178 $as_echo "$as_me: loading cache $cache_file" >&6;} 3179 case $cache_file in 3180 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3181 *) . "./$cache_file";; 3182 esac 3183 fi 3184 else 3185 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3186 $as_echo "$as_me: creating cache $cache_file" >&6;} 3187 >$cache_file 3188 fi 3189 3190 # Check that the precious variables saved in the cache have kept the same 3191 # value. 3192 ac_cache_corrupted=false 3193 for ac_var in $ac_precious_vars; do 3194 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3195 eval ac_new_set=\$ac_env_${ac_var}_set 3196 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3197 eval ac_new_val=\$ac_env_${ac_var}_value 3198 case $ac_old_set,$ac_new_set in 3199 set,) 3200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3201 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3202 ac_cache_corrupted=: ;; 3203 ,set) 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3205 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3206 ac_cache_corrupted=: ;; 3207 ,);; 3208 *) 3209 if test "x$ac_old_val" != "x$ac_new_val"; then 3210 # differences in whitespace do not lead to failure. 3211 ac_old_val_w=`echo x $ac_old_val` 3212 ac_new_val_w=`echo x $ac_new_val` 3213 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3215 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3216 ac_cache_corrupted=: 3217 else 3218 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3219 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3220 eval $ac_var=\$ac_old_val 3221 fi 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3223 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3224 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3225 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3226 fi;; 3227 esac 3228 # Pass precious variables to config.status. 3229 if test "$ac_new_set" = set; then 3230 case $ac_new_val in 3231 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3232 *) ac_arg=$ac_var=$ac_new_val ;; 3233 esac 3234 case " $ac_configure_args " in 3235 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3236 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3237 esac 3238 fi 3239 done 3240 if $ac_cache_corrupted; then 3241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3244 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3245 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3246 fi 3247 ## -------------------- ## 3248 ## Main body of script. ## 3249 ## -------------------- ## 3250 3251 ac_ext=c 3252 ac_cpp='$CPP $CPPFLAGS' 3253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3255 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3256 3257 3258 3259 ac_aux_dir= 3260 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3261 if test -f "$ac_dir/install-sh"; then 3262 ac_aux_dir=$ac_dir 3263 ac_install_sh="$ac_aux_dir/install-sh -c" 3264 break 3265 elif test -f "$ac_dir/install.sh"; then 3266 ac_aux_dir=$ac_dir 3267 ac_install_sh="$ac_aux_dir/install.sh -c" 3268 break 3269 elif test -f "$ac_dir/shtool"; then 3270 ac_aux_dir=$ac_dir 3271 ac_install_sh="$ac_aux_dir/shtool install -c" 3272 break 3273 fi 3274 done 3275 if test -z "$ac_aux_dir"; then 3276 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $TOPDIR/common/autoconf/build-aux \"$srcdir\"/$TOPDIR/common/autoconf/build-aux" "$LINENO" 5 3277 fi 3278 3279 # These three variables are undocumented and unsupported, 3280 # and are intended to be withdrawn in a future Autoconf release. 3281 # They can cause serious problems if a builder's source tree is in a directory 3282 # whose full name contains unusual characters. 3283 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3284 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3285 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3286 3287 3288 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3289 3290 # 3291 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3292 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3293 # 3294 # This code is free software; you can redistribute it and/or modify it 3295 # under the terms of the GNU General Public License version 2 only, as 3296 # published by the Free Software Foundation. Oracle designates this 3297 # particular file as subject to the "Classpath" exception as provided 3298 # by Oracle in the LICENSE file that accompanied this code. 3299 # 3300 # This code is distributed in the hope that it will be useful, but WITHOUT 3301 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3302 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3303 # version 2 for more details (a copy is included in the LICENSE file that 3304 # accompanied this code). 3305 # 3306 # You should have received a copy of the GNU General Public License version 3307 # 2 along with this work; if not, write to the Free Software Foundation, 3308 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3309 # 3310 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3311 # or visit www.oracle.com if you need additional information or have any 3312 # questions. 3313 # 3314 3315 # 3316 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3317 # 3318 # This program is free software; you can redistribute it and/or modify 3319 # it under the terms of the GNU General Public License as published by 3320 # the Free Software Foundation; either version 2 of the License, or 3321 # (at your option) any later version. 3322 # 3323 # This program is distributed in the hope that it will be useful, but 3324 # WITHOUT ANY WARRANTY; without even the implied warranty of 3325 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3326 # General Public License for more details. 3327 # 3328 # You should have received a copy of the GNU General Public License 3329 # along with this program; if not, write to the Free Software 3330 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3331 # 3332 # As a special exception to the GNU General Public License, if you 3333 # distribute this file as part of a program that contains a 3334 # configuration script generated by Autoconf, you may include it under 3335 # the same distribution terms that you use for the rest of that program. 3336 3337 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3338 # ---------------------------------- 3339 # PKG_PROG_PKG_CONFIG 3340 3341 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3342 # 3343 # Check to see whether a particular set of modules exists. Similar 3344 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3345 # 3346 # 3347 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3348 # this or PKG_CHECK_MODULES is called, or make sure to call 3349 # PKG_CHECK_EXISTS manually 3350 # -------------------------------------------------------------- 3351 3352 3353 3354 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3355 # --------------------------------------------- 3356 # _PKG_CONFIG 3357 3358 # _PKG_SHORT_ERRORS_SUPPORTED 3359 # ----------------------------- 3360 # _PKG_SHORT_ERRORS_SUPPORTED 3361 3362 3363 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3364 # [ACTION-IF-NOT-FOUND]) 3365 # 3366 # 3367 # Note that if there is a possibility the first call to 3368 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3369 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3370 # 3371 # 3372 # -------------------------------------------------------------- 3373 # PKG_CHECK_MODULES 3374 3375 3376 # Include these first... 3377 # 3378 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3379 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3380 # 3381 # This code is free software; you can redistribute it and/or modify it 3382 # under the terms of the GNU General Public License version 2 only, as 3383 # published by the Free Software Foundation. Oracle designates this 3384 # particular file as subject to the "Classpath" exception as provided 3385 # by Oracle in the LICENSE file that accompanied this code. 3386 # 3387 # This code is distributed in the hope that it will be useful, but WITHOUT 3388 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3389 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3390 # version 2 for more details (a copy is included in the LICENSE file that 3391 # accompanied this code). 3392 # 3393 # You should have received a copy of the GNU General Public License version 3394 # 2 along with this work; if not, write to the Free Software Foundation, 3395 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3396 # 3397 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3398 # or visit www.oracle.com if you need additional information or have any 3399 # questions. 3400 # 3401 3402 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3403 # If so, then append $1 to $2 \ 3404 # Also set JVM_ARG_OK to true/false depending on outcome. 3405 3406 3407 # Appends a string to a path variable, only adding the : when needed. 3408 3409 3410 # Prepends a string to a path variable, only adding the : when needed. 3411 3412 3413 # This will make sure the given variable points to a full and proper 3414 # path. This means: 3415 # 1) There will be no spaces in the path. On posix platforms, 3416 # spaces in the path will result in an error. On Windows, 3417 # the path will be rewritten using short-style to be space-free. 3418 # 2) The path will be absolute, and it will be in unix-style (on 3419 # cygwin). 3420 # $1: The name of the variable to fix 3421 3422 3423 # This will make sure the given variable points to a executable 3424 # with a full and proper path. This means: 3425 # 1) There will be no spaces in the path. On posix platforms, 3426 # spaces in the path will result in an error. On Windows, 3427 # the path will be rewritten using short-style to be space-free. 3428 # 2) The path will be absolute, and it will be in unix-style (on 3429 # cygwin). 3430 # Any arguments given to the executable is preserved. 3431 # If the input variable does not have a directory specification, then 3432 # it need to be in the PATH. 3433 # $1: The name of the variable to fix 3434 3435 3436 3437 3438 # Register a --with argument but mark it as deprecated 3439 # $1: The name of the with argument to deprecate, not including --with- 3440 3441 3442 # Register a --enable argument but mark it as deprecated 3443 # $1: The name of the with argument to deprecate, not including --enable- 3444 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3445 3446 3447 3448 3449 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3450 # $1: variable to check 3451 3452 3453 # Check that there are no unprocessed overridden variables left. 3454 # If so, they are an incorrect argument and we will exit with an error. 3455 3456 3457 # Setup a tool for the given variable. If correctly specified by the user, 3458 # use that value, otherwise search for the tool using the supplied code snippet. 3459 # $1: variable to set 3460 # $2: code snippet to call to look for the tool 3461 3462 3463 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3464 # $1: variable to set 3465 # $2: executable name (or list of names) to look for 3466 3467 3468 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3469 # $1: variable to set 3470 # $2: executable name (or list of names) to look for 3471 3472 3473 # Like BASIC_PATH_PROGS but fails if no tool was found. 3474 # $1: variable to set 3475 # $2: executable name (or list of names) to look for 3476 3477 3478 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3479 # $1: variable to set 3480 # $2: autoconf macro to call to look for the special tool 3481 3482 3483 # Setup the most fundamental tools that relies on not much else to set up, 3484 # but is used by much of the early bootstrap code. 3485 3486 3487 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 #%%% Simple tools %%% 3498 3499 # Check if we have found a usable version of make 3500 # $1: the path to a potential make binary (or empty) 3501 # $2: the description on how we found this 3502 3503 3504 3505 3506 # Goes looking for a usable version of GNU make. 3507 3508 3509 3510 3511 3512 3513 # Check if build directory is on local disk. If not possible to determine, 3514 # we prefer to claim it's local. 3515 # Argument 1: directory to test 3516 # Argument 2: what to do if it is on local disk 3517 # Argument 3: what to do otherwise (remote disk or failure) 3518 3519 3520 # Check that source files have basic read permissions set. This might 3521 # not be the case in cygwin in certain conditions. 3522 3523 3524 3525 3526 # 3527 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3528 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3529 # 3530 # This code is free software; you can redistribute it and/or modify it 3531 # under the terms of the GNU General Public License version 2 only, as 3532 # published by the Free Software Foundation. Oracle designates this 3533 # particular file as subject to the "Classpath" exception as provided 3534 # by Oracle in the LICENSE file that accompanied this code. 3535 # 3536 # This code is distributed in the hope that it will be useful, but WITHOUT 3537 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3538 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3539 # version 2 for more details (a copy is included in the LICENSE file that 3540 # accompanied this code). 3541 # 3542 # You should have received a copy of the GNU General Public License version 3543 # 2 along with this work; if not, write to the Free Software Foundation, 3544 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3545 # 3546 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3547 # or visit www.oracle.com if you need additional information or have any 3548 # questions. 3549 # 3550 3551 3552 3553 3554 3555 # Helper function which possibly converts a path using DOS-style short mode. 3556 # If so, the updated path is stored in $new_path. 3557 # $1: The path to check 3558 3559 3560 # Helper function which possibly converts a path using DOS-style short mode. 3561 # If so, the updated path is stored in $new_path. 3562 # $1: The path to check 3563 3564 3565 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3566 # and could probably be heavily simplified. However, all changes in this 3567 # area tend to need lot of testing in different scenarios, and in lack of 3568 # proper unit testing, cleaning this up has not been deemed worth the effort 3569 # at the moment. 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3580 3581 3582 3583 3584 # 3585 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3586 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3587 # 3588 # This code is free software; you can redistribute it and/or modify it 3589 # under the terms of the GNU General Public License version 2 only, as 3590 # published by the Free Software Foundation. Oracle designates this 3591 # particular file as subject to the "Classpath" exception as provided 3592 # by Oracle in the LICENSE file that accompanied this code. 3593 # 3594 # This code is distributed in the hope that it will be useful, but WITHOUT 3595 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3596 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3597 # version 2 for more details (a copy is included in the LICENSE file that 3598 # accompanied this code). 3599 # 3600 # You should have received a copy of the GNU General Public License version 3601 # 2 along with this work; if not, write to the Free Software Foundation, 3602 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3603 # 3604 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3605 # or visit www.oracle.com if you need additional information or have any 3606 # questions. 3607 # 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 # ... then the rest 3620 # 3621 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3622 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3623 # 3624 # This code is free software; you can redistribute it and/or modify it 3625 # under the terms of the GNU General Public License version 2 only, as 3626 # published by the Free Software Foundation. Oracle designates this 3627 # particular file as subject to the "Classpath" exception as provided 3628 # by Oracle in the LICENSE file that accompanied this code. 3629 # 3630 # This code is distributed in the hope that it will be useful, but WITHOUT 3631 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3632 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3633 # version 2 for more details (a copy is included in the LICENSE file that 3634 # accompanied this code). 3635 # 3636 # You should have received a copy of the GNU General Public License version 3637 # 2 along with this work; if not, write to the Free Software Foundation, 3638 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3639 # 3640 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3641 # or visit www.oracle.com if you need additional information or have any 3642 # questions. 3643 # 3644 3645 ######################################################################## 3646 # This file handles detection of the Boot JDK. The Boot JDK detection 3647 # process has been developed as a response to solve a complex real-world 3648 # problem. Initially, it was simple, but it has grown as platform after 3649 # platform, idiosyncracy after idiosyncracy has been supported. 3650 # 3651 # The basic idea is this: 3652 # 1) You need an acceptable *) JDK to use as a Boot JDK 3653 # 2) There are several ways to locate a JDK, that are mostly platform 3654 # dependent **) 3655 # 3) You can have multiple JDKs installed 3656 # 4) If possible, configure should try to dig out an acceptable JDK 3657 # automatically, without having to resort to command-line options 3658 # 3659 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3660 # javac) and not a JRE, etc. 3661 # 3662 # **) On Windows we typically use a well-known path. 3663 # On MacOSX we typically use the tool java_home. 3664 # On Linux we typically find javac in the $PATH, and then follow a 3665 # chain of symlinks that often ends up in a real JDK. 3666 # 3667 # This leads to the code where we check in different ways to locate a 3668 # JDK, and if one is found, check if it is acceptable. If not, we print 3669 # our reasons for rejecting it (useful when debugging non-working 3670 # configure situations) and continue checking the next one. 3671 ######################################################################## 3672 3673 # Execute the check given as argument, and verify the result 3674 # If the Boot JDK was previously found, do nothing 3675 # $1 A command line (typically autoconf macro) to execute 3676 3677 3678 # Test: Is bootjdk explicitely set by command line arguments? 3679 3680 3681 # Test: Is bootjdk available from builddeps? 3682 3683 3684 # Test: Is $JAVA_HOME set? 3685 3686 3687 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3688 3689 3690 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3691 # $1: Argument to the java_home binary (optional) 3692 3693 3694 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3695 3696 3697 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3698 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3699 # $1 = Path to directory containing jdk installations. 3700 # $2 = String to append to the found JDK directory to get the proper JDK home 3701 3702 3703 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3704 # environmental variable as base for where to look. 3705 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3706 3707 3708 # Test: Is there a JDK installed in default, well-known locations? 3709 3710 3711 # Check that a command-line tool in the Boot JDK is correct 3712 # $1 = name of variable to assign 3713 # $2 = name of binary 3714 3715 3716 ############################################################################### 3717 # 3718 # We need a Boot JDK to bootstrap the build. 3719 # 3720 3721 3722 3723 3724 3725 # 3726 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3727 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3728 # 3729 # This code is free software; you can redistribute it and/or modify it 3730 # under the terms of the GNU General Public License version 2 only, as 3731 # published by the Free Software Foundation. Oracle designates this 3732 # particular file as subject to the "Classpath" exception as provided 3733 # by Oracle in the LICENSE file that accompanied this code. 3734 # 3735 # This code is distributed in the hope that it will be useful, but WITHOUT 3736 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3737 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3738 # version 2 for more details (a copy is included in the LICENSE file that 3739 # accompanied this code). 3740 # 3741 # You should have received a copy of the GNU General Public License version 3742 # 2 along with this work; if not, write to the Free Software Foundation, 3743 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3744 # 3745 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3746 # or visit www.oracle.com if you need additional information or have any 3747 # questions. 3748 # 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 # 3770 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3771 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3772 # 3773 # This code is free software; you can redistribute it and/or modify it 3774 # under the terms of the GNU General Public License version 2 only, as 3775 # published by the Free Software Foundation. Oracle designates this 3776 # particular file as subject to the "Classpath" exception as provided 3777 # by Oracle in the LICENSE file that accompanied this code. 3778 # 3779 # This code is distributed in the hope that it will be useful, but WITHOUT 3780 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3781 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3782 # version 2 for more details (a copy is included in the LICENSE file that 3783 # accompanied this code). 3784 # 3785 # You should have received a copy of the GNU General Public License version 3786 # 2 along with this work; if not, write to the Free Software Foundation, 3787 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3788 # 3789 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3790 # or visit www.oracle.com if you need additional information or have any 3791 # questions. 3792 # 3793 3794 3795 3796 3797 3798 # Documentation on common flags used for solstudio in HIGHEST. 3799 # 3800 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 3801 # done with care, there are some assumptions below that need to 3802 # be understood about the use of pointers, and IEEE behavior. 3803 # 3804 # -fns: Use non-standard floating point mode (not IEEE 754) 3805 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 3806 # -fsingle: Use single precision floating point with 'float' 3807 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 3808 # (Source with excessing pointer casting and data access with mixed 3809 # pointer types are not recommended) 3810 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 3811 # (If you expect perfect errno behavior, do not use this) 3812 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 3813 # -xrestrict: Pointer parameters to functions do not overlap 3814 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 3815 # If you pass in multiple pointers to the same data, do not use this) 3816 # -xlibmil: Inline some library routines 3817 # (If you expect perfect errno behavior, do not use this) 3818 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 3819 # (If you expect perfect errno behavior, do not use this) 3820 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 3821 3822 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 3823 # Bug? 3824 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 3825 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 3826 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 3827 #fi 3828 3829 3830 3831 3832 3833 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3834 # [RUN-IF-FALSE]) 3835 # ------------------------------------------------------------ 3836 # Check that the c and c++ compilers support an argument 3837 3838 3839 # FLAGS_LINKER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3840 # [RUN-IF-FALSE]) 3841 # ------------------------------------------------------------ 3842 # Check that the linker support an argument 3843 3844 3845 3846 3847 # 3848 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3849 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3850 # 3851 # This code is free software; you can redistribute it and/or modify it 3852 # under the terms of the GNU General Public License version 2 only, as 3853 # published by the Free Software Foundation. Oracle designates this 3854 # particular file as subject to the "Classpath" exception as provided 3855 # by Oracle in the LICENSE file that accompanied this code. 3856 # 3857 # This code is distributed in the hope that it will be useful, but WITHOUT 3858 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3859 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3860 # version 2 for more details (a copy is included in the LICENSE file that 3861 # accompanied this code). 3862 # 3863 # You should have received a copy of the GNU General Public License version 3864 # 2 along with this work; if not, write to the Free Software Foundation, 3865 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3866 # 3867 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3868 # or visit www.oracle.com if you need additional information or have any 3869 # questions. 3870 # 3871 3872 3873 3874 3875 3876 cygwin_help() { 3877 case $1 in 3878 unzip) 3879 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 3880 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3881 ;; 3882 zip) 3883 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 3884 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3885 ;; 3886 make) 3887 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 3888 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3889 ;; 3890 freetype) 3891 HELP_MSG=" 3892 The freetype library can now be build during the configure process. 3893 Download the freetype sources and unpack them into an arbitrary directory: 3894 3895 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 3896 tar -xzf freetype-2.5.3.tar.gz 3897 3898 Then run configure with '--with-freetype-src=<freetype_src>'. This will 3899 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 3900 builds or into '<freetype_src>/lib32' for 32-bit builds. 3901 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 3902 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds." 3903 ;; 3904 esac 3905 } 3906 3907 msys_help() { 3908 PKGHANDLER_COMMAND="" 3909 } 3910 3911 apt_help() { 3912 case $1 in 3913 devkit) 3914 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3915 openjdk) 3916 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3917 alsa) 3918 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3919 cups) 3920 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3921 freetype) 3922 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3923 pulse) 3924 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;; 3925 x11) 3926 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 3927 ccache) 3928 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3929 esac 3930 } 3931 3932 yum_help() { 3933 case $1 in 3934 devkit) 3935 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3936 openjdk) 3937 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3938 alsa) 3939 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3940 cups) 3941 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3942 freetype) 3943 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 3944 pulse) 3945 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;; 3946 x11) 3947 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;; 3948 ccache) 3949 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3950 esac 3951 } 3952 3953 port_help() { 3954 PKGHANDLER_COMMAND="" 3955 } 3956 3957 pkgutil_help() { 3958 PKGHANDLER_COMMAND="" 3959 } 3960 3961 pkgadd_help() { 3962 PKGHANDLER_COMMAND="" 3963 } 3964 3965 # This function will check if we're called from the "configure" wrapper while 3966 # printing --help. If so, we will print out additional information that can 3967 # only be extracted within the autoconf script, and then exit. This must be 3968 # called at the very beginning in configure.ac. 3969 3970 3971 3972 3973 # 3974 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3975 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3976 # 3977 # This code is free software; you can redistribute it and/or modify it 3978 # under the terms of the GNU General Public License version 2 only, as 3979 # published by the Free Software Foundation. Oracle designates this 3980 # particular file as subject to the "Classpath" exception as provided 3981 # by Oracle in the LICENSE file that accompanied this code. 3982 # 3983 # This code is distributed in the hope that it will be useful, but WITHOUT 3984 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3985 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3986 # version 2 for more details (a copy is included in the LICENSE file that 3987 # accompanied this code). 3988 # 3989 # You should have received a copy of the GNU General Public License version 3990 # 2 along with this work; if not, write to the Free Software Foundation, 3991 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3992 # 3993 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3994 # or visit www.oracle.com if you need additional information or have any 3995 # questions. 3996 # 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 ############################################################################### 4008 # 4009 # Should we build only OpenJDK even if closed sources are present? 4010 # 4011 4012 4013 4014 4015 ############################################################################### 4016 # 4017 # Setup version numbers 4018 # 4019 4020 4021 4022 4023 4024 4025 # 4026 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 4027 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4028 # 4029 # This code is free software; you can redistribute it and/or modify it 4030 # under the terms of the GNU General Public License version 2 only, as 4031 # published by the Free Software Foundation. Oracle designates this 4032 # particular file as subject to the "Classpath" exception as provided 4033 # by Oracle in the LICENSE file that accompanied this code. 4034 # 4035 # This code is distributed in the hope that it will be useful, but WITHOUT 4036 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4037 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4038 # version 2 for more details (a copy is included in the LICENSE file that 4039 # accompanied this code). 4040 # 4041 # You should have received a copy of the GNU General Public License version 4042 # 2 along with this work; if not, write to the Free Software Foundation, 4043 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4044 # 4045 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4046 # or visit www.oracle.com if you need additional information or have any 4047 # questions. 4048 # 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 # 4071 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4072 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4073 # 4074 # This code is free software; you can redistribute it and/or modify it 4075 # under the terms of the GNU General Public License version 2 only, as 4076 # published by the Free Software Foundation. Oracle designates this 4077 # particular file as subject to the "Classpath" exception as provided 4078 # by Oracle in the LICENSE file that accompanied this code. 4079 # 4080 # This code is distributed in the hope that it will be useful, but WITHOUT 4081 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4082 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4083 # version 2 for more details (a copy is included in the LICENSE file that 4084 # accompanied this code). 4085 # 4086 # You should have received a copy of the GNU General Public License version 4087 # 2 along with this work; if not, write to the Free Software Foundation, 4088 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4089 # 4090 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4091 # or visit www.oracle.com if you need additional information or have any 4092 # questions. 4093 # 4094 4095 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4096 # Converts autoconf style CPU name to OpenJDK style, into 4097 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4098 4099 4100 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4101 # Converts autoconf style OS name to OpenJDK style, into 4102 # VAR_OS and VAR_OS_API. 4103 4104 4105 # Expects $host_os $host_cpu $build_os and $build_cpu 4106 # and $with_target_bits to have been setup! 4107 # 4108 # Translate the standard triplet(quadruplet) definition 4109 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4110 # OPENJDK_BUILD_OS, etc. 4111 4112 4113 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4114 # accordingly. Must be done after setting up build and target system, but before 4115 # doing anything else with these values. 4116 4117 4118 # Setup the legacy variables, for controlling the old makefiles. 4119 # 4120 4121 4122 4123 4124 #%%% Build and target systems %%% 4125 4126 4127 4128 4129 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4130 # Add -mX to various FLAGS variables. 4131 4132 4133 4134 4135 4136 4137 # 4138 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4139 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4140 # 4141 # This code is free software; you can redistribute it and/or modify it 4142 # under the terms of the GNU General Public License version 2 only, as 4143 # published by the Free Software Foundation. Oracle designates this 4144 # particular file as subject to the "Classpath" exception as provided 4145 # by Oracle in the LICENSE file that accompanied this code. 4146 # 4147 # This code is distributed in the hope that it will be useful, but WITHOUT 4148 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4149 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4150 # version 2 for more details (a copy is included in the LICENSE file that 4151 # accompanied this code). 4152 # 4153 # You should have received a copy of the GNU General Public License version 4154 # 2 along with this work; if not, write to the Free Software Foundation, 4155 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4156 # 4157 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4158 # or visit www.oracle.com if you need additional information or have any 4159 # questions. 4160 # 4161 4162 4163 4164 4165 4166 4167 4168 4169 # 4170 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 4171 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4172 # 4173 # This code is free software; you can redistribute it and/or modify it 4174 # under the terms of the GNU General Public License version 2 only, as 4175 # published by the Free Software Foundation. Oracle designates this 4176 # particular file as subject to the "Classpath" exception as provided 4177 # by Oracle in the LICENSE file that accompanied this code. 4178 # 4179 # This code is distributed in the hope that it will be useful, but WITHOUT 4180 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4181 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4182 # version 2 for more details (a copy is included in the LICENSE file that 4183 # accompanied this code). 4184 # 4185 # You should have received a copy of the GNU General Public License version 4186 # 2 along with this work; if not, write to the Free Software Foundation, 4187 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4188 # 4189 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4190 # or visit www.oracle.com if you need additional information or have any 4191 # questions. 4192 # 4193 4194 ######################################################################## 4195 # This file is responsible for detecting, verifying and setting up the 4196 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4197 # proper paths to the binaries, but it will not setup any flags. 4198 # 4199 # The binaries used is determined by the toolchain type, which is the family of 4200 # compilers and related tools that are used. 4201 ######################################################################## 4202 4203 4204 # All valid toolchains, regardless of platform (used by help.m4) 4205 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4206 4207 # These toolchains are valid on different platforms 4208 VALID_TOOLCHAINS_linux="gcc clang" 4209 VALID_TOOLCHAINS_solaris="solstudio" 4210 VALID_TOOLCHAINS_macosx="gcc clang" 4211 VALID_TOOLCHAINS_aix="xlc" 4212 VALID_TOOLCHAINS_windows="microsoft" 4213 4214 # Toolchain descriptions 4215 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4216 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4217 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4218 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4219 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4220 4221 # Setup a number of variables describing how native output files are 4222 # named on this platform/toolchain. 4223 4224 4225 # Determine which toolchain type to use, and make sure it is valid for this 4226 # platform. Setup various information about the selected toolchain. 4227 4228 4229 # Before we start detecting the toolchain executables, we might need some 4230 # special setup, e.g. additional paths etc. 4231 4232 4233 # Restore path, etc 4234 4235 4236 # Check if a compiler is of the toolchain type we expect, and save the version 4237 # information from it. If the compiler does not match the expected type, 4238 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4239 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4240 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4241 # 4242 # $1 = compiler to test (CC or CXX) 4243 # $2 = human readable name of compiler (C or C++) 4244 4245 4246 # Try to locate the given C or C++ compiler in the path, or otherwise. 4247 # 4248 # $1 = compiler to test (CC or CXX) 4249 # $2 = human readable name of compiler (C or C++) 4250 # $3 = list of compiler names to search for 4251 4252 4253 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4254 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4255 # archiver (AR). Verify that the compilers are correct according to the 4256 # toolchain type. 4257 4258 4259 # Setup additional tools that is considered a part of the toolchain, but not the 4260 # core part. Many of these are highly platform-specific and do not exist, 4261 # and/or are not needed on all platforms. 4262 4263 4264 # Setup the build tools (i.e, the compiler and linker used to build programs 4265 # that should be run on the build platform, not the target platform, as a build 4266 # helper). Since the non-cross-compile case uses the normal, target compilers 4267 # for this, we can only do this after these have been setup. 4268 4269 4270 # Setup legacy variables that are still needed as alternative ways to refer to 4271 # parts of the toolchain. 4272 4273 4274 # Do some additional checks on the detected tools. 4275 4276 4277 # Setup the JTReg Regression Test Harness. 4278 4279 4280 # 4281 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4282 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4283 # 4284 # This code is free software; you can redistribute it and/or modify it 4285 # under the terms of the GNU General Public License version 2 only, as 4286 # published by the Free Software Foundation. Oracle designates this 4287 # particular file as subject to the "Classpath" exception as provided 4288 # by Oracle in the LICENSE file that accompanied this code. 4289 # 4290 # This code is distributed in the hope that it will be useful, but WITHOUT 4291 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4292 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4293 # version 2 for more details (a copy is included in the LICENSE file that 4294 # accompanied this code). 4295 # 4296 # You should have received a copy of the GNU General Public License version 4297 # 2 along with this work; if not, write to the Free Software Foundation, 4298 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4299 # 4300 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4301 # or visit www.oracle.com if you need additional information or have any 4302 # questions. 4303 # 4304 4305 4306 4307 4308 4309 4310 4311 # Check if the VS env variables were setup prior to running configure. 4312 # If not, then find vcvarsall.bat and run it automatically, and integrate 4313 # the set env variables into the spec file. 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 # This line needs to be here, verbatim, after all includes and the dummy hook 4326 # definitions. It is replaced with custom functionality when building 4327 # custom sources. 4328 #CUSTOM_AUTOCONF_INCLUDE 4329 4330 # Do not change or remove the following line, it is needed for consistency checks: 4331 DATE_WHEN_GENERATED=1415912524 4332 4333 ############################################################################### 4334 # 4335 # Initialization / Boot-strapping 4336 # 4337 # The bootstrapping process needs to solve the "chicken or the egg" problem, 4338 # thus it jumps back and forth, each time gaining something needed later on. 4339 # 4340 ############################################################################### 4341 4342 # If we are requested to print additional help, do that and then exit. 4343 # This must be the very first call. 4344 4345 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then 4346 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 4347 $PRINTF "Which are valid to use depends on the build platform.\n" 4348 for toolchain in $VALID_TOOLCHAINS_all; do 4349 # Use indirect variable referencing 4350 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 4351 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 4352 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 4353 done 4354 4355 # And now exit directly 4356 exit 0 4357 fi 4358 4359 4360 # Basic initialization that must happen first of all in the normal process. 4361 4362 # Save the original command line. This is passed to us by the wrapper configure script. 4363 4364 DATE_WHEN_CONFIGURED=`LANG=C date` 4365 4366 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 4367 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 4368 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 4369 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 4370 4371 4372 # Start with tools that do not need have cross compilation support 4373 # and can be expected to be found in the default PATH. These tools are 4374 # used by configure. Nor are these tools expected to be found in the 4375 # devkit from the builddeps server either, since they are 4376 # needed to download the devkit. 4377 4378 # First are all the simple required tools. 4379 4380 4381 4382 # Publish this variable in the help. 4383 4384 4385 if test "x$BASENAME" = x; then 4386 # The variable is not set by user, try to locate tool using the code snippet 4387 for ac_prog in basename 4388 do 4389 # Extract the first word of "$ac_prog", so it can be a program name with args. 4390 set dummy $ac_prog; ac_word=$2 4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4392 $as_echo_n "checking for $ac_word... " >&6; } 4393 if ${ac_cv_path_BASENAME+:} false; then : 4394 $as_echo_n "(cached) " >&6 4395 else 4396 case $BASENAME in 4397 [\\/]* | ?:[\\/]*) 4398 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4399 ;; 4400 *) 4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4402 for as_dir in $PATH 4403 do 4404 IFS=$as_save_IFS 4405 test -z "$as_dir" && as_dir=. 4406 for ac_exec_ext in '' $ac_executable_extensions; do 4407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4408 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4410 break 2 4411 fi 4412 done 4413 done 4414 IFS=$as_save_IFS 4415 4416 ;; 4417 esac 4418 fi 4419 BASENAME=$ac_cv_path_BASENAME 4420 if test -n "$BASENAME"; then 4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4422 $as_echo "$BASENAME" >&6; } 4423 else 4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4425 $as_echo "no" >&6; } 4426 fi 4427 4428 4429 test -n "$BASENAME" && break 4430 done 4431 4432 else 4433 # The variable is set, but is it from the command line or the environment? 4434 4435 # Try to remove the string !BASENAME! from our list. 4436 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 4437 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4438 # If it failed, the variable was not from the command line. Ignore it, 4439 # but warn the user (except for BASH, which is always set by the calling BASH). 4440 if test "xBASENAME" != xBASH; then 4441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 4442 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 4443 fi 4444 # Try to locate tool using the code snippet 4445 for ac_prog in basename 4446 do 4447 # Extract the first word of "$ac_prog", so it can be a program name with args. 4448 set dummy $ac_prog; ac_word=$2 4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4450 $as_echo_n "checking for $ac_word... " >&6; } 4451 if ${ac_cv_path_BASENAME+:} false; then : 4452 $as_echo_n "(cached) " >&6 4453 else 4454 case $BASENAME in 4455 [\\/]* | ?:[\\/]*) 4456 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4457 ;; 4458 *) 4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4460 for as_dir in $PATH 4461 do 4462 IFS=$as_save_IFS 4463 test -z "$as_dir" && as_dir=. 4464 for ac_exec_ext in '' $ac_executable_extensions; do 4465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4466 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4468 break 2 4469 fi 4470 done 4471 done 4472 IFS=$as_save_IFS 4473 4474 ;; 4475 esac 4476 fi 4477 BASENAME=$ac_cv_path_BASENAME 4478 if test -n "$BASENAME"; then 4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4480 $as_echo "$BASENAME" >&6; } 4481 else 4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4483 $as_echo "no" >&6; } 4484 fi 4485 4486 4487 test -n "$BASENAME" && break 4488 done 4489 4490 else 4491 # If it succeeded, then it was overridden by the user. We will use it 4492 # for the tool. 4493 4494 # First remove it from the list of overridden variables, so we can test 4495 # for unknown variables in the end. 4496 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4497 4498 # Check if the provided tool contains a complete path. 4499 tool_specified="$BASENAME" 4500 tool_basename="${tool_specified##*/}" 4501 if test "x$tool_basename" = "x$tool_specified"; then 4502 # A command without a complete path is provided, search $PATH. 4503 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 4504 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 4505 # Extract the first word of "$tool_basename", so it can be a program name with args. 4506 set dummy $tool_basename; ac_word=$2 4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4508 $as_echo_n "checking for $ac_word... " >&6; } 4509 if ${ac_cv_path_BASENAME+:} false; then : 4510 $as_echo_n "(cached) " >&6 4511 else 4512 case $BASENAME in 4513 [\\/]* | ?:[\\/]*) 4514 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4515 ;; 4516 *) 4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4518 for as_dir in $PATH 4519 do 4520 IFS=$as_save_IFS 4521 test -z "$as_dir" && as_dir=. 4522 for ac_exec_ext in '' $ac_executable_extensions; do 4523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4524 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4526 break 2 4527 fi 4528 done 4529 done 4530 IFS=$as_save_IFS 4531 4532 ;; 4533 esac 4534 fi 4535 BASENAME=$ac_cv_path_BASENAME 4536 if test -n "$BASENAME"; then 4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4538 $as_echo "$BASENAME" >&6; } 4539 else 4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4541 $as_echo "no" >&6; } 4542 fi 4543 4544 4545 if test "x$BASENAME" = x; then 4546 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4547 fi 4548 else 4549 # Otherwise we believe it is a complete path. Use it as it is. 4550 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 4551 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 4553 $as_echo_n "checking for BASENAME... " >&6; } 4554 if test ! -x "$tool_specified"; then 4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4556 $as_echo "not found" >&6; } 4557 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 4558 fi 4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4560 $as_echo "$tool_specified" >&6; } 4561 fi 4562 fi 4563 fi 4564 4565 4566 4567 if test "x$BASENAME" = x; then 4568 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 4569 fi 4570 4571 4572 4573 4574 4575 # Publish this variable in the help. 4576 4577 4578 if test "x$BASH" = x; then 4579 # The variable is not set by user, try to locate tool using the code snippet 4580 for ac_prog in bash 4581 do 4582 # Extract the first word of "$ac_prog", so it can be a program name with args. 4583 set dummy $ac_prog; ac_word=$2 4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4585 $as_echo_n "checking for $ac_word... " >&6; } 4586 if ${ac_cv_path_BASH+:} false; then : 4587 $as_echo_n "(cached) " >&6 4588 else 4589 case $BASH in 4590 [\\/]* | ?:[\\/]*) 4591 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4592 ;; 4593 *) 4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4595 for as_dir in $PATH 4596 do 4597 IFS=$as_save_IFS 4598 test -z "$as_dir" && as_dir=. 4599 for ac_exec_ext in '' $ac_executable_extensions; do 4600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4601 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4603 break 2 4604 fi 4605 done 4606 done 4607 IFS=$as_save_IFS 4608 4609 ;; 4610 esac 4611 fi 4612 BASH=$ac_cv_path_BASH 4613 if test -n "$BASH"; then 4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4615 $as_echo "$BASH" >&6; } 4616 else 4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4618 $as_echo "no" >&6; } 4619 fi 4620 4621 4622 test -n "$BASH" && break 4623 done 4624 4625 else 4626 # The variable is set, but is it from the command line or the environment? 4627 4628 # Try to remove the string !BASH! from our list. 4629 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 4630 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4631 # If it failed, the variable was not from the command line. Ignore it, 4632 # but warn the user (except for BASH, which is always set by the calling BASH). 4633 if test "xBASH" != xBASH; then 4634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 4635 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 4636 fi 4637 # Try to locate tool using the code snippet 4638 for ac_prog in bash 4639 do 4640 # Extract the first word of "$ac_prog", so it can be a program name with args. 4641 set dummy $ac_prog; ac_word=$2 4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4643 $as_echo_n "checking for $ac_word... " >&6; } 4644 if ${ac_cv_path_BASH+:} false; then : 4645 $as_echo_n "(cached) " >&6 4646 else 4647 case $BASH in 4648 [\\/]* | ?:[\\/]*) 4649 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4650 ;; 4651 *) 4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4653 for as_dir in $PATH 4654 do 4655 IFS=$as_save_IFS 4656 test -z "$as_dir" && as_dir=. 4657 for ac_exec_ext in '' $ac_executable_extensions; do 4658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4659 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4661 break 2 4662 fi 4663 done 4664 done 4665 IFS=$as_save_IFS 4666 4667 ;; 4668 esac 4669 fi 4670 BASH=$ac_cv_path_BASH 4671 if test -n "$BASH"; then 4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4673 $as_echo "$BASH" >&6; } 4674 else 4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4676 $as_echo "no" >&6; } 4677 fi 4678 4679 4680 test -n "$BASH" && break 4681 done 4682 4683 else 4684 # If it succeeded, then it was overridden by the user. We will use it 4685 # for the tool. 4686 4687 # First remove it from the list of overridden variables, so we can test 4688 # for unknown variables in the end. 4689 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4690 4691 # Check if the provided tool contains a complete path. 4692 tool_specified="$BASH" 4693 tool_basename="${tool_specified##*/}" 4694 if test "x$tool_basename" = "x$tool_specified"; then 4695 # A command without a complete path is provided, search $PATH. 4696 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 4697 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 4698 # Extract the first word of "$tool_basename", so it can be a program name with args. 4699 set dummy $tool_basename; ac_word=$2 4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4701 $as_echo_n "checking for $ac_word... " >&6; } 4702 if ${ac_cv_path_BASH+:} false; then : 4703 $as_echo_n "(cached) " >&6 4704 else 4705 case $BASH in 4706 [\\/]* | ?:[\\/]*) 4707 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4708 ;; 4709 *) 4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4711 for as_dir in $PATH 4712 do 4713 IFS=$as_save_IFS 4714 test -z "$as_dir" && as_dir=. 4715 for ac_exec_ext in '' $ac_executable_extensions; do 4716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4717 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4719 break 2 4720 fi 4721 done 4722 done 4723 IFS=$as_save_IFS 4724 4725 ;; 4726 esac 4727 fi 4728 BASH=$ac_cv_path_BASH 4729 if test -n "$BASH"; then 4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4731 $as_echo "$BASH" >&6; } 4732 else 4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4734 $as_echo "no" >&6; } 4735 fi 4736 4737 4738 if test "x$BASH" = x; then 4739 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4740 fi 4741 else 4742 # Otherwise we believe it is a complete path. Use it as it is. 4743 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 4744 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 4746 $as_echo_n "checking for BASH... " >&6; } 4747 if test ! -x "$tool_specified"; then 4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4749 $as_echo "not found" >&6; } 4750 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 4751 fi 4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4753 $as_echo "$tool_specified" >&6; } 4754 fi 4755 fi 4756 fi 4757 4758 4759 4760 if test "x$BASH" = x; then 4761 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 4762 fi 4763 4764 4765 4766 4767 4768 # Publish this variable in the help. 4769 4770 4771 if test "x$CAT" = x; then 4772 # The variable is not set by user, try to locate tool using the code snippet 4773 for ac_prog in cat 4774 do 4775 # Extract the first word of "$ac_prog", so it can be a program name with args. 4776 set dummy $ac_prog; ac_word=$2 4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4778 $as_echo_n "checking for $ac_word... " >&6; } 4779 if ${ac_cv_path_CAT+:} false; then : 4780 $as_echo_n "(cached) " >&6 4781 else 4782 case $CAT in 4783 [\\/]* | ?:[\\/]*) 4784 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4785 ;; 4786 *) 4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4788 for as_dir in $PATH 4789 do 4790 IFS=$as_save_IFS 4791 test -z "$as_dir" && as_dir=. 4792 for ac_exec_ext in '' $ac_executable_extensions; do 4793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4794 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4796 break 2 4797 fi 4798 done 4799 done 4800 IFS=$as_save_IFS 4801 4802 ;; 4803 esac 4804 fi 4805 CAT=$ac_cv_path_CAT 4806 if test -n "$CAT"; then 4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4808 $as_echo "$CAT" >&6; } 4809 else 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4811 $as_echo "no" >&6; } 4812 fi 4813 4814 4815 test -n "$CAT" && break 4816 done 4817 4818 else 4819 # The variable is set, but is it from the command line or the environment? 4820 4821 # Try to remove the string !CAT! from our list. 4822 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 4823 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4824 # If it failed, the variable was not from the command line. Ignore it, 4825 # but warn the user (except for BASH, which is always set by the calling BASH). 4826 if test "xCAT" != xBASH; then 4827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 4828 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 4829 fi 4830 # Try to locate tool using the code snippet 4831 for ac_prog in cat 4832 do 4833 # Extract the first word of "$ac_prog", so it can be a program name with args. 4834 set dummy $ac_prog; ac_word=$2 4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4836 $as_echo_n "checking for $ac_word... " >&6; } 4837 if ${ac_cv_path_CAT+:} false; then : 4838 $as_echo_n "(cached) " >&6 4839 else 4840 case $CAT in 4841 [\\/]* | ?:[\\/]*) 4842 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4843 ;; 4844 *) 4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4846 for as_dir in $PATH 4847 do 4848 IFS=$as_save_IFS 4849 test -z "$as_dir" && as_dir=. 4850 for ac_exec_ext in '' $ac_executable_extensions; do 4851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4852 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4854 break 2 4855 fi 4856 done 4857 done 4858 IFS=$as_save_IFS 4859 4860 ;; 4861 esac 4862 fi 4863 CAT=$ac_cv_path_CAT 4864 if test -n "$CAT"; then 4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4866 $as_echo "$CAT" >&6; } 4867 else 4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4869 $as_echo "no" >&6; } 4870 fi 4871 4872 4873 test -n "$CAT" && break 4874 done 4875 4876 else 4877 # If it succeeded, then it was overridden by the user. We will use it 4878 # for the tool. 4879 4880 # First remove it from the list of overridden variables, so we can test 4881 # for unknown variables in the end. 4882 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4883 4884 # Check if the provided tool contains a complete path. 4885 tool_specified="$CAT" 4886 tool_basename="${tool_specified##*/}" 4887 if test "x$tool_basename" = "x$tool_specified"; then 4888 # A command without a complete path is provided, search $PATH. 4889 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 4890 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 4891 # Extract the first word of "$tool_basename", so it can be a program name with args. 4892 set dummy $tool_basename; ac_word=$2 4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4894 $as_echo_n "checking for $ac_word... " >&6; } 4895 if ${ac_cv_path_CAT+:} false; then : 4896 $as_echo_n "(cached) " >&6 4897 else 4898 case $CAT in 4899 [\\/]* | ?:[\\/]*) 4900 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4901 ;; 4902 *) 4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4904 for as_dir in $PATH 4905 do 4906 IFS=$as_save_IFS 4907 test -z "$as_dir" && as_dir=. 4908 for ac_exec_ext in '' $ac_executable_extensions; do 4909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4910 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4912 break 2 4913 fi 4914 done 4915 done 4916 IFS=$as_save_IFS 4917 4918 ;; 4919 esac 4920 fi 4921 CAT=$ac_cv_path_CAT 4922 if test -n "$CAT"; then 4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4924 $as_echo "$CAT" >&6; } 4925 else 4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4927 $as_echo "no" >&6; } 4928 fi 4929 4930 4931 if test "x$CAT" = x; then 4932 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4933 fi 4934 else 4935 # Otherwise we believe it is a complete path. Use it as it is. 4936 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 4937 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 4939 $as_echo_n "checking for CAT... " >&6; } 4940 if test ! -x "$tool_specified"; then 4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4942 $as_echo "not found" >&6; } 4943 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 4944 fi 4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4946 $as_echo "$tool_specified" >&6; } 4947 fi 4948 fi 4949 fi 4950 4951 4952 4953 if test "x$CAT" = x; then 4954 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 4955 fi 4956 4957 4958 4959 4960 4961 # Publish this variable in the help. 4962 4963 4964 if test "x$CHMOD" = x; then 4965 # The variable is not set by user, try to locate tool using the code snippet 4966 for ac_prog in chmod 4967 do 4968 # Extract the first word of "$ac_prog", so it can be a program name with args. 4969 set dummy $ac_prog; ac_word=$2 4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4971 $as_echo_n "checking for $ac_word... " >&6; } 4972 if ${ac_cv_path_CHMOD+:} false; then : 4973 $as_echo_n "(cached) " >&6 4974 else 4975 case $CHMOD in 4976 [\\/]* | ?:[\\/]*) 4977 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 4978 ;; 4979 *) 4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4981 for as_dir in $PATH 4982 do 4983 IFS=$as_save_IFS 4984 test -z "$as_dir" && as_dir=. 4985 for ac_exec_ext in '' $ac_executable_extensions; do 4986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4987 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 4988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4989 break 2 4990 fi 4991 done 4992 done 4993 IFS=$as_save_IFS 4994 4995 ;; 4996 esac 4997 fi 4998 CHMOD=$ac_cv_path_CHMOD 4999 if test -n "$CHMOD"; then 5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5001 $as_echo "$CHMOD" >&6; } 5002 else 5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5004 $as_echo "no" >&6; } 5005 fi 5006 5007 5008 test -n "$CHMOD" && break 5009 done 5010 5011 else 5012 # The variable is set, but is it from the command line or the environment? 5013 5014 # Try to remove the string !CHMOD! from our list. 5015 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5016 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5017 # If it failed, the variable was not from the command line. Ignore it, 5018 # but warn the user (except for BASH, which is always set by the calling BASH). 5019 if test "xCHMOD" != xBASH; then 5020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5021 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5022 fi 5023 # Try to locate tool using the code snippet 5024 for ac_prog in chmod 5025 do 5026 # Extract the first word of "$ac_prog", so it can be a program name with args. 5027 set dummy $ac_prog; ac_word=$2 5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5029 $as_echo_n "checking for $ac_word... " >&6; } 5030 if ${ac_cv_path_CHMOD+:} false; then : 5031 $as_echo_n "(cached) " >&6 5032 else 5033 case $CHMOD in 5034 [\\/]* | ?:[\\/]*) 5035 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5036 ;; 5037 *) 5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5039 for as_dir in $PATH 5040 do 5041 IFS=$as_save_IFS 5042 test -z "$as_dir" && as_dir=. 5043 for ac_exec_ext in '' $ac_executable_extensions; do 5044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5045 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5047 break 2 5048 fi 5049 done 5050 done 5051 IFS=$as_save_IFS 5052 5053 ;; 5054 esac 5055 fi 5056 CHMOD=$ac_cv_path_CHMOD 5057 if test -n "$CHMOD"; then 5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5059 $as_echo "$CHMOD" >&6; } 5060 else 5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5062 $as_echo "no" >&6; } 5063 fi 5064 5065 5066 test -n "$CHMOD" && break 5067 done 5068 5069 else 5070 # If it succeeded, then it was overridden by the user. We will use it 5071 # for the tool. 5072 5073 # First remove it from the list of overridden variables, so we can test 5074 # for unknown variables in the end. 5075 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5076 5077 # Check if the provided tool contains a complete path. 5078 tool_specified="$CHMOD" 5079 tool_basename="${tool_specified##*/}" 5080 if test "x$tool_basename" = "x$tool_specified"; then 5081 # A command without a complete path is provided, search $PATH. 5082 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5083 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5084 # Extract the first word of "$tool_basename", so it can be a program name with args. 5085 set dummy $tool_basename; ac_word=$2 5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5087 $as_echo_n "checking for $ac_word... " >&6; } 5088 if ${ac_cv_path_CHMOD+:} false; then : 5089 $as_echo_n "(cached) " >&6 5090 else 5091 case $CHMOD in 5092 [\\/]* | ?:[\\/]*) 5093 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5094 ;; 5095 *) 5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5097 for as_dir in $PATH 5098 do 5099 IFS=$as_save_IFS 5100 test -z "$as_dir" && as_dir=. 5101 for ac_exec_ext in '' $ac_executable_extensions; do 5102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5103 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5105 break 2 5106 fi 5107 done 5108 done 5109 IFS=$as_save_IFS 5110 5111 ;; 5112 esac 5113 fi 5114 CHMOD=$ac_cv_path_CHMOD 5115 if test -n "$CHMOD"; then 5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5117 $as_echo "$CHMOD" >&6; } 5118 else 5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5120 $as_echo "no" >&6; } 5121 fi 5122 5123 5124 if test "x$CHMOD" = x; then 5125 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5126 fi 5127 else 5128 # Otherwise we believe it is a complete path. Use it as it is. 5129 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5130 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5132 $as_echo_n "checking for CHMOD... " >&6; } 5133 if test ! -x "$tool_specified"; then 5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5135 $as_echo "not found" >&6; } 5136 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5137 fi 5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5139 $as_echo "$tool_specified" >&6; } 5140 fi 5141 fi 5142 fi 5143 5144 5145 5146 if test "x$CHMOD" = x; then 5147 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5148 fi 5149 5150 5151 5152 5153 5154 # Publish this variable in the help. 5155 5156 5157 if test "x$CMP" = x; then 5158 # The variable is not set by user, try to locate tool using the code snippet 5159 for ac_prog in cmp 5160 do 5161 # Extract the first word of "$ac_prog", so it can be a program name with args. 5162 set dummy $ac_prog; ac_word=$2 5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5164 $as_echo_n "checking for $ac_word... " >&6; } 5165 if ${ac_cv_path_CMP+:} false; then : 5166 $as_echo_n "(cached) " >&6 5167 else 5168 case $CMP in 5169 [\\/]* | ?:[\\/]*) 5170 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5171 ;; 5172 *) 5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5174 for as_dir in $PATH 5175 do 5176 IFS=$as_save_IFS 5177 test -z "$as_dir" && as_dir=. 5178 for ac_exec_ext in '' $ac_executable_extensions; do 5179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5180 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5182 break 2 5183 fi 5184 done 5185 done 5186 IFS=$as_save_IFS 5187 5188 ;; 5189 esac 5190 fi 5191 CMP=$ac_cv_path_CMP 5192 if test -n "$CMP"; then 5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5194 $as_echo "$CMP" >&6; } 5195 else 5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5197 $as_echo "no" >&6; } 5198 fi 5199 5200 5201 test -n "$CMP" && break 5202 done 5203 5204 else 5205 # The variable is set, but is it from the command line or the environment? 5206 5207 # Try to remove the string !CMP! from our list. 5208 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 5209 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5210 # If it failed, the variable was not from the command line. Ignore it, 5211 # but warn the user (except for BASH, which is always set by the calling BASH). 5212 if test "xCMP" != xBASH; then 5213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 5214 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 5215 fi 5216 # Try to locate tool using the code snippet 5217 for ac_prog in cmp 5218 do 5219 # Extract the first word of "$ac_prog", so it can be a program name with args. 5220 set dummy $ac_prog; ac_word=$2 5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5222 $as_echo_n "checking for $ac_word... " >&6; } 5223 if ${ac_cv_path_CMP+:} false; then : 5224 $as_echo_n "(cached) " >&6 5225 else 5226 case $CMP in 5227 [\\/]* | ?:[\\/]*) 5228 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5229 ;; 5230 *) 5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5232 for as_dir in $PATH 5233 do 5234 IFS=$as_save_IFS 5235 test -z "$as_dir" && as_dir=. 5236 for ac_exec_ext in '' $ac_executable_extensions; do 5237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5238 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5240 break 2 5241 fi 5242 done 5243 done 5244 IFS=$as_save_IFS 5245 5246 ;; 5247 esac 5248 fi 5249 CMP=$ac_cv_path_CMP 5250 if test -n "$CMP"; then 5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5252 $as_echo "$CMP" >&6; } 5253 else 5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5255 $as_echo "no" >&6; } 5256 fi 5257 5258 5259 test -n "$CMP" && break 5260 done 5261 5262 else 5263 # If it succeeded, then it was overridden by the user. We will use it 5264 # for the tool. 5265 5266 # First remove it from the list of overridden variables, so we can test 5267 # for unknown variables in the end. 5268 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5269 5270 # Check if the provided tool contains a complete path. 5271 tool_specified="$CMP" 5272 tool_basename="${tool_specified##*/}" 5273 if test "x$tool_basename" = "x$tool_specified"; then 5274 # A command without a complete path is provided, search $PATH. 5275 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 5276 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 5277 # Extract the first word of "$tool_basename", so it can be a program name with args. 5278 set dummy $tool_basename; ac_word=$2 5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5280 $as_echo_n "checking for $ac_word... " >&6; } 5281 if ${ac_cv_path_CMP+:} false; then : 5282 $as_echo_n "(cached) " >&6 5283 else 5284 case $CMP in 5285 [\\/]* | ?:[\\/]*) 5286 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5287 ;; 5288 *) 5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5290 for as_dir in $PATH 5291 do 5292 IFS=$as_save_IFS 5293 test -z "$as_dir" && as_dir=. 5294 for ac_exec_ext in '' $ac_executable_extensions; do 5295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5296 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5298 break 2 5299 fi 5300 done 5301 done 5302 IFS=$as_save_IFS 5303 5304 ;; 5305 esac 5306 fi 5307 CMP=$ac_cv_path_CMP 5308 if test -n "$CMP"; then 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5310 $as_echo "$CMP" >&6; } 5311 else 5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5313 $as_echo "no" >&6; } 5314 fi 5315 5316 5317 if test "x$CMP" = x; then 5318 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5319 fi 5320 else 5321 # Otherwise we believe it is a complete path. Use it as it is. 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 5323 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5325 $as_echo_n "checking for CMP... " >&6; } 5326 if test ! -x "$tool_specified"; then 5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5328 $as_echo "not found" >&6; } 5329 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 5330 fi 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5332 $as_echo "$tool_specified" >&6; } 5333 fi 5334 fi 5335 fi 5336 5337 5338 5339 if test "x$CMP" = x; then 5340 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 5341 fi 5342 5343 5344 5345 5346 5347 # Publish this variable in the help. 5348 5349 5350 if test "x$COMM" = x; then 5351 # The variable is not set by user, try to locate tool using the code snippet 5352 for ac_prog in comm 5353 do 5354 # Extract the first word of "$ac_prog", so it can be a program name with args. 5355 set dummy $ac_prog; ac_word=$2 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5357 $as_echo_n "checking for $ac_word... " >&6; } 5358 if ${ac_cv_path_COMM+:} false; then : 5359 $as_echo_n "(cached) " >&6 5360 else 5361 case $COMM in 5362 [\\/]* | ?:[\\/]*) 5363 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5364 ;; 5365 *) 5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5367 for as_dir in $PATH 5368 do 5369 IFS=$as_save_IFS 5370 test -z "$as_dir" && as_dir=. 5371 for ac_exec_ext in '' $ac_executable_extensions; do 5372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5373 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5375 break 2 5376 fi 5377 done 5378 done 5379 IFS=$as_save_IFS 5380 5381 ;; 5382 esac 5383 fi 5384 COMM=$ac_cv_path_COMM 5385 if test -n "$COMM"; then 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5387 $as_echo "$COMM" >&6; } 5388 else 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5390 $as_echo "no" >&6; } 5391 fi 5392 5393 5394 test -n "$COMM" && break 5395 done 5396 5397 else 5398 # The variable is set, but is it from the command line or the environment? 5399 5400 # Try to remove the string !COMM! from our list. 5401 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 5402 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5403 # If it failed, the variable was not from the command line. Ignore it, 5404 # but warn the user (except for BASH, which is always set by the calling BASH). 5405 if test "xCOMM" != xBASH; then 5406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 5407 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 5408 fi 5409 # Try to locate tool using the code snippet 5410 for ac_prog in comm 5411 do 5412 # Extract the first word of "$ac_prog", so it can be a program name with args. 5413 set dummy $ac_prog; ac_word=$2 5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5415 $as_echo_n "checking for $ac_word... " >&6; } 5416 if ${ac_cv_path_COMM+:} false; then : 5417 $as_echo_n "(cached) " >&6 5418 else 5419 case $COMM in 5420 [\\/]* | ?:[\\/]*) 5421 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5422 ;; 5423 *) 5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5425 for as_dir in $PATH 5426 do 5427 IFS=$as_save_IFS 5428 test -z "$as_dir" && as_dir=. 5429 for ac_exec_ext in '' $ac_executable_extensions; do 5430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5431 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5433 break 2 5434 fi 5435 done 5436 done 5437 IFS=$as_save_IFS 5438 5439 ;; 5440 esac 5441 fi 5442 COMM=$ac_cv_path_COMM 5443 if test -n "$COMM"; then 5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5445 $as_echo "$COMM" >&6; } 5446 else 5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5448 $as_echo "no" >&6; } 5449 fi 5450 5451 5452 test -n "$COMM" && break 5453 done 5454 5455 else 5456 # If it succeeded, then it was overridden by the user. We will use it 5457 # for the tool. 5458 5459 # First remove it from the list of overridden variables, so we can test 5460 # for unknown variables in the end. 5461 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5462 5463 # Check if the provided tool contains a complete path. 5464 tool_specified="$COMM" 5465 tool_basename="${tool_specified##*/}" 5466 if test "x$tool_basename" = "x$tool_specified"; then 5467 # A command without a complete path is provided, search $PATH. 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 5469 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 5470 # Extract the first word of "$tool_basename", so it can be a program name with args. 5471 set dummy $tool_basename; ac_word=$2 5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5473 $as_echo_n "checking for $ac_word... " >&6; } 5474 if ${ac_cv_path_COMM+:} false; then : 5475 $as_echo_n "(cached) " >&6 5476 else 5477 case $COMM in 5478 [\\/]* | ?:[\\/]*) 5479 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5480 ;; 5481 *) 5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5483 for as_dir in $PATH 5484 do 5485 IFS=$as_save_IFS 5486 test -z "$as_dir" && as_dir=. 5487 for ac_exec_ext in '' $ac_executable_extensions; do 5488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5489 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5491 break 2 5492 fi 5493 done 5494 done 5495 IFS=$as_save_IFS 5496 5497 ;; 5498 esac 5499 fi 5500 COMM=$ac_cv_path_COMM 5501 if test -n "$COMM"; then 5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5503 $as_echo "$COMM" >&6; } 5504 else 5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5506 $as_echo "no" >&6; } 5507 fi 5508 5509 5510 if test "x$COMM" = x; then 5511 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5512 fi 5513 else 5514 # Otherwise we believe it is a complete path. Use it as it is. 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 5516 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 5518 $as_echo_n "checking for COMM... " >&6; } 5519 if test ! -x "$tool_specified"; then 5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5521 $as_echo "not found" >&6; } 5522 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 5523 fi 5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5525 $as_echo "$tool_specified" >&6; } 5526 fi 5527 fi 5528 fi 5529 5530 5531 5532 if test "x$COMM" = x; then 5533 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 5534 fi 5535 5536 5537 5538 5539 5540 # Publish this variable in the help. 5541 5542 5543 if test "x$CP" = x; then 5544 # The variable is not set by user, try to locate tool using the code snippet 5545 for ac_prog in cp 5546 do 5547 # Extract the first word of "$ac_prog", so it can be a program name with args. 5548 set dummy $ac_prog; ac_word=$2 5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5550 $as_echo_n "checking for $ac_word... " >&6; } 5551 if ${ac_cv_path_CP+:} false; then : 5552 $as_echo_n "(cached) " >&6 5553 else 5554 case $CP in 5555 [\\/]* | ?:[\\/]*) 5556 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5557 ;; 5558 *) 5559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5560 for as_dir in $PATH 5561 do 5562 IFS=$as_save_IFS 5563 test -z "$as_dir" && as_dir=. 5564 for ac_exec_ext in '' $ac_executable_extensions; do 5565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5566 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5568 break 2 5569 fi 5570 done 5571 done 5572 IFS=$as_save_IFS 5573 5574 ;; 5575 esac 5576 fi 5577 CP=$ac_cv_path_CP 5578 if test -n "$CP"; then 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5580 $as_echo "$CP" >&6; } 5581 else 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5583 $as_echo "no" >&6; } 5584 fi 5585 5586 5587 test -n "$CP" && break 5588 done 5589 5590 else 5591 # The variable is set, but is it from the command line or the environment? 5592 5593 # Try to remove the string !CP! from our list. 5594 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 5595 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5596 # If it failed, the variable was not from the command line. Ignore it, 5597 # but warn the user (except for BASH, which is always set by the calling BASH). 5598 if test "xCP" != xBASH; then 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 5600 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 5601 fi 5602 # Try to locate tool using the code snippet 5603 for ac_prog in cp 5604 do 5605 # Extract the first word of "$ac_prog", so it can be a program name with args. 5606 set dummy $ac_prog; ac_word=$2 5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5608 $as_echo_n "checking for $ac_word... " >&6; } 5609 if ${ac_cv_path_CP+:} false; then : 5610 $as_echo_n "(cached) " >&6 5611 else 5612 case $CP in 5613 [\\/]* | ?:[\\/]*) 5614 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5615 ;; 5616 *) 5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5618 for as_dir in $PATH 5619 do 5620 IFS=$as_save_IFS 5621 test -z "$as_dir" && as_dir=. 5622 for ac_exec_ext in '' $ac_executable_extensions; do 5623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5624 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5626 break 2 5627 fi 5628 done 5629 done 5630 IFS=$as_save_IFS 5631 5632 ;; 5633 esac 5634 fi 5635 CP=$ac_cv_path_CP 5636 if test -n "$CP"; then 5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5638 $as_echo "$CP" >&6; } 5639 else 5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5641 $as_echo "no" >&6; } 5642 fi 5643 5644 5645 test -n "$CP" && break 5646 done 5647 5648 else 5649 # If it succeeded, then it was overridden by the user. We will use it 5650 # for the tool. 5651 5652 # First remove it from the list of overridden variables, so we can test 5653 # for unknown variables in the end. 5654 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5655 5656 # Check if the provided tool contains a complete path. 5657 tool_specified="$CP" 5658 tool_basename="${tool_specified##*/}" 5659 if test "x$tool_basename" = "x$tool_specified"; then 5660 # A command without a complete path is provided, search $PATH. 5661 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 5662 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 5663 # Extract the first word of "$tool_basename", so it can be a program name with args. 5664 set dummy $tool_basename; ac_word=$2 5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5666 $as_echo_n "checking for $ac_word... " >&6; } 5667 if ${ac_cv_path_CP+:} false; then : 5668 $as_echo_n "(cached) " >&6 5669 else 5670 case $CP in 5671 [\\/]* | ?:[\\/]*) 5672 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5673 ;; 5674 *) 5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5676 for as_dir in $PATH 5677 do 5678 IFS=$as_save_IFS 5679 test -z "$as_dir" && as_dir=. 5680 for ac_exec_ext in '' $ac_executable_extensions; do 5681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5682 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5684 break 2 5685 fi 5686 done 5687 done 5688 IFS=$as_save_IFS 5689 5690 ;; 5691 esac 5692 fi 5693 CP=$ac_cv_path_CP 5694 if test -n "$CP"; then 5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5696 $as_echo "$CP" >&6; } 5697 else 5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5699 $as_echo "no" >&6; } 5700 fi 5701 5702 5703 if test "x$CP" = x; then 5704 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5705 fi 5706 else 5707 # Otherwise we believe it is a complete path. Use it as it is. 5708 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 5709 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 5711 $as_echo_n "checking for CP... " >&6; } 5712 if test ! -x "$tool_specified"; then 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5714 $as_echo "not found" >&6; } 5715 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 5716 fi 5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5718 $as_echo "$tool_specified" >&6; } 5719 fi 5720 fi 5721 fi 5722 5723 5724 5725 if test "x$CP" = x; then 5726 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 5727 fi 5728 5729 5730 5731 5732 5733 # Publish this variable in the help. 5734 5735 5736 if test "x$CUT" = x; then 5737 # The variable is not set by user, try to locate tool using the code snippet 5738 for ac_prog in cut 5739 do 5740 # Extract the first word of "$ac_prog", so it can be a program name with args. 5741 set dummy $ac_prog; ac_word=$2 5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5743 $as_echo_n "checking for $ac_word... " >&6; } 5744 if ${ac_cv_path_CUT+:} false; then : 5745 $as_echo_n "(cached) " >&6 5746 else 5747 case $CUT in 5748 [\\/]* | ?:[\\/]*) 5749 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5750 ;; 5751 *) 5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5753 for as_dir in $PATH 5754 do 5755 IFS=$as_save_IFS 5756 test -z "$as_dir" && as_dir=. 5757 for ac_exec_ext in '' $ac_executable_extensions; do 5758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5759 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5761 break 2 5762 fi 5763 done 5764 done 5765 IFS=$as_save_IFS 5766 5767 ;; 5768 esac 5769 fi 5770 CUT=$ac_cv_path_CUT 5771 if test -n "$CUT"; then 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5773 $as_echo "$CUT" >&6; } 5774 else 5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5776 $as_echo "no" >&6; } 5777 fi 5778 5779 5780 test -n "$CUT" && break 5781 done 5782 5783 else 5784 # The variable is set, but is it from the command line or the environment? 5785 5786 # Try to remove the string !CUT! from our list. 5787 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 5788 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5789 # If it failed, the variable was not from the command line. Ignore it, 5790 # but warn the user (except for BASH, which is always set by the calling BASH). 5791 if test "xCUT" != xBASH; then 5792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 5793 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 5794 fi 5795 # Try to locate tool using the code snippet 5796 for ac_prog in cut 5797 do 5798 # Extract the first word of "$ac_prog", so it can be a program name with args. 5799 set dummy $ac_prog; ac_word=$2 5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5801 $as_echo_n "checking for $ac_word... " >&6; } 5802 if ${ac_cv_path_CUT+:} false; then : 5803 $as_echo_n "(cached) " >&6 5804 else 5805 case $CUT in 5806 [\\/]* | ?:[\\/]*) 5807 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5808 ;; 5809 *) 5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5811 for as_dir in $PATH 5812 do 5813 IFS=$as_save_IFS 5814 test -z "$as_dir" && as_dir=. 5815 for ac_exec_ext in '' $ac_executable_extensions; do 5816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5817 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5819 break 2 5820 fi 5821 done 5822 done 5823 IFS=$as_save_IFS 5824 5825 ;; 5826 esac 5827 fi 5828 CUT=$ac_cv_path_CUT 5829 if test -n "$CUT"; then 5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5831 $as_echo "$CUT" >&6; } 5832 else 5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5834 $as_echo "no" >&6; } 5835 fi 5836 5837 5838 test -n "$CUT" && break 5839 done 5840 5841 else 5842 # If it succeeded, then it was overridden by the user. We will use it 5843 # for the tool. 5844 5845 # First remove it from the list of overridden variables, so we can test 5846 # for unknown variables in the end. 5847 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5848 5849 # Check if the provided tool contains a complete path. 5850 tool_specified="$CUT" 5851 tool_basename="${tool_specified##*/}" 5852 if test "x$tool_basename" = "x$tool_specified"; then 5853 # A command without a complete path is provided, search $PATH. 5854 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 5855 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 5856 # Extract the first word of "$tool_basename", so it can be a program name with args. 5857 set dummy $tool_basename; ac_word=$2 5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5859 $as_echo_n "checking for $ac_word... " >&6; } 5860 if ${ac_cv_path_CUT+:} false; then : 5861 $as_echo_n "(cached) " >&6 5862 else 5863 case $CUT in 5864 [\\/]* | ?:[\\/]*) 5865 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5866 ;; 5867 *) 5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5869 for as_dir in $PATH 5870 do 5871 IFS=$as_save_IFS 5872 test -z "$as_dir" && as_dir=. 5873 for ac_exec_ext in '' $ac_executable_extensions; do 5874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5875 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5877 break 2 5878 fi 5879 done 5880 done 5881 IFS=$as_save_IFS 5882 5883 ;; 5884 esac 5885 fi 5886 CUT=$ac_cv_path_CUT 5887 if test -n "$CUT"; then 5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5889 $as_echo "$CUT" >&6; } 5890 else 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5892 $as_echo "no" >&6; } 5893 fi 5894 5895 5896 if test "x$CUT" = x; then 5897 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5898 fi 5899 else 5900 # Otherwise we believe it is a complete path. Use it as it is. 5901 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 5902 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 5904 $as_echo_n "checking for CUT... " >&6; } 5905 if test ! -x "$tool_specified"; then 5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5907 $as_echo "not found" >&6; } 5908 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 5909 fi 5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5911 $as_echo "$tool_specified" >&6; } 5912 fi 5913 fi 5914 fi 5915 5916 5917 5918 if test "x$CUT" = x; then 5919 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 5920 fi 5921 5922 5923 5924 5925 5926 # Publish this variable in the help. 5927 5928 5929 if test "x$DATE" = x; then 5930 # The variable is not set by user, try to locate tool using the code snippet 5931 for ac_prog in date 5932 do 5933 # Extract the first word of "$ac_prog", so it can be a program name with args. 5934 set dummy $ac_prog; ac_word=$2 5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5936 $as_echo_n "checking for $ac_word... " >&6; } 5937 if ${ac_cv_path_DATE+:} false; then : 5938 $as_echo_n "(cached) " >&6 5939 else 5940 case $DATE in 5941 [\\/]* | ?:[\\/]*) 5942 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 5943 ;; 5944 *) 5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5946 for as_dir in $PATH 5947 do 5948 IFS=$as_save_IFS 5949 test -z "$as_dir" && as_dir=. 5950 for ac_exec_ext in '' $ac_executable_extensions; do 5951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5952 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 5953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5954 break 2 5955 fi 5956 done 5957 done 5958 IFS=$as_save_IFS 5959 5960 ;; 5961 esac 5962 fi 5963 DATE=$ac_cv_path_DATE 5964 if test -n "$DATE"; then 5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 5966 $as_echo "$DATE" >&6; } 5967 else 5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5969 $as_echo "no" >&6; } 5970 fi 5971 5972 5973 test -n "$DATE" && break 5974 done 5975 5976 else 5977 # The variable is set, but is it from the command line or the environment? 5978 5979 # Try to remove the string !DATE! from our list. 5980 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 5981 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5982 # If it failed, the variable was not from the command line. Ignore it, 5983 # but warn the user (except for BASH, which is always set by the calling BASH). 5984 if test "xDATE" != xBASH; then 5985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 5986 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 5987 fi 5988 # Try to locate tool using the code snippet 5989 for ac_prog in date 5990 do 5991 # Extract the first word of "$ac_prog", so it can be a program name with args. 5992 set dummy $ac_prog; ac_word=$2 5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5994 $as_echo_n "checking for $ac_word... " >&6; } 5995 if ${ac_cv_path_DATE+:} false; then : 5996 $as_echo_n "(cached) " >&6 5997 else 5998 case $DATE in 5999 [\\/]* | ?:[\\/]*) 6000 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6001 ;; 6002 *) 6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6004 for as_dir in $PATH 6005 do 6006 IFS=$as_save_IFS 6007 test -z "$as_dir" && as_dir=. 6008 for ac_exec_ext in '' $ac_executable_extensions; do 6009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6010 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6012 break 2 6013 fi 6014 done 6015 done 6016 IFS=$as_save_IFS 6017 6018 ;; 6019 esac 6020 fi 6021 DATE=$ac_cv_path_DATE 6022 if test -n "$DATE"; then 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6024 $as_echo "$DATE" >&6; } 6025 else 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6027 $as_echo "no" >&6; } 6028 fi 6029 6030 6031 test -n "$DATE" && break 6032 done 6033 6034 else 6035 # If it succeeded, then it was overridden by the user. We will use it 6036 # for the tool. 6037 6038 # First remove it from the list of overridden variables, so we can test 6039 # for unknown variables in the end. 6040 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6041 6042 # Check if the provided tool contains a complete path. 6043 tool_specified="$DATE" 6044 tool_basename="${tool_specified##*/}" 6045 if test "x$tool_basename" = "x$tool_specified"; then 6046 # A command without a complete path is provided, search $PATH. 6047 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6048 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6049 # Extract the first word of "$tool_basename", so it can be a program name with args. 6050 set dummy $tool_basename; ac_word=$2 6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6052 $as_echo_n "checking for $ac_word... " >&6; } 6053 if ${ac_cv_path_DATE+:} false; then : 6054 $as_echo_n "(cached) " >&6 6055 else 6056 case $DATE in 6057 [\\/]* | ?:[\\/]*) 6058 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6059 ;; 6060 *) 6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6062 for as_dir in $PATH 6063 do 6064 IFS=$as_save_IFS 6065 test -z "$as_dir" && as_dir=. 6066 for ac_exec_ext in '' $ac_executable_extensions; do 6067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6068 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6070 break 2 6071 fi 6072 done 6073 done 6074 IFS=$as_save_IFS 6075 6076 ;; 6077 esac 6078 fi 6079 DATE=$ac_cv_path_DATE 6080 if test -n "$DATE"; then 6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6082 $as_echo "$DATE" >&6; } 6083 else 6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6085 $as_echo "no" >&6; } 6086 fi 6087 6088 6089 if test "x$DATE" = x; then 6090 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6091 fi 6092 else 6093 # Otherwise we believe it is a complete path. Use it as it is. 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6095 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6097 $as_echo_n "checking for DATE... " >&6; } 6098 if test ! -x "$tool_specified"; then 6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6100 $as_echo "not found" >&6; } 6101 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6102 fi 6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6104 $as_echo "$tool_specified" >&6; } 6105 fi 6106 fi 6107 fi 6108 6109 6110 6111 if test "x$DATE" = x; then 6112 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6113 fi 6114 6115 6116 6117 6118 6119 # Publish this variable in the help. 6120 6121 6122 if test "x$DIFF" = x; then 6123 # The variable is not set by user, try to locate tool using the code snippet 6124 for ac_prog in gdiff diff 6125 do 6126 # Extract the first word of "$ac_prog", so it can be a program name with args. 6127 set dummy $ac_prog; ac_word=$2 6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6129 $as_echo_n "checking for $ac_word... " >&6; } 6130 if ${ac_cv_path_DIFF+:} false; then : 6131 $as_echo_n "(cached) " >&6 6132 else 6133 case $DIFF in 6134 [\\/]* | ?:[\\/]*) 6135 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6136 ;; 6137 *) 6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6139 for as_dir in $PATH 6140 do 6141 IFS=$as_save_IFS 6142 test -z "$as_dir" && as_dir=. 6143 for ac_exec_ext in '' $ac_executable_extensions; do 6144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6145 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6147 break 2 6148 fi 6149 done 6150 done 6151 IFS=$as_save_IFS 6152 6153 ;; 6154 esac 6155 fi 6156 DIFF=$ac_cv_path_DIFF 6157 if test -n "$DIFF"; then 6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6159 $as_echo "$DIFF" >&6; } 6160 else 6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6162 $as_echo "no" >&6; } 6163 fi 6164 6165 6166 test -n "$DIFF" && break 6167 done 6168 6169 else 6170 # The variable is set, but is it from the command line or the environment? 6171 6172 # Try to remove the string !DIFF! from our list. 6173 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 6174 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6175 # If it failed, the variable was not from the command line. Ignore it, 6176 # but warn the user (except for BASH, which is always set by the calling BASH). 6177 if test "xDIFF" != xBASH; then 6178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 6179 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 6180 fi 6181 # Try to locate tool using the code snippet 6182 for ac_prog in gdiff diff 6183 do 6184 # Extract the first word of "$ac_prog", so it can be a program name with args. 6185 set dummy $ac_prog; ac_word=$2 6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6187 $as_echo_n "checking for $ac_word... " >&6; } 6188 if ${ac_cv_path_DIFF+:} false; then : 6189 $as_echo_n "(cached) " >&6 6190 else 6191 case $DIFF in 6192 [\\/]* | ?:[\\/]*) 6193 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6194 ;; 6195 *) 6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6197 for as_dir in $PATH 6198 do 6199 IFS=$as_save_IFS 6200 test -z "$as_dir" && as_dir=. 6201 for ac_exec_ext in '' $ac_executable_extensions; do 6202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6203 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6205 break 2 6206 fi 6207 done 6208 done 6209 IFS=$as_save_IFS 6210 6211 ;; 6212 esac 6213 fi 6214 DIFF=$ac_cv_path_DIFF 6215 if test -n "$DIFF"; then 6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6217 $as_echo "$DIFF" >&6; } 6218 else 6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6220 $as_echo "no" >&6; } 6221 fi 6222 6223 6224 test -n "$DIFF" && break 6225 done 6226 6227 else 6228 # If it succeeded, then it was overridden by the user. We will use it 6229 # for the tool. 6230 6231 # First remove it from the list of overridden variables, so we can test 6232 # for unknown variables in the end. 6233 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6234 6235 # Check if the provided tool contains a complete path. 6236 tool_specified="$DIFF" 6237 tool_basename="${tool_specified##*/}" 6238 if test "x$tool_basename" = "x$tool_specified"; then 6239 # A command without a complete path is provided, search $PATH. 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 6241 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 6242 # Extract the first word of "$tool_basename", so it can be a program name with args. 6243 set dummy $tool_basename; ac_word=$2 6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6245 $as_echo_n "checking for $ac_word... " >&6; } 6246 if ${ac_cv_path_DIFF+:} false; then : 6247 $as_echo_n "(cached) " >&6 6248 else 6249 case $DIFF in 6250 [\\/]* | ?:[\\/]*) 6251 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6252 ;; 6253 *) 6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6255 for as_dir in $PATH 6256 do 6257 IFS=$as_save_IFS 6258 test -z "$as_dir" && as_dir=. 6259 for ac_exec_ext in '' $ac_executable_extensions; do 6260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6261 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6263 break 2 6264 fi 6265 done 6266 done 6267 IFS=$as_save_IFS 6268 6269 ;; 6270 esac 6271 fi 6272 DIFF=$ac_cv_path_DIFF 6273 if test -n "$DIFF"; then 6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6275 $as_echo "$DIFF" >&6; } 6276 else 6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6278 $as_echo "no" >&6; } 6279 fi 6280 6281 6282 if test "x$DIFF" = x; then 6283 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6284 fi 6285 else 6286 # Otherwise we believe it is a complete path. Use it as it is. 6287 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 6288 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6290 $as_echo_n "checking for DIFF... " >&6; } 6291 if test ! -x "$tool_specified"; then 6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6293 $as_echo "not found" >&6; } 6294 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 6295 fi 6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6297 $as_echo "$tool_specified" >&6; } 6298 fi 6299 fi 6300 fi 6301 6302 6303 6304 if test "x$DIFF" = x; then 6305 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 6306 fi 6307 6308 6309 6310 6311 6312 # Publish this variable in the help. 6313 6314 6315 if test "x$DIRNAME" = x; then 6316 # The variable is not set by user, try to locate tool using the code snippet 6317 for ac_prog in dirname 6318 do 6319 # Extract the first word of "$ac_prog", so it can be a program name with args. 6320 set dummy $ac_prog; ac_word=$2 6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6322 $as_echo_n "checking for $ac_word... " >&6; } 6323 if ${ac_cv_path_DIRNAME+:} false; then : 6324 $as_echo_n "(cached) " >&6 6325 else 6326 case $DIRNAME in 6327 [\\/]* | ?:[\\/]*) 6328 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6329 ;; 6330 *) 6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6332 for as_dir in $PATH 6333 do 6334 IFS=$as_save_IFS 6335 test -z "$as_dir" && as_dir=. 6336 for ac_exec_ext in '' $ac_executable_extensions; do 6337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6338 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6340 break 2 6341 fi 6342 done 6343 done 6344 IFS=$as_save_IFS 6345 6346 ;; 6347 esac 6348 fi 6349 DIRNAME=$ac_cv_path_DIRNAME 6350 if test -n "$DIRNAME"; then 6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6352 $as_echo "$DIRNAME" >&6; } 6353 else 6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6355 $as_echo "no" >&6; } 6356 fi 6357 6358 6359 test -n "$DIRNAME" && break 6360 done 6361 6362 else 6363 # The variable is set, but is it from the command line or the environment? 6364 6365 # Try to remove the string !DIRNAME! from our list. 6366 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 6367 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6368 # If it failed, the variable was not from the command line. Ignore it, 6369 # but warn the user (except for BASH, which is always set by the calling BASH). 6370 if test "xDIRNAME" != xBASH; then 6371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 6372 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 6373 fi 6374 # Try to locate tool using the code snippet 6375 for ac_prog in dirname 6376 do 6377 # Extract the first word of "$ac_prog", so it can be a program name with args. 6378 set dummy $ac_prog; ac_word=$2 6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6380 $as_echo_n "checking for $ac_word... " >&6; } 6381 if ${ac_cv_path_DIRNAME+:} false; then : 6382 $as_echo_n "(cached) " >&6 6383 else 6384 case $DIRNAME in 6385 [\\/]* | ?:[\\/]*) 6386 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6387 ;; 6388 *) 6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6390 for as_dir in $PATH 6391 do 6392 IFS=$as_save_IFS 6393 test -z "$as_dir" && as_dir=. 6394 for ac_exec_ext in '' $ac_executable_extensions; do 6395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6396 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6398 break 2 6399 fi 6400 done 6401 done 6402 IFS=$as_save_IFS 6403 6404 ;; 6405 esac 6406 fi 6407 DIRNAME=$ac_cv_path_DIRNAME 6408 if test -n "$DIRNAME"; then 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6410 $as_echo "$DIRNAME" >&6; } 6411 else 6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6413 $as_echo "no" >&6; } 6414 fi 6415 6416 6417 test -n "$DIRNAME" && break 6418 done 6419 6420 else 6421 # If it succeeded, then it was overridden by the user. We will use it 6422 # for the tool. 6423 6424 # First remove it from the list of overridden variables, so we can test 6425 # for unknown variables in the end. 6426 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6427 6428 # Check if the provided tool contains a complete path. 6429 tool_specified="$DIRNAME" 6430 tool_basename="${tool_specified##*/}" 6431 if test "x$tool_basename" = "x$tool_specified"; then 6432 # A command without a complete path is provided, search $PATH. 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 6434 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 6435 # Extract the first word of "$tool_basename", so it can be a program name with args. 6436 set dummy $tool_basename; ac_word=$2 6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6438 $as_echo_n "checking for $ac_word... " >&6; } 6439 if ${ac_cv_path_DIRNAME+:} false; then : 6440 $as_echo_n "(cached) " >&6 6441 else 6442 case $DIRNAME in 6443 [\\/]* | ?:[\\/]*) 6444 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6445 ;; 6446 *) 6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6448 for as_dir in $PATH 6449 do 6450 IFS=$as_save_IFS 6451 test -z "$as_dir" && as_dir=. 6452 for ac_exec_ext in '' $ac_executable_extensions; do 6453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6454 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6456 break 2 6457 fi 6458 done 6459 done 6460 IFS=$as_save_IFS 6461 6462 ;; 6463 esac 6464 fi 6465 DIRNAME=$ac_cv_path_DIRNAME 6466 if test -n "$DIRNAME"; then 6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6468 $as_echo "$DIRNAME" >&6; } 6469 else 6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6471 $as_echo "no" >&6; } 6472 fi 6473 6474 6475 if test "x$DIRNAME" = x; then 6476 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6477 fi 6478 else 6479 # Otherwise we believe it is a complete path. Use it as it is. 6480 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 6481 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 6483 $as_echo_n "checking for DIRNAME... " >&6; } 6484 if test ! -x "$tool_specified"; then 6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6486 $as_echo "not found" >&6; } 6487 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 6488 fi 6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6490 $as_echo "$tool_specified" >&6; } 6491 fi 6492 fi 6493 fi 6494 6495 6496 6497 if test "x$DIRNAME" = x; then 6498 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 6499 fi 6500 6501 6502 6503 6504 6505 # Publish this variable in the help. 6506 6507 6508 if test "x$ECHO" = x; then 6509 # The variable is not set by user, try to locate tool using the code snippet 6510 for ac_prog in echo 6511 do 6512 # Extract the first word of "$ac_prog", so it can be a program name with args. 6513 set dummy $ac_prog; ac_word=$2 6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6515 $as_echo_n "checking for $ac_word... " >&6; } 6516 if ${ac_cv_path_ECHO+:} false; then : 6517 $as_echo_n "(cached) " >&6 6518 else 6519 case $ECHO in 6520 [\\/]* | ?:[\\/]*) 6521 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6522 ;; 6523 *) 6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6525 for as_dir in $PATH 6526 do 6527 IFS=$as_save_IFS 6528 test -z "$as_dir" && as_dir=. 6529 for ac_exec_ext in '' $ac_executable_extensions; do 6530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6531 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6533 break 2 6534 fi 6535 done 6536 done 6537 IFS=$as_save_IFS 6538 6539 ;; 6540 esac 6541 fi 6542 ECHO=$ac_cv_path_ECHO 6543 if test -n "$ECHO"; then 6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6545 $as_echo "$ECHO" >&6; } 6546 else 6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6548 $as_echo "no" >&6; } 6549 fi 6550 6551 6552 test -n "$ECHO" && break 6553 done 6554 6555 else 6556 # The variable is set, but is it from the command line or the environment? 6557 6558 # Try to remove the string !ECHO! from our list. 6559 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 6560 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6561 # If it failed, the variable was not from the command line. Ignore it, 6562 # but warn the user (except for BASH, which is always set by the calling BASH). 6563 if test "xECHO" != xBASH; then 6564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 6565 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 6566 fi 6567 # Try to locate tool using the code snippet 6568 for ac_prog in echo 6569 do 6570 # Extract the first word of "$ac_prog", so it can be a program name with args. 6571 set dummy $ac_prog; ac_word=$2 6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6573 $as_echo_n "checking for $ac_word... " >&6; } 6574 if ${ac_cv_path_ECHO+:} false; then : 6575 $as_echo_n "(cached) " >&6 6576 else 6577 case $ECHO in 6578 [\\/]* | ?:[\\/]*) 6579 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6580 ;; 6581 *) 6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6583 for as_dir in $PATH 6584 do 6585 IFS=$as_save_IFS 6586 test -z "$as_dir" && as_dir=. 6587 for ac_exec_ext in '' $ac_executable_extensions; do 6588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6589 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6591 break 2 6592 fi 6593 done 6594 done 6595 IFS=$as_save_IFS 6596 6597 ;; 6598 esac 6599 fi 6600 ECHO=$ac_cv_path_ECHO 6601 if test -n "$ECHO"; then 6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6603 $as_echo "$ECHO" >&6; } 6604 else 6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6606 $as_echo "no" >&6; } 6607 fi 6608 6609 6610 test -n "$ECHO" && break 6611 done 6612 6613 else 6614 # If it succeeded, then it was overridden by the user. We will use it 6615 # for the tool. 6616 6617 # First remove it from the list of overridden variables, so we can test 6618 # for unknown variables in the end. 6619 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6620 6621 # Check if the provided tool contains a complete path. 6622 tool_specified="$ECHO" 6623 tool_basename="${tool_specified##*/}" 6624 if test "x$tool_basename" = "x$tool_specified"; then 6625 # A command without a complete path is provided, search $PATH. 6626 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 6627 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 6628 # Extract the first word of "$tool_basename", so it can be a program name with args. 6629 set dummy $tool_basename; ac_word=$2 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6631 $as_echo_n "checking for $ac_word... " >&6; } 6632 if ${ac_cv_path_ECHO+:} false; then : 6633 $as_echo_n "(cached) " >&6 6634 else 6635 case $ECHO in 6636 [\\/]* | ?:[\\/]*) 6637 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6638 ;; 6639 *) 6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6641 for as_dir in $PATH 6642 do 6643 IFS=$as_save_IFS 6644 test -z "$as_dir" && as_dir=. 6645 for ac_exec_ext in '' $ac_executable_extensions; do 6646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6647 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6649 break 2 6650 fi 6651 done 6652 done 6653 IFS=$as_save_IFS 6654 6655 ;; 6656 esac 6657 fi 6658 ECHO=$ac_cv_path_ECHO 6659 if test -n "$ECHO"; then 6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6661 $as_echo "$ECHO" >&6; } 6662 else 6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6664 $as_echo "no" >&6; } 6665 fi 6666 6667 6668 if test "x$ECHO" = x; then 6669 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6670 fi 6671 else 6672 # Otherwise we believe it is a complete path. Use it as it is. 6673 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 6674 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 6676 $as_echo_n "checking for ECHO... " >&6; } 6677 if test ! -x "$tool_specified"; then 6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6679 $as_echo "not found" >&6; } 6680 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 6681 fi 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6683 $as_echo "$tool_specified" >&6; } 6684 fi 6685 fi 6686 fi 6687 6688 6689 6690 if test "x$ECHO" = x; then 6691 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 6692 fi 6693 6694 6695 6696 6697 6698 # Publish this variable in the help. 6699 6700 6701 if test "x$EXPR" = x; then 6702 # The variable is not set by user, try to locate tool using the code snippet 6703 for ac_prog in expr 6704 do 6705 # Extract the first word of "$ac_prog", so it can be a program name with args. 6706 set dummy $ac_prog; ac_word=$2 6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6708 $as_echo_n "checking for $ac_word... " >&6; } 6709 if ${ac_cv_path_EXPR+:} false; then : 6710 $as_echo_n "(cached) " >&6 6711 else 6712 case $EXPR in 6713 [\\/]* | ?:[\\/]*) 6714 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6715 ;; 6716 *) 6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6718 for as_dir in $PATH 6719 do 6720 IFS=$as_save_IFS 6721 test -z "$as_dir" && as_dir=. 6722 for ac_exec_ext in '' $ac_executable_extensions; do 6723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6724 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6726 break 2 6727 fi 6728 done 6729 done 6730 IFS=$as_save_IFS 6731 6732 ;; 6733 esac 6734 fi 6735 EXPR=$ac_cv_path_EXPR 6736 if test -n "$EXPR"; then 6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6738 $as_echo "$EXPR" >&6; } 6739 else 6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6741 $as_echo "no" >&6; } 6742 fi 6743 6744 6745 test -n "$EXPR" && break 6746 done 6747 6748 else 6749 # The variable is set, but is it from the command line or the environment? 6750 6751 # Try to remove the string !EXPR! from our list. 6752 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 6753 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6754 # If it failed, the variable was not from the command line. Ignore it, 6755 # but warn the user (except for BASH, which is always set by the calling BASH). 6756 if test "xEXPR" != xBASH; then 6757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 6758 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 6759 fi 6760 # Try to locate tool using the code snippet 6761 for ac_prog in expr 6762 do 6763 # Extract the first word of "$ac_prog", so it can be a program name with args. 6764 set dummy $ac_prog; ac_word=$2 6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6766 $as_echo_n "checking for $ac_word... " >&6; } 6767 if ${ac_cv_path_EXPR+:} false; then : 6768 $as_echo_n "(cached) " >&6 6769 else 6770 case $EXPR in 6771 [\\/]* | ?:[\\/]*) 6772 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6773 ;; 6774 *) 6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6776 for as_dir in $PATH 6777 do 6778 IFS=$as_save_IFS 6779 test -z "$as_dir" && as_dir=. 6780 for ac_exec_ext in '' $ac_executable_extensions; do 6781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6782 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6784 break 2 6785 fi 6786 done 6787 done 6788 IFS=$as_save_IFS 6789 6790 ;; 6791 esac 6792 fi 6793 EXPR=$ac_cv_path_EXPR 6794 if test -n "$EXPR"; then 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6796 $as_echo "$EXPR" >&6; } 6797 else 6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6799 $as_echo "no" >&6; } 6800 fi 6801 6802 6803 test -n "$EXPR" && break 6804 done 6805 6806 else 6807 # If it succeeded, then it was overridden by the user. We will use it 6808 # for the tool. 6809 6810 # First remove it from the list of overridden variables, so we can test 6811 # for unknown variables in the end. 6812 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6813 6814 # Check if the provided tool contains a complete path. 6815 tool_specified="$EXPR" 6816 tool_basename="${tool_specified##*/}" 6817 if test "x$tool_basename" = "x$tool_specified"; then 6818 # A command without a complete path is provided, search $PATH. 6819 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 6820 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 6821 # Extract the first word of "$tool_basename", so it can be a program name with args. 6822 set dummy $tool_basename; ac_word=$2 6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6824 $as_echo_n "checking for $ac_word... " >&6; } 6825 if ${ac_cv_path_EXPR+:} false; then : 6826 $as_echo_n "(cached) " >&6 6827 else 6828 case $EXPR in 6829 [\\/]* | ?:[\\/]*) 6830 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6831 ;; 6832 *) 6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6834 for as_dir in $PATH 6835 do 6836 IFS=$as_save_IFS 6837 test -z "$as_dir" && as_dir=. 6838 for ac_exec_ext in '' $ac_executable_extensions; do 6839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6840 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6842 break 2 6843 fi 6844 done 6845 done 6846 IFS=$as_save_IFS 6847 6848 ;; 6849 esac 6850 fi 6851 EXPR=$ac_cv_path_EXPR 6852 if test -n "$EXPR"; then 6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6854 $as_echo "$EXPR" >&6; } 6855 else 6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6857 $as_echo "no" >&6; } 6858 fi 6859 6860 6861 if test "x$EXPR" = x; then 6862 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6863 fi 6864 else 6865 # Otherwise we believe it is a complete path. Use it as it is. 6866 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 6867 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 6869 $as_echo_n "checking for EXPR... " >&6; } 6870 if test ! -x "$tool_specified"; then 6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6872 $as_echo "not found" >&6; } 6873 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 6874 fi 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6876 $as_echo "$tool_specified" >&6; } 6877 fi 6878 fi 6879 fi 6880 6881 6882 6883 if test "x$EXPR" = x; then 6884 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 6885 fi 6886 6887 6888 6889 6890 6891 # Publish this variable in the help. 6892 6893 6894 if test "x$FILE" = x; then 6895 # The variable is not set by user, try to locate tool using the code snippet 6896 for ac_prog in file 6897 do 6898 # Extract the first word of "$ac_prog", so it can be a program name with args. 6899 set dummy $ac_prog; ac_word=$2 6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6901 $as_echo_n "checking for $ac_word... " >&6; } 6902 if ${ac_cv_path_FILE+:} false; then : 6903 $as_echo_n "(cached) " >&6 6904 else 6905 case $FILE in 6906 [\\/]* | ?:[\\/]*) 6907 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 6908 ;; 6909 *) 6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6911 for as_dir in $PATH 6912 do 6913 IFS=$as_save_IFS 6914 test -z "$as_dir" && as_dir=. 6915 for ac_exec_ext in '' $ac_executable_extensions; do 6916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6917 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6919 break 2 6920 fi 6921 done 6922 done 6923 IFS=$as_save_IFS 6924 6925 ;; 6926 esac 6927 fi 6928 FILE=$ac_cv_path_FILE 6929 if test -n "$FILE"; then 6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 6931 $as_echo "$FILE" >&6; } 6932 else 6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6934 $as_echo "no" >&6; } 6935 fi 6936 6937 6938 test -n "$FILE" && break 6939 done 6940 6941 else 6942 # The variable is set, but is it from the command line or the environment? 6943 6944 # Try to remove the string !FILE! from our list. 6945 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 6946 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6947 # If it failed, the variable was not from the command line. Ignore it, 6948 # but warn the user (except for BASH, which is always set by the calling BASH). 6949 if test "xFILE" != xBASH; then 6950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 6951 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 6952 fi 6953 # Try to locate tool using the code snippet 6954 for ac_prog in file 6955 do 6956 # Extract the first word of "$ac_prog", so it can be a program name with args. 6957 set dummy $ac_prog; ac_word=$2 6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6959 $as_echo_n "checking for $ac_word... " >&6; } 6960 if ${ac_cv_path_FILE+:} false; then : 6961 $as_echo_n "(cached) " >&6 6962 else 6963 case $FILE in 6964 [\\/]* | ?:[\\/]*) 6965 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 6966 ;; 6967 *) 6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6969 for as_dir in $PATH 6970 do 6971 IFS=$as_save_IFS 6972 test -z "$as_dir" && as_dir=. 6973 for ac_exec_ext in '' $ac_executable_extensions; do 6974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6975 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 6976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6977 break 2 6978 fi 6979 done 6980 done 6981 IFS=$as_save_IFS 6982 6983 ;; 6984 esac 6985 fi 6986 FILE=$ac_cv_path_FILE 6987 if test -n "$FILE"; then 6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 6989 $as_echo "$FILE" >&6; } 6990 else 6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6992 $as_echo "no" >&6; } 6993 fi 6994 6995 6996 test -n "$FILE" && break 6997 done 6998 6999 else 7000 # If it succeeded, then it was overridden by the user. We will use it 7001 # for the tool. 7002 7003 # First remove it from the list of overridden variables, so we can test 7004 # for unknown variables in the end. 7005 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7006 7007 # Check if the provided tool contains a complete path. 7008 tool_specified="$FILE" 7009 tool_basename="${tool_specified##*/}" 7010 if test "x$tool_basename" = "x$tool_specified"; then 7011 # A command without a complete path is provided, search $PATH. 7012 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7013 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7014 # Extract the first word of "$tool_basename", so it can be a program name with args. 7015 set dummy $tool_basename; ac_word=$2 7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7017 $as_echo_n "checking for $ac_word... " >&6; } 7018 if ${ac_cv_path_FILE+:} false; then : 7019 $as_echo_n "(cached) " >&6 7020 else 7021 case $FILE in 7022 [\\/]* | ?:[\\/]*) 7023 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7024 ;; 7025 *) 7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7027 for as_dir in $PATH 7028 do 7029 IFS=$as_save_IFS 7030 test -z "$as_dir" && as_dir=. 7031 for ac_exec_ext in '' $ac_executable_extensions; do 7032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7033 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7035 break 2 7036 fi 7037 done 7038 done 7039 IFS=$as_save_IFS 7040 7041 ;; 7042 esac 7043 fi 7044 FILE=$ac_cv_path_FILE 7045 if test -n "$FILE"; then 7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7047 $as_echo "$FILE" >&6; } 7048 else 7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7050 $as_echo "no" >&6; } 7051 fi 7052 7053 7054 if test "x$FILE" = x; then 7055 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7056 fi 7057 else 7058 # Otherwise we believe it is a complete path. Use it as it is. 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7060 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7062 $as_echo_n "checking for FILE... " >&6; } 7063 if test ! -x "$tool_specified"; then 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7065 $as_echo "not found" >&6; } 7066 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7067 fi 7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7069 $as_echo "$tool_specified" >&6; } 7070 fi 7071 fi 7072 fi 7073 7074 7075 7076 if test "x$FILE" = x; then 7077 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 7078 fi 7079 7080 7081 7082 7083 7084 # Publish this variable in the help. 7085 7086 7087 if test "x$FIND" = x; then 7088 # The variable is not set by user, try to locate tool using the code snippet 7089 for ac_prog in find 7090 do 7091 # Extract the first word of "$ac_prog", so it can be a program name with args. 7092 set dummy $ac_prog; ac_word=$2 7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7094 $as_echo_n "checking for $ac_word... " >&6; } 7095 if ${ac_cv_path_FIND+:} false; then : 7096 $as_echo_n "(cached) " >&6 7097 else 7098 case $FIND in 7099 [\\/]* | ?:[\\/]*) 7100 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7101 ;; 7102 *) 7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7104 for as_dir in $PATH 7105 do 7106 IFS=$as_save_IFS 7107 test -z "$as_dir" && as_dir=. 7108 for ac_exec_ext in '' $ac_executable_extensions; do 7109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7110 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7112 break 2 7113 fi 7114 done 7115 done 7116 IFS=$as_save_IFS 7117 7118 ;; 7119 esac 7120 fi 7121 FIND=$ac_cv_path_FIND 7122 if test -n "$FIND"; then 7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7124 $as_echo "$FIND" >&6; } 7125 else 7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7127 $as_echo "no" >&6; } 7128 fi 7129 7130 7131 test -n "$FIND" && break 7132 done 7133 7134 else 7135 # The variable is set, but is it from the command line or the environment? 7136 7137 # Try to remove the string !FIND! from our list. 7138 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 7139 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7140 # If it failed, the variable was not from the command line. Ignore it, 7141 # but warn the user (except for BASH, which is always set by the calling BASH). 7142 if test "xFIND" != xBASH; then 7143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 7144 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 7145 fi 7146 # Try to locate tool using the code snippet 7147 for ac_prog in find 7148 do 7149 # Extract the first word of "$ac_prog", so it can be a program name with args. 7150 set dummy $ac_prog; ac_word=$2 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7152 $as_echo_n "checking for $ac_word... " >&6; } 7153 if ${ac_cv_path_FIND+:} false; then : 7154 $as_echo_n "(cached) " >&6 7155 else 7156 case $FIND in 7157 [\\/]* | ?:[\\/]*) 7158 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7159 ;; 7160 *) 7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7162 for as_dir in $PATH 7163 do 7164 IFS=$as_save_IFS 7165 test -z "$as_dir" && as_dir=. 7166 for ac_exec_ext in '' $ac_executable_extensions; do 7167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7168 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7170 break 2 7171 fi 7172 done 7173 done 7174 IFS=$as_save_IFS 7175 7176 ;; 7177 esac 7178 fi 7179 FIND=$ac_cv_path_FIND 7180 if test -n "$FIND"; then 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7182 $as_echo "$FIND" >&6; } 7183 else 7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7185 $as_echo "no" >&6; } 7186 fi 7187 7188 7189 test -n "$FIND" && break 7190 done 7191 7192 else 7193 # If it succeeded, then it was overridden by the user. We will use it 7194 # for the tool. 7195 7196 # First remove it from the list of overridden variables, so we can test 7197 # for unknown variables in the end. 7198 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7199 7200 # Check if the provided tool contains a complete path. 7201 tool_specified="$FIND" 7202 tool_basename="${tool_specified##*/}" 7203 if test "x$tool_basename" = "x$tool_specified"; then 7204 # A command without a complete path is provided, search $PATH. 7205 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 7206 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 7207 # Extract the first word of "$tool_basename", so it can be a program name with args. 7208 set dummy $tool_basename; ac_word=$2 7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7210 $as_echo_n "checking for $ac_word... " >&6; } 7211 if ${ac_cv_path_FIND+:} false; then : 7212 $as_echo_n "(cached) " >&6 7213 else 7214 case $FIND in 7215 [\\/]* | ?:[\\/]*) 7216 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7217 ;; 7218 *) 7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7220 for as_dir in $PATH 7221 do 7222 IFS=$as_save_IFS 7223 test -z "$as_dir" && as_dir=. 7224 for ac_exec_ext in '' $ac_executable_extensions; do 7225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7226 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7228 break 2 7229 fi 7230 done 7231 done 7232 IFS=$as_save_IFS 7233 7234 ;; 7235 esac 7236 fi 7237 FIND=$ac_cv_path_FIND 7238 if test -n "$FIND"; then 7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7240 $as_echo "$FIND" >&6; } 7241 else 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7243 $as_echo "no" >&6; } 7244 fi 7245 7246 7247 if test "x$FIND" = x; then 7248 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7249 fi 7250 else 7251 # Otherwise we believe it is a complete path. Use it as it is. 7252 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 7253 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7255 $as_echo_n "checking for FIND... " >&6; } 7256 if test ! -x "$tool_specified"; then 7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7258 $as_echo "not found" >&6; } 7259 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 7260 fi 7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7262 $as_echo "$tool_specified" >&6; } 7263 fi 7264 fi 7265 fi 7266 7267 7268 7269 if test "x$FIND" = x; then 7270 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 7271 fi 7272 7273 7274 7275 7276 7277 # Publish this variable in the help. 7278 7279 7280 if test "x$HEAD" = x; then 7281 # The variable is not set by user, try to locate tool using the code snippet 7282 for ac_prog in head 7283 do 7284 # Extract the first word of "$ac_prog", so it can be a program name with args. 7285 set dummy $ac_prog; ac_word=$2 7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7287 $as_echo_n "checking for $ac_word... " >&6; } 7288 if ${ac_cv_path_HEAD+:} false; then : 7289 $as_echo_n "(cached) " >&6 7290 else 7291 case $HEAD in 7292 [\\/]* | ?:[\\/]*) 7293 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7294 ;; 7295 *) 7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7297 for as_dir in $PATH 7298 do 7299 IFS=$as_save_IFS 7300 test -z "$as_dir" && as_dir=. 7301 for ac_exec_ext in '' $ac_executable_extensions; do 7302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7303 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7305 break 2 7306 fi 7307 done 7308 done 7309 IFS=$as_save_IFS 7310 7311 ;; 7312 esac 7313 fi 7314 HEAD=$ac_cv_path_HEAD 7315 if test -n "$HEAD"; then 7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7317 $as_echo "$HEAD" >&6; } 7318 else 7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7320 $as_echo "no" >&6; } 7321 fi 7322 7323 7324 test -n "$HEAD" && break 7325 done 7326 7327 else 7328 # The variable is set, but is it from the command line or the environment? 7329 7330 # Try to remove the string !HEAD! from our list. 7331 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 7332 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7333 # If it failed, the variable was not from the command line. Ignore it, 7334 # but warn the user (except for BASH, which is always set by the calling BASH). 7335 if test "xHEAD" != xBASH; then 7336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 7337 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 7338 fi 7339 # Try to locate tool using the code snippet 7340 for ac_prog in head 7341 do 7342 # Extract the first word of "$ac_prog", so it can be a program name with args. 7343 set dummy $ac_prog; ac_word=$2 7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7345 $as_echo_n "checking for $ac_word... " >&6; } 7346 if ${ac_cv_path_HEAD+:} false; then : 7347 $as_echo_n "(cached) " >&6 7348 else 7349 case $HEAD in 7350 [\\/]* | ?:[\\/]*) 7351 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7352 ;; 7353 *) 7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7355 for as_dir in $PATH 7356 do 7357 IFS=$as_save_IFS 7358 test -z "$as_dir" && as_dir=. 7359 for ac_exec_ext in '' $ac_executable_extensions; do 7360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7361 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7363 break 2 7364 fi 7365 done 7366 done 7367 IFS=$as_save_IFS 7368 7369 ;; 7370 esac 7371 fi 7372 HEAD=$ac_cv_path_HEAD 7373 if test -n "$HEAD"; then 7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7375 $as_echo "$HEAD" >&6; } 7376 else 7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7378 $as_echo "no" >&6; } 7379 fi 7380 7381 7382 test -n "$HEAD" && break 7383 done 7384 7385 else 7386 # If it succeeded, then it was overridden by the user. We will use it 7387 # for the tool. 7388 7389 # First remove it from the list of overridden variables, so we can test 7390 # for unknown variables in the end. 7391 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7392 7393 # Check if the provided tool contains a complete path. 7394 tool_specified="$HEAD" 7395 tool_basename="${tool_specified##*/}" 7396 if test "x$tool_basename" = "x$tool_specified"; then 7397 # A command without a complete path is provided, search $PATH. 7398 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 7399 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 7400 # Extract the first word of "$tool_basename", so it can be a program name with args. 7401 set dummy $tool_basename; ac_word=$2 7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7403 $as_echo_n "checking for $ac_word... " >&6; } 7404 if ${ac_cv_path_HEAD+:} false; then : 7405 $as_echo_n "(cached) " >&6 7406 else 7407 case $HEAD in 7408 [\\/]* | ?:[\\/]*) 7409 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7410 ;; 7411 *) 7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7413 for as_dir in $PATH 7414 do 7415 IFS=$as_save_IFS 7416 test -z "$as_dir" && as_dir=. 7417 for ac_exec_ext in '' $ac_executable_extensions; do 7418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7419 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7421 break 2 7422 fi 7423 done 7424 done 7425 IFS=$as_save_IFS 7426 7427 ;; 7428 esac 7429 fi 7430 HEAD=$ac_cv_path_HEAD 7431 if test -n "$HEAD"; then 7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7433 $as_echo "$HEAD" >&6; } 7434 else 7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7436 $as_echo "no" >&6; } 7437 fi 7438 7439 7440 if test "x$HEAD" = x; then 7441 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7442 fi 7443 else 7444 # Otherwise we believe it is a complete path. Use it as it is. 7445 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 7446 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 7448 $as_echo_n "checking for HEAD... " >&6; } 7449 if test ! -x "$tool_specified"; then 7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7451 $as_echo "not found" >&6; } 7452 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 7453 fi 7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7455 $as_echo "$tool_specified" >&6; } 7456 fi 7457 fi 7458 fi 7459 7460 7461 7462 if test "x$HEAD" = x; then 7463 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 7464 fi 7465 7466 7467 7468 7469 7470 # Publish this variable in the help. 7471 7472 7473 if test "x$LN" = x; then 7474 # The variable is not set by user, try to locate tool using the code snippet 7475 for ac_prog in ln 7476 do 7477 # Extract the first word of "$ac_prog", so it can be a program name with args. 7478 set dummy $ac_prog; ac_word=$2 7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7480 $as_echo_n "checking for $ac_word... " >&6; } 7481 if ${ac_cv_path_LN+:} false; then : 7482 $as_echo_n "(cached) " >&6 7483 else 7484 case $LN in 7485 [\\/]* | ?:[\\/]*) 7486 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7487 ;; 7488 *) 7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7490 for as_dir in $PATH 7491 do 7492 IFS=$as_save_IFS 7493 test -z "$as_dir" && as_dir=. 7494 for ac_exec_ext in '' $ac_executable_extensions; do 7495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7496 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7498 break 2 7499 fi 7500 done 7501 done 7502 IFS=$as_save_IFS 7503 7504 ;; 7505 esac 7506 fi 7507 LN=$ac_cv_path_LN 7508 if test -n "$LN"; then 7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7510 $as_echo "$LN" >&6; } 7511 else 7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7513 $as_echo "no" >&6; } 7514 fi 7515 7516 7517 test -n "$LN" && break 7518 done 7519 7520 else 7521 # The variable is set, but is it from the command line or the environment? 7522 7523 # Try to remove the string !LN! from our list. 7524 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 7525 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7526 # If it failed, the variable was not from the command line. Ignore it, 7527 # but warn the user (except for BASH, which is always set by the calling BASH). 7528 if test "xLN" != xBASH; then 7529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 7530 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 7531 fi 7532 # Try to locate tool using the code snippet 7533 for ac_prog in ln 7534 do 7535 # Extract the first word of "$ac_prog", so it can be a program name with args. 7536 set dummy $ac_prog; ac_word=$2 7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7538 $as_echo_n "checking for $ac_word... " >&6; } 7539 if ${ac_cv_path_LN+:} false; then : 7540 $as_echo_n "(cached) " >&6 7541 else 7542 case $LN in 7543 [\\/]* | ?:[\\/]*) 7544 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7545 ;; 7546 *) 7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7548 for as_dir in $PATH 7549 do 7550 IFS=$as_save_IFS 7551 test -z "$as_dir" && as_dir=. 7552 for ac_exec_ext in '' $ac_executable_extensions; do 7553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7554 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7556 break 2 7557 fi 7558 done 7559 done 7560 IFS=$as_save_IFS 7561 7562 ;; 7563 esac 7564 fi 7565 LN=$ac_cv_path_LN 7566 if test -n "$LN"; then 7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7568 $as_echo "$LN" >&6; } 7569 else 7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7571 $as_echo "no" >&6; } 7572 fi 7573 7574 7575 test -n "$LN" && break 7576 done 7577 7578 else 7579 # If it succeeded, then it was overridden by the user. We will use it 7580 # for the tool. 7581 7582 # First remove it from the list of overridden variables, so we can test 7583 # for unknown variables in the end. 7584 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7585 7586 # Check if the provided tool contains a complete path. 7587 tool_specified="$LN" 7588 tool_basename="${tool_specified##*/}" 7589 if test "x$tool_basename" = "x$tool_specified"; then 7590 # A command without a complete path is provided, search $PATH. 7591 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 7592 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 7593 # Extract the first word of "$tool_basename", so it can be a program name with args. 7594 set dummy $tool_basename; ac_word=$2 7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7596 $as_echo_n "checking for $ac_word... " >&6; } 7597 if ${ac_cv_path_LN+:} false; then : 7598 $as_echo_n "(cached) " >&6 7599 else 7600 case $LN in 7601 [\\/]* | ?:[\\/]*) 7602 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7603 ;; 7604 *) 7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7606 for as_dir in $PATH 7607 do 7608 IFS=$as_save_IFS 7609 test -z "$as_dir" && as_dir=. 7610 for ac_exec_ext in '' $ac_executable_extensions; do 7611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7612 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7614 break 2 7615 fi 7616 done 7617 done 7618 IFS=$as_save_IFS 7619 7620 ;; 7621 esac 7622 fi 7623 LN=$ac_cv_path_LN 7624 if test -n "$LN"; then 7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7626 $as_echo "$LN" >&6; } 7627 else 7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7629 $as_echo "no" >&6; } 7630 fi 7631 7632 7633 if test "x$LN" = x; then 7634 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7635 fi 7636 else 7637 # Otherwise we believe it is a complete path. Use it as it is. 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 7639 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 7641 $as_echo_n "checking for LN... " >&6; } 7642 if test ! -x "$tool_specified"; then 7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7644 $as_echo "not found" >&6; } 7645 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 7646 fi 7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7648 $as_echo "$tool_specified" >&6; } 7649 fi 7650 fi 7651 fi 7652 7653 7654 7655 if test "x$LN" = x; then 7656 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 7657 fi 7658 7659 7660 7661 7662 7663 # Publish this variable in the help. 7664 7665 7666 if test "x$LS" = x; then 7667 # The variable is not set by user, try to locate tool using the code snippet 7668 for ac_prog in ls 7669 do 7670 # Extract the first word of "$ac_prog", so it can be a program name with args. 7671 set dummy $ac_prog; ac_word=$2 7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7673 $as_echo_n "checking for $ac_word... " >&6; } 7674 if ${ac_cv_path_LS+:} false; then : 7675 $as_echo_n "(cached) " >&6 7676 else 7677 case $LS in 7678 [\\/]* | ?:[\\/]*) 7679 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7680 ;; 7681 *) 7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7683 for as_dir in $PATH 7684 do 7685 IFS=$as_save_IFS 7686 test -z "$as_dir" && as_dir=. 7687 for ac_exec_ext in '' $ac_executable_extensions; do 7688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7689 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7691 break 2 7692 fi 7693 done 7694 done 7695 IFS=$as_save_IFS 7696 7697 ;; 7698 esac 7699 fi 7700 LS=$ac_cv_path_LS 7701 if test -n "$LS"; then 7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7703 $as_echo "$LS" >&6; } 7704 else 7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7706 $as_echo "no" >&6; } 7707 fi 7708 7709 7710 test -n "$LS" && break 7711 done 7712 7713 else 7714 # The variable is set, but is it from the command line or the environment? 7715 7716 # Try to remove the string !LS! from our list. 7717 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 7718 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7719 # If it failed, the variable was not from the command line. Ignore it, 7720 # but warn the user (except for BASH, which is always set by the calling BASH). 7721 if test "xLS" != xBASH; then 7722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 7723 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 7724 fi 7725 # Try to locate tool using the code snippet 7726 for ac_prog in ls 7727 do 7728 # Extract the first word of "$ac_prog", so it can be a program name with args. 7729 set dummy $ac_prog; ac_word=$2 7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7731 $as_echo_n "checking for $ac_word... " >&6; } 7732 if ${ac_cv_path_LS+:} false; then : 7733 $as_echo_n "(cached) " >&6 7734 else 7735 case $LS in 7736 [\\/]* | ?:[\\/]*) 7737 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7738 ;; 7739 *) 7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7741 for as_dir in $PATH 7742 do 7743 IFS=$as_save_IFS 7744 test -z "$as_dir" && as_dir=. 7745 for ac_exec_ext in '' $ac_executable_extensions; do 7746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7747 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7749 break 2 7750 fi 7751 done 7752 done 7753 IFS=$as_save_IFS 7754 7755 ;; 7756 esac 7757 fi 7758 LS=$ac_cv_path_LS 7759 if test -n "$LS"; then 7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7761 $as_echo "$LS" >&6; } 7762 else 7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7764 $as_echo "no" >&6; } 7765 fi 7766 7767 7768 test -n "$LS" && break 7769 done 7770 7771 else 7772 # If it succeeded, then it was overridden by the user. We will use it 7773 # for the tool. 7774 7775 # First remove it from the list of overridden variables, so we can test 7776 # for unknown variables in the end. 7777 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7778 7779 # Check if the provided tool contains a complete path. 7780 tool_specified="$LS" 7781 tool_basename="${tool_specified##*/}" 7782 if test "x$tool_basename" = "x$tool_specified"; then 7783 # A command without a complete path is provided, search $PATH. 7784 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 7785 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 7786 # Extract the first word of "$tool_basename", so it can be a program name with args. 7787 set dummy $tool_basename; ac_word=$2 7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7789 $as_echo_n "checking for $ac_word... " >&6; } 7790 if ${ac_cv_path_LS+:} false; then : 7791 $as_echo_n "(cached) " >&6 7792 else 7793 case $LS in 7794 [\\/]* | ?:[\\/]*) 7795 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7796 ;; 7797 *) 7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7799 for as_dir in $PATH 7800 do 7801 IFS=$as_save_IFS 7802 test -z "$as_dir" && as_dir=. 7803 for ac_exec_ext in '' $ac_executable_extensions; do 7804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7805 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7807 break 2 7808 fi 7809 done 7810 done 7811 IFS=$as_save_IFS 7812 7813 ;; 7814 esac 7815 fi 7816 LS=$ac_cv_path_LS 7817 if test -n "$LS"; then 7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7819 $as_echo "$LS" >&6; } 7820 else 7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7822 $as_echo "no" >&6; } 7823 fi 7824 7825 7826 if test "x$LS" = x; then 7827 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7828 fi 7829 else 7830 # Otherwise we believe it is a complete path. Use it as it is. 7831 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 7832 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 7834 $as_echo_n "checking for LS... " >&6; } 7835 if test ! -x "$tool_specified"; then 7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7837 $as_echo "not found" >&6; } 7838 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 7839 fi 7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7841 $as_echo "$tool_specified" >&6; } 7842 fi 7843 fi 7844 fi 7845 7846 7847 7848 if test "x$LS" = x; then 7849 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 7850 fi 7851 7852 7853 7854 7855 7856 # Publish this variable in the help. 7857 7858 7859 if test "x$MKDIR" = x; then 7860 # The variable is not set by user, try to locate tool using the code snippet 7861 for ac_prog in mkdir 7862 do 7863 # Extract the first word of "$ac_prog", so it can be a program name with args. 7864 set dummy $ac_prog; ac_word=$2 7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7866 $as_echo_n "checking for $ac_word... " >&6; } 7867 if ${ac_cv_path_MKDIR+:} false; then : 7868 $as_echo_n "(cached) " >&6 7869 else 7870 case $MKDIR in 7871 [\\/]* | ?:[\\/]*) 7872 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7873 ;; 7874 *) 7875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7876 for as_dir in $PATH 7877 do 7878 IFS=$as_save_IFS 7879 test -z "$as_dir" && as_dir=. 7880 for ac_exec_ext in '' $ac_executable_extensions; do 7881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7882 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7884 break 2 7885 fi 7886 done 7887 done 7888 IFS=$as_save_IFS 7889 7890 ;; 7891 esac 7892 fi 7893 MKDIR=$ac_cv_path_MKDIR 7894 if test -n "$MKDIR"; then 7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7896 $as_echo "$MKDIR" >&6; } 7897 else 7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7899 $as_echo "no" >&6; } 7900 fi 7901 7902 7903 test -n "$MKDIR" && break 7904 done 7905 7906 else 7907 # The variable is set, but is it from the command line or the environment? 7908 7909 # Try to remove the string !MKDIR! from our list. 7910 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 7911 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7912 # If it failed, the variable was not from the command line. Ignore it, 7913 # but warn the user (except for BASH, which is always set by the calling BASH). 7914 if test "xMKDIR" != xBASH; then 7915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 7916 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 7917 fi 7918 # Try to locate tool using the code snippet 7919 for ac_prog in mkdir 7920 do 7921 # Extract the first word of "$ac_prog", so it can be a program name with args. 7922 set dummy $ac_prog; ac_word=$2 7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7924 $as_echo_n "checking for $ac_word... " >&6; } 7925 if ${ac_cv_path_MKDIR+:} false; then : 7926 $as_echo_n "(cached) " >&6 7927 else 7928 case $MKDIR in 7929 [\\/]* | ?:[\\/]*) 7930 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7931 ;; 7932 *) 7933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7934 for as_dir in $PATH 7935 do 7936 IFS=$as_save_IFS 7937 test -z "$as_dir" && as_dir=. 7938 for ac_exec_ext in '' $ac_executable_extensions; do 7939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7940 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7942 break 2 7943 fi 7944 done 7945 done 7946 IFS=$as_save_IFS 7947 7948 ;; 7949 esac 7950 fi 7951 MKDIR=$ac_cv_path_MKDIR 7952 if test -n "$MKDIR"; then 7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7954 $as_echo "$MKDIR" >&6; } 7955 else 7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7957 $as_echo "no" >&6; } 7958 fi 7959 7960 7961 test -n "$MKDIR" && break 7962 done 7963 7964 else 7965 # If it succeeded, then it was overridden by the user. We will use it 7966 # for the tool. 7967 7968 # First remove it from the list of overridden variables, so we can test 7969 # for unknown variables in the end. 7970 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7971 7972 # Check if the provided tool contains a complete path. 7973 tool_specified="$MKDIR" 7974 tool_basename="${tool_specified##*/}" 7975 if test "x$tool_basename" = "x$tool_specified"; then 7976 # A command without a complete path is provided, search $PATH. 7977 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 7978 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 7979 # Extract the first word of "$tool_basename", so it can be a program name with args. 7980 set dummy $tool_basename; ac_word=$2 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7982 $as_echo_n "checking for $ac_word... " >&6; } 7983 if ${ac_cv_path_MKDIR+:} false; then : 7984 $as_echo_n "(cached) " >&6 7985 else 7986 case $MKDIR in 7987 [\\/]* | ?:[\\/]*) 7988 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7989 ;; 7990 *) 7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7992 for as_dir in $PATH 7993 do 7994 IFS=$as_save_IFS 7995 test -z "$as_dir" && as_dir=. 7996 for ac_exec_ext in '' $ac_executable_extensions; do 7997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7998 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8000 break 2 8001 fi 8002 done 8003 done 8004 IFS=$as_save_IFS 8005 8006 ;; 8007 esac 8008 fi 8009 MKDIR=$ac_cv_path_MKDIR 8010 if test -n "$MKDIR"; then 8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8012 $as_echo "$MKDIR" >&6; } 8013 else 8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8015 $as_echo "no" >&6; } 8016 fi 8017 8018 8019 if test "x$MKDIR" = x; then 8020 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8021 fi 8022 else 8023 # Otherwise we believe it is a complete path. Use it as it is. 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 8025 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8027 $as_echo_n "checking for MKDIR... " >&6; } 8028 if test ! -x "$tool_specified"; then 8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8030 $as_echo "not found" >&6; } 8031 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 8032 fi 8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8034 $as_echo "$tool_specified" >&6; } 8035 fi 8036 fi 8037 fi 8038 8039 8040 8041 if test "x$MKDIR" = x; then 8042 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 8043 fi 8044 8045 8046 8047 8048 8049 # Publish this variable in the help. 8050 8051 8052 if test "x$MKTEMP" = x; then 8053 # The variable is not set by user, try to locate tool using the code snippet 8054 for ac_prog in mktemp 8055 do 8056 # Extract the first word of "$ac_prog", so it can be a program name with args. 8057 set dummy $ac_prog; ac_word=$2 8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8059 $as_echo_n "checking for $ac_word... " >&6; } 8060 if ${ac_cv_path_MKTEMP+:} false; then : 8061 $as_echo_n "(cached) " >&6 8062 else 8063 case $MKTEMP in 8064 [\\/]* | ?:[\\/]*) 8065 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8066 ;; 8067 *) 8068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8069 for as_dir in $PATH 8070 do 8071 IFS=$as_save_IFS 8072 test -z "$as_dir" && as_dir=. 8073 for ac_exec_ext in '' $ac_executable_extensions; do 8074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8075 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8077 break 2 8078 fi 8079 done 8080 done 8081 IFS=$as_save_IFS 8082 8083 ;; 8084 esac 8085 fi 8086 MKTEMP=$ac_cv_path_MKTEMP 8087 if test -n "$MKTEMP"; then 8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8089 $as_echo "$MKTEMP" >&6; } 8090 else 8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8092 $as_echo "no" >&6; } 8093 fi 8094 8095 8096 test -n "$MKTEMP" && break 8097 done 8098 8099 else 8100 # The variable is set, but is it from the command line or the environment? 8101 8102 # Try to remove the string !MKTEMP! from our list. 8103 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 8104 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8105 # If it failed, the variable was not from the command line. Ignore it, 8106 # but warn the user (except for BASH, which is always set by the calling BASH). 8107 if test "xMKTEMP" != xBASH; then 8108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 8109 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 8110 fi 8111 # Try to locate tool using the code snippet 8112 for ac_prog in mktemp 8113 do 8114 # Extract the first word of "$ac_prog", so it can be a program name with args. 8115 set dummy $ac_prog; ac_word=$2 8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8117 $as_echo_n "checking for $ac_word... " >&6; } 8118 if ${ac_cv_path_MKTEMP+:} false; then : 8119 $as_echo_n "(cached) " >&6 8120 else 8121 case $MKTEMP in 8122 [\\/]* | ?:[\\/]*) 8123 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8124 ;; 8125 *) 8126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8127 for as_dir in $PATH 8128 do 8129 IFS=$as_save_IFS 8130 test -z "$as_dir" && as_dir=. 8131 for ac_exec_ext in '' $ac_executable_extensions; do 8132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8133 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8135 break 2 8136 fi 8137 done 8138 done 8139 IFS=$as_save_IFS 8140 8141 ;; 8142 esac 8143 fi 8144 MKTEMP=$ac_cv_path_MKTEMP 8145 if test -n "$MKTEMP"; then 8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8147 $as_echo "$MKTEMP" >&6; } 8148 else 8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8150 $as_echo "no" >&6; } 8151 fi 8152 8153 8154 test -n "$MKTEMP" && break 8155 done 8156 8157 else 8158 # If it succeeded, then it was overridden by the user. We will use it 8159 # for the tool. 8160 8161 # First remove it from the list of overridden variables, so we can test 8162 # for unknown variables in the end. 8163 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8164 8165 # Check if the provided tool contains a complete path. 8166 tool_specified="$MKTEMP" 8167 tool_basename="${tool_specified##*/}" 8168 if test "x$tool_basename" = "x$tool_specified"; then 8169 # A command without a complete path is provided, search $PATH. 8170 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 8171 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 8172 # Extract the first word of "$tool_basename", so it can be a program name with args. 8173 set dummy $tool_basename; ac_word=$2 8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8175 $as_echo_n "checking for $ac_word... " >&6; } 8176 if ${ac_cv_path_MKTEMP+:} false; then : 8177 $as_echo_n "(cached) " >&6 8178 else 8179 case $MKTEMP in 8180 [\\/]* | ?:[\\/]*) 8181 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8182 ;; 8183 *) 8184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8185 for as_dir in $PATH 8186 do 8187 IFS=$as_save_IFS 8188 test -z "$as_dir" && as_dir=. 8189 for ac_exec_ext in '' $ac_executable_extensions; do 8190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8191 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8193 break 2 8194 fi 8195 done 8196 done 8197 IFS=$as_save_IFS 8198 8199 ;; 8200 esac 8201 fi 8202 MKTEMP=$ac_cv_path_MKTEMP 8203 if test -n "$MKTEMP"; then 8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8205 $as_echo "$MKTEMP" >&6; } 8206 else 8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8208 $as_echo "no" >&6; } 8209 fi 8210 8211 8212 if test "x$MKTEMP" = x; then 8213 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8214 fi 8215 else 8216 # Otherwise we believe it is a complete path. Use it as it is. 8217 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 8218 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8220 $as_echo_n "checking for MKTEMP... " >&6; } 8221 if test ! -x "$tool_specified"; then 8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8223 $as_echo "not found" >&6; } 8224 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 8225 fi 8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8227 $as_echo "$tool_specified" >&6; } 8228 fi 8229 fi 8230 fi 8231 8232 8233 8234 if test "x$MKTEMP" = x; then 8235 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 8236 fi 8237 8238 8239 8240 8241 8242 # Publish this variable in the help. 8243 8244 8245 if test "x$MV" = x; then 8246 # The variable is not set by user, try to locate tool using the code snippet 8247 for ac_prog in mv 8248 do 8249 # Extract the first word of "$ac_prog", so it can be a program name with args. 8250 set dummy $ac_prog; ac_word=$2 8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8252 $as_echo_n "checking for $ac_word... " >&6; } 8253 if ${ac_cv_path_MV+:} false; then : 8254 $as_echo_n "(cached) " >&6 8255 else 8256 case $MV in 8257 [\\/]* | ?:[\\/]*) 8258 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8259 ;; 8260 *) 8261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8262 for as_dir in $PATH 8263 do 8264 IFS=$as_save_IFS 8265 test -z "$as_dir" && as_dir=. 8266 for ac_exec_ext in '' $ac_executable_extensions; do 8267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8268 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8270 break 2 8271 fi 8272 done 8273 done 8274 IFS=$as_save_IFS 8275 8276 ;; 8277 esac 8278 fi 8279 MV=$ac_cv_path_MV 8280 if test -n "$MV"; then 8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8282 $as_echo "$MV" >&6; } 8283 else 8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8285 $as_echo "no" >&6; } 8286 fi 8287 8288 8289 test -n "$MV" && break 8290 done 8291 8292 else 8293 # The variable is set, but is it from the command line or the environment? 8294 8295 # Try to remove the string !MV! from our list. 8296 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 8297 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8298 # If it failed, the variable was not from the command line. Ignore it, 8299 # but warn the user (except for BASH, which is always set by the calling BASH). 8300 if test "xMV" != xBASH; then 8301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 8302 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 8303 fi 8304 # Try to locate tool using the code snippet 8305 for ac_prog in mv 8306 do 8307 # Extract the first word of "$ac_prog", so it can be a program name with args. 8308 set dummy $ac_prog; ac_word=$2 8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8310 $as_echo_n "checking for $ac_word... " >&6; } 8311 if ${ac_cv_path_MV+:} false; then : 8312 $as_echo_n "(cached) " >&6 8313 else 8314 case $MV in 8315 [\\/]* | ?:[\\/]*) 8316 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8317 ;; 8318 *) 8319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8320 for as_dir in $PATH 8321 do 8322 IFS=$as_save_IFS 8323 test -z "$as_dir" && as_dir=. 8324 for ac_exec_ext in '' $ac_executable_extensions; do 8325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8326 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8328 break 2 8329 fi 8330 done 8331 done 8332 IFS=$as_save_IFS 8333 8334 ;; 8335 esac 8336 fi 8337 MV=$ac_cv_path_MV 8338 if test -n "$MV"; then 8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8340 $as_echo "$MV" >&6; } 8341 else 8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8343 $as_echo "no" >&6; } 8344 fi 8345 8346 8347 test -n "$MV" && break 8348 done 8349 8350 else 8351 # If it succeeded, then it was overridden by the user. We will use it 8352 # for the tool. 8353 8354 # First remove it from the list of overridden variables, so we can test 8355 # for unknown variables in the end. 8356 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8357 8358 # Check if the provided tool contains a complete path. 8359 tool_specified="$MV" 8360 tool_basename="${tool_specified##*/}" 8361 if test "x$tool_basename" = "x$tool_specified"; then 8362 # A command without a complete path is provided, search $PATH. 8363 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 8364 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 8365 # Extract the first word of "$tool_basename", so it can be a program name with args. 8366 set dummy $tool_basename; ac_word=$2 8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8368 $as_echo_n "checking for $ac_word... " >&6; } 8369 if ${ac_cv_path_MV+:} false; then : 8370 $as_echo_n "(cached) " >&6 8371 else 8372 case $MV in 8373 [\\/]* | ?:[\\/]*) 8374 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8375 ;; 8376 *) 8377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8378 for as_dir in $PATH 8379 do 8380 IFS=$as_save_IFS 8381 test -z "$as_dir" && as_dir=. 8382 for ac_exec_ext in '' $ac_executable_extensions; do 8383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8384 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8386 break 2 8387 fi 8388 done 8389 done 8390 IFS=$as_save_IFS 8391 8392 ;; 8393 esac 8394 fi 8395 MV=$ac_cv_path_MV 8396 if test -n "$MV"; then 8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8398 $as_echo "$MV" >&6; } 8399 else 8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8401 $as_echo "no" >&6; } 8402 fi 8403 8404 8405 if test "x$MV" = x; then 8406 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8407 fi 8408 else 8409 # Otherwise we believe it is a complete path. Use it as it is. 8410 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 8411 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 8413 $as_echo_n "checking for MV... " >&6; } 8414 if test ! -x "$tool_specified"; then 8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8416 $as_echo "not found" >&6; } 8417 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 8418 fi 8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8420 $as_echo "$tool_specified" >&6; } 8421 fi 8422 fi 8423 fi 8424 8425 8426 8427 if test "x$MV" = x; then 8428 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 8429 fi 8430 8431 8432 8433 8434 8435 # Publish this variable in the help. 8436 8437 8438 if test "x$NAWK" = x; then 8439 # The variable is not set by user, try to locate tool using the code snippet 8440 for ac_prog in nawk gawk awk 8441 do 8442 # Extract the first word of "$ac_prog", so it can be a program name with args. 8443 set dummy $ac_prog; ac_word=$2 8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8445 $as_echo_n "checking for $ac_word... " >&6; } 8446 if ${ac_cv_path_NAWK+:} false; then : 8447 $as_echo_n "(cached) " >&6 8448 else 8449 case $NAWK in 8450 [\\/]* | ?:[\\/]*) 8451 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8452 ;; 8453 *) 8454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8455 for as_dir in $PATH 8456 do 8457 IFS=$as_save_IFS 8458 test -z "$as_dir" && as_dir=. 8459 for ac_exec_ext in '' $ac_executable_extensions; do 8460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8461 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8463 break 2 8464 fi 8465 done 8466 done 8467 IFS=$as_save_IFS 8468 8469 ;; 8470 esac 8471 fi 8472 NAWK=$ac_cv_path_NAWK 8473 if test -n "$NAWK"; then 8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8475 $as_echo "$NAWK" >&6; } 8476 else 8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8478 $as_echo "no" >&6; } 8479 fi 8480 8481 8482 test -n "$NAWK" && break 8483 done 8484 8485 else 8486 # The variable is set, but is it from the command line or the environment? 8487 8488 # Try to remove the string !NAWK! from our list. 8489 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 8490 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8491 # If it failed, the variable was not from the command line. Ignore it, 8492 # but warn the user (except for BASH, which is always set by the calling BASH). 8493 if test "xNAWK" != xBASH; then 8494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 8495 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 8496 fi 8497 # Try to locate tool using the code snippet 8498 for ac_prog in nawk gawk awk 8499 do 8500 # Extract the first word of "$ac_prog", so it can be a program name with args. 8501 set dummy $ac_prog; ac_word=$2 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8503 $as_echo_n "checking for $ac_word... " >&6; } 8504 if ${ac_cv_path_NAWK+:} false; then : 8505 $as_echo_n "(cached) " >&6 8506 else 8507 case $NAWK in 8508 [\\/]* | ?:[\\/]*) 8509 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8510 ;; 8511 *) 8512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8513 for as_dir in $PATH 8514 do 8515 IFS=$as_save_IFS 8516 test -z "$as_dir" && as_dir=. 8517 for ac_exec_ext in '' $ac_executable_extensions; do 8518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8519 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8521 break 2 8522 fi 8523 done 8524 done 8525 IFS=$as_save_IFS 8526 8527 ;; 8528 esac 8529 fi 8530 NAWK=$ac_cv_path_NAWK 8531 if test -n "$NAWK"; then 8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8533 $as_echo "$NAWK" >&6; } 8534 else 8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8536 $as_echo "no" >&6; } 8537 fi 8538 8539 8540 test -n "$NAWK" && break 8541 done 8542 8543 else 8544 # If it succeeded, then it was overridden by the user. We will use it 8545 # for the tool. 8546 8547 # First remove it from the list of overridden variables, so we can test 8548 # for unknown variables in the end. 8549 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8550 8551 # Check if the provided tool contains a complete path. 8552 tool_specified="$NAWK" 8553 tool_basename="${tool_specified##*/}" 8554 if test "x$tool_basename" = "x$tool_specified"; then 8555 # A command without a complete path is provided, search $PATH. 8556 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 8557 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 8558 # Extract the first word of "$tool_basename", so it can be a program name with args. 8559 set dummy $tool_basename; ac_word=$2 8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8561 $as_echo_n "checking for $ac_word... " >&6; } 8562 if ${ac_cv_path_NAWK+:} false; then : 8563 $as_echo_n "(cached) " >&6 8564 else 8565 case $NAWK in 8566 [\\/]* | ?:[\\/]*) 8567 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8568 ;; 8569 *) 8570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8571 for as_dir in $PATH 8572 do 8573 IFS=$as_save_IFS 8574 test -z "$as_dir" && as_dir=. 8575 for ac_exec_ext in '' $ac_executable_extensions; do 8576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8577 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8579 break 2 8580 fi 8581 done 8582 done 8583 IFS=$as_save_IFS 8584 8585 ;; 8586 esac 8587 fi 8588 NAWK=$ac_cv_path_NAWK 8589 if test -n "$NAWK"; then 8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8591 $as_echo "$NAWK" >&6; } 8592 else 8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8594 $as_echo "no" >&6; } 8595 fi 8596 8597 8598 if test "x$NAWK" = x; then 8599 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8600 fi 8601 else 8602 # Otherwise we believe it is a complete path. Use it as it is. 8603 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 8604 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 8606 $as_echo_n "checking for NAWK... " >&6; } 8607 if test ! -x "$tool_specified"; then 8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8609 $as_echo "not found" >&6; } 8610 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 8611 fi 8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8613 $as_echo "$tool_specified" >&6; } 8614 fi 8615 fi 8616 fi 8617 8618 8619 8620 if test "x$NAWK" = x; then 8621 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 8622 fi 8623 8624 8625 8626 8627 8628 # Publish this variable in the help. 8629 8630 8631 if test "x$PRINTF" = x; then 8632 # The variable is not set by user, try to locate tool using the code snippet 8633 for ac_prog in printf 8634 do 8635 # Extract the first word of "$ac_prog", so it can be a program name with args. 8636 set dummy $ac_prog; ac_word=$2 8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8638 $as_echo_n "checking for $ac_word... " >&6; } 8639 if ${ac_cv_path_PRINTF+:} false; then : 8640 $as_echo_n "(cached) " >&6 8641 else 8642 case $PRINTF in 8643 [\\/]* | ?:[\\/]*) 8644 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8645 ;; 8646 *) 8647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8648 for as_dir in $PATH 8649 do 8650 IFS=$as_save_IFS 8651 test -z "$as_dir" && as_dir=. 8652 for ac_exec_ext in '' $ac_executable_extensions; do 8653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8654 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8656 break 2 8657 fi 8658 done 8659 done 8660 IFS=$as_save_IFS 8661 8662 ;; 8663 esac 8664 fi 8665 PRINTF=$ac_cv_path_PRINTF 8666 if test -n "$PRINTF"; then 8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8668 $as_echo "$PRINTF" >&6; } 8669 else 8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8671 $as_echo "no" >&6; } 8672 fi 8673 8674 8675 test -n "$PRINTF" && break 8676 done 8677 8678 else 8679 # The variable is set, but is it from the command line or the environment? 8680 8681 # Try to remove the string !PRINTF! from our list. 8682 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 8683 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8684 # If it failed, the variable was not from the command line. Ignore it, 8685 # but warn the user (except for BASH, which is always set by the calling BASH). 8686 if test "xPRINTF" != xBASH; then 8687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 8688 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 8689 fi 8690 # Try to locate tool using the code snippet 8691 for ac_prog in printf 8692 do 8693 # Extract the first word of "$ac_prog", so it can be a program name with args. 8694 set dummy $ac_prog; ac_word=$2 8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8696 $as_echo_n "checking for $ac_word... " >&6; } 8697 if ${ac_cv_path_PRINTF+:} false; then : 8698 $as_echo_n "(cached) " >&6 8699 else 8700 case $PRINTF in 8701 [\\/]* | ?:[\\/]*) 8702 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8703 ;; 8704 *) 8705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8706 for as_dir in $PATH 8707 do 8708 IFS=$as_save_IFS 8709 test -z "$as_dir" && as_dir=. 8710 for ac_exec_ext in '' $ac_executable_extensions; do 8711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8712 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8714 break 2 8715 fi 8716 done 8717 done 8718 IFS=$as_save_IFS 8719 8720 ;; 8721 esac 8722 fi 8723 PRINTF=$ac_cv_path_PRINTF 8724 if test -n "$PRINTF"; then 8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8726 $as_echo "$PRINTF" >&6; } 8727 else 8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8729 $as_echo "no" >&6; } 8730 fi 8731 8732 8733 test -n "$PRINTF" && break 8734 done 8735 8736 else 8737 # If it succeeded, then it was overridden by the user. We will use it 8738 # for the tool. 8739 8740 # First remove it from the list of overridden variables, so we can test 8741 # for unknown variables in the end. 8742 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8743 8744 # Check if the provided tool contains a complete path. 8745 tool_specified="$PRINTF" 8746 tool_basename="${tool_specified##*/}" 8747 if test "x$tool_basename" = "x$tool_specified"; then 8748 # A command without a complete path is provided, search $PATH. 8749 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 8750 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 8751 # Extract the first word of "$tool_basename", so it can be a program name with args. 8752 set dummy $tool_basename; ac_word=$2 8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8754 $as_echo_n "checking for $ac_word... " >&6; } 8755 if ${ac_cv_path_PRINTF+:} false; then : 8756 $as_echo_n "(cached) " >&6 8757 else 8758 case $PRINTF in 8759 [\\/]* | ?:[\\/]*) 8760 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8761 ;; 8762 *) 8763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8764 for as_dir in $PATH 8765 do 8766 IFS=$as_save_IFS 8767 test -z "$as_dir" && as_dir=. 8768 for ac_exec_ext in '' $ac_executable_extensions; do 8769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8770 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8772 break 2 8773 fi 8774 done 8775 done 8776 IFS=$as_save_IFS 8777 8778 ;; 8779 esac 8780 fi 8781 PRINTF=$ac_cv_path_PRINTF 8782 if test -n "$PRINTF"; then 8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8784 $as_echo "$PRINTF" >&6; } 8785 else 8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8787 $as_echo "no" >&6; } 8788 fi 8789 8790 8791 if test "x$PRINTF" = x; then 8792 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8793 fi 8794 else 8795 # Otherwise we believe it is a complete path. Use it as it is. 8796 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 8797 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 8799 $as_echo_n "checking for PRINTF... " >&6; } 8800 if test ! -x "$tool_specified"; then 8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8802 $as_echo "not found" >&6; } 8803 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 8804 fi 8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8806 $as_echo "$tool_specified" >&6; } 8807 fi 8808 fi 8809 fi 8810 8811 8812 8813 if test "x$PRINTF" = x; then 8814 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 8815 fi 8816 8817 8818 8819 8820 8821 # Publish this variable in the help. 8822 8823 8824 if test "x$RM" = x; then 8825 # The variable is not set by user, try to locate tool using the code snippet 8826 for ac_prog in rm 8827 do 8828 # Extract the first word of "$ac_prog", so it can be a program name with args. 8829 set dummy $ac_prog; ac_word=$2 8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8831 $as_echo_n "checking for $ac_word... " >&6; } 8832 if ${ac_cv_path_RM+:} false; then : 8833 $as_echo_n "(cached) " >&6 8834 else 8835 case $RM in 8836 [\\/]* | ?:[\\/]*) 8837 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8838 ;; 8839 *) 8840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8841 for as_dir in $PATH 8842 do 8843 IFS=$as_save_IFS 8844 test -z "$as_dir" && as_dir=. 8845 for ac_exec_ext in '' $ac_executable_extensions; do 8846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8847 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8849 break 2 8850 fi 8851 done 8852 done 8853 IFS=$as_save_IFS 8854 8855 ;; 8856 esac 8857 fi 8858 RM=$ac_cv_path_RM 8859 if test -n "$RM"; then 8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8861 $as_echo "$RM" >&6; } 8862 else 8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8864 $as_echo "no" >&6; } 8865 fi 8866 8867 8868 test -n "$RM" && break 8869 done 8870 8871 else 8872 # The variable is set, but is it from the command line or the environment? 8873 8874 # Try to remove the string !RM! from our list. 8875 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 8876 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8877 # If it failed, the variable was not from the command line. Ignore it, 8878 # but warn the user (except for BASH, which is always set by the calling BASH). 8879 if test "xRM" != xBASH; then 8880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 8881 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 8882 fi 8883 # Try to locate tool using the code snippet 8884 for ac_prog in rm 8885 do 8886 # Extract the first word of "$ac_prog", so it can be a program name with args. 8887 set dummy $ac_prog; ac_word=$2 8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8889 $as_echo_n "checking for $ac_word... " >&6; } 8890 if ${ac_cv_path_RM+:} false; then : 8891 $as_echo_n "(cached) " >&6 8892 else 8893 case $RM in 8894 [\\/]* | ?:[\\/]*) 8895 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8896 ;; 8897 *) 8898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8899 for as_dir in $PATH 8900 do 8901 IFS=$as_save_IFS 8902 test -z "$as_dir" && as_dir=. 8903 for ac_exec_ext in '' $ac_executable_extensions; do 8904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8905 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8907 break 2 8908 fi 8909 done 8910 done 8911 IFS=$as_save_IFS 8912 8913 ;; 8914 esac 8915 fi 8916 RM=$ac_cv_path_RM 8917 if test -n "$RM"; then 8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8919 $as_echo "$RM" >&6; } 8920 else 8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8922 $as_echo "no" >&6; } 8923 fi 8924 8925 8926 test -n "$RM" && break 8927 done 8928 8929 else 8930 # If it succeeded, then it was overridden by the user. We will use it 8931 # for the tool. 8932 8933 # First remove it from the list of overridden variables, so we can test 8934 # for unknown variables in the end. 8935 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8936 8937 # Check if the provided tool contains a complete path. 8938 tool_specified="$RM" 8939 tool_basename="${tool_specified##*/}" 8940 if test "x$tool_basename" = "x$tool_specified"; then 8941 # A command without a complete path is provided, search $PATH. 8942 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 8943 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 8944 # Extract the first word of "$tool_basename", so it can be a program name with args. 8945 set dummy $tool_basename; ac_word=$2 8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8947 $as_echo_n "checking for $ac_word... " >&6; } 8948 if ${ac_cv_path_RM+:} false; then : 8949 $as_echo_n "(cached) " >&6 8950 else 8951 case $RM in 8952 [\\/]* | ?:[\\/]*) 8953 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8954 ;; 8955 *) 8956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8957 for as_dir in $PATH 8958 do 8959 IFS=$as_save_IFS 8960 test -z "$as_dir" && as_dir=. 8961 for ac_exec_ext in '' $ac_executable_extensions; do 8962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8963 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8965 break 2 8966 fi 8967 done 8968 done 8969 IFS=$as_save_IFS 8970 8971 ;; 8972 esac 8973 fi 8974 RM=$ac_cv_path_RM 8975 if test -n "$RM"; then 8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8977 $as_echo "$RM" >&6; } 8978 else 8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8980 $as_echo "no" >&6; } 8981 fi 8982 8983 8984 if test "x$RM" = x; then 8985 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8986 fi 8987 else 8988 # Otherwise we believe it is a complete path. Use it as it is. 8989 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 8990 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 8992 $as_echo_n "checking for RM... " >&6; } 8993 if test ! -x "$tool_specified"; then 8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8995 $as_echo "not found" >&6; } 8996 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 8997 fi 8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8999 $as_echo "$tool_specified" >&6; } 9000 fi 9001 fi 9002 fi 9003 9004 9005 9006 if test "x$RM" = x; then 9007 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 9008 fi 9009 9010 9011 9012 9013 9014 # Publish this variable in the help. 9015 9016 9017 if test "x$SH" = x; then 9018 # The variable is not set by user, try to locate tool using the code snippet 9019 for ac_prog in sh 9020 do 9021 # Extract the first word of "$ac_prog", so it can be a program name with args. 9022 set dummy $ac_prog; ac_word=$2 9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9024 $as_echo_n "checking for $ac_word... " >&6; } 9025 if ${ac_cv_path_SH+:} false; then : 9026 $as_echo_n "(cached) " >&6 9027 else 9028 case $SH in 9029 [\\/]* | ?:[\\/]*) 9030 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9031 ;; 9032 *) 9033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9034 for as_dir in $PATH 9035 do 9036 IFS=$as_save_IFS 9037 test -z "$as_dir" && as_dir=. 9038 for ac_exec_ext in '' $ac_executable_extensions; do 9039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9040 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9042 break 2 9043 fi 9044 done 9045 done 9046 IFS=$as_save_IFS 9047 9048 ;; 9049 esac 9050 fi 9051 SH=$ac_cv_path_SH 9052 if test -n "$SH"; then 9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9054 $as_echo "$SH" >&6; } 9055 else 9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9057 $as_echo "no" >&6; } 9058 fi 9059 9060 9061 test -n "$SH" && break 9062 done 9063 9064 else 9065 # The variable is set, but is it from the command line or the environment? 9066 9067 # Try to remove the string !SH! from our list. 9068 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 9069 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9070 # If it failed, the variable was not from the command line. Ignore it, 9071 # but warn the user (except for BASH, which is always set by the calling BASH). 9072 if test "xSH" != xBASH; then 9073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 9074 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 9075 fi 9076 # Try to locate tool using the code snippet 9077 for ac_prog in sh 9078 do 9079 # Extract the first word of "$ac_prog", so it can be a program name with args. 9080 set dummy $ac_prog; ac_word=$2 9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9082 $as_echo_n "checking for $ac_word... " >&6; } 9083 if ${ac_cv_path_SH+:} false; then : 9084 $as_echo_n "(cached) " >&6 9085 else 9086 case $SH in 9087 [\\/]* | ?:[\\/]*) 9088 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9089 ;; 9090 *) 9091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9092 for as_dir in $PATH 9093 do 9094 IFS=$as_save_IFS 9095 test -z "$as_dir" && as_dir=. 9096 for ac_exec_ext in '' $ac_executable_extensions; do 9097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9098 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9100 break 2 9101 fi 9102 done 9103 done 9104 IFS=$as_save_IFS 9105 9106 ;; 9107 esac 9108 fi 9109 SH=$ac_cv_path_SH 9110 if test -n "$SH"; then 9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9112 $as_echo "$SH" >&6; } 9113 else 9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9115 $as_echo "no" >&6; } 9116 fi 9117 9118 9119 test -n "$SH" && break 9120 done 9121 9122 else 9123 # If it succeeded, then it was overridden by the user. We will use it 9124 # for the tool. 9125 9126 # First remove it from the list of overridden variables, so we can test 9127 # for unknown variables in the end. 9128 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9129 9130 # Check if the provided tool contains a complete path. 9131 tool_specified="$SH" 9132 tool_basename="${tool_specified##*/}" 9133 if test "x$tool_basename" = "x$tool_specified"; then 9134 # A command without a complete path is provided, search $PATH. 9135 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 9136 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 9137 # Extract the first word of "$tool_basename", so it can be a program name with args. 9138 set dummy $tool_basename; ac_word=$2 9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9140 $as_echo_n "checking for $ac_word... " >&6; } 9141 if ${ac_cv_path_SH+:} false; then : 9142 $as_echo_n "(cached) " >&6 9143 else 9144 case $SH in 9145 [\\/]* | ?:[\\/]*) 9146 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9147 ;; 9148 *) 9149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9150 for as_dir in $PATH 9151 do 9152 IFS=$as_save_IFS 9153 test -z "$as_dir" && as_dir=. 9154 for ac_exec_ext in '' $ac_executable_extensions; do 9155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9156 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9158 break 2 9159 fi 9160 done 9161 done 9162 IFS=$as_save_IFS 9163 9164 ;; 9165 esac 9166 fi 9167 SH=$ac_cv_path_SH 9168 if test -n "$SH"; then 9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9170 $as_echo "$SH" >&6; } 9171 else 9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9173 $as_echo "no" >&6; } 9174 fi 9175 9176 9177 if test "x$SH" = x; then 9178 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9179 fi 9180 else 9181 # Otherwise we believe it is a complete path. Use it as it is. 9182 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 9183 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 9185 $as_echo_n "checking for SH... " >&6; } 9186 if test ! -x "$tool_specified"; then 9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9188 $as_echo "not found" >&6; } 9189 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 9190 fi 9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9192 $as_echo "$tool_specified" >&6; } 9193 fi 9194 fi 9195 fi 9196 9197 9198 9199 if test "x$SH" = x; then 9200 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 9201 fi 9202 9203 9204 9205 9206 9207 # Publish this variable in the help. 9208 9209 9210 if test "x$SORT" = x; then 9211 # The variable is not set by user, try to locate tool using the code snippet 9212 for ac_prog in sort 9213 do 9214 # Extract the first word of "$ac_prog", so it can be a program name with args. 9215 set dummy $ac_prog; ac_word=$2 9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9217 $as_echo_n "checking for $ac_word... " >&6; } 9218 if ${ac_cv_path_SORT+:} false; then : 9219 $as_echo_n "(cached) " >&6 9220 else 9221 case $SORT in 9222 [\\/]* | ?:[\\/]*) 9223 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9224 ;; 9225 *) 9226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9227 for as_dir in $PATH 9228 do 9229 IFS=$as_save_IFS 9230 test -z "$as_dir" && as_dir=. 9231 for ac_exec_ext in '' $ac_executable_extensions; do 9232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9233 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9235 break 2 9236 fi 9237 done 9238 done 9239 IFS=$as_save_IFS 9240 9241 ;; 9242 esac 9243 fi 9244 SORT=$ac_cv_path_SORT 9245 if test -n "$SORT"; then 9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9247 $as_echo "$SORT" >&6; } 9248 else 9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9250 $as_echo "no" >&6; } 9251 fi 9252 9253 9254 test -n "$SORT" && break 9255 done 9256 9257 else 9258 # The variable is set, but is it from the command line or the environment? 9259 9260 # Try to remove the string !SORT! from our list. 9261 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 9262 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9263 # If it failed, the variable was not from the command line. Ignore it, 9264 # but warn the user (except for BASH, which is always set by the calling BASH). 9265 if test "xSORT" != xBASH; then 9266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 9267 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 9268 fi 9269 # Try to locate tool using the code snippet 9270 for ac_prog in sort 9271 do 9272 # Extract the first word of "$ac_prog", so it can be a program name with args. 9273 set dummy $ac_prog; ac_word=$2 9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9275 $as_echo_n "checking for $ac_word... " >&6; } 9276 if ${ac_cv_path_SORT+:} false; then : 9277 $as_echo_n "(cached) " >&6 9278 else 9279 case $SORT in 9280 [\\/]* | ?:[\\/]*) 9281 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9282 ;; 9283 *) 9284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9285 for as_dir in $PATH 9286 do 9287 IFS=$as_save_IFS 9288 test -z "$as_dir" && as_dir=. 9289 for ac_exec_ext in '' $ac_executable_extensions; do 9290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9291 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9293 break 2 9294 fi 9295 done 9296 done 9297 IFS=$as_save_IFS 9298 9299 ;; 9300 esac 9301 fi 9302 SORT=$ac_cv_path_SORT 9303 if test -n "$SORT"; then 9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9305 $as_echo "$SORT" >&6; } 9306 else 9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9308 $as_echo "no" >&6; } 9309 fi 9310 9311 9312 test -n "$SORT" && break 9313 done 9314 9315 else 9316 # If it succeeded, then it was overridden by the user. We will use it 9317 # for the tool. 9318 9319 # First remove it from the list of overridden variables, so we can test 9320 # for unknown variables in the end. 9321 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9322 9323 # Check if the provided tool contains a complete path. 9324 tool_specified="$SORT" 9325 tool_basename="${tool_specified##*/}" 9326 if test "x$tool_basename" = "x$tool_specified"; then 9327 # A command without a complete path is provided, search $PATH. 9328 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 9329 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 9330 # Extract the first word of "$tool_basename", so it can be a program name with args. 9331 set dummy $tool_basename; ac_word=$2 9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9333 $as_echo_n "checking for $ac_word... " >&6; } 9334 if ${ac_cv_path_SORT+:} false; then : 9335 $as_echo_n "(cached) " >&6 9336 else 9337 case $SORT in 9338 [\\/]* | ?:[\\/]*) 9339 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9340 ;; 9341 *) 9342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9343 for as_dir in $PATH 9344 do 9345 IFS=$as_save_IFS 9346 test -z "$as_dir" && as_dir=. 9347 for ac_exec_ext in '' $ac_executable_extensions; do 9348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9349 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9351 break 2 9352 fi 9353 done 9354 done 9355 IFS=$as_save_IFS 9356 9357 ;; 9358 esac 9359 fi 9360 SORT=$ac_cv_path_SORT 9361 if test -n "$SORT"; then 9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9363 $as_echo "$SORT" >&6; } 9364 else 9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9366 $as_echo "no" >&6; } 9367 fi 9368 9369 9370 if test "x$SORT" = x; then 9371 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9372 fi 9373 else 9374 # Otherwise we believe it is a complete path. Use it as it is. 9375 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 9376 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 9378 $as_echo_n "checking for SORT... " >&6; } 9379 if test ! -x "$tool_specified"; then 9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9381 $as_echo "not found" >&6; } 9382 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 9383 fi 9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9385 $as_echo "$tool_specified" >&6; } 9386 fi 9387 fi 9388 fi 9389 9390 9391 9392 if test "x$SORT" = x; then 9393 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 9394 fi 9395 9396 9397 9398 9399 9400 # Publish this variable in the help. 9401 9402 9403 if test "x$TAIL" = x; then 9404 # The variable is not set by user, try to locate tool using the code snippet 9405 for ac_prog in tail 9406 do 9407 # Extract the first word of "$ac_prog", so it can be a program name with args. 9408 set dummy $ac_prog; ac_word=$2 9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9410 $as_echo_n "checking for $ac_word... " >&6; } 9411 if ${ac_cv_path_TAIL+:} false; then : 9412 $as_echo_n "(cached) " >&6 9413 else 9414 case $TAIL in 9415 [\\/]* | ?:[\\/]*) 9416 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9417 ;; 9418 *) 9419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9420 for as_dir in $PATH 9421 do 9422 IFS=$as_save_IFS 9423 test -z "$as_dir" && as_dir=. 9424 for ac_exec_ext in '' $ac_executable_extensions; do 9425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9426 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9428 break 2 9429 fi 9430 done 9431 done 9432 IFS=$as_save_IFS 9433 9434 ;; 9435 esac 9436 fi 9437 TAIL=$ac_cv_path_TAIL 9438 if test -n "$TAIL"; then 9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9440 $as_echo "$TAIL" >&6; } 9441 else 9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9443 $as_echo "no" >&6; } 9444 fi 9445 9446 9447 test -n "$TAIL" && break 9448 done 9449 9450 else 9451 # The variable is set, but is it from the command line or the environment? 9452 9453 # Try to remove the string !TAIL! from our list. 9454 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 9455 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9456 # If it failed, the variable was not from the command line. Ignore it, 9457 # but warn the user (except for BASH, which is always set by the calling BASH). 9458 if test "xTAIL" != xBASH; then 9459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 9460 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 9461 fi 9462 # Try to locate tool using the code snippet 9463 for ac_prog in tail 9464 do 9465 # Extract the first word of "$ac_prog", so it can be a program name with args. 9466 set dummy $ac_prog; ac_word=$2 9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9468 $as_echo_n "checking for $ac_word... " >&6; } 9469 if ${ac_cv_path_TAIL+:} false; then : 9470 $as_echo_n "(cached) " >&6 9471 else 9472 case $TAIL in 9473 [\\/]* | ?:[\\/]*) 9474 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9475 ;; 9476 *) 9477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9478 for as_dir in $PATH 9479 do 9480 IFS=$as_save_IFS 9481 test -z "$as_dir" && as_dir=. 9482 for ac_exec_ext in '' $ac_executable_extensions; do 9483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9484 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9486 break 2 9487 fi 9488 done 9489 done 9490 IFS=$as_save_IFS 9491 9492 ;; 9493 esac 9494 fi 9495 TAIL=$ac_cv_path_TAIL 9496 if test -n "$TAIL"; then 9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9498 $as_echo "$TAIL" >&6; } 9499 else 9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9501 $as_echo "no" >&6; } 9502 fi 9503 9504 9505 test -n "$TAIL" && break 9506 done 9507 9508 else 9509 # If it succeeded, then it was overridden by the user. We will use it 9510 # for the tool. 9511 9512 # First remove it from the list of overridden variables, so we can test 9513 # for unknown variables in the end. 9514 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9515 9516 # Check if the provided tool contains a complete path. 9517 tool_specified="$TAIL" 9518 tool_basename="${tool_specified##*/}" 9519 if test "x$tool_basename" = "x$tool_specified"; then 9520 # A command without a complete path is provided, search $PATH. 9521 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 9522 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 9523 # Extract the first word of "$tool_basename", so it can be a program name with args. 9524 set dummy $tool_basename; ac_word=$2 9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9526 $as_echo_n "checking for $ac_word... " >&6; } 9527 if ${ac_cv_path_TAIL+:} false; then : 9528 $as_echo_n "(cached) " >&6 9529 else 9530 case $TAIL in 9531 [\\/]* | ?:[\\/]*) 9532 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9533 ;; 9534 *) 9535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9536 for as_dir in $PATH 9537 do 9538 IFS=$as_save_IFS 9539 test -z "$as_dir" && as_dir=. 9540 for ac_exec_ext in '' $ac_executable_extensions; do 9541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9542 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9544 break 2 9545 fi 9546 done 9547 done 9548 IFS=$as_save_IFS 9549 9550 ;; 9551 esac 9552 fi 9553 TAIL=$ac_cv_path_TAIL 9554 if test -n "$TAIL"; then 9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9556 $as_echo "$TAIL" >&6; } 9557 else 9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9559 $as_echo "no" >&6; } 9560 fi 9561 9562 9563 if test "x$TAIL" = x; then 9564 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9565 fi 9566 else 9567 # Otherwise we believe it is a complete path. Use it as it is. 9568 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 9569 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 9571 $as_echo_n "checking for TAIL... " >&6; } 9572 if test ! -x "$tool_specified"; then 9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9574 $as_echo "not found" >&6; } 9575 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 9576 fi 9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9578 $as_echo "$tool_specified" >&6; } 9579 fi 9580 fi 9581 fi 9582 9583 9584 9585 if test "x$TAIL" = x; then 9586 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 9587 fi 9588 9589 9590 9591 9592 9593 # Publish this variable in the help. 9594 9595 9596 if test "x$TAR" = x; then 9597 # The variable is not set by user, try to locate tool using the code snippet 9598 for ac_prog in tar 9599 do 9600 # Extract the first word of "$ac_prog", so it can be a program name with args. 9601 set dummy $ac_prog; ac_word=$2 9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9603 $as_echo_n "checking for $ac_word... " >&6; } 9604 if ${ac_cv_path_TAR+:} false; then : 9605 $as_echo_n "(cached) " >&6 9606 else 9607 case $TAR in 9608 [\\/]* | ?:[\\/]*) 9609 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9610 ;; 9611 *) 9612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9613 for as_dir in $PATH 9614 do 9615 IFS=$as_save_IFS 9616 test -z "$as_dir" && as_dir=. 9617 for ac_exec_ext in '' $ac_executable_extensions; do 9618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9619 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9621 break 2 9622 fi 9623 done 9624 done 9625 IFS=$as_save_IFS 9626 9627 ;; 9628 esac 9629 fi 9630 TAR=$ac_cv_path_TAR 9631 if test -n "$TAR"; then 9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9633 $as_echo "$TAR" >&6; } 9634 else 9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9636 $as_echo "no" >&6; } 9637 fi 9638 9639 9640 test -n "$TAR" && break 9641 done 9642 9643 else 9644 # The variable is set, but is it from the command line or the environment? 9645 9646 # Try to remove the string !TAR! from our list. 9647 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 9648 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9649 # If it failed, the variable was not from the command line. Ignore it, 9650 # but warn the user (except for BASH, which is always set by the calling BASH). 9651 if test "xTAR" != xBASH; then 9652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 9653 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 9654 fi 9655 # Try to locate tool using the code snippet 9656 for ac_prog in tar 9657 do 9658 # Extract the first word of "$ac_prog", so it can be a program name with args. 9659 set dummy $ac_prog; ac_word=$2 9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9661 $as_echo_n "checking for $ac_word... " >&6; } 9662 if ${ac_cv_path_TAR+:} false; then : 9663 $as_echo_n "(cached) " >&6 9664 else 9665 case $TAR in 9666 [\\/]* | ?:[\\/]*) 9667 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9668 ;; 9669 *) 9670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9671 for as_dir in $PATH 9672 do 9673 IFS=$as_save_IFS 9674 test -z "$as_dir" && as_dir=. 9675 for ac_exec_ext in '' $ac_executable_extensions; do 9676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9677 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9679 break 2 9680 fi 9681 done 9682 done 9683 IFS=$as_save_IFS 9684 9685 ;; 9686 esac 9687 fi 9688 TAR=$ac_cv_path_TAR 9689 if test -n "$TAR"; then 9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9691 $as_echo "$TAR" >&6; } 9692 else 9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9694 $as_echo "no" >&6; } 9695 fi 9696 9697 9698 test -n "$TAR" && break 9699 done 9700 9701 else 9702 # If it succeeded, then it was overridden by the user. We will use it 9703 # for the tool. 9704 9705 # First remove it from the list of overridden variables, so we can test 9706 # for unknown variables in the end. 9707 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9708 9709 # Check if the provided tool contains a complete path. 9710 tool_specified="$TAR" 9711 tool_basename="${tool_specified##*/}" 9712 if test "x$tool_basename" = "x$tool_specified"; then 9713 # A command without a complete path is provided, search $PATH. 9714 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 9715 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 9716 # Extract the first word of "$tool_basename", so it can be a program name with args. 9717 set dummy $tool_basename; ac_word=$2 9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9719 $as_echo_n "checking for $ac_word... " >&6; } 9720 if ${ac_cv_path_TAR+:} false; then : 9721 $as_echo_n "(cached) " >&6 9722 else 9723 case $TAR in 9724 [\\/]* | ?:[\\/]*) 9725 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9726 ;; 9727 *) 9728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9729 for as_dir in $PATH 9730 do 9731 IFS=$as_save_IFS 9732 test -z "$as_dir" && as_dir=. 9733 for ac_exec_ext in '' $ac_executable_extensions; do 9734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9735 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9737 break 2 9738 fi 9739 done 9740 done 9741 IFS=$as_save_IFS 9742 9743 ;; 9744 esac 9745 fi 9746 TAR=$ac_cv_path_TAR 9747 if test -n "$TAR"; then 9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9749 $as_echo "$TAR" >&6; } 9750 else 9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9752 $as_echo "no" >&6; } 9753 fi 9754 9755 9756 if test "x$TAR" = x; then 9757 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9758 fi 9759 else 9760 # Otherwise we believe it is a complete path. Use it as it is. 9761 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 9762 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 9764 $as_echo_n "checking for TAR... " >&6; } 9765 if test ! -x "$tool_specified"; then 9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9767 $as_echo "not found" >&6; } 9768 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 9769 fi 9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9771 $as_echo "$tool_specified" >&6; } 9772 fi 9773 fi 9774 fi 9775 9776 9777 9778 if test "x$TAR" = x; then 9779 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 9780 fi 9781 9782 9783 9784 9785 9786 # Publish this variable in the help. 9787 9788 9789 if test "x$TEE" = x; then 9790 # The variable is not set by user, try to locate tool using the code snippet 9791 for ac_prog in tee 9792 do 9793 # Extract the first word of "$ac_prog", so it can be a program name with args. 9794 set dummy $ac_prog; ac_word=$2 9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9796 $as_echo_n "checking for $ac_word... " >&6; } 9797 if ${ac_cv_path_TEE+:} false; then : 9798 $as_echo_n "(cached) " >&6 9799 else 9800 case $TEE in 9801 [\\/]* | ?:[\\/]*) 9802 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9803 ;; 9804 *) 9805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9806 for as_dir in $PATH 9807 do 9808 IFS=$as_save_IFS 9809 test -z "$as_dir" && as_dir=. 9810 for ac_exec_ext in '' $ac_executable_extensions; do 9811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9812 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9814 break 2 9815 fi 9816 done 9817 done 9818 IFS=$as_save_IFS 9819 9820 ;; 9821 esac 9822 fi 9823 TEE=$ac_cv_path_TEE 9824 if test -n "$TEE"; then 9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9826 $as_echo "$TEE" >&6; } 9827 else 9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9829 $as_echo "no" >&6; } 9830 fi 9831 9832 9833 test -n "$TEE" && break 9834 done 9835 9836 else 9837 # The variable is set, but is it from the command line or the environment? 9838 9839 # Try to remove the string !TEE! from our list. 9840 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 9841 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9842 # If it failed, the variable was not from the command line. Ignore it, 9843 # but warn the user (except for BASH, which is always set by the calling BASH). 9844 if test "xTEE" != xBASH; then 9845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 9846 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 9847 fi 9848 # Try to locate tool using the code snippet 9849 for ac_prog in tee 9850 do 9851 # Extract the first word of "$ac_prog", so it can be a program name with args. 9852 set dummy $ac_prog; ac_word=$2 9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9854 $as_echo_n "checking for $ac_word... " >&6; } 9855 if ${ac_cv_path_TEE+:} false; then : 9856 $as_echo_n "(cached) " >&6 9857 else 9858 case $TEE in 9859 [\\/]* | ?:[\\/]*) 9860 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9861 ;; 9862 *) 9863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9864 for as_dir in $PATH 9865 do 9866 IFS=$as_save_IFS 9867 test -z "$as_dir" && as_dir=. 9868 for ac_exec_ext in '' $ac_executable_extensions; do 9869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9870 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9872 break 2 9873 fi 9874 done 9875 done 9876 IFS=$as_save_IFS 9877 9878 ;; 9879 esac 9880 fi 9881 TEE=$ac_cv_path_TEE 9882 if test -n "$TEE"; then 9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9884 $as_echo "$TEE" >&6; } 9885 else 9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9887 $as_echo "no" >&6; } 9888 fi 9889 9890 9891 test -n "$TEE" && break 9892 done 9893 9894 else 9895 # If it succeeded, then it was overridden by the user. We will use it 9896 # for the tool. 9897 9898 # First remove it from the list of overridden variables, so we can test 9899 # for unknown variables in the end. 9900 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9901 9902 # Check if the provided tool contains a complete path. 9903 tool_specified="$TEE" 9904 tool_basename="${tool_specified##*/}" 9905 if test "x$tool_basename" = "x$tool_specified"; then 9906 # A command without a complete path is provided, search $PATH. 9907 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 9908 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 9909 # Extract the first word of "$tool_basename", so it can be a program name with args. 9910 set dummy $tool_basename; ac_word=$2 9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9912 $as_echo_n "checking for $ac_word... " >&6; } 9913 if ${ac_cv_path_TEE+:} false; then : 9914 $as_echo_n "(cached) " >&6 9915 else 9916 case $TEE in 9917 [\\/]* | ?:[\\/]*) 9918 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9919 ;; 9920 *) 9921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9922 for as_dir in $PATH 9923 do 9924 IFS=$as_save_IFS 9925 test -z "$as_dir" && as_dir=. 9926 for ac_exec_ext in '' $ac_executable_extensions; do 9927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9928 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9930 break 2 9931 fi 9932 done 9933 done 9934 IFS=$as_save_IFS 9935 9936 ;; 9937 esac 9938 fi 9939 TEE=$ac_cv_path_TEE 9940 if test -n "$TEE"; then 9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9942 $as_echo "$TEE" >&6; } 9943 else 9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9945 $as_echo "no" >&6; } 9946 fi 9947 9948 9949 if test "x$TEE" = x; then 9950 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9951 fi 9952 else 9953 # Otherwise we believe it is a complete path. Use it as it is. 9954 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 9955 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 9957 $as_echo_n "checking for TEE... " >&6; } 9958 if test ! -x "$tool_specified"; then 9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9960 $as_echo "not found" >&6; } 9961 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 9962 fi 9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9964 $as_echo "$tool_specified" >&6; } 9965 fi 9966 fi 9967 fi 9968 9969 9970 9971 if test "x$TEE" = x; then 9972 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 9973 fi 9974 9975 9976 9977 9978 9979 # Publish this variable in the help. 9980 9981 9982 if test "x$TOUCH" = x; then 9983 # The variable is not set by user, try to locate tool using the code snippet 9984 for ac_prog in touch 9985 do 9986 # Extract the first word of "$ac_prog", so it can be a program name with args. 9987 set dummy $ac_prog; ac_word=$2 9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9989 $as_echo_n "checking for $ac_word... " >&6; } 9990 if ${ac_cv_path_TOUCH+:} false; then : 9991 $as_echo_n "(cached) " >&6 9992 else 9993 case $TOUCH in 9994 [\\/]* | ?:[\\/]*) 9995 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 9996 ;; 9997 *) 9998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9999 for as_dir in $PATH 10000 do 10001 IFS=$as_save_IFS 10002 test -z "$as_dir" && as_dir=. 10003 for ac_exec_ext in '' $ac_executable_extensions; do 10004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10005 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10007 break 2 10008 fi 10009 done 10010 done 10011 IFS=$as_save_IFS 10012 10013 ;; 10014 esac 10015 fi 10016 TOUCH=$ac_cv_path_TOUCH 10017 if test -n "$TOUCH"; then 10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10019 $as_echo "$TOUCH" >&6; } 10020 else 10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10022 $as_echo "no" >&6; } 10023 fi 10024 10025 10026 test -n "$TOUCH" && break 10027 done 10028 10029 else 10030 # The variable is set, but is it from the command line or the environment? 10031 10032 # Try to remove the string !TOUCH! from our list. 10033 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 10034 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10035 # If it failed, the variable was not from the command line. Ignore it, 10036 # but warn the user (except for BASH, which is always set by the calling BASH). 10037 if test "xTOUCH" != xBASH; then 10038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 10039 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 10040 fi 10041 # Try to locate tool using the code snippet 10042 for ac_prog in touch 10043 do 10044 # Extract the first word of "$ac_prog", so it can be a program name with args. 10045 set dummy $ac_prog; ac_word=$2 10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10047 $as_echo_n "checking for $ac_word... " >&6; } 10048 if ${ac_cv_path_TOUCH+:} false; then : 10049 $as_echo_n "(cached) " >&6 10050 else 10051 case $TOUCH in 10052 [\\/]* | ?:[\\/]*) 10053 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10054 ;; 10055 *) 10056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10057 for as_dir in $PATH 10058 do 10059 IFS=$as_save_IFS 10060 test -z "$as_dir" && as_dir=. 10061 for ac_exec_ext in '' $ac_executable_extensions; do 10062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10063 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10065 break 2 10066 fi 10067 done 10068 done 10069 IFS=$as_save_IFS 10070 10071 ;; 10072 esac 10073 fi 10074 TOUCH=$ac_cv_path_TOUCH 10075 if test -n "$TOUCH"; then 10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10077 $as_echo "$TOUCH" >&6; } 10078 else 10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10080 $as_echo "no" >&6; } 10081 fi 10082 10083 10084 test -n "$TOUCH" && break 10085 done 10086 10087 else 10088 # If it succeeded, then it was overridden by the user. We will use it 10089 # for the tool. 10090 10091 # First remove it from the list of overridden variables, so we can test 10092 # for unknown variables in the end. 10093 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10094 10095 # Check if the provided tool contains a complete path. 10096 tool_specified="$TOUCH" 10097 tool_basename="${tool_specified##*/}" 10098 if test "x$tool_basename" = "x$tool_specified"; then 10099 # A command without a complete path is provided, search $PATH. 10100 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 10101 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 10102 # Extract the first word of "$tool_basename", so it can be a program name with args. 10103 set dummy $tool_basename; ac_word=$2 10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10105 $as_echo_n "checking for $ac_word... " >&6; } 10106 if ${ac_cv_path_TOUCH+:} false; then : 10107 $as_echo_n "(cached) " >&6 10108 else 10109 case $TOUCH in 10110 [\\/]* | ?:[\\/]*) 10111 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10112 ;; 10113 *) 10114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10115 for as_dir in $PATH 10116 do 10117 IFS=$as_save_IFS 10118 test -z "$as_dir" && as_dir=. 10119 for ac_exec_ext in '' $ac_executable_extensions; do 10120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10121 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10123 break 2 10124 fi 10125 done 10126 done 10127 IFS=$as_save_IFS 10128 10129 ;; 10130 esac 10131 fi 10132 TOUCH=$ac_cv_path_TOUCH 10133 if test -n "$TOUCH"; then 10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10135 $as_echo "$TOUCH" >&6; } 10136 else 10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10138 $as_echo "no" >&6; } 10139 fi 10140 10141 10142 if test "x$TOUCH" = x; then 10143 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10144 fi 10145 else 10146 # Otherwise we believe it is a complete path. Use it as it is. 10147 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 10148 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 10150 $as_echo_n "checking for TOUCH... " >&6; } 10151 if test ! -x "$tool_specified"; then 10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10153 $as_echo "not found" >&6; } 10154 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 10155 fi 10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10157 $as_echo "$tool_specified" >&6; } 10158 fi 10159 fi 10160 fi 10161 10162 10163 10164 if test "x$TOUCH" = x; then 10165 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 10166 fi 10167 10168 10169 10170 10171 10172 # Publish this variable in the help. 10173 10174 10175 if test "x$TR" = x; then 10176 # The variable is not set by user, try to locate tool using the code snippet 10177 for ac_prog in tr 10178 do 10179 # Extract the first word of "$ac_prog", so it can be a program name with args. 10180 set dummy $ac_prog; ac_word=$2 10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10182 $as_echo_n "checking for $ac_word... " >&6; } 10183 if ${ac_cv_path_TR+:} false; then : 10184 $as_echo_n "(cached) " >&6 10185 else 10186 case $TR in 10187 [\\/]* | ?:[\\/]*) 10188 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10189 ;; 10190 *) 10191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10192 for as_dir in $PATH 10193 do 10194 IFS=$as_save_IFS 10195 test -z "$as_dir" && as_dir=. 10196 for ac_exec_ext in '' $ac_executable_extensions; do 10197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10198 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10200 break 2 10201 fi 10202 done 10203 done 10204 IFS=$as_save_IFS 10205 10206 ;; 10207 esac 10208 fi 10209 TR=$ac_cv_path_TR 10210 if test -n "$TR"; then 10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10212 $as_echo "$TR" >&6; } 10213 else 10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10215 $as_echo "no" >&6; } 10216 fi 10217 10218 10219 test -n "$TR" && break 10220 done 10221 10222 else 10223 # The variable is set, but is it from the command line or the environment? 10224 10225 # Try to remove the string !TR! from our list. 10226 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 10227 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10228 # If it failed, the variable was not from the command line. Ignore it, 10229 # but warn the user (except for BASH, which is always set by the calling BASH). 10230 if test "xTR" != xBASH; then 10231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 10232 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 10233 fi 10234 # Try to locate tool using the code snippet 10235 for ac_prog in tr 10236 do 10237 # Extract the first word of "$ac_prog", so it can be a program name with args. 10238 set dummy $ac_prog; ac_word=$2 10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10240 $as_echo_n "checking for $ac_word... " >&6; } 10241 if ${ac_cv_path_TR+:} false; then : 10242 $as_echo_n "(cached) " >&6 10243 else 10244 case $TR in 10245 [\\/]* | ?:[\\/]*) 10246 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10247 ;; 10248 *) 10249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10250 for as_dir in $PATH 10251 do 10252 IFS=$as_save_IFS 10253 test -z "$as_dir" && as_dir=. 10254 for ac_exec_ext in '' $ac_executable_extensions; do 10255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10256 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10258 break 2 10259 fi 10260 done 10261 done 10262 IFS=$as_save_IFS 10263 10264 ;; 10265 esac 10266 fi 10267 TR=$ac_cv_path_TR 10268 if test -n "$TR"; then 10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10270 $as_echo "$TR" >&6; } 10271 else 10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10273 $as_echo "no" >&6; } 10274 fi 10275 10276 10277 test -n "$TR" && break 10278 done 10279 10280 else 10281 # If it succeeded, then it was overridden by the user. We will use it 10282 # for the tool. 10283 10284 # First remove it from the list of overridden variables, so we can test 10285 # for unknown variables in the end. 10286 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10287 10288 # Check if the provided tool contains a complete path. 10289 tool_specified="$TR" 10290 tool_basename="${tool_specified##*/}" 10291 if test "x$tool_basename" = "x$tool_specified"; then 10292 # A command without a complete path is provided, search $PATH. 10293 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 10294 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 10295 # Extract the first word of "$tool_basename", so it can be a program name with args. 10296 set dummy $tool_basename; ac_word=$2 10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10298 $as_echo_n "checking for $ac_word... " >&6; } 10299 if ${ac_cv_path_TR+:} false; then : 10300 $as_echo_n "(cached) " >&6 10301 else 10302 case $TR in 10303 [\\/]* | ?:[\\/]*) 10304 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10305 ;; 10306 *) 10307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10308 for as_dir in $PATH 10309 do 10310 IFS=$as_save_IFS 10311 test -z "$as_dir" && as_dir=. 10312 for ac_exec_ext in '' $ac_executable_extensions; do 10313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10314 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10316 break 2 10317 fi 10318 done 10319 done 10320 IFS=$as_save_IFS 10321 10322 ;; 10323 esac 10324 fi 10325 TR=$ac_cv_path_TR 10326 if test -n "$TR"; then 10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10328 $as_echo "$TR" >&6; } 10329 else 10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10331 $as_echo "no" >&6; } 10332 fi 10333 10334 10335 if test "x$TR" = x; then 10336 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10337 fi 10338 else 10339 # Otherwise we believe it is a complete path. Use it as it is. 10340 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 10341 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 10343 $as_echo_n "checking for TR... " >&6; } 10344 if test ! -x "$tool_specified"; then 10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10346 $as_echo "not found" >&6; } 10347 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 10348 fi 10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10350 $as_echo "$tool_specified" >&6; } 10351 fi 10352 fi 10353 fi 10354 10355 10356 10357 if test "x$TR" = x; then 10358 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 10359 fi 10360 10361 10362 10363 10364 10365 # Publish this variable in the help. 10366 10367 10368 if test "x$UNAME" = x; then 10369 # The variable is not set by user, try to locate tool using the code snippet 10370 for ac_prog in uname 10371 do 10372 # Extract the first word of "$ac_prog", so it can be a program name with args. 10373 set dummy $ac_prog; ac_word=$2 10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10375 $as_echo_n "checking for $ac_word... " >&6; } 10376 if ${ac_cv_path_UNAME+:} false; then : 10377 $as_echo_n "(cached) " >&6 10378 else 10379 case $UNAME in 10380 [\\/]* | ?:[\\/]*) 10381 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10382 ;; 10383 *) 10384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10385 for as_dir in $PATH 10386 do 10387 IFS=$as_save_IFS 10388 test -z "$as_dir" && as_dir=. 10389 for ac_exec_ext in '' $ac_executable_extensions; do 10390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10391 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10393 break 2 10394 fi 10395 done 10396 done 10397 IFS=$as_save_IFS 10398 10399 ;; 10400 esac 10401 fi 10402 UNAME=$ac_cv_path_UNAME 10403 if test -n "$UNAME"; then 10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10405 $as_echo "$UNAME" >&6; } 10406 else 10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10408 $as_echo "no" >&6; } 10409 fi 10410 10411 10412 test -n "$UNAME" && break 10413 done 10414 10415 else 10416 # The variable is set, but is it from the command line or the environment? 10417 10418 # Try to remove the string !UNAME! from our list. 10419 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 10420 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10421 # If it failed, the variable was not from the command line. Ignore it, 10422 # but warn the user (except for BASH, which is always set by the calling BASH). 10423 if test "xUNAME" != xBASH; then 10424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 10425 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 10426 fi 10427 # Try to locate tool using the code snippet 10428 for ac_prog in uname 10429 do 10430 # Extract the first word of "$ac_prog", so it can be a program name with args. 10431 set dummy $ac_prog; ac_word=$2 10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10433 $as_echo_n "checking for $ac_word... " >&6; } 10434 if ${ac_cv_path_UNAME+:} false; then : 10435 $as_echo_n "(cached) " >&6 10436 else 10437 case $UNAME in 10438 [\\/]* | ?:[\\/]*) 10439 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10440 ;; 10441 *) 10442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10443 for as_dir in $PATH 10444 do 10445 IFS=$as_save_IFS 10446 test -z "$as_dir" && as_dir=. 10447 for ac_exec_ext in '' $ac_executable_extensions; do 10448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10449 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10451 break 2 10452 fi 10453 done 10454 done 10455 IFS=$as_save_IFS 10456 10457 ;; 10458 esac 10459 fi 10460 UNAME=$ac_cv_path_UNAME 10461 if test -n "$UNAME"; then 10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10463 $as_echo "$UNAME" >&6; } 10464 else 10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10466 $as_echo "no" >&6; } 10467 fi 10468 10469 10470 test -n "$UNAME" && break 10471 done 10472 10473 else 10474 # If it succeeded, then it was overridden by the user. We will use it 10475 # for the tool. 10476 10477 # First remove it from the list of overridden variables, so we can test 10478 # for unknown variables in the end. 10479 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10480 10481 # Check if the provided tool contains a complete path. 10482 tool_specified="$UNAME" 10483 tool_basename="${tool_specified##*/}" 10484 if test "x$tool_basename" = "x$tool_specified"; then 10485 # A command without a complete path is provided, search $PATH. 10486 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 10487 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 10488 # Extract the first word of "$tool_basename", so it can be a program name with args. 10489 set dummy $tool_basename; ac_word=$2 10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10491 $as_echo_n "checking for $ac_word... " >&6; } 10492 if ${ac_cv_path_UNAME+:} false; then : 10493 $as_echo_n "(cached) " >&6 10494 else 10495 case $UNAME in 10496 [\\/]* | ?:[\\/]*) 10497 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10498 ;; 10499 *) 10500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10501 for as_dir in $PATH 10502 do 10503 IFS=$as_save_IFS 10504 test -z "$as_dir" && as_dir=. 10505 for ac_exec_ext in '' $ac_executable_extensions; do 10506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10507 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10509 break 2 10510 fi 10511 done 10512 done 10513 IFS=$as_save_IFS 10514 10515 ;; 10516 esac 10517 fi 10518 UNAME=$ac_cv_path_UNAME 10519 if test -n "$UNAME"; then 10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10521 $as_echo "$UNAME" >&6; } 10522 else 10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10524 $as_echo "no" >&6; } 10525 fi 10526 10527 10528 if test "x$UNAME" = x; then 10529 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10530 fi 10531 else 10532 # Otherwise we believe it is a complete path. Use it as it is. 10533 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 10534 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 10536 $as_echo_n "checking for UNAME... " >&6; } 10537 if test ! -x "$tool_specified"; then 10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10539 $as_echo "not found" >&6; } 10540 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 10541 fi 10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10543 $as_echo "$tool_specified" >&6; } 10544 fi 10545 fi 10546 fi 10547 10548 10549 10550 if test "x$UNAME" = x; then 10551 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 10552 fi 10553 10554 10555 10556 10557 10558 # Publish this variable in the help. 10559 10560 10561 if test "x$UNIQ" = x; then 10562 # The variable is not set by user, try to locate tool using the code snippet 10563 for ac_prog in uniq 10564 do 10565 # Extract the first word of "$ac_prog", so it can be a program name with args. 10566 set dummy $ac_prog; ac_word=$2 10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10568 $as_echo_n "checking for $ac_word... " >&6; } 10569 if ${ac_cv_path_UNIQ+:} false; then : 10570 $as_echo_n "(cached) " >&6 10571 else 10572 case $UNIQ in 10573 [\\/]* | ?:[\\/]*) 10574 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10575 ;; 10576 *) 10577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10578 for as_dir in $PATH 10579 do 10580 IFS=$as_save_IFS 10581 test -z "$as_dir" && as_dir=. 10582 for ac_exec_ext in '' $ac_executable_extensions; do 10583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10584 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10586 break 2 10587 fi 10588 done 10589 done 10590 IFS=$as_save_IFS 10591 10592 ;; 10593 esac 10594 fi 10595 UNIQ=$ac_cv_path_UNIQ 10596 if test -n "$UNIQ"; then 10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10598 $as_echo "$UNIQ" >&6; } 10599 else 10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10601 $as_echo "no" >&6; } 10602 fi 10603 10604 10605 test -n "$UNIQ" && break 10606 done 10607 10608 else 10609 # The variable is set, but is it from the command line or the environment? 10610 10611 # Try to remove the string !UNIQ! from our list. 10612 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 10613 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10614 # If it failed, the variable was not from the command line. Ignore it, 10615 # but warn the user (except for BASH, which is always set by the calling BASH). 10616 if test "xUNIQ" != xBASH; then 10617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 10618 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 10619 fi 10620 # Try to locate tool using the code snippet 10621 for ac_prog in uniq 10622 do 10623 # Extract the first word of "$ac_prog", so it can be a program name with args. 10624 set dummy $ac_prog; ac_word=$2 10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10626 $as_echo_n "checking for $ac_word... " >&6; } 10627 if ${ac_cv_path_UNIQ+:} false; then : 10628 $as_echo_n "(cached) " >&6 10629 else 10630 case $UNIQ in 10631 [\\/]* | ?:[\\/]*) 10632 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10633 ;; 10634 *) 10635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10636 for as_dir in $PATH 10637 do 10638 IFS=$as_save_IFS 10639 test -z "$as_dir" && as_dir=. 10640 for ac_exec_ext in '' $ac_executable_extensions; do 10641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10642 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10644 break 2 10645 fi 10646 done 10647 done 10648 IFS=$as_save_IFS 10649 10650 ;; 10651 esac 10652 fi 10653 UNIQ=$ac_cv_path_UNIQ 10654 if test -n "$UNIQ"; then 10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10656 $as_echo "$UNIQ" >&6; } 10657 else 10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10659 $as_echo "no" >&6; } 10660 fi 10661 10662 10663 test -n "$UNIQ" && break 10664 done 10665 10666 else 10667 # If it succeeded, then it was overridden by the user. We will use it 10668 # for the tool. 10669 10670 # First remove it from the list of overridden variables, so we can test 10671 # for unknown variables in the end. 10672 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10673 10674 # Check if the provided tool contains a complete path. 10675 tool_specified="$UNIQ" 10676 tool_basename="${tool_specified##*/}" 10677 if test "x$tool_basename" = "x$tool_specified"; then 10678 # A command without a complete path is provided, search $PATH. 10679 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 10680 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 10681 # Extract the first word of "$tool_basename", so it can be a program name with args. 10682 set dummy $tool_basename; ac_word=$2 10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10684 $as_echo_n "checking for $ac_word... " >&6; } 10685 if ${ac_cv_path_UNIQ+:} false; then : 10686 $as_echo_n "(cached) " >&6 10687 else 10688 case $UNIQ in 10689 [\\/]* | ?:[\\/]*) 10690 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10691 ;; 10692 *) 10693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10694 for as_dir in $PATH 10695 do 10696 IFS=$as_save_IFS 10697 test -z "$as_dir" && as_dir=. 10698 for ac_exec_ext in '' $ac_executable_extensions; do 10699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10700 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10702 break 2 10703 fi 10704 done 10705 done 10706 IFS=$as_save_IFS 10707 10708 ;; 10709 esac 10710 fi 10711 UNIQ=$ac_cv_path_UNIQ 10712 if test -n "$UNIQ"; then 10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10714 $as_echo "$UNIQ" >&6; } 10715 else 10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10717 $as_echo "no" >&6; } 10718 fi 10719 10720 10721 if test "x$UNIQ" = x; then 10722 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10723 fi 10724 else 10725 # Otherwise we believe it is a complete path. Use it as it is. 10726 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 10727 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 10729 $as_echo_n "checking for UNIQ... " >&6; } 10730 if test ! -x "$tool_specified"; then 10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10732 $as_echo "not found" >&6; } 10733 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 10734 fi 10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10736 $as_echo "$tool_specified" >&6; } 10737 fi 10738 fi 10739 fi 10740 10741 10742 10743 if test "x$UNIQ" = x; then 10744 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 10745 fi 10746 10747 10748 10749 10750 10751 # Publish this variable in the help. 10752 10753 10754 if test "x$WC" = x; then 10755 # The variable is not set by user, try to locate tool using the code snippet 10756 for ac_prog in wc 10757 do 10758 # Extract the first word of "$ac_prog", so it can be a program name with args. 10759 set dummy $ac_prog; ac_word=$2 10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10761 $as_echo_n "checking for $ac_word... " >&6; } 10762 if ${ac_cv_path_WC+:} false; then : 10763 $as_echo_n "(cached) " >&6 10764 else 10765 case $WC in 10766 [\\/]* | ?:[\\/]*) 10767 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10768 ;; 10769 *) 10770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10771 for as_dir in $PATH 10772 do 10773 IFS=$as_save_IFS 10774 test -z "$as_dir" && as_dir=. 10775 for ac_exec_ext in '' $ac_executable_extensions; do 10776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10777 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10779 break 2 10780 fi 10781 done 10782 done 10783 IFS=$as_save_IFS 10784 10785 ;; 10786 esac 10787 fi 10788 WC=$ac_cv_path_WC 10789 if test -n "$WC"; then 10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10791 $as_echo "$WC" >&6; } 10792 else 10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10794 $as_echo "no" >&6; } 10795 fi 10796 10797 10798 test -n "$WC" && break 10799 done 10800 10801 else 10802 # The variable is set, but is it from the command line or the environment? 10803 10804 # Try to remove the string !WC! from our list. 10805 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 10806 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10807 # If it failed, the variable was not from the command line. Ignore it, 10808 # but warn the user (except for BASH, which is always set by the calling BASH). 10809 if test "xWC" != xBASH; then 10810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 10811 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 10812 fi 10813 # Try to locate tool using the code snippet 10814 for ac_prog in wc 10815 do 10816 # Extract the first word of "$ac_prog", so it can be a program name with args. 10817 set dummy $ac_prog; ac_word=$2 10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10819 $as_echo_n "checking for $ac_word... " >&6; } 10820 if ${ac_cv_path_WC+:} false; then : 10821 $as_echo_n "(cached) " >&6 10822 else 10823 case $WC in 10824 [\\/]* | ?:[\\/]*) 10825 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10826 ;; 10827 *) 10828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10829 for as_dir in $PATH 10830 do 10831 IFS=$as_save_IFS 10832 test -z "$as_dir" && as_dir=. 10833 for ac_exec_ext in '' $ac_executable_extensions; do 10834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10835 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10837 break 2 10838 fi 10839 done 10840 done 10841 IFS=$as_save_IFS 10842 10843 ;; 10844 esac 10845 fi 10846 WC=$ac_cv_path_WC 10847 if test -n "$WC"; then 10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10849 $as_echo "$WC" >&6; } 10850 else 10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10852 $as_echo "no" >&6; } 10853 fi 10854 10855 10856 test -n "$WC" && break 10857 done 10858 10859 else 10860 # If it succeeded, then it was overridden by the user. We will use it 10861 # for the tool. 10862 10863 # First remove it from the list of overridden variables, so we can test 10864 # for unknown variables in the end. 10865 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10866 10867 # Check if the provided tool contains a complete path. 10868 tool_specified="$WC" 10869 tool_basename="${tool_specified##*/}" 10870 if test "x$tool_basename" = "x$tool_specified"; then 10871 # A command without a complete path is provided, search $PATH. 10872 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 10873 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 10874 # Extract the first word of "$tool_basename", so it can be a program name with args. 10875 set dummy $tool_basename; ac_word=$2 10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10877 $as_echo_n "checking for $ac_word... " >&6; } 10878 if ${ac_cv_path_WC+:} false; then : 10879 $as_echo_n "(cached) " >&6 10880 else 10881 case $WC in 10882 [\\/]* | ?:[\\/]*) 10883 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10884 ;; 10885 *) 10886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10887 for as_dir in $PATH 10888 do 10889 IFS=$as_save_IFS 10890 test -z "$as_dir" && as_dir=. 10891 for ac_exec_ext in '' $ac_executable_extensions; do 10892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10893 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10895 break 2 10896 fi 10897 done 10898 done 10899 IFS=$as_save_IFS 10900 10901 ;; 10902 esac 10903 fi 10904 WC=$ac_cv_path_WC 10905 if test -n "$WC"; then 10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10907 $as_echo "$WC" >&6; } 10908 else 10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10910 $as_echo "no" >&6; } 10911 fi 10912 10913 10914 if test "x$WC" = x; then 10915 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10916 fi 10917 else 10918 # Otherwise we believe it is a complete path. Use it as it is. 10919 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 10920 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 10922 $as_echo_n "checking for WC... " >&6; } 10923 if test ! -x "$tool_specified"; then 10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10925 $as_echo "not found" >&6; } 10926 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 10927 fi 10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10929 $as_echo "$tool_specified" >&6; } 10930 fi 10931 fi 10932 fi 10933 10934 10935 10936 if test "x$WC" = x; then 10937 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 10938 fi 10939 10940 10941 10942 10943 10944 # Publish this variable in the help. 10945 10946 10947 if test "x$WHICH" = x; then 10948 # The variable is not set by user, try to locate tool using the code snippet 10949 for ac_prog in which 10950 do 10951 # Extract the first word of "$ac_prog", so it can be a program name with args. 10952 set dummy $ac_prog; ac_word=$2 10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10954 $as_echo_n "checking for $ac_word... " >&6; } 10955 if ${ac_cv_path_WHICH+:} false; then : 10956 $as_echo_n "(cached) " >&6 10957 else 10958 case $WHICH in 10959 [\\/]* | ?:[\\/]*) 10960 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 10961 ;; 10962 *) 10963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10964 for as_dir in $PATH 10965 do 10966 IFS=$as_save_IFS 10967 test -z "$as_dir" && as_dir=. 10968 for ac_exec_ext in '' $ac_executable_extensions; do 10969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10970 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 10971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10972 break 2 10973 fi 10974 done 10975 done 10976 IFS=$as_save_IFS 10977 10978 ;; 10979 esac 10980 fi 10981 WHICH=$ac_cv_path_WHICH 10982 if test -n "$WHICH"; then 10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 10984 $as_echo "$WHICH" >&6; } 10985 else 10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10987 $as_echo "no" >&6; } 10988 fi 10989 10990 10991 test -n "$WHICH" && break 10992 done 10993 10994 else 10995 # The variable is set, but is it from the command line or the environment? 10996 10997 # Try to remove the string !WHICH! from our list. 10998 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 10999 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11000 # If it failed, the variable was not from the command line. Ignore it, 11001 # but warn the user (except for BASH, which is always set by the calling BASH). 11002 if test "xWHICH" != xBASH; then 11003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 11004 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 11005 fi 11006 # Try to locate tool using the code snippet 11007 for ac_prog in which 11008 do 11009 # Extract the first word of "$ac_prog", so it can be a program name with args. 11010 set dummy $ac_prog; ac_word=$2 11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11012 $as_echo_n "checking for $ac_word... " >&6; } 11013 if ${ac_cv_path_WHICH+:} false; then : 11014 $as_echo_n "(cached) " >&6 11015 else 11016 case $WHICH in 11017 [\\/]* | ?:[\\/]*) 11018 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11019 ;; 11020 *) 11021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11022 for as_dir in $PATH 11023 do 11024 IFS=$as_save_IFS 11025 test -z "$as_dir" && as_dir=. 11026 for ac_exec_ext in '' $ac_executable_extensions; do 11027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11028 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11030 break 2 11031 fi 11032 done 11033 done 11034 IFS=$as_save_IFS 11035 11036 ;; 11037 esac 11038 fi 11039 WHICH=$ac_cv_path_WHICH 11040 if test -n "$WHICH"; then 11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11042 $as_echo "$WHICH" >&6; } 11043 else 11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11045 $as_echo "no" >&6; } 11046 fi 11047 11048 11049 test -n "$WHICH" && break 11050 done 11051 11052 else 11053 # If it succeeded, then it was overridden by the user. We will use it 11054 # for the tool. 11055 11056 # First remove it from the list of overridden variables, so we can test 11057 # for unknown variables in the end. 11058 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11059 11060 # Check if the provided tool contains a complete path. 11061 tool_specified="$WHICH" 11062 tool_basename="${tool_specified##*/}" 11063 if test "x$tool_basename" = "x$tool_specified"; then 11064 # A command without a complete path is provided, search $PATH. 11065 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 11066 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 11067 # Extract the first word of "$tool_basename", so it can be a program name with args. 11068 set dummy $tool_basename; ac_word=$2 11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11070 $as_echo_n "checking for $ac_word... " >&6; } 11071 if ${ac_cv_path_WHICH+:} false; then : 11072 $as_echo_n "(cached) " >&6 11073 else 11074 case $WHICH in 11075 [\\/]* | ?:[\\/]*) 11076 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11077 ;; 11078 *) 11079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11080 for as_dir in $PATH 11081 do 11082 IFS=$as_save_IFS 11083 test -z "$as_dir" && as_dir=. 11084 for ac_exec_ext in '' $ac_executable_extensions; do 11085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11086 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11088 break 2 11089 fi 11090 done 11091 done 11092 IFS=$as_save_IFS 11093 11094 ;; 11095 esac 11096 fi 11097 WHICH=$ac_cv_path_WHICH 11098 if test -n "$WHICH"; then 11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11100 $as_echo "$WHICH" >&6; } 11101 else 11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11103 $as_echo "no" >&6; } 11104 fi 11105 11106 11107 if test "x$WHICH" = x; then 11108 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11109 fi 11110 else 11111 # Otherwise we believe it is a complete path. Use it as it is. 11112 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 11113 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 11115 $as_echo_n "checking for WHICH... " >&6; } 11116 if test ! -x "$tool_specified"; then 11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11118 $as_echo "not found" >&6; } 11119 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 11120 fi 11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11122 $as_echo "$tool_specified" >&6; } 11123 fi 11124 fi 11125 fi 11126 11127 11128 11129 if test "x$WHICH" = x; then 11130 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 11131 fi 11132 11133 11134 11135 11136 11137 # Publish this variable in the help. 11138 11139 11140 if test "x$XARGS" = x; then 11141 # The variable is not set by user, try to locate tool using the code snippet 11142 for ac_prog in xargs 11143 do 11144 # Extract the first word of "$ac_prog", so it can be a program name with args. 11145 set dummy $ac_prog; ac_word=$2 11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11147 $as_echo_n "checking for $ac_word... " >&6; } 11148 if ${ac_cv_path_XARGS+:} false; then : 11149 $as_echo_n "(cached) " >&6 11150 else 11151 case $XARGS in 11152 [\\/]* | ?:[\\/]*) 11153 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11154 ;; 11155 *) 11156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11157 for as_dir in $PATH 11158 do 11159 IFS=$as_save_IFS 11160 test -z "$as_dir" && as_dir=. 11161 for ac_exec_ext in '' $ac_executable_extensions; do 11162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11163 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11165 break 2 11166 fi 11167 done 11168 done 11169 IFS=$as_save_IFS 11170 11171 ;; 11172 esac 11173 fi 11174 XARGS=$ac_cv_path_XARGS 11175 if test -n "$XARGS"; then 11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11177 $as_echo "$XARGS" >&6; } 11178 else 11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11180 $as_echo "no" >&6; } 11181 fi 11182 11183 11184 test -n "$XARGS" && break 11185 done 11186 11187 else 11188 # The variable is set, but is it from the command line or the environment? 11189 11190 # Try to remove the string !XARGS! from our list. 11191 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 11192 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11193 # If it failed, the variable was not from the command line. Ignore it, 11194 # but warn the user (except for BASH, which is always set by the calling BASH). 11195 if test "xXARGS" != xBASH; then 11196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 11197 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 11198 fi 11199 # Try to locate tool using the code snippet 11200 for ac_prog in xargs 11201 do 11202 # Extract the first word of "$ac_prog", so it can be a program name with args. 11203 set dummy $ac_prog; ac_word=$2 11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11205 $as_echo_n "checking for $ac_word... " >&6; } 11206 if ${ac_cv_path_XARGS+:} false; then : 11207 $as_echo_n "(cached) " >&6 11208 else 11209 case $XARGS in 11210 [\\/]* | ?:[\\/]*) 11211 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11212 ;; 11213 *) 11214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11215 for as_dir in $PATH 11216 do 11217 IFS=$as_save_IFS 11218 test -z "$as_dir" && as_dir=. 11219 for ac_exec_ext in '' $ac_executable_extensions; do 11220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11221 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11223 break 2 11224 fi 11225 done 11226 done 11227 IFS=$as_save_IFS 11228 11229 ;; 11230 esac 11231 fi 11232 XARGS=$ac_cv_path_XARGS 11233 if test -n "$XARGS"; then 11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11235 $as_echo "$XARGS" >&6; } 11236 else 11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11238 $as_echo "no" >&6; } 11239 fi 11240 11241 11242 test -n "$XARGS" && break 11243 done 11244 11245 else 11246 # If it succeeded, then it was overridden by the user. We will use it 11247 # for the tool. 11248 11249 # First remove it from the list of overridden variables, so we can test 11250 # for unknown variables in the end. 11251 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11252 11253 # Check if the provided tool contains a complete path. 11254 tool_specified="$XARGS" 11255 tool_basename="${tool_specified##*/}" 11256 if test "x$tool_basename" = "x$tool_specified"; then 11257 # A command without a complete path is provided, search $PATH. 11258 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 11259 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 11260 # Extract the first word of "$tool_basename", so it can be a program name with args. 11261 set dummy $tool_basename; ac_word=$2 11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11263 $as_echo_n "checking for $ac_word... " >&6; } 11264 if ${ac_cv_path_XARGS+:} false; then : 11265 $as_echo_n "(cached) " >&6 11266 else 11267 case $XARGS in 11268 [\\/]* | ?:[\\/]*) 11269 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11270 ;; 11271 *) 11272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11273 for as_dir in $PATH 11274 do 11275 IFS=$as_save_IFS 11276 test -z "$as_dir" && as_dir=. 11277 for ac_exec_ext in '' $ac_executable_extensions; do 11278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11279 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11281 break 2 11282 fi 11283 done 11284 done 11285 IFS=$as_save_IFS 11286 11287 ;; 11288 esac 11289 fi 11290 XARGS=$ac_cv_path_XARGS 11291 if test -n "$XARGS"; then 11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11293 $as_echo "$XARGS" >&6; } 11294 else 11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11296 $as_echo "no" >&6; } 11297 fi 11298 11299 11300 if test "x$XARGS" = x; then 11301 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11302 fi 11303 else 11304 # Otherwise we believe it is a complete path. Use it as it is. 11305 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 11306 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 11308 $as_echo_n "checking for XARGS... " >&6; } 11309 if test ! -x "$tool_specified"; then 11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11311 $as_echo "not found" >&6; } 11312 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 11313 fi 11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11315 $as_echo "$tool_specified" >&6; } 11316 fi 11317 fi 11318 fi 11319 11320 11321 11322 if test "x$XARGS" = x; then 11323 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 11324 fi 11325 11326 11327 11328 # Then required tools that require some special treatment. 11329 11330 11331 # Publish this variable in the help. 11332 11333 11334 if test "x$AWK" = x; then 11335 # The variable is not set by user, try to locate tool using the code snippet 11336 for ac_prog in gawk mawk nawk awk 11337 do 11338 # Extract the first word of "$ac_prog", so it can be a program name with args. 11339 set dummy $ac_prog; ac_word=$2 11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11341 $as_echo_n "checking for $ac_word... " >&6; } 11342 if ${ac_cv_prog_AWK+:} false; then : 11343 $as_echo_n "(cached) " >&6 11344 else 11345 if test -n "$AWK"; then 11346 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11347 else 11348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11349 for as_dir in $PATH 11350 do 11351 IFS=$as_save_IFS 11352 test -z "$as_dir" && as_dir=. 11353 for ac_exec_ext in '' $ac_executable_extensions; do 11354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11355 ac_cv_prog_AWK="$ac_prog" 11356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11357 break 2 11358 fi 11359 done 11360 done 11361 IFS=$as_save_IFS 11362 11363 fi 11364 fi 11365 AWK=$ac_cv_prog_AWK 11366 if test -n "$AWK"; then 11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11368 $as_echo "$AWK" >&6; } 11369 else 11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11371 $as_echo "no" >&6; } 11372 fi 11373 11374 11375 test -n "$AWK" && break 11376 done 11377 11378 else 11379 # The variable is set, but is it from the command line or the environment? 11380 11381 # Try to remove the string !AWK! from our list. 11382 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 11383 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11384 # If it failed, the variable was not from the command line. Ignore it, 11385 # but warn the user (except for BASH, which is always set by the calling BASH). 11386 if test "xAWK" != xBASH; then 11387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 11388 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 11389 fi 11390 # Try to locate tool using the code snippet 11391 for ac_prog in gawk mawk nawk awk 11392 do 11393 # Extract the first word of "$ac_prog", so it can be a program name with args. 11394 set dummy $ac_prog; ac_word=$2 11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11396 $as_echo_n "checking for $ac_word... " >&6; } 11397 if ${ac_cv_prog_AWK+:} false; then : 11398 $as_echo_n "(cached) " >&6 11399 else 11400 if test -n "$AWK"; then 11401 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11402 else 11403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11404 for as_dir in $PATH 11405 do 11406 IFS=$as_save_IFS 11407 test -z "$as_dir" && as_dir=. 11408 for ac_exec_ext in '' $ac_executable_extensions; do 11409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11410 ac_cv_prog_AWK="$ac_prog" 11411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11412 break 2 11413 fi 11414 done 11415 done 11416 IFS=$as_save_IFS 11417 11418 fi 11419 fi 11420 AWK=$ac_cv_prog_AWK 11421 if test -n "$AWK"; then 11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11423 $as_echo "$AWK" >&6; } 11424 else 11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11426 $as_echo "no" >&6; } 11427 fi 11428 11429 11430 test -n "$AWK" && break 11431 done 11432 11433 else 11434 # If it succeeded, then it was overridden by the user. We will use it 11435 # for the tool. 11436 11437 # First remove it from the list of overridden variables, so we can test 11438 # for unknown variables in the end. 11439 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11440 11441 # Check if the provided tool contains a complete path. 11442 tool_specified="$AWK" 11443 tool_basename="${tool_specified##*/}" 11444 if test "x$tool_basename" = "x$tool_specified"; then 11445 # A command without a complete path is provided, search $PATH. 11446 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 11447 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 11448 # Extract the first word of "$tool_basename", so it can be a program name with args. 11449 set dummy $tool_basename; ac_word=$2 11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11451 $as_echo_n "checking for $ac_word... " >&6; } 11452 if ${ac_cv_path_AWK+:} false; then : 11453 $as_echo_n "(cached) " >&6 11454 else 11455 case $AWK in 11456 [\\/]* | ?:[\\/]*) 11457 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 11458 ;; 11459 *) 11460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11461 for as_dir in $PATH 11462 do 11463 IFS=$as_save_IFS 11464 test -z "$as_dir" && as_dir=. 11465 for ac_exec_ext in '' $ac_executable_extensions; do 11466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11467 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 11468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11469 break 2 11470 fi 11471 done 11472 done 11473 IFS=$as_save_IFS 11474 11475 ;; 11476 esac 11477 fi 11478 AWK=$ac_cv_path_AWK 11479 if test -n "$AWK"; then 11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11481 $as_echo "$AWK" >&6; } 11482 else 11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11484 $as_echo "no" >&6; } 11485 fi 11486 11487 11488 if test "x$AWK" = x; then 11489 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11490 fi 11491 else 11492 # Otherwise we believe it is a complete path. Use it as it is. 11493 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 11494 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 11496 $as_echo_n "checking for AWK... " >&6; } 11497 if test ! -x "$tool_specified"; then 11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11499 $as_echo "not found" >&6; } 11500 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 11501 fi 11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11503 $as_echo "$tool_specified" >&6; } 11504 fi 11505 fi 11506 fi 11507 11508 11509 if test "x$AWK" = x; then 11510 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 11511 fi 11512 11513 11514 11515 11516 # Publish this variable in the help. 11517 11518 11519 if test "x$GREP" = x; then 11520 # The variable is not set by user, try to locate tool using the code snippet 11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11522 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11523 if ${ac_cv_path_GREP+:} false; then : 11524 $as_echo_n "(cached) " >&6 11525 else 11526 if test -z "$GREP"; then 11527 ac_path_GREP_found=false 11528 # Loop through the user's path and test for each of PROGNAME-LIST 11529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11530 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11531 do 11532 IFS=$as_save_IFS 11533 test -z "$as_dir" && as_dir=. 11534 for ac_prog in grep ggrep; do 11535 for ac_exec_ext in '' $ac_executable_extensions; do 11536 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11537 as_fn_executable_p "$ac_path_GREP" || continue 11538 # Check for GNU ac_path_GREP and select it if it is found. 11539 # Check for GNU $ac_path_GREP 11540 case `"$ac_path_GREP" --version 2>&1` in 11541 *GNU*) 11542 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11543 *) 11544 ac_count=0 11545 $as_echo_n 0123456789 >"conftest.in" 11546 while : 11547 do 11548 cat "conftest.in" "conftest.in" >"conftest.tmp" 11549 mv "conftest.tmp" "conftest.in" 11550 cp "conftest.in" "conftest.nl" 11551 $as_echo 'GREP' >> "conftest.nl" 11552 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11553 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11554 as_fn_arith $ac_count + 1 && ac_count=$as_val 11555 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11556 # Best one so far, save it but keep looking for a better one 11557 ac_cv_path_GREP="$ac_path_GREP" 11558 ac_path_GREP_max=$ac_count 11559 fi 11560 # 10*(2^10) chars as input seems more than enough 11561 test $ac_count -gt 10 && break 11562 done 11563 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11564 esac 11565 11566 $ac_path_GREP_found && break 3 11567 done 11568 done 11569 done 11570 IFS=$as_save_IFS 11571 if test -z "$ac_cv_path_GREP"; then 11572 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11573 fi 11574 else 11575 ac_cv_path_GREP=$GREP 11576 fi 11577 11578 fi 11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11580 $as_echo "$ac_cv_path_GREP" >&6; } 11581 GREP="$ac_cv_path_GREP" 11582 11583 11584 else 11585 # The variable is set, but is it from the command line or the environment? 11586 11587 # Try to remove the string !GREP! from our list. 11588 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 11589 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11590 # If it failed, the variable was not from the command line. Ignore it, 11591 # but warn the user (except for BASH, which is always set by the calling BASH). 11592 if test "xGREP" != xBASH; then 11593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 11594 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 11595 fi 11596 # Try to locate tool using the code snippet 11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11598 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11599 if ${ac_cv_path_GREP+:} false; then : 11600 $as_echo_n "(cached) " >&6 11601 else 11602 if test -z "$GREP"; then 11603 ac_path_GREP_found=false 11604 # Loop through the user's path and test for each of PROGNAME-LIST 11605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11606 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11607 do 11608 IFS=$as_save_IFS 11609 test -z "$as_dir" && as_dir=. 11610 for ac_prog in grep ggrep; do 11611 for ac_exec_ext in '' $ac_executable_extensions; do 11612 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11613 as_fn_executable_p "$ac_path_GREP" || continue 11614 # Check for GNU ac_path_GREP and select it if it is found. 11615 # Check for GNU $ac_path_GREP 11616 case `"$ac_path_GREP" --version 2>&1` in 11617 *GNU*) 11618 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11619 *) 11620 ac_count=0 11621 $as_echo_n 0123456789 >"conftest.in" 11622 while : 11623 do 11624 cat "conftest.in" "conftest.in" >"conftest.tmp" 11625 mv "conftest.tmp" "conftest.in" 11626 cp "conftest.in" "conftest.nl" 11627 $as_echo 'GREP' >> "conftest.nl" 11628 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11629 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11630 as_fn_arith $ac_count + 1 && ac_count=$as_val 11631 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11632 # Best one so far, save it but keep looking for a better one 11633 ac_cv_path_GREP="$ac_path_GREP" 11634 ac_path_GREP_max=$ac_count 11635 fi 11636 # 10*(2^10) chars as input seems more than enough 11637 test $ac_count -gt 10 && break 11638 done 11639 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11640 esac 11641 11642 $ac_path_GREP_found && break 3 11643 done 11644 done 11645 done 11646 IFS=$as_save_IFS 11647 if test -z "$ac_cv_path_GREP"; then 11648 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11649 fi 11650 else 11651 ac_cv_path_GREP=$GREP 11652 fi 11653 11654 fi 11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11656 $as_echo "$ac_cv_path_GREP" >&6; } 11657 GREP="$ac_cv_path_GREP" 11658 11659 11660 else 11661 # If it succeeded, then it was overridden by the user. We will use it 11662 # for the tool. 11663 11664 # First remove it from the list of overridden variables, so we can test 11665 # for unknown variables in the end. 11666 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11667 11668 # Check if the provided tool contains a complete path. 11669 tool_specified="$GREP" 11670 tool_basename="${tool_specified##*/}" 11671 if test "x$tool_basename" = "x$tool_specified"; then 11672 # A command without a complete path is provided, search $PATH. 11673 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 11674 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 11675 # Extract the first word of "$tool_basename", so it can be a program name with args. 11676 set dummy $tool_basename; ac_word=$2 11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11678 $as_echo_n "checking for $ac_word... " >&6; } 11679 if ${ac_cv_path_GREP+:} false; then : 11680 $as_echo_n "(cached) " >&6 11681 else 11682 case $GREP in 11683 [\\/]* | ?:[\\/]*) 11684 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 11685 ;; 11686 *) 11687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11688 for as_dir in $PATH 11689 do 11690 IFS=$as_save_IFS 11691 test -z "$as_dir" && as_dir=. 11692 for ac_exec_ext in '' $ac_executable_extensions; do 11693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11694 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 11695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11696 break 2 11697 fi 11698 done 11699 done 11700 IFS=$as_save_IFS 11701 11702 ;; 11703 esac 11704 fi 11705 GREP=$ac_cv_path_GREP 11706 if test -n "$GREP"; then 11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 11708 $as_echo "$GREP" >&6; } 11709 else 11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11711 $as_echo "no" >&6; } 11712 fi 11713 11714 11715 if test "x$GREP" = x; then 11716 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11717 fi 11718 else 11719 # Otherwise we believe it is a complete path. Use it as it is. 11720 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 11721 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 11723 $as_echo_n "checking for GREP... " >&6; } 11724 if test ! -x "$tool_specified"; then 11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11726 $as_echo "not found" >&6; } 11727 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11728 fi 11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11730 $as_echo "$tool_specified" >&6; } 11731 fi 11732 fi 11733 fi 11734 11735 11736 if test "x$GREP" = x; then 11737 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 11738 fi 11739 11740 11741 11742 11743 # Publish this variable in the help. 11744 11745 11746 if test "x$EGREP" = x; then 11747 # The variable is not set by user, try to locate tool using the code snippet 11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11749 $as_echo_n "checking for egrep... " >&6; } 11750 if ${ac_cv_path_EGREP+:} false; then : 11751 $as_echo_n "(cached) " >&6 11752 else 11753 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11754 then ac_cv_path_EGREP="$GREP -E" 11755 else 11756 if test -z "$EGREP"; then 11757 ac_path_EGREP_found=false 11758 # Loop through the user's path and test for each of PROGNAME-LIST 11759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11760 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11761 do 11762 IFS=$as_save_IFS 11763 test -z "$as_dir" && as_dir=. 11764 for ac_prog in egrep; do 11765 for ac_exec_ext in '' $ac_executable_extensions; do 11766 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11767 as_fn_executable_p "$ac_path_EGREP" || continue 11768 # Check for GNU ac_path_EGREP and select it if it is found. 11769 # Check for GNU $ac_path_EGREP 11770 case `"$ac_path_EGREP" --version 2>&1` in 11771 *GNU*) 11772 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11773 *) 11774 ac_count=0 11775 $as_echo_n 0123456789 >"conftest.in" 11776 while : 11777 do 11778 cat "conftest.in" "conftest.in" >"conftest.tmp" 11779 mv "conftest.tmp" "conftest.in" 11780 cp "conftest.in" "conftest.nl" 11781 $as_echo 'EGREP' >> "conftest.nl" 11782 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11783 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11784 as_fn_arith $ac_count + 1 && ac_count=$as_val 11785 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11786 # Best one so far, save it but keep looking for a better one 11787 ac_cv_path_EGREP="$ac_path_EGREP" 11788 ac_path_EGREP_max=$ac_count 11789 fi 11790 # 10*(2^10) chars as input seems more than enough 11791 test $ac_count -gt 10 && break 11792 done 11793 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11794 esac 11795 11796 $ac_path_EGREP_found && break 3 11797 done 11798 done 11799 done 11800 IFS=$as_save_IFS 11801 if test -z "$ac_cv_path_EGREP"; then 11802 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11803 fi 11804 else 11805 ac_cv_path_EGREP=$EGREP 11806 fi 11807 11808 fi 11809 fi 11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11811 $as_echo "$ac_cv_path_EGREP" >&6; } 11812 EGREP="$ac_cv_path_EGREP" 11813 11814 11815 else 11816 # The variable is set, but is it from the command line or the environment? 11817 11818 # Try to remove the string !EGREP! from our list. 11819 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 11820 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11821 # If it failed, the variable was not from the command line. Ignore it, 11822 # but warn the user (except for BASH, which is always set by the calling BASH). 11823 if test "xEGREP" != xBASH; then 11824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 11825 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 11826 fi 11827 # Try to locate tool using the code snippet 11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11829 $as_echo_n "checking for egrep... " >&6; } 11830 if ${ac_cv_path_EGREP+:} false; then : 11831 $as_echo_n "(cached) " >&6 11832 else 11833 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11834 then ac_cv_path_EGREP="$GREP -E" 11835 else 11836 if test -z "$EGREP"; then 11837 ac_path_EGREP_found=false 11838 # Loop through the user's path and test for each of PROGNAME-LIST 11839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11840 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11841 do 11842 IFS=$as_save_IFS 11843 test -z "$as_dir" && as_dir=. 11844 for ac_prog in egrep; do 11845 for ac_exec_ext in '' $ac_executable_extensions; do 11846 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11847 as_fn_executable_p "$ac_path_EGREP" || continue 11848 # Check for GNU ac_path_EGREP and select it if it is found. 11849 # Check for GNU $ac_path_EGREP 11850 case `"$ac_path_EGREP" --version 2>&1` in 11851 *GNU*) 11852 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11853 *) 11854 ac_count=0 11855 $as_echo_n 0123456789 >"conftest.in" 11856 while : 11857 do 11858 cat "conftest.in" "conftest.in" >"conftest.tmp" 11859 mv "conftest.tmp" "conftest.in" 11860 cp "conftest.in" "conftest.nl" 11861 $as_echo 'EGREP' >> "conftest.nl" 11862 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11863 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11864 as_fn_arith $ac_count + 1 && ac_count=$as_val 11865 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11866 # Best one so far, save it but keep looking for a better one 11867 ac_cv_path_EGREP="$ac_path_EGREP" 11868 ac_path_EGREP_max=$ac_count 11869 fi 11870 # 10*(2^10) chars as input seems more than enough 11871 test $ac_count -gt 10 && break 11872 done 11873 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11874 esac 11875 11876 $ac_path_EGREP_found && break 3 11877 done 11878 done 11879 done 11880 IFS=$as_save_IFS 11881 if test -z "$ac_cv_path_EGREP"; then 11882 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11883 fi 11884 else 11885 ac_cv_path_EGREP=$EGREP 11886 fi 11887 11888 fi 11889 fi 11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11891 $as_echo "$ac_cv_path_EGREP" >&6; } 11892 EGREP="$ac_cv_path_EGREP" 11893 11894 11895 else 11896 # If it succeeded, then it was overridden by the user. We will use it 11897 # for the tool. 11898 11899 # First remove it from the list of overridden variables, so we can test 11900 # for unknown variables in the end. 11901 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11902 11903 # Check if the provided tool contains a complete path. 11904 tool_specified="$EGREP" 11905 tool_basename="${tool_specified##*/}" 11906 if test "x$tool_basename" = "x$tool_specified"; then 11907 # A command without a complete path is provided, search $PATH. 11908 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 11909 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 11910 # Extract the first word of "$tool_basename", so it can be a program name with args. 11911 set dummy $tool_basename; ac_word=$2 11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11913 $as_echo_n "checking for $ac_word... " >&6; } 11914 if ${ac_cv_path_EGREP+:} false; then : 11915 $as_echo_n "(cached) " >&6 11916 else 11917 case $EGREP in 11918 [\\/]* | ?:[\\/]*) 11919 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 11920 ;; 11921 *) 11922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11923 for as_dir in $PATH 11924 do 11925 IFS=$as_save_IFS 11926 test -z "$as_dir" && as_dir=. 11927 for ac_exec_ext in '' $ac_executable_extensions; do 11928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11929 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 11930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11931 break 2 11932 fi 11933 done 11934 done 11935 IFS=$as_save_IFS 11936 11937 ;; 11938 esac 11939 fi 11940 EGREP=$ac_cv_path_EGREP 11941 if test -n "$EGREP"; then 11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 11943 $as_echo "$EGREP" >&6; } 11944 else 11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11946 $as_echo "no" >&6; } 11947 fi 11948 11949 11950 if test "x$EGREP" = x; then 11951 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11952 fi 11953 else 11954 # Otherwise we believe it is a complete path. Use it as it is. 11955 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 11956 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 11958 $as_echo_n "checking for EGREP... " >&6; } 11959 if test ! -x "$tool_specified"; then 11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11961 $as_echo "not found" >&6; } 11962 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11963 fi 11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11965 $as_echo "$tool_specified" >&6; } 11966 fi 11967 fi 11968 fi 11969 11970 11971 if test "x$EGREP" = x; then 11972 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 11973 fi 11974 11975 11976 11977 11978 # Publish this variable in the help. 11979 11980 11981 if test "x$FGREP" = x; then 11982 # The variable is not set by user, try to locate tool using the code snippet 11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11984 $as_echo_n "checking for fgrep... " >&6; } 11985 if ${ac_cv_path_FGREP+:} false; then : 11986 $as_echo_n "(cached) " >&6 11987 else 11988 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11989 then ac_cv_path_FGREP="$GREP -F" 11990 else 11991 if test -z "$FGREP"; then 11992 ac_path_FGREP_found=false 11993 # Loop through the user's path and test for each of PROGNAME-LIST 11994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11995 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11996 do 11997 IFS=$as_save_IFS 11998 test -z "$as_dir" && as_dir=. 11999 for ac_prog in fgrep; do 12000 for ac_exec_ext in '' $ac_executable_extensions; do 12001 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12002 as_fn_executable_p "$ac_path_FGREP" || continue 12003 # Check for GNU ac_path_FGREP and select it if it is found. 12004 # Check for GNU $ac_path_FGREP 12005 case `"$ac_path_FGREP" --version 2>&1` in 12006 *GNU*) 12007 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12008 *) 12009 ac_count=0 12010 $as_echo_n 0123456789 >"conftest.in" 12011 while : 12012 do 12013 cat "conftest.in" "conftest.in" >"conftest.tmp" 12014 mv "conftest.tmp" "conftest.in" 12015 cp "conftest.in" "conftest.nl" 12016 $as_echo 'FGREP' >> "conftest.nl" 12017 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12018 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12019 as_fn_arith $ac_count + 1 && ac_count=$as_val 12020 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12021 # Best one so far, save it but keep looking for a better one 12022 ac_cv_path_FGREP="$ac_path_FGREP" 12023 ac_path_FGREP_max=$ac_count 12024 fi 12025 # 10*(2^10) chars as input seems more than enough 12026 test $ac_count -gt 10 && break 12027 done 12028 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12029 esac 12030 12031 $ac_path_FGREP_found && break 3 12032 done 12033 done 12034 done 12035 IFS=$as_save_IFS 12036 if test -z "$ac_cv_path_FGREP"; then 12037 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12038 fi 12039 else 12040 ac_cv_path_FGREP=$FGREP 12041 fi 12042 12043 fi 12044 fi 12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12046 $as_echo "$ac_cv_path_FGREP" >&6; } 12047 FGREP="$ac_cv_path_FGREP" 12048 12049 12050 else 12051 # The variable is set, but is it from the command line or the environment? 12052 12053 # Try to remove the string !FGREP! from our list. 12054 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 12055 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12056 # If it failed, the variable was not from the command line. Ignore it, 12057 # but warn the user (except for BASH, which is always set by the calling BASH). 12058 if test "xFGREP" != xBASH; then 12059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 12060 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 12061 fi 12062 # Try to locate tool using the code snippet 12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12064 $as_echo_n "checking for fgrep... " >&6; } 12065 if ${ac_cv_path_FGREP+:} false; then : 12066 $as_echo_n "(cached) " >&6 12067 else 12068 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12069 then ac_cv_path_FGREP="$GREP -F" 12070 else 12071 if test -z "$FGREP"; then 12072 ac_path_FGREP_found=false 12073 # Loop through the user's path and test for each of PROGNAME-LIST 12074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12075 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12076 do 12077 IFS=$as_save_IFS 12078 test -z "$as_dir" && as_dir=. 12079 for ac_prog in fgrep; do 12080 for ac_exec_ext in '' $ac_executable_extensions; do 12081 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12082 as_fn_executable_p "$ac_path_FGREP" || continue 12083 # Check for GNU ac_path_FGREP and select it if it is found. 12084 # Check for GNU $ac_path_FGREP 12085 case `"$ac_path_FGREP" --version 2>&1` in 12086 *GNU*) 12087 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12088 *) 12089 ac_count=0 12090 $as_echo_n 0123456789 >"conftest.in" 12091 while : 12092 do 12093 cat "conftest.in" "conftest.in" >"conftest.tmp" 12094 mv "conftest.tmp" "conftest.in" 12095 cp "conftest.in" "conftest.nl" 12096 $as_echo 'FGREP' >> "conftest.nl" 12097 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12098 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12099 as_fn_arith $ac_count + 1 && ac_count=$as_val 12100 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12101 # Best one so far, save it but keep looking for a better one 12102 ac_cv_path_FGREP="$ac_path_FGREP" 12103 ac_path_FGREP_max=$ac_count 12104 fi 12105 # 10*(2^10) chars as input seems more than enough 12106 test $ac_count -gt 10 && break 12107 done 12108 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12109 esac 12110 12111 $ac_path_FGREP_found && break 3 12112 done 12113 done 12114 done 12115 IFS=$as_save_IFS 12116 if test -z "$ac_cv_path_FGREP"; then 12117 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12118 fi 12119 else 12120 ac_cv_path_FGREP=$FGREP 12121 fi 12122 12123 fi 12124 fi 12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12126 $as_echo "$ac_cv_path_FGREP" >&6; } 12127 FGREP="$ac_cv_path_FGREP" 12128 12129 12130 else 12131 # If it succeeded, then it was overridden by the user. We will use it 12132 # for the tool. 12133 12134 # First remove it from the list of overridden variables, so we can test 12135 # for unknown variables in the end. 12136 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12137 12138 # Check if the provided tool contains a complete path. 12139 tool_specified="$FGREP" 12140 tool_basename="${tool_specified##*/}" 12141 if test "x$tool_basename" = "x$tool_specified"; then 12142 # A command without a complete path is provided, search $PATH. 12143 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 12144 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 12145 # Extract the first word of "$tool_basename", so it can be a program name with args. 12146 set dummy $tool_basename; ac_word=$2 12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12148 $as_echo_n "checking for $ac_word... " >&6; } 12149 if ${ac_cv_path_FGREP+:} false; then : 12150 $as_echo_n "(cached) " >&6 12151 else 12152 case $FGREP in 12153 [\\/]* | ?:[\\/]*) 12154 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 12155 ;; 12156 *) 12157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12158 for as_dir in $PATH 12159 do 12160 IFS=$as_save_IFS 12161 test -z "$as_dir" && as_dir=. 12162 for ac_exec_ext in '' $ac_executable_extensions; do 12163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12164 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 12165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12166 break 2 12167 fi 12168 done 12169 done 12170 IFS=$as_save_IFS 12171 12172 ;; 12173 esac 12174 fi 12175 FGREP=$ac_cv_path_FGREP 12176 if test -n "$FGREP"; then 12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 12178 $as_echo "$FGREP" >&6; } 12179 else 12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12181 $as_echo "no" >&6; } 12182 fi 12183 12184 12185 if test "x$FGREP" = x; then 12186 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12187 fi 12188 else 12189 # Otherwise we believe it is a complete path. Use it as it is. 12190 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 12191 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 12193 $as_echo_n "checking for FGREP... " >&6; } 12194 if test ! -x "$tool_specified"; then 12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12196 $as_echo "not found" >&6; } 12197 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12198 fi 12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12200 $as_echo "$tool_specified" >&6; } 12201 fi 12202 fi 12203 fi 12204 12205 12206 if test "x$FGREP" = x; then 12207 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 12208 fi 12209 12210 12211 12212 12213 # Publish this variable in the help. 12214 12215 12216 if test "x$SED" = x; then 12217 # The variable is not set by user, try to locate tool using the code snippet 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12219 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12220 if ${ac_cv_path_SED+:} false; then : 12221 $as_echo_n "(cached) " >&6 12222 else 12223 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12224 for ac_i in 1 2 3 4 5 6 7; do 12225 ac_script="$ac_script$as_nl$ac_script" 12226 done 12227 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12228 { ac_script=; unset ac_script;} 12229 if test -z "$SED"; then 12230 ac_path_SED_found=false 12231 # Loop through the user's path and test for each of PROGNAME-LIST 12232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12233 for as_dir in $PATH 12234 do 12235 IFS=$as_save_IFS 12236 test -z "$as_dir" && as_dir=. 12237 for ac_prog in sed gsed; do 12238 for ac_exec_ext in '' $ac_executable_extensions; do 12239 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12240 as_fn_executable_p "$ac_path_SED" || continue 12241 # Check for GNU ac_path_SED and select it if it is found. 12242 # Check for GNU $ac_path_SED 12243 case `"$ac_path_SED" --version 2>&1` in 12244 *GNU*) 12245 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12246 *) 12247 ac_count=0 12248 $as_echo_n 0123456789 >"conftest.in" 12249 while : 12250 do 12251 cat "conftest.in" "conftest.in" >"conftest.tmp" 12252 mv "conftest.tmp" "conftest.in" 12253 cp "conftest.in" "conftest.nl" 12254 $as_echo '' >> "conftest.nl" 12255 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12257 as_fn_arith $ac_count + 1 && ac_count=$as_val 12258 if test $ac_count -gt ${ac_path_SED_max-0}; then 12259 # Best one so far, save it but keep looking for a better one 12260 ac_cv_path_SED="$ac_path_SED" 12261 ac_path_SED_max=$ac_count 12262 fi 12263 # 10*(2^10) chars as input seems more than enough 12264 test $ac_count -gt 10 && break 12265 done 12266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12267 esac 12268 12269 $ac_path_SED_found && break 3 12270 done 12271 done 12272 done 12273 IFS=$as_save_IFS 12274 if test -z "$ac_cv_path_SED"; then 12275 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12276 fi 12277 else 12278 ac_cv_path_SED=$SED 12279 fi 12280 12281 fi 12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12283 $as_echo "$ac_cv_path_SED" >&6; } 12284 SED="$ac_cv_path_SED" 12285 rm -f conftest.sed 12286 12287 else 12288 # The variable is set, but is it from the command line or the environment? 12289 12290 # Try to remove the string !SED! from our list. 12291 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 12292 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12293 # If it failed, the variable was not from the command line. Ignore it, 12294 # but warn the user (except for BASH, which is always set by the calling BASH). 12295 if test "xSED" != xBASH; then 12296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 12297 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 12298 fi 12299 # Try to locate tool using the code snippet 12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12301 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12302 if ${ac_cv_path_SED+:} false; then : 12303 $as_echo_n "(cached) " >&6 12304 else 12305 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12306 for ac_i in 1 2 3 4 5 6 7; do 12307 ac_script="$ac_script$as_nl$ac_script" 12308 done 12309 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12310 { ac_script=; unset ac_script;} 12311 if test -z "$SED"; then 12312 ac_path_SED_found=false 12313 # Loop through the user's path and test for each of PROGNAME-LIST 12314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12315 for as_dir in $PATH 12316 do 12317 IFS=$as_save_IFS 12318 test -z "$as_dir" && as_dir=. 12319 for ac_prog in sed gsed; do 12320 for ac_exec_ext in '' $ac_executable_extensions; do 12321 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12322 as_fn_executable_p "$ac_path_SED" || continue 12323 # Check for GNU ac_path_SED and select it if it is found. 12324 # Check for GNU $ac_path_SED 12325 case `"$ac_path_SED" --version 2>&1` in 12326 *GNU*) 12327 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12328 *) 12329 ac_count=0 12330 $as_echo_n 0123456789 >"conftest.in" 12331 while : 12332 do 12333 cat "conftest.in" "conftest.in" >"conftest.tmp" 12334 mv "conftest.tmp" "conftest.in" 12335 cp "conftest.in" "conftest.nl" 12336 $as_echo '' >> "conftest.nl" 12337 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12338 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12339 as_fn_arith $ac_count + 1 && ac_count=$as_val 12340 if test $ac_count -gt ${ac_path_SED_max-0}; then 12341 # Best one so far, save it but keep looking for a better one 12342 ac_cv_path_SED="$ac_path_SED" 12343 ac_path_SED_max=$ac_count 12344 fi 12345 # 10*(2^10) chars as input seems more than enough 12346 test $ac_count -gt 10 && break 12347 done 12348 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12349 esac 12350 12351 $ac_path_SED_found && break 3 12352 done 12353 done 12354 done 12355 IFS=$as_save_IFS 12356 if test -z "$ac_cv_path_SED"; then 12357 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12358 fi 12359 else 12360 ac_cv_path_SED=$SED 12361 fi 12362 12363 fi 12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12365 $as_echo "$ac_cv_path_SED" >&6; } 12366 SED="$ac_cv_path_SED" 12367 rm -f conftest.sed 12368 12369 else 12370 # If it succeeded, then it was overridden by the user. We will use it 12371 # for the tool. 12372 12373 # First remove it from the list of overridden variables, so we can test 12374 # for unknown variables in the end. 12375 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12376 12377 # Check if the provided tool contains a complete path. 12378 tool_specified="$SED" 12379 tool_basename="${tool_specified##*/}" 12380 if test "x$tool_basename" = "x$tool_specified"; then 12381 # A command without a complete path is provided, search $PATH. 12382 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 12383 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 12384 # Extract the first word of "$tool_basename", so it can be a program name with args. 12385 set dummy $tool_basename; ac_word=$2 12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12387 $as_echo_n "checking for $ac_word... " >&6; } 12388 if ${ac_cv_path_SED+:} false; then : 12389 $as_echo_n "(cached) " >&6 12390 else 12391 case $SED in 12392 [\\/]* | ?:[\\/]*) 12393 ac_cv_path_SED="$SED" # Let the user override the test with a path. 12394 ;; 12395 *) 12396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12397 for as_dir in $PATH 12398 do 12399 IFS=$as_save_IFS 12400 test -z "$as_dir" && as_dir=. 12401 for ac_exec_ext in '' $ac_executable_extensions; do 12402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12403 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 12404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12405 break 2 12406 fi 12407 done 12408 done 12409 IFS=$as_save_IFS 12410 12411 ;; 12412 esac 12413 fi 12414 SED=$ac_cv_path_SED 12415 if test -n "$SED"; then 12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 12417 $as_echo "$SED" >&6; } 12418 else 12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12420 $as_echo "no" >&6; } 12421 fi 12422 12423 12424 if test "x$SED" = x; then 12425 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12426 fi 12427 else 12428 # Otherwise we believe it is a complete path. Use it as it is. 12429 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 12430 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 12432 $as_echo_n "checking for SED... " >&6; } 12433 if test ! -x "$tool_specified"; then 12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12435 $as_echo "not found" >&6; } 12436 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 12437 fi 12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12439 $as_echo "$tool_specified" >&6; } 12440 fi 12441 fi 12442 fi 12443 12444 12445 if test "x$SED" = x; then 12446 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 12447 fi 12448 12449 12450 12451 # Always force rm. 12452 RM="$RM -f" 12453 12454 # pwd behaves differently on various platforms and some don't support the -L flag. 12455 # Always use the bash builtin pwd to get uniform behavior. 12456 THEPWDCMD=pwd 12457 12458 # These are not required on all platforms 12459 12460 12461 # Publish this variable in the help. 12462 12463 12464 if test "x$CYGPATH" = x; then 12465 # The variable is not set by user, try to locate tool using the code snippet 12466 for ac_prog in cygpath 12467 do 12468 # Extract the first word of "$ac_prog", so it can be a program name with args. 12469 set dummy $ac_prog; ac_word=$2 12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12471 $as_echo_n "checking for $ac_word... " >&6; } 12472 if ${ac_cv_path_CYGPATH+:} false; then : 12473 $as_echo_n "(cached) " >&6 12474 else 12475 case $CYGPATH in 12476 [\\/]* | ?:[\\/]*) 12477 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12478 ;; 12479 *) 12480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12481 for as_dir in $PATH 12482 do 12483 IFS=$as_save_IFS 12484 test -z "$as_dir" && as_dir=. 12485 for ac_exec_ext in '' $ac_executable_extensions; do 12486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12487 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12489 break 2 12490 fi 12491 done 12492 done 12493 IFS=$as_save_IFS 12494 12495 ;; 12496 esac 12497 fi 12498 CYGPATH=$ac_cv_path_CYGPATH 12499 if test -n "$CYGPATH"; then 12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12501 $as_echo "$CYGPATH" >&6; } 12502 else 12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12504 $as_echo "no" >&6; } 12505 fi 12506 12507 12508 test -n "$CYGPATH" && break 12509 done 12510 12511 else 12512 # The variable is set, but is it from the command line or the environment? 12513 12514 # Try to remove the string !CYGPATH! from our list. 12515 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 12516 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12517 # If it failed, the variable was not from the command line. Ignore it, 12518 # but warn the user (except for BASH, which is always set by the calling BASH). 12519 if test "xCYGPATH" != xBASH; then 12520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 12521 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 12522 fi 12523 # Try to locate tool using the code snippet 12524 for ac_prog in cygpath 12525 do 12526 # Extract the first word of "$ac_prog", so it can be a program name with args. 12527 set dummy $ac_prog; ac_word=$2 12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12529 $as_echo_n "checking for $ac_word... " >&6; } 12530 if ${ac_cv_path_CYGPATH+:} false; then : 12531 $as_echo_n "(cached) " >&6 12532 else 12533 case $CYGPATH in 12534 [\\/]* | ?:[\\/]*) 12535 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12536 ;; 12537 *) 12538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12539 for as_dir in $PATH 12540 do 12541 IFS=$as_save_IFS 12542 test -z "$as_dir" && as_dir=. 12543 for ac_exec_ext in '' $ac_executable_extensions; do 12544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12545 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12547 break 2 12548 fi 12549 done 12550 done 12551 IFS=$as_save_IFS 12552 12553 ;; 12554 esac 12555 fi 12556 CYGPATH=$ac_cv_path_CYGPATH 12557 if test -n "$CYGPATH"; then 12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12559 $as_echo "$CYGPATH" >&6; } 12560 else 12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12562 $as_echo "no" >&6; } 12563 fi 12564 12565 12566 test -n "$CYGPATH" && break 12567 done 12568 12569 else 12570 # If it succeeded, then it was overridden by the user. We will use it 12571 # for the tool. 12572 12573 # First remove it from the list of overridden variables, so we can test 12574 # for unknown variables in the end. 12575 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12576 12577 # Check if the provided tool contains a complete path. 12578 tool_specified="$CYGPATH" 12579 tool_basename="${tool_specified##*/}" 12580 if test "x$tool_basename" = "x$tool_specified"; then 12581 # A command without a complete path is provided, search $PATH. 12582 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 12583 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 12584 # Extract the first word of "$tool_basename", so it can be a program name with args. 12585 set dummy $tool_basename; ac_word=$2 12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12587 $as_echo_n "checking for $ac_word... " >&6; } 12588 if ${ac_cv_path_CYGPATH+:} false; then : 12589 $as_echo_n "(cached) " >&6 12590 else 12591 case $CYGPATH in 12592 [\\/]* | ?:[\\/]*) 12593 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12594 ;; 12595 *) 12596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12597 for as_dir in $PATH 12598 do 12599 IFS=$as_save_IFS 12600 test -z "$as_dir" && as_dir=. 12601 for ac_exec_ext in '' $ac_executable_extensions; do 12602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12603 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12605 break 2 12606 fi 12607 done 12608 done 12609 IFS=$as_save_IFS 12610 12611 ;; 12612 esac 12613 fi 12614 CYGPATH=$ac_cv_path_CYGPATH 12615 if test -n "$CYGPATH"; then 12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12617 $as_echo "$CYGPATH" >&6; } 12618 else 12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12620 $as_echo "no" >&6; } 12621 fi 12622 12623 12624 if test "x$CYGPATH" = x; then 12625 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12626 fi 12627 else 12628 # Otherwise we believe it is a complete path. Use it as it is. 12629 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 12630 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 12632 $as_echo_n "checking for CYGPATH... " >&6; } 12633 if test ! -x "$tool_specified"; then 12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12635 $as_echo "not found" >&6; } 12636 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 12637 fi 12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12639 $as_echo "$tool_specified" >&6; } 12640 fi 12641 fi 12642 fi 12643 12644 12645 12646 12647 # Publish this variable in the help. 12648 12649 12650 if test "x$READLINK" = x; then 12651 # The variable is not set by user, try to locate tool using the code snippet 12652 for ac_prog in greadlink readlink 12653 do 12654 # Extract the first word of "$ac_prog", so it can be a program name with args. 12655 set dummy $ac_prog; ac_word=$2 12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12657 $as_echo_n "checking for $ac_word... " >&6; } 12658 if ${ac_cv_path_READLINK+:} false; then : 12659 $as_echo_n "(cached) " >&6 12660 else 12661 case $READLINK in 12662 [\\/]* | ?:[\\/]*) 12663 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12664 ;; 12665 *) 12666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12667 for as_dir in $PATH 12668 do 12669 IFS=$as_save_IFS 12670 test -z "$as_dir" && as_dir=. 12671 for ac_exec_ext in '' $ac_executable_extensions; do 12672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12673 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12675 break 2 12676 fi 12677 done 12678 done 12679 IFS=$as_save_IFS 12680 12681 ;; 12682 esac 12683 fi 12684 READLINK=$ac_cv_path_READLINK 12685 if test -n "$READLINK"; then 12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12687 $as_echo "$READLINK" >&6; } 12688 else 12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12690 $as_echo "no" >&6; } 12691 fi 12692 12693 12694 test -n "$READLINK" && break 12695 done 12696 12697 else 12698 # The variable is set, but is it from the command line or the environment? 12699 12700 # Try to remove the string !READLINK! from our list. 12701 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 12702 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12703 # If it failed, the variable was not from the command line. Ignore it, 12704 # but warn the user (except for BASH, which is always set by the calling BASH). 12705 if test "xREADLINK" != xBASH; then 12706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 12707 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 12708 fi 12709 # Try to locate tool using the code snippet 12710 for ac_prog in greadlink readlink 12711 do 12712 # Extract the first word of "$ac_prog", so it can be a program name with args. 12713 set dummy $ac_prog; ac_word=$2 12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12715 $as_echo_n "checking for $ac_word... " >&6; } 12716 if ${ac_cv_path_READLINK+:} false; then : 12717 $as_echo_n "(cached) " >&6 12718 else 12719 case $READLINK in 12720 [\\/]* | ?:[\\/]*) 12721 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12722 ;; 12723 *) 12724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12725 for as_dir in $PATH 12726 do 12727 IFS=$as_save_IFS 12728 test -z "$as_dir" && as_dir=. 12729 for ac_exec_ext in '' $ac_executable_extensions; do 12730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12731 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12733 break 2 12734 fi 12735 done 12736 done 12737 IFS=$as_save_IFS 12738 12739 ;; 12740 esac 12741 fi 12742 READLINK=$ac_cv_path_READLINK 12743 if test -n "$READLINK"; then 12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12745 $as_echo "$READLINK" >&6; } 12746 else 12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12748 $as_echo "no" >&6; } 12749 fi 12750 12751 12752 test -n "$READLINK" && break 12753 done 12754 12755 else 12756 # If it succeeded, then it was overridden by the user. We will use it 12757 # for the tool. 12758 12759 # First remove it from the list of overridden variables, so we can test 12760 # for unknown variables in the end. 12761 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12762 12763 # Check if the provided tool contains a complete path. 12764 tool_specified="$READLINK" 12765 tool_basename="${tool_specified##*/}" 12766 if test "x$tool_basename" = "x$tool_specified"; then 12767 # A command without a complete path is provided, search $PATH. 12768 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 12769 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 12770 # Extract the first word of "$tool_basename", so it can be a program name with args. 12771 set dummy $tool_basename; ac_word=$2 12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12773 $as_echo_n "checking for $ac_word... " >&6; } 12774 if ${ac_cv_path_READLINK+:} false; then : 12775 $as_echo_n "(cached) " >&6 12776 else 12777 case $READLINK in 12778 [\\/]* | ?:[\\/]*) 12779 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12780 ;; 12781 *) 12782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12783 for as_dir in $PATH 12784 do 12785 IFS=$as_save_IFS 12786 test -z "$as_dir" && as_dir=. 12787 for ac_exec_ext in '' $ac_executable_extensions; do 12788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12789 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12791 break 2 12792 fi 12793 done 12794 done 12795 IFS=$as_save_IFS 12796 12797 ;; 12798 esac 12799 fi 12800 READLINK=$ac_cv_path_READLINK 12801 if test -n "$READLINK"; then 12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12803 $as_echo "$READLINK" >&6; } 12804 else 12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12806 $as_echo "no" >&6; } 12807 fi 12808 12809 12810 if test "x$READLINK" = x; then 12811 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12812 fi 12813 else 12814 # Otherwise we believe it is a complete path. Use it as it is. 12815 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 12816 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 12818 $as_echo_n "checking for READLINK... " >&6; } 12819 if test ! -x "$tool_specified"; then 12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12821 $as_echo "not found" >&6; } 12822 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 12823 fi 12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12825 $as_echo "$tool_specified" >&6; } 12826 fi 12827 fi 12828 fi 12829 12830 12831 12832 12833 # Publish this variable in the help. 12834 12835 12836 if test "x$DF" = x; then 12837 # The variable is not set by user, try to locate tool using the code snippet 12838 for ac_prog in df 12839 do 12840 # Extract the first word of "$ac_prog", so it can be a program name with args. 12841 set dummy $ac_prog; ac_word=$2 12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12843 $as_echo_n "checking for $ac_word... " >&6; } 12844 if ${ac_cv_path_DF+:} false; then : 12845 $as_echo_n "(cached) " >&6 12846 else 12847 case $DF in 12848 [\\/]* | ?:[\\/]*) 12849 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12850 ;; 12851 *) 12852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12853 for as_dir in $PATH 12854 do 12855 IFS=$as_save_IFS 12856 test -z "$as_dir" && as_dir=. 12857 for ac_exec_ext in '' $ac_executable_extensions; do 12858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12859 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12861 break 2 12862 fi 12863 done 12864 done 12865 IFS=$as_save_IFS 12866 12867 ;; 12868 esac 12869 fi 12870 DF=$ac_cv_path_DF 12871 if test -n "$DF"; then 12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12873 $as_echo "$DF" >&6; } 12874 else 12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12876 $as_echo "no" >&6; } 12877 fi 12878 12879 12880 test -n "$DF" && break 12881 done 12882 12883 else 12884 # The variable is set, but is it from the command line or the environment? 12885 12886 # Try to remove the string !DF! from our list. 12887 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 12888 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12889 # If it failed, the variable was not from the command line. Ignore it, 12890 # but warn the user (except for BASH, which is always set by the calling BASH). 12891 if test "xDF" != xBASH; then 12892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 12893 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 12894 fi 12895 # Try to locate tool using the code snippet 12896 for ac_prog in df 12897 do 12898 # Extract the first word of "$ac_prog", so it can be a program name with args. 12899 set dummy $ac_prog; ac_word=$2 12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12901 $as_echo_n "checking for $ac_word... " >&6; } 12902 if ${ac_cv_path_DF+:} false; then : 12903 $as_echo_n "(cached) " >&6 12904 else 12905 case $DF in 12906 [\\/]* | ?:[\\/]*) 12907 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12908 ;; 12909 *) 12910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12911 for as_dir in $PATH 12912 do 12913 IFS=$as_save_IFS 12914 test -z "$as_dir" && as_dir=. 12915 for ac_exec_ext in '' $ac_executable_extensions; do 12916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12917 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12919 break 2 12920 fi 12921 done 12922 done 12923 IFS=$as_save_IFS 12924 12925 ;; 12926 esac 12927 fi 12928 DF=$ac_cv_path_DF 12929 if test -n "$DF"; then 12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12931 $as_echo "$DF" >&6; } 12932 else 12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12934 $as_echo "no" >&6; } 12935 fi 12936 12937 12938 test -n "$DF" && break 12939 done 12940 12941 else 12942 # If it succeeded, then it was overridden by the user. We will use it 12943 # for the tool. 12944 12945 # First remove it from the list of overridden variables, so we can test 12946 # for unknown variables in the end. 12947 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12948 12949 # Check if the provided tool contains a complete path. 12950 tool_specified="$DF" 12951 tool_basename="${tool_specified##*/}" 12952 if test "x$tool_basename" = "x$tool_specified"; then 12953 # A command without a complete path is provided, search $PATH. 12954 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 12955 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 12956 # Extract the first word of "$tool_basename", so it can be a program name with args. 12957 set dummy $tool_basename; ac_word=$2 12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12959 $as_echo_n "checking for $ac_word... " >&6; } 12960 if ${ac_cv_path_DF+:} false; then : 12961 $as_echo_n "(cached) " >&6 12962 else 12963 case $DF in 12964 [\\/]* | ?:[\\/]*) 12965 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12966 ;; 12967 *) 12968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12969 for as_dir in $PATH 12970 do 12971 IFS=$as_save_IFS 12972 test -z "$as_dir" && as_dir=. 12973 for ac_exec_ext in '' $ac_executable_extensions; do 12974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12975 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12977 break 2 12978 fi 12979 done 12980 done 12981 IFS=$as_save_IFS 12982 12983 ;; 12984 esac 12985 fi 12986 DF=$ac_cv_path_DF 12987 if test -n "$DF"; then 12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12989 $as_echo "$DF" >&6; } 12990 else 12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12992 $as_echo "no" >&6; } 12993 fi 12994 12995 12996 if test "x$DF" = x; then 12997 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12998 fi 12999 else 13000 # Otherwise we believe it is a complete path. Use it as it is. 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 13002 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 13004 $as_echo_n "checking for DF... " >&6; } 13005 if test ! -x "$tool_specified"; then 13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13007 $as_echo "not found" >&6; } 13008 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 13009 fi 13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13011 $as_echo "$tool_specified" >&6; } 13012 fi 13013 fi 13014 fi 13015 13016 13017 13018 13019 # Publish this variable in the help. 13020 13021 13022 if test "x$SETFILE" = x; then 13023 # The variable is not set by user, try to locate tool using the code snippet 13024 for ac_prog in SetFile 13025 do 13026 # Extract the first word of "$ac_prog", so it can be a program name with args. 13027 set dummy $ac_prog; ac_word=$2 13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13029 $as_echo_n "checking for $ac_word... " >&6; } 13030 if ${ac_cv_path_SETFILE+:} false; then : 13031 $as_echo_n "(cached) " >&6 13032 else 13033 case $SETFILE in 13034 [\\/]* | ?:[\\/]*) 13035 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13036 ;; 13037 *) 13038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13039 for as_dir in $PATH 13040 do 13041 IFS=$as_save_IFS 13042 test -z "$as_dir" && as_dir=. 13043 for ac_exec_ext in '' $ac_executable_extensions; do 13044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13045 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13047 break 2 13048 fi 13049 done 13050 done 13051 IFS=$as_save_IFS 13052 13053 ;; 13054 esac 13055 fi 13056 SETFILE=$ac_cv_path_SETFILE 13057 if test -n "$SETFILE"; then 13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13059 $as_echo "$SETFILE" >&6; } 13060 else 13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13062 $as_echo "no" >&6; } 13063 fi 13064 13065 13066 test -n "$SETFILE" && break 13067 done 13068 13069 else 13070 # The variable is set, but is it from the command line or the environment? 13071 13072 # Try to remove the string !SETFILE! from our list. 13073 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 13074 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13075 # If it failed, the variable was not from the command line. Ignore it, 13076 # but warn the user (except for BASH, which is always set by the calling BASH). 13077 if test "xSETFILE" != xBASH; then 13078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 13079 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 13080 fi 13081 # Try to locate tool using the code snippet 13082 for ac_prog in SetFile 13083 do 13084 # Extract the first word of "$ac_prog", so it can be a program name with args. 13085 set dummy $ac_prog; ac_word=$2 13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13087 $as_echo_n "checking for $ac_word... " >&6; } 13088 if ${ac_cv_path_SETFILE+:} false; then : 13089 $as_echo_n "(cached) " >&6 13090 else 13091 case $SETFILE in 13092 [\\/]* | ?:[\\/]*) 13093 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13094 ;; 13095 *) 13096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13097 for as_dir in $PATH 13098 do 13099 IFS=$as_save_IFS 13100 test -z "$as_dir" && as_dir=. 13101 for ac_exec_ext in '' $ac_executable_extensions; do 13102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13103 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13105 break 2 13106 fi 13107 done 13108 done 13109 IFS=$as_save_IFS 13110 13111 ;; 13112 esac 13113 fi 13114 SETFILE=$ac_cv_path_SETFILE 13115 if test -n "$SETFILE"; then 13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13117 $as_echo "$SETFILE" >&6; } 13118 else 13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13120 $as_echo "no" >&6; } 13121 fi 13122 13123 13124 test -n "$SETFILE" && break 13125 done 13126 13127 else 13128 # If it succeeded, then it was overridden by the user. We will use it 13129 # for the tool. 13130 13131 # First remove it from the list of overridden variables, so we can test 13132 # for unknown variables in the end. 13133 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13134 13135 # Check if the provided tool contains a complete path. 13136 tool_specified="$SETFILE" 13137 tool_basename="${tool_specified##*/}" 13138 if test "x$tool_basename" = "x$tool_specified"; then 13139 # A command without a complete path is provided, search $PATH. 13140 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 13141 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 13142 # Extract the first word of "$tool_basename", so it can be a program name with args. 13143 set dummy $tool_basename; ac_word=$2 13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13145 $as_echo_n "checking for $ac_word... " >&6; } 13146 if ${ac_cv_path_SETFILE+:} false; then : 13147 $as_echo_n "(cached) " >&6 13148 else 13149 case $SETFILE in 13150 [\\/]* | ?:[\\/]*) 13151 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13152 ;; 13153 *) 13154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13155 for as_dir in $PATH 13156 do 13157 IFS=$as_save_IFS 13158 test -z "$as_dir" && as_dir=. 13159 for ac_exec_ext in '' $ac_executable_extensions; do 13160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13161 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13163 break 2 13164 fi 13165 done 13166 done 13167 IFS=$as_save_IFS 13168 13169 ;; 13170 esac 13171 fi 13172 SETFILE=$ac_cv_path_SETFILE 13173 if test -n "$SETFILE"; then 13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13175 $as_echo "$SETFILE" >&6; } 13176 else 13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13178 $as_echo "no" >&6; } 13179 fi 13180 13181 13182 if test "x$SETFILE" = x; then 13183 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13184 fi 13185 else 13186 # Otherwise we believe it is a complete path. Use it as it is. 13187 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 13188 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 13190 $as_echo_n "checking for SETFILE... " >&6; } 13191 if test ! -x "$tool_specified"; then 13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13193 $as_echo "not found" >&6; } 13194 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 13195 fi 13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13197 $as_echo "$tool_specified" >&6; } 13198 fi 13199 fi 13200 fi 13201 13202 13203 13204 13205 # Publish this variable in the help. 13206 13207 13208 if test "x$CPIO" = x; then 13209 # The variable is not set by user, try to locate tool using the code snippet 13210 for ac_prog in cpio bsdcpio 13211 do 13212 # Extract the first word of "$ac_prog", so it can be a program name with args. 13213 set dummy $ac_prog; ac_word=$2 13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13215 $as_echo_n "checking for $ac_word... " >&6; } 13216 if ${ac_cv_path_CPIO+:} false; then : 13217 $as_echo_n "(cached) " >&6 13218 else 13219 case $CPIO in 13220 [\\/]* | ?:[\\/]*) 13221 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13222 ;; 13223 *) 13224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13225 for as_dir in $PATH 13226 do 13227 IFS=$as_save_IFS 13228 test -z "$as_dir" && as_dir=. 13229 for ac_exec_ext in '' $ac_executable_extensions; do 13230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13231 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13233 break 2 13234 fi 13235 done 13236 done 13237 IFS=$as_save_IFS 13238 13239 ;; 13240 esac 13241 fi 13242 CPIO=$ac_cv_path_CPIO 13243 if test -n "$CPIO"; then 13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13245 $as_echo "$CPIO" >&6; } 13246 else 13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13248 $as_echo "no" >&6; } 13249 fi 13250 13251 13252 test -n "$CPIO" && break 13253 done 13254 13255 else 13256 # The variable is set, but is it from the command line or the environment? 13257 13258 # Try to remove the string !CPIO! from our list. 13259 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 13260 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13261 # If it failed, the variable was not from the command line. Ignore it, 13262 # but warn the user (except for BASH, which is always set by the calling BASH). 13263 if test "xCPIO" != xBASH; then 13264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 13265 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 13266 fi 13267 # Try to locate tool using the code snippet 13268 for ac_prog in cpio bsdcpio 13269 do 13270 # Extract the first word of "$ac_prog", so it can be a program name with args. 13271 set dummy $ac_prog; ac_word=$2 13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13273 $as_echo_n "checking for $ac_word... " >&6; } 13274 if ${ac_cv_path_CPIO+:} false; then : 13275 $as_echo_n "(cached) " >&6 13276 else 13277 case $CPIO in 13278 [\\/]* | ?:[\\/]*) 13279 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13280 ;; 13281 *) 13282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13283 for as_dir in $PATH 13284 do 13285 IFS=$as_save_IFS 13286 test -z "$as_dir" && as_dir=. 13287 for ac_exec_ext in '' $ac_executable_extensions; do 13288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13289 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13291 break 2 13292 fi 13293 done 13294 done 13295 IFS=$as_save_IFS 13296 13297 ;; 13298 esac 13299 fi 13300 CPIO=$ac_cv_path_CPIO 13301 if test -n "$CPIO"; then 13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13303 $as_echo "$CPIO" >&6; } 13304 else 13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13306 $as_echo "no" >&6; } 13307 fi 13308 13309 13310 test -n "$CPIO" && break 13311 done 13312 13313 else 13314 # If it succeeded, then it was overridden by the user. We will use it 13315 # for the tool. 13316 13317 # First remove it from the list of overridden variables, so we can test 13318 # for unknown variables in the end. 13319 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13320 13321 # Check if the provided tool contains a complete path. 13322 tool_specified="$CPIO" 13323 tool_basename="${tool_specified##*/}" 13324 if test "x$tool_basename" = "x$tool_specified"; then 13325 # A command without a complete path is provided, search $PATH. 13326 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 13327 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 13328 # Extract the first word of "$tool_basename", so it can be a program name with args. 13329 set dummy $tool_basename; ac_word=$2 13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13331 $as_echo_n "checking for $ac_word... " >&6; } 13332 if ${ac_cv_path_CPIO+:} false; then : 13333 $as_echo_n "(cached) " >&6 13334 else 13335 case $CPIO in 13336 [\\/]* | ?:[\\/]*) 13337 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13338 ;; 13339 *) 13340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13341 for as_dir in $PATH 13342 do 13343 IFS=$as_save_IFS 13344 test -z "$as_dir" && as_dir=. 13345 for ac_exec_ext in '' $ac_executable_extensions; do 13346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13347 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13349 break 2 13350 fi 13351 done 13352 done 13353 IFS=$as_save_IFS 13354 13355 ;; 13356 esac 13357 fi 13358 CPIO=$ac_cv_path_CPIO 13359 if test -n "$CPIO"; then 13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13361 $as_echo "$CPIO" >&6; } 13362 else 13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13364 $as_echo "no" >&6; } 13365 fi 13366 13367 13368 if test "x$CPIO" = x; then 13369 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13370 fi 13371 else 13372 # Otherwise we believe it is a complete path. Use it as it is. 13373 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 13374 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 13376 $as_echo_n "checking for CPIO... " >&6; } 13377 if test ! -x "$tool_specified"; then 13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13379 $as_echo "not found" >&6; } 13380 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 13381 fi 13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13383 $as_echo "$tool_specified" >&6; } 13384 fi 13385 fi 13386 fi 13387 13388 13389 13390 13391 # Now we can determine OpenJDK build and target platforms. This is required to 13392 # have early on. 13393 # Make sure we can run config.sub. 13394 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 13395 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 13396 13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 13398 $as_echo_n "checking build system type... " >&6; } 13399 if ${ac_cv_build+:} false; then : 13400 $as_echo_n "(cached) " >&6 13401 else 13402 ac_build_alias=$build_alias 13403 test "x$ac_build_alias" = x && 13404 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 13405 test "x$ac_build_alias" = x && 13406 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 13407 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 13408 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 13409 13410 fi 13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 13412 $as_echo "$ac_cv_build" >&6; } 13413 case $ac_cv_build in 13414 *-*-*) ;; 13415 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 13416 esac 13417 build=$ac_cv_build 13418 ac_save_IFS=$IFS; IFS='-' 13419 set x $ac_cv_build 13420 shift 13421 build_cpu=$1 13422 build_vendor=$2 13423 shift; shift 13424 # Remember, the first character of IFS is used to create $*, 13425 # except with old shells: 13426 build_os=$* 13427 IFS=$ac_save_IFS 13428 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 13429 13430 13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 13432 $as_echo_n "checking host system type... " >&6; } 13433 if ${ac_cv_host+:} false; then : 13434 $as_echo_n "(cached) " >&6 13435 else 13436 if test "x$host_alias" = x; then 13437 ac_cv_host=$ac_cv_build 13438 else 13439 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 13440 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 13441 fi 13442 13443 fi 13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 13445 $as_echo "$ac_cv_host" >&6; } 13446 case $ac_cv_host in 13447 *-*-*) ;; 13448 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 13449 esac 13450 host=$ac_cv_host 13451 ac_save_IFS=$IFS; IFS='-' 13452 set x $ac_cv_host 13453 shift 13454 host_cpu=$1 13455 host_vendor=$2 13456 shift; shift 13457 # Remember, the first character of IFS is used to create $*, 13458 # except with old shells: 13459 host_os=$* 13460 IFS=$ac_save_IFS 13461 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 13462 13463 13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 13465 $as_echo_n "checking target system type... " >&6; } 13466 if ${ac_cv_target+:} false; then : 13467 $as_echo_n "(cached) " >&6 13468 else 13469 if test "x$target_alias" = x; then 13470 ac_cv_target=$ac_cv_host 13471 else 13472 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 13473 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 13474 fi 13475 13476 fi 13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 13478 $as_echo "$ac_cv_target" >&6; } 13479 case $ac_cv_target in 13480 *-*-*) ;; 13481 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 13482 esac 13483 target=$ac_cv_target 13484 ac_save_IFS=$IFS; IFS='-' 13485 set x $ac_cv_target 13486 shift 13487 target_cpu=$1 13488 target_vendor=$2 13489 shift; shift 13490 # Remember, the first character of IFS is used to create $*, 13491 # except with old shells: 13492 target_os=$* 13493 IFS=$ac_save_IFS 13494 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 13495 13496 13497 # The aliases save the names the user supplied, while $host etc. 13498 # will get canonicalized. 13499 test -n "$target_alias" && 13500 test "$program_prefix$program_suffix$program_transform_name" = \ 13501 NONENONEs,x,x, && 13502 program_prefix=${target_alias}- 13503 13504 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 13505 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 13506 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 13507 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 13508 # to use the configure naming style. 13509 13510 13511 13512 13513 13514 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 13515 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 13516 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 13517 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 13518 OPENJDK_TARGET_AUTOCONF_NAME="$host" 13519 OPENJDK_BUILD_AUTOCONF_NAME="$build" 13520 13521 13522 13523 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13524 13525 case "$build_os" in 13526 *linux*) 13527 VAR_OS=linux 13528 VAR_OS_API=posix 13529 VAR_OS_ENV=linux 13530 ;; 13531 *solaris*) 13532 VAR_OS=solaris 13533 VAR_OS_API=posix 13534 VAR_OS_ENV=solaris 13535 ;; 13536 *darwin*) 13537 VAR_OS=macosx 13538 VAR_OS_API=posix 13539 VAR_OS_ENV=macosx 13540 ;; 13541 *bsd*) 13542 VAR_OS=bsd 13543 VAR_OS_API=posix 13544 VAR_OS_ENV=bsd 13545 ;; 13546 *cygwin*) 13547 VAR_OS=windows 13548 VAR_OS_API=winapi 13549 VAR_OS_ENV=windows.cygwin 13550 ;; 13551 *mingw*) 13552 VAR_OS=windows 13553 VAR_OS_API=winapi 13554 VAR_OS_ENV=windows.msys 13555 ;; 13556 *aix*) 13557 VAR_OS=aix 13558 VAR_OS_API=posix 13559 VAR_OS_ENV=aix 13560 ;; 13561 *) 13562 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 13563 ;; 13564 esac 13565 13566 13567 # First argument is the cpu name from the trip/quad 13568 case "$build_cpu" in 13569 x86_64) 13570 VAR_CPU=x86_64 13571 VAR_CPU_ARCH=x86 13572 VAR_CPU_BITS=64 13573 VAR_CPU_ENDIAN=little 13574 ;; 13575 i?86) 13576 VAR_CPU=x86 13577 VAR_CPU_ARCH=x86 13578 VAR_CPU_BITS=32 13579 VAR_CPU_ENDIAN=little 13580 ;; 13581 arm*) 13582 VAR_CPU=arm 13583 VAR_CPU_ARCH=arm 13584 VAR_CPU_BITS=32 13585 VAR_CPU_ENDIAN=little 13586 ;; 13587 powerpc) 13588 VAR_CPU=ppc 13589 VAR_CPU_ARCH=ppc 13590 VAR_CPU_BITS=32 13591 VAR_CPU_ENDIAN=big 13592 ;; 13593 powerpc64) 13594 VAR_CPU=ppc64 13595 VAR_CPU_ARCH=ppc 13596 VAR_CPU_BITS=64 13597 VAR_CPU_ENDIAN=big 13598 ;; 13599 powerpc64le) 13600 VAR_CPU=ppc64 13601 VAR_CPU_ARCH=ppc 13602 VAR_CPU_BITS=64 13603 VAR_CPU_ENDIAN=little 13604 ;; 13605 s390) 13606 VAR_CPU=s390 13607 VAR_CPU_ARCH=s390 13608 VAR_CPU_BITS=32 13609 VAR_CPU_ENDIAN=big 13610 ;; 13611 s390x) 13612 VAR_CPU=s390x 13613 VAR_CPU_ARCH=s390 13614 VAR_CPU_BITS=64 13615 VAR_CPU_ENDIAN=big 13616 ;; 13617 sparc) 13618 VAR_CPU=sparc 13619 VAR_CPU_ARCH=sparc 13620 VAR_CPU_BITS=32 13621 VAR_CPU_ENDIAN=big 13622 ;; 13623 sparcv9|sparc64) 13624 VAR_CPU=sparcv9 13625 VAR_CPU_ARCH=sparc 13626 VAR_CPU_BITS=64 13627 VAR_CPU_ENDIAN=big 13628 ;; 13629 *) 13630 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 13631 ;; 13632 esac 13633 13634 # ..and setup our own variables. (Do this explicitely to facilitate searching) 13635 OPENJDK_BUILD_OS="$VAR_OS" 13636 OPENJDK_BUILD_OS_API="$VAR_OS_API" 13637 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 13638 OPENJDK_BUILD_CPU="$VAR_CPU" 13639 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 13640 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 13641 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13642 13643 13644 13645 13646 13647 13648 13649 13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 13651 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 13653 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 13654 13655 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13656 13657 case "$host_os" in 13658 *linux*) 13659 VAR_OS=linux 13660 VAR_OS_API=posix 13661 VAR_OS_ENV=linux 13662 ;; 13663 *solaris*) 13664 VAR_OS=solaris 13665 VAR_OS_API=posix 13666 VAR_OS_ENV=solaris 13667 ;; 13668 *darwin*) 13669 VAR_OS=macosx 13670 VAR_OS_API=posix 13671 VAR_OS_ENV=macosx 13672 ;; 13673 *bsd*) 13674 VAR_OS=bsd 13675 VAR_OS_API=posix 13676 VAR_OS_ENV=bsd 13677 ;; 13678 *cygwin*) 13679 VAR_OS=windows 13680 VAR_OS_API=winapi 13681 VAR_OS_ENV=windows.cygwin 13682 ;; 13683 *mingw*) 13684 VAR_OS=windows 13685 VAR_OS_API=winapi 13686 VAR_OS_ENV=windows.msys 13687 ;; 13688 *aix*) 13689 VAR_OS=aix 13690 VAR_OS_API=posix 13691 VAR_OS_ENV=aix 13692 ;; 13693 *) 13694 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 13695 ;; 13696 esac 13697 13698 13699 # First argument is the cpu name from the trip/quad 13700 case "$host_cpu" in 13701 x86_64) 13702 VAR_CPU=x86_64 13703 VAR_CPU_ARCH=x86 13704 VAR_CPU_BITS=64 13705 VAR_CPU_ENDIAN=little 13706 ;; 13707 i?86) 13708 VAR_CPU=x86 13709 VAR_CPU_ARCH=x86 13710 VAR_CPU_BITS=32 13711 VAR_CPU_ENDIAN=little 13712 ;; 13713 arm*) 13714 VAR_CPU=arm 13715 VAR_CPU_ARCH=arm 13716 VAR_CPU_BITS=32 13717 VAR_CPU_ENDIAN=little 13718 ;; 13719 powerpc) 13720 VAR_CPU=ppc 13721 VAR_CPU_ARCH=ppc 13722 VAR_CPU_BITS=32 13723 VAR_CPU_ENDIAN=big 13724 ;; 13725 powerpc64) 13726 VAR_CPU=ppc64 13727 VAR_CPU_ARCH=ppc 13728 VAR_CPU_BITS=64 13729 VAR_CPU_ENDIAN=big 13730 ;; 13731 powerpc64le) 13732 VAR_CPU=ppc64 13733 VAR_CPU_ARCH=ppc 13734 VAR_CPU_BITS=64 13735 VAR_CPU_ENDIAN=little 13736 ;; 13737 s390) 13738 VAR_CPU=s390 13739 VAR_CPU_ARCH=s390 13740 VAR_CPU_BITS=32 13741 VAR_CPU_ENDIAN=big 13742 ;; 13743 s390x) 13744 VAR_CPU=s390x 13745 VAR_CPU_ARCH=s390 13746 VAR_CPU_BITS=64 13747 VAR_CPU_ENDIAN=big 13748 ;; 13749 sparc) 13750 VAR_CPU=sparc 13751 VAR_CPU_ARCH=sparc 13752 VAR_CPU_BITS=32 13753 VAR_CPU_ENDIAN=big 13754 ;; 13755 sparcv9|sparc64) 13756 VAR_CPU=sparcv9 13757 VAR_CPU_ARCH=sparc 13758 VAR_CPU_BITS=64 13759 VAR_CPU_ENDIAN=big 13760 ;; 13761 *) 13762 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 13763 ;; 13764 esac 13765 13766 # ... and setup our own variables. (Do this explicitely to facilitate searching) 13767 OPENJDK_TARGET_OS="$VAR_OS" 13768 OPENJDK_TARGET_OS_API="$VAR_OS_API" 13769 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 13770 OPENJDK_TARGET_CPU="$VAR_CPU" 13771 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 13772 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 13773 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13774 13775 13776 13777 13778 13779 13780 13781 13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 13783 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 13785 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 13786 13787 13788 13789 # Check whether --with-target-bits was given. 13790 if test "${with_target_bits+set}" = set; then : 13791 withval=$with_target_bits; 13792 fi 13793 13794 13795 # We have three types of compiles: 13796 # native == normal compilation, target system == build system 13797 # cross == traditional cross compilation, target system != build system; special toolchain needed 13798 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 13799 # 13800 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 13801 # We're doing a proper cross-compilation 13802 COMPILE_TYPE="cross" 13803 else 13804 COMPILE_TYPE="native" 13805 fi 13806 13807 if test "x$with_target_bits" != x; then 13808 if test "x$COMPILE_TYPE" = "xcross"; then 13809 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 13810 fi 13811 13812 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13813 # A reduced build is requested 13814 COMPILE_TYPE="reduced" 13815 OPENJDK_TARGET_CPU_BITS=32 13816 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 13817 OPENJDK_TARGET_CPU=x86 13818 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 13819 OPENJDK_TARGET_CPU=sparc 13820 else 13821 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 13822 fi 13823 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 13824 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 13825 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 13826 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 13827 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 13828 else 13829 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 13830 fi 13831 fi 13832 13833 13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 13835 $as_echo_n "checking compilation type... " >&6; } 13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 13837 $as_echo "$COMPILE_TYPE" >&6; } 13838 13839 13840 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 13841 REQUIRED_OS_NAME=SunOS 13842 REQUIRED_OS_VERSION=5.10 13843 fi 13844 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 13845 REQUIRED_OS_NAME=Linux 13846 REQUIRED_OS_VERSION=2.6 13847 fi 13848 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13849 REQUIRED_OS_NAME=Windows 13850 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 13851 REQUIRED_OS_VERSION=5.2 13852 else 13853 REQUIRED_OS_VERSION=5.1 13854 fi 13855 fi 13856 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 13857 REQUIRED_OS_NAME=Darwin 13858 REQUIRED_OS_VERSION=11.2 13859 fi 13860 13861 13862 13863 13864 13865 # Also store the legacy naming of the cpu. 13866 # Ie i586 and amd64 instead of x86 and x86_64 13867 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 13868 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13869 OPENJDK_TARGET_CPU_LEGACY="i586" 13870 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13871 # On all platforms except MacOSX replace x86_64 with amd64. 13872 OPENJDK_TARGET_CPU_LEGACY="amd64" 13873 fi 13874 13875 13876 # And the second legacy naming of the cpu. 13877 # Ie i386 and amd64 instead of x86 and x86_64. 13878 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 13879 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13880 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 13881 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13882 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 13883 fi 13884 13885 13886 # This is the name of the cpu (but using i386 and amd64 instead of 13887 # x86 and x86_64, respectively), preceeded by a /, to be used when 13888 # locating libraries. On macosx, it's empty, though. 13889 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 13890 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13891 OPENJDK_TARGET_CPU_LIBDIR="" 13892 fi 13893 13894 13895 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 13896 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 13897 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 13898 OPENJDK_TARGET_CPU_ISADIR="" 13899 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13900 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13901 OPENJDK_TARGET_CPU_ISADIR="/amd64" 13902 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 13903 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 13904 fi 13905 fi 13906 13907 13908 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 13909 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 13910 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 13911 # On linux only, we replace x86 with i386. 13912 OPENJDK_TARGET_CPU_OSARCH="i386" 13913 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13914 # On all platforms except macosx, we replace x86_64 with amd64. 13915 OPENJDK_TARGET_CPU_OSARCH="amd64" 13916 fi 13917 13918 13919 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 13920 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13921 OPENJDK_TARGET_CPU_JLI="i386" 13922 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13923 # On all platforms except macosx, we replace x86_64 with amd64. 13924 OPENJDK_TARGET_CPU_JLI="amd64" 13925 fi 13926 # Now setup the -D flags for building libjli. 13927 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 13928 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13929 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 13930 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 13931 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 13932 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 13933 fi 13934 fi 13935 13936 13937 # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths. 13938 if test "x$OPENJDK_TARGET_OS_API" = xposix; then 13939 OPENJDK_TARGET_OS_API_DIR="unix" 13940 fi 13941 if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then 13942 OPENJDK_TARGET_OS_API_DIR="windows" 13943 fi 13944 13945 13946 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13947 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 13948 else 13949 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR} 13950 fi 13951 13952 13953 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13954 A_LP64="LP64:=" 13955 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 13956 # unpack200.exe 13957 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 13958 ADD_LP64="-D_LP64=1" 13959 fi 13960 fi 13961 LP64=$A_LP64 13962 13963 13964 if test "x$COMPILE_TYPE" = "xcross"; then 13965 # FIXME: ... or should this include reduced builds..? 13966 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 13967 else 13968 DEFINE_CROSS_COMPILE_ARCH="" 13969 fi 13970 13971 13972 # ZERO_ARCHDEF is used to enable architecture-specific code 13973 case "${OPENJDK_TARGET_CPU}" in 13974 ppc*) ZERO_ARCHDEF=PPC ;; 13975 s390*) ZERO_ARCHDEF=S390 ;; 13976 sparc*) ZERO_ARCHDEF=SPARC ;; 13977 x86_64*) ZERO_ARCHDEF=AMD64 ;; 13978 x86) ZERO_ARCHDEF=IA32 ;; 13979 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 13980 esac 13981 13982 13983 13984 13985 # Continue setting up basic stuff. Most remaining code require fundamental tools. 13986 13987 # Save the current directory this script was started from 13988 CURDIR="$PWD" 13989 13990 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13991 PATH_SEP=";" 13992 13993 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 13994 if test $SRC_ROOT_LENGTH -gt 100; then 13995 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 13996 fi 13997 13998 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 14000 $as_echo_n "checking cygwin release... " >&6; } 14001 CYGWIN_VERSION=`$UNAME -r` 14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 14003 $as_echo "$CYGWIN_VERSION" >&6; } 14004 WINDOWS_ENV_VENDOR='cygwin' 14005 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 14006 14007 CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.` 14008 if test "x$CYGWIN_VERSION_OK" = x; then 14009 { $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 14010 $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;} 14011 as_fn_error $? "Cannot continue" "$LINENO" 5 14012 fi 14013 if test "x$CYGPATH" = x; then 14014 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 14015 fi 14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 14017 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 14018 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14019 cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"` 14020 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 14021 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 14023 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 14024 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 14025 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 14026 if test "x$test_cygdrive_prefix" = x; then 14027 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 14028 fi 14029 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 14031 $as_echo_n "checking msys release... " >&6; } 14032 MSYS_VERSION=`$UNAME -r` 14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 14034 $as_echo "$MSYS_VERSION" >&6; } 14035 14036 WINDOWS_ENV_VENDOR='msys' 14037 WINDOWS_ENV_VERSION="$MSYS_VERSION" 14038 14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 14040 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 14041 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14042 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 14043 14044 windows_path="$MSYS_ROOT_PATH" 14045 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14046 unix_path=`$CYGPATH -u "$windows_path"` 14047 MSYS_ROOT_PATH="$unix_path" 14048 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14049 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14050 MSYS_ROOT_PATH="$unix_path" 14051 fi 14052 14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 14054 $as_echo "$MSYS_ROOT_PATH" >&6; } 14055 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 14056 else 14057 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 14058 fi 14059 14060 # Test if windows or unix (cygwin/msys) find is first in path. 14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 14062 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 14063 FIND_BINARY_OUTPUT=`find --version 2>&1` 14064 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 14066 $as_echo "unix style" >&6; } 14067 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 14069 $as_echo "Windows" >&6; } 14070 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 14071 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 14072 { $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 14073 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 14074 as_fn_error $? "Cannot continue" "$LINENO" 5 14075 else 14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14077 $as_echo "unknown" >&6; } 14078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 14079 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 14080 fi 14081 14082 else 14083 PATH_SEP=":" 14084 fi 14085 14086 14087 # We get the top-level directory from the supporting wrappers. 14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 14089 $as_echo_n "checking for top-level directory... " >&6; } 14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 14091 $as_echo "$TOPDIR" >&6; } 14092 14093 14094 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 14095 14096 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14097 14098 # Input might be given as Windows format, start by converting to 14099 # unix format. 14100 path="$CURDIR" 14101 new_path=`$CYGPATH -u "$path"` 14102 14103 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14104 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14105 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14106 # "foo.exe" is OK but "foo" is an error. 14107 # 14108 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14109 # It is also a way to make sure we got the proper file name for the real test later on. 14110 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14111 if test "x$test_shortpath" = x; then 14112 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14113 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14114 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 14115 fi 14116 14117 # Call helper function which possibly converts this using DOS-style short mode. 14118 # If so, the updated path is stored in $new_path. 14119 14120 input_path="$new_path" 14121 # Check if we need to convert this using DOS-style short mode. If the path 14122 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14123 # take no chances and rewrite it. 14124 # Note: m4 eats our [], so we need to use [ and ] instead. 14125 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14126 if test "x$has_forbidden_chars" != x; then 14127 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14128 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14129 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14130 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14131 # Going to short mode and back again did indeed matter. Since short mode is 14132 # case insensitive, let's make it lowercase to improve readability. 14133 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14134 # Now convert it back to Unix-stile (cygpath) 14135 input_path=`$CYGPATH -u "$shortmode_path"` 14136 new_path="$input_path" 14137 fi 14138 fi 14139 14140 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14141 if test "x$test_cygdrive_prefix" = x; then 14142 # As a simple fix, exclude /usr/bin since it's not a real path. 14143 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14144 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14145 # a path prefixed by /cygdrive for fixpath to work. 14146 new_path="$CYGWIN_ROOT_PATH$input_path" 14147 fi 14148 fi 14149 14150 14151 if test "x$path" != "x$new_path"; then 14152 CURDIR="$new_path" 14153 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14154 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14155 fi 14156 14157 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14158 14159 path="$CURDIR" 14160 has_colon=`$ECHO $path | $GREP ^.:` 14161 new_path="$path" 14162 if test "x$has_colon" = x; then 14163 # Not in mixed or Windows style, start by that. 14164 new_path=`cmd //c echo $path` 14165 fi 14166 14167 14168 input_path="$new_path" 14169 # Check if we need to convert this using DOS-style short mode. If the path 14170 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14171 # take no chances and rewrite it. 14172 # Note: m4 eats our [], so we need to use [ and ] instead. 14173 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14174 if test "x$has_forbidden_chars" != x; then 14175 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14176 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14177 fi 14178 14179 14180 windows_path="$new_path" 14181 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14182 unix_path=`$CYGPATH -u "$windows_path"` 14183 new_path="$unix_path" 14184 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14185 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14186 new_path="$unix_path" 14187 fi 14188 14189 if test "x$path" != "x$new_path"; then 14190 CURDIR="$new_path" 14191 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14192 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14193 fi 14194 14195 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14196 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14197 14198 else 14199 # We're on a posix platform. Hooray! :) 14200 path="$CURDIR" 14201 has_space=`$ECHO "$path" | $GREP " "` 14202 if test "x$has_space" != x; then 14203 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14204 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14205 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14206 fi 14207 14208 # Use eval to expand a potential ~ 14209 eval path="$path" 14210 if test ! -f "$path" && test ! -d "$path"; then 14211 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14212 fi 14213 14214 CURDIR="`cd "$path"; $THEPWDCMD -L`" 14215 fi 14216 14217 14218 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14219 14220 # Input might be given as Windows format, start by converting to 14221 # unix format. 14222 path="$TOPDIR" 14223 new_path=`$CYGPATH -u "$path"` 14224 14225 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14226 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14227 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14228 # "foo.exe" is OK but "foo" is an error. 14229 # 14230 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14231 # It is also a way to make sure we got the proper file name for the real test later on. 14232 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14233 if test "x$test_shortpath" = x; then 14234 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14235 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14236 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 14237 fi 14238 14239 # Call helper function which possibly converts this using DOS-style short mode. 14240 # If so, the updated path is stored in $new_path. 14241 14242 input_path="$new_path" 14243 # Check if we need to convert this using DOS-style short mode. If the path 14244 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14245 # take no chances and rewrite it. 14246 # Note: m4 eats our [], so we need to use [ and ] instead. 14247 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14248 if test "x$has_forbidden_chars" != x; then 14249 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14250 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14251 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14252 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14253 # Going to short mode and back again did indeed matter. Since short mode is 14254 # case insensitive, let's make it lowercase to improve readability. 14255 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14256 # Now convert it back to Unix-stile (cygpath) 14257 input_path=`$CYGPATH -u "$shortmode_path"` 14258 new_path="$input_path" 14259 fi 14260 fi 14261 14262 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14263 if test "x$test_cygdrive_prefix" = x; then 14264 # As a simple fix, exclude /usr/bin since it's not a real path. 14265 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14266 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14267 # a path prefixed by /cygdrive for fixpath to work. 14268 new_path="$CYGWIN_ROOT_PATH$input_path" 14269 fi 14270 fi 14271 14272 14273 if test "x$path" != "x$new_path"; then 14274 TOPDIR="$new_path" 14275 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14276 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14277 fi 14278 14279 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14280 14281 path="$TOPDIR" 14282 has_colon=`$ECHO $path | $GREP ^.:` 14283 new_path="$path" 14284 if test "x$has_colon" = x; then 14285 # Not in mixed or Windows style, start by that. 14286 new_path=`cmd //c echo $path` 14287 fi 14288 14289 14290 input_path="$new_path" 14291 # Check if we need to convert this using DOS-style short mode. If the path 14292 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14293 # take no chances and rewrite it. 14294 # Note: m4 eats our [], so we need to use [ and ] instead. 14295 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14296 if test "x$has_forbidden_chars" != x; then 14297 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14298 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14299 fi 14300 14301 14302 windows_path="$new_path" 14303 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14304 unix_path=`$CYGPATH -u "$windows_path"` 14305 new_path="$unix_path" 14306 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14307 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14308 new_path="$unix_path" 14309 fi 14310 14311 if test "x$path" != "x$new_path"; then 14312 TOPDIR="$new_path" 14313 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14314 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14315 fi 14316 14317 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14318 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14319 14320 else 14321 # We're on a posix platform. Hooray! :) 14322 path="$TOPDIR" 14323 has_space=`$ECHO "$path" | $GREP " "` 14324 if test "x$has_space" != x; then 14325 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14326 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14327 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14328 fi 14329 14330 # Use eval to expand a potential ~ 14331 eval path="$path" 14332 if test ! -f "$path" && test ! -d "$path"; then 14333 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14334 fi 14335 14336 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 14337 fi 14338 14339 # SRC_ROOT is a traditional alias for TOPDIR. 14340 SRC_ROOT=$TOPDIR 14341 14342 # Locate the directory of this script. 14343 AUTOCONF_DIR=$TOPDIR/common/autoconf 14344 14345 14346 # Setup default logging of stdout and stderr to build.log in the output root. 14347 BUILD_LOG='$(OUTPUT_ROOT)/build.log' 14348 BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old' 14349 BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)' 14350 14351 14352 14353 14354 14355 # Check if it's a pure open build or if custom sources are to be used. 14356 14357 # Check whether --enable-openjdk-only was given. 14358 if test "${enable_openjdk_only+set}" = set; then : 14359 enableval=$enable_openjdk_only; 14360 else 14361 enable_openjdk_only="no" 14362 fi 14363 14364 14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 14366 $as_echo_n "checking for presence of closed sources... " >&6; } 14367 if test -d "$SRC_ROOT/jdk/src/closed"; then 14368 CLOSED_SOURCE_PRESENT=yes 14369 else 14370 CLOSED_SOURCE_PRESENT=no 14371 fi 14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 14373 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 14374 14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 14376 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 14377 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 14379 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 14380 14381 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 14382 OPENJDK=true 14383 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 14385 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 14386 fi 14387 else 14388 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14389 OPENJDK=true 14390 else 14391 OPENJDK=false 14392 fi 14393 fi 14394 14395 if test "x$OPENJDK" = "xtrue"; then 14396 SET_OPENJDK="OPENJDK=true" 14397 fi 14398 14399 14400 14401 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 14402 # the IncludeCustomExtension macro. 14403 14404 14405 # Check whether --with-custom-make-dir was given. 14406 if test "${with_custom_make_dir+set}" = set; then : 14407 withval=$with_custom_make_dir; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&5 14408 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 14409 fi 14410 14411 14412 14413 14414 # These are needed to be able to create a configuration name (and thus the output directory) 14415 14416 ############################################################################### 14417 # 14418 # Check which variant of the JDK that we want to build. 14419 # Currently we have: 14420 # normal: standard edition 14421 # but the custom make system may add other variants 14422 # 14423 # Effectively the JDK variant gives a name to a specific set of 14424 # modules to compile into the JDK. In the future, these modules 14425 # might even be Jigsaw modules. 14426 # 14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 14428 $as_echo_n "checking which variant of the JDK to build... " >&6; } 14429 14430 # Check whether --with-jdk-variant was given. 14431 if test "${with_jdk_variant+set}" = set; then : 14432 withval=$with_jdk_variant; 14433 fi 14434 14435 14436 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 14437 JDK_VARIANT="normal" 14438 else 14439 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 14440 fi 14441 14442 14443 14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 14445 $as_echo "$JDK_VARIANT" >&6; } 14446 14447 14448 ############################################################################### 14449 # 14450 # Check which interpreter of the JVM we want to build. 14451 # Currently we have: 14452 # template: Template interpreter (the default) 14453 # cpp : C++ interpreter 14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5 14455 $as_echo_n "checking which interpreter of the JVM to build... " >&6; } 14456 14457 # Check whether --with-jvm-interpreter was given. 14458 if test "${with_jvm_interpreter+set}" = set; then : 14459 withval=$with_jvm_interpreter; 14460 fi 14461 14462 14463 if test "x$with_jvm_interpreter" = x; then 14464 with_jvm_interpreter="template" 14465 fi 14466 14467 JVM_INTERPRETER="$with_jvm_interpreter" 14468 14469 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then 14470 as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5 14471 fi 14472 14473 14474 14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5 14476 $as_echo "$with_jvm_interpreter" >&6; } 14477 14478 14479 14480 ############################################################################### 14481 # 14482 # Check which variants of the JVM that we want to build. 14483 # Currently we have: 14484 # server: normal interpreter and a tiered C1/C2 compiler 14485 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 14486 # minimal1: reduced form of client with optional VM services and features stripped out 14487 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 14488 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 14489 # zero: no machine code interpreter, no compiler 14490 # zeroshark: zero interpreter and shark/llvm compiler backend 14491 # core: interpreter only, no compiler (only works on some platforms) 14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 14493 $as_echo_n "checking which variants of the JVM to build... " >&6; } 14494 14495 # Check whether --with-jvm-variants was given. 14496 if test "${with_jvm_variants+set}" = set; then : 14497 withval=$with_jvm_variants; 14498 fi 14499 14500 14501 if test "x$with_jvm_variants" = x; then 14502 with_jvm_variants="server" 14503 fi 14504 14505 JVM_VARIANTS=",$with_jvm_variants," 14506 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,//'` 14507 14508 if test "x$TEST_VARIANTS" != "x,"; then 14509 as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5 14510 fi 14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 14512 $as_echo "$with_jvm_variants" >&6; } 14513 14514 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 14515 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 14516 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 14517 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 14518 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 14519 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 14520 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 14521 14522 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14523 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14524 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 14525 fi 14526 fi 14527 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14528 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14529 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 14530 fi 14531 fi 14532 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14533 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14534 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 14535 fi 14536 fi 14537 14538 # Replace the commas with AND for use in the build directory name. 14539 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'` 14540 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/'` 14541 if test "x$COUNT_VARIANTS" != "x,1"; then 14542 BUILDING_MULTIPLE_JVM_VARIANTS=yes 14543 else 14544 BUILDING_MULTIPLE_JVM_VARIANTS=no 14545 fi 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 INCLUDE_SA=true 14557 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 14558 INCLUDE_SA=false 14559 fi 14560 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 14561 INCLUDE_SA=false 14562 fi 14563 if test "x$OPENJDK_TARGET_OS" = xaix ; then 14564 INCLUDE_SA=false 14565 fi 14566 14567 14568 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 14569 MACOSX_UNIVERSAL="true" 14570 fi 14571 14572 14573 14574 14575 ############################################################################### 14576 # 14577 # Set the debug level 14578 # release: no debug information, all optimizations, no asserts. 14579 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 14580 # fastdebug: debug information (-g), all optimizations, all asserts 14581 # slowdebug: debug information (-g), no optimizations, all asserts 14582 # 14583 DEBUG_LEVEL="release" 14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 14585 $as_echo_n "checking which debug level to use... " >&6; } 14586 # Check whether --enable-debug was given. 14587 if test "${enable_debug+set}" = set; then : 14588 enableval=$enable_debug; 14589 ENABLE_DEBUG="${enableval}" 14590 DEBUG_LEVEL="fastdebug" 14591 14592 else 14593 ENABLE_DEBUG="no" 14594 fi 14595 14596 14597 14598 # Check whether --with-debug-level was given. 14599 if test "${with_debug_level+set}" = set; then : 14600 withval=$with_debug_level; 14601 DEBUG_LEVEL="${withval}" 14602 if test "x$ENABLE_DEBUG" = xyes; then 14603 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 14604 fi 14605 14606 fi 14607 14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 14609 $as_echo "$DEBUG_LEVEL" >&6; } 14610 14611 if test "x$DEBUG_LEVEL" != xrelease && \ 14612 test "x$DEBUG_LEVEL" != xoptimized && \ 14613 test "x$DEBUG_LEVEL" != xfastdebug && \ 14614 test "x$DEBUG_LEVEL" != xslowdebug; then 14615 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 14616 fi 14617 14618 14619 ############################################################################### 14620 # 14621 # Setup legacy vars/targets and new vars to deal with different debug levels. 14622 # 14623 14624 case $DEBUG_LEVEL in 14625 release ) 14626 VARIANT="OPT" 14627 FASTDEBUG="false" 14628 DEBUG_CLASSFILES="false" 14629 BUILD_VARIANT_RELEASE="" 14630 HOTSPOT_DEBUG_LEVEL="product" 14631 HOTSPOT_EXPORT="product" 14632 ;; 14633 fastdebug ) 14634 VARIANT="DBG" 14635 FASTDEBUG="true" 14636 DEBUG_CLASSFILES="true" 14637 BUILD_VARIANT_RELEASE="-fastdebug" 14638 HOTSPOT_DEBUG_LEVEL="fastdebug" 14639 HOTSPOT_EXPORT="fastdebug" 14640 ;; 14641 slowdebug ) 14642 VARIANT="DBG" 14643 FASTDEBUG="false" 14644 DEBUG_CLASSFILES="true" 14645 BUILD_VARIANT_RELEASE="-debug" 14646 HOTSPOT_DEBUG_LEVEL="debug" 14647 HOTSPOT_EXPORT="debug" 14648 ;; 14649 optimized ) 14650 VARIANT="OPT" 14651 FASTDEBUG="false" 14652 DEBUG_CLASSFILES="false" 14653 BUILD_VARIANT_RELEASE="-optimized" 14654 HOTSPOT_DEBUG_LEVEL="optimized" 14655 HOTSPOT_EXPORT="optimized" 14656 ;; 14657 esac 14658 14659 # The debug level 'optimized' is a little special because it is currently only 14660 # applicable to the HotSpot build where it means to build a completely 14661 # optimized version of the VM without any debugging code (like for the 14662 # 'release' debug level which is called 'product' in the HotSpot build) but 14663 # with the exception that it can contain additional code which is otherwise 14664 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 14665 # test new and/or experimental features which are not intended for customer 14666 # shipment. Because these new features need to be tested and benchmarked in 14667 # real world scenarios, we want to build the containing JDK at the 'release' 14668 # debug level. 14669 if test "x$DEBUG_LEVEL" = xoptimized; then 14670 DEBUG_LEVEL="release" 14671 fi 14672 14673 ##### 14674 # Generate the legacy makefile targets for hotspot. 14675 # The hotspot api for selecting the build artifacts, really, needs to be improved. 14676 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 14677 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 14678 # But until then ... 14679 HOTSPOT_TARGET="" 14680 14681 if test "x$JVM_VARIANT_SERVER" = xtrue; then 14682 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 14683 fi 14684 14685 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14686 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 14687 fi 14688 14689 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14690 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 14691 fi 14692 14693 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14694 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 14695 fi 14696 14697 if test "x$JVM_VARIANT_ZERO" = xtrue; then 14698 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 14699 fi 14700 14701 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 14702 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 14703 fi 14704 14705 if test "x$JVM_VARIANT_CORE" = xtrue; then 14706 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 14707 fi 14708 14709 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 14710 14711 # On Macosx universal binaries are produced, but they only contain 14712 # 64 bit intel. This invalidates control of which jvms are built 14713 # from configure, but only server is valid anyway. Fix this 14714 # when hotspot makefiles are rewritten. 14715 if test "x$MACOSX_UNIVERSAL" = xtrue; then 14716 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 14717 fi 14718 14719 ##### 14720 14721 14722 14723 14724 14725 14726 14727 14728 # With basic setup done, call the custom early hook. 14729 14730 14731 # Check if we have devkits, extra paths or sysroot set. 14732 14733 14734 # Check whether --with-devkit was given. 14735 if test "${with_devkit+set}" = set; then : 14736 withval=$with_devkit; 14737 14738 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14739 14740 # Input might be given as Windows format, start by converting to 14741 # unix format. 14742 path="$with_devkit" 14743 new_path=`$CYGPATH -u "$path"` 14744 14745 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14746 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14747 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14748 # "foo.exe" is OK but "foo" is an error. 14749 # 14750 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14751 # It is also a way to make sure we got the proper file name for the real test later on. 14752 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14753 if test "x$test_shortpath" = x; then 14754 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14755 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14756 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 14757 fi 14758 14759 # Call helper function which possibly converts this using DOS-style short mode. 14760 # If so, the updated path is stored in $new_path. 14761 14762 input_path="$new_path" 14763 # Check if we need to convert this using DOS-style short mode. If the path 14764 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14765 # take no chances and rewrite it. 14766 # Note: m4 eats our [], so we need to use [ and ] instead. 14767 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14768 if test "x$has_forbidden_chars" != x; then 14769 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14770 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14771 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14772 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14773 # Going to short mode and back again did indeed matter. Since short mode is 14774 # case insensitive, let's make it lowercase to improve readability. 14775 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14776 # Now convert it back to Unix-stile (cygpath) 14777 input_path=`$CYGPATH -u "$shortmode_path"` 14778 new_path="$input_path" 14779 fi 14780 fi 14781 14782 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14783 if test "x$test_cygdrive_prefix" = x; then 14784 # As a simple fix, exclude /usr/bin since it's not a real path. 14785 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14786 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14787 # a path prefixed by /cygdrive for fixpath to work. 14788 new_path="$CYGWIN_ROOT_PATH$input_path" 14789 fi 14790 fi 14791 14792 14793 if test "x$path" != "x$new_path"; then 14794 with_devkit="$new_path" 14795 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14796 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14797 fi 14798 14799 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14800 14801 path="$with_devkit" 14802 has_colon=`$ECHO $path | $GREP ^.:` 14803 new_path="$path" 14804 if test "x$has_colon" = x; then 14805 # Not in mixed or Windows style, start by that. 14806 new_path=`cmd //c echo $path` 14807 fi 14808 14809 14810 input_path="$new_path" 14811 # Check if we need to convert this using DOS-style short mode. If the path 14812 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14813 # take no chances and rewrite it. 14814 # Note: m4 eats our [], so we need to use [ and ] instead. 14815 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14816 if test "x$has_forbidden_chars" != x; then 14817 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14818 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14819 fi 14820 14821 14822 windows_path="$new_path" 14823 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14824 unix_path=`$CYGPATH -u "$windows_path"` 14825 new_path="$unix_path" 14826 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14827 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14828 new_path="$unix_path" 14829 fi 14830 14831 if test "x$path" != "x$new_path"; then 14832 with_devkit="$new_path" 14833 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14834 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14835 fi 14836 14837 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14838 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14839 14840 else 14841 # We're on a posix platform. Hooray! :) 14842 path="$with_devkit" 14843 has_space=`$ECHO "$path" | $GREP " "` 14844 if test "x$has_space" != x; then 14845 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14846 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14847 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14848 fi 14849 14850 # Use eval to expand a potential ~ 14851 eval path="$path" 14852 if test ! -f "$path" && test ! -d "$path"; then 14853 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 14854 fi 14855 14856 with_devkit="`cd "$path"; $THEPWDCMD -L`" 14857 fi 14858 14859 DEVKIT_ROOT="$with_devkit" 14860 # Check for a meta data info file in the root of the devkit 14861 if test -f "$DEVKIT_ROOT/devkit.info"; then 14862 # This potentially sets the following: 14863 # DEVKIT_NAME: A descriptive name of the devkit 14864 # DEVKIT_TOOLCHAIN_PATH: Corresponds to --with-toolchain-path 14865 # DEVKIT_EXTRA_PATH: Corresponds to --with-extra-path 14866 # DEVKIT_SYSROOT: Corresponds to --with-sysroot 14867 . $DEVKIT_ROOT/devkit.info 14868 fi 14869 14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 14871 $as_echo_n "checking for devkit... " >&6; } 14872 if test "x$DEVKIT_NAME" != x; then 14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 14874 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 14875 else 14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 14877 $as_echo "$DEVKIT_ROOT" >&6; } 14878 fi 14879 14880 if test "x$DEVKIT_EXTRA_PATH" != x; then 14881 14882 if test "x$DEVKIT_EXTRA_PATH" != x; then 14883 if test "x$EXTRA_PATH" = x; then 14884 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 14885 else 14886 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 14887 fi 14888 fi 14889 14890 fi 14891 14892 # Fallback default of just /bin if DEVKIT_PATH is not defined 14893 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 14894 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 14895 fi 14896 14897 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 14898 if test "x$TOOLCHAIN_PATH" = x; then 14899 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 14900 else 14901 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 14902 fi 14903 fi 14904 14905 14906 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 14907 # places for backwards compatiblity. 14908 if test "x$DEVKIT_SYSROOT" != x; then 14909 SYSROOT="$DEVKIT_SYSROOT" 14910 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 14911 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 14912 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 14913 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 14914 fi 14915 14916 14917 fi 14918 14919 14920 # You can force the sysroot if the sysroot encoded into the compiler tools 14921 # is not correct. 14922 14923 # Check whether --with-sys-root was given. 14924 if test "${with_sys_root+set}" = set; then : 14925 withval=$with_sys_root; SYSROOT=$with_sys_root 14926 14927 fi 14928 14929 14930 14931 # Check whether --with-sysroot was given. 14932 if test "${with_sysroot+set}" = set; then : 14933 withval=$with_sysroot; SYSROOT=$with_sysroot 14934 14935 fi 14936 14937 14938 14939 # Check whether --with-tools-dir was given. 14940 if test "${with_tools_dir+set}" = set; then : 14941 withval=$with_tools_dir; 14942 if test "x$with_tools_dir" != x; then 14943 if test "x$TOOLCHAIN_PATH" = x; then 14944 TOOLCHAIN_PATH="$with_tools_dir" 14945 else 14946 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 14947 fi 14948 fi 14949 14950 14951 fi 14952 14953 14954 14955 # Check whether --with-toolchain-path was given. 14956 if test "${with_toolchain_path+set}" = set; then : 14957 withval=$with_toolchain_path; 14958 if test "x$with_toolchain_path" != x; then 14959 if test "x$TOOLCHAIN_PATH" = x; then 14960 TOOLCHAIN_PATH="$with_toolchain_path" 14961 else 14962 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 14963 fi 14964 fi 14965 14966 14967 fi 14968 14969 14970 14971 # Check whether --with-extra-path was given. 14972 if test "${with_extra_path+set}" = set; then : 14973 withval=$with_extra_path; 14974 if test "x$with_extra_path" != x; then 14975 if test "x$EXTRA_PATH" = x; then 14976 EXTRA_PATH="$with_extra_path" 14977 else 14978 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 14979 fi 14980 fi 14981 14982 14983 fi 14984 14985 14986 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 14987 # detect if Xcode is installed by running xcodebuild -version 14988 # if no Xcode installed, xcodebuild exits with 1 14989 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 14990 if /usr/bin/xcodebuild -version >/dev/null 2>&1; then 14991 # We need to use xcodebuild in the toolchain dir provided by the user, this will 14992 # fall back on the stub binary in /usr/bin/xcodebuild 14993 # Extract the first word of "xcodebuild", so it can be a program name with args. 14994 set dummy xcodebuild; ac_word=$2 14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14996 $as_echo_n "checking for $ac_word... " >&6; } 14997 if ${ac_cv_path_XCODEBUILD+:} false; then : 14998 $as_echo_n "(cached) " >&6 14999 else 15000 case $XCODEBUILD in 15001 [\\/]* | ?:[\\/]*) 15002 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 15003 ;; 15004 *) 15005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15006 for as_dir in $TOOLCHAIN_PATH 15007 do 15008 IFS=$as_save_IFS 15009 test -z "$as_dir" && as_dir=. 15010 for ac_exec_ext in '' $ac_executable_extensions; do 15011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15012 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 15013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15014 break 2 15015 fi 15016 done 15017 done 15018 IFS=$as_save_IFS 15019 15020 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 15021 ;; 15022 esac 15023 fi 15024 XCODEBUILD=$ac_cv_path_XCODEBUILD 15025 if test -n "$XCODEBUILD"; then 15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 15027 $as_echo "$XCODEBUILD" >&6; } 15028 else 15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15030 $as_echo "no" >&6; } 15031 fi 15032 15033 15034 else 15035 # this should result in SYSROOT being empty, unless --with-sysroot is provided 15036 # when only the command line tools are installed there are no SDKs, so headers 15037 # are copied into the system frameworks 15038 XCODEBUILD= 15039 15040 fi 15041 15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 15043 $as_echo_n "checking for sdk name... " >&6; } 15044 15045 # Check whether --with-sdk-name was given. 15046 if test "${with_sdk_name+set}" = set; then : 15047 withval=$with_sdk_name; SDKNAME=$with_sdk_name 15048 15049 fi 15050 15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 15052 $as_echo "$SDKNAME" >&6; } 15053 15054 # if toolchain path is specified then don't rely on system headers, they may not compile 15055 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 15056 test -z "$TOOLCHAIN_PATH" && \ 15057 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 15058 15059 if test -z "$SYSROOT"; then 15060 if test -n "$XCODEBUILD"; then 15061 # if we don't have system headers, use default SDK name (last resort) 15062 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 15063 SDKNAME=${SDKNAME:-macosx} 15064 fi 15065 15066 if test -n "$SDKNAME"; then 15067 # Call xcodebuild to determine SYSROOT 15068 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'` 15069 fi 15070 else 15071 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 15072 as_fn_error $? "No xcodebuild tool and no system framework headers found, use --with-sysroot or --with-sdk-name to provide a path to a valid SDK" "$LINENO" 5 15073 fi 15074 fi 15075 else 15076 # warn user if --with-sdk-name was also set 15077 if test -n "$with_sdk_name"; then 15078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 15079 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 15080 fi 15081 fi 15082 15083 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 15084 # If no system framework headers, then SYSROOT must be set, or we won't build 15085 as_fn_error $? "Unable to determine SYSROOT and no headers found in /System/Library/Frameworks. Check Xcode configuration, --with-sysroot or --with-sdk-name arguments." "$LINENO" 5 15086 fi 15087 15088 # Perform a basic sanity test 15089 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 15090 if test -z "$SYSROOT"; then 15091 as_fn_error $? "Unable to find required framework headers, provide a path to an SDK via --with-sysroot or --with-sdk-name and be sure Xcode is installed properly" "$LINENO" 5 15092 else 15093 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 15094 fi 15095 fi 15096 15097 # set SDKROOT too, Xcode tools will pick it up 15098 SDKROOT=$SYSROOT 15099 15100 fi 15101 15102 # Prepend the extra path to the global path 15103 15104 if test "x$EXTRA_PATH" != x; then 15105 if test "x$PATH" = x; then 15106 PATH="$EXTRA_PATH" 15107 else 15108 PATH="$EXTRA_PATH:$PATH" 15109 fi 15110 fi 15111 15112 15113 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 15114 # Add extra search paths on solaris for utilities like ar and as etc... 15115 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 15116 fi 15117 15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 15119 $as_echo_n "checking for sysroot... " >&6; } 15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 15121 $as_echo "$SYSROOT" >&6; } 15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 15123 $as_echo_n "checking for toolchain path... " >&6; } 15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 15125 $as_echo "$TOOLCHAIN_PATH" >&6; } 15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 15127 $as_echo_n "checking for extra path... " >&6; } 15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 15129 $as_echo "$EXTRA_PATH" >&6; } 15130 15131 15132 # To properly create a configuration name, we need to have the OpenJDK target 15133 # and options (variants and debug level) parsed. 15134 15135 15136 15137 # Check whether --with-conf-name was given. 15138 if test "${with_conf_name+set}" = set; then : 15139 withval=$with_conf_name; CONF_NAME=${with_conf_name} 15140 fi 15141 15142 15143 # Test from where we are running configure, in or outside of src root. 15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 15145 $as_echo_n "checking where to store configuration... " >&6; } 15146 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 15147 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 15148 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 15149 # We are running configure from the src root. 15150 # Create a default ./build/target-variant-debuglevel output root. 15151 if test "x${CONF_NAME}" = x; then 15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 15153 $as_echo "in default location" >&6; } 15154 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 15155 else 15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 15157 $as_echo "in build directory with custom name" >&6; } 15158 fi 15159 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 15160 $MKDIR -p "$OUTPUT_ROOT" 15161 if test ! -d "$OUTPUT_ROOT"; then 15162 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 15163 fi 15164 else 15165 # We are running configure from outside of the src dir. 15166 # Then use the current directory as output dir! 15167 # If configuration is situated in normal build directory, just use the build 15168 # directory name as configuration name, otherwise use the complete path. 15169 if test "x${CONF_NAME}" = x; then 15170 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 15171 fi 15172 OUTPUT_ROOT="$CURDIR" 15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 15174 $as_echo "in current directory" >&6; } 15175 15176 # WARNING: This might be a bad thing to do. You need to be sure you want to 15177 # have a configuration in this directory. Do some sanity checks! 15178 15179 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 15180 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 15181 # other files 15182 files_present=`$LS $OUTPUT_ROOT` 15183 # Configure has already touched config.log and confdefs.h in the current dir when this check 15184 # is performed. 15185 filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \ 15186 | $TR -d '\n'` 15187 if test "x$filtered_files" != x; then 15188 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 15189 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 15190 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 15191 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 15192 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 15193 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 15194 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 15195 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 15196 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 15197 $as_echo "$as_me: seriously mess up just about everything." >&6;} 15198 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 15199 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 15200 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 15201 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 15202 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 15203 fi 15204 fi 15205 fi 15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 15207 $as_echo_n "checking what configuration name to use... " >&6; } 15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 15209 $as_echo "$CONF_NAME" >&6; } 15210 15211 15212 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15213 15214 # Input might be given as Windows format, start by converting to 15215 # unix format. 15216 path="$OUTPUT_ROOT" 15217 new_path=`$CYGPATH -u "$path"` 15218 15219 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15220 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15221 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15222 # "foo.exe" is OK but "foo" is an error. 15223 # 15224 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15225 # It is also a way to make sure we got the proper file name for the real test later on. 15226 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15227 if test "x$test_shortpath" = x; then 15228 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15229 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15230 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 15231 fi 15232 15233 # Call helper function which possibly converts this using DOS-style short mode. 15234 # If so, the updated path is stored in $new_path. 15235 15236 input_path="$new_path" 15237 # Check if we need to convert this using DOS-style short mode. If the path 15238 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15239 # take no chances and rewrite it. 15240 # Note: m4 eats our [], so we need to use [ and ] instead. 15241 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15242 if test "x$has_forbidden_chars" != x; then 15243 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15244 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15245 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15246 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15247 # Going to short mode and back again did indeed matter. Since short mode is 15248 # case insensitive, let's make it lowercase to improve readability. 15249 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15250 # Now convert it back to Unix-stile (cygpath) 15251 input_path=`$CYGPATH -u "$shortmode_path"` 15252 new_path="$input_path" 15253 fi 15254 fi 15255 15256 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15257 if test "x$test_cygdrive_prefix" = x; then 15258 # As a simple fix, exclude /usr/bin since it's not a real path. 15259 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15260 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15261 # a path prefixed by /cygdrive for fixpath to work. 15262 new_path="$CYGWIN_ROOT_PATH$input_path" 15263 fi 15264 fi 15265 15266 15267 if test "x$path" != "x$new_path"; then 15268 OUTPUT_ROOT="$new_path" 15269 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15270 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15271 fi 15272 15273 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15274 15275 path="$OUTPUT_ROOT" 15276 has_colon=`$ECHO $path | $GREP ^.:` 15277 new_path="$path" 15278 if test "x$has_colon" = x; then 15279 # Not in mixed or Windows style, start by that. 15280 new_path=`cmd //c echo $path` 15281 fi 15282 15283 15284 input_path="$new_path" 15285 # Check if we need to convert this using DOS-style short mode. If the path 15286 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15287 # take no chances and rewrite it. 15288 # Note: m4 eats our [], so we need to use [ and ] instead. 15289 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15290 if test "x$has_forbidden_chars" != x; then 15291 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15292 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15293 fi 15294 15295 15296 windows_path="$new_path" 15297 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15298 unix_path=`$CYGPATH -u "$windows_path"` 15299 new_path="$unix_path" 15300 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15301 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15302 new_path="$unix_path" 15303 fi 15304 15305 if test "x$path" != "x$new_path"; then 15306 OUTPUT_ROOT="$new_path" 15307 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15308 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15309 fi 15310 15311 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15312 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15313 15314 else 15315 # We're on a posix platform. Hooray! :) 15316 path="$OUTPUT_ROOT" 15317 has_space=`$ECHO "$path" | $GREP " "` 15318 if test "x$has_space" != x; then 15319 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15320 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15321 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15322 fi 15323 15324 # Use eval to expand a potential ~ 15325 eval path="$path" 15326 if test ! -f "$path" && test ! -d "$path"; then 15327 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 15328 fi 15329 15330 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 15331 fi 15332 15333 15334 SPEC=$OUTPUT_ROOT/spec.gmk 15335 15336 CONF_NAME=$CONF_NAME 15337 15338 OUTPUT_ROOT=$OUTPUT_ROOT 15339 15340 15341 # The spec.gmk file contains all variables for the make system. 15342 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 15343 15344 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 15345 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 15346 15347 # The bootcycle-spec.gmk file contains support for boot cycle builds. 15348 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 15349 15350 # The compare.sh is used to compare the build output to other builds. 15351 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 15352 15353 # The generated Makefile knows where the spec.gmk is and where the source is. 15354 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 15355 # which will look for generated configurations 15356 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 15357 15358 15359 15360 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 15361 15362 for ac_prog in apt-get yum port pkgutil pkgadd 15363 do 15364 # Extract the first word of "$ac_prog", so it can be a program name with args. 15365 set dummy $ac_prog; ac_word=$2 15366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15367 $as_echo_n "checking for $ac_word... " >&6; } 15368 if ${ac_cv_prog_PKGHANDLER+:} false; then : 15369 $as_echo_n "(cached) " >&6 15370 else 15371 if test -n "$PKGHANDLER"; then 15372 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 15373 else 15374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15375 for as_dir in $PATH 15376 do 15377 IFS=$as_save_IFS 15378 test -z "$as_dir" && as_dir=. 15379 for ac_exec_ext in '' $ac_executable_extensions; do 15380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15381 ac_cv_prog_PKGHANDLER="$ac_prog" 15382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15383 break 2 15384 fi 15385 done 15386 done 15387 IFS=$as_save_IFS 15388 15389 fi 15390 fi 15391 PKGHANDLER=$ac_cv_prog_PKGHANDLER 15392 if test -n "$PKGHANDLER"; then 15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 15394 $as_echo "$PKGHANDLER" >&6; } 15395 else 15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15397 $as_echo "no" >&6; } 15398 fi 15399 15400 15401 test -n "$PKGHANDLER" && break 15402 done 15403 15404 15405 15406 # Setup tools that requires more complex handling, or that is not needed by the configure script. 15407 15408 15409 # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. 15410 if test "x$MAKE" != x; then 15411 # User has supplied a make, test it. 15412 if test ! -f "$MAKE"; then 15413 as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5 15414 fi 15415 15416 MAKE_CANDIDATE=""$MAKE"" 15417 DESCRIPTION="user supplied MAKE=$MAKE" 15418 if test "x$MAKE_CANDIDATE" != x; then 15419 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15420 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15421 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15422 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15423 if test "x$IS_GNU_MAKE" = x; then 15424 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15425 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15426 else 15427 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15428 if test "x$IS_MODERN_MAKE" = x; then 15429 { $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 15430 $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;} 15431 else 15432 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15433 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15434 MAKE_EXPECTED_ENV='cygwin' 15435 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15436 MAKE_EXPECTED_ENV='msys' 15437 else 15438 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15439 fi 15440 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15441 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15442 else 15443 # Not relevant for non-Windows 15444 IS_MAKE_CORRECT_ENV=true 15445 fi 15446 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15447 { $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 15448 $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;} 15449 else 15450 FOUND_MAKE=$MAKE_CANDIDATE 15451 15452 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15453 15454 # First separate the path from the arguments. This will split at the first 15455 # space. 15456 complete="$FOUND_MAKE" 15457 path="${complete%% *}" 15458 tmp="$complete EOL" 15459 arguments="${tmp#* }" 15460 15461 # Input might be given as Windows format, start by converting to 15462 # unix format. 15463 new_path=`$CYGPATH -u "$path"` 15464 15465 # Now try to locate executable using which 15466 new_path=`$WHICH "$new_path" 2> /dev/null` 15467 # bat and cmd files are not always considered executable in cygwin causing which 15468 # to not find them 15469 if test "x$new_path" = x \ 15470 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15471 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15472 new_path=`$CYGPATH -u "$path"` 15473 fi 15474 if test "x$new_path" = x; then 15475 # Oops. Which didn't find the executable. 15476 # The splitting of arguments from the executable at a space might have been incorrect, 15477 # since paths with space are more likely in Windows. Give it another try with the whole 15478 # argument. 15479 path="$complete" 15480 arguments="EOL" 15481 new_path=`$CYGPATH -u "$path"` 15482 new_path=`$WHICH "$new_path" 2> /dev/null` 15483 # bat and cmd files are not always considered executable in cygwin causing which 15484 # to not find them 15485 if test "x$new_path" = x \ 15486 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15487 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15488 new_path=`$CYGPATH -u "$path"` 15489 fi 15490 if test "x$new_path" = x; then 15491 # It's still not found. Now this is an unrecoverable error. 15492 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15493 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15494 has_space=`$ECHO "$complete" | $GREP " "` 15495 if test "x$has_space" != x; then 15496 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15497 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15498 fi 15499 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15500 fi 15501 fi 15502 15503 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15504 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15505 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15506 # "foo.exe" is OK but "foo" is an error. 15507 # 15508 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15509 # It is also a way to make sure we got the proper file name for the real test later on. 15510 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15511 if test "x$test_shortpath" = x; then 15512 # Short path failed, file does not exist as specified. 15513 # Try adding .exe or .cmd 15514 if test -f "${new_path}.exe"; then 15515 input_to_shortpath="${new_path}.exe" 15516 elif test -f "${new_path}.cmd"; then 15517 input_to_shortpath="${new_path}.cmd" 15518 else 15519 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15520 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15521 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15522 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15523 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15524 fi 15525 else 15526 input_to_shortpath="$new_path" 15527 fi 15528 15529 # Call helper function which possibly converts this using DOS-style short mode. 15530 # If so, the updated path is stored in $new_path. 15531 new_path="$input_to_shortpath" 15532 15533 input_path="$input_to_shortpath" 15534 # Check if we need to convert this using DOS-style short mode. If the path 15535 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15536 # take no chances and rewrite it. 15537 # Note: m4 eats our [], so we need to use [ and ] instead. 15538 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15539 if test "x$has_forbidden_chars" != x; then 15540 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15541 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15542 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15543 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15544 # Going to short mode and back again did indeed matter. Since short mode is 15545 # case insensitive, let's make it lowercase to improve readability. 15546 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15547 # Now convert it back to Unix-stile (cygpath) 15548 input_path=`$CYGPATH -u "$shortmode_path"` 15549 new_path="$input_path" 15550 fi 15551 fi 15552 15553 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15554 if test "x$test_cygdrive_prefix" = x; then 15555 # As a simple fix, exclude /usr/bin since it's not a real path. 15556 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15557 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15558 # a path prefixed by /cygdrive for fixpath to work. 15559 new_path="$CYGWIN_ROOT_PATH$input_path" 15560 fi 15561 fi 15562 15563 # remove trailing .exe if any 15564 new_path="${new_path/%.exe/}" 15565 15566 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15567 15568 # First separate the path from the arguments. This will split at the first 15569 # space. 15570 complete="$FOUND_MAKE" 15571 path="${complete%% *}" 15572 tmp="$complete EOL" 15573 arguments="${tmp#* }" 15574 15575 # Input might be given as Windows format, start by converting to 15576 # unix format. 15577 new_path="$path" 15578 15579 windows_path="$new_path" 15580 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15581 unix_path=`$CYGPATH -u "$windows_path"` 15582 new_path="$unix_path" 15583 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15584 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15585 new_path="$unix_path" 15586 fi 15587 15588 15589 # Now try to locate executable using which 15590 new_path=`$WHICH "$new_path" 2> /dev/null` 15591 15592 if test "x$new_path" = x; then 15593 # Oops. Which didn't find the executable. 15594 # The splitting of arguments from the executable at a space might have been incorrect, 15595 # since paths with space are more likely in Windows. Give it another try with the whole 15596 # argument. 15597 path="$complete" 15598 arguments="EOL" 15599 new_path="$path" 15600 15601 windows_path="$new_path" 15602 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15603 unix_path=`$CYGPATH -u "$windows_path"` 15604 new_path="$unix_path" 15605 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15606 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15607 new_path="$unix_path" 15608 fi 15609 15610 15611 new_path=`$WHICH "$new_path" 2> /dev/null` 15612 # bat and cmd files are not always considered executable in MSYS causing which 15613 # to not find them 15614 if test "x$new_path" = x \ 15615 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15616 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15617 new_path="$path" 15618 15619 windows_path="$new_path" 15620 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15621 unix_path=`$CYGPATH -u "$windows_path"` 15622 new_path="$unix_path" 15623 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15624 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15625 new_path="$unix_path" 15626 fi 15627 15628 fi 15629 15630 if test "x$new_path" = x; then 15631 # It's still not found. Now this is an unrecoverable error. 15632 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15633 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15634 has_space=`$ECHO "$complete" | $GREP " "` 15635 if test "x$has_space" != x; then 15636 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15637 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15638 fi 15639 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15640 fi 15641 fi 15642 15643 # Now new_path has a complete unix path to the binary 15644 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15645 # Keep paths in /bin as-is, but remove trailing .exe if any 15646 new_path="${new_path/%.exe/}" 15647 # Do not save /bin paths to all_fixpath_prefixes! 15648 else 15649 # Not in mixed or Windows style, start by that. 15650 new_path=`cmd //c echo $new_path` 15651 15652 input_path="$new_path" 15653 # Check if we need to convert this using DOS-style short mode. If the path 15654 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15655 # take no chances and rewrite it. 15656 # Note: m4 eats our [], so we need to use [ and ] instead. 15657 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15658 if test "x$has_forbidden_chars" != x; then 15659 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15660 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15661 fi 15662 15663 # Output is in $new_path 15664 15665 windows_path="$new_path" 15666 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15667 unix_path=`$CYGPATH -u "$windows_path"` 15668 new_path="$unix_path" 15669 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15670 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15671 new_path="$unix_path" 15672 fi 15673 15674 # remove trailing .exe if any 15675 new_path="${new_path/%.exe/}" 15676 15677 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15678 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15679 fi 15680 15681 else 15682 # We're on a posix platform. Hooray! :) 15683 # First separate the path from the arguments. This will split at the first 15684 # space. 15685 complete="$FOUND_MAKE" 15686 path="${complete%% *}" 15687 tmp="$complete EOL" 15688 arguments="${tmp#* }" 15689 15690 # Cannot rely on the command "which" here since it doesn't always work. 15691 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15692 if test -z "$is_absolute_path"; then 15693 # Path to executable is not absolute. Find it. 15694 IFS_save="$IFS" 15695 IFS=: 15696 for p in $PATH; do 15697 if test -f "$p/$path" && test -x "$p/$path"; then 15698 new_path="$p/$path" 15699 break 15700 fi 15701 done 15702 IFS="$IFS_save" 15703 else 15704 # This is an absolute path, we can use it without further modifications. 15705 new_path="$path" 15706 fi 15707 15708 if test "x$new_path" = x; then 15709 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15710 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15711 has_space=`$ECHO "$complete" | $GREP " "` 15712 if test "x$has_space" != x; then 15713 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15714 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15715 fi 15716 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15717 fi 15718 fi 15719 15720 # Now join together the path and the arguments once again 15721 if test "x$arguments" != xEOL; then 15722 new_complete="$new_path ${arguments% *}" 15723 else 15724 new_complete="$new_path" 15725 fi 15726 15727 if test "x$complete" != "x$new_complete"; then 15728 FOUND_MAKE="$new_complete" 15729 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15730 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15731 fi 15732 15733 fi 15734 fi 15735 fi 15736 fi 15737 15738 if test "x$FOUND_MAKE" = x; then 15739 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5 15740 fi 15741 else 15742 # Try our hardest to locate a correct version of GNU make 15743 for ac_prog in gmake 15744 do 15745 # Extract the first word of "$ac_prog", so it can be a program name with args. 15746 set dummy $ac_prog; ac_word=$2 15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15748 $as_echo_n "checking for $ac_word... " >&6; } 15749 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 15750 $as_echo_n "(cached) " >&6 15751 else 15752 case $CHECK_GMAKE in 15753 [\\/]* | ?:[\\/]*) 15754 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 15755 ;; 15756 *) 15757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15758 for as_dir in $PATH 15759 do 15760 IFS=$as_save_IFS 15761 test -z "$as_dir" && as_dir=. 15762 for ac_exec_ext in '' $ac_executable_extensions; do 15763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15764 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 15765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15766 break 2 15767 fi 15768 done 15769 done 15770 IFS=$as_save_IFS 15771 15772 ;; 15773 esac 15774 fi 15775 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 15776 if test -n "$CHECK_GMAKE"; then 15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 15778 $as_echo "$CHECK_GMAKE" >&6; } 15779 else 15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15781 $as_echo "no" >&6; } 15782 fi 15783 15784 15785 test -n "$CHECK_GMAKE" && break 15786 done 15787 15788 15789 MAKE_CANDIDATE=""$CHECK_GMAKE"" 15790 DESCRIPTION="gmake in PATH" 15791 if test "x$MAKE_CANDIDATE" != x; then 15792 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15793 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15794 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15795 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15796 if test "x$IS_GNU_MAKE" = x; then 15797 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15798 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15799 else 15800 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15801 if test "x$IS_MODERN_MAKE" = x; then 15802 { $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 15803 $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;} 15804 else 15805 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15806 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15807 MAKE_EXPECTED_ENV='cygwin' 15808 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15809 MAKE_EXPECTED_ENV='msys' 15810 else 15811 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15812 fi 15813 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15814 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15815 else 15816 # Not relevant for non-Windows 15817 IS_MAKE_CORRECT_ENV=true 15818 fi 15819 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15820 { $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 15821 $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;} 15822 else 15823 FOUND_MAKE=$MAKE_CANDIDATE 15824 15825 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15826 15827 # First separate the path from the arguments. This will split at the first 15828 # space. 15829 complete="$FOUND_MAKE" 15830 path="${complete%% *}" 15831 tmp="$complete EOL" 15832 arguments="${tmp#* }" 15833 15834 # Input might be given as Windows format, start by converting to 15835 # unix format. 15836 new_path=`$CYGPATH -u "$path"` 15837 15838 # Now try to locate executable using which 15839 new_path=`$WHICH "$new_path" 2> /dev/null` 15840 # bat and cmd files are not always considered executable in cygwin causing which 15841 # to not find them 15842 if test "x$new_path" = x \ 15843 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15844 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15845 new_path=`$CYGPATH -u "$path"` 15846 fi 15847 if test "x$new_path" = x; then 15848 # Oops. Which didn't find the executable. 15849 # The splitting of arguments from the executable at a space might have been incorrect, 15850 # since paths with space are more likely in Windows. Give it another try with the whole 15851 # argument. 15852 path="$complete" 15853 arguments="EOL" 15854 new_path=`$CYGPATH -u "$path"` 15855 new_path=`$WHICH "$new_path" 2> /dev/null` 15856 # bat and cmd files are not always considered executable in cygwin causing which 15857 # to not find them 15858 if test "x$new_path" = x \ 15859 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15860 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15861 new_path=`$CYGPATH -u "$path"` 15862 fi 15863 if test "x$new_path" = x; then 15864 # It's still not found. Now this is an unrecoverable error. 15865 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15866 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15867 has_space=`$ECHO "$complete" | $GREP " "` 15868 if test "x$has_space" != x; then 15869 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15870 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15871 fi 15872 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15873 fi 15874 fi 15875 15876 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15877 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15878 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15879 # "foo.exe" is OK but "foo" is an error. 15880 # 15881 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15882 # It is also a way to make sure we got the proper file name for the real test later on. 15883 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15884 if test "x$test_shortpath" = x; then 15885 # Short path failed, file does not exist as specified. 15886 # Try adding .exe or .cmd 15887 if test -f "${new_path}.exe"; then 15888 input_to_shortpath="${new_path}.exe" 15889 elif test -f "${new_path}.cmd"; then 15890 input_to_shortpath="${new_path}.cmd" 15891 else 15892 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15893 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15894 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15895 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15896 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15897 fi 15898 else 15899 input_to_shortpath="$new_path" 15900 fi 15901 15902 # Call helper function which possibly converts this using DOS-style short mode. 15903 # If so, the updated path is stored in $new_path. 15904 new_path="$input_to_shortpath" 15905 15906 input_path="$input_to_shortpath" 15907 # Check if we need to convert this using DOS-style short mode. If the path 15908 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15909 # take no chances and rewrite it. 15910 # Note: m4 eats our [], so we need to use [ and ] instead. 15911 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15912 if test "x$has_forbidden_chars" != x; then 15913 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15914 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15915 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15916 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15917 # Going to short mode and back again did indeed matter. Since short mode is 15918 # case insensitive, let's make it lowercase to improve readability. 15919 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15920 # Now convert it back to Unix-stile (cygpath) 15921 input_path=`$CYGPATH -u "$shortmode_path"` 15922 new_path="$input_path" 15923 fi 15924 fi 15925 15926 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15927 if test "x$test_cygdrive_prefix" = x; then 15928 # As a simple fix, exclude /usr/bin since it's not a real path. 15929 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15930 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15931 # a path prefixed by /cygdrive for fixpath to work. 15932 new_path="$CYGWIN_ROOT_PATH$input_path" 15933 fi 15934 fi 15935 15936 # remove trailing .exe if any 15937 new_path="${new_path/%.exe/}" 15938 15939 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15940 15941 # First separate the path from the arguments. This will split at the first 15942 # space. 15943 complete="$FOUND_MAKE" 15944 path="${complete%% *}" 15945 tmp="$complete EOL" 15946 arguments="${tmp#* }" 15947 15948 # Input might be given as Windows format, start by converting to 15949 # unix format. 15950 new_path="$path" 15951 15952 windows_path="$new_path" 15953 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15954 unix_path=`$CYGPATH -u "$windows_path"` 15955 new_path="$unix_path" 15956 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15957 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15958 new_path="$unix_path" 15959 fi 15960 15961 15962 # Now try to locate executable using which 15963 new_path=`$WHICH "$new_path" 2> /dev/null` 15964 15965 if test "x$new_path" = x; then 15966 # Oops. Which didn't find the executable. 15967 # The splitting of arguments from the executable at a space might have been incorrect, 15968 # since paths with space are more likely in Windows. Give it another try with the whole 15969 # argument. 15970 path="$complete" 15971 arguments="EOL" 15972 new_path="$path" 15973 15974 windows_path="$new_path" 15975 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15976 unix_path=`$CYGPATH -u "$windows_path"` 15977 new_path="$unix_path" 15978 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15979 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15980 new_path="$unix_path" 15981 fi 15982 15983 15984 new_path=`$WHICH "$new_path" 2> /dev/null` 15985 # bat and cmd files are not always considered executable in MSYS causing which 15986 # to not find them 15987 if test "x$new_path" = x \ 15988 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15989 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15990 new_path="$path" 15991 15992 windows_path="$new_path" 15993 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15994 unix_path=`$CYGPATH -u "$windows_path"` 15995 new_path="$unix_path" 15996 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15997 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15998 new_path="$unix_path" 15999 fi 16000 16001 fi 16002 16003 if test "x$new_path" = x; then 16004 # It's still not found. Now this is an unrecoverable error. 16005 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16006 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16007 has_space=`$ECHO "$complete" | $GREP " "` 16008 if test "x$has_space" != x; then 16009 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16010 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16011 fi 16012 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16013 fi 16014 fi 16015 16016 # Now new_path has a complete unix path to the binary 16017 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16018 # Keep paths in /bin as-is, but remove trailing .exe if any 16019 new_path="${new_path/%.exe/}" 16020 # Do not save /bin paths to all_fixpath_prefixes! 16021 else 16022 # Not in mixed or Windows style, start by that. 16023 new_path=`cmd //c echo $new_path` 16024 16025 input_path="$new_path" 16026 # Check if we need to convert this using DOS-style short mode. If the path 16027 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16028 # take no chances and rewrite it. 16029 # Note: m4 eats our [], so we need to use [ and ] instead. 16030 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16031 if test "x$has_forbidden_chars" != x; then 16032 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16033 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16034 fi 16035 16036 # Output is in $new_path 16037 16038 windows_path="$new_path" 16039 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16040 unix_path=`$CYGPATH -u "$windows_path"` 16041 new_path="$unix_path" 16042 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16043 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16044 new_path="$unix_path" 16045 fi 16046 16047 # remove trailing .exe if any 16048 new_path="${new_path/%.exe/}" 16049 16050 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16051 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16052 fi 16053 16054 else 16055 # We're on a posix platform. Hooray! :) 16056 # First separate the path from the arguments. This will split at the first 16057 # space. 16058 complete="$FOUND_MAKE" 16059 path="${complete%% *}" 16060 tmp="$complete EOL" 16061 arguments="${tmp#* }" 16062 16063 # Cannot rely on the command "which" here since it doesn't always work. 16064 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16065 if test -z "$is_absolute_path"; then 16066 # Path to executable is not absolute. Find it. 16067 IFS_save="$IFS" 16068 IFS=: 16069 for p in $PATH; do 16070 if test -f "$p/$path" && test -x "$p/$path"; then 16071 new_path="$p/$path" 16072 break 16073 fi 16074 done 16075 IFS="$IFS_save" 16076 else 16077 # This is an absolute path, we can use it without further modifications. 16078 new_path="$path" 16079 fi 16080 16081 if test "x$new_path" = x; then 16082 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16083 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16084 has_space=`$ECHO "$complete" | $GREP " "` 16085 if test "x$has_space" != x; then 16086 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16087 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16088 fi 16089 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16090 fi 16091 fi 16092 16093 # Now join together the path and the arguments once again 16094 if test "x$arguments" != xEOL; then 16095 new_complete="$new_path ${arguments% *}" 16096 else 16097 new_complete="$new_path" 16098 fi 16099 16100 if test "x$complete" != "x$new_complete"; then 16101 FOUND_MAKE="$new_complete" 16102 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16103 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16104 fi 16105 16106 fi 16107 fi 16108 fi 16109 fi 16110 16111 16112 if test "x$FOUND_MAKE" = x; then 16113 for ac_prog in make 16114 do 16115 # Extract the first word of "$ac_prog", so it can be a program name with args. 16116 set dummy $ac_prog; ac_word=$2 16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16118 $as_echo_n "checking for $ac_word... " >&6; } 16119 if ${ac_cv_path_CHECK_MAKE+:} false; then : 16120 $as_echo_n "(cached) " >&6 16121 else 16122 case $CHECK_MAKE in 16123 [\\/]* | ?:[\\/]*) 16124 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 16125 ;; 16126 *) 16127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16128 for as_dir in $PATH 16129 do 16130 IFS=$as_save_IFS 16131 test -z "$as_dir" && as_dir=. 16132 for ac_exec_ext in '' $ac_executable_extensions; do 16133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16134 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 16135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16136 break 2 16137 fi 16138 done 16139 done 16140 IFS=$as_save_IFS 16141 16142 ;; 16143 esac 16144 fi 16145 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 16146 if test -n "$CHECK_MAKE"; then 16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 16148 $as_echo "$CHECK_MAKE" >&6; } 16149 else 16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16151 $as_echo "no" >&6; } 16152 fi 16153 16154 16155 test -n "$CHECK_MAKE" && break 16156 done 16157 16158 16159 MAKE_CANDIDATE=""$CHECK_MAKE"" 16160 DESCRIPTION="make in PATH" 16161 if test "x$MAKE_CANDIDATE" != x; then 16162 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16163 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16164 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16165 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16166 if test "x$IS_GNU_MAKE" = x; then 16167 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16168 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16169 else 16170 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16171 if test "x$IS_MODERN_MAKE" = x; then 16172 { $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 16173 $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;} 16174 else 16175 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16176 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16177 MAKE_EXPECTED_ENV='cygwin' 16178 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16179 MAKE_EXPECTED_ENV='msys' 16180 else 16181 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16182 fi 16183 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16184 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16185 else 16186 # Not relevant for non-Windows 16187 IS_MAKE_CORRECT_ENV=true 16188 fi 16189 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16190 { $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 16191 $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;} 16192 else 16193 FOUND_MAKE=$MAKE_CANDIDATE 16194 16195 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16196 16197 # First separate the path from the arguments. This will split at the first 16198 # space. 16199 complete="$FOUND_MAKE" 16200 path="${complete%% *}" 16201 tmp="$complete EOL" 16202 arguments="${tmp#* }" 16203 16204 # Input might be given as Windows format, start by converting to 16205 # unix format. 16206 new_path=`$CYGPATH -u "$path"` 16207 16208 # Now try to locate executable using which 16209 new_path=`$WHICH "$new_path" 2> /dev/null` 16210 # bat and cmd files are not always considered executable in cygwin causing which 16211 # to not find them 16212 if test "x$new_path" = x \ 16213 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16214 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16215 new_path=`$CYGPATH -u "$path"` 16216 fi 16217 if test "x$new_path" = x; then 16218 # Oops. Which didn't find the executable. 16219 # The splitting of arguments from the executable at a space might have been incorrect, 16220 # since paths with space are more likely in Windows. Give it another try with the whole 16221 # argument. 16222 path="$complete" 16223 arguments="EOL" 16224 new_path=`$CYGPATH -u "$path"` 16225 new_path=`$WHICH "$new_path" 2> /dev/null` 16226 # bat and cmd files are not always considered executable in cygwin causing which 16227 # to not find them 16228 if test "x$new_path" = x \ 16229 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16230 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16231 new_path=`$CYGPATH -u "$path"` 16232 fi 16233 if test "x$new_path" = x; then 16234 # It's still not found. Now this is an unrecoverable error. 16235 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16236 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16237 has_space=`$ECHO "$complete" | $GREP " "` 16238 if test "x$has_space" != x; then 16239 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16240 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16241 fi 16242 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16243 fi 16244 fi 16245 16246 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16247 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16248 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16249 # "foo.exe" is OK but "foo" is an error. 16250 # 16251 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16252 # It is also a way to make sure we got the proper file name for the real test later on. 16253 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16254 if test "x$test_shortpath" = x; then 16255 # Short path failed, file does not exist as specified. 16256 # Try adding .exe or .cmd 16257 if test -f "${new_path}.exe"; then 16258 input_to_shortpath="${new_path}.exe" 16259 elif test -f "${new_path}.cmd"; then 16260 input_to_shortpath="${new_path}.cmd" 16261 else 16262 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16263 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16264 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16265 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16266 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16267 fi 16268 else 16269 input_to_shortpath="$new_path" 16270 fi 16271 16272 # Call helper function which possibly converts this using DOS-style short mode. 16273 # If so, the updated path is stored in $new_path. 16274 new_path="$input_to_shortpath" 16275 16276 input_path="$input_to_shortpath" 16277 # Check if we need to convert this using DOS-style short mode. If the path 16278 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16279 # take no chances and rewrite it. 16280 # Note: m4 eats our [], so we need to use [ and ] instead. 16281 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16282 if test "x$has_forbidden_chars" != x; then 16283 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16284 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16285 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16286 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16287 # Going to short mode and back again did indeed matter. Since short mode is 16288 # case insensitive, let's make it lowercase to improve readability. 16289 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16290 # Now convert it back to Unix-stile (cygpath) 16291 input_path=`$CYGPATH -u "$shortmode_path"` 16292 new_path="$input_path" 16293 fi 16294 fi 16295 16296 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16297 if test "x$test_cygdrive_prefix" = x; then 16298 # As a simple fix, exclude /usr/bin since it's not a real path. 16299 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16300 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16301 # a path prefixed by /cygdrive for fixpath to work. 16302 new_path="$CYGWIN_ROOT_PATH$input_path" 16303 fi 16304 fi 16305 16306 # remove trailing .exe if any 16307 new_path="${new_path/%.exe/}" 16308 16309 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16310 16311 # First separate the path from the arguments. This will split at the first 16312 # space. 16313 complete="$FOUND_MAKE" 16314 path="${complete%% *}" 16315 tmp="$complete EOL" 16316 arguments="${tmp#* }" 16317 16318 # Input might be given as Windows format, start by converting to 16319 # unix format. 16320 new_path="$path" 16321 16322 windows_path="$new_path" 16323 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16324 unix_path=`$CYGPATH -u "$windows_path"` 16325 new_path="$unix_path" 16326 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16327 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16328 new_path="$unix_path" 16329 fi 16330 16331 16332 # Now try to locate executable using which 16333 new_path=`$WHICH "$new_path" 2> /dev/null` 16334 16335 if test "x$new_path" = x; then 16336 # Oops. Which didn't find the executable. 16337 # The splitting of arguments from the executable at a space might have been incorrect, 16338 # since paths with space are more likely in Windows. Give it another try with the whole 16339 # argument. 16340 path="$complete" 16341 arguments="EOL" 16342 new_path="$path" 16343 16344 windows_path="$new_path" 16345 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16346 unix_path=`$CYGPATH -u "$windows_path"` 16347 new_path="$unix_path" 16348 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16349 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16350 new_path="$unix_path" 16351 fi 16352 16353 16354 new_path=`$WHICH "$new_path" 2> /dev/null` 16355 # bat and cmd files are not always considered executable in MSYS causing which 16356 # to not find them 16357 if test "x$new_path" = x \ 16358 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16359 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16360 new_path="$path" 16361 16362 windows_path="$new_path" 16363 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16364 unix_path=`$CYGPATH -u "$windows_path"` 16365 new_path="$unix_path" 16366 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16367 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16368 new_path="$unix_path" 16369 fi 16370 16371 fi 16372 16373 if test "x$new_path" = x; then 16374 # It's still not found. Now this is an unrecoverable error. 16375 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16376 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16377 has_space=`$ECHO "$complete" | $GREP " "` 16378 if test "x$has_space" != x; then 16379 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16380 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16381 fi 16382 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16383 fi 16384 fi 16385 16386 # Now new_path has a complete unix path to the binary 16387 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16388 # Keep paths in /bin as-is, but remove trailing .exe if any 16389 new_path="${new_path/%.exe/}" 16390 # Do not save /bin paths to all_fixpath_prefixes! 16391 else 16392 # Not in mixed or Windows style, start by that. 16393 new_path=`cmd //c echo $new_path` 16394 16395 input_path="$new_path" 16396 # Check if we need to convert this using DOS-style short mode. If the path 16397 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16398 # take no chances and rewrite it. 16399 # Note: m4 eats our [], so we need to use [ and ] instead. 16400 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16401 if test "x$has_forbidden_chars" != x; then 16402 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16403 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16404 fi 16405 16406 # Output is in $new_path 16407 16408 windows_path="$new_path" 16409 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16410 unix_path=`$CYGPATH -u "$windows_path"` 16411 new_path="$unix_path" 16412 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16413 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16414 new_path="$unix_path" 16415 fi 16416 16417 # remove trailing .exe if any 16418 new_path="${new_path/%.exe/}" 16419 16420 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16421 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16422 fi 16423 16424 else 16425 # We're on a posix platform. Hooray! :) 16426 # First separate the path from the arguments. This will split at the first 16427 # space. 16428 complete="$FOUND_MAKE" 16429 path="${complete%% *}" 16430 tmp="$complete EOL" 16431 arguments="${tmp#* }" 16432 16433 # Cannot rely on the command "which" here since it doesn't always work. 16434 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16435 if test -z "$is_absolute_path"; then 16436 # Path to executable is not absolute. Find it. 16437 IFS_save="$IFS" 16438 IFS=: 16439 for p in $PATH; do 16440 if test -f "$p/$path" && test -x "$p/$path"; then 16441 new_path="$p/$path" 16442 break 16443 fi 16444 done 16445 IFS="$IFS_save" 16446 else 16447 # This is an absolute path, we can use it without further modifications. 16448 new_path="$path" 16449 fi 16450 16451 if test "x$new_path" = x; then 16452 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16453 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16454 has_space=`$ECHO "$complete" | $GREP " "` 16455 if test "x$has_space" != x; then 16456 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16457 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16458 fi 16459 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16460 fi 16461 fi 16462 16463 # Now join together the path and the arguments once again 16464 if test "x$arguments" != xEOL; then 16465 new_complete="$new_path ${arguments% *}" 16466 else 16467 new_complete="$new_path" 16468 fi 16469 16470 if test "x$complete" != "x$new_complete"; then 16471 FOUND_MAKE="$new_complete" 16472 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16473 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16474 fi 16475 16476 fi 16477 fi 16478 fi 16479 fi 16480 16481 fi 16482 16483 if test "x$FOUND_MAKE" = x; then 16484 if test "x$TOOLCHAIN_PATH" != x; then 16485 # We have a toolchain path, check that as well before giving up. 16486 OLD_PATH=$PATH 16487 PATH=$TOOLCHAIN_PATH:$PATH 16488 for ac_prog in gmake 16489 do 16490 # Extract the first word of "$ac_prog", so it can be a program name with args. 16491 set dummy $ac_prog; ac_word=$2 16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16493 $as_echo_n "checking for $ac_word... " >&6; } 16494 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 16495 $as_echo_n "(cached) " >&6 16496 else 16497 case $CHECK_TOOLSDIR_GMAKE in 16498 [\\/]* | ?:[\\/]*) 16499 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 16500 ;; 16501 *) 16502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16503 for as_dir in $PATH 16504 do 16505 IFS=$as_save_IFS 16506 test -z "$as_dir" && as_dir=. 16507 for ac_exec_ext in '' $ac_executable_extensions; do 16508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16509 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 16510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16511 break 2 16512 fi 16513 done 16514 done 16515 IFS=$as_save_IFS 16516 16517 ;; 16518 esac 16519 fi 16520 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 16521 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 16522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 16523 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 16524 else 16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16526 $as_echo "no" >&6; } 16527 fi 16528 16529 16530 test -n "$CHECK_TOOLSDIR_GMAKE" && break 16531 done 16532 16533 16534 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 16535 DESCRIPTION="gmake in tools-dir" 16536 if test "x$MAKE_CANDIDATE" != x; then 16537 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16538 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16539 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16540 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16541 if test "x$IS_GNU_MAKE" = x; then 16542 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16543 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16544 else 16545 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16546 if test "x$IS_MODERN_MAKE" = x; then 16547 { $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 16548 $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;} 16549 else 16550 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16551 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16552 MAKE_EXPECTED_ENV='cygwin' 16553 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16554 MAKE_EXPECTED_ENV='msys' 16555 else 16556 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16557 fi 16558 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16559 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16560 else 16561 # Not relevant for non-Windows 16562 IS_MAKE_CORRECT_ENV=true 16563 fi 16564 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16565 { $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 16566 $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;} 16567 else 16568 FOUND_MAKE=$MAKE_CANDIDATE 16569 16570 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16571 16572 # First separate the path from the arguments. This will split at the first 16573 # space. 16574 complete="$FOUND_MAKE" 16575 path="${complete%% *}" 16576 tmp="$complete EOL" 16577 arguments="${tmp#* }" 16578 16579 # Input might be given as Windows format, start by converting to 16580 # unix format. 16581 new_path=`$CYGPATH -u "$path"` 16582 16583 # Now try to locate executable using which 16584 new_path=`$WHICH "$new_path" 2> /dev/null` 16585 # bat and cmd files are not always considered executable in cygwin causing which 16586 # to not find them 16587 if test "x$new_path" = x \ 16588 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16589 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16590 new_path=`$CYGPATH -u "$path"` 16591 fi 16592 if test "x$new_path" = x; then 16593 # Oops. Which didn't find the executable. 16594 # The splitting of arguments from the executable at a space might have been incorrect, 16595 # since paths with space are more likely in Windows. Give it another try with the whole 16596 # argument. 16597 path="$complete" 16598 arguments="EOL" 16599 new_path=`$CYGPATH -u "$path"` 16600 new_path=`$WHICH "$new_path" 2> /dev/null` 16601 # bat and cmd files are not always considered executable in cygwin causing which 16602 # to not find them 16603 if test "x$new_path" = x \ 16604 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16605 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16606 new_path=`$CYGPATH -u "$path"` 16607 fi 16608 if test "x$new_path" = x; then 16609 # It's still not found. Now this is an unrecoverable error. 16610 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16611 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16612 has_space=`$ECHO "$complete" | $GREP " "` 16613 if test "x$has_space" != x; then 16614 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16615 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16616 fi 16617 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16618 fi 16619 fi 16620 16621 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16622 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16623 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16624 # "foo.exe" is OK but "foo" is an error. 16625 # 16626 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16627 # It is also a way to make sure we got the proper file name for the real test later on. 16628 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16629 if test "x$test_shortpath" = x; then 16630 # Short path failed, file does not exist as specified. 16631 # Try adding .exe or .cmd 16632 if test -f "${new_path}.exe"; then 16633 input_to_shortpath="${new_path}.exe" 16634 elif test -f "${new_path}.cmd"; then 16635 input_to_shortpath="${new_path}.cmd" 16636 else 16637 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16638 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16639 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16640 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16641 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16642 fi 16643 else 16644 input_to_shortpath="$new_path" 16645 fi 16646 16647 # Call helper function which possibly converts this using DOS-style short mode. 16648 # If so, the updated path is stored in $new_path. 16649 new_path="$input_to_shortpath" 16650 16651 input_path="$input_to_shortpath" 16652 # Check if we need to convert this using DOS-style short mode. If the path 16653 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16654 # take no chances and rewrite it. 16655 # Note: m4 eats our [], so we need to use [ and ] instead. 16656 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16657 if test "x$has_forbidden_chars" != x; then 16658 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16659 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16660 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16661 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16662 # Going to short mode and back again did indeed matter. Since short mode is 16663 # case insensitive, let's make it lowercase to improve readability. 16664 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16665 # Now convert it back to Unix-stile (cygpath) 16666 input_path=`$CYGPATH -u "$shortmode_path"` 16667 new_path="$input_path" 16668 fi 16669 fi 16670 16671 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16672 if test "x$test_cygdrive_prefix" = x; then 16673 # As a simple fix, exclude /usr/bin since it's not a real path. 16674 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16675 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16676 # a path prefixed by /cygdrive for fixpath to work. 16677 new_path="$CYGWIN_ROOT_PATH$input_path" 16678 fi 16679 fi 16680 16681 # remove trailing .exe if any 16682 new_path="${new_path/%.exe/}" 16683 16684 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16685 16686 # First separate the path from the arguments. This will split at the first 16687 # space. 16688 complete="$FOUND_MAKE" 16689 path="${complete%% *}" 16690 tmp="$complete EOL" 16691 arguments="${tmp#* }" 16692 16693 # Input might be given as Windows format, start by converting to 16694 # unix format. 16695 new_path="$path" 16696 16697 windows_path="$new_path" 16698 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16699 unix_path=`$CYGPATH -u "$windows_path"` 16700 new_path="$unix_path" 16701 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16702 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16703 new_path="$unix_path" 16704 fi 16705 16706 16707 # Now try to locate executable using which 16708 new_path=`$WHICH "$new_path" 2> /dev/null` 16709 16710 if test "x$new_path" = x; then 16711 # Oops. Which didn't find the executable. 16712 # The splitting of arguments from the executable at a space might have been incorrect, 16713 # since paths with space are more likely in Windows. Give it another try with the whole 16714 # argument. 16715 path="$complete" 16716 arguments="EOL" 16717 new_path="$path" 16718 16719 windows_path="$new_path" 16720 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16721 unix_path=`$CYGPATH -u "$windows_path"` 16722 new_path="$unix_path" 16723 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16724 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16725 new_path="$unix_path" 16726 fi 16727 16728 16729 new_path=`$WHICH "$new_path" 2> /dev/null` 16730 # bat and cmd files are not always considered executable in MSYS causing which 16731 # to not find them 16732 if test "x$new_path" = x \ 16733 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16734 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16735 new_path="$path" 16736 16737 windows_path="$new_path" 16738 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16739 unix_path=`$CYGPATH -u "$windows_path"` 16740 new_path="$unix_path" 16741 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16742 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16743 new_path="$unix_path" 16744 fi 16745 16746 fi 16747 16748 if test "x$new_path" = x; then 16749 # It's still not found. Now this is an unrecoverable error. 16750 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16751 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16752 has_space=`$ECHO "$complete" | $GREP " "` 16753 if test "x$has_space" != x; then 16754 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16755 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16756 fi 16757 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16758 fi 16759 fi 16760 16761 # Now new_path has a complete unix path to the binary 16762 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16763 # Keep paths in /bin as-is, but remove trailing .exe if any 16764 new_path="${new_path/%.exe/}" 16765 # Do not save /bin paths to all_fixpath_prefixes! 16766 else 16767 # Not in mixed or Windows style, start by that. 16768 new_path=`cmd //c echo $new_path` 16769 16770 input_path="$new_path" 16771 # Check if we need to convert this using DOS-style short mode. If the path 16772 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16773 # take no chances and rewrite it. 16774 # Note: m4 eats our [], so we need to use [ and ] instead. 16775 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16776 if test "x$has_forbidden_chars" != x; then 16777 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16778 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16779 fi 16780 16781 # Output is in $new_path 16782 16783 windows_path="$new_path" 16784 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16785 unix_path=`$CYGPATH -u "$windows_path"` 16786 new_path="$unix_path" 16787 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16788 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16789 new_path="$unix_path" 16790 fi 16791 16792 # remove trailing .exe if any 16793 new_path="${new_path/%.exe/}" 16794 16795 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16796 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16797 fi 16798 16799 else 16800 # We're on a posix platform. Hooray! :) 16801 # First separate the path from the arguments. This will split at the first 16802 # space. 16803 complete="$FOUND_MAKE" 16804 path="${complete%% *}" 16805 tmp="$complete EOL" 16806 arguments="${tmp#* }" 16807 16808 # Cannot rely on the command "which" here since it doesn't always work. 16809 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16810 if test -z "$is_absolute_path"; then 16811 # Path to executable is not absolute. Find it. 16812 IFS_save="$IFS" 16813 IFS=: 16814 for p in $PATH; do 16815 if test -f "$p/$path" && test -x "$p/$path"; then 16816 new_path="$p/$path" 16817 break 16818 fi 16819 done 16820 IFS="$IFS_save" 16821 else 16822 # This is an absolute path, we can use it without further modifications. 16823 new_path="$path" 16824 fi 16825 16826 if test "x$new_path" = x; then 16827 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16828 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16829 has_space=`$ECHO "$complete" | $GREP " "` 16830 if test "x$has_space" != x; then 16831 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16832 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16833 fi 16834 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16835 fi 16836 fi 16837 16838 # Now join together the path and the arguments once again 16839 if test "x$arguments" != xEOL; then 16840 new_complete="$new_path ${arguments% *}" 16841 else 16842 new_complete="$new_path" 16843 fi 16844 16845 if test "x$complete" != "x$new_complete"; then 16846 FOUND_MAKE="$new_complete" 16847 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16848 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16849 fi 16850 16851 fi 16852 fi 16853 fi 16854 fi 16855 16856 if test "x$FOUND_MAKE" = x; then 16857 for ac_prog in make 16858 do 16859 # Extract the first word of "$ac_prog", so it can be a program name with args. 16860 set dummy $ac_prog; ac_word=$2 16861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16862 $as_echo_n "checking for $ac_word... " >&6; } 16863 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 16864 $as_echo_n "(cached) " >&6 16865 else 16866 case $CHECK_TOOLSDIR_MAKE in 16867 [\\/]* | ?:[\\/]*) 16868 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 16869 ;; 16870 *) 16871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16872 for as_dir in $PATH 16873 do 16874 IFS=$as_save_IFS 16875 test -z "$as_dir" && as_dir=. 16876 for ac_exec_ext in '' $ac_executable_extensions; do 16877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16878 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 16879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16880 break 2 16881 fi 16882 done 16883 done 16884 IFS=$as_save_IFS 16885 16886 ;; 16887 esac 16888 fi 16889 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 16890 if test -n "$CHECK_TOOLSDIR_MAKE"; then 16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 16892 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 16893 else 16894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16895 $as_echo "no" >&6; } 16896 fi 16897 16898 16899 test -n "$CHECK_TOOLSDIR_MAKE" && break 16900 done 16901 16902 16903 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 16904 DESCRIPTION="make in tools-dir" 16905 if test "x$MAKE_CANDIDATE" != x; then 16906 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16907 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16908 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16909 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16910 if test "x$IS_GNU_MAKE" = x; then 16911 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16912 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16913 else 16914 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16915 if test "x$IS_MODERN_MAKE" = x; then 16916 { $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 16917 $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;} 16918 else 16919 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16920 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16921 MAKE_EXPECTED_ENV='cygwin' 16922 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16923 MAKE_EXPECTED_ENV='msys' 16924 else 16925 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16926 fi 16927 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16928 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16929 else 16930 # Not relevant for non-Windows 16931 IS_MAKE_CORRECT_ENV=true 16932 fi 16933 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16934 { $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 16935 $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;} 16936 else 16937 FOUND_MAKE=$MAKE_CANDIDATE 16938 16939 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16940 16941 # First separate the path from the arguments. This will split at the first 16942 # space. 16943 complete="$FOUND_MAKE" 16944 path="${complete%% *}" 16945 tmp="$complete EOL" 16946 arguments="${tmp#* }" 16947 16948 # Input might be given as Windows format, start by converting to 16949 # unix format. 16950 new_path=`$CYGPATH -u "$path"` 16951 16952 # Now try to locate executable using which 16953 new_path=`$WHICH "$new_path" 2> /dev/null` 16954 # bat and cmd files are not always considered executable in cygwin causing which 16955 # to not find them 16956 if test "x$new_path" = x \ 16957 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16958 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16959 new_path=`$CYGPATH -u "$path"` 16960 fi 16961 if test "x$new_path" = x; then 16962 # Oops. Which didn't find the executable. 16963 # The splitting of arguments from the executable at a space might have been incorrect, 16964 # since paths with space are more likely in Windows. Give it another try with the whole 16965 # argument. 16966 path="$complete" 16967 arguments="EOL" 16968 new_path=`$CYGPATH -u "$path"` 16969 new_path=`$WHICH "$new_path" 2> /dev/null` 16970 # bat and cmd files are not always considered executable in cygwin causing which 16971 # to not find them 16972 if test "x$new_path" = x \ 16973 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16974 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16975 new_path=`$CYGPATH -u "$path"` 16976 fi 16977 if test "x$new_path" = x; then 16978 # It's still not found. Now this is an unrecoverable error. 16979 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16980 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16981 has_space=`$ECHO "$complete" | $GREP " "` 16982 if test "x$has_space" != x; then 16983 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16984 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16985 fi 16986 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16987 fi 16988 fi 16989 16990 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16991 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16992 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16993 # "foo.exe" is OK but "foo" is an error. 16994 # 16995 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16996 # It is also a way to make sure we got the proper file name for the real test later on. 16997 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16998 if test "x$test_shortpath" = x; then 16999 # Short path failed, file does not exist as specified. 17000 # Try adding .exe or .cmd 17001 if test -f "${new_path}.exe"; then 17002 input_to_shortpath="${new_path}.exe" 17003 elif test -f "${new_path}.cmd"; then 17004 input_to_shortpath="${new_path}.cmd" 17005 else 17006 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17007 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17008 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17009 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17010 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17011 fi 17012 else 17013 input_to_shortpath="$new_path" 17014 fi 17015 17016 # Call helper function which possibly converts this using DOS-style short mode. 17017 # If so, the updated path is stored in $new_path. 17018 new_path="$input_to_shortpath" 17019 17020 input_path="$input_to_shortpath" 17021 # Check if we need to convert this using DOS-style short mode. If the path 17022 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17023 # take no chances and rewrite it. 17024 # Note: m4 eats our [], so we need to use [ and ] instead. 17025 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17026 if test "x$has_forbidden_chars" != x; then 17027 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17028 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17029 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17030 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17031 # Going to short mode and back again did indeed matter. Since short mode is 17032 # case insensitive, let's make it lowercase to improve readability. 17033 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17034 # Now convert it back to Unix-stile (cygpath) 17035 input_path=`$CYGPATH -u "$shortmode_path"` 17036 new_path="$input_path" 17037 fi 17038 fi 17039 17040 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17041 if test "x$test_cygdrive_prefix" = x; then 17042 # As a simple fix, exclude /usr/bin since it's not a real path. 17043 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17044 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17045 # a path prefixed by /cygdrive for fixpath to work. 17046 new_path="$CYGWIN_ROOT_PATH$input_path" 17047 fi 17048 fi 17049 17050 # remove trailing .exe if any 17051 new_path="${new_path/%.exe/}" 17052 17053 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17054 17055 # First separate the path from the arguments. This will split at the first 17056 # space. 17057 complete="$FOUND_MAKE" 17058 path="${complete%% *}" 17059 tmp="$complete EOL" 17060 arguments="${tmp#* }" 17061 17062 # Input might be given as Windows format, start by converting to 17063 # unix format. 17064 new_path="$path" 17065 17066 windows_path="$new_path" 17067 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17068 unix_path=`$CYGPATH -u "$windows_path"` 17069 new_path="$unix_path" 17070 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17071 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17072 new_path="$unix_path" 17073 fi 17074 17075 17076 # Now try to locate executable using which 17077 new_path=`$WHICH "$new_path" 2> /dev/null` 17078 17079 if test "x$new_path" = x; then 17080 # Oops. Which didn't find the executable. 17081 # The splitting of arguments from the executable at a space might have been incorrect, 17082 # since paths with space are more likely in Windows. Give it another try with the whole 17083 # argument. 17084 path="$complete" 17085 arguments="EOL" 17086 new_path="$path" 17087 17088 windows_path="$new_path" 17089 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17090 unix_path=`$CYGPATH -u "$windows_path"` 17091 new_path="$unix_path" 17092 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17093 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17094 new_path="$unix_path" 17095 fi 17096 17097 17098 new_path=`$WHICH "$new_path" 2> /dev/null` 17099 # bat and cmd files are not always considered executable in MSYS causing which 17100 # to not find them 17101 if test "x$new_path" = x \ 17102 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17103 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17104 new_path="$path" 17105 17106 windows_path="$new_path" 17107 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17108 unix_path=`$CYGPATH -u "$windows_path"` 17109 new_path="$unix_path" 17110 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17111 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17112 new_path="$unix_path" 17113 fi 17114 17115 fi 17116 17117 if test "x$new_path" = x; then 17118 # It's still not found. Now this is an unrecoverable error. 17119 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17120 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17121 has_space=`$ECHO "$complete" | $GREP " "` 17122 if test "x$has_space" != x; then 17123 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17124 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17125 fi 17126 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17127 fi 17128 fi 17129 17130 # Now new_path has a complete unix path to the binary 17131 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17132 # Keep paths in /bin as-is, but remove trailing .exe if any 17133 new_path="${new_path/%.exe/}" 17134 # Do not save /bin paths to all_fixpath_prefixes! 17135 else 17136 # Not in mixed or Windows style, start by that. 17137 new_path=`cmd //c echo $new_path` 17138 17139 input_path="$new_path" 17140 # Check if we need to convert this using DOS-style short mode. If the path 17141 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17142 # take no chances and rewrite it. 17143 # Note: m4 eats our [], so we need to use [ and ] instead. 17144 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17145 if test "x$has_forbidden_chars" != x; then 17146 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17147 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17148 fi 17149 17150 # Output is in $new_path 17151 17152 windows_path="$new_path" 17153 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17154 unix_path=`$CYGPATH -u "$windows_path"` 17155 new_path="$unix_path" 17156 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17157 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17158 new_path="$unix_path" 17159 fi 17160 17161 # remove trailing .exe if any 17162 new_path="${new_path/%.exe/}" 17163 17164 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17165 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17166 fi 17167 17168 else 17169 # We're on a posix platform. Hooray! :) 17170 # First separate the path from the arguments. This will split at the first 17171 # space. 17172 complete="$FOUND_MAKE" 17173 path="${complete%% *}" 17174 tmp="$complete EOL" 17175 arguments="${tmp#* }" 17176 17177 # Cannot rely on the command "which" here since it doesn't always work. 17178 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17179 if test -z "$is_absolute_path"; then 17180 # Path to executable is not absolute. Find it. 17181 IFS_save="$IFS" 17182 IFS=: 17183 for p in $PATH; do 17184 if test -f "$p/$path" && test -x "$p/$path"; then 17185 new_path="$p/$path" 17186 break 17187 fi 17188 done 17189 IFS="$IFS_save" 17190 else 17191 # This is an absolute path, we can use it without further modifications. 17192 new_path="$path" 17193 fi 17194 17195 if test "x$new_path" = x; then 17196 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17197 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17198 has_space=`$ECHO "$complete" | $GREP " "` 17199 if test "x$has_space" != x; then 17200 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17201 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17202 fi 17203 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17204 fi 17205 fi 17206 17207 # Now join together the path and the arguments once again 17208 if test "x$arguments" != xEOL; then 17209 new_complete="$new_path ${arguments% *}" 17210 else 17211 new_complete="$new_path" 17212 fi 17213 17214 if test "x$complete" != "x$new_complete"; then 17215 FOUND_MAKE="$new_complete" 17216 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17217 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17218 fi 17219 17220 fi 17221 fi 17222 fi 17223 fi 17224 17225 fi 17226 PATH=$OLD_PATH 17227 fi 17228 fi 17229 17230 if test "x$FOUND_MAKE" = x; then 17231 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 17232 fi 17233 fi 17234 17235 MAKE=$FOUND_MAKE 17236 17237 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 17238 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 17239 17240 17241 # Check if make supports the output sync option and if so, setup using it. 17242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 17243 $as_echo_n "checking if make --output-sync is supported... " >&6; } 17244 if $MAKE --version -O > /dev/null 2>&1; then 17245 OUTPUT_SYNC_SUPPORTED=true 17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17247 $as_echo "yes" >&6; } 17248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 17249 $as_echo_n "checking for output-sync value... " >&6; } 17250 17251 # Check whether --with-output-sync was given. 17252 if test "${with_output_sync+set}" = set; then : 17253 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 17254 fi 17255 17256 if test "x$OUTPUT_SYNC" = "x"; then 17257 OUTPUT_SYNC=none 17258 fi 17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 17260 $as_echo "$OUTPUT_SYNC" >&6; } 17261 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 17262 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 17263 fi 17264 else 17265 OUTPUT_SYNC_SUPPORTED=false 17266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17267 $as_echo "no" >&6; } 17268 fi 17269 17270 17271 17272 17273 17274 17275 # Test if find supports -delete 17276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 17277 $as_echo_n "checking if find supports -delete... " >&6; } 17278 FIND_DELETE="-delete" 17279 17280 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 17281 17282 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 17283 17284 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 17285 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 17286 # No, it does not. 17287 rm $DELETEDIR/TestIfFindSupportsDelete 17288 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 17289 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 17290 FIND_DELETE="-print | xargs rm" 17291 else 17292 FIND_DELETE="-exec rm \{\} \+" 17293 fi 17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17295 $as_echo "no" >&6; } 17296 else 17297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17298 $as_echo "yes" >&6; } 17299 fi 17300 rmdir $DELETEDIR 17301 17302 17303 17304 # These tools might not be installed by default, 17305 # need hint on how to install them. 17306 17307 17308 17309 # Publish this variable in the help. 17310 17311 17312 if test "x$UNZIP" = x; then 17313 # The variable is not set by user, try to locate tool using the code snippet 17314 for ac_prog in unzip 17315 do 17316 # Extract the first word of "$ac_prog", so it can be a program name with args. 17317 set dummy $ac_prog; ac_word=$2 17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17319 $as_echo_n "checking for $ac_word... " >&6; } 17320 if ${ac_cv_path_UNZIP+:} false; then : 17321 $as_echo_n "(cached) " >&6 17322 else 17323 case $UNZIP in 17324 [\\/]* | ?:[\\/]*) 17325 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17326 ;; 17327 *) 17328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17329 for as_dir in $PATH 17330 do 17331 IFS=$as_save_IFS 17332 test -z "$as_dir" && as_dir=. 17333 for ac_exec_ext in '' $ac_executable_extensions; do 17334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17335 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17337 break 2 17338 fi 17339 done 17340 done 17341 IFS=$as_save_IFS 17342 17343 ;; 17344 esac 17345 fi 17346 UNZIP=$ac_cv_path_UNZIP 17347 if test -n "$UNZIP"; then 17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17349 $as_echo "$UNZIP" >&6; } 17350 else 17351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17352 $as_echo "no" >&6; } 17353 fi 17354 17355 17356 test -n "$UNZIP" && break 17357 done 17358 17359 else 17360 # The variable is set, but is it from the command line or the environment? 17361 17362 # Try to remove the string !UNZIP! from our list. 17363 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 17364 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17365 # If it failed, the variable was not from the command line. Ignore it, 17366 # but warn the user (except for BASH, which is always set by the calling BASH). 17367 if test "xUNZIP" != xBASH; then 17368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 17369 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 17370 fi 17371 # Try to locate tool using the code snippet 17372 for ac_prog in unzip 17373 do 17374 # Extract the first word of "$ac_prog", so it can be a program name with args. 17375 set dummy $ac_prog; ac_word=$2 17376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17377 $as_echo_n "checking for $ac_word... " >&6; } 17378 if ${ac_cv_path_UNZIP+:} false; then : 17379 $as_echo_n "(cached) " >&6 17380 else 17381 case $UNZIP in 17382 [\\/]* | ?:[\\/]*) 17383 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17384 ;; 17385 *) 17386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17387 for as_dir in $PATH 17388 do 17389 IFS=$as_save_IFS 17390 test -z "$as_dir" && as_dir=. 17391 for ac_exec_ext in '' $ac_executable_extensions; do 17392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17393 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17395 break 2 17396 fi 17397 done 17398 done 17399 IFS=$as_save_IFS 17400 17401 ;; 17402 esac 17403 fi 17404 UNZIP=$ac_cv_path_UNZIP 17405 if test -n "$UNZIP"; then 17406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17407 $as_echo "$UNZIP" >&6; } 17408 else 17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17410 $as_echo "no" >&6; } 17411 fi 17412 17413 17414 test -n "$UNZIP" && break 17415 done 17416 17417 else 17418 # If it succeeded, then it was overridden by the user. We will use it 17419 # for the tool. 17420 17421 # First remove it from the list of overridden variables, so we can test 17422 # for unknown variables in the end. 17423 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17424 17425 # Check if the provided tool contains a complete path. 17426 tool_specified="$UNZIP" 17427 tool_basename="${tool_specified##*/}" 17428 if test "x$tool_basename" = "x$tool_specified"; then 17429 # A command without a complete path is provided, search $PATH. 17430 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 17431 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 17432 # Extract the first word of "$tool_basename", so it can be a program name with args. 17433 set dummy $tool_basename; ac_word=$2 17434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17435 $as_echo_n "checking for $ac_word... " >&6; } 17436 if ${ac_cv_path_UNZIP+:} false; then : 17437 $as_echo_n "(cached) " >&6 17438 else 17439 case $UNZIP in 17440 [\\/]* | ?:[\\/]*) 17441 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17442 ;; 17443 *) 17444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17445 for as_dir in $PATH 17446 do 17447 IFS=$as_save_IFS 17448 test -z "$as_dir" && as_dir=. 17449 for ac_exec_ext in '' $ac_executable_extensions; do 17450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17451 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17453 break 2 17454 fi 17455 done 17456 done 17457 IFS=$as_save_IFS 17458 17459 ;; 17460 esac 17461 fi 17462 UNZIP=$ac_cv_path_UNZIP 17463 if test -n "$UNZIP"; then 17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17465 $as_echo "$UNZIP" >&6; } 17466 else 17467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17468 $as_echo "no" >&6; } 17469 fi 17470 17471 17472 if test "x$UNZIP" = x; then 17473 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17474 fi 17475 else 17476 # Otherwise we believe it is a complete path. Use it as it is. 17477 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 17478 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 17479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 17480 $as_echo_n "checking for UNZIP... " >&6; } 17481 if test ! -x "$tool_specified"; then 17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17483 $as_echo "not found" >&6; } 17484 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17485 fi 17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17487 $as_echo "$tool_specified" >&6; } 17488 fi 17489 fi 17490 fi 17491 17492 17493 17494 if test "x$UNZIP" = x; then 17495 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 17496 fi 17497 17498 17499 17500 17501 17502 # Publish this variable in the help. 17503 17504 17505 if test "x$ZIP" = x; then 17506 # The variable is not set by user, try to locate tool using the code snippet 17507 for ac_prog in zip 17508 do 17509 # Extract the first word of "$ac_prog", so it can be a program name with args. 17510 set dummy $ac_prog; ac_word=$2 17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17512 $as_echo_n "checking for $ac_word... " >&6; } 17513 if ${ac_cv_path_ZIP+:} false; then : 17514 $as_echo_n "(cached) " >&6 17515 else 17516 case $ZIP in 17517 [\\/]* | ?:[\\/]*) 17518 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17519 ;; 17520 *) 17521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17522 for as_dir in $PATH 17523 do 17524 IFS=$as_save_IFS 17525 test -z "$as_dir" && as_dir=. 17526 for ac_exec_ext in '' $ac_executable_extensions; do 17527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17528 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17530 break 2 17531 fi 17532 done 17533 done 17534 IFS=$as_save_IFS 17535 17536 ;; 17537 esac 17538 fi 17539 ZIP=$ac_cv_path_ZIP 17540 if test -n "$ZIP"; then 17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17542 $as_echo "$ZIP" >&6; } 17543 else 17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17545 $as_echo "no" >&6; } 17546 fi 17547 17548 17549 test -n "$ZIP" && break 17550 done 17551 17552 else 17553 # The variable is set, but is it from the command line or the environment? 17554 17555 # Try to remove the string !ZIP! from our list. 17556 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 17557 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17558 # If it failed, the variable was not from the command line. Ignore it, 17559 # but warn the user (except for BASH, which is always set by the calling BASH). 17560 if test "xZIP" != xBASH; then 17561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 17562 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 17563 fi 17564 # Try to locate tool using the code snippet 17565 for ac_prog in zip 17566 do 17567 # Extract the first word of "$ac_prog", so it can be a program name with args. 17568 set dummy $ac_prog; ac_word=$2 17569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17570 $as_echo_n "checking for $ac_word... " >&6; } 17571 if ${ac_cv_path_ZIP+:} false; then : 17572 $as_echo_n "(cached) " >&6 17573 else 17574 case $ZIP in 17575 [\\/]* | ?:[\\/]*) 17576 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17577 ;; 17578 *) 17579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17580 for as_dir in $PATH 17581 do 17582 IFS=$as_save_IFS 17583 test -z "$as_dir" && as_dir=. 17584 for ac_exec_ext in '' $ac_executable_extensions; do 17585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17586 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17588 break 2 17589 fi 17590 done 17591 done 17592 IFS=$as_save_IFS 17593 17594 ;; 17595 esac 17596 fi 17597 ZIP=$ac_cv_path_ZIP 17598 if test -n "$ZIP"; then 17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17600 $as_echo "$ZIP" >&6; } 17601 else 17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17603 $as_echo "no" >&6; } 17604 fi 17605 17606 17607 test -n "$ZIP" && break 17608 done 17609 17610 else 17611 # If it succeeded, then it was overridden by the user. We will use it 17612 # for the tool. 17613 17614 # First remove it from the list of overridden variables, so we can test 17615 # for unknown variables in the end. 17616 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17617 17618 # Check if the provided tool contains a complete path. 17619 tool_specified="$ZIP" 17620 tool_basename="${tool_specified##*/}" 17621 if test "x$tool_basename" = "x$tool_specified"; then 17622 # A command without a complete path is provided, search $PATH. 17623 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 17624 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 17625 # Extract the first word of "$tool_basename", so it can be a program name with args. 17626 set dummy $tool_basename; ac_word=$2 17627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17628 $as_echo_n "checking for $ac_word... " >&6; } 17629 if ${ac_cv_path_ZIP+:} false; then : 17630 $as_echo_n "(cached) " >&6 17631 else 17632 case $ZIP in 17633 [\\/]* | ?:[\\/]*) 17634 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17635 ;; 17636 *) 17637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17638 for as_dir in $PATH 17639 do 17640 IFS=$as_save_IFS 17641 test -z "$as_dir" && as_dir=. 17642 for ac_exec_ext in '' $ac_executable_extensions; do 17643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17644 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17646 break 2 17647 fi 17648 done 17649 done 17650 IFS=$as_save_IFS 17651 17652 ;; 17653 esac 17654 fi 17655 ZIP=$ac_cv_path_ZIP 17656 if test -n "$ZIP"; then 17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17658 $as_echo "$ZIP" >&6; } 17659 else 17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17661 $as_echo "no" >&6; } 17662 fi 17663 17664 17665 if test "x$ZIP" = x; then 17666 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17667 fi 17668 else 17669 # Otherwise we believe it is a complete path. Use it as it is. 17670 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 17671 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 17672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 17673 $as_echo_n "checking for ZIP... " >&6; } 17674 if test ! -x "$tool_specified"; then 17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17676 $as_echo "not found" >&6; } 17677 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17678 fi 17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17680 $as_echo "$tool_specified" >&6; } 17681 fi 17682 fi 17683 fi 17684 17685 17686 17687 if test "x$ZIP" = x; then 17688 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 17689 fi 17690 17691 17692 17693 # Non-required basic tools 17694 17695 17696 17697 # Publish this variable in the help. 17698 17699 17700 if test "x$LDD" = x; then 17701 # The variable is not set by user, try to locate tool using the code snippet 17702 for ac_prog in ldd 17703 do 17704 # Extract the first word of "$ac_prog", so it can be a program name with args. 17705 set dummy $ac_prog; ac_word=$2 17706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17707 $as_echo_n "checking for $ac_word... " >&6; } 17708 if ${ac_cv_path_LDD+:} false; then : 17709 $as_echo_n "(cached) " >&6 17710 else 17711 case $LDD in 17712 [\\/]* | ?:[\\/]*) 17713 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17714 ;; 17715 *) 17716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17717 for as_dir in $PATH 17718 do 17719 IFS=$as_save_IFS 17720 test -z "$as_dir" && as_dir=. 17721 for ac_exec_ext in '' $ac_executable_extensions; do 17722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17723 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17725 break 2 17726 fi 17727 done 17728 done 17729 IFS=$as_save_IFS 17730 17731 ;; 17732 esac 17733 fi 17734 LDD=$ac_cv_path_LDD 17735 if test -n "$LDD"; then 17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17737 $as_echo "$LDD" >&6; } 17738 else 17739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17740 $as_echo "no" >&6; } 17741 fi 17742 17743 17744 test -n "$LDD" && break 17745 done 17746 17747 else 17748 # The variable is set, but is it from the command line or the environment? 17749 17750 # Try to remove the string !LDD! from our list. 17751 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 17752 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17753 # If it failed, the variable was not from the command line. Ignore it, 17754 # but warn the user (except for BASH, which is always set by the calling BASH). 17755 if test "xLDD" != xBASH; then 17756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 17757 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 17758 fi 17759 # Try to locate tool using the code snippet 17760 for ac_prog in ldd 17761 do 17762 # Extract the first word of "$ac_prog", so it can be a program name with args. 17763 set dummy $ac_prog; ac_word=$2 17764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17765 $as_echo_n "checking for $ac_word... " >&6; } 17766 if ${ac_cv_path_LDD+:} false; then : 17767 $as_echo_n "(cached) " >&6 17768 else 17769 case $LDD in 17770 [\\/]* | ?:[\\/]*) 17771 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17772 ;; 17773 *) 17774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17775 for as_dir in $PATH 17776 do 17777 IFS=$as_save_IFS 17778 test -z "$as_dir" && as_dir=. 17779 for ac_exec_ext in '' $ac_executable_extensions; do 17780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17781 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17783 break 2 17784 fi 17785 done 17786 done 17787 IFS=$as_save_IFS 17788 17789 ;; 17790 esac 17791 fi 17792 LDD=$ac_cv_path_LDD 17793 if test -n "$LDD"; then 17794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17795 $as_echo "$LDD" >&6; } 17796 else 17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17798 $as_echo "no" >&6; } 17799 fi 17800 17801 17802 test -n "$LDD" && break 17803 done 17804 17805 else 17806 # If it succeeded, then it was overridden by the user. We will use it 17807 # for the tool. 17808 17809 # First remove it from the list of overridden variables, so we can test 17810 # for unknown variables in the end. 17811 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17812 17813 # Check if the provided tool contains a complete path. 17814 tool_specified="$LDD" 17815 tool_basename="${tool_specified##*/}" 17816 if test "x$tool_basename" = "x$tool_specified"; then 17817 # A command without a complete path is provided, search $PATH. 17818 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 17819 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 17820 # Extract the first word of "$tool_basename", so it can be a program name with args. 17821 set dummy $tool_basename; ac_word=$2 17822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17823 $as_echo_n "checking for $ac_word... " >&6; } 17824 if ${ac_cv_path_LDD+:} false; then : 17825 $as_echo_n "(cached) " >&6 17826 else 17827 case $LDD in 17828 [\\/]* | ?:[\\/]*) 17829 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17830 ;; 17831 *) 17832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17833 for as_dir in $PATH 17834 do 17835 IFS=$as_save_IFS 17836 test -z "$as_dir" && as_dir=. 17837 for ac_exec_ext in '' $ac_executable_extensions; do 17838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17839 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17841 break 2 17842 fi 17843 done 17844 done 17845 IFS=$as_save_IFS 17846 17847 ;; 17848 esac 17849 fi 17850 LDD=$ac_cv_path_LDD 17851 if test -n "$LDD"; then 17852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17853 $as_echo "$LDD" >&6; } 17854 else 17855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17856 $as_echo "no" >&6; } 17857 fi 17858 17859 17860 if test "x$LDD" = x; then 17861 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17862 fi 17863 else 17864 # Otherwise we believe it is a complete path. Use it as it is. 17865 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 17866 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 17867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 17868 $as_echo_n "checking for LDD... " >&6; } 17869 if test ! -x "$tool_specified"; then 17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17871 $as_echo "not found" >&6; } 17872 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 17873 fi 17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17875 $as_echo "$tool_specified" >&6; } 17876 fi 17877 fi 17878 fi 17879 17880 17881 if test "x$LDD" = "x"; then 17882 # List shared lib dependencies is used for 17883 # debug output and checking for forbidden dependencies. 17884 # We can build without it. 17885 LDD="true" 17886 fi 17887 17888 17889 # Publish this variable in the help. 17890 17891 17892 if test "x$OTOOL" = x; then 17893 # The variable is not set by user, try to locate tool using the code snippet 17894 for ac_prog in otool 17895 do 17896 # Extract the first word of "$ac_prog", so it can be a program name with args. 17897 set dummy $ac_prog; ac_word=$2 17898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17899 $as_echo_n "checking for $ac_word... " >&6; } 17900 if ${ac_cv_path_OTOOL+:} false; then : 17901 $as_echo_n "(cached) " >&6 17902 else 17903 case $OTOOL in 17904 [\\/]* | ?:[\\/]*) 17905 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 17906 ;; 17907 *) 17908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17909 for as_dir in $PATH 17910 do 17911 IFS=$as_save_IFS 17912 test -z "$as_dir" && as_dir=. 17913 for ac_exec_ext in '' $ac_executable_extensions; do 17914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17915 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 17916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17917 break 2 17918 fi 17919 done 17920 done 17921 IFS=$as_save_IFS 17922 17923 ;; 17924 esac 17925 fi 17926 OTOOL=$ac_cv_path_OTOOL 17927 if test -n "$OTOOL"; then 17928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17929 $as_echo "$OTOOL" >&6; } 17930 else 17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17932 $as_echo "no" >&6; } 17933 fi 17934 17935 17936 test -n "$OTOOL" && break 17937 done 17938 17939 else 17940 # The variable is set, but is it from the command line or the environment? 17941 17942 # Try to remove the string !OTOOL! from our list. 17943 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 17944 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17945 # If it failed, the variable was not from the command line. Ignore it, 17946 # but warn the user (except for BASH, which is always set by the calling BASH). 17947 if test "xOTOOL" != xBASH; then 17948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 17949 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 17950 fi 17951 # Try to locate tool using the code snippet 17952 for ac_prog in otool 17953 do 17954 # Extract the first word of "$ac_prog", so it can be a program name with args. 17955 set dummy $ac_prog; ac_word=$2 17956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17957 $as_echo_n "checking for $ac_word... " >&6; } 17958 if ${ac_cv_path_OTOOL+:} false; then : 17959 $as_echo_n "(cached) " >&6 17960 else 17961 case $OTOOL in 17962 [\\/]* | ?:[\\/]*) 17963 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 17964 ;; 17965 *) 17966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17967 for as_dir in $PATH 17968 do 17969 IFS=$as_save_IFS 17970 test -z "$as_dir" && as_dir=. 17971 for ac_exec_ext in '' $ac_executable_extensions; do 17972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17973 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 17974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17975 break 2 17976 fi 17977 done 17978 done 17979 IFS=$as_save_IFS 17980 17981 ;; 17982 esac 17983 fi 17984 OTOOL=$ac_cv_path_OTOOL 17985 if test -n "$OTOOL"; then 17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17987 $as_echo "$OTOOL" >&6; } 17988 else 17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17990 $as_echo "no" >&6; } 17991 fi 17992 17993 17994 test -n "$OTOOL" && break 17995 done 17996 17997 else 17998 # If it succeeded, then it was overridden by the user. We will use it 17999 # for the tool. 18000 18001 # First remove it from the list of overridden variables, so we can test 18002 # for unknown variables in the end. 18003 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18004 18005 # Check if the provided tool contains a complete path. 18006 tool_specified="$OTOOL" 18007 tool_basename="${tool_specified##*/}" 18008 if test "x$tool_basename" = "x$tool_specified"; then 18009 # A command without a complete path is provided, search $PATH. 18010 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 18011 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 18012 # Extract the first word of "$tool_basename", so it can be a program name with args. 18013 set dummy $tool_basename; ac_word=$2 18014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18015 $as_echo_n "checking for $ac_word... " >&6; } 18016 if ${ac_cv_path_OTOOL+:} false; then : 18017 $as_echo_n "(cached) " >&6 18018 else 18019 case $OTOOL in 18020 [\\/]* | ?:[\\/]*) 18021 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 18022 ;; 18023 *) 18024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18025 for as_dir in $PATH 18026 do 18027 IFS=$as_save_IFS 18028 test -z "$as_dir" && as_dir=. 18029 for ac_exec_ext in '' $ac_executable_extensions; do 18030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18031 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 18032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18033 break 2 18034 fi 18035 done 18036 done 18037 IFS=$as_save_IFS 18038 18039 ;; 18040 esac 18041 fi 18042 OTOOL=$ac_cv_path_OTOOL 18043 if test -n "$OTOOL"; then 18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 18045 $as_echo "$OTOOL" >&6; } 18046 else 18047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18048 $as_echo "no" >&6; } 18049 fi 18050 18051 18052 if test "x$OTOOL" = x; then 18053 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18054 fi 18055 else 18056 # Otherwise we believe it is a complete path. Use it as it is. 18057 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 18058 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 18059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 18060 $as_echo_n "checking for OTOOL... " >&6; } 18061 if test ! -x "$tool_specified"; then 18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18063 $as_echo "not found" >&6; } 18064 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 18065 fi 18066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18067 $as_echo "$tool_specified" >&6; } 18068 fi 18069 fi 18070 fi 18071 18072 18073 if test "x$OTOOL" = "x"; then 18074 OTOOL="true" 18075 fi 18076 18077 18078 # Publish this variable in the help. 18079 18080 18081 if test "x$READELF" = x; then 18082 # The variable is not set by user, try to locate tool using the code snippet 18083 for ac_prog in greadelf readelf 18084 do 18085 # Extract the first word of "$ac_prog", so it can be a program name with args. 18086 set dummy $ac_prog; ac_word=$2 18087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18088 $as_echo_n "checking for $ac_word... " >&6; } 18089 if ${ac_cv_path_READELF+:} false; then : 18090 $as_echo_n "(cached) " >&6 18091 else 18092 case $READELF in 18093 [\\/]* | ?:[\\/]*) 18094 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18095 ;; 18096 *) 18097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18098 for as_dir in $PATH 18099 do 18100 IFS=$as_save_IFS 18101 test -z "$as_dir" && as_dir=. 18102 for ac_exec_ext in '' $ac_executable_extensions; do 18103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18104 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18106 break 2 18107 fi 18108 done 18109 done 18110 IFS=$as_save_IFS 18111 18112 ;; 18113 esac 18114 fi 18115 READELF=$ac_cv_path_READELF 18116 if test -n "$READELF"; then 18117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18118 $as_echo "$READELF" >&6; } 18119 else 18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18121 $as_echo "no" >&6; } 18122 fi 18123 18124 18125 test -n "$READELF" && break 18126 done 18127 18128 else 18129 # The variable is set, but is it from the command line or the environment? 18130 18131 # Try to remove the string !READELF! from our list. 18132 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 18133 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18134 # If it failed, the variable was not from the command line. Ignore it, 18135 # but warn the user (except for BASH, which is always set by the calling BASH). 18136 if test "xREADELF" != xBASH; then 18137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 18138 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 18139 fi 18140 # Try to locate tool using the code snippet 18141 for ac_prog in greadelf readelf 18142 do 18143 # Extract the first word of "$ac_prog", so it can be a program name with args. 18144 set dummy $ac_prog; ac_word=$2 18145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18146 $as_echo_n "checking for $ac_word... " >&6; } 18147 if ${ac_cv_path_READELF+:} false; then : 18148 $as_echo_n "(cached) " >&6 18149 else 18150 case $READELF in 18151 [\\/]* | ?:[\\/]*) 18152 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18153 ;; 18154 *) 18155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18156 for as_dir in $PATH 18157 do 18158 IFS=$as_save_IFS 18159 test -z "$as_dir" && as_dir=. 18160 for ac_exec_ext in '' $ac_executable_extensions; do 18161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18162 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18164 break 2 18165 fi 18166 done 18167 done 18168 IFS=$as_save_IFS 18169 18170 ;; 18171 esac 18172 fi 18173 READELF=$ac_cv_path_READELF 18174 if test -n "$READELF"; then 18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18176 $as_echo "$READELF" >&6; } 18177 else 18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18179 $as_echo "no" >&6; } 18180 fi 18181 18182 18183 test -n "$READELF" && break 18184 done 18185 18186 else 18187 # If it succeeded, then it was overridden by the user. We will use it 18188 # for the tool. 18189 18190 # First remove it from the list of overridden variables, so we can test 18191 # for unknown variables in the end. 18192 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18193 18194 # Check if the provided tool contains a complete path. 18195 tool_specified="$READELF" 18196 tool_basename="${tool_specified##*/}" 18197 if test "x$tool_basename" = "x$tool_specified"; then 18198 # A command without a complete path is provided, search $PATH. 18199 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 18200 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 18201 # Extract the first word of "$tool_basename", so it can be a program name with args. 18202 set dummy $tool_basename; ac_word=$2 18203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18204 $as_echo_n "checking for $ac_word... " >&6; } 18205 if ${ac_cv_path_READELF+:} false; then : 18206 $as_echo_n "(cached) " >&6 18207 else 18208 case $READELF in 18209 [\\/]* | ?:[\\/]*) 18210 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18211 ;; 18212 *) 18213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18214 for as_dir in $PATH 18215 do 18216 IFS=$as_save_IFS 18217 test -z "$as_dir" && as_dir=. 18218 for ac_exec_ext in '' $ac_executable_extensions; do 18219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18220 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18222 break 2 18223 fi 18224 done 18225 done 18226 IFS=$as_save_IFS 18227 18228 ;; 18229 esac 18230 fi 18231 READELF=$ac_cv_path_READELF 18232 if test -n "$READELF"; then 18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18234 $as_echo "$READELF" >&6; } 18235 else 18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18237 $as_echo "no" >&6; } 18238 fi 18239 18240 18241 if test "x$READELF" = x; then 18242 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18243 fi 18244 else 18245 # Otherwise we believe it is a complete path. Use it as it is. 18246 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 18247 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 18248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 18249 $as_echo_n "checking for READELF... " >&6; } 18250 if test ! -x "$tool_specified"; then 18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18252 $as_echo "not found" >&6; } 18253 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 18254 fi 18255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18256 $as_echo "$tool_specified" >&6; } 18257 fi 18258 fi 18259 fi 18260 18261 18262 18263 18264 # Publish this variable in the help. 18265 18266 18267 if test "x$HG" = x; then 18268 # The variable is not set by user, try to locate tool using the code snippet 18269 for ac_prog in hg 18270 do 18271 # Extract the first word of "$ac_prog", so it can be a program name with args. 18272 set dummy $ac_prog; ac_word=$2 18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18274 $as_echo_n "checking for $ac_word... " >&6; } 18275 if ${ac_cv_path_HG+:} false; then : 18276 $as_echo_n "(cached) " >&6 18277 else 18278 case $HG in 18279 [\\/]* | ?:[\\/]*) 18280 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18281 ;; 18282 *) 18283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18284 for as_dir in $PATH 18285 do 18286 IFS=$as_save_IFS 18287 test -z "$as_dir" && as_dir=. 18288 for ac_exec_ext in '' $ac_executable_extensions; do 18289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18290 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18292 break 2 18293 fi 18294 done 18295 done 18296 IFS=$as_save_IFS 18297 18298 ;; 18299 esac 18300 fi 18301 HG=$ac_cv_path_HG 18302 if test -n "$HG"; then 18303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18304 $as_echo "$HG" >&6; } 18305 else 18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18307 $as_echo "no" >&6; } 18308 fi 18309 18310 18311 test -n "$HG" && break 18312 done 18313 18314 else 18315 # The variable is set, but is it from the command line or the environment? 18316 18317 # Try to remove the string !HG! from our list. 18318 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 18319 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18320 # If it failed, the variable was not from the command line. Ignore it, 18321 # but warn the user (except for BASH, which is always set by the calling BASH). 18322 if test "xHG" != xBASH; then 18323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 18324 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 18325 fi 18326 # Try to locate tool using the code snippet 18327 for ac_prog in hg 18328 do 18329 # Extract the first word of "$ac_prog", so it can be a program name with args. 18330 set dummy $ac_prog; ac_word=$2 18331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18332 $as_echo_n "checking for $ac_word... " >&6; } 18333 if ${ac_cv_path_HG+:} false; then : 18334 $as_echo_n "(cached) " >&6 18335 else 18336 case $HG in 18337 [\\/]* | ?:[\\/]*) 18338 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18339 ;; 18340 *) 18341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18342 for as_dir in $PATH 18343 do 18344 IFS=$as_save_IFS 18345 test -z "$as_dir" && as_dir=. 18346 for ac_exec_ext in '' $ac_executable_extensions; do 18347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18348 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18350 break 2 18351 fi 18352 done 18353 done 18354 IFS=$as_save_IFS 18355 18356 ;; 18357 esac 18358 fi 18359 HG=$ac_cv_path_HG 18360 if test -n "$HG"; then 18361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18362 $as_echo "$HG" >&6; } 18363 else 18364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18365 $as_echo "no" >&6; } 18366 fi 18367 18368 18369 test -n "$HG" && break 18370 done 18371 18372 else 18373 # If it succeeded, then it was overridden by the user. We will use it 18374 # for the tool. 18375 18376 # First remove it from the list of overridden variables, so we can test 18377 # for unknown variables in the end. 18378 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18379 18380 # Check if the provided tool contains a complete path. 18381 tool_specified="$HG" 18382 tool_basename="${tool_specified##*/}" 18383 if test "x$tool_basename" = "x$tool_specified"; then 18384 # A command without a complete path is provided, search $PATH. 18385 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 18386 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 18387 # Extract the first word of "$tool_basename", so it can be a program name with args. 18388 set dummy $tool_basename; ac_word=$2 18389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18390 $as_echo_n "checking for $ac_word... " >&6; } 18391 if ${ac_cv_path_HG+:} false; then : 18392 $as_echo_n "(cached) " >&6 18393 else 18394 case $HG in 18395 [\\/]* | ?:[\\/]*) 18396 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18397 ;; 18398 *) 18399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18400 for as_dir in $PATH 18401 do 18402 IFS=$as_save_IFS 18403 test -z "$as_dir" && as_dir=. 18404 for ac_exec_ext in '' $ac_executable_extensions; do 18405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18406 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18408 break 2 18409 fi 18410 done 18411 done 18412 IFS=$as_save_IFS 18413 18414 ;; 18415 esac 18416 fi 18417 HG=$ac_cv_path_HG 18418 if test -n "$HG"; then 18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18420 $as_echo "$HG" >&6; } 18421 else 18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18423 $as_echo "no" >&6; } 18424 fi 18425 18426 18427 if test "x$HG" = x; then 18428 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18429 fi 18430 else 18431 # Otherwise we believe it is a complete path. Use it as it is. 18432 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 18433 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 18434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 18435 $as_echo_n "checking for HG... " >&6; } 18436 if test ! -x "$tool_specified"; then 18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18438 $as_echo "not found" >&6; } 18439 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 18440 fi 18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18442 $as_echo "$tool_specified" >&6; } 18443 fi 18444 fi 18445 fi 18446 18447 18448 18449 18450 # Publish this variable in the help. 18451 18452 18453 if test "x$STAT" = x; then 18454 # The variable is not set by user, try to locate tool using the code snippet 18455 for ac_prog in stat 18456 do 18457 # Extract the first word of "$ac_prog", so it can be a program name with args. 18458 set dummy $ac_prog; ac_word=$2 18459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18460 $as_echo_n "checking for $ac_word... " >&6; } 18461 if ${ac_cv_path_STAT+:} false; then : 18462 $as_echo_n "(cached) " >&6 18463 else 18464 case $STAT in 18465 [\\/]* | ?:[\\/]*) 18466 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18467 ;; 18468 *) 18469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18470 for as_dir in $PATH 18471 do 18472 IFS=$as_save_IFS 18473 test -z "$as_dir" && as_dir=. 18474 for ac_exec_ext in '' $ac_executable_extensions; do 18475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18476 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18478 break 2 18479 fi 18480 done 18481 done 18482 IFS=$as_save_IFS 18483 18484 ;; 18485 esac 18486 fi 18487 STAT=$ac_cv_path_STAT 18488 if test -n "$STAT"; then 18489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18490 $as_echo "$STAT" >&6; } 18491 else 18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18493 $as_echo "no" >&6; } 18494 fi 18495 18496 18497 test -n "$STAT" && break 18498 done 18499 18500 else 18501 # The variable is set, but is it from the command line or the environment? 18502 18503 # Try to remove the string !STAT! from our list. 18504 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 18505 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18506 # If it failed, the variable was not from the command line. Ignore it, 18507 # but warn the user (except for BASH, which is always set by the calling BASH). 18508 if test "xSTAT" != xBASH; then 18509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 18510 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 18511 fi 18512 # Try to locate tool using the code snippet 18513 for ac_prog in stat 18514 do 18515 # Extract the first word of "$ac_prog", so it can be a program name with args. 18516 set dummy $ac_prog; ac_word=$2 18517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18518 $as_echo_n "checking for $ac_word... " >&6; } 18519 if ${ac_cv_path_STAT+:} false; then : 18520 $as_echo_n "(cached) " >&6 18521 else 18522 case $STAT in 18523 [\\/]* | ?:[\\/]*) 18524 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18525 ;; 18526 *) 18527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18528 for as_dir in $PATH 18529 do 18530 IFS=$as_save_IFS 18531 test -z "$as_dir" && as_dir=. 18532 for ac_exec_ext in '' $ac_executable_extensions; do 18533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18534 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18536 break 2 18537 fi 18538 done 18539 done 18540 IFS=$as_save_IFS 18541 18542 ;; 18543 esac 18544 fi 18545 STAT=$ac_cv_path_STAT 18546 if test -n "$STAT"; then 18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18548 $as_echo "$STAT" >&6; } 18549 else 18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18551 $as_echo "no" >&6; } 18552 fi 18553 18554 18555 test -n "$STAT" && break 18556 done 18557 18558 else 18559 # If it succeeded, then it was overridden by the user. We will use it 18560 # for the tool. 18561 18562 # First remove it from the list of overridden variables, so we can test 18563 # for unknown variables in the end. 18564 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18565 18566 # Check if the provided tool contains a complete path. 18567 tool_specified="$STAT" 18568 tool_basename="${tool_specified##*/}" 18569 if test "x$tool_basename" = "x$tool_specified"; then 18570 # A command without a complete path is provided, search $PATH. 18571 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 18572 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 18573 # Extract the first word of "$tool_basename", so it can be a program name with args. 18574 set dummy $tool_basename; ac_word=$2 18575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18576 $as_echo_n "checking for $ac_word... " >&6; } 18577 if ${ac_cv_path_STAT+:} false; then : 18578 $as_echo_n "(cached) " >&6 18579 else 18580 case $STAT in 18581 [\\/]* | ?:[\\/]*) 18582 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18583 ;; 18584 *) 18585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18586 for as_dir in $PATH 18587 do 18588 IFS=$as_save_IFS 18589 test -z "$as_dir" && as_dir=. 18590 for ac_exec_ext in '' $ac_executable_extensions; do 18591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18592 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18594 break 2 18595 fi 18596 done 18597 done 18598 IFS=$as_save_IFS 18599 18600 ;; 18601 esac 18602 fi 18603 STAT=$ac_cv_path_STAT 18604 if test -n "$STAT"; then 18605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18606 $as_echo "$STAT" >&6; } 18607 else 18608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18609 $as_echo "no" >&6; } 18610 fi 18611 18612 18613 if test "x$STAT" = x; then 18614 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18615 fi 18616 else 18617 # Otherwise we believe it is a complete path. Use it as it is. 18618 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 18619 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 18620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 18621 $as_echo_n "checking for STAT... " >&6; } 18622 if test ! -x "$tool_specified"; then 18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18624 $as_echo "not found" >&6; } 18625 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 18626 fi 18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18628 $as_echo "$tool_specified" >&6; } 18629 fi 18630 fi 18631 fi 18632 18633 18634 18635 18636 # Publish this variable in the help. 18637 18638 18639 if test "x$TIME" = x; then 18640 # The variable is not set by user, try to locate tool using the code snippet 18641 for ac_prog in time 18642 do 18643 # Extract the first word of "$ac_prog", so it can be a program name with args. 18644 set dummy $ac_prog; ac_word=$2 18645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18646 $as_echo_n "checking for $ac_word... " >&6; } 18647 if ${ac_cv_path_TIME+:} false; then : 18648 $as_echo_n "(cached) " >&6 18649 else 18650 case $TIME in 18651 [\\/]* | ?:[\\/]*) 18652 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18653 ;; 18654 *) 18655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18656 for as_dir in $PATH 18657 do 18658 IFS=$as_save_IFS 18659 test -z "$as_dir" && as_dir=. 18660 for ac_exec_ext in '' $ac_executable_extensions; do 18661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18662 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18664 break 2 18665 fi 18666 done 18667 done 18668 IFS=$as_save_IFS 18669 18670 ;; 18671 esac 18672 fi 18673 TIME=$ac_cv_path_TIME 18674 if test -n "$TIME"; then 18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18676 $as_echo "$TIME" >&6; } 18677 else 18678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18679 $as_echo "no" >&6; } 18680 fi 18681 18682 18683 test -n "$TIME" && break 18684 done 18685 18686 else 18687 # The variable is set, but is it from the command line or the environment? 18688 18689 # Try to remove the string !TIME! from our list. 18690 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 18691 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18692 # If it failed, the variable was not from the command line. Ignore it, 18693 # but warn the user (except for BASH, which is always set by the calling BASH). 18694 if test "xTIME" != xBASH; then 18695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 18696 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 18697 fi 18698 # Try to locate tool using the code snippet 18699 for ac_prog in time 18700 do 18701 # Extract the first word of "$ac_prog", so it can be a program name with args. 18702 set dummy $ac_prog; ac_word=$2 18703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18704 $as_echo_n "checking for $ac_word... " >&6; } 18705 if ${ac_cv_path_TIME+:} false; then : 18706 $as_echo_n "(cached) " >&6 18707 else 18708 case $TIME in 18709 [\\/]* | ?:[\\/]*) 18710 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18711 ;; 18712 *) 18713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18714 for as_dir in $PATH 18715 do 18716 IFS=$as_save_IFS 18717 test -z "$as_dir" && as_dir=. 18718 for ac_exec_ext in '' $ac_executable_extensions; do 18719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18720 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18722 break 2 18723 fi 18724 done 18725 done 18726 IFS=$as_save_IFS 18727 18728 ;; 18729 esac 18730 fi 18731 TIME=$ac_cv_path_TIME 18732 if test -n "$TIME"; then 18733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18734 $as_echo "$TIME" >&6; } 18735 else 18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18737 $as_echo "no" >&6; } 18738 fi 18739 18740 18741 test -n "$TIME" && break 18742 done 18743 18744 else 18745 # If it succeeded, then it was overridden by the user. We will use it 18746 # for the tool. 18747 18748 # First remove it from the list of overridden variables, so we can test 18749 # for unknown variables in the end. 18750 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18751 18752 # Check if the provided tool contains a complete path. 18753 tool_specified="$TIME" 18754 tool_basename="${tool_specified##*/}" 18755 if test "x$tool_basename" = "x$tool_specified"; then 18756 # A command without a complete path is provided, search $PATH. 18757 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 18758 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 18759 # Extract the first word of "$tool_basename", so it can be a program name with args. 18760 set dummy $tool_basename; ac_word=$2 18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18762 $as_echo_n "checking for $ac_word... " >&6; } 18763 if ${ac_cv_path_TIME+:} false; then : 18764 $as_echo_n "(cached) " >&6 18765 else 18766 case $TIME in 18767 [\\/]* | ?:[\\/]*) 18768 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18769 ;; 18770 *) 18771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18772 for as_dir in $PATH 18773 do 18774 IFS=$as_save_IFS 18775 test -z "$as_dir" && as_dir=. 18776 for ac_exec_ext in '' $ac_executable_extensions; do 18777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18778 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18780 break 2 18781 fi 18782 done 18783 done 18784 IFS=$as_save_IFS 18785 18786 ;; 18787 esac 18788 fi 18789 TIME=$ac_cv_path_TIME 18790 if test -n "$TIME"; then 18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18792 $as_echo "$TIME" >&6; } 18793 else 18794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18795 $as_echo "no" >&6; } 18796 fi 18797 18798 18799 if test "x$TIME" = x; then 18800 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18801 fi 18802 else 18803 # Otherwise we believe it is a complete path. Use it as it is. 18804 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 18805 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 18806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 18807 $as_echo_n "checking for TIME... " >&6; } 18808 if test ! -x "$tool_specified"; then 18809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18810 $as_echo "not found" >&6; } 18811 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 18812 fi 18813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18814 $as_echo "$tool_specified" >&6; } 18815 fi 18816 fi 18817 fi 18818 18819 18820 # Check if it's GNU time 18821 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 18822 if test "x$IS_GNU_TIME" != x; then 18823 IS_GNU_TIME=yes 18824 else 18825 IS_GNU_TIME=no 18826 fi 18827 18828 18829 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 18830 18831 18832 18833 # Publish this variable in the help. 18834 18835 18836 if test "x$COMM" = x; then 18837 # The variable is not set by user, try to locate tool using the code snippet 18838 for ac_prog in comm 18839 do 18840 # Extract the first word of "$ac_prog", so it can be a program name with args. 18841 set dummy $ac_prog; ac_word=$2 18842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18843 $as_echo_n "checking for $ac_word... " >&6; } 18844 if ${ac_cv_path_COMM+:} false; then : 18845 $as_echo_n "(cached) " >&6 18846 else 18847 case $COMM in 18848 [\\/]* | ?:[\\/]*) 18849 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18850 ;; 18851 *) 18852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18853 for as_dir in $PATH 18854 do 18855 IFS=$as_save_IFS 18856 test -z "$as_dir" && as_dir=. 18857 for ac_exec_ext in '' $ac_executable_extensions; do 18858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18859 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18861 break 2 18862 fi 18863 done 18864 done 18865 IFS=$as_save_IFS 18866 18867 ;; 18868 esac 18869 fi 18870 COMM=$ac_cv_path_COMM 18871 if test -n "$COMM"; then 18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18873 $as_echo "$COMM" >&6; } 18874 else 18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18876 $as_echo "no" >&6; } 18877 fi 18878 18879 18880 test -n "$COMM" && break 18881 done 18882 18883 else 18884 # The variable is set, but is it from the command line or the environment? 18885 18886 # Try to remove the string !COMM! from our list. 18887 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 18888 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18889 # If it failed, the variable was not from the command line. Ignore it, 18890 # but warn the user (except for BASH, which is always set by the calling BASH). 18891 if test "xCOMM" != xBASH; then 18892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 18893 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 18894 fi 18895 # Try to locate tool using the code snippet 18896 for ac_prog in comm 18897 do 18898 # Extract the first word of "$ac_prog", so it can be a program name with args. 18899 set dummy $ac_prog; ac_word=$2 18900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18901 $as_echo_n "checking for $ac_word... " >&6; } 18902 if ${ac_cv_path_COMM+:} false; then : 18903 $as_echo_n "(cached) " >&6 18904 else 18905 case $COMM in 18906 [\\/]* | ?:[\\/]*) 18907 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18908 ;; 18909 *) 18910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18911 for as_dir in $PATH 18912 do 18913 IFS=$as_save_IFS 18914 test -z "$as_dir" && as_dir=. 18915 for ac_exec_ext in '' $ac_executable_extensions; do 18916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18917 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18919 break 2 18920 fi 18921 done 18922 done 18923 IFS=$as_save_IFS 18924 18925 ;; 18926 esac 18927 fi 18928 COMM=$ac_cv_path_COMM 18929 if test -n "$COMM"; then 18930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18931 $as_echo "$COMM" >&6; } 18932 else 18933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18934 $as_echo "no" >&6; } 18935 fi 18936 18937 18938 test -n "$COMM" && break 18939 done 18940 18941 else 18942 # If it succeeded, then it was overridden by the user. We will use it 18943 # for the tool. 18944 18945 # First remove it from the list of overridden variables, so we can test 18946 # for unknown variables in the end. 18947 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18948 18949 # Check if the provided tool contains a complete path. 18950 tool_specified="$COMM" 18951 tool_basename="${tool_specified##*/}" 18952 if test "x$tool_basename" = "x$tool_specified"; then 18953 # A command without a complete path is provided, search $PATH. 18954 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 18955 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 18956 # Extract the first word of "$tool_basename", so it can be a program name with args. 18957 set dummy $tool_basename; ac_word=$2 18958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18959 $as_echo_n "checking for $ac_word... " >&6; } 18960 if ${ac_cv_path_COMM+:} false; then : 18961 $as_echo_n "(cached) " >&6 18962 else 18963 case $COMM in 18964 [\\/]* | ?:[\\/]*) 18965 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18966 ;; 18967 *) 18968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18969 for as_dir in $PATH 18970 do 18971 IFS=$as_save_IFS 18972 test -z "$as_dir" && as_dir=. 18973 for ac_exec_ext in '' $ac_executable_extensions; do 18974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18975 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18977 break 2 18978 fi 18979 done 18980 done 18981 IFS=$as_save_IFS 18982 18983 ;; 18984 esac 18985 fi 18986 COMM=$ac_cv_path_COMM 18987 if test -n "$COMM"; then 18988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18989 $as_echo "$COMM" >&6; } 18990 else 18991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18992 $as_echo "no" >&6; } 18993 fi 18994 18995 18996 if test "x$COMM" = x; then 18997 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18998 fi 18999 else 19000 # Otherwise we believe it is a complete path. Use it as it is. 19001 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 19002 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 19003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 19004 $as_echo_n "checking for COMM... " >&6; } 19005 if test ! -x "$tool_specified"; then 19006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19007 $as_echo "not found" >&6; } 19008 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 19009 fi 19010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19011 $as_echo "$tool_specified" >&6; } 19012 fi 19013 fi 19014 fi 19015 19016 19017 19018 if test "x$COMM" = x; then 19019 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 19020 fi 19021 19022 19023 fi 19024 19025 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 19026 19027 19028 19029 # Publish this variable in the help. 19030 19031 19032 if test "x$DSYMUTIL" = x; then 19033 # The variable is not set by user, try to locate tool using the code snippet 19034 for ac_prog in dsymutil 19035 do 19036 # Extract the first word of "$ac_prog", so it can be a program name with args. 19037 set dummy $ac_prog; ac_word=$2 19038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19039 $as_echo_n "checking for $ac_word... " >&6; } 19040 if ${ac_cv_path_DSYMUTIL+:} false; then : 19041 $as_echo_n "(cached) " >&6 19042 else 19043 case $DSYMUTIL in 19044 [\\/]* | ?:[\\/]*) 19045 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 19046 ;; 19047 *) 19048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19049 for as_dir in $PATH 19050 do 19051 IFS=$as_save_IFS 19052 test -z "$as_dir" && as_dir=. 19053 for ac_exec_ext in '' $ac_executable_extensions; do 19054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19055 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 19056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19057 break 2 19058 fi 19059 done 19060 done 19061 IFS=$as_save_IFS 19062 19063 ;; 19064 esac 19065 fi 19066 DSYMUTIL=$ac_cv_path_DSYMUTIL 19067 if test -n "$DSYMUTIL"; then 19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19069 $as_echo "$DSYMUTIL" >&6; } 19070 else 19071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19072 $as_echo "no" >&6; } 19073 fi 19074 19075 19076 test -n "$DSYMUTIL" && break 19077 done 19078 19079 else 19080 # The variable is set, but is it from the command line or the environment? 19081 19082 # Try to remove the string !DSYMUTIL! from our list. 19083 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 19084 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19085 # If it failed, the variable was not from the command line. Ignore it, 19086 # but warn the user (except for BASH, which is always set by the calling BASH). 19087 if test "xDSYMUTIL" != xBASH; then 19088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 19089 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 19090 fi 19091 # Try to locate tool using the code snippet 19092 for ac_prog in dsymutil 19093 do 19094 # Extract the first word of "$ac_prog", so it can be a program name with args. 19095 set dummy $ac_prog; ac_word=$2 19096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19097 $as_echo_n "checking for $ac_word... " >&6; } 19098 if ${ac_cv_path_DSYMUTIL+:} false; then : 19099 $as_echo_n "(cached) " >&6 19100 else 19101 case $DSYMUTIL in 19102 [\\/]* | ?:[\\/]*) 19103 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 19104 ;; 19105 *) 19106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19107 for as_dir in $PATH 19108 do 19109 IFS=$as_save_IFS 19110 test -z "$as_dir" && as_dir=. 19111 for ac_exec_ext in '' $ac_executable_extensions; do 19112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19113 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 19114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19115 break 2 19116 fi 19117 done 19118 done 19119 IFS=$as_save_IFS 19120 19121 ;; 19122 esac 19123 fi 19124 DSYMUTIL=$ac_cv_path_DSYMUTIL 19125 if test -n "$DSYMUTIL"; then 19126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19127 $as_echo "$DSYMUTIL" >&6; } 19128 else 19129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19130 $as_echo "no" >&6; } 19131 fi 19132 19133 19134 test -n "$DSYMUTIL" && break 19135 done 19136 19137 else 19138 # If it succeeded, then it was overridden by the user. We will use it 19139 # for the tool. 19140 19141 # First remove it from the list of overridden variables, so we can test 19142 # for unknown variables in the end. 19143 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19144 19145 # Check if the provided tool contains a complete path. 19146 tool_specified="$DSYMUTIL" 19147 tool_basename="${tool_specified##*/}" 19148 if test "x$tool_basename" = "x$tool_specified"; then 19149 # A command without a complete path is provided, search $PATH. 19150 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 19151 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 19152 # Extract the first word of "$tool_basename", so it can be a program name with args. 19153 set dummy $tool_basename; ac_word=$2 19154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19155 $as_echo_n "checking for $ac_word... " >&6; } 19156 if ${ac_cv_path_DSYMUTIL+:} false; then : 19157 $as_echo_n "(cached) " >&6 19158 else 19159 case $DSYMUTIL in 19160 [\\/]* | ?:[\\/]*) 19161 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 19162 ;; 19163 *) 19164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19165 for as_dir in $PATH 19166 do 19167 IFS=$as_save_IFS 19168 test -z "$as_dir" && as_dir=. 19169 for ac_exec_ext in '' $ac_executable_extensions; do 19170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19171 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 19172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19173 break 2 19174 fi 19175 done 19176 done 19177 IFS=$as_save_IFS 19178 19179 ;; 19180 esac 19181 fi 19182 DSYMUTIL=$ac_cv_path_DSYMUTIL 19183 if test -n "$DSYMUTIL"; then 19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19185 $as_echo "$DSYMUTIL" >&6; } 19186 else 19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19188 $as_echo "no" >&6; } 19189 fi 19190 19191 19192 if test "x$DSYMUTIL" = x; then 19193 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19194 fi 19195 else 19196 # Otherwise we believe it is a complete path. Use it as it is. 19197 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 19198 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 19199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 19200 $as_echo_n "checking for DSYMUTIL... " >&6; } 19201 if test ! -x "$tool_specified"; then 19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19203 $as_echo "not found" >&6; } 19204 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 19205 fi 19206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19207 $as_echo "$tool_specified" >&6; } 19208 fi 19209 fi 19210 fi 19211 19212 19213 19214 if test "x$DSYMUTIL" = x; then 19215 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 19216 fi 19217 19218 19219 19220 19221 19222 # Publish this variable in the help. 19223 19224 19225 if test "x$XATTR" = x; then 19226 # The variable is not set by user, try to locate tool using the code snippet 19227 for ac_prog in xattr 19228 do 19229 # Extract the first word of "$ac_prog", so it can be a program name with args. 19230 set dummy $ac_prog; ac_word=$2 19231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19232 $as_echo_n "checking for $ac_word... " >&6; } 19233 if ${ac_cv_path_XATTR+:} false; then : 19234 $as_echo_n "(cached) " >&6 19235 else 19236 case $XATTR in 19237 [\\/]* | ?:[\\/]*) 19238 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19239 ;; 19240 *) 19241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19242 for as_dir in $PATH 19243 do 19244 IFS=$as_save_IFS 19245 test -z "$as_dir" && as_dir=. 19246 for ac_exec_ext in '' $ac_executable_extensions; do 19247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19248 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19250 break 2 19251 fi 19252 done 19253 done 19254 IFS=$as_save_IFS 19255 19256 ;; 19257 esac 19258 fi 19259 XATTR=$ac_cv_path_XATTR 19260 if test -n "$XATTR"; then 19261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19262 $as_echo "$XATTR" >&6; } 19263 else 19264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19265 $as_echo "no" >&6; } 19266 fi 19267 19268 19269 test -n "$XATTR" && break 19270 done 19271 19272 else 19273 # The variable is set, but is it from the command line or the environment? 19274 19275 # Try to remove the string !XATTR! from our list. 19276 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 19277 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19278 # If it failed, the variable was not from the command line. Ignore it, 19279 # but warn the user (except for BASH, which is always set by the calling BASH). 19280 if test "xXATTR" != xBASH; then 19281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 19282 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 19283 fi 19284 # Try to locate tool using the code snippet 19285 for ac_prog in xattr 19286 do 19287 # Extract the first word of "$ac_prog", so it can be a program name with args. 19288 set dummy $ac_prog; ac_word=$2 19289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19290 $as_echo_n "checking for $ac_word... " >&6; } 19291 if ${ac_cv_path_XATTR+:} false; then : 19292 $as_echo_n "(cached) " >&6 19293 else 19294 case $XATTR in 19295 [\\/]* | ?:[\\/]*) 19296 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19297 ;; 19298 *) 19299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19300 for as_dir in $PATH 19301 do 19302 IFS=$as_save_IFS 19303 test -z "$as_dir" && as_dir=. 19304 for ac_exec_ext in '' $ac_executable_extensions; do 19305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19306 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19308 break 2 19309 fi 19310 done 19311 done 19312 IFS=$as_save_IFS 19313 19314 ;; 19315 esac 19316 fi 19317 XATTR=$ac_cv_path_XATTR 19318 if test -n "$XATTR"; then 19319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19320 $as_echo "$XATTR" >&6; } 19321 else 19322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19323 $as_echo "no" >&6; } 19324 fi 19325 19326 19327 test -n "$XATTR" && break 19328 done 19329 19330 else 19331 # If it succeeded, then it was overridden by the user. We will use it 19332 # for the tool. 19333 19334 # First remove it from the list of overridden variables, so we can test 19335 # for unknown variables in the end. 19336 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19337 19338 # Check if the provided tool contains a complete path. 19339 tool_specified="$XATTR" 19340 tool_basename="${tool_specified##*/}" 19341 if test "x$tool_basename" = "x$tool_specified"; then 19342 # A command without a complete path is provided, search $PATH. 19343 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 19344 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 19345 # Extract the first word of "$tool_basename", so it can be a program name with args. 19346 set dummy $tool_basename; ac_word=$2 19347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19348 $as_echo_n "checking for $ac_word... " >&6; } 19349 if ${ac_cv_path_XATTR+:} false; then : 19350 $as_echo_n "(cached) " >&6 19351 else 19352 case $XATTR in 19353 [\\/]* | ?:[\\/]*) 19354 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19355 ;; 19356 *) 19357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19358 for as_dir in $PATH 19359 do 19360 IFS=$as_save_IFS 19361 test -z "$as_dir" && as_dir=. 19362 for ac_exec_ext in '' $ac_executable_extensions; do 19363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19364 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19366 break 2 19367 fi 19368 done 19369 done 19370 IFS=$as_save_IFS 19371 19372 ;; 19373 esac 19374 fi 19375 XATTR=$ac_cv_path_XATTR 19376 if test -n "$XATTR"; then 19377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19378 $as_echo "$XATTR" >&6; } 19379 else 19380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19381 $as_echo "no" >&6; } 19382 fi 19383 19384 19385 if test "x$XATTR" = x; then 19386 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19387 fi 19388 else 19389 # Otherwise we believe it is a complete path. Use it as it is. 19390 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 19391 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 19392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 19393 $as_echo_n "checking for XATTR... " >&6; } 19394 if test ! -x "$tool_specified"; then 19395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19396 $as_echo "not found" >&6; } 19397 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 19398 fi 19399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19400 $as_echo "$tool_specified" >&6; } 19401 fi 19402 fi 19403 fi 19404 19405 19406 19407 if test "x$XATTR" = x; then 19408 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 19409 fi 19410 19411 19412 19413 19414 # Publish this variable in the help. 19415 19416 19417 if test "x$CODESIGN" = x; then 19418 # The variable is not set by user, try to locate tool using the code snippet 19419 for ac_prog in codesign 19420 do 19421 # Extract the first word of "$ac_prog", so it can be a program name with args. 19422 set dummy $ac_prog; ac_word=$2 19423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19424 $as_echo_n "checking for $ac_word... " >&6; } 19425 if ${ac_cv_path_CODESIGN+:} false; then : 19426 $as_echo_n "(cached) " >&6 19427 else 19428 case $CODESIGN in 19429 [\\/]* | ?:[\\/]*) 19430 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19431 ;; 19432 *) 19433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19434 for as_dir in $PATH 19435 do 19436 IFS=$as_save_IFS 19437 test -z "$as_dir" && as_dir=. 19438 for ac_exec_ext in '' $ac_executable_extensions; do 19439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19440 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19442 break 2 19443 fi 19444 done 19445 done 19446 IFS=$as_save_IFS 19447 19448 ;; 19449 esac 19450 fi 19451 CODESIGN=$ac_cv_path_CODESIGN 19452 if test -n "$CODESIGN"; then 19453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19454 $as_echo "$CODESIGN" >&6; } 19455 else 19456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19457 $as_echo "no" >&6; } 19458 fi 19459 19460 19461 test -n "$CODESIGN" && break 19462 done 19463 19464 else 19465 # The variable is set, but is it from the command line or the environment? 19466 19467 # Try to remove the string !CODESIGN! from our list. 19468 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 19469 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19470 # If it failed, the variable was not from the command line. Ignore it, 19471 # but warn the user (except for BASH, which is always set by the calling BASH). 19472 if test "xCODESIGN" != xBASH; then 19473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 19474 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 19475 fi 19476 # Try to locate tool using the code snippet 19477 for ac_prog in codesign 19478 do 19479 # Extract the first word of "$ac_prog", so it can be a program name with args. 19480 set dummy $ac_prog; ac_word=$2 19481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19482 $as_echo_n "checking for $ac_word... " >&6; } 19483 if ${ac_cv_path_CODESIGN+:} false; then : 19484 $as_echo_n "(cached) " >&6 19485 else 19486 case $CODESIGN in 19487 [\\/]* | ?:[\\/]*) 19488 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19489 ;; 19490 *) 19491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19492 for as_dir in $PATH 19493 do 19494 IFS=$as_save_IFS 19495 test -z "$as_dir" && as_dir=. 19496 for ac_exec_ext in '' $ac_executable_extensions; do 19497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19498 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19500 break 2 19501 fi 19502 done 19503 done 19504 IFS=$as_save_IFS 19505 19506 ;; 19507 esac 19508 fi 19509 CODESIGN=$ac_cv_path_CODESIGN 19510 if test -n "$CODESIGN"; then 19511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19512 $as_echo "$CODESIGN" >&6; } 19513 else 19514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19515 $as_echo "no" >&6; } 19516 fi 19517 19518 19519 test -n "$CODESIGN" && break 19520 done 19521 19522 else 19523 # If it succeeded, then it was overridden by the user. We will use it 19524 # for the tool. 19525 19526 # First remove it from the list of overridden variables, so we can test 19527 # for unknown variables in the end. 19528 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19529 19530 # Check if the provided tool contains a complete path. 19531 tool_specified="$CODESIGN" 19532 tool_basename="${tool_specified##*/}" 19533 if test "x$tool_basename" = "x$tool_specified"; then 19534 # A command without a complete path is provided, search $PATH. 19535 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 19536 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 19537 # Extract the first word of "$tool_basename", so it can be a program name with args. 19538 set dummy $tool_basename; ac_word=$2 19539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19540 $as_echo_n "checking for $ac_word... " >&6; } 19541 if ${ac_cv_path_CODESIGN+:} false; then : 19542 $as_echo_n "(cached) " >&6 19543 else 19544 case $CODESIGN in 19545 [\\/]* | ?:[\\/]*) 19546 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19547 ;; 19548 *) 19549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19550 for as_dir in $PATH 19551 do 19552 IFS=$as_save_IFS 19553 test -z "$as_dir" && as_dir=. 19554 for ac_exec_ext in '' $ac_executable_extensions; do 19555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19556 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19558 break 2 19559 fi 19560 done 19561 done 19562 IFS=$as_save_IFS 19563 19564 ;; 19565 esac 19566 fi 19567 CODESIGN=$ac_cv_path_CODESIGN 19568 if test -n "$CODESIGN"; then 19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19570 $as_echo "$CODESIGN" >&6; } 19571 else 19572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19573 $as_echo "no" >&6; } 19574 fi 19575 19576 19577 if test "x$CODESIGN" = x; then 19578 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19579 fi 19580 else 19581 # Otherwise we believe it is a complete path. Use it as it is. 19582 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 19583 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 19584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 19585 $as_echo_n "checking for CODESIGN... " >&6; } 19586 if test ! -x "$tool_specified"; then 19587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19588 $as_echo "not found" >&6; } 19589 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 19590 fi 19591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19592 $as_echo "$tool_specified" >&6; } 19593 fi 19594 fi 19595 fi 19596 19597 19598 if test "x$CODESIGN" != "x"; then 19599 # Verify that the openjdk_codesign certificate is present 19600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 19601 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 19602 rm -f codesign-testfile 19603 touch codesign-testfile 19604 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 19605 rm -f codesign-testfile 19606 if test "x$CODESIGN" = x; then 19607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19608 $as_echo "no" >&6; } 19609 else 19610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19611 $as_echo "yes" >&6; } 19612 fi 19613 fi 19614 fi 19615 19616 19617 # Check if pkg-config is available. 19618 19619 19620 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19621 if test -n "$ac_tool_prefix"; then 19622 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19623 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19625 $as_echo_n "checking for $ac_word... " >&6; } 19626 if ${ac_cv_path_PKG_CONFIG+:} false; then : 19627 $as_echo_n "(cached) " >&6 19628 else 19629 case $PKG_CONFIG in 19630 [\\/]* | ?:[\\/]*) 19631 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19632 ;; 19633 *) 19634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19635 for as_dir in $PATH 19636 do 19637 IFS=$as_save_IFS 19638 test -z "$as_dir" && as_dir=. 19639 for ac_exec_ext in '' $ac_executable_extensions; do 19640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19641 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19643 break 2 19644 fi 19645 done 19646 done 19647 IFS=$as_save_IFS 19648 19649 ;; 19650 esac 19651 fi 19652 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19653 if test -n "$PKG_CONFIG"; then 19654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19655 $as_echo "$PKG_CONFIG" >&6; } 19656 else 19657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19658 $as_echo "no" >&6; } 19659 fi 19660 19661 19662 fi 19663 if test -z "$ac_cv_path_PKG_CONFIG"; then 19664 ac_pt_PKG_CONFIG=$PKG_CONFIG 19665 # Extract the first word of "pkg-config", so it can be a program name with args. 19666 set dummy pkg-config; ac_word=$2 19667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19668 $as_echo_n "checking for $ac_word... " >&6; } 19669 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19670 $as_echo_n "(cached) " >&6 19671 else 19672 case $ac_pt_PKG_CONFIG in 19673 [\\/]* | ?:[\\/]*) 19674 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19675 ;; 19676 *) 19677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19678 for as_dir in $PATH 19679 do 19680 IFS=$as_save_IFS 19681 test -z "$as_dir" && as_dir=. 19682 for ac_exec_ext in '' $ac_executable_extensions; do 19683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19684 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19686 break 2 19687 fi 19688 done 19689 done 19690 IFS=$as_save_IFS 19691 19692 ;; 19693 esac 19694 fi 19695 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19696 if test -n "$ac_pt_PKG_CONFIG"; then 19697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19698 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 19699 else 19700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19701 $as_echo "no" >&6; } 19702 fi 19703 19704 if test "x$ac_pt_PKG_CONFIG" = x; then 19705 PKG_CONFIG="" 19706 else 19707 case $cross_compiling:$ac_tool_warned in 19708 yes:) 19709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19711 ac_tool_warned=yes ;; 19712 esac 19713 PKG_CONFIG=$ac_pt_PKG_CONFIG 19714 fi 19715 else 19716 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19717 fi 19718 19719 fi 19720 if test -n "$PKG_CONFIG"; then 19721 _pkg_min_version=0.9.0 19722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19723 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19724 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19726 $as_echo "yes" >&6; } 19727 else 19728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19729 $as_echo "no" >&6; } 19730 PKG_CONFIG="" 19731 fi 19732 19733 fi 19734 19735 # After basic tools have been setup, we can check build os specific details. 19736 19737 ############################################################################### 19738 19739 # Note that this is the build platform OS version! 19740 19741 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 19742 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 19743 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 19744 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 19745 19746 19747 19748 19749 19750 # Setup builddeps, for automatic downloading of tools we need. 19751 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in 19752 # boot-jdk setup, but we need to have basic tools setup first. 19753 19754 19755 # Check whether --with-builddeps-conf was given. 19756 if test "${with_builddeps_conf+set}" = set; then : 19757 withval=$with_builddeps_conf; 19758 fi 19759 19760 19761 19762 # Check whether --with-builddeps-server was given. 19763 if test "${with_builddeps_server+set}" = set; then : 19764 withval=$with_builddeps_server; 19765 fi 19766 19767 19768 19769 # Check whether --with-builddeps-dir was given. 19770 if test "${with_builddeps_dir+set}" = set; then : 19771 withval=$with_builddeps_dir; 19772 else 19773 with_builddeps_dir=/localhome/builddeps 19774 fi 19775 19776 19777 19778 # Check whether --with-builddeps-group was given. 19779 if test "${with_builddeps_group+set}" = set; then : 19780 withval=$with_builddeps_group; 19781 fi 19782 19783 19784 19785 19786 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19787 if test "x$with_builddeps_conf" != x; then 19788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5 19789 $as_echo_n "checking for supplied builddeps configuration file... " >&6; } 19790 builddepsfile=$with_builddeps_conf 19791 if test -s $builddepsfile; then 19792 . $builddepsfile 19793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5 19794 $as_echo "loaded!" >&6; } 19795 else 19796 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5 19797 fi 19798 else 19799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5 19800 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; } 19801 builddepsfile=`mktemp` 19802 touch $builddepsfile 19803 # Put all found confs into a single file. 19804 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile 19805 # Source the file to acquire the variables 19806 if test -s $builddepsfile; then 19807 . $builddepsfile 19808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5 19809 $as_echo "found at least one!" >&6; } 19810 else 19811 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5 19812 fi 19813 fi 19814 # Create build and target names that use _ instead of "-" and ".". 19815 # This is necessary to use them in variable names. 19816 build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19817 target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19818 # Extract rewrite information for build and target 19819 eval rewritten_build=\${REWRITE_${build_var}} 19820 if test "x$rewritten_build" = x; then 19821 rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME} 19822 echo Build stays the same $rewritten_build 19823 else 19824 echo Rewriting build for builddeps into $rewritten_build 19825 fi 19826 eval rewritten_target=\${REWRITE_${target_var}} 19827 if test "x$rewritten_target" = x; then 19828 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME} 19829 echo Target stays the same $rewritten_target 19830 else 19831 echo Rewriting target for builddeps into $rewritten_target 19832 fi 19833 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'` 19834 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'` 19835 fi 19836 for ac_prog in 7z unzip 19837 do 19838 # Extract the first word of "$ac_prog", so it can be a program name with args. 19839 set dummy $ac_prog; ac_word=$2 19840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19841 $as_echo_n "checking for $ac_word... " >&6; } 19842 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then : 19843 $as_echo_n "(cached) " >&6 19844 else 19845 if test -n "$BDEPS_UNZIP"; then 19846 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 19847 else 19848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19849 for as_dir in $PATH 19850 do 19851 IFS=$as_save_IFS 19852 test -z "$as_dir" && as_dir=. 19853 for ac_exec_ext in '' $ac_executable_extensions; do 19854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19855 ac_cv_prog_BDEPS_UNZIP="$ac_prog" 19856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19857 break 2 19858 fi 19859 done 19860 done 19861 IFS=$as_save_IFS 19862 19863 fi 19864 fi 19865 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 19866 if test -n "$BDEPS_UNZIP"; then 19867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 19868 $as_echo "$BDEPS_UNZIP" >&6; } 19869 else 19870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19871 $as_echo "no" >&6; } 19872 fi 19873 19874 19875 test -n "$BDEPS_UNZIP" && break 19876 done 19877 19878 if test "x$BDEPS_UNZIP" = x7z; then 19879 BDEPS_UNZIP="7z x" 19880 fi 19881 19882 for ac_prog in wget lftp ftp 19883 do 19884 # Extract the first word of "$ac_prog", so it can be a program name with args. 19885 set dummy $ac_prog; ac_word=$2 19886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19887 $as_echo_n "checking for $ac_word... " >&6; } 19888 if ${ac_cv_prog_BDEPS_FTP+:} false; then : 19889 $as_echo_n "(cached) " >&6 19890 else 19891 if test -n "$BDEPS_FTP"; then 19892 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 19893 else 19894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19895 for as_dir in $PATH 19896 do 19897 IFS=$as_save_IFS 19898 test -z "$as_dir" && as_dir=. 19899 for ac_exec_ext in '' $ac_executable_extensions; do 19900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19901 ac_cv_prog_BDEPS_FTP="$ac_prog" 19902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19903 break 2 19904 fi 19905 done 19906 done 19907 IFS=$as_save_IFS 19908 19909 fi 19910 fi 19911 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 19912 if test -n "$BDEPS_FTP"; then 19913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 19914 $as_echo "$BDEPS_FTP" >&6; } 19915 else 19916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19917 $as_echo "no" >&6; } 19918 fi 19919 19920 19921 test -n "$BDEPS_FTP" && break 19922 done 19923 19924 19925 19926 ############################################################################### 19927 # 19928 # Determine OpenJDK variants, options and version numbers. 19929 # 19930 ############################################################################### 19931 19932 # We need build & target for this. 19933 19934 19935 ############################################################################### 19936 # 19937 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 19938 # We always build headless support. 19939 # 19940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 19941 $as_echo_n "checking headful support... " >&6; } 19942 # Check whether --enable-headful was given. 19943 if test "${enable_headful+set}" = set; then : 19944 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 19945 else 19946 SUPPORT_HEADFUL=yes 19947 fi 19948 19949 19950 SUPPORT_HEADLESS=yes 19951 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19952 19953 if test "x$SUPPORT_HEADFUL" = xyes; then 19954 # We are building both headful and headless. 19955 headful_msg="include support for both headful and headless" 19956 fi 19957 19958 if test "x$SUPPORT_HEADFUL" = xno; then 19959 # Thus we are building headless only. 19960 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19961 headful_msg="headless only" 19962 fi 19963 19964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 19965 $as_echo "$headful_msg" >&6; } 19966 19967 19968 19969 19970 19971 # Control wether Hotspot runs Queens test after build. 19972 # Check whether --enable-hotspot-test-in-build was given. 19973 if test "${enable_hotspot_test_in_build+set}" = set; then : 19974 enableval=$enable_hotspot_test_in_build; 19975 else 19976 enable_hotspot_test_in_build=no 19977 fi 19978 19979 if test "x$enable_hotspot_test_in_build" = "xyes"; then 19980 TEST_IN_BUILD=true 19981 else 19982 TEST_IN_BUILD=false 19983 fi 19984 19985 19986 ############################################################################### 19987 # 19988 # Choose cacerts source file 19989 # 19990 19991 # Check whether --with-cacerts-file was given. 19992 if test "${with_cacerts_file+set}" = set; then : 19993 withval=$with_cacerts_file; 19994 fi 19995 19996 if test "x$with_cacerts_file" != x; then 19997 CACERTS_FILE=$with_cacerts_file 19998 fi 19999 20000 20001 ############################################################################### 20002 # 20003 # Enable or disable unlimited crypto 20004 # 20005 # Check whether --enable-unlimited-crypto was given. 20006 if test "${enable_unlimited_crypto+set}" = set; then : 20007 enableval=$enable_unlimited_crypto; 20008 else 20009 enable_unlimited_crypto=no 20010 fi 20011 20012 if test "x$enable_unlimited_crypto" = "xyes"; then 20013 UNLIMITED_CRYPTO=true 20014 else 20015 UNLIMITED_CRYPTO=false 20016 fi 20017 20018 20019 ############################################################################### 20020 # 20021 # Enable or disable the elliptic curve crypto implementation 20022 # 20023 20024 20025 ############################################################################### 20026 # 20027 # --enable-rmiconnector-iiop 20028 # 20029 # Check whether --enable-rmiconnector-iiop was given. 20030 if test "${enable_rmiconnector_iiop+set}" = set; then : 20031 enableval=$enable_rmiconnector_iiop; 20032 fi 20033 20034 if test "x$enable_rmiconnector_iiop" = "xyes"; then 20035 RMICONNECTOR_IIOP=true 20036 else 20037 RMICONNECTOR_IIOP=false 20038 fi 20039 20040 20041 ############################################################################### 20042 # 20043 # Compress jars 20044 # 20045 COMPRESS_JARS=false 20046 20047 20048 20049 20050 # Source the version numbers 20051 . $AUTOCONF_DIR/version-numbers 20052 20053 # Get the settings from parameters 20054 20055 # Check whether --with-milestone was given. 20056 if test "${with_milestone+set}" = set; then : 20057 withval=$with_milestone; 20058 fi 20059 20060 if test "x$with_milestone" = xyes; then 20061 as_fn_error $? "Milestone must have a value" "$LINENO" 5 20062 elif test "x$with_milestone" != x; then 20063 MILESTONE="$with_milestone" 20064 fi 20065 if test "x$MILESTONE" = x; then 20066 MILESTONE=internal 20067 fi 20068 20069 20070 # Check whether --with-update-version was given. 20071 if test "${with_update_version+set}" = set; then : 20072 withval=$with_update_version; 20073 fi 20074 20075 if test "x$with_update_version" = xyes; then 20076 as_fn_error $? "Update version must have a value" "$LINENO" 5 20077 elif test "x$with_update_version" != x; then 20078 JDK_UPDATE_VERSION="$with_update_version" 20079 # On macosx 10.7, it's not possible to set --with-update-version=0X due 20080 # to a bug in expr (which reduces it to just X). To work around this, we 20081 # always add a 0 to one digit update versions. 20082 if test "${#JDK_UPDATE_VERSION}" = "1"; then 20083 JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}" 20084 fi 20085 fi 20086 20087 20088 # Check whether --with-user-release-suffix was given. 20089 if test "${with_user_release_suffix+set}" = set; then : 20090 withval=$with_user_release_suffix; 20091 fi 20092 20093 if test "x$with_user_release_suffix" = xyes; then 20094 as_fn_error $? "Release suffix must have a value" "$LINENO" 5 20095 elif test "x$with_user_release_suffix" != x; then 20096 USER_RELEASE_SUFFIX="$with_user_release_suffix" 20097 fi 20098 20099 20100 # Check whether --with-build-number was given. 20101 if test "${with_build_number+set}" = set; then : 20102 withval=$with_build_number; 20103 fi 20104 20105 if test "x$with_build_number" = xyes; then 20106 as_fn_error $? "Build number must have a value" "$LINENO" 5 20107 elif test "x$with_build_number" != x; then 20108 JDK_BUILD_NUMBER="$with_build_number" 20109 fi 20110 # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set 20111 if test "x$JDK_BUILD_NUMBER" = x; then 20112 JDK_BUILD_NUMBER=b00 20113 if test "x$USER_RELEASE_SUFFIX" = x; then 20114 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'` 20115 # Avoid [:alnum:] since it depends on the locale. 20116 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'` 20117 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20118 fi 20119 fi 20120 20121 # Now set the JDK version, milestone, build number etc. 20122 20123 20124 20125 20126 20127 20128 20129 20130 20131 20132 20133 20134 20135 20136 20137 COPYRIGHT_YEAR=`date +'%Y'` 20138 20139 20140 if test "x$JDK_UPDATE_VERSION" != x; then 20141 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 20142 else 20143 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 20144 fi 20145 20146 20147 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 20148 20149 20150 20151 ############################################################################### 20152 # 20153 # Setup BootJDK, used to bootstrap the build. 20154 # 20155 ############################################################################### 20156 20157 20158 BOOT_JDK_FOUND=no 20159 20160 # Check whether --with-boot-jdk was given. 20161 if test "${with_boot_jdk+set}" = set; then : 20162 withval=$with_boot_jdk; 20163 fi 20164 20165 20166 # We look for the Boot JDK through various means, going from more certain to 20167 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 20168 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 20169 # must check if this is indeed valid; otherwise we'll continue looking. 20170 20171 # Test: Is bootjdk explicitely set by command line arguments? 20172 20173 if test "x$BOOT_JDK_FOUND" = xno; then 20174 # Now execute the test 20175 20176 if test "x$with_boot_jdk" != x; then 20177 BOOT_JDK=$with_boot_jdk 20178 BOOT_JDK_FOUND=maybe 20179 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 20180 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 20181 fi 20182 20183 20184 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20185 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20186 # Do we have a bin/java? 20187 if test ! -x "$BOOT_JDK/bin/java"; then 20188 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20189 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20190 BOOT_JDK_FOUND=no 20191 else 20192 # Do we have a bin/javac? 20193 if test ! -x "$BOOT_JDK/bin/javac"; then 20194 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20195 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20196 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20197 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20198 BOOT_JDK_FOUND=no 20199 else 20200 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20201 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20202 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20203 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20204 BOOT_JDK_FOUND=no 20205 else 20206 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20207 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20208 20209 # Extra M4 quote needed to protect [] in grep expression. 20210 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20211 if test "x$FOUND_CORRECT_VERSION" = x; then 20212 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20213 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20214 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20215 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20216 BOOT_JDK_FOUND=no 20217 else 20218 # We're done! :-) 20219 BOOT_JDK_FOUND=yes 20220 20221 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20222 20223 # Input might be given as Windows format, start by converting to 20224 # unix format. 20225 path="$BOOT_JDK" 20226 new_path=`$CYGPATH -u "$path"` 20227 20228 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20229 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20230 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20231 # "foo.exe" is OK but "foo" is an error. 20232 # 20233 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20234 # It is also a way to make sure we got the proper file name for the real test later on. 20235 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20236 if test "x$test_shortpath" = x; then 20237 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20238 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20239 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20240 fi 20241 20242 # Call helper function which possibly converts this using DOS-style short mode. 20243 # If so, the updated path is stored in $new_path. 20244 20245 input_path="$new_path" 20246 # Check if we need to convert this using DOS-style short mode. If the path 20247 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20248 # take no chances and rewrite it. 20249 # Note: m4 eats our [], so we need to use [ and ] instead. 20250 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20251 if test "x$has_forbidden_chars" != x; then 20252 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20253 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20254 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20255 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20256 # Going to short mode and back again did indeed matter. Since short mode is 20257 # case insensitive, let's make it lowercase to improve readability. 20258 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20259 # Now convert it back to Unix-stile (cygpath) 20260 input_path=`$CYGPATH -u "$shortmode_path"` 20261 new_path="$input_path" 20262 fi 20263 fi 20264 20265 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20266 if test "x$test_cygdrive_prefix" = x; then 20267 # As a simple fix, exclude /usr/bin since it's not a real path. 20268 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20269 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20270 # a path prefixed by /cygdrive for fixpath to work. 20271 new_path="$CYGWIN_ROOT_PATH$input_path" 20272 fi 20273 fi 20274 20275 20276 if test "x$path" != "x$new_path"; then 20277 BOOT_JDK="$new_path" 20278 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20279 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20280 fi 20281 20282 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20283 20284 path="$BOOT_JDK" 20285 has_colon=`$ECHO $path | $GREP ^.:` 20286 new_path="$path" 20287 if test "x$has_colon" = x; then 20288 # Not in mixed or Windows style, start by that. 20289 new_path=`cmd //c echo $path` 20290 fi 20291 20292 20293 input_path="$new_path" 20294 # Check if we need to convert this using DOS-style short mode. If the path 20295 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20296 # take no chances and rewrite it. 20297 # Note: m4 eats our [], so we need to use [ and ] instead. 20298 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20299 if test "x$has_forbidden_chars" != x; then 20300 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20301 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20302 fi 20303 20304 20305 windows_path="$new_path" 20306 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20307 unix_path=`$CYGPATH -u "$windows_path"` 20308 new_path="$unix_path" 20309 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20310 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20311 new_path="$unix_path" 20312 fi 20313 20314 if test "x$path" != "x$new_path"; then 20315 BOOT_JDK="$new_path" 20316 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20317 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20318 fi 20319 20320 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20321 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20322 20323 else 20324 # We're on a posix platform. Hooray! :) 20325 path="$BOOT_JDK" 20326 has_space=`$ECHO "$path" | $GREP " "` 20327 if test "x$has_space" != x; then 20328 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20329 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20330 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20331 fi 20332 20333 # Use eval to expand a potential ~ 20334 eval path="$path" 20335 if test ! -f "$path" && test ! -d "$path"; then 20336 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20337 fi 20338 20339 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20340 fi 20341 20342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20343 $as_echo_n "checking for Boot JDK... " >&6; } 20344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20345 $as_echo "$BOOT_JDK" >&6; } 20346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20347 $as_echo_n "checking Boot JDK version... " >&6; } 20348 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20350 $as_echo "$BOOT_JDK_VERSION" >&6; } 20351 fi # end check jdk version 20352 fi # end check rt.jar 20353 fi # end check javac 20354 fi # end check java 20355 fi # end check boot jdk found 20356 fi 20357 20358 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 20359 # Having specified an argument which is incorrect will produce an instant failure; 20360 # we should not go on looking 20361 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 20362 fi 20363 20364 # Test: Is bootjdk available from builddeps? 20365 20366 if test "x$BOOT_JDK_FOUND" = xno; then 20367 # Now execute the test 20368 20369 20370 20371 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 20372 # Source the builddeps file again, to make sure it uses the latest variables! 20373 . $builddepsfile 20374 # Look for a target and build machine specific resource! 20375 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 20376 if test "x$resource" = x; then 20377 # Ok, lets instead look for a target specific resource 20378 eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}} 20379 fi 20380 if test "x$resource" = x; then 20381 # Ok, lets instead look for a build specific resource 20382 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}} 20383 fi 20384 if test "x$resource" = x; then 20385 # Ok, lets instead look for a generic resource 20386 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.) 20387 resource=${builddep_bootjdk} 20388 fi 20389 if test "x$resource" != x; then 20390 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5 20391 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;} 20392 # If the resource in the builddeps.conf file is an existing directory, 20393 # for example /java/linux/cups 20394 if test -d ${resource}; then 20395 depdir=${resource} 20396 else 20397 20398 # bootjdk is for example mymodule 20399 # $resource is for example libs/general/libmymod_1_2_3.zip 20400 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 20401 # $with_builddeps_dir is for example /localhome/builddeps 20402 # depdir is the name of the variable into which we store the depdir, eg MYMOD 20403 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 20404 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 20405 filename=`basename $resource` 20406 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 20407 filebase=${filename%%.*} 20408 extension=${filename#*.} 20409 installdir=$with_builddeps_dir/$filebase 20410 if test ! -f $installdir/$filename.unpacked; then 20411 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5 20412 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;} 20413 if test ! -d $installdir; then 20414 mkdir -p $installdir 20415 fi 20416 if test ! -d $installdir; then 20417 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 20418 fi 20419 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX` 20420 touch $tmpfile 20421 if test ! -f $tmpfile; then 20422 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 20423 fi 20424 20425 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 20426 # $tmpfile is the local file name for the downloaded file. 20427 VALID_TOOL=no 20428 if test "x$BDEPS_FTP" = xwget; then 20429 VALID_TOOL=yes 20430 wget -O $tmpfile $with_builddeps_server/$resource 20431 fi 20432 if test "x$BDEPS_FTP" = xlftp; then 20433 VALID_TOOL=yes 20434 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 20435 fi 20436 if test "x$BDEPS_FTP" = xftp; then 20437 VALID_TOOL=yes 20438 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 20439 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 20440 FTPUSERPWD=${FTPSERVER%%@*} 20441 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 20442 FTPUSER=${userpwd%%:*} 20443 FTPPWD=${userpwd#*@} 20444 FTPSERVER=${FTPSERVER#*@} 20445 else 20446 FTPUSER=ftp 20447 FTPPWD=ftp 20448 fi 20449 # the "pass" command does not work on some 20450 # ftp clients (read ftp.exe) but if it works, 20451 # passive mode is better! 20452 ( \ 20453 echo "user $FTPUSER $FTPPWD" ; \ 20454 echo "pass" ; \ 20455 echo "bin" ; \ 20456 echo "get $FTPPATH $tmpfile" ; \ 20457 ) | ftp -in $FTPSERVER 20458 fi 20459 if test "x$VALID_TOOL" != xyes; then 20460 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 20461 fi 20462 20463 mv $tmpfile $installdir/$filename 20464 if test ! -s $installdir/$filename; then 20465 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 20466 fi 20467 case "$extension" in 20468 zip) echo "Unzipping $installdir/$filename..." 20469 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 20470 ;; 20471 tar.gz) echo "Untaring $installdir/$filename..." 20472 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20473 ;; 20474 tgz) echo "Untaring $installdir/$filename..." 20475 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20476 ;; 20477 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 20478 ;; 20479 esac 20480 fi 20481 if test -f $installdir/$filename.unpacked; then 20482 depdir=$installdir 20483 fi 20484 20485 fi 20486 # Source the builddeps file again, because in the previous command, the depdir 20487 # was updated to point at the current build dependency install directory. 20488 . $builddepsfile 20489 # Now extract variables from the builddeps.conf files. 20490 theroot=${builddep_bootjdk_ROOT} 20491 thecflags=${builddep_bootjdk_CFLAGS} 20492 thelibs=${builddep_bootjdk_LIBS} 20493 if test "x$depdir" = x; then 20494 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5 20495 fi 20496 BOOT_JDK=$depdir 20497 if test "x$theroot" != x; then 20498 BOOT_JDK="$theroot" 20499 fi 20500 if test "x$thecflags" != x; then 20501 BOOT_JDK_CFLAGS="$thecflags" 20502 fi 20503 if test "x$thelibs" != x; then 20504 BOOT_JDK_LIBS="$thelibs" 20505 fi 20506 BOOT_JDK_FOUND=maybe 20507 else BOOT_JDK_FOUND=no 20508 20509 fi 20510 else BOOT_JDK_FOUND=no 20511 20512 fi 20513 20514 20515 20516 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20517 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20518 # Do we have a bin/java? 20519 if test ! -x "$BOOT_JDK/bin/java"; then 20520 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20521 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20522 BOOT_JDK_FOUND=no 20523 else 20524 # Do we have a bin/javac? 20525 if test ! -x "$BOOT_JDK/bin/javac"; then 20526 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20527 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20528 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20529 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20530 BOOT_JDK_FOUND=no 20531 else 20532 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20533 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20534 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20535 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20536 BOOT_JDK_FOUND=no 20537 else 20538 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20539 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20540 20541 # Extra M4 quote needed to protect [] in grep expression. 20542 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20543 if test "x$FOUND_CORRECT_VERSION" = x; then 20544 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20545 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20546 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20547 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20548 BOOT_JDK_FOUND=no 20549 else 20550 # We're done! :-) 20551 BOOT_JDK_FOUND=yes 20552 20553 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20554 20555 # Input might be given as Windows format, start by converting to 20556 # unix format. 20557 path="$BOOT_JDK" 20558 new_path=`$CYGPATH -u "$path"` 20559 20560 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20561 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20562 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20563 # "foo.exe" is OK but "foo" is an error. 20564 # 20565 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20566 # It is also a way to make sure we got the proper file name for the real test later on. 20567 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20568 if test "x$test_shortpath" = x; then 20569 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20570 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20571 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20572 fi 20573 20574 # Call helper function which possibly converts this using DOS-style short mode. 20575 # If so, the updated path is stored in $new_path. 20576 20577 input_path="$new_path" 20578 # Check if we need to convert this using DOS-style short mode. If the path 20579 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20580 # take no chances and rewrite it. 20581 # Note: m4 eats our [], so we need to use [ and ] instead. 20582 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20583 if test "x$has_forbidden_chars" != x; then 20584 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20585 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20586 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20587 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20588 # Going to short mode and back again did indeed matter. Since short mode is 20589 # case insensitive, let's make it lowercase to improve readability. 20590 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20591 # Now convert it back to Unix-stile (cygpath) 20592 input_path=`$CYGPATH -u "$shortmode_path"` 20593 new_path="$input_path" 20594 fi 20595 fi 20596 20597 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20598 if test "x$test_cygdrive_prefix" = x; then 20599 # As a simple fix, exclude /usr/bin since it's not a real path. 20600 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20601 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20602 # a path prefixed by /cygdrive for fixpath to work. 20603 new_path="$CYGWIN_ROOT_PATH$input_path" 20604 fi 20605 fi 20606 20607 20608 if test "x$path" != "x$new_path"; then 20609 BOOT_JDK="$new_path" 20610 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20611 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20612 fi 20613 20614 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20615 20616 path="$BOOT_JDK" 20617 has_colon=`$ECHO $path | $GREP ^.:` 20618 new_path="$path" 20619 if test "x$has_colon" = x; then 20620 # Not in mixed or Windows style, start by that. 20621 new_path=`cmd //c echo $path` 20622 fi 20623 20624 20625 input_path="$new_path" 20626 # Check if we need to convert this using DOS-style short mode. If the path 20627 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20628 # take no chances and rewrite it. 20629 # Note: m4 eats our [], so we need to use [ and ] instead. 20630 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20631 if test "x$has_forbidden_chars" != x; then 20632 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20633 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20634 fi 20635 20636 20637 windows_path="$new_path" 20638 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20639 unix_path=`$CYGPATH -u "$windows_path"` 20640 new_path="$unix_path" 20641 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20642 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20643 new_path="$unix_path" 20644 fi 20645 20646 if test "x$path" != "x$new_path"; then 20647 BOOT_JDK="$new_path" 20648 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20649 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20650 fi 20651 20652 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20653 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20654 20655 else 20656 # We're on a posix platform. Hooray! :) 20657 path="$BOOT_JDK" 20658 has_space=`$ECHO "$path" | $GREP " "` 20659 if test "x$has_space" != x; then 20660 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20661 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20662 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20663 fi 20664 20665 # Use eval to expand a potential ~ 20666 eval path="$path" 20667 if test ! -f "$path" && test ! -d "$path"; then 20668 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20669 fi 20670 20671 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20672 fi 20673 20674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20675 $as_echo_n "checking for Boot JDK... " >&6; } 20676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20677 $as_echo "$BOOT_JDK" >&6; } 20678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20679 $as_echo_n "checking Boot JDK version... " >&6; } 20680 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20682 $as_echo "$BOOT_JDK_VERSION" >&6; } 20683 fi # end check jdk version 20684 fi # end check rt.jar 20685 fi # end check javac 20686 fi # end check java 20687 fi # end check boot jdk found 20688 fi 20689 20690 20691 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 20692 20693 if test "x$BOOT_JDK_FOUND" = xno; then 20694 # Now execute the test 20695 20696 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 20697 # First check at user selected default 20698 20699 if test "x$BOOT_JDK_FOUND" = xno; then 20700 # Now execute the test 20701 20702 if test -x /usr/libexec/java_home; then 20703 BOOT_JDK=`/usr/libexec/java_home ` 20704 BOOT_JDK_FOUND=maybe 20705 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 20706 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 20707 fi 20708 20709 20710 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20711 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20712 # Do we have a bin/java? 20713 if test ! -x "$BOOT_JDK/bin/java"; then 20714 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20715 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20716 BOOT_JDK_FOUND=no 20717 else 20718 # Do we have a bin/javac? 20719 if test ! -x "$BOOT_JDK/bin/javac"; then 20720 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20721 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20722 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20723 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20724 BOOT_JDK_FOUND=no 20725 else 20726 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20727 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20728 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20729 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20730 BOOT_JDK_FOUND=no 20731 else 20732 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20733 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20734 20735 # Extra M4 quote needed to protect [] in grep expression. 20736 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20737 if test "x$FOUND_CORRECT_VERSION" = x; then 20738 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20739 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20740 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20741 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20742 BOOT_JDK_FOUND=no 20743 else 20744 # We're done! :-) 20745 BOOT_JDK_FOUND=yes 20746 20747 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20748 20749 # Input might be given as Windows format, start by converting to 20750 # unix format. 20751 path="$BOOT_JDK" 20752 new_path=`$CYGPATH -u "$path"` 20753 20754 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20755 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20756 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20757 # "foo.exe" is OK but "foo" is an error. 20758 # 20759 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20760 # It is also a way to make sure we got the proper file name for the real test later on. 20761 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20762 if test "x$test_shortpath" = x; then 20763 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20764 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20765 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20766 fi 20767 20768 # Call helper function which possibly converts this using DOS-style short mode. 20769 # If so, the updated path is stored in $new_path. 20770 20771 input_path="$new_path" 20772 # Check if we need to convert this using DOS-style short mode. If the path 20773 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20774 # take no chances and rewrite it. 20775 # Note: m4 eats our [], so we need to use [ and ] instead. 20776 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20777 if test "x$has_forbidden_chars" != x; then 20778 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20779 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20780 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20781 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20782 # Going to short mode and back again did indeed matter. Since short mode is 20783 # case insensitive, let's make it lowercase to improve readability. 20784 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20785 # Now convert it back to Unix-stile (cygpath) 20786 input_path=`$CYGPATH -u "$shortmode_path"` 20787 new_path="$input_path" 20788 fi 20789 fi 20790 20791 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20792 if test "x$test_cygdrive_prefix" = x; then 20793 # As a simple fix, exclude /usr/bin since it's not a real path. 20794 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20795 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20796 # a path prefixed by /cygdrive for fixpath to work. 20797 new_path="$CYGWIN_ROOT_PATH$input_path" 20798 fi 20799 fi 20800 20801 20802 if test "x$path" != "x$new_path"; then 20803 BOOT_JDK="$new_path" 20804 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20805 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20806 fi 20807 20808 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20809 20810 path="$BOOT_JDK" 20811 has_colon=`$ECHO $path | $GREP ^.:` 20812 new_path="$path" 20813 if test "x$has_colon" = x; then 20814 # Not in mixed or Windows style, start by that. 20815 new_path=`cmd //c echo $path` 20816 fi 20817 20818 20819 input_path="$new_path" 20820 # Check if we need to convert this using DOS-style short mode. If the path 20821 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20822 # take no chances and rewrite it. 20823 # Note: m4 eats our [], so we need to use [ and ] instead. 20824 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20825 if test "x$has_forbidden_chars" != x; then 20826 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20827 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20828 fi 20829 20830 20831 windows_path="$new_path" 20832 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20833 unix_path=`$CYGPATH -u "$windows_path"` 20834 new_path="$unix_path" 20835 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20836 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20837 new_path="$unix_path" 20838 fi 20839 20840 if test "x$path" != "x$new_path"; then 20841 BOOT_JDK="$new_path" 20842 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20843 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20844 fi 20845 20846 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20847 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20848 20849 else 20850 # We're on a posix platform. Hooray! :) 20851 path="$BOOT_JDK" 20852 has_space=`$ECHO "$path" | $GREP " "` 20853 if test "x$has_space" != x; then 20854 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20855 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20856 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20857 fi 20858 20859 # Use eval to expand a potential ~ 20860 eval path="$path" 20861 if test ! -f "$path" && test ! -d "$path"; then 20862 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20863 fi 20864 20865 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20866 fi 20867 20868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20869 $as_echo_n "checking for Boot JDK... " >&6; } 20870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20871 $as_echo "$BOOT_JDK" >&6; } 20872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20873 $as_echo_n "checking Boot JDK version... " >&6; } 20874 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20876 $as_echo "$BOOT_JDK_VERSION" >&6; } 20877 fi # end check jdk version 20878 fi # end check rt.jar 20879 fi # end check javac 20880 fi # end check java 20881 fi # end check boot jdk found 20882 fi 20883 20884 # If that did not work out (e.g. too old), try explicit versions instead 20885 20886 if test "x$BOOT_JDK_FOUND" = xno; then 20887 # Now execute the test 20888 20889 if test -x /usr/libexec/java_home; then 20890 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 20891 BOOT_JDK_FOUND=maybe 20892 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 20893 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 20894 fi 20895 20896 20897 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20898 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20899 # Do we have a bin/java? 20900 if test ! -x "$BOOT_JDK/bin/java"; then 20901 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20902 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20903 BOOT_JDK_FOUND=no 20904 else 20905 # Do we have a bin/javac? 20906 if test ! -x "$BOOT_JDK/bin/javac"; then 20907 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20908 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20909 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20910 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20911 BOOT_JDK_FOUND=no 20912 else 20913 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20914 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20915 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20916 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20917 BOOT_JDK_FOUND=no 20918 else 20919 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20920 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20921 20922 # Extra M4 quote needed to protect [] in grep expression. 20923 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20924 if test "x$FOUND_CORRECT_VERSION" = x; then 20925 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20926 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20927 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20928 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20929 BOOT_JDK_FOUND=no 20930 else 20931 # We're done! :-) 20932 BOOT_JDK_FOUND=yes 20933 20934 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20935 20936 # Input might be given as Windows format, start by converting to 20937 # unix format. 20938 path="$BOOT_JDK" 20939 new_path=`$CYGPATH -u "$path"` 20940 20941 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20942 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20943 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20944 # "foo.exe" is OK but "foo" is an error. 20945 # 20946 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20947 # It is also a way to make sure we got the proper file name for the real test later on. 20948 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20949 if test "x$test_shortpath" = x; then 20950 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20951 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20952 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20953 fi 20954 20955 # Call helper function which possibly converts this using DOS-style short mode. 20956 # If so, the updated path is stored in $new_path. 20957 20958 input_path="$new_path" 20959 # Check if we need to convert this using DOS-style short mode. If the path 20960 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20961 # take no chances and rewrite it. 20962 # Note: m4 eats our [], so we need to use [ and ] instead. 20963 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20964 if test "x$has_forbidden_chars" != x; then 20965 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20966 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20967 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20968 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20969 # Going to short mode and back again did indeed matter. Since short mode is 20970 # case insensitive, let's make it lowercase to improve readability. 20971 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20972 # Now convert it back to Unix-stile (cygpath) 20973 input_path=`$CYGPATH -u "$shortmode_path"` 20974 new_path="$input_path" 20975 fi 20976 fi 20977 20978 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20979 if test "x$test_cygdrive_prefix" = x; then 20980 # As a simple fix, exclude /usr/bin since it's not a real path. 20981 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20982 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20983 # a path prefixed by /cygdrive for fixpath to work. 20984 new_path="$CYGWIN_ROOT_PATH$input_path" 20985 fi 20986 fi 20987 20988 20989 if test "x$path" != "x$new_path"; then 20990 BOOT_JDK="$new_path" 20991 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20992 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20993 fi 20994 20995 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20996 20997 path="$BOOT_JDK" 20998 has_colon=`$ECHO $path | $GREP ^.:` 20999 new_path="$path" 21000 if test "x$has_colon" = x; then 21001 # Not in mixed or Windows style, start by that. 21002 new_path=`cmd //c echo $path` 21003 fi 21004 21005 21006 input_path="$new_path" 21007 # Check if we need to convert this using DOS-style short mode. If the path 21008 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21009 # take no chances and rewrite it. 21010 # Note: m4 eats our [], so we need to use [ and ] instead. 21011 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21012 if test "x$has_forbidden_chars" != x; then 21013 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21014 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21015 fi 21016 21017 21018 windows_path="$new_path" 21019 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21020 unix_path=`$CYGPATH -u "$windows_path"` 21021 new_path="$unix_path" 21022 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21023 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21024 new_path="$unix_path" 21025 fi 21026 21027 if test "x$path" != "x$new_path"; then 21028 BOOT_JDK="$new_path" 21029 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21030 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21031 fi 21032 21033 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21034 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21035 21036 else 21037 # We're on a posix platform. Hooray! :) 21038 path="$BOOT_JDK" 21039 has_space=`$ECHO "$path" | $GREP " "` 21040 if test "x$has_space" != x; then 21041 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21042 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21043 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21044 fi 21045 21046 # Use eval to expand a potential ~ 21047 eval path="$path" 21048 if test ! -f "$path" && test ! -d "$path"; then 21049 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21050 fi 21051 21052 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21053 fi 21054 21055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21056 $as_echo_n "checking for Boot JDK... " >&6; } 21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21058 $as_echo "$BOOT_JDK" >&6; } 21059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21060 $as_echo_n "checking Boot JDK version... " >&6; } 21061 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21063 $as_echo "$BOOT_JDK_VERSION" >&6; } 21064 fi # end check jdk version 21065 fi # end check rt.jar 21066 fi # end check javac 21067 fi # end check java 21068 fi # end check boot jdk found 21069 fi 21070 21071 21072 if test "x$BOOT_JDK_FOUND" = xno; then 21073 # Now execute the test 21074 21075 if test -x /usr/libexec/java_home; then 21076 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 21077 BOOT_JDK_FOUND=maybe 21078 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 21079 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 21080 fi 21081 21082 21083 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21084 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21085 # Do we have a bin/java? 21086 if test ! -x "$BOOT_JDK/bin/java"; then 21087 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21088 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21089 BOOT_JDK_FOUND=no 21090 else 21091 # Do we have a bin/javac? 21092 if test ! -x "$BOOT_JDK/bin/javac"; then 21093 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21094 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21095 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21096 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21097 BOOT_JDK_FOUND=no 21098 else 21099 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21100 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21101 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21102 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21103 BOOT_JDK_FOUND=no 21104 else 21105 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21106 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21107 21108 # Extra M4 quote needed to protect [] in grep expression. 21109 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21110 if test "x$FOUND_CORRECT_VERSION" = x; then 21111 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21112 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21113 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21114 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21115 BOOT_JDK_FOUND=no 21116 else 21117 # We're done! :-) 21118 BOOT_JDK_FOUND=yes 21119 21120 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21121 21122 # Input might be given as Windows format, start by converting to 21123 # unix format. 21124 path="$BOOT_JDK" 21125 new_path=`$CYGPATH -u "$path"` 21126 21127 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21128 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21129 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21130 # "foo.exe" is OK but "foo" is an error. 21131 # 21132 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21133 # It is also a way to make sure we got the proper file name for the real test later on. 21134 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21135 if test "x$test_shortpath" = x; then 21136 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21137 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21138 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21139 fi 21140 21141 # Call helper function which possibly converts this using DOS-style short mode. 21142 # If so, the updated path is stored in $new_path. 21143 21144 input_path="$new_path" 21145 # Check if we need to convert this using DOS-style short mode. If the path 21146 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21147 # take no chances and rewrite it. 21148 # Note: m4 eats our [], so we need to use [ and ] instead. 21149 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21150 if test "x$has_forbidden_chars" != x; then 21151 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21152 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21153 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21154 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21155 # Going to short mode and back again did indeed matter. Since short mode is 21156 # case insensitive, let's make it lowercase to improve readability. 21157 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21158 # Now convert it back to Unix-stile (cygpath) 21159 input_path=`$CYGPATH -u "$shortmode_path"` 21160 new_path="$input_path" 21161 fi 21162 fi 21163 21164 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21165 if test "x$test_cygdrive_prefix" = x; then 21166 # As a simple fix, exclude /usr/bin since it's not a real path. 21167 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21168 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21169 # a path prefixed by /cygdrive for fixpath to work. 21170 new_path="$CYGWIN_ROOT_PATH$input_path" 21171 fi 21172 fi 21173 21174 21175 if test "x$path" != "x$new_path"; then 21176 BOOT_JDK="$new_path" 21177 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21178 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21179 fi 21180 21181 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21182 21183 path="$BOOT_JDK" 21184 has_colon=`$ECHO $path | $GREP ^.:` 21185 new_path="$path" 21186 if test "x$has_colon" = x; then 21187 # Not in mixed or Windows style, start by that. 21188 new_path=`cmd //c echo $path` 21189 fi 21190 21191 21192 input_path="$new_path" 21193 # Check if we need to convert this using DOS-style short mode. If the path 21194 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21195 # take no chances and rewrite it. 21196 # Note: m4 eats our [], so we need to use [ and ] instead. 21197 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21198 if test "x$has_forbidden_chars" != x; then 21199 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21200 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21201 fi 21202 21203 21204 windows_path="$new_path" 21205 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21206 unix_path=`$CYGPATH -u "$windows_path"` 21207 new_path="$unix_path" 21208 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21209 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21210 new_path="$unix_path" 21211 fi 21212 21213 if test "x$path" != "x$new_path"; then 21214 BOOT_JDK="$new_path" 21215 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21216 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21217 fi 21218 21219 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21220 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21221 21222 else 21223 # We're on a posix platform. Hooray! :) 21224 path="$BOOT_JDK" 21225 has_space=`$ECHO "$path" | $GREP " "` 21226 if test "x$has_space" != x; then 21227 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21228 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21229 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21230 fi 21231 21232 # Use eval to expand a potential ~ 21233 eval path="$path" 21234 if test ! -f "$path" && test ! -d "$path"; then 21235 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21236 fi 21237 21238 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21239 fi 21240 21241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21242 $as_echo_n "checking for Boot JDK... " >&6; } 21243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21244 $as_echo "$BOOT_JDK" >&6; } 21245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21246 $as_echo_n "checking Boot JDK version... " >&6; } 21247 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21249 $as_echo "$BOOT_JDK_VERSION" >&6; } 21250 fi # end check jdk version 21251 fi # end check rt.jar 21252 fi # end check javac 21253 fi # end check java 21254 fi # end check boot jdk found 21255 fi 21256 21257 21258 if test "x$BOOT_JDK_FOUND" = xno; then 21259 # Now execute the test 21260 21261 if test -x /usr/libexec/java_home; then 21262 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 21263 BOOT_JDK_FOUND=maybe 21264 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 21265 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 21266 fi 21267 21268 21269 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21270 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21271 # Do we have a bin/java? 21272 if test ! -x "$BOOT_JDK/bin/java"; then 21273 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21274 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21275 BOOT_JDK_FOUND=no 21276 else 21277 # Do we have a bin/javac? 21278 if test ! -x "$BOOT_JDK/bin/javac"; then 21279 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21280 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21281 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21282 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21283 BOOT_JDK_FOUND=no 21284 else 21285 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21286 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21287 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21288 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21289 BOOT_JDK_FOUND=no 21290 else 21291 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21292 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21293 21294 # Extra M4 quote needed to protect [] in grep expression. 21295 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21296 if test "x$FOUND_CORRECT_VERSION" = x; then 21297 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21298 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21299 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21300 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21301 BOOT_JDK_FOUND=no 21302 else 21303 # We're done! :-) 21304 BOOT_JDK_FOUND=yes 21305 21306 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21307 21308 # Input might be given as Windows format, start by converting to 21309 # unix format. 21310 path="$BOOT_JDK" 21311 new_path=`$CYGPATH -u "$path"` 21312 21313 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21314 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21315 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21316 # "foo.exe" is OK but "foo" is an error. 21317 # 21318 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21319 # It is also a way to make sure we got the proper file name for the real test later on. 21320 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21321 if test "x$test_shortpath" = x; then 21322 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21323 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21324 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21325 fi 21326 21327 # Call helper function which possibly converts this using DOS-style short mode. 21328 # If so, the updated path is stored in $new_path. 21329 21330 input_path="$new_path" 21331 # Check if we need to convert this using DOS-style short mode. If the path 21332 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21333 # take no chances and rewrite it. 21334 # Note: m4 eats our [], so we need to use [ and ] instead. 21335 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21336 if test "x$has_forbidden_chars" != x; then 21337 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21338 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21339 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21340 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21341 # Going to short mode and back again did indeed matter. Since short mode is 21342 # case insensitive, let's make it lowercase to improve readability. 21343 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21344 # Now convert it back to Unix-stile (cygpath) 21345 input_path=`$CYGPATH -u "$shortmode_path"` 21346 new_path="$input_path" 21347 fi 21348 fi 21349 21350 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21351 if test "x$test_cygdrive_prefix" = x; then 21352 # As a simple fix, exclude /usr/bin since it's not a real path. 21353 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21354 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21355 # a path prefixed by /cygdrive for fixpath to work. 21356 new_path="$CYGWIN_ROOT_PATH$input_path" 21357 fi 21358 fi 21359 21360 21361 if test "x$path" != "x$new_path"; then 21362 BOOT_JDK="$new_path" 21363 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21364 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21365 fi 21366 21367 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21368 21369 path="$BOOT_JDK" 21370 has_colon=`$ECHO $path | $GREP ^.:` 21371 new_path="$path" 21372 if test "x$has_colon" = x; then 21373 # Not in mixed or Windows style, start by that. 21374 new_path=`cmd //c echo $path` 21375 fi 21376 21377 21378 input_path="$new_path" 21379 # Check if we need to convert this using DOS-style short mode. If the path 21380 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21381 # take no chances and rewrite it. 21382 # Note: m4 eats our [], so we need to use [ and ] instead. 21383 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21384 if test "x$has_forbidden_chars" != x; then 21385 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21386 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21387 fi 21388 21389 21390 windows_path="$new_path" 21391 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21392 unix_path=`$CYGPATH -u "$windows_path"` 21393 new_path="$unix_path" 21394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21395 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21396 new_path="$unix_path" 21397 fi 21398 21399 if test "x$path" != "x$new_path"; then 21400 BOOT_JDK="$new_path" 21401 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21402 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21403 fi 21404 21405 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21406 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21407 21408 else 21409 # We're on a posix platform. Hooray! :) 21410 path="$BOOT_JDK" 21411 has_space=`$ECHO "$path" | $GREP " "` 21412 if test "x$has_space" != x; then 21413 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21414 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21415 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21416 fi 21417 21418 # Use eval to expand a potential ~ 21419 eval path="$path" 21420 if test ! -f "$path" && test ! -d "$path"; then 21421 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21422 fi 21423 21424 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21425 fi 21426 21427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21428 $as_echo_n "checking for Boot JDK... " >&6; } 21429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21430 $as_echo "$BOOT_JDK" >&6; } 21431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21432 $as_echo_n "checking Boot JDK version... " >&6; } 21433 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21435 $as_echo "$BOOT_JDK_VERSION" >&6; } 21436 fi # end check jdk version 21437 fi # end check rt.jar 21438 fi # end check javac 21439 fi # end check java 21440 fi # end check boot jdk found 21441 fi 21442 21443 fi 21444 21445 21446 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21447 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21448 # Do we have a bin/java? 21449 if test ! -x "$BOOT_JDK/bin/java"; then 21450 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21451 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21452 BOOT_JDK_FOUND=no 21453 else 21454 # Do we have a bin/javac? 21455 if test ! -x "$BOOT_JDK/bin/javac"; then 21456 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21457 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21458 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21459 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21460 BOOT_JDK_FOUND=no 21461 else 21462 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21463 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21464 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21465 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21466 BOOT_JDK_FOUND=no 21467 else 21468 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21469 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21470 21471 # Extra M4 quote needed to protect [] in grep expression. 21472 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21473 if test "x$FOUND_CORRECT_VERSION" = x; then 21474 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21475 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21476 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21477 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21478 BOOT_JDK_FOUND=no 21479 else 21480 # We're done! :-) 21481 BOOT_JDK_FOUND=yes 21482 21483 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21484 21485 # Input might be given as Windows format, start by converting to 21486 # unix format. 21487 path="$BOOT_JDK" 21488 new_path=`$CYGPATH -u "$path"` 21489 21490 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21491 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21492 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21493 # "foo.exe" is OK but "foo" is an error. 21494 # 21495 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21496 # It is also a way to make sure we got the proper file name for the real test later on. 21497 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21498 if test "x$test_shortpath" = x; then 21499 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21500 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21501 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21502 fi 21503 21504 # Call helper function which possibly converts this using DOS-style short mode. 21505 # If so, the updated path is stored in $new_path. 21506 21507 input_path="$new_path" 21508 # Check if we need to convert this using DOS-style short mode. If the path 21509 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21510 # take no chances and rewrite it. 21511 # Note: m4 eats our [], so we need to use [ and ] instead. 21512 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21513 if test "x$has_forbidden_chars" != x; then 21514 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21515 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21516 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21517 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21518 # Going to short mode and back again did indeed matter. Since short mode is 21519 # case insensitive, let's make it lowercase to improve readability. 21520 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21521 # Now convert it back to Unix-stile (cygpath) 21522 input_path=`$CYGPATH -u "$shortmode_path"` 21523 new_path="$input_path" 21524 fi 21525 fi 21526 21527 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21528 if test "x$test_cygdrive_prefix" = x; then 21529 # As a simple fix, exclude /usr/bin since it's not a real path. 21530 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21531 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21532 # a path prefixed by /cygdrive for fixpath to work. 21533 new_path="$CYGWIN_ROOT_PATH$input_path" 21534 fi 21535 fi 21536 21537 21538 if test "x$path" != "x$new_path"; then 21539 BOOT_JDK="$new_path" 21540 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21541 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21542 fi 21543 21544 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21545 21546 path="$BOOT_JDK" 21547 has_colon=`$ECHO $path | $GREP ^.:` 21548 new_path="$path" 21549 if test "x$has_colon" = x; then 21550 # Not in mixed or Windows style, start by that. 21551 new_path=`cmd //c echo $path` 21552 fi 21553 21554 21555 input_path="$new_path" 21556 # Check if we need to convert this using DOS-style short mode. If the path 21557 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21558 # take no chances and rewrite it. 21559 # Note: m4 eats our [], so we need to use [ and ] instead. 21560 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21561 if test "x$has_forbidden_chars" != x; then 21562 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21563 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21564 fi 21565 21566 21567 windows_path="$new_path" 21568 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21569 unix_path=`$CYGPATH -u "$windows_path"` 21570 new_path="$unix_path" 21571 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21572 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21573 new_path="$unix_path" 21574 fi 21575 21576 if test "x$path" != "x$new_path"; then 21577 BOOT_JDK="$new_path" 21578 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21579 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21580 fi 21581 21582 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21583 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21584 21585 else 21586 # We're on a posix platform. Hooray! :) 21587 path="$BOOT_JDK" 21588 has_space=`$ECHO "$path" | $GREP " "` 21589 if test "x$has_space" != x; then 21590 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21591 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21592 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21593 fi 21594 21595 # Use eval to expand a potential ~ 21596 eval path="$path" 21597 if test ! -f "$path" && test ! -d "$path"; then 21598 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21599 fi 21600 21601 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21602 fi 21603 21604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21605 $as_echo_n "checking for Boot JDK... " >&6; } 21606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21607 $as_echo "$BOOT_JDK" >&6; } 21608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21609 $as_echo_n "checking Boot JDK version... " >&6; } 21610 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21612 $as_echo "$BOOT_JDK_VERSION" >&6; } 21613 fi # end check jdk version 21614 fi # end check rt.jar 21615 fi # end check javac 21616 fi # end check java 21617 fi # end check boot jdk found 21618 fi 21619 21620 21621 # Test: Is $JAVA_HOME set? 21622 21623 if test "x$BOOT_JDK_FOUND" = xno; then 21624 # Now execute the test 21625 21626 if test "x$JAVA_HOME" != x; then 21627 JAVA_HOME_PROCESSED="$JAVA_HOME" 21628 21629 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21630 21631 # Input might be given as Windows format, start by converting to 21632 # unix format. 21633 path="$JAVA_HOME_PROCESSED" 21634 new_path=`$CYGPATH -u "$path"` 21635 21636 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21637 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21638 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21639 # "foo.exe" is OK but "foo" is an error. 21640 # 21641 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21642 # It is also a way to make sure we got the proper file name for the real test later on. 21643 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21644 if test "x$test_shortpath" = x; then 21645 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21646 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21647 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 21648 fi 21649 21650 # Call helper function which possibly converts this using DOS-style short mode. 21651 # If so, the updated path is stored in $new_path. 21652 21653 input_path="$new_path" 21654 # Check if we need to convert this using DOS-style short mode. If the path 21655 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21656 # take no chances and rewrite it. 21657 # Note: m4 eats our [], so we need to use [ and ] instead. 21658 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21659 if test "x$has_forbidden_chars" != x; then 21660 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21661 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21662 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21663 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21664 # Going to short mode and back again did indeed matter. Since short mode is 21665 # case insensitive, let's make it lowercase to improve readability. 21666 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21667 # Now convert it back to Unix-stile (cygpath) 21668 input_path=`$CYGPATH -u "$shortmode_path"` 21669 new_path="$input_path" 21670 fi 21671 fi 21672 21673 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21674 if test "x$test_cygdrive_prefix" = x; then 21675 # As a simple fix, exclude /usr/bin since it's not a real path. 21676 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21677 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21678 # a path prefixed by /cygdrive for fixpath to work. 21679 new_path="$CYGWIN_ROOT_PATH$input_path" 21680 fi 21681 fi 21682 21683 21684 if test "x$path" != "x$new_path"; then 21685 JAVA_HOME_PROCESSED="$new_path" 21686 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21687 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21688 fi 21689 21690 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21691 21692 path="$JAVA_HOME_PROCESSED" 21693 has_colon=`$ECHO $path | $GREP ^.:` 21694 new_path="$path" 21695 if test "x$has_colon" = x; then 21696 # Not in mixed or Windows style, start by that. 21697 new_path=`cmd //c echo $path` 21698 fi 21699 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 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21710 fi 21711 21712 21713 windows_path="$new_path" 21714 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21715 unix_path=`$CYGPATH -u "$windows_path"` 21716 new_path="$unix_path" 21717 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21718 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21719 new_path="$unix_path" 21720 fi 21721 21722 if test "x$path" != "x$new_path"; then 21723 JAVA_HOME_PROCESSED="$new_path" 21724 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21725 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21726 fi 21727 21728 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21729 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21730 21731 else 21732 # We're on a posix platform. Hooray! :) 21733 path="$JAVA_HOME_PROCESSED" 21734 has_space=`$ECHO "$path" | $GREP " "` 21735 if test "x$has_space" != x; then 21736 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21737 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21738 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21739 fi 21740 21741 # Use eval to expand a potential ~ 21742 eval path="$path" 21743 if test ! -f "$path" && test ! -d "$path"; then 21744 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 21745 fi 21746 21747 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 21748 fi 21749 21750 if test ! -d "$JAVA_HOME_PROCESSED"; then 21751 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 21752 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 21753 else 21754 # Aha, the user has set a JAVA_HOME 21755 # let us use that as the Boot JDK. 21756 BOOT_JDK="$JAVA_HOME_PROCESSED" 21757 BOOT_JDK_FOUND=maybe 21758 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 21759 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 21760 fi 21761 fi 21762 21763 21764 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21765 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21766 # Do we have a bin/java? 21767 if test ! -x "$BOOT_JDK/bin/java"; then 21768 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21769 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21770 BOOT_JDK_FOUND=no 21771 else 21772 # Do we have a bin/javac? 21773 if test ! -x "$BOOT_JDK/bin/javac"; then 21774 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21775 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21776 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21777 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21778 BOOT_JDK_FOUND=no 21779 else 21780 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21781 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21782 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21783 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21784 BOOT_JDK_FOUND=no 21785 else 21786 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21787 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21788 21789 # Extra M4 quote needed to protect [] in grep expression. 21790 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21791 if test "x$FOUND_CORRECT_VERSION" = x; then 21792 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21793 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21794 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21795 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21796 BOOT_JDK_FOUND=no 21797 else 21798 # We're done! :-) 21799 BOOT_JDK_FOUND=yes 21800 21801 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21802 21803 # Input might be given as Windows format, start by converting to 21804 # unix format. 21805 path="$BOOT_JDK" 21806 new_path=`$CYGPATH -u "$path"` 21807 21808 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21809 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21810 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21811 # "foo.exe" is OK but "foo" is an error. 21812 # 21813 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21814 # It is also a way to make sure we got the proper file name for the real test later on. 21815 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21816 if test "x$test_shortpath" = x; then 21817 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21818 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21819 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21820 fi 21821 21822 # Call helper function which possibly converts this using DOS-style short mode. 21823 # If so, the updated path is stored in $new_path. 21824 21825 input_path="$new_path" 21826 # Check if we need to convert this using DOS-style short mode. If the path 21827 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21828 # take no chances and rewrite it. 21829 # Note: m4 eats our [], so we need to use [ and ] instead. 21830 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21831 if test "x$has_forbidden_chars" != x; then 21832 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21833 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21834 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21835 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21836 # Going to short mode and back again did indeed matter. Since short mode is 21837 # case insensitive, let's make it lowercase to improve readability. 21838 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21839 # Now convert it back to Unix-stile (cygpath) 21840 input_path=`$CYGPATH -u "$shortmode_path"` 21841 new_path="$input_path" 21842 fi 21843 fi 21844 21845 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21846 if test "x$test_cygdrive_prefix" = x; then 21847 # As a simple fix, exclude /usr/bin since it's not a real path. 21848 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21849 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21850 # a path prefixed by /cygdrive for fixpath to work. 21851 new_path="$CYGWIN_ROOT_PATH$input_path" 21852 fi 21853 fi 21854 21855 21856 if test "x$path" != "x$new_path"; then 21857 BOOT_JDK="$new_path" 21858 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21859 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21860 fi 21861 21862 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21863 21864 path="$BOOT_JDK" 21865 has_colon=`$ECHO $path | $GREP ^.:` 21866 new_path="$path" 21867 if test "x$has_colon" = x; then 21868 # Not in mixed or Windows style, start by that. 21869 new_path=`cmd //c echo $path` 21870 fi 21871 21872 21873 input_path="$new_path" 21874 # Check if we need to convert this using DOS-style short mode. If the path 21875 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21876 # take no chances and rewrite it. 21877 # Note: m4 eats our [], so we need to use [ and ] instead. 21878 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21879 if test "x$has_forbidden_chars" != x; then 21880 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21881 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21882 fi 21883 21884 21885 windows_path="$new_path" 21886 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21887 unix_path=`$CYGPATH -u "$windows_path"` 21888 new_path="$unix_path" 21889 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21890 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21891 new_path="$unix_path" 21892 fi 21893 21894 if test "x$path" != "x$new_path"; then 21895 BOOT_JDK="$new_path" 21896 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21897 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21898 fi 21899 21900 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21901 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21902 21903 else 21904 # We're on a posix platform. Hooray! :) 21905 path="$BOOT_JDK" 21906 has_space=`$ECHO "$path" | $GREP " "` 21907 if test "x$has_space" != x; then 21908 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21909 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21910 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21911 fi 21912 21913 # Use eval to expand a potential ~ 21914 eval path="$path" 21915 if test ! -f "$path" && test ! -d "$path"; then 21916 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21917 fi 21918 21919 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21920 fi 21921 21922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21923 $as_echo_n "checking for Boot JDK... " >&6; } 21924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21925 $as_echo "$BOOT_JDK" >&6; } 21926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21927 $as_echo_n "checking Boot JDK version... " >&6; } 21928 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21930 $as_echo "$BOOT_JDK_VERSION" >&6; } 21931 fi # end check jdk version 21932 fi # end check rt.jar 21933 fi # end check javac 21934 fi # end check java 21935 fi # end check boot jdk found 21936 fi 21937 21938 21939 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 21940 21941 if test "x$BOOT_JDK_FOUND" = xno; then 21942 # Now execute the test 21943 21944 # Extract the first word of "javac", so it can be a program name with args. 21945 set dummy javac; ac_word=$2 21946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21947 $as_echo_n "checking for $ac_word... " >&6; } 21948 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 21949 $as_echo_n "(cached) " >&6 21950 else 21951 case $JAVAC_CHECK in 21952 [\\/]* | ?:[\\/]*) 21953 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 21954 ;; 21955 *) 21956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21957 for as_dir in $PATH 21958 do 21959 IFS=$as_save_IFS 21960 test -z "$as_dir" && as_dir=. 21961 for ac_exec_ext in '' $ac_executable_extensions; do 21962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21963 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 21964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21965 break 2 21966 fi 21967 done 21968 done 21969 IFS=$as_save_IFS 21970 21971 ;; 21972 esac 21973 fi 21974 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 21975 if test -n "$JAVAC_CHECK"; then 21976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 21977 $as_echo "$JAVAC_CHECK" >&6; } 21978 else 21979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21980 $as_echo "no" >&6; } 21981 fi 21982 21983 21984 # Extract the first word of "java", so it can be a program name with args. 21985 set dummy java; ac_word=$2 21986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21987 $as_echo_n "checking for $ac_word... " >&6; } 21988 if ${ac_cv_path_JAVA_CHECK+:} false; then : 21989 $as_echo_n "(cached) " >&6 21990 else 21991 case $JAVA_CHECK in 21992 [\\/]* | ?:[\\/]*) 21993 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 21994 ;; 21995 *) 21996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21997 for as_dir in $PATH 21998 do 21999 IFS=$as_save_IFS 22000 test -z "$as_dir" && as_dir=. 22001 for ac_exec_ext in '' $ac_executable_extensions; do 22002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22003 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 22004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22005 break 2 22006 fi 22007 done 22008 done 22009 IFS=$as_save_IFS 22010 22011 ;; 22012 esac 22013 fi 22014 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 22015 if test -n "$JAVA_CHECK"; then 22016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 22017 $as_echo "$JAVA_CHECK" >&6; } 22018 else 22019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22020 $as_echo "no" >&6; } 22021 fi 22022 22023 22024 BINARY="$JAVAC_CHECK" 22025 if test "x$JAVAC_CHECK" = x; then 22026 BINARY="$JAVA_CHECK" 22027 fi 22028 if test "x$BINARY" != x; then 22029 # So there is a java(c) binary, it might be part of a JDK. 22030 # Lets find the JDK/JRE directory by following symbolic links. 22031 # Linux/GNU systems often have links from /usr/bin/java to 22032 # /etc/alternatives/java to the real JDK binary. 22033 22034 if test "x$OPENJDK_BUILD_OS" != xwindows; then 22035 # Follow a chain of symbolic links. Use readlink 22036 # where it exists, else fall back to horribly 22037 # complicated shell code. 22038 if test "x$READLINK_TESTED" != yes; then 22039 # On MacOSX there is a readlink tool with a different 22040 # purpose than the GNU readlink tool. Check the found readlink. 22041 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 22042 if test "x$ISGNU" = x; then 22043 # A readlink that we do not know how to use. 22044 # Are there other non-GNU readlinks out there? 22045 READLINK_TESTED=yes 22046 READLINK= 22047 fi 22048 fi 22049 22050 if test "x$READLINK" != x; then 22051 BINARY=`$READLINK -f $BINARY` 22052 else 22053 # Save the current directory for restoring afterwards 22054 STARTDIR=$PWD 22055 COUNTER=0 22056 sym_link_dir=`$DIRNAME $BINARY` 22057 sym_link_file=`$BASENAME $BINARY` 22058 cd $sym_link_dir 22059 # Use -P flag to resolve symlinks in directories. 22060 cd `$THEPWDCMD -P` 22061 sym_link_dir=`$THEPWDCMD -P` 22062 # Resolve file symlinks 22063 while test $COUNTER -lt 20; do 22064 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 22065 if test "x$ISLINK" == x; then 22066 # This is not a symbolic link! We are done! 22067 break 22068 fi 22069 # Again resolve directory symlinks since the target of the just found 22070 # link could be in a different directory 22071 cd `$DIRNAME $ISLINK` 22072 sym_link_dir=`$THEPWDCMD -P` 22073 sym_link_file=`$BASENAME $ISLINK` 22074 let COUNTER=COUNTER+1 22075 done 22076 cd $STARTDIR 22077 BINARY=$sym_link_dir/$sym_link_file 22078 fi 22079 fi 22080 22081 BOOT_JDK=`dirname "$BINARY"` 22082 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 22083 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 22084 # Looks like we found ourselves an JDK 22085 BOOT_JDK_FOUND=maybe 22086 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 22087 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 22088 fi 22089 fi 22090 22091 22092 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22093 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22094 # Do we have a bin/java? 22095 if test ! -x "$BOOT_JDK/bin/java"; then 22096 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22097 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22098 BOOT_JDK_FOUND=no 22099 else 22100 # Do we have a bin/javac? 22101 if test ! -x "$BOOT_JDK/bin/javac"; then 22102 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22103 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22104 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22105 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22106 BOOT_JDK_FOUND=no 22107 else 22108 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22109 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22110 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22111 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22112 BOOT_JDK_FOUND=no 22113 else 22114 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22115 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22116 22117 # Extra M4 quote needed to protect [] in grep expression. 22118 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22119 if test "x$FOUND_CORRECT_VERSION" = x; then 22120 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22121 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22122 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22123 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22124 BOOT_JDK_FOUND=no 22125 else 22126 # We're done! :-) 22127 BOOT_JDK_FOUND=yes 22128 22129 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22130 22131 # Input might be given as Windows format, start by converting to 22132 # unix format. 22133 path="$BOOT_JDK" 22134 new_path=`$CYGPATH -u "$path"` 22135 22136 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22137 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22138 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22139 # "foo.exe" is OK but "foo" is an error. 22140 # 22141 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22142 # It is also a way to make sure we got the proper file name for the real test later on. 22143 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22144 if test "x$test_shortpath" = x; then 22145 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22146 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22147 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22148 fi 22149 22150 # Call helper function which possibly converts this using DOS-style short mode. 22151 # If so, the updated path is stored in $new_path. 22152 22153 input_path="$new_path" 22154 # Check if we need to convert this using DOS-style short mode. If the path 22155 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22156 # take no chances and rewrite it. 22157 # Note: m4 eats our [], so we need to use [ and ] instead. 22158 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22159 if test "x$has_forbidden_chars" != x; then 22160 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22161 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22162 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22163 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22164 # Going to short mode and back again did indeed matter. Since short mode is 22165 # case insensitive, let's make it lowercase to improve readability. 22166 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22167 # Now convert it back to Unix-stile (cygpath) 22168 input_path=`$CYGPATH -u "$shortmode_path"` 22169 new_path="$input_path" 22170 fi 22171 fi 22172 22173 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22174 if test "x$test_cygdrive_prefix" = x; then 22175 # As a simple fix, exclude /usr/bin since it's not a real path. 22176 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22177 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22178 # a path prefixed by /cygdrive for fixpath to work. 22179 new_path="$CYGWIN_ROOT_PATH$input_path" 22180 fi 22181 fi 22182 22183 22184 if test "x$path" != "x$new_path"; then 22185 BOOT_JDK="$new_path" 22186 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22187 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22188 fi 22189 22190 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22191 22192 path="$BOOT_JDK" 22193 has_colon=`$ECHO $path | $GREP ^.:` 22194 new_path="$path" 22195 if test "x$has_colon" = x; then 22196 # Not in mixed or Windows style, start by that. 22197 new_path=`cmd //c echo $path` 22198 fi 22199 22200 22201 input_path="$new_path" 22202 # Check if we need to convert this using DOS-style short mode. If the path 22203 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22204 # take no chances and rewrite it. 22205 # Note: m4 eats our [], so we need to use [ and ] instead. 22206 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22207 if test "x$has_forbidden_chars" != x; then 22208 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22209 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22210 fi 22211 22212 22213 windows_path="$new_path" 22214 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22215 unix_path=`$CYGPATH -u "$windows_path"` 22216 new_path="$unix_path" 22217 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22218 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22219 new_path="$unix_path" 22220 fi 22221 22222 if test "x$path" != "x$new_path"; then 22223 BOOT_JDK="$new_path" 22224 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22225 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22226 fi 22227 22228 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22229 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22230 22231 else 22232 # We're on a posix platform. Hooray! :) 22233 path="$BOOT_JDK" 22234 has_space=`$ECHO "$path" | $GREP " "` 22235 if test "x$has_space" != x; then 22236 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22237 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22238 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22239 fi 22240 22241 # Use eval to expand a potential ~ 22242 eval path="$path" 22243 if test ! -f "$path" && test ! -d "$path"; then 22244 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22245 fi 22246 22247 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22248 fi 22249 22250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22251 $as_echo_n "checking for Boot JDK... " >&6; } 22252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22253 $as_echo "$BOOT_JDK" >&6; } 22254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22255 $as_echo_n "checking Boot JDK version... " >&6; } 22256 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22258 $as_echo "$BOOT_JDK_VERSION" >&6; } 22259 fi # end check jdk version 22260 fi # end check rt.jar 22261 fi # end check javac 22262 fi # end check java 22263 fi # end check boot jdk found 22264 fi 22265 22266 22267 # Test: Is there a JDK installed in default, well-known locations? 22268 22269 if test "x$BOOT_JDK_FOUND" = xno; then 22270 # Now execute the test 22271 22272 if test "x$OPENJDK_TARGET_OS" = xwindows; then 22273 22274 if test "x$BOOT_JDK_FOUND" = xno; then 22275 # Now execute the test 22276 22277 if test "x$ProgramW6432" != x; then 22278 VIRTUAL_DIR="$ProgramW6432/Java" 22279 22280 windows_path="$VIRTUAL_DIR" 22281 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22282 unix_path=`$CYGPATH -u "$windows_path"` 22283 VIRTUAL_DIR="$unix_path" 22284 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22285 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22286 VIRTUAL_DIR="$unix_path" 22287 fi 22288 22289 22290 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22291 BOOT_JDK_SUFFIX="" 22292 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22293 if test "x$ALL_JDKS_FOUND" != x; then 22294 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22295 22296 if test "x$BOOT_JDK_FOUND" = xno; then 22297 # Now execute the test 22298 22299 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22300 if test -d "$BOOT_JDK"; then 22301 BOOT_JDK_FOUND=maybe 22302 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22303 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22304 fi 22305 22306 22307 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22308 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22309 # Do we have a bin/java? 22310 if test ! -x "$BOOT_JDK/bin/java"; then 22311 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22312 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22313 BOOT_JDK_FOUND=no 22314 else 22315 # Do we have a bin/javac? 22316 if test ! -x "$BOOT_JDK/bin/javac"; then 22317 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22318 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22319 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22320 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22321 BOOT_JDK_FOUND=no 22322 else 22323 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22324 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22325 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22326 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22327 BOOT_JDK_FOUND=no 22328 else 22329 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22330 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22331 22332 # Extra M4 quote needed to protect [] in grep expression. 22333 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22334 if test "x$FOUND_CORRECT_VERSION" = x; then 22335 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22336 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22337 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22338 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22339 BOOT_JDK_FOUND=no 22340 else 22341 # We're done! :-) 22342 BOOT_JDK_FOUND=yes 22343 22344 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22345 22346 # Input might be given as Windows format, start by converting to 22347 # unix format. 22348 path="$BOOT_JDK" 22349 new_path=`$CYGPATH -u "$path"` 22350 22351 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22352 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22353 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22354 # "foo.exe" is OK but "foo" is an error. 22355 # 22356 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22357 # It is also a way to make sure we got the proper file name for the real test later on. 22358 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22359 if test "x$test_shortpath" = x; then 22360 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22361 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22362 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22363 fi 22364 22365 # Call helper function which possibly converts this using DOS-style short mode. 22366 # If so, the updated path is stored in $new_path. 22367 22368 input_path="$new_path" 22369 # Check if we need to convert this using DOS-style short mode. If the path 22370 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22371 # take no chances and rewrite it. 22372 # Note: m4 eats our [], so we need to use [ and ] instead. 22373 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22374 if test "x$has_forbidden_chars" != x; then 22375 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22376 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22377 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22378 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22379 # Going to short mode and back again did indeed matter. Since short mode is 22380 # case insensitive, let's make it lowercase to improve readability. 22381 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22382 # Now convert it back to Unix-stile (cygpath) 22383 input_path=`$CYGPATH -u "$shortmode_path"` 22384 new_path="$input_path" 22385 fi 22386 fi 22387 22388 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22389 if test "x$test_cygdrive_prefix" = x; then 22390 # As a simple fix, exclude /usr/bin since it's not a real path. 22391 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22392 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22393 # a path prefixed by /cygdrive for fixpath to work. 22394 new_path="$CYGWIN_ROOT_PATH$input_path" 22395 fi 22396 fi 22397 22398 22399 if test "x$path" != "x$new_path"; then 22400 BOOT_JDK="$new_path" 22401 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22402 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22403 fi 22404 22405 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22406 22407 path="$BOOT_JDK" 22408 has_colon=`$ECHO $path | $GREP ^.:` 22409 new_path="$path" 22410 if test "x$has_colon" = x; then 22411 # Not in mixed or Windows style, start by that. 22412 new_path=`cmd //c echo $path` 22413 fi 22414 22415 22416 input_path="$new_path" 22417 # Check if we need to convert this using DOS-style short mode. If the path 22418 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22419 # take no chances and rewrite it. 22420 # Note: m4 eats our [], so we need to use [ and ] instead. 22421 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22422 if test "x$has_forbidden_chars" != x; then 22423 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22424 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22425 fi 22426 22427 22428 windows_path="$new_path" 22429 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22430 unix_path=`$CYGPATH -u "$windows_path"` 22431 new_path="$unix_path" 22432 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22433 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22434 new_path="$unix_path" 22435 fi 22436 22437 if test "x$path" != "x$new_path"; then 22438 BOOT_JDK="$new_path" 22439 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22440 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22441 fi 22442 22443 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22444 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22445 22446 else 22447 # We're on a posix platform. Hooray! :) 22448 path="$BOOT_JDK" 22449 has_space=`$ECHO "$path" | $GREP " "` 22450 if test "x$has_space" != x; then 22451 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22452 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22453 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22454 fi 22455 22456 # Use eval to expand a potential ~ 22457 eval path="$path" 22458 if test ! -f "$path" && test ! -d "$path"; then 22459 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22460 fi 22461 22462 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22463 fi 22464 22465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22466 $as_echo_n "checking for Boot JDK... " >&6; } 22467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22468 $as_echo "$BOOT_JDK" >&6; } 22469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22470 $as_echo_n "checking Boot JDK version... " >&6; } 22471 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22473 $as_echo "$BOOT_JDK_VERSION" >&6; } 22474 fi # end check jdk version 22475 fi # end check rt.jar 22476 fi # end check javac 22477 fi # end check java 22478 fi # end check boot jdk found 22479 fi 22480 22481 done 22482 fi 22483 22484 fi 22485 22486 22487 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22488 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22489 # Do we have a bin/java? 22490 if test ! -x "$BOOT_JDK/bin/java"; then 22491 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22492 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22493 BOOT_JDK_FOUND=no 22494 else 22495 # Do we have a bin/javac? 22496 if test ! -x "$BOOT_JDK/bin/javac"; then 22497 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22498 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22499 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22500 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22501 BOOT_JDK_FOUND=no 22502 else 22503 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22504 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22505 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22506 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22507 BOOT_JDK_FOUND=no 22508 else 22509 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22510 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22511 22512 # Extra M4 quote needed to protect [] in grep expression. 22513 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22514 if test "x$FOUND_CORRECT_VERSION" = x; then 22515 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22516 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22517 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22518 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22519 BOOT_JDK_FOUND=no 22520 else 22521 # We're done! :-) 22522 BOOT_JDK_FOUND=yes 22523 22524 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22525 22526 # Input might be given as Windows format, start by converting to 22527 # unix format. 22528 path="$BOOT_JDK" 22529 new_path=`$CYGPATH -u "$path"` 22530 22531 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22532 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22533 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22534 # "foo.exe" is OK but "foo" is an error. 22535 # 22536 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22537 # It is also a way to make sure we got the proper file name for the real test later on. 22538 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22539 if test "x$test_shortpath" = x; then 22540 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22541 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22542 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22543 fi 22544 22545 # Call helper function which possibly converts this using DOS-style short mode. 22546 # If so, the updated path is stored in $new_path. 22547 22548 input_path="$new_path" 22549 # Check if we need to convert this using DOS-style short mode. If the path 22550 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22551 # take no chances and rewrite it. 22552 # Note: m4 eats our [], so we need to use [ and ] instead. 22553 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22554 if test "x$has_forbidden_chars" != x; then 22555 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22556 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22557 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22558 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22559 # Going to short mode and back again did indeed matter. Since short mode is 22560 # case insensitive, let's make it lowercase to improve readability. 22561 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22562 # Now convert it back to Unix-stile (cygpath) 22563 input_path=`$CYGPATH -u "$shortmode_path"` 22564 new_path="$input_path" 22565 fi 22566 fi 22567 22568 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22569 if test "x$test_cygdrive_prefix" = x; then 22570 # As a simple fix, exclude /usr/bin since it's not a real path. 22571 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22572 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22573 # a path prefixed by /cygdrive for fixpath to work. 22574 new_path="$CYGWIN_ROOT_PATH$input_path" 22575 fi 22576 fi 22577 22578 22579 if test "x$path" != "x$new_path"; then 22580 BOOT_JDK="$new_path" 22581 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22582 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22583 fi 22584 22585 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22586 22587 path="$BOOT_JDK" 22588 has_colon=`$ECHO $path | $GREP ^.:` 22589 new_path="$path" 22590 if test "x$has_colon" = x; then 22591 # Not in mixed or Windows style, start by that. 22592 new_path=`cmd //c echo $path` 22593 fi 22594 22595 22596 input_path="$new_path" 22597 # Check if we need to convert this using DOS-style short mode. If the path 22598 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22599 # take no chances and rewrite it. 22600 # Note: m4 eats our [], so we need to use [ and ] instead. 22601 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22602 if test "x$has_forbidden_chars" != x; then 22603 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22604 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22605 fi 22606 22607 22608 windows_path="$new_path" 22609 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22610 unix_path=`$CYGPATH -u "$windows_path"` 22611 new_path="$unix_path" 22612 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22613 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22614 new_path="$unix_path" 22615 fi 22616 22617 if test "x$path" != "x$new_path"; then 22618 BOOT_JDK="$new_path" 22619 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22620 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22621 fi 22622 22623 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22624 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22625 22626 else 22627 # We're on a posix platform. Hooray! :) 22628 path="$BOOT_JDK" 22629 has_space=`$ECHO "$path" | $GREP " "` 22630 if test "x$has_space" != x; then 22631 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22632 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22633 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22634 fi 22635 22636 # Use eval to expand a potential ~ 22637 eval path="$path" 22638 if test ! -f "$path" && test ! -d "$path"; then 22639 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22640 fi 22641 22642 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22643 fi 22644 22645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22646 $as_echo_n "checking for Boot JDK... " >&6; } 22647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22648 $as_echo "$BOOT_JDK" >&6; } 22649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22650 $as_echo_n "checking Boot JDK version... " >&6; } 22651 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22653 $as_echo "$BOOT_JDK_VERSION" >&6; } 22654 fi # end check jdk version 22655 fi # end check rt.jar 22656 fi # end check javac 22657 fi # end check java 22658 fi # end check boot jdk found 22659 fi 22660 22661 22662 if test "x$BOOT_JDK_FOUND" = xno; then 22663 # Now execute the test 22664 22665 if test "x$PROGRAMW6432" != x; then 22666 VIRTUAL_DIR="$PROGRAMW6432/Java" 22667 22668 windows_path="$VIRTUAL_DIR" 22669 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22670 unix_path=`$CYGPATH -u "$windows_path"` 22671 VIRTUAL_DIR="$unix_path" 22672 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22673 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22674 VIRTUAL_DIR="$unix_path" 22675 fi 22676 22677 22678 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22679 BOOT_JDK_SUFFIX="" 22680 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22681 if test "x$ALL_JDKS_FOUND" != x; then 22682 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22683 22684 if test "x$BOOT_JDK_FOUND" = xno; then 22685 # Now execute the test 22686 22687 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22688 if test -d "$BOOT_JDK"; then 22689 BOOT_JDK_FOUND=maybe 22690 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22691 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22692 fi 22693 22694 22695 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22696 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22697 # Do we have a bin/java? 22698 if test ! -x "$BOOT_JDK/bin/java"; then 22699 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22700 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22701 BOOT_JDK_FOUND=no 22702 else 22703 # Do we have a bin/javac? 22704 if test ! -x "$BOOT_JDK/bin/javac"; then 22705 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22706 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22707 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22708 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22709 BOOT_JDK_FOUND=no 22710 else 22711 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22712 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22713 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22714 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22715 BOOT_JDK_FOUND=no 22716 else 22717 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22718 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22719 22720 # Extra M4 quote needed to protect [] in grep expression. 22721 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22722 if test "x$FOUND_CORRECT_VERSION" = x; then 22723 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22724 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22725 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22726 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22727 BOOT_JDK_FOUND=no 22728 else 22729 # We're done! :-) 22730 BOOT_JDK_FOUND=yes 22731 22732 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22733 22734 # Input might be given as Windows format, start by converting to 22735 # unix format. 22736 path="$BOOT_JDK" 22737 new_path=`$CYGPATH -u "$path"` 22738 22739 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22740 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22741 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22742 # "foo.exe" is OK but "foo" is an error. 22743 # 22744 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22745 # It is also a way to make sure we got the proper file name for the real test later on. 22746 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22747 if test "x$test_shortpath" = x; then 22748 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22749 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22750 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22751 fi 22752 22753 # Call helper function which possibly converts this using DOS-style short mode. 22754 # If so, the updated path is stored in $new_path. 22755 22756 input_path="$new_path" 22757 # Check if we need to convert this using DOS-style short mode. If the path 22758 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22759 # take no chances and rewrite it. 22760 # Note: m4 eats our [], so we need to use [ and ] instead. 22761 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22762 if test "x$has_forbidden_chars" != x; then 22763 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22764 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22765 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22766 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22767 # Going to short mode and back again did indeed matter. Since short mode is 22768 # case insensitive, let's make it lowercase to improve readability. 22769 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22770 # Now convert it back to Unix-stile (cygpath) 22771 input_path=`$CYGPATH -u "$shortmode_path"` 22772 new_path="$input_path" 22773 fi 22774 fi 22775 22776 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22777 if test "x$test_cygdrive_prefix" = x; then 22778 # As a simple fix, exclude /usr/bin since it's not a real path. 22779 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22780 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22781 # a path prefixed by /cygdrive for fixpath to work. 22782 new_path="$CYGWIN_ROOT_PATH$input_path" 22783 fi 22784 fi 22785 22786 22787 if test "x$path" != "x$new_path"; then 22788 BOOT_JDK="$new_path" 22789 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22790 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22791 fi 22792 22793 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22794 22795 path="$BOOT_JDK" 22796 has_colon=`$ECHO $path | $GREP ^.:` 22797 new_path="$path" 22798 if test "x$has_colon" = x; then 22799 # Not in mixed or Windows style, start by that. 22800 new_path=`cmd //c echo $path` 22801 fi 22802 22803 22804 input_path="$new_path" 22805 # Check if we need to convert this using DOS-style short mode. If the path 22806 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22807 # take no chances and rewrite it. 22808 # Note: m4 eats our [], so we need to use [ and ] instead. 22809 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22810 if test "x$has_forbidden_chars" != x; then 22811 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22812 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22813 fi 22814 22815 22816 windows_path="$new_path" 22817 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22818 unix_path=`$CYGPATH -u "$windows_path"` 22819 new_path="$unix_path" 22820 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22821 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22822 new_path="$unix_path" 22823 fi 22824 22825 if test "x$path" != "x$new_path"; then 22826 BOOT_JDK="$new_path" 22827 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22828 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22829 fi 22830 22831 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22832 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22833 22834 else 22835 # We're on a posix platform. Hooray! :) 22836 path="$BOOT_JDK" 22837 has_space=`$ECHO "$path" | $GREP " "` 22838 if test "x$has_space" != x; then 22839 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22840 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22841 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22842 fi 22843 22844 # Use eval to expand a potential ~ 22845 eval path="$path" 22846 if test ! -f "$path" && test ! -d "$path"; then 22847 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22848 fi 22849 22850 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22851 fi 22852 22853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22854 $as_echo_n "checking for Boot JDK... " >&6; } 22855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22856 $as_echo "$BOOT_JDK" >&6; } 22857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22858 $as_echo_n "checking Boot JDK version... " >&6; } 22859 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22861 $as_echo "$BOOT_JDK_VERSION" >&6; } 22862 fi # end check jdk version 22863 fi # end check rt.jar 22864 fi # end check javac 22865 fi # end check java 22866 fi # end check boot jdk found 22867 fi 22868 22869 done 22870 fi 22871 22872 fi 22873 22874 22875 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22876 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22877 # Do we have a bin/java? 22878 if test ! -x "$BOOT_JDK/bin/java"; then 22879 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22880 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22881 BOOT_JDK_FOUND=no 22882 else 22883 # Do we have a bin/javac? 22884 if test ! -x "$BOOT_JDK/bin/javac"; then 22885 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22886 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22887 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22888 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22889 BOOT_JDK_FOUND=no 22890 else 22891 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22892 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22893 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22894 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22895 BOOT_JDK_FOUND=no 22896 else 22897 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22898 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22899 22900 # Extra M4 quote needed to protect [] in grep expression. 22901 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22902 if test "x$FOUND_CORRECT_VERSION" = x; then 22903 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22904 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22905 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22906 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22907 BOOT_JDK_FOUND=no 22908 else 22909 # We're done! :-) 22910 BOOT_JDK_FOUND=yes 22911 22912 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22913 22914 # Input might be given as Windows format, start by converting to 22915 # unix format. 22916 path="$BOOT_JDK" 22917 new_path=`$CYGPATH -u "$path"` 22918 22919 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22920 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22921 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22922 # "foo.exe" is OK but "foo" is an error. 22923 # 22924 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22925 # It is also a way to make sure we got the proper file name for the real test later on. 22926 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22927 if test "x$test_shortpath" = x; then 22928 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22929 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22930 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22931 fi 22932 22933 # Call helper function which possibly converts this using DOS-style short mode. 22934 # If so, the updated path is stored in $new_path. 22935 22936 input_path="$new_path" 22937 # Check if we need to convert this using DOS-style short mode. If the path 22938 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22939 # take no chances and rewrite it. 22940 # Note: m4 eats our [], so we need to use [ and ] instead. 22941 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22942 if test "x$has_forbidden_chars" != x; then 22943 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22944 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22945 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22946 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22947 # Going to short mode and back again did indeed matter. Since short mode is 22948 # case insensitive, let's make it lowercase to improve readability. 22949 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22950 # Now convert it back to Unix-stile (cygpath) 22951 input_path=`$CYGPATH -u "$shortmode_path"` 22952 new_path="$input_path" 22953 fi 22954 fi 22955 22956 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22957 if test "x$test_cygdrive_prefix" = x; then 22958 # As a simple fix, exclude /usr/bin since it's not a real path. 22959 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22960 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22961 # a path prefixed by /cygdrive for fixpath to work. 22962 new_path="$CYGWIN_ROOT_PATH$input_path" 22963 fi 22964 fi 22965 22966 22967 if test "x$path" != "x$new_path"; then 22968 BOOT_JDK="$new_path" 22969 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22970 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22971 fi 22972 22973 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22974 22975 path="$BOOT_JDK" 22976 has_colon=`$ECHO $path | $GREP ^.:` 22977 new_path="$path" 22978 if test "x$has_colon" = x; then 22979 # Not in mixed or Windows style, start by that. 22980 new_path=`cmd //c echo $path` 22981 fi 22982 22983 22984 input_path="$new_path" 22985 # Check if we need to convert this using DOS-style short mode. If the path 22986 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22987 # take no chances and rewrite it. 22988 # Note: m4 eats our [], so we need to use [ and ] instead. 22989 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22990 if test "x$has_forbidden_chars" != x; then 22991 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22992 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22993 fi 22994 22995 22996 windows_path="$new_path" 22997 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22998 unix_path=`$CYGPATH -u "$windows_path"` 22999 new_path="$unix_path" 23000 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23001 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23002 new_path="$unix_path" 23003 fi 23004 23005 if test "x$path" != "x$new_path"; then 23006 BOOT_JDK="$new_path" 23007 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23008 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23009 fi 23010 23011 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23012 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23013 23014 else 23015 # We're on a posix platform. Hooray! :) 23016 path="$BOOT_JDK" 23017 has_space=`$ECHO "$path" | $GREP " "` 23018 if test "x$has_space" != x; then 23019 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23020 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23021 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23022 fi 23023 23024 # Use eval to expand a potential ~ 23025 eval path="$path" 23026 if test ! -f "$path" && test ! -d "$path"; then 23027 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23028 fi 23029 23030 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23031 fi 23032 23033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23034 $as_echo_n "checking for Boot JDK... " >&6; } 23035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23036 $as_echo "$BOOT_JDK" >&6; } 23037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23038 $as_echo_n "checking Boot JDK version... " >&6; } 23039 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23041 $as_echo "$BOOT_JDK_VERSION" >&6; } 23042 fi # end check jdk version 23043 fi # end check rt.jar 23044 fi # end check javac 23045 fi # end check java 23046 fi # end check boot jdk found 23047 fi 23048 23049 23050 if test "x$BOOT_JDK_FOUND" = xno; then 23051 # Now execute the test 23052 23053 if test "x$PROGRAMFILES" != x; then 23054 VIRTUAL_DIR="$PROGRAMFILES/Java" 23055 23056 windows_path="$VIRTUAL_DIR" 23057 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23058 unix_path=`$CYGPATH -u "$windows_path"` 23059 VIRTUAL_DIR="$unix_path" 23060 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23061 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23062 VIRTUAL_DIR="$unix_path" 23063 fi 23064 23065 23066 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 23067 BOOT_JDK_SUFFIX="" 23068 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23069 if test "x$ALL_JDKS_FOUND" != x; then 23070 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23071 23072 if test "x$BOOT_JDK_FOUND" = xno; then 23073 # Now execute the test 23074 23075 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23076 if test -d "$BOOT_JDK"; then 23077 BOOT_JDK_FOUND=maybe 23078 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23079 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23080 fi 23081 23082 23083 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23084 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23085 # Do we have a bin/java? 23086 if test ! -x "$BOOT_JDK/bin/java"; then 23087 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23088 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23089 BOOT_JDK_FOUND=no 23090 else 23091 # Do we have a bin/javac? 23092 if test ! -x "$BOOT_JDK/bin/javac"; then 23093 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23094 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23095 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23096 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23097 BOOT_JDK_FOUND=no 23098 else 23099 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23100 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23101 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23102 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23103 BOOT_JDK_FOUND=no 23104 else 23105 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23106 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23107 23108 # Extra M4 quote needed to protect [] in grep expression. 23109 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23110 if test "x$FOUND_CORRECT_VERSION" = x; then 23111 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23112 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23113 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23114 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23115 BOOT_JDK_FOUND=no 23116 else 23117 # We're done! :-) 23118 BOOT_JDK_FOUND=yes 23119 23120 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23121 23122 # Input might be given as Windows format, start by converting to 23123 # unix format. 23124 path="$BOOT_JDK" 23125 new_path=`$CYGPATH -u "$path"` 23126 23127 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23128 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23129 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23130 # "foo.exe" is OK but "foo" is an error. 23131 # 23132 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23133 # It is also a way to make sure we got the proper file name for the real test later on. 23134 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23135 if test "x$test_shortpath" = x; then 23136 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23137 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23138 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23139 fi 23140 23141 # Call helper function which possibly converts this using DOS-style short mode. 23142 # If so, the updated path is stored in $new_path. 23143 23144 input_path="$new_path" 23145 # Check if we need to convert this using DOS-style short mode. If the path 23146 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23147 # take no chances and rewrite it. 23148 # Note: m4 eats our [], so we need to use [ and ] instead. 23149 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23150 if test "x$has_forbidden_chars" != x; then 23151 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23152 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23153 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23154 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23155 # Going to short mode and back again did indeed matter. Since short mode is 23156 # case insensitive, let's make it lowercase to improve readability. 23157 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23158 # Now convert it back to Unix-stile (cygpath) 23159 input_path=`$CYGPATH -u "$shortmode_path"` 23160 new_path="$input_path" 23161 fi 23162 fi 23163 23164 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23165 if test "x$test_cygdrive_prefix" = x; then 23166 # As a simple fix, exclude /usr/bin since it's not a real path. 23167 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23168 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23169 # a path prefixed by /cygdrive for fixpath to work. 23170 new_path="$CYGWIN_ROOT_PATH$input_path" 23171 fi 23172 fi 23173 23174 23175 if test "x$path" != "x$new_path"; then 23176 BOOT_JDK="$new_path" 23177 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23178 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23179 fi 23180 23181 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23182 23183 path="$BOOT_JDK" 23184 has_colon=`$ECHO $path | $GREP ^.:` 23185 new_path="$path" 23186 if test "x$has_colon" = x; then 23187 # Not in mixed or Windows style, start by that. 23188 new_path=`cmd //c echo $path` 23189 fi 23190 23191 23192 input_path="$new_path" 23193 # Check if we need to convert this using DOS-style short mode. If the path 23194 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23195 # take no chances and rewrite it. 23196 # Note: m4 eats our [], so we need to use [ and ] instead. 23197 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23198 if test "x$has_forbidden_chars" != x; then 23199 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23200 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23201 fi 23202 23203 23204 windows_path="$new_path" 23205 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23206 unix_path=`$CYGPATH -u "$windows_path"` 23207 new_path="$unix_path" 23208 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23209 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23210 new_path="$unix_path" 23211 fi 23212 23213 if test "x$path" != "x$new_path"; then 23214 BOOT_JDK="$new_path" 23215 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23216 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23217 fi 23218 23219 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23220 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23221 23222 else 23223 # We're on a posix platform. Hooray! :) 23224 path="$BOOT_JDK" 23225 has_space=`$ECHO "$path" | $GREP " "` 23226 if test "x$has_space" != x; then 23227 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23228 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23229 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23230 fi 23231 23232 # Use eval to expand a potential ~ 23233 eval path="$path" 23234 if test ! -f "$path" && test ! -d "$path"; then 23235 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23236 fi 23237 23238 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23239 fi 23240 23241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23242 $as_echo_n "checking for Boot JDK... " >&6; } 23243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23244 $as_echo "$BOOT_JDK" >&6; } 23245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23246 $as_echo_n "checking Boot JDK version... " >&6; } 23247 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23249 $as_echo "$BOOT_JDK_VERSION" >&6; } 23250 fi # end check jdk version 23251 fi # end check rt.jar 23252 fi # end check javac 23253 fi # end check java 23254 fi # end check boot jdk found 23255 fi 23256 23257 done 23258 fi 23259 23260 fi 23261 23262 23263 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23264 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23265 # Do we have a bin/java? 23266 if test ! -x "$BOOT_JDK/bin/java"; then 23267 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23268 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23269 BOOT_JDK_FOUND=no 23270 else 23271 # Do we have a bin/javac? 23272 if test ! -x "$BOOT_JDK/bin/javac"; then 23273 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23274 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23275 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23276 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23277 BOOT_JDK_FOUND=no 23278 else 23279 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23280 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23281 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23282 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23283 BOOT_JDK_FOUND=no 23284 else 23285 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23286 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23287 23288 # Extra M4 quote needed to protect [] in grep expression. 23289 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23290 if test "x$FOUND_CORRECT_VERSION" = x; then 23291 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23292 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23293 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23294 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23295 BOOT_JDK_FOUND=no 23296 else 23297 # We're done! :-) 23298 BOOT_JDK_FOUND=yes 23299 23300 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23301 23302 # Input might be given as Windows format, start by converting to 23303 # unix format. 23304 path="$BOOT_JDK" 23305 new_path=`$CYGPATH -u "$path"` 23306 23307 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23308 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23309 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23310 # "foo.exe" is OK but "foo" is an error. 23311 # 23312 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23313 # It is also a way to make sure we got the proper file name for the real test later on. 23314 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23315 if test "x$test_shortpath" = x; then 23316 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23317 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23318 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23319 fi 23320 23321 # Call helper function which possibly converts this using DOS-style short mode. 23322 # If so, the updated path is stored in $new_path. 23323 23324 input_path="$new_path" 23325 # Check if we need to convert this using DOS-style short mode. If the path 23326 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23327 # take no chances and rewrite it. 23328 # Note: m4 eats our [], so we need to use [ and ] instead. 23329 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23330 if test "x$has_forbidden_chars" != x; then 23331 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23332 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23333 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23334 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23335 # Going to short mode and back again did indeed matter. Since short mode is 23336 # case insensitive, let's make it lowercase to improve readability. 23337 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23338 # Now convert it back to Unix-stile (cygpath) 23339 input_path=`$CYGPATH -u "$shortmode_path"` 23340 new_path="$input_path" 23341 fi 23342 fi 23343 23344 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23345 if test "x$test_cygdrive_prefix" = x; then 23346 # As a simple fix, exclude /usr/bin since it's not a real path. 23347 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23348 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23349 # a path prefixed by /cygdrive for fixpath to work. 23350 new_path="$CYGWIN_ROOT_PATH$input_path" 23351 fi 23352 fi 23353 23354 23355 if test "x$path" != "x$new_path"; then 23356 BOOT_JDK="$new_path" 23357 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23358 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23359 fi 23360 23361 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23362 23363 path="$BOOT_JDK" 23364 has_colon=`$ECHO $path | $GREP ^.:` 23365 new_path="$path" 23366 if test "x$has_colon" = x; then 23367 # Not in mixed or Windows style, start by that. 23368 new_path=`cmd //c echo $path` 23369 fi 23370 23371 23372 input_path="$new_path" 23373 # Check if we need to convert this using DOS-style short mode. If the path 23374 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23375 # take no chances and rewrite it. 23376 # Note: m4 eats our [], so we need to use [ and ] instead. 23377 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23378 if test "x$has_forbidden_chars" != x; then 23379 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23380 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23381 fi 23382 23383 23384 windows_path="$new_path" 23385 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23386 unix_path=`$CYGPATH -u "$windows_path"` 23387 new_path="$unix_path" 23388 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23389 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23390 new_path="$unix_path" 23391 fi 23392 23393 if test "x$path" != "x$new_path"; then 23394 BOOT_JDK="$new_path" 23395 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23396 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23397 fi 23398 23399 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23400 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23401 23402 else 23403 # We're on a posix platform. Hooray! :) 23404 path="$BOOT_JDK" 23405 has_space=`$ECHO "$path" | $GREP " "` 23406 if test "x$has_space" != x; then 23407 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23408 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23409 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23410 fi 23411 23412 # Use eval to expand a potential ~ 23413 eval path="$path" 23414 if test ! -f "$path" && test ! -d "$path"; then 23415 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23416 fi 23417 23418 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23419 fi 23420 23421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23422 $as_echo_n "checking for Boot JDK... " >&6; } 23423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23424 $as_echo "$BOOT_JDK" >&6; } 23425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23426 $as_echo_n "checking Boot JDK version... " >&6; } 23427 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23429 $as_echo "$BOOT_JDK_VERSION" >&6; } 23430 fi # end check jdk version 23431 fi # end check rt.jar 23432 fi # end check javac 23433 fi # end check java 23434 fi # end check boot jdk found 23435 fi 23436 23437 23438 if test "x$BOOT_JDK_FOUND" = xno; then 23439 # Now execute the test 23440 23441 if test "x$ProgramFiles" != x; then 23442 VIRTUAL_DIR="$ProgramFiles/Java" 23443 23444 windows_path="$VIRTUAL_DIR" 23445 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23446 unix_path=`$CYGPATH -u "$windows_path"` 23447 VIRTUAL_DIR="$unix_path" 23448 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23449 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23450 VIRTUAL_DIR="$unix_path" 23451 fi 23452 23453 23454 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 23455 BOOT_JDK_SUFFIX="" 23456 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23457 if test "x$ALL_JDKS_FOUND" != x; then 23458 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23459 23460 if test "x$BOOT_JDK_FOUND" = xno; then 23461 # Now execute the test 23462 23463 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23464 if test -d "$BOOT_JDK"; then 23465 BOOT_JDK_FOUND=maybe 23466 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23467 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23468 fi 23469 23470 23471 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23472 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23473 # Do we have a bin/java? 23474 if test ! -x "$BOOT_JDK/bin/java"; then 23475 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23476 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23477 BOOT_JDK_FOUND=no 23478 else 23479 # Do we have a bin/javac? 23480 if test ! -x "$BOOT_JDK/bin/javac"; then 23481 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23482 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23483 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23484 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23485 BOOT_JDK_FOUND=no 23486 else 23487 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23488 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23489 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23490 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23491 BOOT_JDK_FOUND=no 23492 else 23493 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23494 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23495 23496 # Extra M4 quote needed to protect [] in grep expression. 23497 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23498 if test "x$FOUND_CORRECT_VERSION" = x; then 23499 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23500 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23501 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23502 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23503 BOOT_JDK_FOUND=no 23504 else 23505 # We're done! :-) 23506 BOOT_JDK_FOUND=yes 23507 23508 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23509 23510 # Input might be given as Windows format, start by converting to 23511 # unix format. 23512 path="$BOOT_JDK" 23513 new_path=`$CYGPATH -u "$path"` 23514 23515 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23516 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23517 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23518 # "foo.exe" is OK but "foo" is an error. 23519 # 23520 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23521 # It is also a way to make sure we got the proper file name for the real test later on. 23522 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23523 if test "x$test_shortpath" = x; then 23524 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23525 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23526 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23527 fi 23528 23529 # Call helper function which possibly converts this using DOS-style short mode. 23530 # If so, the updated path is stored in $new_path. 23531 23532 input_path="$new_path" 23533 # Check if we need to convert this using DOS-style short mode. If the path 23534 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23535 # take no chances and rewrite it. 23536 # Note: m4 eats our [], so we need to use [ and ] instead. 23537 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23538 if test "x$has_forbidden_chars" != x; then 23539 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23540 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23541 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23542 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23543 # Going to short mode and back again did indeed matter. Since short mode is 23544 # case insensitive, let's make it lowercase to improve readability. 23545 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23546 # Now convert it back to Unix-stile (cygpath) 23547 input_path=`$CYGPATH -u "$shortmode_path"` 23548 new_path="$input_path" 23549 fi 23550 fi 23551 23552 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23553 if test "x$test_cygdrive_prefix" = x; then 23554 # As a simple fix, exclude /usr/bin since it's not a real path. 23555 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23556 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23557 # a path prefixed by /cygdrive for fixpath to work. 23558 new_path="$CYGWIN_ROOT_PATH$input_path" 23559 fi 23560 fi 23561 23562 23563 if test "x$path" != "x$new_path"; then 23564 BOOT_JDK="$new_path" 23565 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23566 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23567 fi 23568 23569 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23570 23571 path="$BOOT_JDK" 23572 has_colon=`$ECHO $path | $GREP ^.:` 23573 new_path="$path" 23574 if test "x$has_colon" = x; then 23575 # Not in mixed or Windows style, start by that. 23576 new_path=`cmd //c echo $path` 23577 fi 23578 23579 23580 input_path="$new_path" 23581 # Check if we need to convert this using DOS-style short mode. If the path 23582 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23583 # take no chances and rewrite it. 23584 # Note: m4 eats our [], so we need to use [ and ] instead. 23585 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23586 if test "x$has_forbidden_chars" != x; then 23587 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23588 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23589 fi 23590 23591 23592 windows_path="$new_path" 23593 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23594 unix_path=`$CYGPATH -u "$windows_path"` 23595 new_path="$unix_path" 23596 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23597 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23598 new_path="$unix_path" 23599 fi 23600 23601 if test "x$path" != "x$new_path"; then 23602 BOOT_JDK="$new_path" 23603 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23604 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23605 fi 23606 23607 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23608 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23609 23610 else 23611 # We're on a posix platform. Hooray! :) 23612 path="$BOOT_JDK" 23613 has_space=`$ECHO "$path" | $GREP " "` 23614 if test "x$has_space" != x; then 23615 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23616 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23617 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23618 fi 23619 23620 # Use eval to expand a potential ~ 23621 eval path="$path" 23622 if test ! -f "$path" && test ! -d "$path"; then 23623 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23624 fi 23625 23626 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23627 fi 23628 23629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23630 $as_echo_n "checking for Boot JDK... " >&6; } 23631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23632 $as_echo "$BOOT_JDK" >&6; } 23633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23634 $as_echo_n "checking Boot JDK version... " >&6; } 23635 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23637 $as_echo "$BOOT_JDK_VERSION" >&6; } 23638 fi # end check jdk version 23639 fi # end check rt.jar 23640 fi # end check javac 23641 fi # end check java 23642 fi # end check boot jdk found 23643 fi 23644 23645 done 23646 fi 23647 23648 fi 23649 23650 23651 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23652 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23653 # Do we have a bin/java? 23654 if test ! -x "$BOOT_JDK/bin/java"; then 23655 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23656 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23657 BOOT_JDK_FOUND=no 23658 else 23659 # Do we have a bin/javac? 23660 if test ! -x "$BOOT_JDK/bin/javac"; then 23661 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23662 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23663 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23664 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23665 BOOT_JDK_FOUND=no 23666 else 23667 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23668 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23669 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23670 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23671 BOOT_JDK_FOUND=no 23672 else 23673 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23674 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23675 23676 # Extra M4 quote needed to protect [] in grep expression. 23677 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23678 if test "x$FOUND_CORRECT_VERSION" = x; then 23679 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23680 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23681 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23682 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23683 BOOT_JDK_FOUND=no 23684 else 23685 # We're done! :-) 23686 BOOT_JDK_FOUND=yes 23687 23688 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23689 23690 # Input might be given as Windows format, start by converting to 23691 # unix format. 23692 path="$BOOT_JDK" 23693 new_path=`$CYGPATH -u "$path"` 23694 23695 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23696 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23697 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23698 # "foo.exe" is OK but "foo" is an error. 23699 # 23700 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23701 # It is also a way to make sure we got the proper file name for the real test later on. 23702 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23703 if test "x$test_shortpath" = x; then 23704 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23705 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23706 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23707 fi 23708 23709 # Call helper function which possibly converts this using DOS-style short mode. 23710 # If so, the updated path is stored in $new_path. 23711 23712 input_path="$new_path" 23713 # Check if we need to convert this using DOS-style short mode. If the path 23714 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23715 # take no chances and rewrite it. 23716 # Note: m4 eats our [], so we need to use [ and ] instead. 23717 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23718 if test "x$has_forbidden_chars" != x; then 23719 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23720 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23721 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23722 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23723 # Going to short mode and back again did indeed matter. Since short mode is 23724 # case insensitive, let's make it lowercase to improve readability. 23725 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23726 # Now convert it back to Unix-stile (cygpath) 23727 input_path=`$CYGPATH -u "$shortmode_path"` 23728 new_path="$input_path" 23729 fi 23730 fi 23731 23732 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23733 if test "x$test_cygdrive_prefix" = x; then 23734 # As a simple fix, exclude /usr/bin since it's not a real path. 23735 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23736 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23737 # a path prefixed by /cygdrive for fixpath to work. 23738 new_path="$CYGWIN_ROOT_PATH$input_path" 23739 fi 23740 fi 23741 23742 23743 if test "x$path" != "x$new_path"; then 23744 BOOT_JDK="$new_path" 23745 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23746 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23747 fi 23748 23749 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23750 23751 path="$BOOT_JDK" 23752 has_colon=`$ECHO $path | $GREP ^.:` 23753 new_path="$path" 23754 if test "x$has_colon" = x; then 23755 # Not in mixed or Windows style, start by that. 23756 new_path=`cmd //c echo $path` 23757 fi 23758 23759 23760 input_path="$new_path" 23761 # Check if we need to convert this using DOS-style short mode. If the path 23762 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23763 # take no chances and rewrite it. 23764 # Note: m4 eats our [], so we need to use [ and ] instead. 23765 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23766 if test "x$has_forbidden_chars" != x; then 23767 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23768 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23769 fi 23770 23771 23772 windows_path="$new_path" 23773 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23774 unix_path=`$CYGPATH -u "$windows_path"` 23775 new_path="$unix_path" 23776 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23777 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23778 new_path="$unix_path" 23779 fi 23780 23781 if test "x$path" != "x$new_path"; then 23782 BOOT_JDK="$new_path" 23783 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23784 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23785 fi 23786 23787 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23788 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23789 23790 else 23791 # We're on a posix platform. Hooray! :) 23792 path="$BOOT_JDK" 23793 has_space=`$ECHO "$path" | $GREP " "` 23794 if test "x$has_space" != x; then 23795 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23796 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23797 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23798 fi 23799 23800 # Use eval to expand a potential ~ 23801 eval path="$path" 23802 if test ! -f "$path" && test ! -d "$path"; then 23803 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23804 fi 23805 23806 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23807 fi 23808 23809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23810 $as_echo_n "checking for Boot JDK... " >&6; } 23811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23812 $as_echo "$BOOT_JDK" >&6; } 23813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23814 $as_echo_n "checking Boot JDK version... " >&6; } 23815 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23817 $as_echo "$BOOT_JDK_VERSION" >&6; } 23818 fi # end check jdk version 23819 fi # end check rt.jar 23820 fi # end check javac 23821 fi # end check java 23822 fi # end check boot jdk found 23823 fi 23824 23825 23826 if test "x$BOOT_JDK_FOUND" = xno; then 23827 # Now execute the test 23828 23829 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 23830 BOOT_JDK_SUFFIX="" 23831 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23832 if test "x$ALL_JDKS_FOUND" != x; then 23833 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23834 23835 if test "x$BOOT_JDK_FOUND" = xno; then 23836 # Now execute the test 23837 23838 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23839 if test -d "$BOOT_JDK"; then 23840 BOOT_JDK_FOUND=maybe 23841 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23842 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23843 fi 23844 23845 23846 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23847 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23848 # Do we have a bin/java? 23849 if test ! -x "$BOOT_JDK/bin/java"; then 23850 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23851 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23852 BOOT_JDK_FOUND=no 23853 else 23854 # Do we have a bin/javac? 23855 if test ! -x "$BOOT_JDK/bin/javac"; then 23856 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23857 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23858 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23859 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23860 BOOT_JDK_FOUND=no 23861 else 23862 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23863 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23864 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23865 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23866 BOOT_JDK_FOUND=no 23867 else 23868 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23869 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23870 23871 # Extra M4 quote needed to protect [] in grep expression. 23872 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23873 if test "x$FOUND_CORRECT_VERSION" = x; then 23874 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23875 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23876 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23877 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23878 BOOT_JDK_FOUND=no 23879 else 23880 # We're done! :-) 23881 BOOT_JDK_FOUND=yes 23882 23883 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23884 23885 # Input might be given as Windows format, start by converting to 23886 # unix format. 23887 path="$BOOT_JDK" 23888 new_path=`$CYGPATH -u "$path"` 23889 23890 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23891 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23892 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23893 # "foo.exe" is OK but "foo" is an error. 23894 # 23895 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23896 # It is also a way to make sure we got the proper file name for the real test later on. 23897 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23898 if test "x$test_shortpath" = x; then 23899 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23900 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23901 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23902 fi 23903 23904 # Call helper function which possibly converts this using DOS-style short mode. 23905 # If so, the updated path is stored in $new_path. 23906 23907 input_path="$new_path" 23908 # Check if we need to convert this using DOS-style short mode. If the path 23909 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23910 # take no chances and rewrite it. 23911 # Note: m4 eats our [], so we need to use [ and ] instead. 23912 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23913 if test "x$has_forbidden_chars" != x; then 23914 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23915 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23916 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23917 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23918 # Going to short mode and back again did indeed matter. Since short mode is 23919 # case insensitive, let's make it lowercase to improve readability. 23920 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23921 # Now convert it back to Unix-stile (cygpath) 23922 input_path=`$CYGPATH -u "$shortmode_path"` 23923 new_path="$input_path" 23924 fi 23925 fi 23926 23927 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23928 if test "x$test_cygdrive_prefix" = x; then 23929 # As a simple fix, exclude /usr/bin since it's not a real path. 23930 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23931 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23932 # a path prefixed by /cygdrive for fixpath to work. 23933 new_path="$CYGWIN_ROOT_PATH$input_path" 23934 fi 23935 fi 23936 23937 23938 if test "x$path" != "x$new_path"; then 23939 BOOT_JDK="$new_path" 23940 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23941 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23942 fi 23943 23944 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23945 23946 path="$BOOT_JDK" 23947 has_colon=`$ECHO $path | $GREP ^.:` 23948 new_path="$path" 23949 if test "x$has_colon" = x; then 23950 # Not in mixed or Windows style, start by that. 23951 new_path=`cmd //c echo $path` 23952 fi 23953 23954 23955 input_path="$new_path" 23956 # Check if we need to convert this using DOS-style short mode. If the path 23957 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23958 # take no chances and rewrite it. 23959 # Note: m4 eats our [], so we need to use [ and ] instead. 23960 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23961 if test "x$has_forbidden_chars" != x; then 23962 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23963 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23964 fi 23965 23966 23967 windows_path="$new_path" 23968 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23969 unix_path=`$CYGPATH -u "$windows_path"` 23970 new_path="$unix_path" 23971 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23972 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23973 new_path="$unix_path" 23974 fi 23975 23976 if test "x$path" != "x$new_path"; then 23977 BOOT_JDK="$new_path" 23978 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23979 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23980 fi 23981 23982 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23983 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23984 23985 else 23986 # We're on a posix platform. Hooray! :) 23987 path="$BOOT_JDK" 23988 has_space=`$ECHO "$path" | $GREP " "` 23989 if test "x$has_space" != x; then 23990 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23991 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23992 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23993 fi 23994 23995 # Use eval to expand a potential ~ 23996 eval path="$path" 23997 if test ! -f "$path" && test ! -d "$path"; then 23998 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23999 fi 24000 24001 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24002 fi 24003 24004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24005 $as_echo_n "checking for Boot JDK... " >&6; } 24006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24007 $as_echo "$BOOT_JDK" >&6; } 24008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24009 $as_echo_n "checking Boot JDK version... " >&6; } 24010 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24012 $as_echo "$BOOT_JDK_VERSION" >&6; } 24013 fi # end check jdk version 24014 fi # end check rt.jar 24015 fi # end check javac 24016 fi # end check java 24017 fi # end check boot jdk found 24018 fi 24019 24020 done 24021 fi 24022 24023 24024 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24025 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24026 # Do we have a bin/java? 24027 if test ! -x "$BOOT_JDK/bin/java"; then 24028 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24029 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24030 BOOT_JDK_FOUND=no 24031 else 24032 # Do we have a bin/javac? 24033 if test ! -x "$BOOT_JDK/bin/javac"; then 24034 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24035 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24036 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24037 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24038 BOOT_JDK_FOUND=no 24039 else 24040 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24041 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24042 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24043 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24044 BOOT_JDK_FOUND=no 24045 else 24046 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24047 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24048 24049 # Extra M4 quote needed to protect [] in grep expression. 24050 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24051 if test "x$FOUND_CORRECT_VERSION" = x; then 24052 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24053 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24054 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24055 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24056 BOOT_JDK_FOUND=no 24057 else 24058 # We're done! :-) 24059 BOOT_JDK_FOUND=yes 24060 24061 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24062 24063 # Input might be given as Windows format, start by converting to 24064 # unix format. 24065 path="$BOOT_JDK" 24066 new_path=`$CYGPATH -u "$path"` 24067 24068 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24069 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24070 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24071 # "foo.exe" is OK but "foo" is an error. 24072 # 24073 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24074 # It is also a way to make sure we got the proper file name for the real test later on. 24075 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24076 if test "x$test_shortpath" = x; then 24077 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24078 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24079 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24080 fi 24081 24082 # Call helper function which possibly converts this using DOS-style short mode. 24083 # If so, the updated path is stored in $new_path. 24084 24085 input_path="$new_path" 24086 # Check if we need to convert this using DOS-style short mode. If the path 24087 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24088 # take no chances and rewrite it. 24089 # Note: m4 eats our [], so we need to use [ and ] instead. 24090 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24091 if test "x$has_forbidden_chars" != x; then 24092 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24093 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24094 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24095 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24096 # Going to short mode and back again did indeed matter. Since short mode is 24097 # case insensitive, let's make it lowercase to improve readability. 24098 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24099 # Now convert it back to Unix-stile (cygpath) 24100 input_path=`$CYGPATH -u "$shortmode_path"` 24101 new_path="$input_path" 24102 fi 24103 fi 24104 24105 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24106 if test "x$test_cygdrive_prefix" = x; then 24107 # As a simple fix, exclude /usr/bin since it's not a real path. 24108 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24109 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24110 # a path prefixed by /cygdrive for fixpath to work. 24111 new_path="$CYGWIN_ROOT_PATH$input_path" 24112 fi 24113 fi 24114 24115 24116 if test "x$path" != "x$new_path"; then 24117 BOOT_JDK="$new_path" 24118 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24119 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24120 fi 24121 24122 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24123 24124 path="$BOOT_JDK" 24125 has_colon=`$ECHO $path | $GREP ^.:` 24126 new_path="$path" 24127 if test "x$has_colon" = x; then 24128 # Not in mixed or Windows style, start by that. 24129 new_path=`cmd //c echo $path` 24130 fi 24131 24132 24133 input_path="$new_path" 24134 # Check if we need to convert this using DOS-style short mode. If the path 24135 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24136 # take no chances and rewrite it. 24137 # Note: m4 eats our [], so we need to use [ and ] instead. 24138 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24139 if test "x$has_forbidden_chars" != x; then 24140 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24141 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24142 fi 24143 24144 24145 windows_path="$new_path" 24146 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24147 unix_path=`$CYGPATH -u "$windows_path"` 24148 new_path="$unix_path" 24149 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24150 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24151 new_path="$unix_path" 24152 fi 24153 24154 if test "x$path" != "x$new_path"; then 24155 BOOT_JDK="$new_path" 24156 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24157 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24158 fi 24159 24160 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24161 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24162 24163 else 24164 # We're on a posix platform. Hooray! :) 24165 path="$BOOT_JDK" 24166 has_space=`$ECHO "$path" | $GREP " "` 24167 if test "x$has_space" != x; then 24168 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24169 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24170 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24171 fi 24172 24173 # Use eval to expand a potential ~ 24174 eval path="$path" 24175 if test ! -f "$path" && test ! -d "$path"; then 24176 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24177 fi 24178 24179 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24180 fi 24181 24182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24183 $as_echo_n "checking for Boot JDK... " >&6; } 24184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24185 $as_echo "$BOOT_JDK" >&6; } 24186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24187 $as_echo_n "checking Boot JDK version... " >&6; } 24188 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24190 $as_echo "$BOOT_JDK_VERSION" >&6; } 24191 fi # end check jdk version 24192 fi # end check rt.jar 24193 fi # end check javac 24194 fi # end check java 24195 fi # end check boot jdk found 24196 fi 24197 24198 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 24199 24200 if test "x$BOOT_JDK_FOUND" = xno; then 24201 # Now execute the test 24202 24203 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 24204 BOOT_JDK_SUFFIX="/Contents/Home" 24205 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24206 if test "x$ALL_JDKS_FOUND" != x; then 24207 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24208 24209 if test "x$BOOT_JDK_FOUND" = xno; then 24210 # Now execute the test 24211 24212 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24213 if test -d "$BOOT_JDK"; then 24214 BOOT_JDK_FOUND=maybe 24215 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24216 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24217 fi 24218 24219 24220 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24221 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24222 # Do we have a bin/java? 24223 if test ! -x "$BOOT_JDK/bin/java"; then 24224 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24225 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24226 BOOT_JDK_FOUND=no 24227 else 24228 # Do we have a bin/javac? 24229 if test ! -x "$BOOT_JDK/bin/javac"; then 24230 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24231 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24232 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24233 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24234 BOOT_JDK_FOUND=no 24235 else 24236 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24237 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24238 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24239 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24240 BOOT_JDK_FOUND=no 24241 else 24242 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24243 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24244 24245 # Extra M4 quote needed to protect [] in grep expression. 24246 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24247 if test "x$FOUND_CORRECT_VERSION" = x; then 24248 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24249 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24250 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24251 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24252 BOOT_JDK_FOUND=no 24253 else 24254 # We're done! :-) 24255 BOOT_JDK_FOUND=yes 24256 24257 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24258 24259 # Input might be given as Windows format, start by converting to 24260 # unix format. 24261 path="$BOOT_JDK" 24262 new_path=`$CYGPATH -u "$path"` 24263 24264 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24265 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24266 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24267 # "foo.exe" is OK but "foo" is an error. 24268 # 24269 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24270 # It is also a way to make sure we got the proper file name for the real test later on. 24271 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24272 if test "x$test_shortpath" = x; then 24273 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24274 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24275 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24276 fi 24277 24278 # Call helper function which possibly converts this using DOS-style short mode. 24279 # If so, the updated path is stored in $new_path. 24280 24281 input_path="$new_path" 24282 # Check if we need to convert this using DOS-style short mode. If the path 24283 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24284 # take no chances and rewrite it. 24285 # Note: m4 eats our [], so we need to use [ and ] instead. 24286 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24287 if test "x$has_forbidden_chars" != x; then 24288 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24289 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24290 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24291 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24292 # Going to short mode and back again did indeed matter. Since short mode is 24293 # case insensitive, let's make it lowercase to improve readability. 24294 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24295 # Now convert it back to Unix-stile (cygpath) 24296 input_path=`$CYGPATH -u "$shortmode_path"` 24297 new_path="$input_path" 24298 fi 24299 fi 24300 24301 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24302 if test "x$test_cygdrive_prefix" = x; then 24303 # As a simple fix, exclude /usr/bin since it's not a real path. 24304 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24305 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24306 # a path prefixed by /cygdrive for fixpath to work. 24307 new_path="$CYGWIN_ROOT_PATH$input_path" 24308 fi 24309 fi 24310 24311 24312 if test "x$path" != "x$new_path"; then 24313 BOOT_JDK="$new_path" 24314 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24315 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24316 fi 24317 24318 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24319 24320 path="$BOOT_JDK" 24321 has_colon=`$ECHO $path | $GREP ^.:` 24322 new_path="$path" 24323 if test "x$has_colon" = x; then 24324 # Not in mixed or Windows style, start by that. 24325 new_path=`cmd //c echo $path` 24326 fi 24327 24328 24329 input_path="$new_path" 24330 # Check if we need to convert this using DOS-style short mode. If the path 24331 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24332 # take no chances and rewrite it. 24333 # Note: m4 eats our [], so we need to use [ and ] instead. 24334 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24335 if test "x$has_forbidden_chars" != x; then 24336 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24337 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24338 fi 24339 24340 24341 windows_path="$new_path" 24342 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24343 unix_path=`$CYGPATH -u "$windows_path"` 24344 new_path="$unix_path" 24345 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24346 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24347 new_path="$unix_path" 24348 fi 24349 24350 if test "x$path" != "x$new_path"; then 24351 BOOT_JDK="$new_path" 24352 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24353 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24354 fi 24355 24356 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24357 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24358 24359 else 24360 # We're on a posix platform. Hooray! :) 24361 path="$BOOT_JDK" 24362 has_space=`$ECHO "$path" | $GREP " "` 24363 if test "x$has_space" != x; then 24364 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24365 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24366 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24367 fi 24368 24369 # Use eval to expand a potential ~ 24370 eval path="$path" 24371 if test ! -f "$path" && test ! -d "$path"; then 24372 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24373 fi 24374 24375 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24376 fi 24377 24378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24379 $as_echo_n "checking for Boot JDK... " >&6; } 24380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24381 $as_echo "$BOOT_JDK" >&6; } 24382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24383 $as_echo_n "checking Boot JDK version... " >&6; } 24384 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24386 $as_echo "$BOOT_JDK_VERSION" >&6; } 24387 fi # end check jdk version 24388 fi # end check rt.jar 24389 fi # end check javac 24390 fi # end check java 24391 fi # end check boot jdk found 24392 fi 24393 24394 done 24395 fi 24396 24397 24398 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24399 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24400 # Do we have a bin/java? 24401 if test ! -x "$BOOT_JDK/bin/java"; then 24402 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24403 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24404 BOOT_JDK_FOUND=no 24405 else 24406 # Do we have a bin/javac? 24407 if test ! -x "$BOOT_JDK/bin/javac"; then 24408 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24409 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24410 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24411 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24412 BOOT_JDK_FOUND=no 24413 else 24414 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24415 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24416 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24417 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24418 BOOT_JDK_FOUND=no 24419 else 24420 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24421 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24422 24423 # Extra M4 quote needed to protect [] in grep expression. 24424 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24425 if test "x$FOUND_CORRECT_VERSION" = x; then 24426 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24427 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24428 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24429 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24430 BOOT_JDK_FOUND=no 24431 else 24432 # We're done! :-) 24433 BOOT_JDK_FOUND=yes 24434 24435 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24436 24437 # Input might be given as Windows format, start by converting to 24438 # unix format. 24439 path="$BOOT_JDK" 24440 new_path=`$CYGPATH -u "$path"` 24441 24442 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24443 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24444 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24445 # "foo.exe" is OK but "foo" is an error. 24446 # 24447 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24448 # It is also a way to make sure we got the proper file name for the real test later on. 24449 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24450 if test "x$test_shortpath" = x; then 24451 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24452 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24453 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24454 fi 24455 24456 # Call helper function which possibly converts this using DOS-style short mode. 24457 # If so, the updated path is stored in $new_path. 24458 24459 input_path="$new_path" 24460 # Check if we need to convert this using DOS-style short mode. If the path 24461 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24462 # take no chances and rewrite it. 24463 # Note: m4 eats our [], so we need to use [ and ] instead. 24464 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24465 if test "x$has_forbidden_chars" != x; then 24466 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24467 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24468 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24469 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24470 # Going to short mode and back again did indeed matter. Since short mode is 24471 # case insensitive, let's make it lowercase to improve readability. 24472 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24473 # Now convert it back to Unix-stile (cygpath) 24474 input_path=`$CYGPATH -u "$shortmode_path"` 24475 new_path="$input_path" 24476 fi 24477 fi 24478 24479 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24480 if test "x$test_cygdrive_prefix" = x; then 24481 # As a simple fix, exclude /usr/bin since it's not a real path. 24482 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24483 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24484 # a path prefixed by /cygdrive for fixpath to work. 24485 new_path="$CYGWIN_ROOT_PATH$input_path" 24486 fi 24487 fi 24488 24489 24490 if test "x$path" != "x$new_path"; then 24491 BOOT_JDK="$new_path" 24492 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24493 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24494 fi 24495 24496 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24497 24498 path="$BOOT_JDK" 24499 has_colon=`$ECHO $path | $GREP ^.:` 24500 new_path="$path" 24501 if test "x$has_colon" = x; then 24502 # Not in mixed or Windows style, start by that. 24503 new_path=`cmd //c echo $path` 24504 fi 24505 24506 24507 input_path="$new_path" 24508 # Check if we need to convert this using DOS-style short mode. If the path 24509 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24510 # take no chances and rewrite it. 24511 # Note: m4 eats our [], so we need to use [ and ] instead. 24512 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24513 if test "x$has_forbidden_chars" != x; then 24514 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24515 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24516 fi 24517 24518 24519 windows_path="$new_path" 24520 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24521 unix_path=`$CYGPATH -u "$windows_path"` 24522 new_path="$unix_path" 24523 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24524 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24525 new_path="$unix_path" 24526 fi 24527 24528 if test "x$path" != "x$new_path"; then 24529 BOOT_JDK="$new_path" 24530 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24531 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24532 fi 24533 24534 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24535 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24536 24537 else 24538 # We're on a posix platform. Hooray! :) 24539 path="$BOOT_JDK" 24540 has_space=`$ECHO "$path" | $GREP " "` 24541 if test "x$has_space" != x; then 24542 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24543 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24544 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24545 fi 24546 24547 # Use eval to expand a potential ~ 24548 eval path="$path" 24549 if test ! -f "$path" && test ! -d "$path"; then 24550 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24551 fi 24552 24553 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24554 fi 24555 24556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24557 $as_echo_n "checking for Boot JDK... " >&6; } 24558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24559 $as_echo "$BOOT_JDK" >&6; } 24560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24561 $as_echo_n "checking Boot JDK version... " >&6; } 24562 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24564 $as_echo "$BOOT_JDK_VERSION" >&6; } 24565 fi # end check jdk version 24566 fi # end check rt.jar 24567 fi # end check javac 24568 fi # end check java 24569 fi # end check boot jdk found 24570 fi 24571 24572 24573 if test "x$BOOT_JDK_FOUND" = xno; then 24574 # Now execute the test 24575 24576 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 24577 BOOT_JDK_SUFFIX="/Contents/Home" 24578 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24579 if test "x$ALL_JDKS_FOUND" != x; then 24580 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24581 24582 if test "x$BOOT_JDK_FOUND" = xno; then 24583 # Now execute the test 24584 24585 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24586 if test -d "$BOOT_JDK"; then 24587 BOOT_JDK_FOUND=maybe 24588 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24589 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24590 fi 24591 24592 24593 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24594 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24595 # Do we have a bin/java? 24596 if test ! -x "$BOOT_JDK/bin/java"; then 24597 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24598 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24599 BOOT_JDK_FOUND=no 24600 else 24601 # Do we have a bin/javac? 24602 if test ! -x "$BOOT_JDK/bin/javac"; then 24603 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24604 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24605 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24606 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24607 BOOT_JDK_FOUND=no 24608 else 24609 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24610 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24611 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24612 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24613 BOOT_JDK_FOUND=no 24614 else 24615 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24616 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24617 24618 # Extra M4 quote needed to protect [] in grep expression. 24619 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24620 if test "x$FOUND_CORRECT_VERSION" = x; then 24621 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24622 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24623 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24624 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24625 BOOT_JDK_FOUND=no 24626 else 24627 # We're done! :-) 24628 BOOT_JDK_FOUND=yes 24629 24630 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24631 24632 # Input might be given as Windows format, start by converting to 24633 # unix format. 24634 path="$BOOT_JDK" 24635 new_path=`$CYGPATH -u "$path"` 24636 24637 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24638 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24639 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24640 # "foo.exe" is OK but "foo" is an error. 24641 # 24642 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24643 # It is also a way to make sure we got the proper file name for the real test later on. 24644 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24645 if test "x$test_shortpath" = x; then 24646 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24647 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24648 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24649 fi 24650 24651 # Call helper function which possibly converts this using DOS-style short mode. 24652 # If so, the updated path is stored in $new_path. 24653 24654 input_path="$new_path" 24655 # Check if we need to convert this using DOS-style short mode. If the path 24656 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24657 # take no chances and rewrite it. 24658 # Note: m4 eats our [], so we need to use [ and ] instead. 24659 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24660 if test "x$has_forbidden_chars" != x; then 24661 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24662 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24663 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24664 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24665 # Going to short mode and back again did indeed matter. Since short mode is 24666 # case insensitive, let's make it lowercase to improve readability. 24667 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24668 # Now convert it back to Unix-stile (cygpath) 24669 input_path=`$CYGPATH -u "$shortmode_path"` 24670 new_path="$input_path" 24671 fi 24672 fi 24673 24674 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24675 if test "x$test_cygdrive_prefix" = x; then 24676 # As a simple fix, exclude /usr/bin since it's not a real path. 24677 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24678 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24679 # a path prefixed by /cygdrive for fixpath to work. 24680 new_path="$CYGWIN_ROOT_PATH$input_path" 24681 fi 24682 fi 24683 24684 24685 if test "x$path" != "x$new_path"; then 24686 BOOT_JDK="$new_path" 24687 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24688 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24689 fi 24690 24691 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24692 24693 path="$BOOT_JDK" 24694 has_colon=`$ECHO $path | $GREP ^.:` 24695 new_path="$path" 24696 if test "x$has_colon" = x; then 24697 # Not in mixed or Windows style, start by that. 24698 new_path=`cmd //c echo $path` 24699 fi 24700 24701 24702 input_path="$new_path" 24703 # Check if we need to convert this using DOS-style short mode. If the path 24704 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24705 # take no chances and rewrite it. 24706 # Note: m4 eats our [], so we need to use [ and ] instead. 24707 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24708 if test "x$has_forbidden_chars" != x; then 24709 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24710 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24711 fi 24712 24713 24714 windows_path="$new_path" 24715 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24716 unix_path=`$CYGPATH -u "$windows_path"` 24717 new_path="$unix_path" 24718 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24719 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24720 new_path="$unix_path" 24721 fi 24722 24723 if test "x$path" != "x$new_path"; then 24724 BOOT_JDK="$new_path" 24725 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24726 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24727 fi 24728 24729 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24730 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24731 24732 else 24733 # We're on a posix platform. Hooray! :) 24734 path="$BOOT_JDK" 24735 has_space=`$ECHO "$path" | $GREP " "` 24736 if test "x$has_space" != x; then 24737 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24738 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24739 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24740 fi 24741 24742 # Use eval to expand a potential ~ 24743 eval path="$path" 24744 if test ! -f "$path" && test ! -d "$path"; then 24745 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24746 fi 24747 24748 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24749 fi 24750 24751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24752 $as_echo_n "checking for Boot JDK... " >&6; } 24753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24754 $as_echo "$BOOT_JDK" >&6; } 24755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24756 $as_echo_n "checking Boot JDK version... " >&6; } 24757 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24759 $as_echo "$BOOT_JDK_VERSION" >&6; } 24760 fi # end check jdk version 24761 fi # end check rt.jar 24762 fi # end check javac 24763 fi # end check java 24764 fi # end check boot jdk found 24765 fi 24766 24767 done 24768 fi 24769 24770 24771 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24772 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24773 # Do we have a bin/java? 24774 if test ! -x "$BOOT_JDK/bin/java"; then 24775 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24776 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24777 BOOT_JDK_FOUND=no 24778 else 24779 # Do we have a bin/javac? 24780 if test ! -x "$BOOT_JDK/bin/javac"; then 24781 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24782 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24783 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24784 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24785 BOOT_JDK_FOUND=no 24786 else 24787 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24788 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24789 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24790 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24791 BOOT_JDK_FOUND=no 24792 else 24793 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24794 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24795 24796 # Extra M4 quote needed to protect [] in grep expression. 24797 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24798 if test "x$FOUND_CORRECT_VERSION" = x; then 24799 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24800 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24801 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24802 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24803 BOOT_JDK_FOUND=no 24804 else 24805 # We're done! :-) 24806 BOOT_JDK_FOUND=yes 24807 24808 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24809 24810 # Input might be given as Windows format, start by converting to 24811 # unix format. 24812 path="$BOOT_JDK" 24813 new_path=`$CYGPATH -u "$path"` 24814 24815 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24816 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24817 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24818 # "foo.exe" is OK but "foo" is an error. 24819 # 24820 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24821 # It is also a way to make sure we got the proper file name for the real test later on. 24822 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24823 if test "x$test_shortpath" = x; then 24824 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24825 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24826 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24827 fi 24828 24829 # Call helper function which possibly converts this using DOS-style short mode. 24830 # If so, the updated path is stored in $new_path. 24831 24832 input_path="$new_path" 24833 # Check if we need to convert this using DOS-style short mode. If the path 24834 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24835 # take no chances and rewrite it. 24836 # Note: m4 eats our [], so we need to use [ and ] instead. 24837 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24838 if test "x$has_forbidden_chars" != x; then 24839 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24840 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24841 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24842 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24843 # Going to short mode and back again did indeed matter. Since short mode is 24844 # case insensitive, let's make it lowercase to improve readability. 24845 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24846 # Now convert it back to Unix-stile (cygpath) 24847 input_path=`$CYGPATH -u "$shortmode_path"` 24848 new_path="$input_path" 24849 fi 24850 fi 24851 24852 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24853 if test "x$test_cygdrive_prefix" = x; then 24854 # As a simple fix, exclude /usr/bin since it's not a real path. 24855 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24856 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24857 # a path prefixed by /cygdrive for fixpath to work. 24858 new_path="$CYGWIN_ROOT_PATH$input_path" 24859 fi 24860 fi 24861 24862 24863 if test "x$path" != "x$new_path"; then 24864 BOOT_JDK="$new_path" 24865 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24866 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24867 fi 24868 24869 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24870 24871 path="$BOOT_JDK" 24872 has_colon=`$ECHO $path | $GREP ^.:` 24873 new_path="$path" 24874 if test "x$has_colon" = x; then 24875 # Not in mixed or Windows style, start by that. 24876 new_path=`cmd //c echo $path` 24877 fi 24878 24879 24880 input_path="$new_path" 24881 # Check if we need to convert this using DOS-style short mode. If the path 24882 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24883 # take no chances and rewrite it. 24884 # Note: m4 eats our [], so we need to use [ and ] instead. 24885 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24886 if test "x$has_forbidden_chars" != x; then 24887 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24888 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24889 fi 24890 24891 24892 windows_path="$new_path" 24893 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24894 unix_path=`$CYGPATH -u "$windows_path"` 24895 new_path="$unix_path" 24896 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24897 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24898 new_path="$unix_path" 24899 fi 24900 24901 if test "x$path" != "x$new_path"; then 24902 BOOT_JDK="$new_path" 24903 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24904 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24905 fi 24906 24907 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24908 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24909 24910 else 24911 # We're on a posix platform. Hooray! :) 24912 path="$BOOT_JDK" 24913 has_space=`$ECHO "$path" | $GREP " "` 24914 if test "x$has_space" != x; then 24915 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24916 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24917 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24918 fi 24919 24920 # Use eval to expand a potential ~ 24921 eval path="$path" 24922 if test ! -f "$path" && test ! -d "$path"; then 24923 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24924 fi 24925 24926 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24927 fi 24928 24929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24930 $as_echo_n "checking for Boot JDK... " >&6; } 24931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24932 $as_echo "$BOOT_JDK" >&6; } 24933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24934 $as_echo_n "checking Boot JDK version... " >&6; } 24935 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24937 $as_echo "$BOOT_JDK_VERSION" >&6; } 24938 fi # end check jdk version 24939 fi # end check rt.jar 24940 fi # end check javac 24941 fi # end check java 24942 fi # end check boot jdk found 24943 fi 24944 24945 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 24946 24947 if test "x$BOOT_JDK_FOUND" = xno; then 24948 # Now execute the test 24949 24950 BOOT_JDK_PREFIX="/usr/lib/jvm" 24951 BOOT_JDK_SUFFIX="" 24952 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24953 if test "x$ALL_JDKS_FOUND" != x; then 24954 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24955 24956 if test "x$BOOT_JDK_FOUND" = xno; then 24957 # Now execute the test 24958 24959 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24960 if test -d "$BOOT_JDK"; then 24961 BOOT_JDK_FOUND=maybe 24962 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24963 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24964 fi 24965 24966 24967 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24968 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24969 # Do we have a bin/java? 24970 if test ! -x "$BOOT_JDK/bin/java"; then 24971 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24972 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24973 BOOT_JDK_FOUND=no 24974 else 24975 # Do we have a bin/javac? 24976 if test ! -x "$BOOT_JDK/bin/javac"; then 24977 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24978 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24979 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24980 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24981 BOOT_JDK_FOUND=no 24982 else 24983 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24984 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24985 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24986 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24987 BOOT_JDK_FOUND=no 24988 else 24989 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24990 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24991 24992 # Extra M4 quote needed to protect [] in grep expression. 24993 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24994 if test "x$FOUND_CORRECT_VERSION" = x; then 24995 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24996 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24997 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24998 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24999 BOOT_JDK_FOUND=no 25000 else 25001 # We're done! :-) 25002 BOOT_JDK_FOUND=yes 25003 25004 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25005 25006 # Input might be given as Windows format, start by converting to 25007 # unix format. 25008 path="$BOOT_JDK" 25009 new_path=`$CYGPATH -u "$path"` 25010 25011 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25012 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25013 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25014 # "foo.exe" is OK but "foo" is an error. 25015 # 25016 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25017 # It is also a way to make sure we got the proper file name for the real test later on. 25018 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25019 if test "x$test_shortpath" = x; then 25020 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25021 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25022 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25023 fi 25024 25025 # Call helper function which possibly converts this using DOS-style short mode. 25026 # If so, the updated path is stored in $new_path. 25027 25028 input_path="$new_path" 25029 # Check if we need to convert this using DOS-style short mode. If the path 25030 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25031 # take no chances and rewrite it. 25032 # Note: m4 eats our [], so we need to use [ and ] instead. 25033 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25034 if test "x$has_forbidden_chars" != x; then 25035 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25036 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25037 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25038 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25039 # Going to short mode and back again did indeed matter. Since short mode is 25040 # case insensitive, let's make it lowercase to improve readability. 25041 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25042 # Now convert it back to Unix-stile (cygpath) 25043 input_path=`$CYGPATH -u "$shortmode_path"` 25044 new_path="$input_path" 25045 fi 25046 fi 25047 25048 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25049 if test "x$test_cygdrive_prefix" = x; then 25050 # As a simple fix, exclude /usr/bin since it's not a real path. 25051 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25052 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25053 # a path prefixed by /cygdrive for fixpath to work. 25054 new_path="$CYGWIN_ROOT_PATH$input_path" 25055 fi 25056 fi 25057 25058 25059 if test "x$path" != "x$new_path"; then 25060 BOOT_JDK="$new_path" 25061 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25062 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25063 fi 25064 25065 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25066 25067 path="$BOOT_JDK" 25068 has_colon=`$ECHO $path | $GREP ^.:` 25069 new_path="$path" 25070 if test "x$has_colon" = x; then 25071 # Not in mixed or Windows style, start by that. 25072 new_path=`cmd //c echo $path` 25073 fi 25074 25075 25076 input_path="$new_path" 25077 # Check if we need to convert this using DOS-style short mode. If the path 25078 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25079 # take no chances and rewrite it. 25080 # Note: m4 eats our [], so we need to use [ and ] instead. 25081 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25082 if test "x$has_forbidden_chars" != x; then 25083 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25084 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25085 fi 25086 25087 25088 windows_path="$new_path" 25089 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25090 unix_path=`$CYGPATH -u "$windows_path"` 25091 new_path="$unix_path" 25092 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25093 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25094 new_path="$unix_path" 25095 fi 25096 25097 if test "x$path" != "x$new_path"; then 25098 BOOT_JDK="$new_path" 25099 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25100 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25101 fi 25102 25103 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25104 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25105 25106 else 25107 # We're on a posix platform. Hooray! :) 25108 path="$BOOT_JDK" 25109 has_space=`$ECHO "$path" | $GREP " "` 25110 if test "x$has_space" != x; then 25111 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25112 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25113 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25114 fi 25115 25116 # Use eval to expand a potential ~ 25117 eval path="$path" 25118 if test ! -f "$path" && test ! -d "$path"; then 25119 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25120 fi 25121 25122 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25123 fi 25124 25125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25126 $as_echo_n "checking for Boot JDK... " >&6; } 25127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25128 $as_echo "$BOOT_JDK" >&6; } 25129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25130 $as_echo_n "checking Boot JDK version... " >&6; } 25131 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25133 $as_echo "$BOOT_JDK_VERSION" >&6; } 25134 fi # end check jdk version 25135 fi # end check rt.jar 25136 fi # end check javac 25137 fi # end check java 25138 fi # end check boot jdk found 25139 fi 25140 25141 done 25142 fi 25143 25144 25145 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25146 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25147 # Do we have a bin/java? 25148 if test ! -x "$BOOT_JDK/bin/java"; then 25149 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25150 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25151 BOOT_JDK_FOUND=no 25152 else 25153 # Do we have a bin/javac? 25154 if test ! -x "$BOOT_JDK/bin/javac"; then 25155 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25156 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25157 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25158 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25159 BOOT_JDK_FOUND=no 25160 else 25161 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 25162 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 25163 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 25164 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 25165 BOOT_JDK_FOUND=no 25166 else 25167 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25168 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25169 25170 # Extra M4 quote needed to protect [] in grep expression. 25171 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25172 if test "x$FOUND_CORRECT_VERSION" = x; then 25173 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25174 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25175 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25176 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25177 BOOT_JDK_FOUND=no 25178 else 25179 # We're done! :-) 25180 BOOT_JDK_FOUND=yes 25181 25182 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25183 25184 # Input might be given as Windows format, start by converting to 25185 # unix format. 25186 path="$BOOT_JDK" 25187 new_path=`$CYGPATH -u "$path"` 25188 25189 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25190 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25191 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25192 # "foo.exe" is OK but "foo" is an error. 25193 # 25194 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25195 # It is also a way to make sure we got the proper file name for the real test later on. 25196 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25197 if test "x$test_shortpath" = x; then 25198 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25199 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25200 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25201 fi 25202 25203 # Call helper function which possibly converts this using DOS-style short mode. 25204 # If so, the updated path is stored in $new_path. 25205 25206 input_path="$new_path" 25207 # Check if we need to convert this using DOS-style short mode. If the path 25208 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25209 # take no chances and rewrite it. 25210 # Note: m4 eats our [], so we need to use [ and ] instead. 25211 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25212 if test "x$has_forbidden_chars" != x; then 25213 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25214 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25215 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25216 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25217 # Going to short mode and back again did indeed matter. Since short mode is 25218 # case insensitive, let's make it lowercase to improve readability. 25219 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25220 # Now convert it back to Unix-stile (cygpath) 25221 input_path=`$CYGPATH -u "$shortmode_path"` 25222 new_path="$input_path" 25223 fi 25224 fi 25225 25226 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25227 if test "x$test_cygdrive_prefix" = x; then 25228 # As a simple fix, exclude /usr/bin since it's not a real path. 25229 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25230 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25231 # a path prefixed by /cygdrive for fixpath to work. 25232 new_path="$CYGWIN_ROOT_PATH$input_path" 25233 fi 25234 fi 25235 25236 25237 if test "x$path" != "x$new_path"; then 25238 BOOT_JDK="$new_path" 25239 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25240 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25241 fi 25242 25243 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25244 25245 path="$BOOT_JDK" 25246 has_colon=`$ECHO $path | $GREP ^.:` 25247 new_path="$path" 25248 if test "x$has_colon" = x; then 25249 # Not in mixed or Windows style, start by that. 25250 new_path=`cmd //c echo $path` 25251 fi 25252 25253 25254 input_path="$new_path" 25255 # Check if we need to convert this using DOS-style short mode. If the path 25256 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25257 # take no chances and rewrite it. 25258 # Note: m4 eats our [], so we need to use [ and ] instead. 25259 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25260 if test "x$has_forbidden_chars" != x; then 25261 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25262 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25263 fi 25264 25265 25266 windows_path="$new_path" 25267 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25268 unix_path=`$CYGPATH -u "$windows_path"` 25269 new_path="$unix_path" 25270 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25271 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25272 new_path="$unix_path" 25273 fi 25274 25275 if test "x$path" != "x$new_path"; then 25276 BOOT_JDK="$new_path" 25277 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25278 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25279 fi 25280 25281 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25282 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25283 25284 else 25285 # We're on a posix platform. Hooray! :) 25286 path="$BOOT_JDK" 25287 has_space=`$ECHO "$path" | $GREP " "` 25288 if test "x$has_space" != x; then 25289 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25290 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25291 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25292 fi 25293 25294 # Use eval to expand a potential ~ 25295 eval path="$path" 25296 if test ! -f "$path" && test ! -d "$path"; then 25297 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25298 fi 25299 25300 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25301 fi 25302 25303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25304 $as_echo_n "checking for Boot JDK... " >&6; } 25305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25306 $as_echo "$BOOT_JDK" >&6; } 25307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25308 $as_echo_n "checking Boot JDK version... " >&6; } 25309 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25311 $as_echo "$BOOT_JDK_VERSION" >&6; } 25312 fi # end check jdk version 25313 fi # end check rt.jar 25314 fi # end check javac 25315 fi # end check java 25316 fi # end check boot jdk found 25317 fi 25318 25319 fi 25320 25321 25322 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25323 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25324 # Do we have a bin/java? 25325 if test ! -x "$BOOT_JDK/bin/java"; then 25326 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25327 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25328 BOOT_JDK_FOUND=no 25329 else 25330 # Do we have a bin/javac? 25331 if test ! -x "$BOOT_JDK/bin/javac"; then 25332 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25333 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25334 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25335 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25336 BOOT_JDK_FOUND=no 25337 else 25338 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 25339 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 25340 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 25341 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 25342 BOOT_JDK_FOUND=no 25343 else 25344 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25345 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25346 25347 # Extra M4 quote needed to protect [] in grep expression. 25348 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25349 if test "x$FOUND_CORRECT_VERSION" = x; then 25350 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25351 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25352 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25353 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25354 BOOT_JDK_FOUND=no 25355 else 25356 # We're done! :-) 25357 BOOT_JDK_FOUND=yes 25358 25359 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25360 25361 # Input might be given as Windows format, start by converting to 25362 # unix format. 25363 path="$BOOT_JDK" 25364 new_path=`$CYGPATH -u "$path"` 25365 25366 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25367 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25368 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25369 # "foo.exe" is OK but "foo" is an error. 25370 # 25371 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25372 # It is also a way to make sure we got the proper file name for the real test later on. 25373 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25374 if test "x$test_shortpath" = x; then 25375 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25376 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25377 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25378 fi 25379 25380 # Call helper function which possibly converts this using DOS-style short mode. 25381 # If so, the updated path is stored in $new_path. 25382 25383 input_path="$new_path" 25384 # Check if we need to convert this using DOS-style short mode. If the path 25385 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25386 # take no chances and rewrite it. 25387 # Note: m4 eats our [], so we need to use [ and ] instead. 25388 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25389 if test "x$has_forbidden_chars" != x; then 25390 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25391 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25392 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25393 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25394 # Going to short mode and back again did indeed matter. Since short mode is 25395 # case insensitive, let's make it lowercase to improve readability. 25396 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25397 # Now convert it back to Unix-stile (cygpath) 25398 input_path=`$CYGPATH -u "$shortmode_path"` 25399 new_path="$input_path" 25400 fi 25401 fi 25402 25403 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25404 if test "x$test_cygdrive_prefix" = x; then 25405 # As a simple fix, exclude /usr/bin since it's not a real path. 25406 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25407 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25408 # a path prefixed by /cygdrive for fixpath to work. 25409 new_path="$CYGWIN_ROOT_PATH$input_path" 25410 fi 25411 fi 25412 25413 25414 if test "x$path" != "x$new_path"; then 25415 BOOT_JDK="$new_path" 25416 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25417 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25418 fi 25419 25420 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25421 25422 path="$BOOT_JDK" 25423 has_colon=`$ECHO $path | $GREP ^.:` 25424 new_path="$path" 25425 if test "x$has_colon" = x; then 25426 # Not in mixed or Windows style, start by that. 25427 new_path=`cmd //c echo $path` 25428 fi 25429 25430 25431 input_path="$new_path" 25432 # Check if we need to convert this using DOS-style short mode. If the path 25433 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25434 # take no chances and rewrite it. 25435 # Note: m4 eats our [], so we need to use [ and ] instead. 25436 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25437 if test "x$has_forbidden_chars" != x; then 25438 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25439 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25440 fi 25441 25442 25443 windows_path="$new_path" 25444 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25445 unix_path=`$CYGPATH -u "$windows_path"` 25446 new_path="$unix_path" 25447 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25448 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25449 new_path="$unix_path" 25450 fi 25451 25452 if test "x$path" != "x$new_path"; then 25453 BOOT_JDK="$new_path" 25454 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25455 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25456 fi 25457 25458 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25459 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25460 25461 else 25462 # We're on a posix platform. Hooray! :) 25463 path="$BOOT_JDK" 25464 has_space=`$ECHO "$path" | $GREP " "` 25465 if test "x$has_space" != x; then 25466 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25467 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25468 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25469 fi 25470 25471 # Use eval to expand a potential ~ 25472 eval path="$path" 25473 if test ! -f "$path" && test ! -d "$path"; then 25474 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25475 fi 25476 25477 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25478 fi 25479 25480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25481 $as_echo_n "checking for Boot JDK... " >&6; } 25482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25483 $as_echo "$BOOT_JDK" >&6; } 25484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25485 $as_echo_n "checking Boot JDK version... " >&6; } 25486 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25488 $as_echo "$BOOT_JDK_VERSION" >&6; } 25489 fi # end check jdk version 25490 fi # end check rt.jar 25491 fi # end check javac 25492 fi # end check java 25493 fi # end check boot jdk found 25494 fi 25495 25496 25497 # If we haven't found anything yet, we've truly lost. Give up. 25498 if test "x$BOOT_JDK_FOUND" = xno; then 25499 25500 # Print a helpful message on how to acquire the necessary build dependency. 25501 # openjdk is the help tag: freetype, cups, pulse, alsa etc 25502 MISSING_DEPENDENCY=openjdk 25503 25504 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25505 cygwin_help $MISSING_DEPENDENCY 25506 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25507 msys_help $MISSING_DEPENDENCY 25508 else 25509 PKGHANDLER_COMMAND= 25510 25511 case $PKGHANDLER in 25512 apt-get) 25513 apt_help $MISSING_DEPENDENCY ;; 25514 yum) 25515 yum_help $MISSING_DEPENDENCY ;; 25516 port) 25517 port_help $MISSING_DEPENDENCY ;; 25518 pkgutil) 25519 pkgutil_help $MISSING_DEPENDENCY ;; 25520 pkgadd) 25521 pkgadd_help $MISSING_DEPENDENCY ;; 25522 esac 25523 25524 if test "x$PKGHANDLER_COMMAND" != x; then 25525 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 25526 fi 25527 fi 25528 25529 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 25530 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 25531 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 25532 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25533 as_fn_error $? "Cannot continue" "$LINENO" 5 25534 fi 25535 25536 # Setup proper paths for what we found 25537 BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar" 25538 if test ! -f "$BOOT_RTJAR"; then 25539 # On MacOSX it is called classes.jar 25540 BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar" 25541 if test -f "$BOOT_RTJAR"; then 25542 # Remove the .. 25543 BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}" 25544 fi 25545 fi 25546 BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar" 25547 BOOT_JDK="$BOOT_JDK" 25548 25549 25550 25551 25552 # Setup tools from the Boot JDK. 25553 25554 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25555 25556 # Publish this variable in the help. 25557 25558 25559 if test "x$JAVA" = x; then 25560 # The variable is not set by user, try to locate tool using the code snippet 25561 25562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25563 $as_echo_n "checking for java in Boot JDK... " >&6; } 25564 JAVA=$BOOT_JDK/bin/java 25565 if test ! -x $JAVA; then 25566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25567 $as_echo "not found" >&6; } 25568 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25569 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25570 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 25571 fi 25572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25573 $as_echo "ok" >&6; } 25574 25575 25576 else 25577 # The variable is set, but is it from the command line or the environment? 25578 25579 # Try to remove the string !JAVA! from our list. 25580 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 25581 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25582 # If it failed, the variable was not from the command line. Ignore it, 25583 # but warn the user (except for BASH, which is always set by the calling BASH). 25584 if test "xJAVA" != xBASH; then 25585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 25586 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 25587 fi 25588 # Try to locate tool using the code snippet 25589 25590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25591 $as_echo_n "checking for java in Boot JDK... " >&6; } 25592 JAVA=$BOOT_JDK/bin/java 25593 if test ! -x $JAVA; then 25594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25595 $as_echo "not found" >&6; } 25596 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25597 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25598 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 25599 fi 25600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25601 $as_echo "ok" >&6; } 25602 25603 25604 else 25605 # If it succeeded, then it was overridden by the user. We will use it 25606 # for the tool. 25607 25608 # First remove it from the list of overridden variables, so we can test 25609 # for unknown variables in the end. 25610 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25611 25612 # Check if the provided tool contains a complete path. 25613 tool_specified="$JAVA" 25614 tool_basename="${tool_specified##*/}" 25615 if test "x$tool_basename" = "x$tool_specified"; then 25616 # A command without a complete path is provided, search $PATH. 25617 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 25618 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 25619 # Extract the first word of "$tool_basename", so it can be a program name with args. 25620 set dummy $tool_basename; ac_word=$2 25621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25622 $as_echo_n "checking for $ac_word... " >&6; } 25623 if ${ac_cv_path_JAVA+:} false; then : 25624 $as_echo_n "(cached) " >&6 25625 else 25626 case $JAVA in 25627 [\\/]* | ?:[\\/]*) 25628 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 25629 ;; 25630 *) 25631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25632 for as_dir in $PATH 25633 do 25634 IFS=$as_save_IFS 25635 test -z "$as_dir" && as_dir=. 25636 for ac_exec_ext in '' $ac_executable_extensions; do 25637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25638 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 25639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25640 break 2 25641 fi 25642 done 25643 done 25644 IFS=$as_save_IFS 25645 25646 ;; 25647 esac 25648 fi 25649 JAVA=$ac_cv_path_JAVA 25650 if test -n "$JAVA"; then 25651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 25652 $as_echo "$JAVA" >&6; } 25653 else 25654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25655 $as_echo "no" >&6; } 25656 fi 25657 25658 25659 if test "x$JAVA" = x; then 25660 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25661 fi 25662 else 25663 # Otherwise we believe it is a complete path. Use it as it is. 25664 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 25665 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 25666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 25667 $as_echo_n "checking for JAVA... " >&6; } 25668 if test ! -x "$tool_specified"; then 25669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25670 $as_echo "not found" >&6; } 25671 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 25672 fi 25673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25674 $as_echo "$tool_specified" >&6; } 25675 fi 25676 fi 25677 fi 25678 25679 25680 25681 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25682 25683 # Publish this variable in the help. 25684 25685 25686 if test "x$JAVAC" = x; then 25687 # The variable is not set by user, try to locate tool using the code snippet 25688 25689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25690 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25691 JAVAC=$BOOT_JDK/bin/javac 25692 if test ! -x $JAVAC; then 25693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25694 $as_echo "not found" >&6; } 25695 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25696 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25697 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25698 fi 25699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25700 $as_echo "ok" >&6; } 25701 25702 25703 else 25704 # The variable is set, but is it from the command line or the environment? 25705 25706 # Try to remove the string !JAVAC! from our list. 25707 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 25708 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25709 # If it failed, the variable was not from the command line. Ignore it, 25710 # but warn the user (except for BASH, which is always set by the calling BASH). 25711 if test "xJAVAC" != xBASH; then 25712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 25713 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 25714 fi 25715 # Try to locate tool using the code snippet 25716 25717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25718 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25719 JAVAC=$BOOT_JDK/bin/javac 25720 if test ! -x $JAVAC; then 25721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25722 $as_echo "not found" >&6; } 25723 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25724 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25725 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25726 fi 25727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25728 $as_echo "ok" >&6; } 25729 25730 25731 else 25732 # If it succeeded, then it was overridden by the user. We will use it 25733 # for the tool. 25734 25735 # First remove it from the list of overridden variables, so we can test 25736 # for unknown variables in the end. 25737 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25738 25739 # Check if the provided tool contains a complete path. 25740 tool_specified="$JAVAC" 25741 tool_basename="${tool_specified##*/}" 25742 if test "x$tool_basename" = "x$tool_specified"; then 25743 # A command without a complete path is provided, search $PATH. 25744 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 25745 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 25746 # Extract the first word of "$tool_basename", so it can be a program name with args. 25747 set dummy $tool_basename; ac_word=$2 25748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25749 $as_echo_n "checking for $ac_word... " >&6; } 25750 if ${ac_cv_path_JAVAC+:} false; then : 25751 $as_echo_n "(cached) " >&6 25752 else 25753 case $JAVAC in 25754 [\\/]* | ?:[\\/]*) 25755 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 25756 ;; 25757 *) 25758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25759 for as_dir in $PATH 25760 do 25761 IFS=$as_save_IFS 25762 test -z "$as_dir" && as_dir=. 25763 for ac_exec_ext in '' $ac_executable_extensions; do 25764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25765 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 25766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25767 break 2 25768 fi 25769 done 25770 done 25771 IFS=$as_save_IFS 25772 25773 ;; 25774 esac 25775 fi 25776 JAVAC=$ac_cv_path_JAVAC 25777 if test -n "$JAVAC"; then 25778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 25779 $as_echo "$JAVAC" >&6; } 25780 else 25781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25782 $as_echo "no" >&6; } 25783 fi 25784 25785 25786 if test "x$JAVAC" = x; then 25787 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25788 fi 25789 else 25790 # Otherwise we believe it is a complete path. Use it as it is. 25791 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 25792 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 25793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 25794 $as_echo_n "checking for JAVAC... " >&6; } 25795 if test ! -x "$tool_specified"; then 25796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25797 $as_echo "not found" >&6; } 25798 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 25799 fi 25800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25801 $as_echo "$tool_specified" >&6; } 25802 fi 25803 fi 25804 fi 25805 25806 25807 25808 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25809 25810 # Publish this variable in the help. 25811 25812 25813 if test "x$JAVAH" = x; then 25814 # The variable is not set by user, try to locate tool using the code snippet 25815 25816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25817 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25818 JAVAH=$BOOT_JDK/bin/javah 25819 if test ! -x $JAVAH; then 25820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25821 $as_echo "not found" >&6; } 25822 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25823 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25824 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25825 fi 25826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25827 $as_echo "ok" >&6; } 25828 25829 25830 else 25831 # The variable is set, but is it from the command line or the environment? 25832 25833 # Try to remove the string !JAVAH! from our list. 25834 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 25835 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25836 # If it failed, the variable was not from the command line. Ignore it, 25837 # but warn the user (except for BASH, which is always set by the calling BASH). 25838 if test "xJAVAH" != xBASH; then 25839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 25840 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 25841 fi 25842 # Try to locate tool using the code snippet 25843 25844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25845 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25846 JAVAH=$BOOT_JDK/bin/javah 25847 if test ! -x $JAVAH; then 25848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25849 $as_echo "not found" >&6; } 25850 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25851 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25852 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25853 fi 25854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25855 $as_echo "ok" >&6; } 25856 25857 25858 else 25859 # If it succeeded, then it was overridden by the user. We will use it 25860 # for the tool. 25861 25862 # First remove it from the list of overridden variables, so we can test 25863 # for unknown variables in the end. 25864 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25865 25866 # Check if the provided tool contains a complete path. 25867 tool_specified="$JAVAH" 25868 tool_basename="${tool_specified##*/}" 25869 if test "x$tool_basename" = "x$tool_specified"; then 25870 # A command without a complete path is provided, search $PATH. 25871 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 25872 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 25873 # Extract the first word of "$tool_basename", so it can be a program name with args. 25874 set dummy $tool_basename; ac_word=$2 25875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25876 $as_echo_n "checking for $ac_word... " >&6; } 25877 if ${ac_cv_path_JAVAH+:} false; then : 25878 $as_echo_n "(cached) " >&6 25879 else 25880 case $JAVAH in 25881 [\\/]* | ?:[\\/]*) 25882 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 25883 ;; 25884 *) 25885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25886 for as_dir in $PATH 25887 do 25888 IFS=$as_save_IFS 25889 test -z "$as_dir" && as_dir=. 25890 for ac_exec_ext in '' $ac_executable_extensions; do 25891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25892 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 25893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25894 break 2 25895 fi 25896 done 25897 done 25898 IFS=$as_save_IFS 25899 25900 ;; 25901 esac 25902 fi 25903 JAVAH=$ac_cv_path_JAVAH 25904 if test -n "$JAVAH"; then 25905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 25906 $as_echo "$JAVAH" >&6; } 25907 else 25908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25909 $as_echo "no" >&6; } 25910 fi 25911 25912 25913 if test "x$JAVAH" = x; then 25914 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25915 fi 25916 else 25917 # Otherwise we believe it is a complete path. Use it as it is. 25918 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 25919 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 25920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 25921 $as_echo_n "checking for JAVAH... " >&6; } 25922 if test ! -x "$tool_specified"; then 25923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25924 $as_echo "not found" >&6; } 25925 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 25926 fi 25927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25928 $as_echo "$tool_specified" >&6; } 25929 fi 25930 fi 25931 fi 25932 25933 25934 25935 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25936 25937 # Publish this variable in the help. 25938 25939 25940 if test "x$JAR" = x; then 25941 # The variable is not set by user, try to locate tool using the code snippet 25942 25943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25944 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25945 JAR=$BOOT_JDK/bin/jar 25946 if test ! -x $JAR; then 25947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25948 $as_echo "not found" >&6; } 25949 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25950 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25951 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25952 fi 25953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25954 $as_echo "ok" >&6; } 25955 25956 25957 else 25958 # The variable is set, but is it from the command line or the environment? 25959 25960 # Try to remove the string !JAR! from our list. 25961 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 25962 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25963 # If it failed, the variable was not from the command line. Ignore it, 25964 # but warn the user (except for BASH, which is always set by the calling BASH). 25965 if test "xJAR" != xBASH; then 25966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 25967 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 25968 fi 25969 # Try to locate tool using the code snippet 25970 25971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25972 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25973 JAR=$BOOT_JDK/bin/jar 25974 if test ! -x $JAR; then 25975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25976 $as_echo "not found" >&6; } 25977 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25978 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25979 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25980 fi 25981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25982 $as_echo "ok" >&6; } 25983 25984 25985 else 25986 # If it succeeded, then it was overridden by the user. We will use it 25987 # for the tool. 25988 25989 # First remove it from the list of overridden variables, so we can test 25990 # for unknown variables in the end. 25991 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25992 25993 # Check if the provided tool contains a complete path. 25994 tool_specified="$JAR" 25995 tool_basename="${tool_specified##*/}" 25996 if test "x$tool_basename" = "x$tool_specified"; then 25997 # A command without a complete path is provided, search $PATH. 25998 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 25999 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 26000 # Extract the first word of "$tool_basename", so it can be a program name with args. 26001 set dummy $tool_basename; ac_word=$2 26002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26003 $as_echo_n "checking for $ac_word... " >&6; } 26004 if ${ac_cv_path_JAR+:} false; then : 26005 $as_echo_n "(cached) " >&6 26006 else 26007 case $JAR in 26008 [\\/]* | ?:[\\/]*) 26009 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 26010 ;; 26011 *) 26012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26013 for as_dir in $PATH 26014 do 26015 IFS=$as_save_IFS 26016 test -z "$as_dir" && as_dir=. 26017 for ac_exec_ext in '' $ac_executable_extensions; do 26018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26019 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 26020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26021 break 2 26022 fi 26023 done 26024 done 26025 IFS=$as_save_IFS 26026 26027 ;; 26028 esac 26029 fi 26030 JAR=$ac_cv_path_JAR 26031 if test -n "$JAR"; then 26032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 26033 $as_echo "$JAR" >&6; } 26034 else 26035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26036 $as_echo "no" >&6; } 26037 fi 26038 26039 26040 if test "x$JAR" = x; then 26041 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26042 fi 26043 else 26044 # Otherwise we believe it is a complete path. Use it as it is. 26045 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 26046 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 26047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 26048 $as_echo_n "checking for JAR... " >&6; } 26049 if test ! -x "$tool_specified"; then 26050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26051 $as_echo "not found" >&6; } 26052 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 26053 fi 26054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26055 $as_echo "$tool_specified" >&6; } 26056 fi 26057 fi 26058 fi 26059 26060 26061 26062 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 26063 26064 # Publish this variable in the help. 26065 26066 26067 if test "x$NATIVE2ASCII" = x; then 26068 # The variable is not set by user, try to locate tool using the code snippet 26069 26070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 26071 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 26072 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 26073 if test ! -x $NATIVE2ASCII; then 26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26075 $as_echo "not found" >&6; } 26076 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26077 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26078 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 26079 fi 26080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26081 $as_echo "ok" >&6; } 26082 26083 26084 else 26085 # The variable is set, but is it from the command line or the environment? 26086 26087 # Try to remove the string !NATIVE2ASCII! from our list. 26088 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NATIVE2ASCII!/} 26089 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 26090 # If it failed, the variable was not from the command line. Ignore it, 26091 # but warn the user (except for BASH, which is always set by the calling BASH). 26092 if test "xNATIVE2ASCII" != xBASH; then 26093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&5 26094 $as_echo "$as_me: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&2;} 26095 fi 26096 # Try to locate tool using the code snippet 26097 26098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 26099 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 26100 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 26101 if test ! -x $NATIVE2ASCII; then 26102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26103 $as_echo "not found" >&6; } 26104 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26105 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26106 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 26107 fi 26108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26109 $as_echo "ok" >&6; } 26110 26111 26112 else 26113 # If it succeeded, then it was overridden by the user. We will use it 26114 # for the tool. 26115 26116 # First remove it from the list of overridden variables, so we can test 26117 # for unknown variables in the end. 26118 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26119 26120 # Check if the provided tool contains a complete path. 26121 tool_specified="$NATIVE2ASCII" 26122 tool_basename="${tool_specified##*/}" 26123 if test "x$tool_basename" = "x$tool_specified"; then 26124 # A command without a complete path is provided, search $PATH. 26125 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&5 26126 $as_echo "$as_me: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&6;} 26127 # Extract the first word of "$tool_basename", so it can be a program name with args. 26128 set dummy $tool_basename; ac_word=$2 26129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26130 $as_echo_n "checking for $ac_word... " >&6; } 26131 if ${ac_cv_path_NATIVE2ASCII+:} false; then : 26132 $as_echo_n "(cached) " >&6 26133 else 26134 case $NATIVE2ASCII in 26135 [\\/]* | ?:[\\/]*) 26136 ac_cv_path_NATIVE2ASCII="$NATIVE2ASCII" # Let the user override the test with a path. 26137 ;; 26138 *) 26139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26140 for as_dir in $PATH 26141 do 26142 IFS=$as_save_IFS 26143 test -z "$as_dir" && as_dir=. 26144 for ac_exec_ext in '' $ac_executable_extensions; do 26145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26146 ac_cv_path_NATIVE2ASCII="$as_dir/$ac_word$ac_exec_ext" 26147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26148 break 2 26149 fi 26150 done 26151 done 26152 IFS=$as_save_IFS 26153 26154 ;; 26155 esac 26156 fi 26157 NATIVE2ASCII=$ac_cv_path_NATIVE2ASCII 26158 if test -n "$NATIVE2ASCII"; then 26159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE2ASCII" >&5 26160 $as_echo "$NATIVE2ASCII" >&6; } 26161 else 26162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26163 $as_echo "no" >&6; } 26164 fi 26165 26166 26167 if test "x$NATIVE2ASCII" = x; then 26168 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26169 fi 26170 else 26171 # Otherwise we believe it is a complete path. Use it as it is. 26172 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&5 26173 $as_echo "$as_me: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&6;} 26174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NATIVE2ASCII" >&5 26175 $as_echo_n "checking for NATIVE2ASCII... " >&6; } 26176 if test ! -x "$tool_specified"; then 26177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26178 $as_echo "not found" >&6; } 26179 as_fn_error $? "User supplied tool NATIVE2ASCII=$tool_specified does not exist or is not executable" "$LINENO" 5 26180 fi 26181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26182 $as_echo "$tool_specified" >&6; } 26183 fi 26184 fi 26185 fi 26186 26187 26188 26189 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 26190 26191 # Publish this variable in the help. 26192 26193 26194 if test "x$JARSIGNER" = x; then 26195 # The variable is not set by user, try to locate tool using the code snippet 26196 26197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 26198 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 26199 JARSIGNER=$BOOT_JDK/bin/jarsigner 26200 if test ! -x $JARSIGNER; then 26201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26202 $as_echo "not found" >&6; } 26203 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26204 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26205 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 26206 fi 26207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26208 $as_echo "ok" >&6; } 26209 26210 26211 else 26212 # The variable is set, but is it from the command line or the environment? 26213 26214 # Try to remove the string !JARSIGNER! from our list. 26215 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 26216 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 26217 # If it failed, the variable was not from the command line. Ignore it, 26218 # but warn the user (except for BASH, which is always set by the calling BASH). 26219 if test "xJARSIGNER" != xBASH; then 26220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 26221 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 26222 fi 26223 # Try to locate tool using the code snippet 26224 26225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 26226 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 26227 JARSIGNER=$BOOT_JDK/bin/jarsigner 26228 if test ! -x $JARSIGNER; then 26229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26230 $as_echo "not found" >&6; } 26231 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26232 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26233 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 26234 fi 26235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26236 $as_echo "ok" >&6; } 26237 26238 26239 else 26240 # If it succeeded, then it was overridden by the user. We will use it 26241 # for the tool. 26242 26243 # First remove it from the list of overridden variables, so we can test 26244 # for unknown variables in the end. 26245 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26246 26247 # Check if the provided tool contains a complete path. 26248 tool_specified="$JARSIGNER" 26249 tool_basename="${tool_specified##*/}" 26250 if test "x$tool_basename" = "x$tool_specified"; then 26251 # A command without a complete path is provided, search $PATH. 26252 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 26253 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 26254 # Extract the first word of "$tool_basename", so it can be a program name with args. 26255 set dummy $tool_basename; ac_word=$2 26256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26257 $as_echo_n "checking for $ac_word... " >&6; } 26258 if ${ac_cv_path_JARSIGNER+:} false; then : 26259 $as_echo_n "(cached) " >&6 26260 else 26261 case $JARSIGNER in 26262 [\\/]* | ?:[\\/]*) 26263 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 26264 ;; 26265 *) 26266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26267 for as_dir in $PATH 26268 do 26269 IFS=$as_save_IFS 26270 test -z "$as_dir" && as_dir=. 26271 for ac_exec_ext in '' $ac_executable_extensions; do 26272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26273 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 26274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26275 break 2 26276 fi 26277 done 26278 done 26279 IFS=$as_save_IFS 26280 26281 ;; 26282 esac 26283 fi 26284 JARSIGNER=$ac_cv_path_JARSIGNER 26285 if test -n "$JARSIGNER"; then 26286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 26287 $as_echo "$JARSIGNER" >&6; } 26288 else 26289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26290 $as_echo "no" >&6; } 26291 fi 26292 26293 26294 if test "x$JARSIGNER" = x; then 26295 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26296 fi 26297 else 26298 # Otherwise we believe it is a complete path. Use it as it is. 26299 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 26300 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 26301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 26302 $as_echo_n "checking for JARSIGNER... " >&6; } 26303 if test ! -x "$tool_specified"; then 26304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26305 $as_echo "not found" >&6; } 26306 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 26307 fi 26308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26309 $as_echo "$tool_specified" >&6; } 26310 fi 26311 fi 26312 fi 26313 26314 26315 26316 # Finally, set some other options... 26317 26318 # When compiling code to be executed by the Boot JDK, force jdk8 compatibility. 26319 BOOT_JDK_SOURCETARGET="-source 8 -target 8" 26320 26321 26322 26323 26324 ############################################################################### 26325 # 26326 # Configure the sources to use. We can add or override individual directories. 26327 # 26328 ############################################################################### 26329 26330 26331 # Where are the sources. Any of these can be overridden 26332 # using --with-override-corba and the likes. 26333 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 26334 CORBA_TOPDIR="$SRC_ROOT/corba" 26335 JAXP_TOPDIR="$SRC_ROOT/jaxp" 26336 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 26337 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 26338 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 26339 JDK_TOPDIR="$SRC_ROOT/jdk" 26340 26341 26342 26343 26344 26345 26346 26347 26348 26349 26350 ############################################################################### 26351 # 26352 # Pickup additional source for a component from outside of the source root 26353 # or override source for a component. 26354 # 26355 26356 # Check whether --with-add-source-root was given. 26357 if test "${with_add_source_root+set}" = set; then : 26358 withval=$with_add_source_root; 26359 fi 26360 26361 26362 26363 # Check whether --with-override-source-root was given. 26364 if test "${with_override_source_root+set}" = set; then : 26365 withval=$with_override_source_root; 26366 fi 26367 26368 26369 26370 # Check whether --with-adds-and-overrides was given. 26371 if test "${with_adds_and_overrides+set}" = set; then : 26372 withval=$with_adds_and_overrides; 26373 fi 26374 26375 26376 if test "x$with_adds_and_overrides" != x; then 26377 with_add_source_root="$with_adds_and_overrides/adds" 26378 with_override_source_root="$with_adds_and_overrides/overrides" 26379 fi 26380 26381 if test "x$with_add_source_root" != x; then 26382 if ! test -d $with_add_source_root; then 26383 as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5 26384 fi 26385 CURDIR="$PWD" 26386 cd "$with_add_source_root" 26387 ADD_SRC_ROOT="`pwd`" 26388 cd "$CURDIR" 26389 # Verify that the addon source root does not have any root makefiles. 26390 # If it does, then it is usually an error, prevent this. 26391 if test -f $with_add_source_root/langtools/make/Makefile; then 26392 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 26393 fi 26394 if test -f $with_add_source_root/corba/make/Makefile; then 26395 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 26396 fi 26397 if test -f $with_add_source_root/jaxp/make/Makefile; then 26398 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 26399 fi 26400 if test -f $with_add_source_root/jaxws/make/Makefile; then 26401 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 26402 fi 26403 if test -f $with_add_source_root/hotspot/make/Makefile; then 26404 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 26405 fi 26406 if test -f $with_add_source_root/nashorn/make/Makefile; then 26407 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 26408 fi 26409 if test -f $with_add_source_root/jdk/make/Makefile; then 26410 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 26411 fi 26412 fi 26413 26414 26415 if test "x$with_override_source_root" != x; then 26416 if ! test -d $with_override_source_root; then 26417 as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5 26418 fi 26419 CURDIR="$PWD" 26420 cd "$with_override_source_root" 26421 OVERRIDE_SRC_ROOT="`pwd`" 26422 cd "$CURDIR" 26423 if test -f $with_override_source_root/langtools/make/Makefile; then 26424 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 26425 fi 26426 if test -f $with_override_source_root/corba/make/Makefile; then 26427 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 26428 fi 26429 if test -f $with_override_source_root/jaxp/make/Makefile; then 26430 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 26431 fi 26432 if test -f $with_override_source_root/jaxws/make/Makefile; then 26433 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 26434 fi 26435 if test -f $with_override_source_root/hotspot/make/Makefile; then 26436 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 26437 fi 26438 if test -f $with_override_source_root/nashorn/make/Makefile; then 26439 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 26440 fi 26441 if test -f $with_override_source_root/jdk/make/Makefile; then 26442 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 26443 fi 26444 fi 26445 26446 26447 ############################################################################### 26448 # 26449 # Override a repo completely, this is used for example when you have 3 small 26450 # development sandboxes of the langtools sources and want to avoid having 3 full 26451 # OpenJDK sources checked out on disk. 26452 # 26453 # Assuming that the 3 langtools sandboxes are located here: 26454 # /home/fredrik/sandbox1/langtools 26455 # /home/fredrik/sandbox2/langtools 26456 # /home/fredrik/sandbox3/langtools 26457 # 26458 # From the source root you create build subdirs manually: 26459 # mkdir -p build1 build2 build3 26460 # in each build directory run: 26461 # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make) 26462 # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make) 26463 # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make) 26464 # 26465 26466 26467 # Check whether --with-override-langtools was given. 26468 if test "${with_override_langtools+set}" = set; then : 26469 withval=$with_override_langtools; 26470 fi 26471 26472 26473 26474 # Check whether --with-override-corba was given. 26475 if test "${with_override_corba+set}" = set; then : 26476 withval=$with_override_corba; 26477 fi 26478 26479 26480 26481 # Check whether --with-override-jaxp was given. 26482 if test "${with_override_jaxp+set}" = set; then : 26483 withval=$with_override_jaxp; 26484 fi 26485 26486 26487 26488 # Check whether --with-override-jaxws was given. 26489 if test "${with_override_jaxws+set}" = set; then : 26490 withval=$with_override_jaxws; 26491 fi 26492 26493 26494 26495 # Check whether --with-override-hotspot was given. 26496 if test "${with_override_hotspot+set}" = set; then : 26497 withval=$with_override_hotspot; 26498 fi 26499 26500 26501 26502 # Check whether --with-override-nashorn was given. 26503 if test "${with_override_nashorn+set}" = set; then : 26504 withval=$with_override_nashorn; 26505 fi 26506 26507 26508 26509 # Check whether --with-override-jdk was given. 26510 if test "${with_override_jdk+set}" = set; then : 26511 withval=$with_override_jdk; 26512 fi 26513 26514 26515 if test "x$with_override_langtools" != x; then 26516 CURDIR="$PWD" 26517 cd "$with_override_langtools" 26518 LANGTOOLS_TOPDIR="`pwd`" 26519 cd "$CURDIR" 26520 if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then 26521 as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5 26522 fi 26523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5 26524 $as_echo_n "checking if langtools should be overridden... " >&6; } 26525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5 26526 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; } 26527 fi 26528 if test "x$with_override_corba" != x; then 26529 CURDIR="$PWD" 26530 cd "$with_override_corba" 26531 CORBA_TOPDIR="`pwd`" 26532 cd "$CURDIR" 26533 if ! test -f $CORBA_TOPDIR/make/Makefile; then 26534 as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5 26535 fi 26536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5 26537 $as_echo_n "checking if corba should be overridden... " >&6; } 26538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5 26539 $as_echo "yes with $CORBA_TOPDIR" >&6; } 26540 fi 26541 if test "x$with_override_jaxp" != x; then 26542 CURDIR="$PWD" 26543 cd "$with_override_jaxp" 26544 JAXP_TOPDIR="`pwd`" 26545 cd "$CURDIR" 26546 if ! test -f $JAXP_TOPDIR/make/Makefile; then 26547 as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5 26548 fi 26549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5 26550 $as_echo_n "checking if jaxp should be overridden... " >&6; } 26551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5 26552 $as_echo "yes with $JAXP_TOPDIR" >&6; } 26553 fi 26554 if test "x$with_override_jaxws" != x; then 26555 CURDIR="$PWD" 26556 cd "$with_override_jaxws" 26557 JAXWS_TOPDIR="`pwd`" 26558 cd "$CURDIR" 26559 if ! test -f $JAXWS_TOPDIR/make/Makefile; then 26560 as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5 26561 fi 26562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5 26563 $as_echo_n "checking if jaxws should be overridden... " >&6; } 26564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5 26565 $as_echo "yes with $JAXWS_TOPDIR" >&6; } 26566 fi 26567 if test "x$with_override_hotspot" != x; then 26568 CURDIR="$PWD" 26569 cd "$with_override_hotspot" 26570 HOTSPOT_TOPDIR="`pwd`" 26571 cd "$CURDIR" 26572 if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then 26573 as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5 26574 fi 26575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5 26576 $as_echo_n "checking if hotspot should be overridden... " >&6; } 26577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5 26578 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; } 26579 fi 26580 if test "x$with_override_nashorn" != x; then 26581 CURDIR="$PWD" 26582 cd "$with_override_nashorn" 26583 NASHORN_TOPDIR="`pwd`" 26584 cd "$CURDIR" 26585 if ! test -f $NASHORN_TOPDIR/make/Makefile; then 26586 as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5 26587 fi 26588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5 26589 $as_echo_n "checking if nashorn should be overridden... " >&6; } 26590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5 26591 $as_echo "yes with $NASHORN_TOPDIR" >&6; } 26592 fi 26593 if test "x$with_override_jdk" != x; then 26594 CURDIR="$PWD" 26595 cd "$with_override_jdk" 26596 JDK_TOPDIR="`pwd`" 26597 cd "$CURDIR" 26598 if ! test -f $JDK_TOPDIR/make/Makefile; then 26599 as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5 26600 fi 26601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5 26602 $as_echo_n "checking if JDK should be overridden... " >&6; } 26603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5 26604 $as_echo "yes with $JDK_TOPDIR" >&6; } 26605 fi 26606 26607 26608 BUILD_OUTPUT="$OUTPUT_ROOT" 26609 26610 26611 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 26612 BUILD_HOTSPOT=true 26613 26614 26615 26616 # Check whether --with-import-hotspot was given. 26617 if test "${with_import_hotspot+set}" = set; then : 26618 withval=$with_import_hotspot; 26619 fi 26620 26621 if test "x$with_import_hotspot" != x; then 26622 CURDIR="$PWD" 26623 cd "$with_import_hotspot" 26624 HOTSPOT_DIST="`pwd`" 26625 cd "$CURDIR" 26626 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 26627 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 26628 fi 26629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 26630 $as_echo_n "checking if hotspot should be imported... " >&6; } 26631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 26632 $as_echo "yes from $HOTSPOT_DIST" >&6; } 26633 BUILD_HOTSPOT=false 26634 fi 26635 26636 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 26637 26638 26639 ############################################################################### 26640 # 26641 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 26642 # native code. 26643 # 26644 ############################################################################### 26645 26646 # First determine the toolchain type (compiler family) 26647 26648 26649 # Check whether --with-toolchain-type was given. 26650 if test "${with_toolchain_type+set}" = set; then : 26651 withval=$with_toolchain_type; 26652 fi 26653 26654 26655 # Use indirect variable referencing 26656 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 26657 VALID_TOOLCHAINS=${!toolchain_var_name} 26658 26659 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26660 if test -n "$XCODEBUILD"; then 26661 # On Mac OS X, default toolchain to clang after Xcode 5 26662 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 26663 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 26664 if test $? -ne 0; then 26665 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 26666 fi 26667 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 26668 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 26669 $CUT -f 1 -d .` 26670 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 26671 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 26672 if test $XCODE_MAJOR_VERSION -ge 5; then 26673 DEFAULT_TOOLCHAIN="clang" 26674 else 26675 DEFAULT_TOOLCHAIN="gcc" 26676 fi 26677 else 26678 # If Xcode is not installed, but the command line tools are 26679 # then we can't run xcodebuild. On these systems we should 26680 # default to clang 26681 DEFAULT_TOOLCHAIN="clang" 26682 fi 26683 else 26684 # First toolchain type in the list is the default 26685 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 26686 fi 26687 26688 if test "x$with_toolchain_type" = xlist; then 26689 # List all toolchains 26690 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 26691 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 26692 for toolchain in $VALID_TOOLCHAINS; do 26693 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 26694 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 26695 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 26696 done 26697 26698 exit 0 26699 elif test "x$with_toolchain_type" != x; then 26700 # User override; check that it is valid 26701 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 26702 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 26703 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 26704 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 26705 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 26706 as_fn_error $? "Cannot continue." "$LINENO" 5 26707 fi 26708 TOOLCHAIN_TYPE=$with_toolchain_type 26709 else 26710 # No flag given, use default 26711 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 26712 fi 26713 26714 26715 TOOLCHAIN_CC_BINARY_clang="clang" 26716 TOOLCHAIN_CC_BINARY_gcc="gcc" 26717 TOOLCHAIN_CC_BINARY_microsoft="cl" 26718 TOOLCHAIN_CC_BINARY_solstudio="cc" 26719 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 26720 26721 TOOLCHAIN_CXX_BINARY_clang="clang++" 26722 TOOLCHAIN_CXX_BINARY_gcc="g++" 26723 TOOLCHAIN_CXX_BINARY_microsoft="cl" 26724 TOOLCHAIN_CXX_BINARY_solstudio="CC" 26725 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 26726 26727 # Use indirect variable referencing 26728 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 26729 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 26730 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 26731 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 26732 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 26733 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 26734 26735 26736 # Define filename patterns 26737 if test "x$OPENJDK_TARGET_OS" = xwindows; then 26738 LIBRARY_PREFIX= 26739 SHARED_LIBRARY_SUFFIX='.dll' 26740 STATIC_LIBRARY_SUFFIX='.lib' 26741 SHARED_LIBRARY='$1.dll' 26742 STATIC_LIBRARY='$1.lib' 26743 OBJ_SUFFIX='.obj' 26744 EXE_SUFFIX='.exe' 26745 else 26746 LIBRARY_PREFIX=lib 26747 SHARED_LIBRARY_SUFFIX='.so' 26748 STATIC_LIBRARY_SUFFIX='.a' 26749 SHARED_LIBRARY='lib$1.so' 26750 STATIC_LIBRARY='lib$1.a' 26751 OBJ_SUFFIX='.o' 26752 EXE_SUFFIX='' 26753 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26754 SHARED_LIBRARY='lib$1.dylib' 26755 SHARED_LIBRARY_SUFFIX='.dylib' 26756 fi 26757 fi 26758 26759 26760 26761 26762 26763 26764 26765 26766 26767 26768 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 26769 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 26770 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 26771 else 26772 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 26773 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 26774 fi 26775 26776 26777 # Then detect the actual binaries needed 26778 26779 # FIXME: Is this needed? 26780 ac_ext=cpp 26781 ac_cpp='$CXXCPP $CPPFLAGS' 26782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26785 26786 26787 # Store the CFLAGS etc passed to the configure script. 26788 ORG_CFLAGS="$CFLAGS" 26789 ORG_CXXFLAGS="$CXXFLAGS" 26790 ORG_OBJCFLAGS="$OBJCFLAGS" 26791 26792 # On Windows, we need to detect the visual studio installation first. 26793 # This will change the PATH, but we need to keep that new PATH even 26794 # after toolchain detection is done, since the compiler (on x86) uses 26795 # it for DLL resolution in runtime. 26796 if test "x$OPENJDK_BUILD_OS" = "xwindows" && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 26797 26798 # Store path to cygwin link.exe to help excluding it when searching for 26799 # VS linker. This must be done before changing the PATH when looking for VS. 26800 # Extract the first word of "link", so it can be a program name with args. 26801 set dummy link; ac_word=$2 26802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26803 $as_echo_n "checking for $ac_word... " >&6; } 26804 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 26805 $as_echo_n "(cached) " >&6 26806 else 26807 case $CYGWIN_LINK in 26808 [\\/]* | ?:[\\/]*) 26809 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 26810 ;; 26811 *) 26812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26813 for as_dir in $PATH 26814 do 26815 IFS=$as_save_IFS 26816 test -z "$as_dir" && as_dir=. 26817 for ac_exec_ext in '' $ac_executable_extensions; do 26818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26819 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 26820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26821 break 2 26822 fi 26823 done 26824 done 26825 IFS=$as_save_IFS 26826 26827 ;; 26828 esac 26829 fi 26830 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 26831 if test -n "$CYGWIN_LINK"; then 26832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 26833 $as_echo "$CYGWIN_LINK" >&6; } 26834 else 26835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26836 $as_echo "no" >&6; } 26837 fi 26838 26839 26840 if test "x$CYGWIN_LINK" != x; then 26841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 26842 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 26843 "$CYGWIN_LINK" --version > /dev/null 26844 if test $? -eq 0 ; then 26845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26846 $as_echo "yes" >&6; } 26847 else 26848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26849 $as_echo "no" >&6; } 26850 # This might be the VS linker. Don't exclude it later on. 26851 CYGWIN_LINK="" 26852 fi 26853 fi 26854 26855 # First-hand choice is to locate and run the vsvars bat file. 26856 26857 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26858 VCVARSFILE="vc/bin/vcvars32.bat" 26859 else 26860 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26861 fi 26862 26863 VS_ENV_CMD="" 26864 VS_ENV_ARGS="" 26865 if test "x$with_toolsdir" != x; then 26866 26867 if test "x$VS_ENV_CMD" = x; then 26868 VS100BASE="$with_toolsdir/../.." 26869 METHOD="--with-tools-dir" 26870 26871 windows_path="$VS100BASE" 26872 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26873 unix_path=`$CYGPATH -u "$windows_path"` 26874 VS100BASE="$unix_path" 26875 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26876 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26877 VS100BASE="$unix_path" 26878 fi 26879 26880 if test -d "$VS100BASE"; then 26881 if test -f "$VS100BASE/$VCVARSFILE"; then 26882 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26883 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26884 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26885 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26886 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26887 # TODO: improve detection for other versions of VS 26888 PLATFORM_TOOLSET="v100" 26889 else 26890 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26891 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26892 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26893 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26894 fi 26895 fi 26896 fi 26897 26898 fi 26899 26900 if test "x$with_toolsdir" != x && test "x$VS_ENV_CMD" = x; then 26901 # Having specified an argument which is incorrect will produce an instant failure; 26902 # we should not go on looking 26903 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&5 26904 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&6;} 26905 { $as_echo "$as_me:${as_lineno-$LINENO}: Please point to the VC/bin directory within the Visual Studio installation" >&5 26906 $as_echo "$as_me: Please point to the VC/bin directory within the Visual Studio installation" >&6;} 26907 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 26908 fi 26909 26910 if test "x$VS100COMNTOOLS" != x; then 26911 26912 if test "x$VS_ENV_CMD" = x; then 26913 VS100BASE="$VS100COMNTOOLS/../.." 26914 METHOD="VS100COMNTOOLS variable" 26915 26916 windows_path="$VS100BASE" 26917 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26918 unix_path=`$CYGPATH -u "$windows_path"` 26919 VS100BASE="$unix_path" 26920 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26921 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26922 VS100BASE="$unix_path" 26923 fi 26924 26925 if test -d "$VS100BASE"; then 26926 if test -f "$VS100BASE/$VCVARSFILE"; then 26927 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26928 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26929 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26930 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26931 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26932 # TODO: improve detection for other versions of VS 26933 PLATFORM_TOOLSET="v100" 26934 else 26935 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26936 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26937 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26938 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26939 fi 26940 fi 26941 fi 26942 26943 fi 26944 if test "x$PROGRAMFILES" != x; then 26945 26946 if test "x$VS_ENV_CMD" = x; then 26947 VS100BASE="$PROGRAMFILES/Microsoft Visual Studio 10.0" 26948 METHOD="well-known name" 26949 26950 windows_path="$VS100BASE" 26951 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26952 unix_path=`$CYGPATH -u "$windows_path"` 26953 VS100BASE="$unix_path" 26954 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26955 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26956 VS100BASE="$unix_path" 26957 fi 26958 26959 if test -d "$VS100BASE"; then 26960 if test -f "$VS100BASE/$VCVARSFILE"; then 26961 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26962 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26963 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26964 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26965 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26966 # TODO: improve detection for other versions of VS 26967 PLATFORM_TOOLSET="v100" 26968 else 26969 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26970 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26971 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26972 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26973 fi 26974 fi 26975 fi 26976 26977 fi 26978 26979 if test "x$VS_ENV_CMD" = x; then 26980 VS100BASE="C:/Program Files/Microsoft Visual Studio 10.0" 26981 METHOD="well-known name" 26982 26983 windows_path="$VS100BASE" 26984 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26985 unix_path=`$CYGPATH -u "$windows_path"` 26986 VS100BASE="$unix_path" 26987 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26988 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26989 VS100BASE="$unix_path" 26990 fi 26991 26992 if test -d "$VS100BASE"; then 26993 if test -f "$VS100BASE/$VCVARSFILE"; then 26994 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26995 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26996 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26997 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26998 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26999 # TODO: improve detection for other versions of VS 27000 PLATFORM_TOOLSET="v100" 27001 else 27002 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 27003 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 27004 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27005 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27006 fi 27007 fi 27008 fi 27009 27010 27011 if test "x$VS_ENV_CMD" = x; then 27012 VS100BASE="C:/Program Files (x86)/Microsoft Visual Studio 10.0" 27013 METHOD="well-known name" 27014 27015 windows_path="$VS100BASE" 27016 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27017 unix_path=`$CYGPATH -u "$windows_path"` 27018 VS100BASE="$unix_path" 27019 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27020 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27021 VS100BASE="$unix_path" 27022 fi 27023 27024 if test -d "$VS100BASE"; then 27025 if test -f "$VS100BASE/$VCVARSFILE"; then 27026 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 27027 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 27028 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 27029 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27030 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27031 # TODO: improve detection for other versions of VS 27032 PLATFORM_TOOLSET="v100" 27033 else 27034 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 27035 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 27036 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27037 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27038 fi 27039 fi 27040 fi 27041 27042 27043 if test "x$ProgramW6432" != x; then 27044 27045 if test "x$VS_ENV_CMD" = x; then 27046 WIN_SDK_BASE="$ProgramW6432/Microsoft SDKs/Windows/v7.1/Bin" 27047 METHOD="well-known name" 27048 27049 windows_path="$WIN_SDK_BASE" 27050 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27051 unix_path=`$CYGPATH -u "$windows_path"` 27052 WIN_SDK_BASE="$unix_path" 27053 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27054 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27055 WIN_SDK_BASE="$unix_path" 27056 fi 27057 27058 if test -d "$WIN_SDK_BASE"; then 27059 # There have been cases of partial or broken SDK installations. A missing 27060 # lib dir is not going to work. 27061 if test ! -d "$WIN_SDK_BASE/../lib"; then 27062 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27063 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27064 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27065 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27066 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 27067 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27068 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27069 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 27070 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27071 VS_ENV_ARGS="/x86" 27072 else 27073 VS_ENV_ARGS="/x64" 27074 fi 27075 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27076 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27077 # TODO: improve detection for other versions of SDK 27078 PLATFORM_TOOLSET="Windows7.1SDK" 27079 else 27080 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27081 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27082 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27083 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27084 fi 27085 fi 27086 fi 27087 27088 fi 27089 if test "x$PROGRAMW6432" != x; then 27090 27091 if test "x$VS_ENV_CMD" = x; then 27092 WIN_SDK_BASE="$PROGRAMW6432/Microsoft SDKs/Windows/v7.1/Bin" 27093 METHOD="well-known name" 27094 27095 windows_path="$WIN_SDK_BASE" 27096 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27097 unix_path=`$CYGPATH -u "$windows_path"` 27098 WIN_SDK_BASE="$unix_path" 27099 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27100 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27101 WIN_SDK_BASE="$unix_path" 27102 fi 27103 27104 if test -d "$WIN_SDK_BASE"; then 27105 # There have been cases of partial or broken SDK installations. A missing 27106 # lib dir is not going to work. 27107 if test ! -d "$WIN_SDK_BASE/../lib"; then 27108 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27109 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27110 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27111 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27112 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 27113 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27114 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27115 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 27116 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27117 VS_ENV_ARGS="/x86" 27118 else 27119 VS_ENV_ARGS="/x64" 27120 fi 27121 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27122 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27123 # TODO: improve detection for other versions of SDK 27124 PLATFORM_TOOLSET="Windows7.1SDK" 27125 else 27126 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27127 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27128 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27129 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27130 fi 27131 fi 27132 fi 27133 27134 fi 27135 if test "x$PROGRAMFILES" != x; then 27136 27137 if test "x$VS_ENV_CMD" = x; then 27138 WIN_SDK_BASE="$PROGRAMFILES/Microsoft SDKs/Windows/v7.1/Bin" 27139 METHOD="well-known name" 27140 27141 windows_path="$WIN_SDK_BASE" 27142 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27143 unix_path=`$CYGPATH -u "$windows_path"` 27144 WIN_SDK_BASE="$unix_path" 27145 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27146 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27147 WIN_SDK_BASE="$unix_path" 27148 fi 27149 27150 if test -d "$WIN_SDK_BASE"; then 27151 # There have been cases of partial or broken SDK installations. A missing 27152 # lib dir is not going to work. 27153 if test ! -d "$WIN_SDK_BASE/../lib"; then 27154 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27155 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27156 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27157 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27158 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 27159 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27160 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27161 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 27162 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27163 VS_ENV_ARGS="/x86" 27164 else 27165 VS_ENV_ARGS="/x64" 27166 fi 27167 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27168 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27169 # TODO: improve detection for other versions of SDK 27170 PLATFORM_TOOLSET="Windows7.1SDK" 27171 else 27172 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27173 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27174 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27175 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27176 fi 27177 fi 27178 fi 27179 27180 fi 27181 27182 if test "x$VS_ENV_CMD" = x; then 27183 WIN_SDK_BASE="C:/Program Files/Microsoft SDKs/Windows/v7.1/Bin" 27184 METHOD="well-known name" 27185 27186 windows_path="$WIN_SDK_BASE" 27187 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27188 unix_path=`$CYGPATH -u "$windows_path"` 27189 WIN_SDK_BASE="$unix_path" 27190 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27191 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27192 WIN_SDK_BASE="$unix_path" 27193 fi 27194 27195 if test -d "$WIN_SDK_BASE"; then 27196 # There have been cases of partial or broken SDK installations. A missing 27197 # lib dir is not going to work. 27198 if test ! -d "$WIN_SDK_BASE/../lib"; then 27199 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27200 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27201 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27202 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27203 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 27204 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27205 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27206 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 27207 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27208 VS_ENV_ARGS="/x86" 27209 else 27210 VS_ENV_ARGS="/x64" 27211 fi 27212 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27213 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27214 # TODO: improve detection for other versions of SDK 27215 PLATFORM_TOOLSET="Windows7.1SDK" 27216 else 27217 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27218 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27219 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27220 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27221 fi 27222 fi 27223 fi 27224 27225 27226 if test "x$VS_ENV_CMD" = x; then 27227 WIN_SDK_BASE="C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1/Bin" 27228 METHOD="well-known name" 27229 27230 windows_path="$WIN_SDK_BASE" 27231 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27232 unix_path=`$CYGPATH -u "$windows_path"` 27233 WIN_SDK_BASE="$unix_path" 27234 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27235 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27236 WIN_SDK_BASE="$unix_path" 27237 fi 27238 27239 if test -d "$WIN_SDK_BASE"; then 27240 # There have been cases of partial or broken SDK installations. A missing 27241 # lib dir is not going to work. 27242 if test ! -d "$WIN_SDK_BASE/../lib"; then 27243 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27244 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27245 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27246 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27247 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 27248 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27249 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27250 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 27251 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27252 VS_ENV_ARGS="/x86" 27253 else 27254 VS_ENV_ARGS="/x64" 27255 fi 27256 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27257 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27258 # TODO: improve detection for other versions of SDK 27259 PLATFORM_TOOLSET="Windows7.1SDK" 27260 else 27261 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27262 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27263 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27264 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27265 fi 27266 fi 27267 fi 27268 27269 27270 if test "x$VS_ENV_CMD" != x; then 27271 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 27272 27273 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27274 27275 # First separate the path from the arguments. This will split at the first 27276 # space. 27277 complete="$VS_ENV_CMD" 27278 path="${complete%% *}" 27279 tmp="$complete EOL" 27280 arguments="${tmp#* }" 27281 27282 # Input might be given as Windows format, start by converting to 27283 # unix format. 27284 new_path=`$CYGPATH -u "$path"` 27285 27286 # Now try to locate executable using which 27287 new_path=`$WHICH "$new_path" 2> /dev/null` 27288 # bat and cmd files are not always considered executable in cygwin causing which 27289 # to not find them 27290 if test "x$new_path" = x \ 27291 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27292 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27293 new_path=`$CYGPATH -u "$path"` 27294 fi 27295 if test "x$new_path" = x; then 27296 # Oops. Which didn't find the executable. 27297 # The splitting of arguments from the executable at a space might have been incorrect, 27298 # since paths with space are more likely in Windows. Give it another try with the whole 27299 # argument. 27300 path="$complete" 27301 arguments="EOL" 27302 new_path=`$CYGPATH -u "$path"` 27303 new_path=`$WHICH "$new_path" 2> /dev/null` 27304 # bat and cmd files are not always considered executable in cygwin causing which 27305 # to not find them 27306 if test "x$new_path" = x \ 27307 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27308 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27309 new_path=`$CYGPATH -u "$path"` 27310 fi 27311 if test "x$new_path" = x; then 27312 # It's still not found. Now this is an unrecoverable error. 27313 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27314 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27315 has_space=`$ECHO "$complete" | $GREP " "` 27316 if test "x$has_space" != x; then 27317 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27318 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27319 fi 27320 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27321 fi 27322 fi 27323 27324 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27325 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27326 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27327 # "foo.exe" is OK but "foo" is an error. 27328 # 27329 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27330 # It is also a way to make sure we got the proper file name for the real test later on. 27331 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27332 if test "x$test_shortpath" = x; then 27333 # Short path failed, file does not exist as specified. 27334 # Try adding .exe or .cmd 27335 if test -f "${new_path}.exe"; then 27336 input_to_shortpath="${new_path}.exe" 27337 elif test -f "${new_path}.cmd"; then 27338 input_to_shortpath="${new_path}.cmd" 27339 else 27340 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 27341 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 27342 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27343 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27344 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27345 fi 27346 else 27347 input_to_shortpath="$new_path" 27348 fi 27349 27350 # Call helper function which possibly converts this using DOS-style short mode. 27351 # If so, the updated path is stored in $new_path. 27352 new_path="$input_to_shortpath" 27353 27354 input_path="$input_to_shortpath" 27355 # Check if we need to convert this using DOS-style short mode. If the path 27356 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27357 # take no chances and rewrite it. 27358 # Note: m4 eats our [], so we need to use [ and ] instead. 27359 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27360 if test "x$has_forbidden_chars" != x; then 27361 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27362 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27363 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27364 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27365 # Going to short mode and back again did indeed matter. Since short mode is 27366 # case insensitive, let's make it lowercase to improve readability. 27367 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27368 # Now convert it back to Unix-stile (cygpath) 27369 input_path=`$CYGPATH -u "$shortmode_path"` 27370 new_path="$input_path" 27371 fi 27372 fi 27373 27374 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27375 if test "x$test_cygdrive_prefix" = x; then 27376 # As a simple fix, exclude /usr/bin since it's not a real path. 27377 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27378 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27379 # a path prefixed by /cygdrive for fixpath to work. 27380 new_path="$CYGWIN_ROOT_PATH$input_path" 27381 fi 27382 fi 27383 27384 # remove trailing .exe if any 27385 new_path="${new_path/%.exe/}" 27386 27387 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27388 27389 # First separate the path from the arguments. This will split at the first 27390 # space. 27391 complete="$VS_ENV_CMD" 27392 path="${complete%% *}" 27393 tmp="$complete EOL" 27394 arguments="${tmp#* }" 27395 27396 # Input might be given as Windows format, start by converting to 27397 # unix format. 27398 new_path="$path" 27399 27400 windows_path="$new_path" 27401 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27402 unix_path=`$CYGPATH -u "$windows_path"` 27403 new_path="$unix_path" 27404 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27405 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27406 new_path="$unix_path" 27407 fi 27408 27409 27410 # Now try to locate executable using which 27411 new_path=`$WHICH "$new_path" 2> /dev/null` 27412 27413 if test "x$new_path" = x; then 27414 # Oops. Which didn't find the executable. 27415 # The splitting of arguments from the executable at a space might have been incorrect, 27416 # since paths with space are more likely in Windows. Give it another try with the whole 27417 # argument. 27418 path="$complete" 27419 arguments="EOL" 27420 new_path="$path" 27421 27422 windows_path="$new_path" 27423 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27424 unix_path=`$CYGPATH -u "$windows_path"` 27425 new_path="$unix_path" 27426 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27427 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27428 new_path="$unix_path" 27429 fi 27430 27431 27432 new_path=`$WHICH "$new_path" 2> /dev/null` 27433 # bat and cmd files are not always considered executable in MSYS causing which 27434 # to not find them 27435 if test "x$new_path" = x \ 27436 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27437 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27438 new_path="$path" 27439 27440 windows_path="$new_path" 27441 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27442 unix_path=`$CYGPATH -u "$windows_path"` 27443 new_path="$unix_path" 27444 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27445 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27446 new_path="$unix_path" 27447 fi 27448 27449 fi 27450 27451 if test "x$new_path" = x; then 27452 # It's still not found. Now this is an unrecoverable error. 27453 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27454 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27455 has_space=`$ECHO "$complete" | $GREP " "` 27456 if test "x$has_space" != x; then 27457 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27458 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27459 fi 27460 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27461 fi 27462 fi 27463 27464 # Now new_path has a complete unix path to the binary 27465 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27466 # Keep paths in /bin as-is, but remove trailing .exe if any 27467 new_path="${new_path/%.exe/}" 27468 # Do not save /bin paths to all_fixpath_prefixes! 27469 else 27470 # Not in mixed or Windows style, start by that. 27471 new_path=`cmd //c echo $new_path` 27472 27473 input_path="$new_path" 27474 # Check if we need to convert this using DOS-style short mode. If the path 27475 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27476 # take no chances and rewrite it. 27477 # Note: m4 eats our [], so we need to use [ and ] instead. 27478 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27479 if test "x$has_forbidden_chars" != x; then 27480 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27481 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27482 fi 27483 27484 # Output is in $new_path 27485 27486 windows_path="$new_path" 27487 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27488 unix_path=`$CYGPATH -u "$windows_path"` 27489 new_path="$unix_path" 27490 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27491 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27492 new_path="$unix_path" 27493 fi 27494 27495 # remove trailing .exe if any 27496 new_path="${new_path/%.exe/}" 27497 27498 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27499 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27500 fi 27501 27502 else 27503 # We're on a posix platform. Hooray! :) 27504 # First separate the path from the arguments. This will split at the first 27505 # space. 27506 complete="$VS_ENV_CMD" 27507 path="${complete%% *}" 27508 tmp="$complete EOL" 27509 arguments="${tmp#* }" 27510 27511 # Cannot rely on the command "which" here since it doesn't always work. 27512 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27513 if test -z "$is_absolute_path"; then 27514 # Path to executable is not absolute. Find it. 27515 IFS_save="$IFS" 27516 IFS=: 27517 for p in $PATH; do 27518 if test -f "$p/$path" && test -x "$p/$path"; then 27519 new_path="$p/$path" 27520 break 27521 fi 27522 done 27523 IFS="$IFS_save" 27524 else 27525 # This is an absolute path, we can use it without further modifications. 27526 new_path="$path" 27527 fi 27528 27529 if test "x$new_path" = x; then 27530 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27531 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27532 has_space=`$ECHO "$complete" | $GREP " "` 27533 if test "x$has_space" != x; then 27534 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27535 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27536 fi 27537 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27538 fi 27539 fi 27540 27541 # Now join together the path and the arguments once again 27542 if test "x$arguments" != xEOL; then 27543 new_complete="$new_path ${arguments% *}" 27544 else 27545 new_complete="$new_path" 27546 fi 27547 27548 if test "x$complete" != "x$new_complete"; then 27549 VS_ENV_CMD="$new_complete" 27550 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 27551 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 27552 fi 27553 27554 27555 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 27556 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 27557 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 27558 27559 # We need to create a couple of temporary files. 27560 VS_ENV_TMP_DIR="$OUTPUT_ROOT/vs-env" 27561 $MKDIR -p $VS_ENV_TMP_DIR 27562 27563 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 27564 # Instead create a shell script which will set the relevant variables when run. 27565 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 27566 27567 unix_path="$WINPATH_VS_ENV_CMD" 27568 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27569 windows_path=`$CYGPATH -m "$unix_path"` 27570 WINPATH_VS_ENV_CMD="$windows_path" 27571 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27572 windows_path=`cmd //c echo $unix_path` 27573 WINPATH_VS_ENV_CMD="$windows_path" 27574 fi 27575 27576 WINPATH_BASH="$BASH" 27577 27578 unix_path="$WINPATH_BASH" 27579 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27580 windows_path=`$CYGPATH -m "$unix_path"` 27581 WINPATH_BASH="$windows_path" 27582 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27583 windows_path=`cmd //c echo $unix_path` 27584 WINPATH_BASH="$windows_path" 27585 fi 27586 27587 27588 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 27589 # script (executable by bash) that will setup the important variables. 27590 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 27591 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 27592 # This will end up something like: 27593 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 27594 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 27595 # These will end up something like: 27596 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 27597 # The trailing space for everyone except PATH is no typo, but is needed due 27598 # to trailing \ in the Windows paths. These will be stripped later. 27599 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27600 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27601 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27602 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27603 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27604 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27605 27606 # Now execute the newly created bat file. 27607 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 27608 # Change directory so we don't need to mess with Windows paths in redirects. 27609 cd $VS_ENV_TMP_DIR 27610 cmd /c extract-vs-env.bat | $CAT 27611 cd $CURDIR 27612 27613 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 27614 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 27615 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 27616 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 27617 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 27618 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 27619 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 27620 as_fn_error $? "Cannot continue" "$LINENO" 5 27621 fi 27622 27623 # Now set all paths and other env variables. This will allow the rest of 27624 # the configure script to find and run the compiler in the proper way. 27625 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 27626 $as_echo "$as_me: Setting extracted environment variables" >&6;} 27627 . $VS_ENV_TMP_DIR/set-vs-env.sh 27628 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 27629 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 27630 else 27631 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 27632 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 27633 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 27634 fi 27635 27636 # At this point, we should have correct variables in the environment, or we can't continue. 27637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 27638 $as_echo_n "checking for Visual Studio variables... " >&6; } 27639 27640 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x || test "x$WINDOWSSDKDIR" != x; then 27641 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 27642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 27643 $as_echo "present but broken" >&6; } 27644 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 27645 else 27646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 27647 $as_echo "ok" >&6; } 27648 # Remove any trailing "\" and " " from the variables. 27649 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED 's/\\\\* *$//'` 27650 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\* *$//'` 27651 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 27652 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 27653 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 27654 # Remove any paths containing # (typically F#) as that messes up make. This 27655 # is needed if visual studio was installed with F# support. 27656 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 27657 27658 27659 27660 27661 fi 27662 else 27663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 27664 $as_echo "not found" >&6; } 27665 27666 if test "x$VS_ENV_CMD" = x; then 27667 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 27668 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 27669 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 27670 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 27671 else 27672 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 27673 $as_echo "$as_me: Running the extraction script failed." >&6;} 27674 fi 27675 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 27676 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 27677 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 27678 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 27679 as_fn_error $? "Cannot continue" "$LINENO" 5 27680 fi 27681 27682 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 27683 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 27684 PATH="$VS_PATH" 27685 # The microsoft toolchain also requires INCLUDE and LIB to be set. 27686 export INCLUDE="$VS_INCLUDE" 27687 export LIB="$VS_LIB" 27688 fi 27689 27690 # autoconf magic only relies on PATH, so update it if tools dir is specified 27691 OLD_PATH="$PATH" 27692 27693 # For solaris we really need solaris tools, and not the GNU equivalent. 27694 # The build tools on Solaris reside in /usr/ccs (C Compilation System), 27695 # so add that to path before starting to probe. 27696 # FIXME: This was originally only done for AS,NM,GNM,STRIP,MCS,OBJCOPY,OBJDUMP. 27697 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 27698 PATH="/usr/ccs/bin:$PATH" 27699 fi 27700 27701 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 27702 # override all other locations. 27703 if test "x$TOOLCHAIN_PATH" != x; then 27704 PATH=$TOOLCHAIN_PATH:$PATH 27705 fi 27706 27707 27708 # 27709 # Setup the compilers (CC and CXX) 27710 # 27711 27712 COMPILER_NAME=C 27713 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 27714 27715 if test "x$CC" != x; then 27716 # User has supplied compiler name already, always let that override. 27717 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 27718 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 27719 if test "x`basename $CC`" = "x$CC"; then 27720 # A command without a complete path is provided, search $PATH. 27721 27722 for ac_prog in $CC 27723 do 27724 # Extract the first word of "$ac_prog", so it can be a program name with args. 27725 set dummy $ac_prog; ac_word=$2 27726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27727 $as_echo_n "checking for $ac_word... " >&6; } 27728 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 27729 $as_echo_n "(cached) " >&6 27730 else 27731 case $POTENTIAL_CC in 27732 [\\/]* | ?:[\\/]*) 27733 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 27734 ;; 27735 *) 27736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27737 for as_dir in $PATH 27738 do 27739 IFS=$as_save_IFS 27740 test -z "$as_dir" && as_dir=. 27741 for ac_exec_ext in '' $ac_executable_extensions; do 27742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27743 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 27744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27745 break 2 27746 fi 27747 done 27748 done 27749 IFS=$as_save_IFS 27750 27751 ;; 27752 esac 27753 fi 27754 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 27755 if test -n "$POTENTIAL_CC"; then 27756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 27757 $as_echo "$POTENTIAL_CC" >&6; } 27758 else 27759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27760 $as_echo "no" >&6; } 27761 fi 27762 27763 27764 test -n "$POTENTIAL_CC" && break 27765 done 27766 27767 if test "x$POTENTIAL_CC" != x; then 27768 CC=$POTENTIAL_CC 27769 else 27770 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 27771 fi 27772 else 27773 # Otherwise it might already be a complete path 27774 if test ! -x "$CC"; then 27775 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 27776 fi 27777 fi 27778 else 27779 # No user supplied value. Locate compiler ourselves. 27780 27781 # If we are cross compiling, assume cross compilation tools follows the 27782 # cross compilation standard where they are prefixed with the autoconf 27783 # standard name for the target. For example the binary 27784 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 27785 # If we are not cross compiling, then the default compiler name will be 27786 # used. 27787 27788 CC= 27789 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 27790 # before checking the rest of the PATH. 27791 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 27792 # step, this should not be necessary. 27793 if test -n "$TOOLCHAIN_PATH"; then 27794 PATH_save="$PATH" 27795 PATH="$TOOLCHAIN_PATH" 27796 for ac_prog in $SEARCH_LIST 27797 do 27798 # Extract the first word of "$ac_prog", so it can be a program name with args. 27799 set dummy $ac_prog; ac_word=$2 27800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27801 $as_echo_n "checking for $ac_word... " >&6; } 27802 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 27803 $as_echo_n "(cached) " >&6 27804 else 27805 case $TOOLCHAIN_PATH_CC in 27806 [\\/]* | ?:[\\/]*) 27807 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 27808 ;; 27809 *) 27810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27811 for as_dir in $PATH 27812 do 27813 IFS=$as_save_IFS 27814 test -z "$as_dir" && as_dir=. 27815 for ac_exec_ext in '' $ac_executable_extensions; do 27816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27817 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 27818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27819 break 2 27820 fi 27821 done 27822 done 27823 IFS=$as_save_IFS 27824 27825 ;; 27826 esac 27827 fi 27828 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 27829 if test -n "$TOOLCHAIN_PATH_CC"; then 27830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 27831 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 27832 else 27833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27834 $as_echo "no" >&6; } 27835 fi 27836 27837 27838 test -n "$TOOLCHAIN_PATH_CC" && break 27839 done 27840 27841 CC=$TOOLCHAIN_PATH_CC 27842 PATH="$PATH_save" 27843 fi 27844 27845 # AC_PATH_PROGS can't be run multiple times with the same variable, 27846 # so create a new name for this run. 27847 if test "x$CC" = x; then 27848 for ac_prog in $SEARCH_LIST 27849 do 27850 # Extract the first word of "$ac_prog", so it can be a program name with args. 27851 set dummy $ac_prog; ac_word=$2 27852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27853 $as_echo_n "checking for $ac_word... " >&6; } 27854 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 27855 $as_echo_n "(cached) " >&6 27856 else 27857 case $POTENTIAL_CC in 27858 [\\/]* | ?:[\\/]*) 27859 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 27860 ;; 27861 *) 27862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27863 for as_dir in $PATH 27864 do 27865 IFS=$as_save_IFS 27866 test -z "$as_dir" && as_dir=. 27867 for ac_exec_ext in '' $ac_executable_extensions; do 27868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27869 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 27870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27871 break 2 27872 fi 27873 done 27874 done 27875 IFS=$as_save_IFS 27876 27877 ;; 27878 esac 27879 fi 27880 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 27881 if test -n "$POTENTIAL_CC"; then 27882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 27883 $as_echo "$POTENTIAL_CC" >&6; } 27884 else 27885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27886 $as_echo "no" >&6; } 27887 fi 27888 27889 27890 test -n "$POTENTIAL_CC" && break 27891 done 27892 27893 CC=$POTENTIAL_CC 27894 fi 27895 27896 if test "x$CC" = x; then 27897 27898 # Print a helpful message on how to acquire the necessary build dependency. 27899 # devkit is the help tag: freetype, cups, pulse, alsa etc 27900 MISSING_DEPENDENCY=devkit 27901 27902 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27903 cygwin_help $MISSING_DEPENDENCY 27904 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27905 msys_help $MISSING_DEPENDENCY 27906 else 27907 PKGHANDLER_COMMAND= 27908 27909 case $PKGHANDLER in 27910 apt-get) 27911 apt_help $MISSING_DEPENDENCY ;; 27912 yum) 27913 yum_help $MISSING_DEPENDENCY ;; 27914 port) 27915 port_help $MISSING_DEPENDENCY ;; 27916 pkgutil) 27917 pkgutil_help $MISSING_DEPENDENCY ;; 27918 pkgadd) 27919 pkgadd_help $MISSING_DEPENDENCY ;; 27920 esac 27921 27922 if test "x$PKGHANDLER_COMMAND" != x; then 27923 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 27924 fi 27925 fi 27926 27927 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 27928 fi 27929 fi 27930 27931 # Now we have a compiler binary in CC. Make sure it's okay. 27932 27933 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27934 27935 # First separate the path from the arguments. This will split at the first 27936 # space. 27937 complete="$CC" 27938 path="${complete%% *}" 27939 tmp="$complete EOL" 27940 arguments="${tmp#* }" 27941 27942 # Input might be given as Windows format, start by converting to 27943 # unix format. 27944 new_path=`$CYGPATH -u "$path"` 27945 27946 # Now try to locate executable using which 27947 new_path=`$WHICH "$new_path" 2> /dev/null` 27948 # bat and cmd files are not always considered executable in cygwin causing which 27949 # to not find them 27950 if test "x$new_path" = x \ 27951 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27952 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27953 new_path=`$CYGPATH -u "$path"` 27954 fi 27955 if test "x$new_path" = x; then 27956 # Oops. Which didn't find the executable. 27957 # The splitting of arguments from the executable at a space might have been incorrect, 27958 # since paths with space are more likely in Windows. Give it another try with the whole 27959 # argument. 27960 path="$complete" 27961 arguments="EOL" 27962 new_path=`$CYGPATH -u "$path"` 27963 new_path=`$WHICH "$new_path" 2> /dev/null` 27964 # bat and cmd files are not always considered executable in cygwin causing which 27965 # to not find them 27966 if test "x$new_path" = x \ 27967 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27968 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27969 new_path=`$CYGPATH -u "$path"` 27970 fi 27971 if test "x$new_path" = x; then 27972 # It's still not found. Now this is an unrecoverable error. 27973 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27974 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27975 has_space=`$ECHO "$complete" | $GREP " "` 27976 if test "x$has_space" != x; then 27977 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27978 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27979 fi 27980 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27981 fi 27982 fi 27983 27984 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27985 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27986 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27987 # "foo.exe" is OK but "foo" is an error. 27988 # 27989 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27990 # It is also a way to make sure we got the proper file name for the real test later on. 27991 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27992 if test "x$test_shortpath" = x; then 27993 # Short path failed, file does not exist as specified. 27994 # Try adding .exe or .cmd 27995 if test -f "${new_path}.exe"; then 27996 input_to_shortpath="${new_path}.exe" 27997 elif test -f "${new_path}.cmd"; then 27998 input_to_shortpath="${new_path}.cmd" 27999 else 28000 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 28001 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 28002 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28003 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28004 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28005 fi 28006 else 28007 input_to_shortpath="$new_path" 28008 fi 28009 28010 # Call helper function which possibly converts this using DOS-style short mode. 28011 # If so, the updated path is stored in $new_path. 28012 new_path="$input_to_shortpath" 28013 28014 input_path="$input_to_shortpath" 28015 # Check if we need to convert this using DOS-style short mode. If the path 28016 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28017 # take no chances and rewrite it. 28018 # Note: m4 eats our [], so we need to use [ and ] instead. 28019 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28020 if test "x$has_forbidden_chars" != x; then 28021 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28022 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28023 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28024 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28025 # Going to short mode and back again did indeed matter. Since short mode is 28026 # case insensitive, let's make it lowercase to improve readability. 28027 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28028 # Now convert it back to Unix-stile (cygpath) 28029 input_path=`$CYGPATH -u "$shortmode_path"` 28030 new_path="$input_path" 28031 fi 28032 fi 28033 28034 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28035 if test "x$test_cygdrive_prefix" = x; then 28036 # As a simple fix, exclude /usr/bin since it's not a real path. 28037 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28038 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28039 # a path prefixed by /cygdrive for fixpath to work. 28040 new_path="$CYGWIN_ROOT_PATH$input_path" 28041 fi 28042 fi 28043 28044 # remove trailing .exe if any 28045 new_path="${new_path/%.exe/}" 28046 28047 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28048 28049 # First separate the path from the arguments. This will split at the first 28050 # space. 28051 complete="$CC" 28052 path="${complete%% *}" 28053 tmp="$complete EOL" 28054 arguments="${tmp#* }" 28055 28056 # Input might be given as Windows format, start by converting to 28057 # unix format. 28058 new_path="$path" 28059 28060 windows_path="$new_path" 28061 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28062 unix_path=`$CYGPATH -u "$windows_path"` 28063 new_path="$unix_path" 28064 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28065 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28066 new_path="$unix_path" 28067 fi 28068 28069 28070 # Now try to locate executable using which 28071 new_path=`$WHICH "$new_path" 2> /dev/null` 28072 28073 if test "x$new_path" = x; then 28074 # Oops. Which didn't find the executable. 28075 # The splitting of arguments from the executable at a space might have been incorrect, 28076 # since paths with space are more likely in Windows. Give it another try with the whole 28077 # argument. 28078 path="$complete" 28079 arguments="EOL" 28080 new_path="$path" 28081 28082 windows_path="$new_path" 28083 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28084 unix_path=`$CYGPATH -u "$windows_path"` 28085 new_path="$unix_path" 28086 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28087 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28088 new_path="$unix_path" 28089 fi 28090 28091 28092 new_path=`$WHICH "$new_path" 2> /dev/null` 28093 # bat and cmd files are not always considered executable in MSYS causing which 28094 # to not find them 28095 if test "x$new_path" = x \ 28096 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28097 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28098 new_path="$path" 28099 28100 windows_path="$new_path" 28101 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28102 unix_path=`$CYGPATH -u "$windows_path"` 28103 new_path="$unix_path" 28104 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28105 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28106 new_path="$unix_path" 28107 fi 28108 28109 fi 28110 28111 if test "x$new_path" = x; then 28112 # It's still not found. Now this is an unrecoverable error. 28113 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 28114 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 28115 has_space=`$ECHO "$complete" | $GREP " "` 28116 if test "x$has_space" != x; then 28117 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28118 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28119 fi 28120 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28121 fi 28122 fi 28123 28124 # Now new_path has a complete unix path to the binary 28125 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28126 # Keep paths in /bin as-is, but remove trailing .exe if any 28127 new_path="${new_path/%.exe/}" 28128 # Do not save /bin paths to all_fixpath_prefixes! 28129 else 28130 # Not in mixed or Windows style, start by that. 28131 new_path=`cmd //c echo $new_path` 28132 28133 input_path="$new_path" 28134 # Check if we need to convert this using DOS-style short mode. If the path 28135 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28136 # take no chances and rewrite it. 28137 # Note: m4 eats our [], so we need to use [ and ] instead. 28138 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28139 if test "x$has_forbidden_chars" != x; then 28140 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28141 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28142 fi 28143 28144 # Output is in $new_path 28145 28146 windows_path="$new_path" 28147 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28148 unix_path=`$CYGPATH -u "$windows_path"` 28149 new_path="$unix_path" 28150 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28151 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28152 new_path="$unix_path" 28153 fi 28154 28155 # remove trailing .exe if any 28156 new_path="${new_path/%.exe/}" 28157 28158 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28159 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28160 fi 28161 28162 else 28163 # We're on a posix platform. Hooray! :) 28164 # First separate the path from the arguments. This will split at the first 28165 # space. 28166 complete="$CC" 28167 path="${complete%% *}" 28168 tmp="$complete EOL" 28169 arguments="${tmp#* }" 28170 28171 # Cannot rely on the command "which" here since it doesn't always work. 28172 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28173 if test -z "$is_absolute_path"; then 28174 # Path to executable is not absolute. Find it. 28175 IFS_save="$IFS" 28176 IFS=: 28177 for p in $PATH; do 28178 if test -f "$p/$path" && test -x "$p/$path"; then 28179 new_path="$p/$path" 28180 break 28181 fi 28182 done 28183 IFS="$IFS_save" 28184 else 28185 # This is an absolute path, we can use it without further modifications. 28186 new_path="$path" 28187 fi 28188 28189 if test "x$new_path" = x; then 28190 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 28191 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 28192 has_space=`$ECHO "$complete" | $GREP " "` 28193 if test "x$has_space" != x; then 28194 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28195 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28196 fi 28197 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28198 fi 28199 fi 28200 28201 # Now join together the path and the arguments once again 28202 if test "x$arguments" != xEOL; then 28203 new_complete="$new_path ${arguments% *}" 28204 else 28205 new_complete="$new_path" 28206 fi 28207 28208 if test "x$complete" != "x$new_complete"; then 28209 CC="$new_complete" 28210 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 28211 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 28212 fi 28213 28214 TEST_COMPILER="$CC" 28215 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 28216 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 28217 if test "x$OPENJDK_BUILD_OS" != xaix; then 28218 # FIXME: This test should not be needed anymore; we don't do that for any platform. 28219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 28220 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 28221 28222 if test "x$OPENJDK_BUILD_OS" != xwindows; then 28223 # Follow a chain of symbolic links. Use readlink 28224 # where it exists, else fall back to horribly 28225 # complicated shell code. 28226 if test "x$READLINK_TESTED" != yes; then 28227 # On MacOSX there is a readlink tool with a different 28228 # purpose than the GNU readlink tool. Check the found readlink. 28229 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 28230 if test "x$ISGNU" = x; then 28231 # A readlink that we do not know how to use. 28232 # Are there other non-GNU readlinks out there? 28233 READLINK_TESTED=yes 28234 READLINK= 28235 fi 28236 fi 28237 28238 if test "x$READLINK" != x; then 28239 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 28240 else 28241 # Save the current directory for restoring afterwards 28242 STARTDIR=$PWD 28243 COUNTER=0 28244 sym_link_dir=`$DIRNAME $TEST_COMPILER` 28245 sym_link_file=`$BASENAME $TEST_COMPILER` 28246 cd $sym_link_dir 28247 # Use -P flag to resolve symlinks in directories. 28248 cd `$THEPWDCMD -P` 28249 sym_link_dir=`$THEPWDCMD -P` 28250 # Resolve file symlinks 28251 while test $COUNTER -lt 20; do 28252 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 28253 if test "x$ISLINK" == x; then 28254 # This is not a symbolic link! We are done! 28255 break 28256 fi 28257 # Again resolve directory symlinks since the target of the just found 28258 # link could be in a different directory 28259 cd `$DIRNAME $ISLINK` 28260 sym_link_dir=`$THEPWDCMD -P` 28261 sym_link_file=`$BASENAME $ISLINK` 28262 let COUNTER=COUNTER+1 28263 done 28264 cd $STARTDIR 28265 TEST_COMPILER=$sym_link_dir/$sym_link_file 28266 fi 28267 fi 28268 28269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 28270 $as_echo "$TEST_COMPILER" >&6; } 28271 fi 28272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5 28273 $as_echo_n "checking if CC is disguised ccache... " >&6; } 28274 28275 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 28276 if test "x$COMPILER_BASENAME" = "xccache"; then 28277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 28278 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 28279 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 28280 # We want to control ccache invocation ourselves, so ignore this cc and try 28281 # searching again. 28282 28283 # Remove the path to the fake ccache cc from the PATH 28284 RETRY_COMPILER_SAVED_PATH="$PATH" 28285 COMPILER_DIRNAME=`$DIRNAME $CC` 28286 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 28287 28288 # Try again looking for our compiler 28289 if test -n "$ac_tool_prefix"; then 28290 for ac_prog in $TOOLCHAIN_CC_BINARY 28291 do 28292 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28293 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28295 $as_echo_n "checking for $ac_word... " >&6; } 28296 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then : 28297 $as_echo_n "(cached) " >&6 28298 else 28299 if test -n "$PROPER_COMPILER_CC"; then 28300 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test. 28301 else 28302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28303 for as_dir in $PATH 28304 do 28305 IFS=$as_save_IFS 28306 test -z "$as_dir" && as_dir=. 28307 for ac_exec_ext in '' $ac_executable_extensions; do 28308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28309 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog" 28310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28311 break 2 28312 fi 28313 done 28314 done 28315 IFS=$as_save_IFS 28316 28317 fi 28318 fi 28319 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC 28320 if test -n "$PROPER_COMPILER_CC"; then 28321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 28322 $as_echo "$PROPER_COMPILER_CC" >&6; } 28323 else 28324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28325 $as_echo "no" >&6; } 28326 fi 28327 28328 28329 test -n "$PROPER_COMPILER_CC" && break 28330 done 28331 fi 28332 if test -z "$PROPER_COMPILER_CC"; then 28333 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC 28334 for ac_prog in $TOOLCHAIN_CC_BINARY 28335 do 28336 # Extract the first word of "$ac_prog", so it can be a program name with args. 28337 set dummy $ac_prog; ac_word=$2 28338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28339 $as_echo_n "checking for $ac_word... " >&6; } 28340 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then : 28341 $as_echo_n "(cached) " >&6 28342 else 28343 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 28344 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test. 28345 else 28346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28347 for as_dir in $PATH 28348 do 28349 IFS=$as_save_IFS 28350 test -z "$as_dir" && as_dir=. 28351 for ac_exec_ext in '' $ac_executable_extensions; do 28352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28353 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog" 28354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28355 break 2 28356 fi 28357 done 28358 done 28359 IFS=$as_save_IFS 28360 28361 fi 28362 fi 28363 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC 28364 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 28365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5 28366 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; } 28367 else 28368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28369 $as_echo "no" >&6; } 28370 fi 28371 28372 28373 test -n "$ac_ct_PROPER_COMPILER_CC" && break 28374 done 28375 28376 if test "x$ac_ct_PROPER_COMPILER_CC" = x; then 28377 PROPER_COMPILER_CC="" 28378 else 28379 case $cross_compiling:$ac_tool_warned in 28380 yes:) 28381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28383 ac_tool_warned=yes ;; 28384 esac 28385 PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC 28386 fi 28387 fi 28388 28389 28390 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28391 28392 # First separate the path from the arguments. This will split at the first 28393 # space. 28394 complete="$PROPER_COMPILER_CC" 28395 path="${complete%% *}" 28396 tmp="$complete EOL" 28397 arguments="${tmp#* }" 28398 28399 # Input might be given as Windows format, start by converting to 28400 # unix format. 28401 new_path=`$CYGPATH -u "$path"` 28402 28403 # Now try to locate executable using which 28404 new_path=`$WHICH "$new_path" 2> /dev/null` 28405 # bat and cmd files are not always considered executable in cygwin causing which 28406 # to not find them 28407 if test "x$new_path" = x \ 28408 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28409 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28410 new_path=`$CYGPATH -u "$path"` 28411 fi 28412 if test "x$new_path" = x; then 28413 # Oops. Which didn't find the executable. 28414 # The splitting of arguments from the executable at a space might have been incorrect, 28415 # since paths with space are more likely in Windows. Give it another try with the whole 28416 # argument. 28417 path="$complete" 28418 arguments="EOL" 28419 new_path=`$CYGPATH -u "$path"` 28420 new_path=`$WHICH "$new_path" 2> /dev/null` 28421 # bat and cmd files are not always considered executable in cygwin causing which 28422 # to not find them 28423 if test "x$new_path" = x \ 28424 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28425 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28426 new_path=`$CYGPATH -u "$path"` 28427 fi 28428 if test "x$new_path" = x; then 28429 # It's still not found. Now this is an unrecoverable error. 28430 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28431 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28432 has_space=`$ECHO "$complete" | $GREP " "` 28433 if test "x$has_space" != x; then 28434 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28435 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28436 fi 28437 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28438 fi 28439 fi 28440 28441 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28442 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28443 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28444 # "foo.exe" is OK but "foo" is an error. 28445 # 28446 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28447 # It is also a way to make sure we got the proper file name for the real test later on. 28448 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28449 if test "x$test_shortpath" = x; then 28450 # Short path failed, file does not exist as specified. 28451 # Try adding .exe or .cmd 28452 if test -f "${new_path}.exe"; then 28453 input_to_shortpath="${new_path}.exe" 28454 elif test -f "${new_path}.cmd"; then 28455 input_to_shortpath="${new_path}.cmd" 28456 else 28457 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5 28458 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;} 28459 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28460 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28461 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28462 fi 28463 else 28464 input_to_shortpath="$new_path" 28465 fi 28466 28467 # Call helper function which possibly converts this using DOS-style short mode. 28468 # If so, the updated path is stored in $new_path. 28469 new_path="$input_to_shortpath" 28470 28471 input_path="$input_to_shortpath" 28472 # Check if we need to convert this using DOS-style short mode. If the path 28473 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28474 # take no chances and rewrite it. 28475 # Note: m4 eats our [], so we need to use [ and ] instead. 28476 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28477 if test "x$has_forbidden_chars" != x; then 28478 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28479 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28480 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28481 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28482 # Going to short mode and back again did indeed matter. Since short mode is 28483 # case insensitive, let's make it lowercase to improve readability. 28484 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28485 # Now convert it back to Unix-stile (cygpath) 28486 input_path=`$CYGPATH -u "$shortmode_path"` 28487 new_path="$input_path" 28488 fi 28489 fi 28490 28491 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28492 if test "x$test_cygdrive_prefix" = x; then 28493 # As a simple fix, exclude /usr/bin since it's not a real path. 28494 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28495 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28496 # a path prefixed by /cygdrive for fixpath to work. 28497 new_path="$CYGWIN_ROOT_PATH$input_path" 28498 fi 28499 fi 28500 28501 # remove trailing .exe if any 28502 new_path="${new_path/%.exe/}" 28503 28504 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28505 28506 # First separate the path from the arguments. This will split at the first 28507 # space. 28508 complete="$PROPER_COMPILER_CC" 28509 path="${complete%% *}" 28510 tmp="$complete EOL" 28511 arguments="${tmp#* }" 28512 28513 # Input might be given as Windows format, start by converting to 28514 # unix format. 28515 new_path="$path" 28516 28517 windows_path="$new_path" 28518 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28519 unix_path=`$CYGPATH -u "$windows_path"` 28520 new_path="$unix_path" 28521 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28522 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28523 new_path="$unix_path" 28524 fi 28525 28526 28527 # Now try to locate executable using which 28528 new_path=`$WHICH "$new_path" 2> /dev/null` 28529 28530 if test "x$new_path" = x; then 28531 # Oops. Which didn't find the executable. 28532 # The splitting of arguments from the executable at a space might have been incorrect, 28533 # since paths with space are more likely in Windows. Give it another try with the whole 28534 # argument. 28535 path="$complete" 28536 arguments="EOL" 28537 new_path="$path" 28538 28539 windows_path="$new_path" 28540 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28541 unix_path=`$CYGPATH -u "$windows_path"` 28542 new_path="$unix_path" 28543 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28544 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28545 new_path="$unix_path" 28546 fi 28547 28548 28549 new_path=`$WHICH "$new_path" 2> /dev/null` 28550 # bat and cmd files are not always considered executable in MSYS causing which 28551 # to not find them 28552 if test "x$new_path" = x \ 28553 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28554 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28555 new_path="$path" 28556 28557 windows_path="$new_path" 28558 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28559 unix_path=`$CYGPATH -u "$windows_path"` 28560 new_path="$unix_path" 28561 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28562 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28563 new_path="$unix_path" 28564 fi 28565 28566 fi 28567 28568 if test "x$new_path" = x; then 28569 # It's still not found. Now this is an unrecoverable error. 28570 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28571 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28572 has_space=`$ECHO "$complete" | $GREP " "` 28573 if test "x$has_space" != x; then 28574 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28575 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28576 fi 28577 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28578 fi 28579 fi 28580 28581 # Now new_path has a complete unix path to the binary 28582 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28583 # Keep paths in /bin as-is, but remove trailing .exe if any 28584 new_path="${new_path/%.exe/}" 28585 # Do not save /bin paths to all_fixpath_prefixes! 28586 else 28587 # Not in mixed or Windows style, start by that. 28588 new_path=`cmd //c echo $new_path` 28589 28590 input_path="$new_path" 28591 # Check if we need to convert this using DOS-style short mode. If the path 28592 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28593 # take no chances and rewrite it. 28594 # Note: m4 eats our [], so we need to use [ and ] instead. 28595 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28596 if test "x$has_forbidden_chars" != x; then 28597 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28598 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28599 fi 28600 28601 # Output is in $new_path 28602 28603 windows_path="$new_path" 28604 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28605 unix_path=`$CYGPATH -u "$windows_path"` 28606 new_path="$unix_path" 28607 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28608 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28609 new_path="$unix_path" 28610 fi 28611 28612 # remove trailing .exe if any 28613 new_path="${new_path/%.exe/}" 28614 28615 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28616 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28617 fi 28618 28619 else 28620 # We're on a posix platform. Hooray! :) 28621 # First separate the path from the arguments. This will split at the first 28622 # space. 28623 complete="$PROPER_COMPILER_CC" 28624 path="${complete%% *}" 28625 tmp="$complete EOL" 28626 arguments="${tmp#* }" 28627 28628 # Cannot rely on the command "which" here since it doesn't always work. 28629 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28630 if test -z "$is_absolute_path"; then 28631 # Path to executable is not absolute. Find it. 28632 IFS_save="$IFS" 28633 IFS=: 28634 for p in $PATH; do 28635 if test -f "$p/$path" && test -x "$p/$path"; then 28636 new_path="$p/$path" 28637 break 28638 fi 28639 done 28640 IFS="$IFS_save" 28641 else 28642 # This is an absolute path, we can use it without further modifications. 28643 new_path="$path" 28644 fi 28645 28646 if test "x$new_path" = x; then 28647 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28648 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28649 has_space=`$ECHO "$complete" | $GREP " "` 28650 if test "x$has_space" != x; then 28651 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28652 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28653 fi 28654 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28655 fi 28656 fi 28657 28658 # Now join together the path and the arguments once again 28659 if test "x$arguments" != xEOL; then 28660 new_complete="$new_path ${arguments% *}" 28661 else 28662 new_complete="$new_path" 28663 fi 28664 28665 if test "x$complete" != "x$new_complete"; then 28666 PROPER_COMPILER_CC="$new_complete" 28667 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5 28668 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;} 28669 fi 28670 28671 PATH="$RETRY_COMPILER_SAVED_PATH" 28672 28673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5 28674 $as_echo_n "checking for resolved symbolic links for CC... " >&6; } 28675 28676 if test "x$OPENJDK_BUILD_OS" != xwindows; then 28677 # Follow a chain of symbolic links. Use readlink 28678 # where it exists, else fall back to horribly 28679 # complicated shell code. 28680 if test "x$READLINK_TESTED" != yes; then 28681 # On MacOSX there is a readlink tool with a different 28682 # purpose than the GNU readlink tool. Check the found readlink. 28683 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 28684 if test "x$ISGNU" = x; then 28685 # A readlink that we do not know how to use. 28686 # Are there other non-GNU readlinks out there? 28687 READLINK_TESTED=yes 28688 READLINK= 28689 fi 28690 fi 28691 28692 if test "x$READLINK" != x; then 28693 PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC` 28694 else 28695 # Save the current directory for restoring afterwards 28696 STARTDIR=$PWD 28697 COUNTER=0 28698 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC` 28699 sym_link_file=`$BASENAME $PROPER_COMPILER_CC` 28700 cd $sym_link_dir 28701 # Use -P flag to resolve symlinks in directories. 28702 cd `$THEPWDCMD -P` 28703 sym_link_dir=`$THEPWDCMD -P` 28704 # Resolve file symlinks 28705 while test $COUNTER -lt 20; do 28706 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 28707 if test "x$ISLINK" == x; then 28708 # This is not a symbolic link! We are done! 28709 break 28710 fi 28711 # Again resolve directory symlinks since the target of the just found 28712 # link could be in a different directory 28713 cd `$DIRNAME $ISLINK` 28714 sym_link_dir=`$THEPWDCMD -P` 28715 sym_link_file=`$BASENAME $ISLINK` 28716 let COUNTER=COUNTER+1 28717 done 28718 cd $STARTDIR 28719 PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file 28720 fi 28721 fi 28722 28723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 28724 $as_echo "$PROPER_COMPILER_CC" >&6; } 28725 CC="$PROPER_COMPILER_CC" 28726 else 28727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5 28728 $as_echo "no, keeping CC" >&6; } 28729 fi 28730 28731 28732 COMPILER=$CC 28733 COMPILER_NAME=$COMPILER_NAME 28734 28735 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 28736 # cc -V output typically looks like 28737 # cc: Sun C 5.12 Linux_i386 2011/11/16 28738 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 28739 # Check that this is likely to be the Solaris Studio cc. 28740 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 28741 if test $? -ne 0; then 28742 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28743 { $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 28744 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28745 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28746 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28747 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 28748 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 28749 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28750 fi 28751 # Remove usage instructions (if present), and 28752 # collapse compiler output into a single line 28753 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28754 $SED -e 's/ *[Uu]sage:.*//'` 28755 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28756 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 28757 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 28758 # xlc -qversion output typically looks like 28759 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 28760 # Version: 11.01.0000.0015 28761 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 28762 # Check that this is likely to be the IBM XL C compiler. 28763 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 28764 if test $? -ne 0; then 28765 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28766 { $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 28767 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28768 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28769 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28770 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 28771 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 28772 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28773 fi 28774 # Collapse compiler output into a single line 28775 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28776 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28777 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 28778 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 28779 # There is no specific version flag, but all output starts with a version string. 28780 # First line typically looks something like: 28781 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 28782 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 28783 # Check that this is likely to be Microsoft CL.EXE. 28784 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 28785 if test $? -ne 0; then 28786 { $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 28787 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28788 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28789 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28790 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28791 fi 28792 # Collapse compiler output into a single line 28793 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28794 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28795 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 28796 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 28797 # gcc --version output typically looks like 28798 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 28799 # Copyright (C) 2013 Free Software Foundation, Inc. 28800 # This is free software; see the source for copying conditions. There is NO 28801 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 28802 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28803 # Check that this is likely to be GCC. 28804 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 28805 if test $? -ne 0; then 28806 { $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 28807 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28808 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 28809 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 28810 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28811 fi 28812 # Remove Copyright and legalese from version string, and 28813 # collapse into a single line 28814 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28815 $SED -e 's/ *Copyright .*//'` 28816 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28817 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 28818 elif test "x$TOOLCHAIN_TYPE" = xclang; then 28819 # clang --version output typically looks like 28820 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 28821 # clang version 3.3 (tags/RELEASE_33/final) 28822 # or 28823 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 28824 # Target: x86_64-pc-linux-gnu 28825 # Thread model: posix 28826 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28827 # Check that this is likely to be clang 28828 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 28829 if test $? -ne 0; then 28830 { $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 28831 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28832 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28833 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28834 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28835 fi 28836 # Collapse compiler output into a single line 28837 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28838 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28839 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 28840 else 28841 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 28842 fi 28843 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 28844 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 28845 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 28846 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 28847 28848 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 28849 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 28850 28851 28852 # Now that we have resolved CC ourself, let autoconf have its go at it 28853 ac_ext=c 28854 ac_cpp='$CPP $CPPFLAGS' 28855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28857 ac_compiler_gnu=$ac_cv_c_compiler_gnu 28858 if test -n "$ac_tool_prefix"; then 28859 for ac_prog in $CC 28860 do 28861 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28862 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28864 $as_echo_n "checking for $ac_word... " >&6; } 28865 if ${ac_cv_prog_CC+:} false; then : 28866 $as_echo_n "(cached) " >&6 28867 else 28868 if test -n "$CC"; then 28869 ac_cv_prog_CC="$CC" # Let the user override the test. 28870 else 28871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28872 for as_dir in $PATH 28873 do 28874 IFS=$as_save_IFS 28875 test -z "$as_dir" && as_dir=. 28876 for ac_exec_ext in '' $ac_executable_extensions; do 28877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28878 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 28879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28880 break 2 28881 fi 28882 done 28883 done 28884 IFS=$as_save_IFS 28885 28886 fi 28887 fi 28888 CC=$ac_cv_prog_CC 28889 if test -n "$CC"; then 28890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 28891 $as_echo "$CC" >&6; } 28892 else 28893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28894 $as_echo "no" >&6; } 28895 fi 28896 28897 28898 test -n "$CC" && break 28899 done 28900 fi 28901 if test -z "$CC"; then 28902 ac_ct_CC=$CC 28903 for ac_prog in $CC 28904 do 28905 # Extract the first word of "$ac_prog", so it can be a program name with args. 28906 set dummy $ac_prog; ac_word=$2 28907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28908 $as_echo_n "checking for $ac_word... " >&6; } 28909 if ${ac_cv_prog_ac_ct_CC+:} false; then : 28910 $as_echo_n "(cached) " >&6 28911 else 28912 if test -n "$ac_ct_CC"; then 28913 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 28914 else 28915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28916 for as_dir in $PATH 28917 do 28918 IFS=$as_save_IFS 28919 test -z "$as_dir" && as_dir=. 28920 for ac_exec_ext in '' $ac_executable_extensions; do 28921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28922 ac_cv_prog_ac_ct_CC="$ac_prog" 28923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28924 break 2 28925 fi 28926 done 28927 done 28928 IFS=$as_save_IFS 28929 28930 fi 28931 fi 28932 ac_ct_CC=$ac_cv_prog_ac_ct_CC 28933 if test -n "$ac_ct_CC"; then 28934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 28935 $as_echo "$ac_ct_CC" >&6; } 28936 else 28937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28938 $as_echo "no" >&6; } 28939 fi 28940 28941 28942 test -n "$ac_ct_CC" && break 28943 done 28944 28945 if test "x$ac_ct_CC" = x; then 28946 CC="" 28947 else 28948 case $cross_compiling:$ac_tool_warned in 28949 yes:) 28950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28952 ac_tool_warned=yes ;; 28953 esac 28954 CC=$ac_ct_CC 28955 fi 28956 fi 28957 28958 28959 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28961 as_fn_error $? "no acceptable C compiler found in \$PATH 28962 See \`config.log' for more details" "$LINENO" 5; } 28963 28964 # Provide some information about the compiler. 28965 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 28966 set X $ac_compile 28967 ac_compiler=$2 28968 for ac_option in --version -v -V -qversion; do 28969 { { ac_try="$ac_compiler $ac_option >&5" 28970 case "(($ac_try" in 28971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28972 *) ac_try_echo=$ac_try;; 28973 esac 28974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28975 $as_echo "$ac_try_echo"; } >&5 28976 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 28977 ac_status=$? 28978 if test -s conftest.err; then 28979 sed '10a\ 28980 ... rest of stderr output deleted ... 28981 10q' conftest.err >conftest.er1 28982 cat conftest.er1 >&5 28983 fi 28984 rm -f conftest.er1 conftest.err 28985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28986 test $ac_status = 0; } 28987 done 28988 28989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28990 /* end confdefs.h. */ 28991 28992 int 28993 main () 28994 { 28995 28996 ; 28997 return 0; 28998 } 28999 _ACEOF 29000 ac_clean_files_save=$ac_clean_files 29001 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 29002 # Try to create an executable without -o first, disregard a.out. 29003 # It will help us diagnose broken compilers, and finding out an intuition 29004 # of exeext. 29005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 29006 $as_echo_n "checking whether the C compiler works... " >&6; } 29007 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 29008 29009 # The possible output files: 29010 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 29011 29012 ac_rmfiles= 29013 for ac_file in $ac_files 29014 do 29015 case $ac_file in 29016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 29017 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 29018 esac 29019 done 29020 rm -f $ac_rmfiles 29021 29022 if { { ac_try="$ac_link_default" 29023 case "(($ac_try" in 29024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29025 *) ac_try_echo=$ac_try;; 29026 esac 29027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29028 $as_echo "$ac_try_echo"; } >&5 29029 (eval "$ac_link_default") 2>&5 29030 ac_status=$? 29031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29032 test $ac_status = 0; }; then : 29033 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 29034 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 29035 # in a Makefile. We should not override ac_cv_exeext if it was cached, 29036 # so that the user can short-circuit this test for compilers unknown to 29037 # Autoconf. 29038 for ac_file in $ac_files '' 29039 do 29040 test -f "$ac_file" || continue 29041 case $ac_file in 29042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 29043 ;; 29044 [ab].out ) 29045 # We found the default executable, but exeext='' is most 29046 # certainly right. 29047 break;; 29048 *.* ) 29049 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 29050 then :; else 29051 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 29052 fi 29053 # We set ac_cv_exeext here because the later test for it is not 29054 # safe: cross compilers may not add the suffix if given an `-o' 29055 # argument, so we may need to know it at that point already. 29056 # Even if this section looks crufty: it has the advantage of 29057 # actually working. 29058 break;; 29059 * ) 29060 break;; 29061 esac 29062 done 29063 test "$ac_cv_exeext" = no && ac_cv_exeext= 29064 29065 else 29066 ac_file='' 29067 fi 29068 if test -z "$ac_file"; then : 29069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29070 $as_echo "no" >&6; } 29071 $as_echo "$as_me: failed program was:" >&5 29072 sed 's/^/| /' conftest.$ac_ext >&5 29073 29074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29076 as_fn_error 77 "C compiler cannot create executables 29077 See \`config.log' for more details" "$LINENO" 5; } 29078 else 29079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29080 $as_echo "yes" >&6; } 29081 fi 29082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 29083 $as_echo_n "checking for C compiler default output file name... " >&6; } 29084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 29085 $as_echo "$ac_file" >&6; } 29086 ac_exeext=$ac_cv_exeext 29087 29088 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 29089 ac_clean_files=$ac_clean_files_save 29090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 29091 $as_echo_n "checking for suffix of executables... " >&6; } 29092 if { { ac_try="$ac_link" 29093 case "(($ac_try" in 29094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29095 *) ac_try_echo=$ac_try;; 29096 esac 29097 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29098 $as_echo "$ac_try_echo"; } >&5 29099 (eval "$ac_link") 2>&5 29100 ac_status=$? 29101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29102 test $ac_status = 0; }; then : 29103 # If both `conftest.exe' and `conftest' are `present' (well, observable) 29104 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 29105 # work properly (i.e., refer to `conftest.exe'), while it won't with 29106 # `rm'. 29107 for ac_file in conftest.exe conftest conftest.*; do 29108 test -f "$ac_file" || continue 29109 case $ac_file in 29110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 29111 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 29112 break;; 29113 * ) break;; 29114 esac 29115 done 29116 else 29117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29119 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 29120 See \`config.log' for more details" "$LINENO" 5; } 29121 fi 29122 rm -f conftest conftest$ac_cv_exeext 29123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 29124 $as_echo "$ac_cv_exeext" >&6; } 29125 29126 rm -f conftest.$ac_ext 29127 EXEEXT=$ac_cv_exeext 29128 ac_exeext=$EXEEXT 29129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29130 /* end confdefs.h. */ 29131 #include <stdio.h> 29132 int 29133 main () 29134 { 29135 FILE *f = fopen ("conftest.out", "w"); 29136 return ferror (f) || fclose (f) != 0; 29137 29138 ; 29139 return 0; 29140 } 29141 _ACEOF 29142 ac_clean_files="$ac_clean_files conftest.out" 29143 # Check that the compiler produces executables we can run. If not, either 29144 # the compiler is broken, or we cross compile. 29145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 29146 $as_echo_n "checking whether we are cross compiling... " >&6; } 29147 if test "$cross_compiling" != yes; then 29148 { { ac_try="$ac_link" 29149 case "(($ac_try" in 29150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29151 *) ac_try_echo=$ac_try;; 29152 esac 29153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29154 $as_echo "$ac_try_echo"; } >&5 29155 (eval "$ac_link") 2>&5 29156 ac_status=$? 29157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29158 test $ac_status = 0; } 29159 if { ac_try='./conftest$ac_cv_exeext' 29160 { { case "(($ac_try" in 29161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29162 *) ac_try_echo=$ac_try;; 29163 esac 29164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29165 $as_echo "$ac_try_echo"; } >&5 29166 (eval "$ac_try") 2>&5 29167 ac_status=$? 29168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29169 test $ac_status = 0; }; }; then 29170 cross_compiling=no 29171 else 29172 if test "$cross_compiling" = maybe; then 29173 cross_compiling=yes 29174 else 29175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29177 as_fn_error $? "cannot run C compiled programs. 29178 If you meant to cross compile, use \`--host'. 29179 See \`config.log' for more details" "$LINENO" 5; } 29180 fi 29181 fi 29182 fi 29183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 29184 $as_echo "$cross_compiling" >&6; } 29185 29186 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 29187 ac_clean_files=$ac_clean_files_save 29188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 29189 $as_echo_n "checking for suffix of object files... " >&6; } 29190 if ${ac_cv_objext+:} false; then : 29191 $as_echo_n "(cached) " >&6 29192 else 29193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29194 /* end confdefs.h. */ 29195 29196 int 29197 main () 29198 { 29199 29200 ; 29201 return 0; 29202 } 29203 _ACEOF 29204 rm -f conftest.o conftest.obj 29205 if { { ac_try="$ac_compile" 29206 case "(($ac_try" in 29207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29208 *) ac_try_echo=$ac_try;; 29209 esac 29210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29211 $as_echo "$ac_try_echo"; } >&5 29212 (eval "$ac_compile") 2>&5 29213 ac_status=$? 29214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29215 test $ac_status = 0; }; then : 29216 for ac_file in conftest.o conftest.obj conftest.*; do 29217 test -f "$ac_file" || continue; 29218 case $ac_file in 29219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 29220 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 29221 break;; 29222 esac 29223 done 29224 else 29225 $as_echo "$as_me: failed program was:" >&5 29226 sed 's/^/| /' conftest.$ac_ext >&5 29227 29228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29230 as_fn_error $? "cannot compute suffix of object files: cannot compile 29231 See \`config.log' for more details" "$LINENO" 5; } 29232 fi 29233 rm -f conftest.$ac_cv_objext conftest.$ac_ext 29234 fi 29235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 29236 $as_echo "$ac_cv_objext" >&6; } 29237 OBJEXT=$ac_cv_objext 29238 ac_objext=$OBJEXT 29239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 29240 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 29241 if ${ac_cv_c_compiler_gnu+:} false; then : 29242 $as_echo_n "(cached) " >&6 29243 else 29244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29245 /* end confdefs.h. */ 29246 29247 int 29248 main () 29249 { 29250 #ifndef __GNUC__ 29251 choke me 29252 #endif 29253 29254 ; 29255 return 0; 29256 } 29257 _ACEOF 29258 if ac_fn_c_try_compile "$LINENO"; then : 29259 ac_compiler_gnu=yes 29260 else 29261 ac_compiler_gnu=no 29262 fi 29263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29264 ac_cv_c_compiler_gnu=$ac_compiler_gnu 29265 29266 fi 29267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 29268 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 29269 if test $ac_compiler_gnu = yes; then 29270 GCC=yes 29271 else 29272 GCC= 29273 fi 29274 ac_test_CFLAGS=${CFLAGS+set} 29275 ac_save_CFLAGS=$CFLAGS 29276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 29277 $as_echo_n "checking whether $CC accepts -g... " >&6; } 29278 if ${ac_cv_prog_cc_g+:} false; then : 29279 $as_echo_n "(cached) " >&6 29280 else 29281 ac_save_c_werror_flag=$ac_c_werror_flag 29282 ac_c_werror_flag=yes 29283 ac_cv_prog_cc_g=no 29284 CFLAGS="-g" 29285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29286 /* end confdefs.h. */ 29287 29288 int 29289 main () 29290 { 29291 29292 ; 29293 return 0; 29294 } 29295 _ACEOF 29296 if ac_fn_c_try_compile "$LINENO"; then : 29297 ac_cv_prog_cc_g=yes 29298 else 29299 CFLAGS="" 29300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29301 /* end confdefs.h. */ 29302 29303 int 29304 main () 29305 { 29306 29307 ; 29308 return 0; 29309 } 29310 _ACEOF 29311 if ac_fn_c_try_compile "$LINENO"; then : 29312 29313 else 29314 ac_c_werror_flag=$ac_save_c_werror_flag 29315 CFLAGS="-g" 29316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29317 /* end confdefs.h. */ 29318 29319 int 29320 main () 29321 { 29322 29323 ; 29324 return 0; 29325 } 29326 _ACEOF 29327 if ac_fn_c_try_compile "$LINENO"; then : 29328 ac_cv_prog_cc_g=yes 29329 fi 29330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29331 fi 29332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29333 fi 29334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29335 ac_c_werror_flag=$ac_save_c_werror_flag 29336 fi 29337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 29338 $as_echo "$ac_cv_prog_cc_g" >&6; } 29339 if test "$ac_test_CFLAGS" = set; then 29340 CFLAGS=$ac_save_CFLAGS 29341 elif test $ac_cv_prog_cc_g = yes; then 29342 if test "$GCC" = yes; then 29343 CFLAGS="-g -O2" 29344 else 29345 CFLAGS="-g" 29346 fi 29347 else 29348 if test "$GCC" = yes; then 29349 CFLAGS="-O2" 29350 else 29351 CFLAGS= 29352 fi 29353 fi 29354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 29355 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 29356 if ${ac_cv_prog_cc_c89+:} false; then : 29357 $as_echo_n "(cached) " >&6 29358 else 29359 ac_cv_prog_cc_c89=no 29360 ac_save_CC=$CC 29361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29362 /* end confdefs.h. */ 29363 #include <stdarg.h> 29364 #include <stdio.h> 29365 struct stat; 29366 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 29367 struct buf { int x; }; 29368 FILE * (*rcsopen) (struct buf *, struct stat *, int); 29369 static char *e (p, i) 29370 char **p; 29371 int i; 29372 { 29373 return p[i]; 29374 } 29375 static char *f (char * (*g) (char **, int), char **p, ...) 29376 { 29377 char *s; 29378 va_list v; 29379 va_start (v,p); 29380 s = g (p, va_arg (v,int)); 29381 va_end (v); 29382 return s; 29383 } 29384 29385 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 29386 function prototypes and stuff, but not '\xHH' hex character constants. 29387 These don't provoke an error unfortunately, instead are silently treated 29388 as 'x'. The following induces an error, until -std is added to get 29389 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 29390 array size at least. It's necessary to write '\x00'==0 to get something 29391 that's true only with -std. */ 29392 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 29393 29394 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 29395 inside strings and character constants. */ 29396 #define FOO(x) 'x' 29397 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 29398 29399 int test (int i, double x); 29400 struct s1 {int (*f) (int a);}; 29401 struct s2 {int (*f) (double a);}; 29402 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 29403 int argc; 29404 char **argv; 29405 int 29406 main () 29407 { 29408 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 29409 ; 29410 return 0; 29411 } 29412 _ACEOF 29413 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 29414 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 29415 do 29416 CC="$ac_save_CC $ac_arg" 29417 if ac_fn_c_try_compile "$LINENO"; then : 29418 ac_cv_prog_cc_c89=$ac_arg 29419 fi 29420 rm -f core conftest.err conftest.$ac_objext 29421 test "x$ac_cv_prog_cc_c89" != "xno" && break 29422 done 29423 rm -f conftest.$ac_ext 29424 CC=$ac_save_CC 29425 29426 fi 29427 # AC_CACHE_VAL 29428 case "x$ac_cv_prog_cc_c89" in 29429 x) 29430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 29431 $as_echo "none needed" >&6; } ;; 29432 xno) 29433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 29434 $as_echo "unsupported" >&6; } ;; 29435 *) 29436 CC="$CC $ac_cv_prog_cc_c89" 29437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 29438 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 29439 esac 29440 if test "x$ac_cv_prog_cc_c89" != xno; then : 29441 29442 fi 29443 29444 ac_ext=cpp 29445 ac_cpp='$CXXCPP $CPPFLAGS' 29446 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29447 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29448 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29449 29450 29451 29452 COMPILER_NAME=C++ 29453 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 29454 29455 if test "x$CXX" != x; then 29456 # User has supplied compiler name already, always let that override. 29457 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 29458 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 29459 if test "x`basename $CXX`" = "x$CXX"; then 29460 # A command without a complete path is provided, search $PATH. 29461 29462 for ac_prog in $CXX 29463 do 29464 # Extract the first word of "$ac_prog", so it can be a program name with args. 29465 set dummy $ac_prog; ac_word=$2 29466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29467 $as_echo_n "checking for $ac_word... " >&6; } 29468 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 29469 $as_echo_n "(cached) " >&6 29470 else 29471 case $POTENTIAL_CXX in 29472 [\\/]* | ?:[\\/]*) 29473 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 29474 ;; 29475 *) 29476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29477 for as_dir in $PATH 29478 do 29479 IFS=$as_save_IFS 29480 test -z "$as_dir" && as_dir=. 29481 for ac_exec_ext in '' $ac_executable_extensions; do 29482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29483 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 29484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29485 break 2 29486 fi 29487 done 29488 done 29489 IFS=$as_save_IFS 29490 29491 ;; 29492 esac 29493 fi 29494 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 29495 if test -n "$POTENTIAL_CXX"; then 29496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 29497 $as_echo "$POTENTIAL_CXX" >&6; } 29498 else 29499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29500 $as_echo "no" >&6; } 29501 fi 29502 29503 29504 test -n "$POTENTIAL_CXX" && break 29505 done 29506 29507 if test "x$POTENTIAL_CXX" != x; then 29508 CXX=$POTENTIAL_CXX 29509 else 29510 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 29511 fi 29512 else 29513 # Otherwise it might already be a complete path 29514 if test ! -x "$CXX"; then 29515 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 29516 fi 29517 fi 29518 else 29519 # No user supplied value. Locate compiler ourselves. 29520 29521 # If we are cross compiling, assume cross compilation tools follows the 29522 # cross compilation standard where they are prefixed with the autoconf 29523 # standard name for the target. For example the binary 29524 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 29525 # If we are not cross compiling, then the default compiler name will be 29526 # used. 29527 29528 CXX= 29529 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 29530 # before checking the rest of the PATH. 29531 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 29532 # step, this should not be necessary. 29533 if test -n "$TOOLCHAIN_PATH"; then 29534 PATH_save="$PATH" 29535 PATH="$TOOLCHAIN_PATH" 29536 for ac_prog in $SEARCH_LIST 29537 do 29538 # Extract the first word of "$ac_prog", so it can be a program name with args. 29539 set dummy $ac_prog; ac_word=$2 29540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29541 $as_echo_n "checking for $ac_word... " >&6; } 29542 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 29543 $as_echo_n "(cached) " >&6 29544 else 29545 case $TOOLCHAIN_PATH_CXX in 29546 [\\/]* | ?:[\\/]*) 29547 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 29548 ;; 29549 *) 29550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29551 for as_dir in $PATH 29552 do 29553 IFS=$as_save_IFS 29554 test -z "$as_dir" && as_dir=. 29555 for ac_exec_ext in '' $ac_executable_extensions; do 29556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29557 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 29558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29559 break 2 29560 fi 29561 done 29562 done 29563 IFS=$as_save_IFS 29564 29565 ;; 29566 esac 29567 fi 29568 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 29569 if test -n "$TOOLCHAIN_PATH_CXX"; then 29570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 29571 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 29572 else 29573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29574 $as_echo "no" >&6; } 29575 fi 29576 29577 29578 test -n "$TOOLCHAIN_PATH_CXX" && break 29579 done 29580 29581 CXX=$TOOLCHAIN_PATH_CXX 29582 PATH="$PATH_save" 29583 fi 29584 29585 # AC_PATH_PROGS can't be run multiple times with the same variable, 29586 # so create a new name for this run. 29587 if test "x$CXX" = x; then 29588 for ac_prog in $SEARCH_LIST 29589 do 29590 # Extract the first word of "$ac_prog", so it can be a program name with args. 29591 set dummy $ac_prog; ac_word=$2 29592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29593 $as_echo_n "checking for $ac_word... " >&6; } 29594 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 29595 $as_echo_n "(cached) " >&6 29596 else 29597 case $POTENTIAL_CXX in 29598 [\\/]* | ?:[\\/]*) 29599 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 29600 ;; 29601 *) 29602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29603 for as_dir in $PATH 29604 do 29605 IFS=$as_save_IFS 29606 test -z "$as_dir" && as_dir=. 29607 for ac_exec_ext in '' $ac_executable_extensions; do 29608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29609 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 29610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29611 break 2 29612 fi 29613 done 29614 done 29615 IFS=$as_save_IFS 29616 29617 ;; 29618 esac 29619 fi 29620 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 29621 if test -n "$POTENTIAL_CXX"; then 29622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 29623 $as_echo "$POTENTIAL_CXX" >&6; } 29624 else 29625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29626 $as_echo "no" >&6; } 29627 fi 29628 29629 29630 test -n "$POTENTIAL_CXX" && break 29631 done 29632 29633 CXX=$POTENTIAL_CXX 29634 fi 29635 29636 if test "x$CXX" = x; then 29637 29638 # Print a helpful message on how to acquire the necessary build dependency. 29639 # devkit is the help tag: freetype, cups, pulse, alsa etc 29640 MISSING_DEPENDENCY=devkit 29641 29642 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29643 cygwin_help $MISSING_DEPENDENCY 29644 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29645 msys_help $MISSING_DEPENDENCY 29646 else 29647 PKGHANDLER_COMMAND= 29648 29649 case $PKGHANDLER in 29650 apt-get) 29651 apt_help $MISSING_DEPENDENCY ;; 29652 yum) 29653 yum_help $MISSING_DEPENDENCY ;; 29654 port) 29655 port_help $MISSING_DEPENDENCY ;; 29656 pkgutil) 29657 pkgutil_help $MISSING_DEPENDENCY ;; 29658 pkgadd) 29659 pkgadd_help $MISSING_DEPENDENCY ;; 29660 esac 29661 29662 if test "x$PKGHANDLER_COMMAND" != x; then 29663 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 29664 fi 29665 fi 29666 29667 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 29668 fi 29669 fi 29670 29671 # Now we have a compiler binary in CXX. Make sure it's okay. 29672 29673 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29674 29675 # First separate the path from the arguments. This will split at the first 29676 # space. 29677 complete="$CXX" 29678 path="${complete%% *}" 29679 tmp="$complete EOL" 29680 arguments="${tmp#* }" 29681 29682 # Input might be given as Windows format, start by converting to 29683 # unix format. 29684 new_path=`$CYGPATH -u "$path"` 29685 29686 # Now try to locate executable using which 29687 new_path=`$WHICH "$new_path" 2> /dev/null` 29688 # bat and cmd files are not always considered executable in cygwin causing which 29689 # to not find them 29690 if test "x$new_path" = x \ 29691 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29692 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29693 new_path=`$CYGPATH -u "$path"` 29694 fi 29695 if test "x$new_path" = x; then 29696 # Oops. Which didn't find the executable. 29697 # The splitting of arguments from the executable at a space might have been incorrect, 29698 # since paths with space are more likely in Windows. Give it another try with the whole 29699 # argument. 29700 path="$complete" 29701 arguments="EOL" 29702 new_path=`$CYGPATH -u "$path"` 29703 new_path=`$WHICH "$new_path" 2> /dev/null` 29704 # bat and cmd files are not always considered executable in cygwin causing which 29705 # to not find them 29706 if test "x$new_path" = x \ 29707 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29708 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29709 new_path=`$CYGPATH -u "$path"` 29710 fi 29711 if test "x$new_path" = x; then 29712 # It's still not found. Now this is an unrecoverable error. 29713 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29714 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29715 has_space=`$ECHO "$complete" | $GREP " "` 29716 if test "x$has_space" != x; then 29717 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29718 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29719 fi 29720 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29721 fi 29722 fi 29723 29724 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29725 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29726 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29727 # "foo.exe" is OK but "foo" is an error. 29728 # 29729 # This test is therefore slightly more accurate than "test -f" to check for file presence. 29730 # It is also a way to make sure we got the proper file name for the real test later on. 29731 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29732 if test "x$test_shortpath" = x; then 29733 # Short path failed, file does not exist as specified. 29734 # Try adding .exe or .cmd 29735 if test -f "${new_path}.exe"; then 29736 input_to_shortpath="${new_path}.exe" 29737 elif test -f "${new_path}.cmd"; then 29738 input_to_shortpath="${new_path}.cmd" 29739 else 29740 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 29741 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 29742 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 29743 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 29744 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29745 fi 29746 else 29747 input_to_shortpath="$new_path" 29748 fi 29749 29750 # Call helper function which possibly converts this using DOS-style short mode. 29751 # If so, the updated path is stored in $new_path. 29752 new_path="$input_to_shortpath" 29753 29754 input_path="$input_to_shortpath" 29755 # Check if we need to convert this using DOS-style short mode. If the path 29756 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29757 # take no chances and rewrite it. 29758 # Note: m4 eats our [], so we need to use [ and ] instead. 29759 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29760 if test "x$has_forbidden_chars" != x; then 29761 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29762 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29763 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29764 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29765 # Going to short mode and back again did indeed matter. Since short mode is 29766 # case insensitive, let's make it lowercase to improve readability. 29767 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29768 # Now convert it back to Unix-stile (cygpath) 29769 input_path=`$CYGPATH -u "$shortmode_path"` 29770 new_path="$input_path" 29771 fi 29772 fi 29773 29774 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29775 if test "x$test_cygdrive_prefix" = x; then 29776 # As a simple fix, exclude /usr/bin since it's not a real path. 29777 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 29778 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29779 # a path prefixed by /cygdrive for fixpath to work. 29780 new_path="$CYGWIN_ROOT_PATH$input_path" 29781 fi 29782 fi 29783 29784 # remove trailing .exe if any 29785 new_path="${new_path/%.exe/}" 29786 29787 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29788 29789 # First separate the path from the arguments. This will split at the first 29790 # space. 29791 complete="$CXX" 29792 path="${complete%% *}" 29793 tmp="$complete EOL" 29794 arguments="${tmp#* }" 29795 29796 # Input might be given as Windows format, start by converting to 29797 # unix format. 29798 new_path="$path" 29799 29800 windows_path="$new_path" 29801 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29802 unix_path=`$CYGPATH -u "$windows_path"` 29803 new_path="$unix_path" 29804 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29805 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29806 new_path="$unix_path" 29807 fi 29808 29809 29810 # Now try to locate executable using which 29811 new_path=`$WHICH "$new_path" 2> /dev/null` 29812 29813 if test "x$new_path" = x; then 29814 # Oops. Which didn't find the executable. 29815 # The splitting of arguments from the executable at a space might have been incorrect, 29816 # since paths with space are more likely in Windows. Give it another try with the whole 29817 # argument. 29818 path="$complete" 29819 arguments="EOL" 29820 new_path="$path" 29821 29822 windows_path="$new_path" 29823 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29824 unix_path=`$CYGPATH -u "$windows_path"` 29825 new_path="$unix_path" 29826 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29827 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29828 new_path="$unix_path" 29829 fi 29830 29831 29832 new_path=`$WHICH "$new_path" 2> /dev/null` 29833 # bat and cmd files are not always considered executable in MSYS causing which 29834 # to not find them 29835 if test "x$new_path" = x \ 29836 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29837 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29838 new_path="$path" 29839 29840 windows_path="$new_path" 29841 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29842 unix_path=`$CYGPATH -u "$windows_path"` 29843 new_path="$unix_path" 29844 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29845 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29846 new_path="$unix_path" 29847 fi 29848 29849 fi 29850 29851 if test "x$new_path" = x; then 29852 # It's still not found. Now this is an unrecoverable error. 29853 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29854 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29855 has_space=`$ECHO "$complete" | $GREP " "` 29856 if test "x$has_space" != x; then 29857 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29858 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29859 fi 29860 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29861 fi 29862 fi 29863 29864 # Now new_path has a complete unix path to the binary 29865 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29866 # Keep paths in /bin as-is, but remove trailing .exe if any 29867 new_path="${new_path/%.exe/}" 29868 # Do not save /bin paths to all_fixpath_prefixes! 29869 else 29870 # Not in mixed or Windows style, start by that. 29871 new_path=`cmd //c echo $new_path` 29872 29873 input_path="$new_path" 29874 # Check if we need to convert this using DOS-style short mode. If the path 29875 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29876 # take no chances and rewrite it. 29877 # Note: m4 eats our [], so we need to use [ and ] instead. 29878 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29879 if test "x$has_forbidden_chars" != x; then 29880 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29881 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29882 fi 29883 29884 # Output is in $new_path 29885 29886 windows_path="$new_path" 29887 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29888 unix_path=`$CYGPATH -u "$windows_path"` 29889 new_path="$unix_path" 29890 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29891 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29892 new_path="$unix_path" 29893 fi 29894 29895 # remove trailing .exe if any 29896 new_path="${new_path/%.exe/}" 29897 29898 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29899 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29900 fi 29901 29902 else 29903 # We're on a posix platform. Hooray! :) 29904 # First separate the path from the arguments. This will split at the first 29905 # space. 29906 complete="$CXX" 29907 path="${complete%% *}" 29908 tmp="$complete EOL" 29909 arguments="${tmp#* }" 29910 29911 # Cannot rely on the command "which" here since it doesn't always work. 29912 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29913 if test -z "$is_absolute_path"; then 29914 # Path to executable is not absolute. Find it. 29915 IFS_save="$IFS" 29916 IFS=: 29917 for p in $PATH; do 29918 if test -f "$p/$path" && test -x "$p/$path"; then 29919 new_path="$p/$path" 29920 break 29921 fi 29922 done 29923 IFS="$IFS_save" 29924 else 29925 # This is an absolute path, we can use it without further modifications. 29926 new_path="$path" 29927 fi 29928 29929 if test "x$new_path" = x; then 29930 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29931 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29932 has_space=`$ECHO "$complete" | $GREP " "` 29933 if test "x$has_space" != x; then 29934 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29935 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29936 fi 29937 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29938 fi 29939 fi 29940 29941 # Now join together the path and the arguments once again 29942 if test "x$arguments" != xEOL; then 29943 new_complete="$new_path ${arguments% *}" 29944 else 29945 new_complete="$new_path" 29946 fi 29947 29948 if test "x$complete" != "x$new_complete"; then 29949 CXX="$new_complete" 29950 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 29951 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 29952 fi 29953 29954 TEST_COMPILER="$CXX" 29955 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 29956 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 29957 if test "x$OPENJDK_BUILD_OS" != xaix; then 29958 # FIXME: This test should not be needed anymore; we don't do that for any platform. 29959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 29960 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 29961 29962 if test "x$OPENJDK_BUILD_OS" != xwindows; then 29963 # Follow a chain of symbolic links. Use readlink 29964 # where it exists, else fall back to horribly 29965 # complicated shell code. 29966 if test "x$READLINK_TESTED" != yes; then 29967 # On MacOSX there is a readlink tool with a different 29968 # purpose than the GNU readlink tool. Check the found readlink. 29969 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 29970 if test "x$ISGNU" = x; then 29971 # A readlink that we do not know how to use. 29972 # Are there other non-GNU readlinks out there? 29973 READLINK_TESTED=yes 29974 READLINK= 29975 fi 29976 fi 29977 29978 if test "x$READLINK" != x; then 29979 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 29980 else 29981 # Save the current directory for restoring afterwards 29982 STARTDIR=$PWD 29983 COUNTER=0 29984 sym_link_dir=`$DIRNAME $TEST_COMPILER` 29985 sym_link_file=`$BASENAME $TEST_COMPILER` 29986 cd $sym_link_dir 29987 # Use -P flag to resolve symlinks in directories. 29988 cd `$THEPWDCMD -P` 29989 sym_link_dir=`$THEPWDCMD -P` 29990 # Resolve file symlinks 29991 while test $COUNTER -lt 20; do 29992 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 29993 if test "x$ISLINK" == x; then 29994 # This is not a symbolic link! We are done! 29995 break 29996 fi 29997 # Again resolve directory symlinks since the target of the just found 29998 # link could be in a different directory 29999 cd `$DIRNAME $ISLINK` 30000 sym_link_dir=`$THEPWDCMD -P` 30001 sym_link_file=`$BASENAME $ISLINK` 30002 let COUNTER=COUNTER+1 30003 done 30004 cd $STARTDIR 30005 TEST_COMPILER=$sym_link_dir/$sym_link_file 30006 fi 30007 fi 30008 30009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 30010 $as_echo "$TEST_COMPILER" >&6; } 30011 fi 30012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5 30013 $as_echo_n "checking if CXX is disguised ccache... " >&6; } 30014 30015 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 30016 if test "x$COMPILER_BASENAME" = "xccache"; then 30017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 30018 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 30019 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 30020 # We want to control ccache invocation ourselves, so ignore this cc and try 30021 # searching again. 30022 30023 # Remove the path to the fake ccache cc from the PATH 30024 RETRY_COMPILER_SAVED_PATH="$PATH" 30025 COMPILER_DIRNAME=`$DIRNAME $CXX` 30026 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 30027 30028 # Try again looking for our compiler 30029 if test -n "$ac_tool_prefix"; then 30030 for ac_prog in $TOOLCHAIN_CXX_BINARY 30031 do 30032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30035 $as_echo_n "checking for $ac_word... " >&6; } 30036 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then : 30037 $as_echo_n "(cached) " >&6 30038 else 30039 if test -n "$PROPER_COMPILER_CXX"; then 30040 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test. 30041 else 30042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30043 for as_dir in $PATH 30044 do 30045 IFS=$as_save_IFS 30046 test -z "$as_dir" && as_dir=. 30047 for ac_exec_ext in '' $ac_executable_extensions; do 30048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30049 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog" 30050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30051 break 2 30052 fi 30053 done 30054 done 30055 IFS=$as_save_IFS 30056 30057 fi 30058 fi 30059 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX 30060 if test -n "$PROPER_COMPILER_CXX"; then 30061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 30062 $as_echo "$PROPER_COMPILER_CXX" >&6; } 30063 else 30064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30065 $as_echo "no" >&6; } 30066 fi 30067 30068 30069 test -n "$PROPER_COMPILER_CXX" && break 30070 done 30071 fi 30072 if test -z "$PROPER_COMPILER_CXX"; then 30073 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX 30074 for ac_prog in $TOOLCHAIN_CXX_BINARY 30075 do 30076 # Extract the first word of "$ac_prog", so it can be a program name with args. 30077 set dummy $ac_prog; ac_word=$2 30078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30079 $as_echo_n "checking for $ac_word... " >&6; } 30080 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then : 30081 $as_echo_n "(cached) " >&6 30082 else 30083 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 30084 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test. 30085 else 30086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30087 for as_dir in $PATH 30088 do 30089 IFS=$as_save_IFS 30090 test -z "$as_dir" && as_dir=. 30091 for ac_exec_ext in '' $ac_executable_extensions; do 30092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30093 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog" 30094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30095 break 2 30096 fi 30097 done 30098 done 30099 IFS=$as_save_IFS 30100 30101 fi 30102 fi 30103 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX 30104 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 30105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5 30106 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; } 30107 else 30108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30109 $as_echo "no" >&6; } 30110 fi 30111 30112 30113 test -n "$ac_ct_PROPER_COMPILER_CXX" && break 30114 done 30115 30116 if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then 30117 PROPER_COMPILER_CXX="" 30118 else 30119 case $cross_compiling:$ac_tool_warned in 30120 yes:) 30121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30123 ac_tool_warned=yes ;; 30124 esac 30125 PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX 30126 fi 30127 fi 30128 30129 30130 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30131 30132 # First separate the path from the arguments. This will split at the first 30133 # space. 30134 complete="$PROPER_COMPILER_CXX" 30135 path="${complete%% *}" 30136 tmp="$complete EOL" 30137 arguments="${tmp#* }" 30138 30139 # Input might be given as Windows format, start by converting to 30140 # unix format. 30141 new_path=`$CYGPATH -u "$path"` 30142 30143 # Now try to locate executable using which 30144 new_path=`$WHICH "$new_path" 2> /dev/null` 30145 # bat and cmd files are not always considered executable in cygwin causing which 30146 # to not find them 30147 if test "x$new_path" = x \ 30148 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30149 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30150 new_path=`$CYGPATH -u "$path"` 30151 fi 30152 if test "x$new_path" = x; then 30153 # Oops. Which didn't find the executable. 30154 # The splitting of arguments from the executable at a space might have been incorrect, 30155 # since paths with space are more likely in Windows. Give it another try with the whole 30156 # argument. 30157 path="$complete" 30158 arguments="EOL" 30159 new_path=`$CYGPATH -u "$path"` 30160 new_path=`$WHICH "$new_path" 2> /dev/null` 30161 # bat and cmd files are not always considered executable in cygwin causing which 30162 # to not find them 30163 if test "x$new_path" = x \ 30164 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30165 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30166 new_path=`$CYGPATH -u "$path"` 30167 fi 30168 if test "x$new_path" = x; then 30169 # It's still not found. Now this is an unrecoverable error. 30170 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30171 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30172 has_space=`$ECHO "$complete" | $GREP " "` 30173 if test "x$has_space" != x; then 30174 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30175 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30176 fi 30177 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30178 fi 30179 fi 30180 30181 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30182 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30183 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30184 # "foo.exe" is OK but "foo" is an error. 30185 # 30186 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30187 # It is also a way to make sure we got the proper file name for the real test later on. 30188 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30189 if test "x$test_shortpath" = x; then 30190 # Short path failed, file does not exist as specified. 30191 # Try adding .exe or .cmd 30192 if test -f "${new_path}.exe"; then 30193 input_to_shortpath="${new_path}.exe" 30194 elif test -f "${new_path}.cmd"; then 30195 input_to_shortpath="${new_path}.cmd" 30196 else 30197 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5 30198 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;} 30199 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30200 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30201 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30202 fi 30203 else 30204 input_to_shortpath="$new_path" 30205 fi 30206 30207 # Call helper function which possibly converts this using DOS-style short mode. 30208 # If so, the updated path is stored in $new_path. 30209 new_path="$input_to_shortpath" 30210 30211 input_path="$input_to_shortpath" 30212 # Check if we need to convert this using DOS-style short mode. If the path 30213 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30214 # take no chances and rewrite it. 30215 # Note: m4 eats our [], so we need to use [ and ] instead. 30216 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30217 if test "x$has_forbidden_chars" != x; then 30218 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30219 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30220 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30221 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30222 # Going to short mode and back again did indeed matter. Since short mode is 30223 # case insensitive, let's make it lowercase to improve readability. 30224 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30225 # Now convert it back to Unix-stile (cygpath) 30226 input_path=`$CYGPATH -u "$shortmode_path"` 30227 new_path="$input_path" 30228 fi 30229 fi 30230 30231 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30232 if test "x$test_cygdrive_prefix" = x; then 30233 # As a simple fix, exclude /usr/bin since it's not a real path. 30234 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30235 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30236 # a path prefixed by /cygdrive for fixpath to work. 30237 new_path="$CYGWIN_ROOT_PATH$input_path" 30238 fi 30239 fi 30240 30241 # remove trailing .exe if any 30242 new_path="${new_path/%.exe/}" 30243 30244 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30245 30246 # First separate the path from the arguments. This will split at the first 30247 # space. 30248 complete="$PROPER_COMPILER_CXX" 30249 path="${complete%% *}" 30250 tmp="$complete EOL" 30251 arguments="${tmp#* }" 30252 30253 # Input might be given as Windows format, start by converting to 30254 # unix format. 30255 new_path="$path" 30256 30257 windows_path="$new_path" 30258 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30259 unix_path=`$CYGPATH -u "$windows_path"` 30260 new_path="$unix_path" 30261 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30262 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30263 new_path="$unix_path" 30264 fi 30265 30266 30267 # Now try to locate executable using which 30268 new_path=`$WHICH "$new_path" 2> /dev/null` 30269 30270 if test "x$new_path" = x; then 30271 # Oops. Which didn't find the executable. 30272 # The splitting of arguments from the executable at a space might have been incorrect, 30273 # since paths with space are more likely in Windows. Give it another try with the whole 30274 # argument. 30275 path="$complete" 30276 arguments="EOL" 30277 new_path="$path" 30278 30279 windows_path="$new_path" 30280 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30281 unix_path=`$CYGPATH -u "$windows_path"` 30282 new_path="$unix_path" 30283 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30284 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30285 new_path="$unix_path" 30286 fi 30287 30288 30289 new_path=`$WHICH "$new_path" 2> /dev/null` 30290 # bat and cmd files are not always considered executable in MSYS causing which 30291 # to not find them 30292 if test "x$new_path" = x \ 30293 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30294 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30295 new_path="$path" 30296 30297 windows_path="$new_path" 30298 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30299 unix_path=`$CYGPATH -u "$windows_path"` 30300 new_path="$unix_path" 30301 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30302 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30303 new_path="$unix_path" 30304 fi 30305 30306 fi 30307 30308 if test "x$new_path" = x; then 30309 # It's still not found. Now this is an unrecoverable error. 30310 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30311 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30312 has_space=`$ECHO "$complete" | $GREP " "` 30313 if test "x$has_space" != x; then 30314 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30315 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30316 fi 30317 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30318 fi 30319 fi 30320 30321 # Now new_path has a complete unix path to the binary 30322 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30323 # Keep paths in /bin as-is, but remove trailing .exe if any 30324 new_path="${new_path/%.exe/}" 30325 # Do not save /bin paths to all_fixpath_prefixes! 30326 else 30327 # Not in mixed or Windows style, start by that. 30328 new_path=`cmd //c echo $new_path` 30329 30330 input_path="$new_path" 30331 # Check if we need to convert this using DOS-style short mode. If the path 30332 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30333 # take no chances and rewrite it. 30334 # Note: m4 eats our [], so we need to use [ and ] instead. 30335 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30336 if test "x$has_forbidden_chars" != x; then 30337 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30338 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30339 fi 30340 30341 # Output is in $new_path 30342 30343 windows_path="$new_path" 30344 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30345 unix_path=`$CYGPATH -u "$windows_path"` 30346 new_path="$unix_path" 30347 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30348 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30349 new_path="$unix_path" 30350 fi 30351 30352 # remove trailing .exe if any 30353 new_path="${new_path/%.exe/}" 30354 30355 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30356 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30357 fi 30358 30359 else 30360 # We're on a posix platform. Hooray! :) 30361 # First separate the path from the arguments. This will split at the first 30362 # space. 30363 complete="$PROPER_COMPILER_CXX" 30364 path="${complete%% *}" 30365 tmp="$complete EOL" 30366 arguments="${tmp#* }" 30367 30368 # Cannot rely on the command "which" here since it doesn't always work. 30369 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30370 if test -z "$is_absolute_path"; then 30371 # Path to executable is not absolute. Find it. 30372 IFS_save="$IFS" 30373 IFS=: 30374 for p in $PATH; do 30375 if test -f "$p/$path" && test -x "$p/$path"; then 30376 new_path="$p/$path" 30377 break 30378 fi 30379 done 30380 IFS="$IFS_save" 30381 else 30382 # This is an absolute path, we can use it without further modifications. 30383 new_path="$path" 30384 fi 30385 30386 if test "x$new_path" = x; then 30387 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30388 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30389 has_space=`$ECHO "$complete" | $GREP " "` 30390 if test "x$has_space" != x; then 30391 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30392 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30393 fi 30394 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30395 fi 30396 fi 30397 30398 # Now join together the path and the arguments once again 30399 if test "x$arguments" != xEOL; then 30400 new_complete="$new_path ${arguments% *}" 30401 else 30402 new_complete="$new_path" 30403 fi 30404 30405 if test "x$complete" != "x$new_complete"; then 30406 PROPER_COMPILER_CXX="$new_complete" 30407 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5 30408 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;} 30409 fi 30410 30411 PATH="$RETRY_COMPILER_SAVED_PATH" 30412 30413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5 30414 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; } 30415 30416 if test "x$OPENJDK_BUILD_OS" != xwindows; then 30417 # Follow a chain of symbolic links. Use readlink 30418 # where it exists, else fall back to horribly 30419 # complicated shell code. 30420 if test "x$READLINK_TESTED" != yes; then 30421 # On MacOSX there is a readlink tool with a different 30422 # purpose than the GNU readlink tool. Check the found readlink. 30423 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 30424 if test "x$ISGNU" = x; then 30425 # A readlink that we do not know how to use. 30426 # Are there other non-GNU readlinks out there? 30427 READLINK_TESTED=yes 30428 READLINK= 30429 fi 30430 fi 30431 30432 if test "x$READLINK" != x; then 30433 PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX` 30434 else 30435 # Save the current directory for restoring afterwards 30436 STARTDIR=$PWD 30437 COUNTER=0 30438 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX` 30439 sym_link_file=`$BASENAME $PROPER_COMPILER_CXX` 30440 cd $sym_link_dir 30441 # Use -P flag to resolve symlinks in directories. 30442 cd `$THEPWDCMD -P` 30443 sym_link_dir=`$THEPWDCMD -P` 30444 # Resolve file symlinks 30445 while test $COUNTER -lt 20; do 30446 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 30447 if test "x$ISLINK" == x; then 30448 # This is not a symbolic link! We are done! 30449 break 30450 fi 30451 # Again resolve directory symlinks since the target of the just found 30452 # link could be in a different directory 30453 cd `$DIRNAME $ISLINK` 30454 sym_link_dir=`$THEPWDCMD -P` 30455 sym_link_file=`$BASENAME $ISLINK` 30456 let COUNTER=COUNTER+1 30457 done 30458 cd $STARTDIR 30459 PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file 30460 fi 30461 fi 30462 30463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 30464 $as_echo "$PROPER_COMPILER_CXX" >&6; } 30465 CXX="$PROPER_COMPILER_CXX" 30466 else 30467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5 30468 $as_echo "no, keeping CXX" >&6; } 30469 fi 30470 30471 30472 COMPILER=$CXX 30473 COMPILER_NAME=$COMPILER_NAME 30474 30475 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 30476 # cc -V output typically looks like 30477 # cc: Sun C 5.12 Linux_i386 2011/11/16 30478 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 30479 # Check that this is likely to be the Solaris Studio cc. 30480 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 30481 if test $? -ne 0; then 30482 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30483 { $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 30484 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30485 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30486 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30487 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30488 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30489 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30490 fi 30491 # Remove usage instructions (if present), and 30492 # collapse compiler output into a single line 30493 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30494 $SED -e 's/ *[Uu]sage:.*//'` 30495 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30496 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 30497 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 30498 # xlc -qversion output typically looks like 30499 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 30500 # Version: 11.01.0000.0015 30501 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 30502 # Check that this is likely to be the IBM XL C compiler. 30503 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 30504 if test $? -ne 0; then 30505 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30506 { $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 30507 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30508 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30509 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30510 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30511 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30512 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30513 fi 30514 # Collapse compiler output into a single line 30515 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30516 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30517 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 30518 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 30519 # There is no specific version flag, but all output starts with a version string. 30520 # First line typically looks something like: 30521 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 30522 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 30523 # Check that this is likely to be Microsoft CL.EXE. 30524 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 30525 if test $? -ne 0; then 30526 { $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 30527 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30528 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30529 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30530 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30531 fi 30532 # Collapse compiler output into a single line 30533 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30534 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30535 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 30536 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 30537 # gcc --version output typically looks like 30538 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 30539 # Copyright (C) 2013 Free Software Foundation, Inc. 30540 # This is free software; see the source for copying conditions. There is NO 30541 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 30542 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30543 # Check that this is likely to be GCC. 30544 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 30545 if test $? -ne 0; then 30546 { $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 30547 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30548 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 30549 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 30550 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30551 fi 30552 # Remove Copyright and legalese from version string, and 30553 # collapse into a single line 30554 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30555 $SED -e 's/ *Copyright .*//'` 30556 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30557 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 30558 elif test "x$TOOLCHAIN_TYPE" = xclang; then 30559 # clang --version output typically looks like 30560 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 30561 # clang version 3.3 (tags/RELEASE_33/final) 30562 # or 30563 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 30564 # Target: x86_64-pc-linux-gnu 30565 # Thread model: posix 30566 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30567 # Check that this is likely to be clang 30568 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 30569 if test $? -ne 0; then 30570 { $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 30571 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30572 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30573 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30574 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30575 fi 30576 # Collapse compiler output into a single line 30577 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30578 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30579 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 30580 else 30581 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 30582 fi 30583 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 30584 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 30585 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 30586 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 30587 30588 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 30589 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 30590 30591 30592 # Now that we have resolved CXX ourself, let autoconf have its go at it 30593 ac_ext=cpp 30594 ac_cpp='$CXXCPP $CPPFLAGS' 30595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30598 if test -z "$CXX"; then 30599 if test -n "$CCC"; then 30600 CXX=$CCC 30601 else 30602 if test -n "$ac_tool_prefix"; then 30603 for ac_prog in $CXX 30604 do 30605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30608 $as_echo_n "checking for $ac_word... " >&6; } 30609 if ${ac_cv_prog_CXX+:} false; then : 30610 $as_echo_n "(cached) " >&6 30611 else 30612 if test -n "$CXX"; then 30613 ac_cv_prog_CXX="$CXX" # Let the user override the test. 30614 else 30615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30616 for as_dir in $PATH 30617 do 30618 IFS=$as_save_IFS 30619 test -z "$as_dir" && as_dir=. 30620 for ac_exec_ext in '' $ac_executable_extensions; do 30621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30622 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 30623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30624 break 2 30625 fi 30626 done 30627 done 30628 IFS=$as_save_IFS 30629 30630 fi 30631 fi 30632 CXX=$ac_cv_prog_CXX 30633 if test -n "$CXX"; then 30634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 30635 $as_echo "$CXX" >&6; } 30636 else 30637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30638 $as_echo "no" >&6; } 30639 fi 30640 30641 30642 test -n "$CXX" && break 30643 done 30644 fi 30645 if test -z "$CXX"; then 30646 ac_ct_CXX=$CXX 30647 for ac_prog in $CXX 30648 do 30649 # Extract the first word of "$ac_prog", so it can be a program name with args. 30650 set dummy $ac_prog; ac_word=$2 30651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30652 $as_echo_n "checking for $ac_word... " >&6; } 30653 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 30654 $as_echo_n "(cached) " >&6 30655 else 30656 if test -n "$ac_ct_CXX"; then 30657 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 30658 else 30659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30660 for as_dir in $PATH 30661 do 30662 IFS=$as_save_IFS 30663 test -z "$as_dir" && as_dir=. 30664 for ac_exec_ext in '' $ac_executable_extensions; do 30665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30666 ac_cv_prog_ac_ct_CXX="$ac_prog" 30667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30668 break 2 30669 fi 30670 done 30671 done 30672 IFS=$as_save_IFS 30673 30674 fi 30675 fi 30676 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 30677 if test -n "$ac_ct_CXX"; then 30678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 30679 $as_echo "$ac_ct_CXX" >&6; } 30680 else 30681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30682 $as_echo "no" >&6; } 30683 fi 30684 30685 30686 test -n "$ac_ct_CXX" && break 30687 done 30688 30689 if test "x$ac_ct_CXX" = x; then 30690 CXX="g++" 30691 else 30692 case $cross_compiling:$ac_tool_warned in 30693 yes:) 30694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30696 ac_tool_warned=yes ;; 30697 esac 30698 CXX=$ac_ct_CXX 30699 fi 30700 fi 30701 30702 fi 30703 fi 30704 # Provide some information about the compiler. 30705 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 30706 set X $ac_compile 30707 ac_compiler=$2 30708 for ac_option in --version -v -V -qversion; do 30709 { { ac_try="$ac_compiler $ac_option >&5" 30710 case "(($ac_try" in 30711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30712 *) ac_try_echo=$ac_try;; 30713 esac 30714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30715 $as_echo "$ac_try_echo"; } >&5 30716 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 30717 ac_status=$? 30718 if test -s conftest.err; then 30719 sed '10a\ 30720 ... rest of stderr output deleted ... 30721 10q' conftest.err >conftest.er1 30722 cat conftest.er1 >&5 30723 fi 30724 rm -f conftest.er1 conftest.err 30725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30726 test $ac_status = 0; } 30727 done 30728 30729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 30730 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 30731 if ${ac_cv_cxx_compiler_gnu+:} false; then : 30732 $as_echo_n "(cached) " >&6 30733 else 30734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30735 /* end confdefs.h. */ 30736 30737 int 30738 main () 30739 { 30740 #ifndef __GNUC__ 30741 choke me 30742 #endif 30743 30744 ; 30745 return 0; 30746 } 30747 _ACEOF 30748 if ac_fn_cxx_try_compile "$LINENO"; then : 30749 ac_compiler_gnu=yes 30750 else 30751 ac_compiler_gnu=no 30752 fi 30753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30754 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 30755 30756 fi 30757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 30758 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 30759 if test $ac_compiler_gnu = yes; then 30760 GXX=yes 30761 else 30762 GXX= 30763 fi 30764 ac_test_CXXFLAGS=${CXXFLAGS+set} 30765 ac_save_CXXFLAGS=$CXXFLAGS 30766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 30767 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 30768 if ${ac_cv_prog_cxx_g+:} false; then : 30769 $as_echo_n "(cached) " >&6 30770 else 30771 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 30772 ac_cxx_werror_flag=yes 30773 ac_cv_prog_cxx_g=no 30774 CXXFLAGS="-g" 30775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30776 /* end confdefs.h. */ 30777 30778 int 30779 main () 30780 { 30781 30782 ; 30783 return 0; 30784 } 30785 _ACEOF 30786 if ac_fn_cxx_try_compile "$LINENO"; then : 30787 ac_cv_prog_cxx_g=yes 30788 else 30789 CXXFLAGS="" 30790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30791 /* end confdefs.h. */ 30792 30793 int 30794 main () 30795 { 30796 30797 ; 30798 return 0; 30799 } 30800 _ACEOF 30801 if ac_fn_cxx_try_compile "$LINENO"; then : 30802 30803 else 30804 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 30805 CXXFLAGS="-g" 30806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30807 /* end confdefs.h. */ 30808 30809 int 30810 main () 30811 { 30812 30813 ; 30814 return 0; 30815 } 30816 _ACEOF 30817 if ac_fn_cxx_try_compile "$LINENO"; then : 30818 ac_cv_prog_cxx_g=yes 30819 fi 30820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30821 fi 30822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30823 fi 30824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30825 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 30826 fi 30827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 30828 $as_echo "$ac_cv_prog_cxx_g" >&6; } 30829 if test "$ac_test_CXXFLAGS" = set; then 30830 CXXFLAGS=$ac_save_CXXFLAGS 30831 elif test $ac_cv_prog_cxx_g = yes; then 30832 if test "$GXX" = yes; then 30833 CXXFLAGS="-g -O2" 30834 else 30835 CXXFLAGS="-g" 30836 fi 30837 else 30838 if test "$GXX" = yes; then 30839 CXXFLAGS="-O2" 30840 else 30841 CXXFLAGS= 30842 fi 30843 fi 30844 ac_ext=cpp 30845 ac_cpp='$CXXCPP $CPPFLAGS' 30846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30849 30850 30851 # 30852 # Setup the preprocessor (CPP and CXXCPP) 30853 # 30854 ac_ext=c 30855 ac_cpp='$CPP $CPPFLAGS' 30856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30858 ac_compiler_gnu=$ac_cv_c_compiler_gnu 30859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 30860 $as_echo_n "checking how to run the C preprocessor... " >&6; } 30861 # On Suns, sometimes $CPP names a directory. 30862 if test -n "$CPP" && test -d "$CPP"; then 30863 CPP= 30864 fi 30865 if test -z "$CPP"; then 30866 if ${ac_cv_prog_CPP+:} false; then : 30867 $as_echo_n "(cached) " >&6 30868 else 30869 # Double quotes because CPP needs to be expanded 30870 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 30871 do 30872 ac_preproc_ok=false 30873 for ac_c_preproc_warn_flag in '' yes 30874 do 30875 # Use a header file that comes with gcc, so configuring glibc 30876 # with a fresh cross-compiler works. 30877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30878 # <limits.h> exists even on freestanding compilers. 30879 # On the NeXT, cc -E runs the code through the compiler's parser, 30880 # not just through cpp. "Syntax error" is here to catch this case. 30881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30882 /* end confdefs.h. */ 30883 #ifdef __STDC__ 30884 # include <limits.h> 30885 #else 30886 # include <assert.h> 30887 #endif 30888 Syntax error 30889 _ACEOF 30890 if ac_fn_c_try_cpp "$LINENO"; then : 30891 30892 else 30893 # Broken: fails on valid input. 30894 continue 30895 fi 30896 rm -f conftest.err conftest.i conftest.$ac_ext 30897 30898 # OK, works on sane cases. Now check whether nonexistent headers 30899 # can be detected and how. 30900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30901 /* end confdefs.h. */ 30902 #include <ac_nonexistent.h> 30903 _ACEOF 30904 if ac_fn_c_try_cpp "$LINENO"; then : 30905 # Broken: success on invalid input. 30906 continue 30907 else 30908 # Passes both tests. 30909 ac_preproc_ok=: 30910 break 30911 fi 30912 rm -f conftest.err conftest.i conftest.$ac_ext 30913 30914 done 30915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30916 rm -f conftest.i conftest.err conftest.$ac_ext 30917 if $ac_preproc_ok; then : 30918 break 30919 fi 30920 30921 done 30922 ac_cv_prog_CPP=$CPP 30923 30924 fi 30925 CPP=$ac_cv_prog_CPP 30926 else 30927 ac_cv_prog_CPP=$CPP 30928 fi 30929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 30930 $as_echo "$CPP" >&6; } 30931 ac_preproc_ok=false 30932 for ac_c_preproc_warn_flag in '' yes 30933 do 30934 # Use a header file that comes with gcc, so configuring glibc 30935 # with a fresh cross-compiler works. 30936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30937 # <limits.h> exists even on freestanding compilers. 30938 # On the NeXT, cc -E runs the code through the compiler's parser, 30939 # not just through cpp. "Syntax error" is here to catch this case. 30940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30941 /* end confdefs.h. */ 30942 #ifdef __STDC__ 30943 # include <limits.h> 30944 #else 30945 # include <assert.h> 30946 #endif 30947 Syntax error 30948 _ACEOF 30949 if ac_fn_c_try_cpp "$LINENO"; then : 30950 30951 else 30952 # Broken: fails on valid input. 30953 continue 30954 fi 30955 rm -f conftest.err conftest.i conftest.$ac_ext 30956 30957 # OK, works on sane cases. Now check whether nonexistent headers 30958 # can be detected and how. 30959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30960 /* end confdefs.h. */ 30961 #include <ac_nonexistent.h> 30962 _ACEOF 30963 if ac_fn_c_try_cpp "$LINENO"; then : 30964 # Broken: success on invalid input. 30965 continue 30966 else 30967 # Passes both tests. 30968 ac_preproc_ok=: 30969 break 30970 fi 30971 rm -f conftest.err conftest.i conftest.$ac_ext 30972 30973 done 30974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30975 rm -f conftest.i conftest.err conftest.$ac_ext 30976 if $ac_preproc_ok; then : 30977 30978 else 30979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30981 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 30982 See \`config.log' for more details" "$LINENO" 5; } 30983 fi 30984 30985 ac_ext=cpp 30986 ac_cpp='$CXXCPP $CPPFLAGS' 30987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30990 30991 30992 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30993 30994 # First separate the path from the arguments. This will split at the first 30995 # space. 30996 complete="$CPP" 30997 path="${complete%% *}" 30998 tmp="$complete EOL" 30999 arguments="${tmp#* }" 31000 31001 # Input might be given as Windows format, start by converting to 31002 # unix format. 31003 new_path=`$CYGPATH -u "$path"` 31004 31005 # Now try to locate executable using which 31006 new_path=`$WHICH "$new_path" 2> /dev/null` 31007 # bat and cmd files are not always considered executable in cygwin causing which 31008 # to not find them 31009 if test "x$new_path" = x \ 31010 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31011 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31012 new_path=`$CYGPATH -u "$path"` 31013 fi 31014 if test "x$new_path" = x; then 31015 # Oops. Which didn't find the executable. 31016 # The splitting of arguments from the executable at a space might have been incorrect, 31017 # since paths with space are more likely in Windows. Give it another try with the whole 31018 # argument. 31019 path="$complete" 31020 arguments="EOL" 31021 new_path=`$CYGPATH -u "$path"` 31022 new_path=`$WHICH "$new_path" 2> /dev/null` 31023 # bat and cmd files are not always considered executable in cygwin causing which 31024 # to not find them 31025 if test "x$new_path" = x \ 31026 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31027 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31028 new_path=`$CYGPATH -u "$path"` 31029 fi 31030 if test "x$new_path" = x; then 31031 # It's still not found. Now this is an unrecoverable error. 31032 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31033 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31034 has_space=`$ECHO "$complete" | $GREP " "` 31035 if test "x$has_space" != x; then 31036 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31037 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31038 fi 31039 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31040 fi 31041 fi 31042 31043 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31044 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31045 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31046 # "foo.exe" is OK but "foo" is an error. 31047 # 31048 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31049 # It is also a way to make sure we got the proper file name for the real test later on. 31050 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31051 if test "x$test_shortpath" = x; then 31052 # Short path failed, file does not exist as specified. 31053 # Try adding .exe or .cmd 31054 if test -f "${new_path}.exe"; then 31055 input_to_shortpath="${new_path}.exe" 31056 elif test -f "${new_path}.cmd"; then 31057 input_to_shortpath="${new_path}.cmd" 31058 else 31059 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 31060 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 31061 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31062 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31063 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31064 fi 31065 else 31066 input_to_shortpath="$new_path" 31067 fi 31068 31069 # Call helper function which possibly converts this using DOS-style short mode. 31070 # If so, the updated path is stored in $new_path. 31071 new_path="$input_to_shortpath" 31072 31073 input_path="$input_to_shortpath" 31074 # Check if we need to convert this using DOS-style short mode. If the path 31075 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31076 # take no chances and rewrite it. 31077 # Note: m4 eats our [], so we need to use [ and ] instead. 31078 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31079 if test "x$has_forbidden_chars" != x; then 31080 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31081 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31082 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31083 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31084 # Going to short mode and back again did indeed matter. Since short mode is 31085 # case insensitive, let's make it lowercase to improve readability. 31086 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31087 # Now convert it back to Unix-stile (cygpath) 31088 input_path=`$CYGPATH -u "$shortmode_path"` 31089 new_path="$input_path" 31090 fi 31091 fi 31092 31093 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31094 if test "x$test_cygdrive_prefix" = x; then 31095 # As a simple fix, exclude /usr/bin since it's not a real path. 31096 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31097 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31098 # a path prefixed by /cygdrive for fixpath to work. 31099 new_path="$CYGWIN_ROOT_PATH$input_path" 31100 fi 31101 fi 31102 31103 # remove trailing .exe if any 31104 new_path="${new_path/%.exe/}" 31105 31106 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31107 31108 # First separate the path from the arguments. This will split at the first 31109 # space. 31110 complete="$CPP" 31111 path="${complete%% *}" 31112 tmp="$complete EOL" 31113 arguments="${tmp#* }" 31114 31115 # Input might be given as Windows format, start by converting to 31116 # unix format. 31117 new_path="$path" 31118 31119 windows_path="$new_path" 31120 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31121 unix_path=`$CYGPATH -u "$windows_path"` 31122 new_path="$unix_path" 31123 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31124 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31125 new_path="$unix_path" 31126 fi 31127 31128 31129 # Now try to locate executable using which 31130 new_path=`$WHICH "$new_path" 2> /dev/null` 31131 31132 if test "x$new_path" = x; then 31133 # Oops. Which didn't find the executable. 31134 # The splitting of arguments from the executable at a space might have been incorrect, 31135 # since paths with space are more likely in Windows. Give it another try with the whole 31136 # argument. 31137 path="$complete" 31138 arguments="EOL" 31139 new_path="$path" 31140 31141 windows_path="$new_path" 31142 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31143 unix_path=`$CYGPATH -u "$windows_path"` 31144 new_path="$unix_path" 31145 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31146 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31147 new_path="$unix_path" 31148 fi 31149 31150 31151 new_path=`$WHICH "$new_path" 2> /dev/null` 31152 # bat and cmd files are not always considered executable in MSYS causing which 31153 # to not find them 31154 if test "x$new_path" = x \ 31155 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31156 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31157 new_path="$path" 31158 31159 windows_path="$new_path" 31160 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31161 unix_path=`$CYGPATH -u "$windows_path"` 31162 new_path="$unix_path" 31163 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31164 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31165 new_path="$unix_path" 31166 fi 31167 31168 fi 31169 31170 if test "x$new_path" = x; then 31171 # It's still not found. Now this is an unrecoverable error. 31172 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31173 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31174 has_space=`$ECHO "$complete" | $GREP " "` 31175 if test "x$has_space" != x; then 31176 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31177 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31178 fi 31179 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31180 fi 31181 fi 31182 31183 # Now new_path has a complete unix path to the binary 31184 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31185 # Keep paths in /bin as-is, but remove trailing .exe if any 31186 new_path="${new_path/%.exe/}" 31187 # Do not save /bin paths to all_fixpath_prefixes! 31188 else 31189 # Not in mixed or Windows style, start by that. 31190 new_path=`cmd //c echo $new_path` 31191 31192 input_path="$new_path" 31193 # Check if we need to convert this using DOS-style short mode. If the path 31194 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31195 # take no chances and rewrite it. 31196 # Note: m4 eats our [], so we need to use [ and ] instead. 31197 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31198 if test "x$has_forbidden_chars" != x; then 31199 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31200 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31201 fi 31202 31203 # Output is in $new_path 31204 31205 windows_path="$new_path" 31206 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31207 unix_path=`$CYGPATH -u "$windows_path"` 31208 new_path="$unix_path" 31209 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31210 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31211 new_path="$unix_path" 31212 fi 31213 31214 # remove trailing .exe if any 31215 new_path="${new_path/%.exe/}" 31216 31217 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31218 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31219 fi 31220 31221 else 31222 # We're on a posix platform. Hooray! :) 31223 # First separate the path from the arguments. This will split at the first 31224 # space. 31225 complete="$CPP" 31226 path="${complete%% *}" 31227 tmp="$complete EOL" 31228 arguments="${tmp#* }" 31229 31230 # Cannot rely on the command "which" here since it doesn't always work. 31231 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31232 if test -z "$is_absolute_path"; then 31233 # Path to executable is not absolute. Find it. 31234 IFS_save="$IFS" 31235 IFS=: 31236 for p in $PATH; do 31237 if test -f "$p/$path" && test -x "$p/$path"; then 31238 new_path="$p/$path" 31239 break 31240 fi 31241 done 31242 IFS="$IFS_save" 31243 else 31244 # This is an absolute path, we can use it without further modifications. 31245 new_path="$path" 31246 fi 31247 31248 if test "x$new_path" = x; then 31249 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31250 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31251 has_space=`$ECHO "$complete" | $GREP " "` 31252 if test "x$has_space" != x; then 31253 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31254 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31255 fi 31256 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31257 fi 31258 fi 31259 31260 # Now join together the path and the arguments once again 31261 if test "x$arguments" != xEOL; then 31262 new_complete="$new_path ${arguments% *}" 31263 else 31264 new_complete="$new_path" 31265 fi 31266 31267 if test "x$complete" != "x$new_complete"; then 31268 CPP="$new_complete" 31269 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 31270 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 31271 fi 31272 31273 ac_ext=cpp 31274 ac_cpp='$CXXCPP $CPPFLAGS' 31275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 31279 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 31280 if test -z "$CXXCPP"; then 31281 if ${ac_cv_prog_CXXCPP+:} false; then : 31282 $as_echo_n "(cached) " >&6 31283 else 31284 # Double quotes because CXXCPP needs to be expanded 31285 for CXXCPP in "$CXX -E" "/lib/cpp" 31286 do 31287 ac_preproc_ok=false 31288 for ac_cxx_preproc_warn_flag in '' yes 31289 do 31290 # Use a header file that comes with gcc, so configuring glibc 31291 # with a fresh cross-compiler works. 31292 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31293 # <limits.h> exists even on freestanding compilers. 31294 # On the NeXT, cc -E runs the code through the compiler's parser, 31295 # not just through cpp. "Syntax error" is here to catch this case. 31296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31297 /* end confdefs.h. */ 31298 #ifdef __STDC__ 31299 # include <limits.h> 31300 #else 31301 # include <assert.h> 31302 #endif 31303 Syntax error 31304 _ACEOF 31305 if ac_fn_cxx_try_cpp "$LINENO"; then : 31306 31307 else 31308 # Broken: fails on valid input. 31309 continue 31310 fi 31311 rm -f conftest.err conftest.i conftest.$ac_ext 31312 31313 # OK, works on sane cases. Now check whether nonexistent headers 31314 # can be detected and how. 31315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31316 /* end confdefs.h. */ 31317 #include <ac_nonexistent.h> 31318 _ACEOF 31319 if ac_fn_cxx_try_cpp "$LINENO"; then : 31320 # Broken: success on invalid input. 31321 continue 31322 else 31323 # Passes both tests. 31324 ac_preproc_ok=: 31325 break 31326 fi 31327 rm -f conftest.err conftest.i conftest.$ac_ext 31328 31329 done 31330 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31331 rm -f conftest.i conftest.err conftest.$ac_ext 31332 if $ac_preproc_ok; then : 31333 break 31334 fi 31335 31336 done 31337 ac_cv_prog_CXXCPP=$CXXCPP 31338 31339 fi 31340 CXXCPP=$ac_cv_prog_CXXCPP 31341 else 31342 ac_cv_prog_CXXCPP=$CXXCPP 31343 fi 31344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 31345 $as_echo "$CXXCPP" >&6; } 31346 ac_preproc_ok=false 31347 for ac_cxx_preproc_warn_flag in '' yes 31348 do 31349 # Use a header file that comes with gcc, so configuring glibc 31350 # with a fresh cross-compiler works. 31351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31352 # <limits.h> exists even on freestanding compilers. 31353 # On the NeXT, cc -E runs the code through the compiler's parser, 31354 # not just through cpp. "Syntax error" is here to catch this case. 31355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31356 /* end confdefs.h. */ 31357 #ifdef __STDC__ 31358 # include <limits.h> 31359 #else 31360 # include <assert.h> 31361 #endif 31362 Syntax error 31363 _ACEOF 31364 if ac_fn_cxx_try_cpp "$LINENO"; then : 31365 31366 else 31367 # Broken: fails on valid input. 31368 continue 31369 fi 31370 rm -f conftest.err conftest.i conftest.$ac_ext 31371 31372 # OK, works on sane cases. Now check whether nonexistent headers 31373 # can be detected and how. 31374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31375 /* end confdefs.h. */ 31376 #include <ac_nonexistent.h> 31377 _ACEOF 31378 if ac_fn_cxx_try_cpp "$LINENO"; then : 31379 # Broken: success on invalid input. 31380 continue 31381 else 31382 # Passes both tests. 31383 ac_preproc_ok=: 31384 break 31385 fi 31386 rm -f conftest.err conftest.i conftest.$ac_ext 31387 31388 done 31389 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31390 rm -f conftest.i conftest.err conftest.$ac_ext 31391 if $ac_preproc_ok; then : 31392 31393 else 31394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31396 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 31397 See \`config.log' for more details" "$LINENO" 5; } 31398 fi 31399 31400 ac_ext=cpp 31401 ac_cpp='$CXXCPP $CPPFLAGS' 31402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31405 31406 31407 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31408 31409 # First separate the path from the arguments. This will split at the first 31410 # space. 31411 complete="$CXXCPP" 31412 path="${complete%% *}" 31413 tmp="$complete EOL" 31414 arguments="${tmp#* }" 31415 31416 # Input might be given as Windows format, start by converting to 31417 # unix format. 31418 new_path=`$CYGPATH -u "$path"` 31419 31420 # Now try to locate executable using which 31421 new_path=`$WHICH "$new_path" 2> /dev/null` 31422 # bat and cmd files are not always considered executable in cygwin causing which 31423 # to not find them 31424 if test "x$new_path" = x \ 31425 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31426 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31427 new_path=`$CYGPATH -u "$path"` 31428 fi 31429 if test "x$new_path" = x; then 31430 # Oops. Which didn't find the executable. 31431 # The splitting of arguments from the executable at a space might have been incorrect, 31432 # since paths with space are more likely in Windows. Give it another try with the whole 31433 # argument. 31434 path="$complete" 31435 arguments="EOL" 31436 new_path=`$CYGPATH -u "$path"` 31437 new_path=`$WHICH "$new_path" 2> /dev/null` 31438 # bat and cmd files are not always considered executable in cygwin causing which 31439 # to not find them 31440 if test "x$new_path" = x \ 31441 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31442 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31443 new_path=`$CYGPATH -u "$path"` 31444 fi 31445 if test "x$new_path" = x; then 31446 # It's still not found. Now this is an unrecoverable error. 31447 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31448 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31449 has_space=`$ECHO "$complete" | $GREP " "` 31450 if test "x$has_space" != x; then 31451 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31452 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31453 fi 31454 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31455 fi 31456 fi 31457 31458 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31459 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31460 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31461 # "foo.exe" is OK but "foo" is an error. 31462 # 31463 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31464 # It is also a way to make sure we got the proper file name for the real test later on. 31465 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31466 if test "x$test_shortpath" = x; then 31467 # Short path failed, file does not exist as specified. 31468 # Try adding .exe or .cmd 31469 if test -f "${new_path}.exe"; then 31470 input_to_shortpath="${new_path}.exe" 31471 elif test -f "${new_path}.cmd"; then 31472 input_to_shortpath="${new_path}.cmd" 31473 else 31474 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 31475 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 31476 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31477 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31478 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31479 fi 31480 else 31481 input_to_shortpath="$new_path" 31482 fi 31483 31484 # Call helper function which possibly converts this using DOS-style short mode. 31485 # If so, the updated path is stored in $new_path. 31486 new_path="$input_to_shortpath" 31487 31488 input_path="$input_to_shortpath" 31489 # Check if we need to convert this using DOS-style short mode. If the path 31490 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31491 # take no chances and rewrite it. 31492 # Note: m4 eats our [], so we need to use [ and ] instead. 31493 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31494 if test "x$has_forbidden_chars" != x; then 31495 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31496 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31497 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31498 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31499 # Going to short mode and back again did indeed matter. Since short mode is 31500 # case insensitive, let's make it lowercase to improve readability. 31501 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31502 # Now convert it back to Unix-stile (cygpath) 31503 input_path=`$CYGPATH -u "$shortmode_path"` 31504 new_path="$input_path" 31505 fi 31506 fi 31507 31508 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31509 if test "x$test_cygdrive_prefix" = x; then 31510 # As a simple fix, exclude /usr/bin since it's not a real path. 31511 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31512 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31513 # a path prefixed by /cygdrive for fixpath to work. 31514 new_path="$CYGWIN_ROOT_PATH$input_path" 31515 fi 31516 fi 31517 31518 # remove trailing .exe if any 31519 new_path="${new_path/%.exe/}" 31520 31521 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31522 31523 # First separate the path from the arguments. This will split at the first 31524 # space. 31525 complete="$CXXCPP" 31526 path="${complete%% *}" 31527 tmp="$complete EOL" 31528 arguments="${tmp#* }" 31529 31530 # Input might be given as Windows format, start by converting to 31531 # unix format. 31532 new_path="$path" 31533 31534 windows_path="$new_path" 31535 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31536 unix_path=`$CYGPATH -u "$windows_path"` 31537 new_path="$unix_path" 31538 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31539 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31540 new_path="$unix_path" 31541 fi 31542 31543 31544 # Now try to locate executable using which 31545 new_path=`$WHICH "$new_path" 2> /dev/null` 31546 31547 if test "x$new_path" = x; then 31548 # Oops. Which didn't find the executable. 31549 # The splitting of arguments from the executable at a space might have been incorrect, 31550 # since paths with space are more likely in Windows. Give it another try with the whole 31551 # argument. 31552 path="$complete" 31553 arguments="EOL" 31554 new_path="$path" 31555 31556 windows_path="$new_path" 31557 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31558 unix_path=`$CYGPATH -u "$windows_path"` 31559 new_path="$unix_path" 31560 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31561 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31562 new_path="$unix_path" 31563 fi 31564 31565 31566 new_path=`$WHICH "$new_path" 2> /dev/null` 31567 # bat and cmd files are not always considered executable in MSYS causing which 31568 # to not find them 31569 if test "x$new_path" = x \ 31570 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31571 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31572 new_path="$path" 31573 31574 windows_path="$new_path" 31575 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31576 unix_path=`$CYGPATH -u "$windows_path"` 31577 new_path="$unix_path" 31578 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31579 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31580 new_path="$unix_path" 31581 fi 31582 31583 fi 31584 31585 if test "x$new_path" = x; then 31586 # It's still not found. Now this is an unrecoverable error. 31587 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31588 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31589 has_space=`$ECHO "$complete" | $GREP " "` 31590 if test "x$has_space" != x; then 31591 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31592 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31593 fi 31594 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31595 fi 31596 fi 31597 31598 # Now new_path has a complete unix path to the binary 31599 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31600 # Keep paths in /bin as-is, but remove trailing .exe if any 31601 new_path="${new_path/%.exe/}" 31602 # Do not save /bin paths to all_fixpath_prefixes! 31603 else 31604 # Not in mixed or Windows style, start by that. 31605 new_path=`cmd //c echo $new_path` 31606 31607 input_path="$new_path" 31608 # Check if we need to convert this using DOS-style short mode. If the path 31609 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31610 # take no chances and rewrite it. 31611 # Note: m4 eats our [], so we need to use [ and ] instead. 31612 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31613 if test "x$has_forbidden_chars" != x; then 31614 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31615 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31616 fi 31617 31618 # Output is in $new_path 31619 31620 windows_path="$new_path" 31621 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31622 unix_path=`$CYGPATH -u "$windows_path"` 31623 new_path="$unix_path" 31624 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31625 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31626 new_path="$unix_path" 31627 fi 31628 31629 # remove trailing .exe if any 31630 new_path="${new_path/%.exe/}" 31631 31632 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31633 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31634 fi 31635 31636 else 31637 # We're on a posix platform. Hooray! :) 31638 # First separate the path from the arguments. This will split at the first 31639 # space. 31640 complete="$CXXCPP" 31641 path="${complete%% *}" 31642 tmp="$complete EOL" 31643 arguments="${tmp#* }" 31644 31645 # Cannot rely on the command "which" here since it doesn't always work. 31646 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31647 if test -z "$is_absolute_path"; then 31648 # Path to executable is not absolute. Find it. 31649 IFS_save="$IFS" 31650 IFS=: 31651 for p in $PATH; do 31652 if test -f "$p/$path" && test -x "$p/$path"; then 31653 new_path="$p/$path" 31654 break 31655 fi 31656 done 31657 IFS="$IFS_save" 31658 else 31659 # This is an absolute path, we can use it without further modifications. 31660 new_path="$path" 31661 fi 31662 31663 if test "x$new_path" = x; then 31664 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31665 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31666 has_space=`$ECHO "$complete" | $GREP " "` 31667 if test "x$has_space" != x; then 31668 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31669 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31670 fi 31671 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31672 fi 31673 fi 31674 31675 # Now join together the path and the arguments once again 31676 if test "x$arguments" != xEOL; then 31677 new_complete="$new_path ${arguments% *}" 31678 else 31679 new_complete="$new_path" 31680 fi 31681 31682 if test "x$complete" != "x$new_complete"; then 31683 CXXCPP="$new_complete" 31684 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 31685 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 31686 fi 31687 31688 31689 # 31690 # Setup the linker (LD) 31691 # 31692 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 31693 # In the Microsoft toolchain we have a separate LD command "link". 31694 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 31695 # a cygwin program for something completely different. 31696 # Extract the first word of "link", so it can be a program name with args. 31697 set dummy link; ac_word=$2 31698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31699 $as_echo_n "checking for $ac_word... " >&6; } 31700 if ${ac_cv_prog_LD+:} false; then : 31701 $as_echo_n "(cached) " >&6 31702 else 31703 if test -n "$LD"; then 31704 ac_cv_prog_LD="$LD" # Let the user override the test. 31705 else 31706 ac_prog_rejected=no 31707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31708 for as_dir in $PATH 31709 do 31710 IFS=$as_save_IFS 31711 test -z "$as_dir" && as_dir=. 31712 for ac_exec_ext in '' $ac_executable_extensions; do 31713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31714 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 31715 ac_prog_rejected=yes 31716 continue 31717 fi 31718 ac_cv_prog_LD="link" 31719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31720 break 2 31721 fi 31722 done 31723 done 31724 IFS=$as_save_IFS 31725 31726 if test $ac_prog_rejected = yes; then 31727 # We found a bogon in the path, so make sure we never use it. 31728 set dummy $ac_cv_prog_LD 31729 shift 31730 if test $# != 0; then 31731 # We chose a different compiler from the bogus one. 31732 # However, it has the same basename, so the bogon will be chosen 31733 # first if we set LD to just the basename; use the full file name. 31734 shift 31735 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 31736 fi 31737 fi 31738 fi 31739 fi 31740 LD=$ac_cv_prog_LD 31741 if test -n "$LD"; then 31742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 31743 $as_echo "$LD" >&6; } 31744 else 31745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31746 $as_echo "no" >&6; } 31747 fi 31748 31749 31750 31751 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31752 31753 # First separate the path from the arguments. This will split at the first 31754 # space. 31755 complete="$LD" 31756 path="${complete%% *}" 31757 tmp="$complete EOL" 31758 arguments="${tmp#* }" 31759 31760 # Input might be given as Windows format, start by converting to 31761 # unix format. 31762 new_path=`$CYGPATH -u "$path"` 31763 31764 # Now try to locate executable using which 31765 new_path=`$WHICH "$new_path" 2> /dev/null` 31766 # bat and cmd files are not always considered executable in cygwin causing which 31767 # to not find them 31768 if test "x$new_path" = x \ 31769 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31770 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31771 new_path=`$CYGPATH -u "$path"` 31772 fi 31773 if test "x$new_path" = x; then 31774 # Oops. Which didn't find the executable. 31775 # The splitting of arguments from the executable at a space might have been incorrect, 31776 # since paths with space are more likely in Windows. Give it another try with the whole 31777 # argument. 31778 path="$complete" 31779 arguments="EOL" 31780 new_path=`$CYGPATH -u "$path"` 31781 new_path=`$WHICH "$new_path" 2> /dev/null` 31782 # bat and cmd files are not always considered executable in cygwin causing which 31783 # to not find them 31784 if test "x$new_path" = x \ 31785 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31786 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31787 new_path=`$CYGPATH -u "$path"` 31788 fi 31789 if test "x$new_path" = x; then 31790 # It's still not found. Now this is an unrecoverable error. 31791 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31792 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31793 has_space=`$ECHO "$complete" | $GREP " "` 31794 if test "x$has_space" != x; then 31795 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31796 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31797 fi 31798 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31799 fi 31800 fi 31801 31802 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31803 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31804 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31805 # "foo.exe" is OK but "foo" is an error. 31806 # 31807 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31808 # It is also a way to make sure we got the proper file name for the real test later on. 31809 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31810 if test "x$test_shortpath" = x; then 31811 # Short path failed, file does not exist as specified. 31812 # Try adding .exe or .cmd 31813 if test -f "${new_path}.exe"; then 31814 input_to_shortpath="${new_path}.exe" 31815 elif test -f "${new_path}.cmd"; then 31816 input_to_shortpath="${new_path}.cmd" 31817 else 31818 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 31819 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 31820 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31821 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31822 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31823 fi 31824 else 31825 input_to_shortpath="$new_path" 31826 fi 31827 31828 # Call helper function which possibly converts this using DOS-style short mode. 31829 # If so, the updated path is stored in $new_path. 31830 new_path="$input_to_shortpath" 31831 31832 input_path="$input_to_shortpath" 31833 # Check if we need to convert this using DOS-style short mode. If the path 31834 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31835 # take no chances and rewrite it. 31836 # Note: m4 eats our [], so we need to use [ and ] instead. 31837 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31838 if test "x$has_forbidden_chars" != x; then 31839 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31840 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31841 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31842 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31843 # Going to short mode and back again did indeed matter. Since short mode is 31844 # case insensitive, let's make it lowercase to improve readability. 31845 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31846 # Now convert it back to Unix-stile (cygpath) 31847 input_path=`$CYGPATH -u "$shortmode_path"` 31848 new_path="$input_path" 31849 fi 31850 fi 31851 31852 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31853 if test "x$test_cygdrive_prefix" = x; then 31854 # As a simple fix, exclude /usr/bin since it's not a real path. 31855 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31856 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31857 # a path prefixed by /cygdrive for fixpath to work. 31858 new_path="$CYGWIN_ROOT_PATH$input_path" 31859 fi 31860 fi 31861 31862 # remove trailing .exe if any 31863 new_path="${new_path/%.exe/}" 31864 31865 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31866 31867 # First separate the path from the arguments. This will split at the first 31868 # space. 31869 complete="$LD" 31870 path="${complete%% *}" 31871 tmp="$complete EOL" 31872 arguments="${tmp#* }" 31873 31874 # Input might be given as Windows format, start by converting to 31875 # unix format. 31876 new_path="$path" 31877 31878 windows_path="$new_path" 31879 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31880 unix_path=`$CYGPATH -u "$windows_path"` 31881 new_path="$unix_path" 31882 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31883 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31884 new_path="$unix_path" 31885 fi 31886 31887 31888 # Now try to locate executable using which 31889 new_path=`$WHICH "$new_path" 2> /dev/null` 31890 31891 if test "x$new_path" = x; then 31892 # Oops. Which didn't find the executable. 31893 # The splitting of arguments from the executable at a space might have been incorrect, 31894 # since paths with space are more likely in Windows. Give it another try with the whole 31895 # argument. 31896 path="$complete" 31897 arguments="EOL" 31898 new_path="$path" 31899 31900 windows_path="$new_path" 31901 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31902 unix_path=`$CYGPATH -u "$windows_path"` 31903 new_path="$unix_path" 31904 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31905 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31906 new_path="$unix_path" 31907 fi 31908 31909 31910 new_path=`$WHICH "$new_path" 2> /dev/null` 31911 # bat and cmd files are not always considered executable in MSYS causing which 31912 # to not find them 31913 if test "x$new_path" = x \ 31914 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31915 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31916 new_path="$path" 31917 31918 windows_path="$new_path" 31919 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31920 unix_path=`$CYGPATH -u "$windows_path"` 31921 new_path="$unix_path" 31922 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31923 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31924 new_path="$unix_path" 31925 fi 31926 31927 fi 31928 31929 if test "x$new_path" = x; then 31930 # It's still not found. Now this is an unrecoverable error. 31931 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31932 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31933 has_space=`$ECHO "$complete" | $GREP " "` 31934 if test "x$has_space" != x; then 31935 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31936 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31937 fi 31938 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31939 fi 31940 fi 31941 31942 # Now new_path has a complete unix path to the binary 31943 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31944 # Keep paths in /bin as-is, but remove trailing .exe if any 31945 new_path="${new_path/%.exe/}" 31946 # Do not save /bin paths to all_fixpath_prefixes! 31947 else 31948 # Not in mixed or Windows style, start by that. 31949 new_path=`cmd //c echo $new_path` 31950 31951 input_path="$new_path" 31952 # Check if we need to convert this using DOS-style short mode. If the path 31953 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31954 # take no chances and rewrite it. 31955 # Note: m4 eats our [], so we need to use [ and ] instead. 31956 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31957 if test "x$has_forbidden_chars" != x; then 31958 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31959 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31960 fi 31961 31962 # Output is in $new_path 31963 31964 windows_path="$new_path" 31965 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31966 unix_path=`$CYGPATH -u "$windows_path"` 31967 new_path="$unix_path" 31968 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31969 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31970 new_path="$unix_path" 31971 fi 31972 31973 # remove trailing .exe if any 31974 new_path="${new_path/%.exe/}" 31975 31976 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31977 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31978 fi 31979 31980 else 31981 # We're on a posix platform. Hooray! :) 31982 # First separate the path from the arguments. This will split at the first 31983 # space. 31984 complete="$LD" 31985 path="${complete%% *}" 31986 tmp="$complete EOL" 31987 arguments="${tmp#* }" 31988 31989 # Cannot rely on the command "which" here since it doesn't always work. 31990 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31991 if test -z "$is_absolute_path"; then 31992 # Path to executable is not absolute. Find it. 31993 IFS_save="$IFS" 31994 IFS=: 31995 for p in $PATH; do 31996 if test -f "$p/$path" && test -x "$p/$path"; then 31997 new_path="$p/$path" 31998 break 31999 fi 32000 done 32001 IFS="$IFS_save" 32002 else 32003 # This is an absolute path, we can use it without further modifications. 32004 new_path="$path" 32005 fi 32006 32007 if test "x$new_path" = x; then 32008 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 32009 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 32010 has_space=`$ECHO "$complete" | $GREP " "` 32011 if test "x$has_space" != x; then 32012 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32013 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32014 fi 32015 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32016 fi 32017 fi 32018 32019 # Now join together the path and the arguments once again 32020 if test "x$arguments" != xEOL; then 32021 new_complete="$new_path ${arguments% *}" 32022 else 32023 new_complete="$new_path" 32024 fi 32025 32026 if test "x$complete" != "x$new_complete"; then 32027 LD="$new_complete" 32028 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 32029 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 32030 fi 32031 32032 # Verify that we indeed succeeded with this trick. 32033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 32034 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 32035 "$LD" --version > /dev/null 32036 if test $? -eq 0 ; then 32037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32038 $as_echo "no" >&6; } 32039 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 32040 else 32041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32042 $as_echo "yes" >&6; } 32043 fi 32044 LDCXX="$LD" 32045 else 32046 # All other toolchains use the compiler to link. 32047 LD="$CC" 32048 LDCXX="$CXX" 32049 fi 32050 32051 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 32052 32053 32054 # 32055 # Setup the assembler (AS) 32056 # 32057 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 32058 # FIXME: should this really be solaris, or solstudio? 32059 32060 32061 # Publish this variable in the help. 32062 32063 32064 if test "x$AS" = x; then 32065 # The variable is not set by user, try to locate tool using the code snippet 32066 for ac_prog in as 32067 do 32068 # Extract the first word of "$ac_prog", so it can be a program name with args. 32069 set dummy $ac_prog; ac_word=$2 32070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32071 $as_echo_n "checking for $ac_word... " >&6; } 32072 if ${ac_cv_path_AS+:} false; then : 32073 $as_echo_n "(cached) " >&6 32074 else 32075 case $AS in 32076 [\\/]* | ?:[\\/]*) 32077 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32078 ;; 32079 *) 32080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32081 for as_dir in $PATH 32082 do 32083 IFS=$as_save_IFS 32084 test -z "$as_dir" && as_dir=. 32085 for ac_exec_ext in '' $ac_executable_extensions; do 32086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32087 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32089 break 2 32090 fi 32091 done 32092 done 32093 IFS=$as_save_IFS 32094 32095 ;; 32096 esac 32097 fi 32098 AS=$ac_cv_path_AS 32099 if test -n "$AS"; then 32100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32101 $as_echo "$AS" >&6; } 32102 else 32103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32104 $as_echo "no" >&6; } 32105 fi 32106 32107 32108 test -n "$AS" && break 32109 done 32110 32111 else 32112 # The variable is set, but is it from the command line or the environment? 32113 32114 # Try to remove the string !AS! from our list. 32115 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 32116 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 32117 # If it failed, the variable was not from the command line. Ignore it, 32118 # but warn the user (except for BASH, which is always set by the calling BASH). 32119 if test "xAS" != xBASH; then 32120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 32121 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 32122 fi 32123 # Try to locate tool using the code snippet 32124 for ac_prog in as 32125 do 32126 # Extract the first word of "$ac_prog", so it can be a program name with args. 32127 set dummy $ac_prog; ac_word=$2 32128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32129 $as_echo_n "checking for $ac_word... " >&6; } 32130 if ${ac_cv_path_AS+:} false; then : 32131 $as_echo_n "(cached) " >&6 32132 else 32133 case $AS in 32134 [\\/]* | ?:[\\/]*) 32135 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32136 ;; 32137 *) 32138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32139 for as_dir in $PATH 32140 do 32141 IFS=$as_save_IFS 32142 test -z "$as_dir" && as_dir=. 32143 for ac_exec_ext in '' $ac_executable_extensions; do 32144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32145 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32147 break 2 32148 fi 32149 done 32150 done 32151 IFS=$as_save_IFS 32152 32153 ;; 32154 esac 32155 fi 32156 AS=$ac_cv_path_AS 32157 if test -n "$AS"; then 32158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32159 $as_echo "$AS" >&6; } 32160 else 32161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32162 $as_echo "no" >&6; } 32163 fi 32164 32165 32166 test -n "$AS" && break 32167 done 32168 32169 else 32170 # If it succeeded, then it was overridden by the user. We will use it 32171 # for the tool. 32172 32173 # First remove it from the list of overridden variables, so we can test 32174 # for unknown variables in the end. 32175 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 32176 32177 # Check if the provided tool contains a complete path. 32178 tool_specified="$AS" 32179 tool_basename="${tool_specified##*/}" 32180 if test "x$tool_basename" = "x$tool_specified"; then 32181 # A command without a complete path is provided, search $PATH. 32182 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 32183 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 32184 # Extract the first word of "$tool_basename", so it can be a program name with args. 32185 set dummy $tool_basename; ac_word=$2 32186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32187 $as_echo_n "checking for $ac_word... " >&6; } 32188 if ${ac_cv_path_AS+:} false; then : 32189 $as_echo_n "(cached) " >&6 32190 else 32191 case $AS in 32192 [\\/]* | ?:[\\/]*) 32193 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32194 ;; 32195 *) 32196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32197 for as_dir in $PATH 32198 do 32199 IFS=$as_save_IFS 32200 test -z "$as_dir" && as_dir=. 32201 for ac_exec_ext in '' $ac_executable_extensions; do 32202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32203 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32205 break 2 32206 fi 32207 done 32208 done 32209 IFS=$as_save_IFS 32210 32211 ;; 32212 esac 32213 fi 32214 AS=$ac_cv_path_AS 32215 if test -n "$AS"; then 32216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32217 $as_echo "$AS" >&6; } 32218 else 32219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32220 $as_echo "no" >&6; } 32221 fi 32222 32223 32224 if test "x$AS" = x; then 32225 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 32226 fi 32227 else 32228 # Otherwise we believe it is a complete path. Use it as it is. 32229 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 32230 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 32231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 32232 $as_echo_n "checking for AS... " >&6; } 32233 if test ! -x "$tool_specified"; then 32234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32235 $as_echo "not found" >&6; } 32236 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 32237 fi 32238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 32239 $as_echo "$tool_specified" >&6; } 32240 fi 32241 fi 32242 fi 32243 32244 32245 32246 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32247 32248 # First separate the path from the arguments. This will split at the first 32249 # space. 32250 complete="$AS" 32251 path="${complete%% *}" 32252 tmp="$complete EOL" 32253 arguments="${tmp#* }" 32254 32255 # Input might be given as Windows format, start by converting to 32256 # unix format. 32257 new_path=`$CYGPATH -u "$path"` 32258 32259 # Now try to locate executable using which 32260 new_path=`$WHICH "$new_path" 2> /dev/null` 32261 # bat and cmd files are not always considered executable in cygwin causing which 32262 # to not find them 32263 if test "x$new_path" = x \ 32264 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32265 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32266 new_path=`$CYGPATH -u "$path"` 32267 fi 32268 if test "x$new_path" = x; then 32269 # Oops. Which didn't find the executable. 32270 # The splitting of arguments from the executable at a space might have been incorrect, 32271 # since paths with space are more likely in Windows. Give it another try with the whole 32272 # argument. 32273 path="$complete" 32274 arguments="EOL" 32275 new_path=`$CYGPATH -u "$path"` 32276 new_path=`$WHICH "$new_path" 2> /dev/null` 32277 # bat and cmd files are not always considered executable in cygwin causing which 32278 # to not find them 32279 if test "x$new_path" = x \ 32280 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32281 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32282 new_path=`$CYGPATH -u "$path"` 32283 fi 32284 if test "x$new_path" = x; then 32285 # It's still not found. Now this is an unrecoverable error. 32286 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32287 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32288 has_space=`$ECHO "$complete" | $GREP " "` 32289 if test "x$has_space" != x; then 32290 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32291 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32292 fi 32293 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32294 fi 32295 fi 32296 32297 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32298 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32299 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32300 # "foo.exe" is OK but "foo" is an error. 32301 # 32302 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32303 # It is also a way to make sure we got the proper file name for the real test later on. 32304 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32305 if test "x$test_shortpath" = x; then 32306 # Short path failed, file does not exist as specified. 32307 # Try adding .exe or .cmd 32308 if test -f "${new_path}.exe"; then 32309 input_to_shortpath="${new_path}.exe" 32310 elif test -f "${new_path}.cmd"; then 32311 input_to_shortpath="${new_path}.cmd" 32312 else 32313 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 32314 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 32315 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32316 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32317 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32318 fi 32319 else 32320 input_to_shortpath="$new_path" 32321 fi 32322 32323 # Call helper function which possibly converts this using DOS-style short mode. 32324 # If so, the updated path is stored in $new_path. 32325 new_path="$input_to_shortpath" 32326 32327 input_path="$input_to_shortpath" 32328 # Check if we need to convert this using DOS-style short mode. If the path 32329 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32330 # take no chances and rewrite it. 32331 # Note: m4 eats our [], so we need to use [ and ] instead. 32332 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32333 if test "x$has_forbidden_chars" != x; then 32334 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32335 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32336 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32337 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32338 # Going to short mode and back again did indeed matter. Since short mode is 32339 # case insensitive, let's make it lowercase to improve readability. 32340 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32341 # Now convert it back to Unix-stile (cygpath) 32342 input_path=`$CYGPATH -u "$shortmode_path"` 32343 new_path="$input_path" 32344 fi 32345 fi 32346 32347 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32348 if test "x$test_cygdrive_prefix" = x; then 32349 # As a simple fix, exclude /usr/bin since it's not a real path. 32350 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32351 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32352 # a path prefixed by /cygdrive for fixpath to work. 32353 new_path="$CYGWIN_ROOT_PATH$input_path" 32354 fi 32355 fi 32356 32357 # remove trailing .exe if any 32358 new_path="${new_path/%.exe/}" 32359 32360 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32361 32362 # First separate the path from the arguments. This will split at the first 32363 # space. 32364 complete="$AS" 32365 path="${complete%% *}" 32366 tmp="$complete EOL" 32367 arguments="${tmp#* }" 32368 32369 # Input might be given as Windows format, start by converting to 32370 # unix format. 32371 new_path="$path" 32372 32373 windows_path="$new_path" 32374 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32375 unix_path=`$CYGPATH -u "$windows_path"` 32376 new_path="$unix_path" 32377 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32378 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32379 new_path="$unix_path" 32380 fi 32381 32382 32383 # Now try to locate executable using which 32384 new_path=`$WHICH "$new_path" 2> /dev/null` 32385 32386 if test "x$new_path" = x; then 32387 # Oops. Which didn't find the executable. 32388 # The splitting of arguments from the executable at a space might have been incorrect, 32389 # since paths with space are more likely in Windows. Give it another try with the whole 32390 # argument. 32391 path="$complete" 32392 arguments="EOL" 32393 new_path="$path" 32394 32395 windows_path="$new_path" 32396 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32397 unix_path=`$CYGPATH -u "$windows_path"` 32398 new_path="$unix_path" 32399 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32400 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32401 new_path="$unix_path" 32402 fi 32403 32404 32405 new_path=`$WHICH "$new_path" 2> /dev/null` 32406 # bat and cmd files are not always considered executable in MSYS causing which 32407 # to not find them 32408 if test "x$new_path" = x \ 32409 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32410 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32411 new_path="$path" 32412 32413 windows_path="$new_path" 32414 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32415 unix_path=`$CYGPATH -u "$windows_path"` 32416 new_path="$unix_path" 32417 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32418 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32419 new_path="$unix_path" 32420 fi 32421 32422 fi 32423 32424 if test "x$new_path" = x; then 32425 # It's still not found. Now this is an unrecoverable error. 32426 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32427 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32428 has_space=`$ECHO "$complete" | $GREP " "` 32429 if test "x$has_space" != x; then 32430 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32431 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32432 fi 32433 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32434 fi 32435 fi 32436 32437 # Now new_path has a complete unix path to the binary 32438 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32439 # Keep paths in /bin as-is, but remove trailing .exe if any 32440 new_path="${new_path/%.exe/}" 32441 # Do not save /bin paths to all_fixpath_prefixes! 32442 else 32443 # Not in mixed or Windows style, start by that. 32444 new_path=`cmd //c echo $new_path` 32445 32446 input_path="$new_path" 32447 # Check if we need to convert this using DOS-style short mode. If the path 32448 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32449 # take no chances and rewrite it. 32450 # Note: m4 eats our [], so we need to use [ and ] instead. 32451 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32452 if test "x$has_forbidden_chars" != x; then 32453 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32454 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32455 fi 32456 32457 # Output is in $new_path 32458 32459 windows_path="$new_path" 32460 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32461 unix_path=`$CYGPATH -u "$windows_path"` 32462 new_path="$unix_path" 32463 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32464 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32465 new_path="$unix_path" 32466 fi 32467 32468 # remove trailing .exe if any 32469 new_path="${new_path/%.exe/}" 32470 32471 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32472 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32473 fi 32474 32475 else 32476 # We're on a posix platform. Hooray! :) 32477 # First separate the path from the arguments. This will split at the first 32478 # space. 32479 complete="$AS" 32480 path="${complete%% *}" 32481 tmp="$complete EOL" 32482 arguments="${tmp#* }" 32483 32484 # Cannot rely on the command "which" here since it doesn't always work. 32485 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32486 if test -z "$is_absolute_path"; then 32487 # Path to executable is not absolute. Find it. 32488 IFS_save="$IFS" 32489 IFS=: 32490 for p in $PATH; do 32491 if test -f "$p/$path" && test -x "$p/$path"; then 32492 new_path="$p/$path" 32493 break 32494 fi 32495 done 32496 IFS="$IFS_save" 32497 else 32498 # This is an absolute path, we can use it without further modifications. 32499 new_path="$path" 32500 fi 32501 32502 if test "x$new_path" = x; then 32503 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32504 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32505 has_space=`$ECHO "$complete" | $GREP " "` 32506 if test "x$has_space" != x; then 32507 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32508 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32509 fi 32510 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32511 fi 32512 fi 32513 32514 # Now join together the path and the arguments once again 32515 if test "x$arguments" != xEOL; then 32516 new_complete="$new_path ${arguments% *}" 32517 else 32518 new_complete="$new_path" 32519 fi 32520 32521 if test "x$complete" != "x$new_complete"; then 32522 AS="$new_complete" 32523 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 32524 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 32525 fi 32526 32527 else 32528 # FIXME: is this correct for microsoft? 32529 AS="$CC -c" 32530 fi 32531 32532 32533 # 32534 # Setup the archiver (AR) 32535 # 32536 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 32537 # The corresponding ar tool is lib.exe (used to create static libraries) 32538 # Extract the first word of "lib", so it can be a program name with args. 32539 set dummy lib; ac_word=$2 32540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32541 $as_echo_n "checking for $ac_word... " >&6; } 32542 if ${ac_cv_prog_AR+:} false; then : 32543 $as_echo_n "(cached) " >&6 32544 else 32545 if test -n "$AR"; then 32546 ac_cv_prog_AR="$AR" # Let the user override the test. 32547 else 32548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32549 for as_dir in $PATH 32550 do 32551 IFS=$as_save_IFS 32552 test -z "$as_dir" && as_dir=. 32553 for ac_exec_ext in '' $ac_executable_extensions; do 32554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32555 ac_cv_prog_AR="lib" 32556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32557 break 2 32558 fi 32559 done 32560 done 32561 IFS=$as_save_IFS 32562 32563 fi 32564 fi 32565 AR=$ac_cv_prog_AR 32566 if test -n "$AR"; then 32567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32568 $as_echo "$AR" >&6; } 32569 else 32570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32571 $as_echo "no" >&6; } 32572 fi 32573 32574 32575 else 32576 32577 32578 # Publish this variable in the help. 32579 32580 32581 if test "x$AR" = x; then 32582 # The variable is not set by user, try to locate tool using the code snippet 32583 if test -n "$ac_tool_prefix"; then 32584 for ac_prog in ar 32585 do 32586 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32587 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32589 $as_echo_n "checking for $ac_word... " >&6; } 32590 if ${ac_cv_prog_AR+:} false; then : 32591 $as_echo_n "(cached) " >&6 32592 else 32593 if test -n "$AR"; then 32594 ac_cv_prog_AR="$AR" # Let the user override the test. 32595 else 32596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32597 for as_dir in $PATH 32598 do 32599 IFS=$as_save_IFS 32600 test -z "$as_dir" && as_dir=. 32601 for ac_exec_ext in '' $ac_executable_extensions; do 32602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32603 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 32604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32605 break 2 32606 fi 32607 done 32608 done 32609 IFS=$as_save_IFS 32610 32611 fi 32612 fi 32613 AR=$ac_cv_prog_AR 32614 if test -n "$AR"; then 32615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32616 $as_echo "$AR" >&6; } 32617 else 32618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32619 $as_echo "no" >&6; } 32620 fi 32621 32622 32623 test -n "$AR" && break 32624 done 32625 fi 32626 if test -z "$AR"; then 32627 ac_ct_AR=$AR 32628 for ac_prog in ar 32629 do 32630 # Extract the first word of "$ac_prog", so it can be a program name with args. 32631 set dummy $ac_prog; ac_word=$2 32632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32633 $as_echo_n "checking for $ac_word... " >&6; } 32634 if ${ac_cv_prog_ac_ct_AR+:} false; then : 32635 $as_echo_n "(cached) " >&6 32636 else 32637 if test -n "$ac_ct_AR"; then 32638 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 32639 else 32640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32641 for as_dir in $PATH 32642 do 32643 IFS=$as_save_IFS 32644 test -z "$as_dir" && as_dir=. 32645 for ac_exec_ext in '' $ac_executable_extensions; do 32646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32647 ac_cv_prog_ac_ct_AR="$ac_prog" 32648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32649 break 2 32650 fi 32651 done 32652 done 32653 IFS=$as_save_IFS 32654 32655 fi 32656 fi 32657 ac_ct_AR=$ac_cv_prog_ac_ct_AR 32658 if test -n "$ac_ct_AR"; then 32659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 32660 $as_echo "$ac_ct_AR" >&6; } 32661 else 32662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32663 $as_echo "no" >&6; } 32664 fi 32665 32666 32667 test -n "$ac_ct_AR" && break 32668 done 32669 32670 if test "x$ac_ct_AR" = x; then 32671 AR="" 32672 else 32673 case $cross_compiling:$ac_tool_warned in 32674 yes:) 32675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32677 ac_tool_warned=yes ;; 32678 esac 32679 AR=$ac_ct_AR 32680 fi 32681 fi 32682 32683 else 32684 # The variable is set, but is it from the command line or the environment? 32685 32686 # Try to remove the string !AR! from our list. 32687 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 32688 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 32689 # If it failed, the variable was not from the command line. Ignore it, 32690 # but warn the user (except for BASH, which is always set by the calling BASH). 32691 if test "xAR" != xBASH; then 32692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 32693 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 32694 fi 32695 # Try to locate tool using the code snippet 32696 if test -n "$ac_tool_prefix"; then 32697 for ac_prog in ar 32698 do 32699 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32700 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32702 $as_echo_n "checking for $ac_word... " >&6; } 32703 if ${ac_cv_prog_AR+:} false; then : 32704 $as_echo_n "(cached) " >&6 32705 else 32706 if test -n "$AR"; then 32707 ac_cv_prog_AR="$AR" # Let the user override the test. 32708 else 32709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32710 for as_dir in $PATH 32711 do 32712 IFS=$as_save_IFS 32713 test -z "$as_dir" && as_dir=. 32714 for ac_exec_ext in '' $ac_executable_extensions; do 32715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32716 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 32717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32718 break 2 32719 fi 32720 done 32721 done 32722 IFS=$as_save_IFS 32723 32724 fi 32725 fi 32726 AR=$ac_cv_prog_AR 32727 if test -n "$AR"; then 32728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32729 $as_echo "$AR" >&6; } 32730 else 32731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32732 $as_echo "no" >&6; } 32733 fi 32734 32735 32736 test -n "$AR" && break 32737 done 32738 fi 32739 if test -z "$AR"; then 32740 ac_ct_AR=$AR 32741 for ac_prog in ar 32742 do 32743 # Extract the first word of "$ac_prog", so it can be a program name with args. 32744 set dummy $ac_prog; ac_word=$2 32745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32746 $as_echo_n "checking for $ac_word... " >&6; } 32747 if ${ac_cv_prog_ac_ct_AR+:} false; then : 32748 $as_echo_n "(cached) " >&6 32749 else 32750 if test -n "$ac_ct_AR"; then 32751 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 32752 else 32753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32754 for as_dir in $PATH 32755 do 32756 IFS=$as_save_IFS 32757 test -z "$as_dir" && as_dir=. 32758 for ac_exec_ext in '' $ac_executable_extensions; do 32759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32760 ac_cv_prog_ac_ct_AR="$ac_prog" 32761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32762 break 2 32763 fi 32764 done 32765 done 32766 IFS=$as_save_IFS 32767 32768 fi 32769 fi 32770 ac_ct_AR=$ac_cv_prog_ac_ct_AR 32771 if test -n "$ac_ct_AR"; then 32772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 32773 $as_echo "$ac_ct_AR" >&6; } 32774 else 32775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32776 $as_echo "no" >&6; } 32777 fi 32778 32779 32780 test -n "$ac_ct_AR" && break 32781 done 32782 32783 if test "x$ac_ct_AR" = x; then 32784 AR="" 32785 else 32786 case $cross_compiling:$ac_tool_warned in 32787 yes:) 32788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32790 ac_tool_warned=yes ;; 32791 esac 32792 AR=$ac_ct_AR 32793 fi 32794 fi 32795 32796 else 32797 # If it succeeded, then it was overridden by the user. We will use it 32798 # for the tool. 32799 32800 # First remove it from the list of overridden variables, so we can test 32801 # for unknown variables in the end. 32802 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 32803 32804 # Check if the provided tool contains a complete path. 32805 tool_specified="$AR" 32806 tool_basename="${tool_specified##*/}" 32807 if test "x$tool_basename" = "x$tool_specified"; then 32808 # A command without a complete path is provided, search $PATH. 32809 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 32810 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 32811 # Extract the first word of "$tool_basename", so it can be a program name with args. 32812 set dummy $tool_basename; ac_word=$2 32813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32814 $as_echo_n "checking for $ac_word... " >&6; } 32815 if ${ac_cv_path_AR+:} false; then : 32816 $as_echo_n "(cached) " >&6 32817 else 32818 case $AR in 32819 [\\/]* | ?:[\\/]*) 32820 ac_cv_path_AR="$AR" # Let the user override the test with a path. 32821 ;; 32822 *) 32823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32824 for as_dir in $PATH 32825 do 32826 IFS=$as_save_IFS 32827 test -z "$as_dir" && as_dir=. 32828 for ac_exec_ext in '' $ac_executable_extensions; do 32829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32830 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 32831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32832 break 2 32833 fi 32834 done 32835 done 32836 IFS=$as_save_IFS 32837 32838 ;; 32839 esac 32840 fi 32841 AR=$ac_cv_path_AR 32842 if test -n "$AR"; then 32843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32844 $as_echo "$AR" >&6; } 32845 else 32846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32847 $as_echo "no" >&6; } 32848 fi 32849 32850 32851 if test "x$AR" = x; then 32852 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 32853 fi 32854 else 32855 # Otherwise we believe it is a complete path. Use it as it is. 32856 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 32857 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 32858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 32859 $as_echo_n "checking for AR... " >&6; } 32860 if test ! -x "$tool_specified"; then 32861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32862 $as_echo "not found" >&6; } 32863 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 32864 fi 32865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 32866 $as_echo "$tool_specified" >&6; } 32867 fi 32868 fi 32869 fi 32870 32871 32872 fi 32873 32874 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32875 32876 # First separate the path from the arguments. This will split at the first 32877 # space. 32878 complete="$AR" 32879 path="${complete%% *}" 32880 tmp="$complete EOL" 32881 arguments="${tmp#* }" 32882 32883 # Input might be given as Windows format, start by converting to 32884 # unix format. 32885 new_path=`$CYGPATH -u "$path"` 32886 32887 # Now try to locate executable using which 32888 new_path=`$WHICH "$new_path" 2> /dev/null` 32889 # bat and cmd files are not always considered executable in cygwin causing which 32890 # to not find them 32891 if test "x$new_path" = x \ 32892 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32893 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32894 new_path=`$CYGPATH -u "$path"` 32895 fi 32896 if test "x$new_path" = x; then 32897 # Oops. Which didn't find the executable. 32898 # The splitting of arguments from the executable at a space might have been incorrect, 32899 # since paths with space are more likely in Windows. Give it another try with the whole 32900 # argument. 32901 path="$complete" 32902 arguments="EOL" 32903 new_path=`$CYGPATH -u "$path"` 32904 new_path=`$WHICH "$new_path" 2> /dev/null` 32905 # bat and cmd files are not always considered executable in cygwin causing which 32906 # to not find them 32907 if test "x$new_path" = x \ 32908 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32909 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32910 new_path=`$CYGPATH -u "$path"` 32911 fi 32912 if test "x$new_path" = x; then 32913 # It's still not found. Now this is an unrecoverable error. 32914 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32915 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32916 has_space=`$ECHO "$complete" | $GREP " "` 32917 if test "x$has_space" != x; then 32918 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32919 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32920 fi 32921 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32922 fi 32923 fi 32924 32925 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32926 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32927 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32928 # "foo.exe" is OK but "foo" is an error. 32929 # 32930 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32931 # It is also a way to make sure we got the proper file name for the real test later on. 32932 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32933 if test "x$test_shortpath" = x; then 32934 # Short path failed, file does not exist as specified. 32935 # Try adding .exe or .cmd 32936 if test -f "${new_path}.exe"; then 32937 input_to_shortpath="${new_path}.exe" 32938 elif test -f "${new_path}.cmd"; then 32939 input_to_shortpath="${new_path}.cmd" 32940 else 32941 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 32942 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 32943 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32944 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32945 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32946 fi 32947 else 32948 input_to_shortpath="$new_path" 32949 fi 32950 32951 # Call helper function which possibly converts this using DOS-style short mode. 32952 # If so, the updated path is stored in $new_path. 32953 new_path="$input_to_shortpath" 32954 32955 input_path="$input_to_shortpath" 32956 # Check if we need to convert this using DOS-style short mode. If the path 32957 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32958 # take no chances and rewrite it. 32959 # Note: m4 eats our [], so we need to use [ and ] instead. 32960 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32961 if test "x$has_forbidden_chars" != x; then 32962 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32963 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32964 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32965 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32966 # Going to short mode and back again did indeed matter. Since short mode is 32967 # case insensitive, let's make it lowercase to improve readability. 32968 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32969 # Now convert it back to Unix-stile (cygpath) 32970 input_path=`$CYGPATH -u "$shortmode_path"` 32971 new_path="$input_path" 32972 fi 32973 fi 32974 32975 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32976 if test "x$test_cygdrive_prefix" = x; then 32977 # As a simple fix, exclude /usr/bin since it's not a real path. 32978 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32979 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32980 # a path prefixed by /cygdrive for fixpath to work. 32981 new_path="$CYGWIN_ROOT_PATH$input_path" 32982 fi 32983 fi 32984 32985 # remove trailing .exe if any 32986 new_path="${new_path/%.exe/}" 32987 32988 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32989 32990 # First separate the path from the arguments. This will split at the first 32991 # space. 32992 complete="$AR" 32993 path="${complete%% *}" 32994 tmp="$complete EOL" 32995 arguments="${tmp#* }" 32996 32997 # Input might be given as Windows format, start by converting to 32998 # unix format. 32999 new_path="$path" 33000 33001 windows_path="$new_path" 33002 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33003 unix_path=`$CYGPATH -u "$windows_path"` 33004 new_path="$unix_path" 33005 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33006 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33007 new_path="$unix_path" 33008 fi 33009 33010 33011 # Now try to locate executable using which 33012 new_path=`$WHICH "$new_path" 2> /dev/null` 33013 33014 if test "x$new_path" = x; then 33015 # Oops. Which didn't find the executable. 33016 # The splitting of arguments from the executable at a space might have been incorrect, 33017 # since paths with space are more likely in Windows. Give it another try with the whole 33018 # argument. 33019 path="$complete" 33020 arguments="EOL" 33021 new_path="$path" 33022 33023 windows_path="$new_path" 33024 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33025 unix_path=`$CYGPATH -u "$windows_path"` 33026 new_path="$unix_path" 33027 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33028 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33029 new_path="$unix_path" 33030 fi 33031 33032 33033 new_path=`$WHICH "$new_path" 2> /dev/null` 33034 # bat and cmd files are not always considered executable in MSYS causing which 33035 # to not find them 33036 if test "x$new_path" = x \ 33037 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33038 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33039 new_path="$path" 33040 33041 windows_path="$new_path" 33042 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33043 unix_path=`$CYGPATH -u "$windows_path"` 33044 new_path="$unix_path" 33045 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33046 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33047 new_path="$unix_path" 33048 fi 33049 33050 fi 33051 33052 if test "x$new_path" = x; then 33053 # It's still not found. Now this is an unrecoverable error. 33054 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33055 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33056 has_space=`$ECHO "$complete" | $GREP " "` 33057 if test "x$has_space" != x; then 33058 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33059 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33060 fi 33061 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33062 fi 33063 fi 33064 33065 # Now new_path has a complete unix path to the binary 33066 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33067 # Keep paths in /bin as-is, but remove trailing .exe if any 33068 new_path="${new_path/%.exe/}" 33069 # Do not save /bin paths to all_fixpath_prefixes! 33070 else 33071 # Not in mixed or Windows style, start by that. 33072 new_path=`cmd //c echo $new_path` 33073 33074 input_path="$new_path" 33075 # Check if we need to convert this using DOS-style short mode. If the path 33076 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33077 # take no chances and rewrite it. 33078 # Note: m4 eats our [], so we need to use [ and ] instead. 33079 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33080 if test "x$has_forbidden_chars" != x; then 33081 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33082 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33083 fi 33084 33085 # Output is in $new_path 33086 33087 windows_path="$new_path" 33088 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33089 unix_path=`$CYGPATH -u "$windows_path"` 33090 new_path="$unix_path" 33091 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33092 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33093 new_path="$unix_path" 33094 fi 33095 33096 # remove trailing .exe if any 33097 new_path="${new_path/%.exe/}" 33098 33099 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33100 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33101 fi 33102 33103 else 33104 # We're on a posix platform. Hooray! :) 33105 # First separate the path from the arguments. This will split at the first 33106 # space. 33107 complete="$AR" 33108 path="${complete%% *}" 33109 tmp="$complete EOL" 33110 arguments="${tmp#* }" 33111 33112 # Cannot rely on the command "which" here since it doesn't always work. 33113 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33114 if test -z "$is_absolute_path"; then 33115 # Path to executable is not absolute. Find it. 33116 IFS_save="$IFS" 33117 IFS=: 33118 for p in $PATH; do 33119 if test -f "$p/$path" && test -x "$p/$path"; then 33120 new_path="$p/$path" 33121 break 33122 fi 33123 done 33124 IFS="$IFS_save" 33125 else 33126 # This is an absolute path, we can use it without further modifications. 33127 new_path="$path" 33128 fi 33129 33130 if test "x$new_path" = x; then 33131 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33132 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33133 has_space=`$ECHO "$complete" | $GREP " "` 33134 if test "x$has_space" != x; then 33135 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33136 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33137 fi 33138 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33139 fi 33140 fi 33141 33142 # Now join together the path and the arguments once again 33143 if test "x$arguments" != xEOL; then 33144 new_complete="$new_path ${arguments% *}" 33145 else 33146 new_complete="$new_path" 33147 fi 33148 33149 if test "x$complete" != "x$new_complete"; then 33150 AR="$new_complete" 33151 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 33152 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 33153 fi 33154 33155 33156 33157 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 33158 ac_ext=m 33159 ac_cpp='$OBJCPP $CPPFLAGS' 33160 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33161 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33162 ac_compiler_gnu=$ac_cv_objc_compiler_gnu 33163 if test -n "$ac_tool_prefix"; then 33164 for ac_prog in gcc objcc objc cc CC 33165 do 33166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 33167 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 33168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33169 $as_echo_n "checking for $ac_word... " >&6; } 33170 if ${ac_cv_prog_OBJC+:} false; then : 33171 $as_echo_n "(cached) " >&6 33172 else 33173 if test -n "$OBJC"; then 33174 ac_cv_prog_OBJC="$OBJC" # Let the user override the test. 33175 else 33176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33177 for as_dir in $PATH 33178 do 33179 IFS=$as_save_IFS 33180 test -z "$as_dir" && as_dir=. 33181 for ac_exec_ext in '' $ac_executable_extensions; do 33182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33183 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" 33184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33185 break 2 33186 fi 33187 done 33188 done 33189 IFS=$as_save_IFS 33190 33191 fi 33192 fi 33193 OBJC=$ac_cv_prog_OBJC 33194 if test -n "$OBJC"; then 33195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 33196 $as_echo "$OBJC" >&6; } 33197 else 33198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33199 $as_echo "no" >&6; } 33200 fi 33201 33202 33203 test -n "$OBJC" && break 33204 done 33205 fi 33206 if test -z "$OBJC"; then 33207 ac_ct_OBJC=$OBJC 33208 for ac_prog in gcc objcc objc cc CC 33209 do 33210 # Extract the first word of "$ac_prog", so it can be a program name with args. 33211 set dummy $ac_prog; ac_word=$2 33212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33213 $as_echo_n "checking for $ac_word... " >&6; } 33214 if ${ac_cv_prog_ac_ct_OBJC+:} false; then : 33215 $as_echo_n "(cached) " >&6 33216 else 33217 if test -n "$ac_ct_OBJC"; then 33218 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. 33219 else 33220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33221 for as_dir in $PATH 33222 do 33223 IFS=$as_save_IFS 33224 test -z "$as_dir" && as_dir=. 33225 for ac_exec_ext in '' $ac_executable_extensions; do 33226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33227 ac_cv_prog_ac_ct_OBJC="$ac_prog" 33228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33229 break 2 33230 fi 33231 done 33232 done 33233 IFS=$as_save_IFS 33234 33235 fi 33236 fi 33237 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC 33238 if test -n "$ac_ct_OBJC"; then 33239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 33240 $as_echo "$ac_ct_OBJC" >&6; } 33241 else 33242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33243 $as_echo "no" >&6; } 33244 fi 33245 33246 33247 test -n "$ac_ct_OBJC" && break 33248 done 33249 33250 if test "x$ac_ct_OBJC" = x; then 33251 OBJC="gcc" 33252 else 33253 case $cross_compiling:$ac_tool_warned in 33254 yes:) 33255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33257 ac_tool_warned=yes ;; 33258 esac 33259 OBJC=$ac_ct_OBJC 33260 fi 33261 fi 33262 33263 # Provide some information about the compiler. 33264 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 33265 set X $ac_compile 33266 ac_compiler=$2 33267 for ac_option in --version -v -V -qversion; do 33268 { { ac_try="$ac_compiler $ac_option >&5" 33269 case "(($ac_try" in 33270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33271 *) ac_try_echo=$ac_try;; 33272 esac 33273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33274 $as_echo "$ac_try_echo"; } >&5 33275 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 33276 ac_status=$? 33277 if test -s conftest.err; then 33278 sed '10a\ 33279 ... rest of stderr output deleted ... 33280 10q' conftest.err >conftest.er1 33281 cat conftest.er1 >&5 33282 fi 33283 rm -f conftest.er1 conftest.err 33284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33285 test $ac_status = 0; } 33286 done 33287 33288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 33289 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } 33290 if ${ac_cv_objc_compiler_gnu+:} false; then : 33291 $as_echo_n "(cached) " >&6 33292 else 33293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33294 /* end confdefs.h. */ 33295 33296 int 33297 main () 33298 { 33299 #ifndef __GNUC__ 33300 choke me 33301 #endif 33302 33303 ; 33304 return 0; 33305 } 33306 _ACEOF 33307 if ac_fn_objc_try_compile "$LINENO"; then : 33308 ac_compiler_gnu=yes 33309 else 33310 ac_compiler_gnu=no 33311 fi 33312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33313 ac_cv_objc_compiler_gnu=$ac_compiler_gnu 33314 33315 fi 33316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 33317 $as_echo "$ac_cv_objc_compiler_gnu" >&6; } 33318 if test $ac_compiler_gnu = yes; then 33319 GOBJC=yes 33320 else 33321 GOBJC= 33322 fi 33323 ac_test_OBJCFLAGS=${OBJCFLAGS+set} 33324 ac_save_OBJCFLAGS=$OBJCFLAGS 33325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 33326 $as_echo_n "checking whether $OBJC accepts -g... " >&6; } 33327 if ${ac_cv_prog_objc_g+:} false; then : 33328 $as_echo_n "(cached) " >&6 33329 else 33330 ac_save_objc_werror_flag=$ac_objc_werror_flag 33331 ac_objc_werror_flag=yes 33332 ac_cv_prog_objc_g=no 33333 OBJCFLAGS="-g" 33334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33335 /* end confdefs.h. */ 33336 33337 int 33338 main () 33339 { 33340 33341 ; 33342 return 0; 33343 } 33344 _ACEOF 33345 if ac_fn_objc_try_compile "$LINENO"; then : 33346 ac_cv_prog_objc_g=yes 33347 else 33348 OBJCFLAGS="" 33349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33350 /* end confdefs.h. */ 33351 33352 int 33353 main () 33354 { 33355 33356 ; 33357 return 0; 33358 } 33359 _ACEOF 33360 if ac_fn_objc_try_compile "$LINENO"; then : 33361 33362 else 33363 ac_objc_werror_flag=$ac_save_objc_werror_flag 33364 OBJCFLAGS="-g" 33365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33366 /* end confdefs.h. */ 33367 33368 int 33369 main () 33370 { 33371 33372 ; 33373 return 0; 33374 } 33375 _ACEOF 33376 if ac_fn_objc_try_compile "$LINENO"; then : 33377 ac_cv_prog_objc_g=yes 33378 fi 33379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33380 fi 33381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33382 fi 33383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33384 ac_objc_werror_flag=$ac_save_objc_werror_flag 33385 fi 33386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 33387 $as_echo "$ac_cv_prog_objc_g" >&6; } 33388 if test "$ac_test_OBJCFLAGS" = set; then 33389 OBJCFLAGS=$ac_save_OBJCFLAGS 33390 elif test $ac_cv_prog_objc_g = yes; then 33391 if test "$GOBJC" = yes; then 33392 OBJCFLAGS="-g -O2" 33393 else 33394 OBJCFLAGS="-g" 33395 fi 33396 else 33397 if test "$GOBJC" = yes; then 33398 OBJCFLAGS="-O2" 33399 else 33400 OBJCFLAGS= 33401 fi 33402 fi 33403 ac_ext=cpp 33404 ac_cpp='$CXXCPP $CPPFLAGS' 33405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 33408 33409 33410 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33411 33412 # First separate the path from the arguments. This will split at the first 33413 # space. 33414 complete="$OBJC" 33415 path="${complete%% *}" 33416 tmp="$complete EOL" 33417 arguments="${tmp#* }" 33418 33419 # Input might be given as Windows format, start by converting to 33420 # unix format. 33421 new_path=`$CYGPATH -u "$path"` 33422 33423 # Now try to locate executable using which 33424 new_path=`$WHICH "$new_path" 2> /dev/null` 33425 # bat and cmd files are not always considered executable in cygwin causing which 33426 # to not find them 33427 if test "x$new_path" = x \ 33428 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33429 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33430 new_path=`$CYGPATH -u "$path"` 33431 fi 33432 if test "x$new_path" = x; then 33433 # Oops. Which didn't find the executable. 33434 # The splitting of arguments from the executable at a space might have been incorrect, 33435 # since paths with space are more likely in Windows. Give it another try with the whole 33436 # argument. 33437 path="$complete" 33438 arguments="EOL" 33439 new_path=`$CYGPATH -u "$path"` 33440 new_path=`$WHICH "$new_path" 2> /dev/null` 33441 # bat and cmd files are not always considered executable in cygwin causing which 33442 # to not find them 33443 if test "x$new_path" = x \ 33444 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33445 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33446 new_path=`$CYGPATH -u "$path"` 33447 fi 33448 if test "x$new_path" = x; then 33449 # It's still not found. Now this is an unrecoverable error. 33450 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33451 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33452 has_space=`$ECHO "$complete" | $GREP " "` 33453 if test "x$has_space" != x; then 33454 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33455 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33456 fi 33457 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33458 fi 33459 fi 33460 33461 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33462 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33463 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33464 # "foo.exe" is OK but "foo" is an error. 33465 # 33466 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33467 # It is also a way to make sure we got the proper file name for the real test later on. 33468 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33469 if test "x$test_shortpath" = x; then 33470 # Short path failed, file does not exist as specified. 33471 # Try adding .exe or .cmd 33472 if test -f "${new_path}.exe"; then 33473 input_to_shortpath="${new_path}.exe" 33474 elif test -f "${new_path}.cmd"; then 33475 input_to_shortpath="${new_path}.cmd" 33476 else 33477 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$new_path\", is invalid." >&5 33478 $as_echo "$as_me: The path of OBJC, which resolves as \"$new_path\", is invalid." >&6;} 33479 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33480 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33481 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33482 fi 33483 else 33484 input_to_shortpath="$new_path" 33485 fi 33486 33487 # Call helper function which possibly converts this using DOS-style short mode. 33488 # If so, the updated path is stored in $new_path. 33489 new_path="$input_to_shortpath" 33490 33491 input_path="$input_to_shortpath" 33492 # Check if we need to convert this using DOS-style short mode. If the path 33493 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33494 # take no chances and rewrite it. 33495 # Note: m4 eats our [], so we need to use [ and ] instead. 33496 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33497 if test "x$has_forbidden_chars" != x; then 33498 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33499 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33500 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33501 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33502 # Going to short mode and back again did indeed matter. Since short mode is 33503 # case insensitive, let's make it lowercase to improve readability. 33504 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33505 # Now convert it back to Unix-stile (cygpath) 33506 input_path=`$CYGPATH -u "$shortmode_path"` 33507 new_path="$input_path" 33508 fi 33509 fi 33510 33511 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33512 if test "x$test_cygdrive_prefix" = x; then 33513 # As a simple fix, exclude /usr/bin since it's not a real path. 33514 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33515 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33516 # a path prefixed by /cygdrive for fixpath to work. 33517 new_path="$CYGWIN_ROOT_PATH$input_path" 33518 fi 33519 fi 33520 33521 # remove trailing .exe if any 33522 new_path="${new_path/%.exe/}" 33523 33524 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33525 33526 # First separate the path from the arguments. This will split at the first 33527 # space. 33528 complete="$OBJC" 33529 path="${complete%% *}" 33530 tmp="$complete EOL" 33531 arguments="${tmp#* }" 33532 33533 # Input might be given as Windows format, start by converting to 33534 # unix format. 33535 new_path="$path" 33536 33537 windows_path="$new_path" 33538 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33539 unix_path=`$CYGPATH -u "$windows_path"` 33540 new_path="$unix_path" 33541 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33542 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33543 new_path="$unix_path" 33544 fi 33545 33546 33547 # Now try to locate executable using which 33548 new_path=`$WHICH "$new_path" 2> /dev/null` 33549 33550 if test "x$new_path" = x; then 33551 # Oops. Which didn't find the executable. 33552 # The splitting of arguments from the executable at a space might have been incorrect, 33553 # since paths with space are more likely in Windows. Give it another try with the whole 33554 # argument. 33555 path="$complete" 33556 arguments="EOL" 33557 new_path="$path" 33558 33559 windows_path="$new_path" 33560 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33561 unix_path=`$CYGPATH -u "$windows_path"` 33562 new_path="$unix_path" 33563 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33564 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33565 new_path="$unix_path" 33566 fi 33567 33568 33569 new_path=`$WHICH "$new_path" 2> /dev/null` 33570 # bat and cmd files are not always considered executable in MSYS causing which 33571 # to not find them 33572 if test "x$new_path" = x \ 33573 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33574 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33575 new_path="$path" 33576 33577 windows_path="$new_path" 33578 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33579 unix_path=`$CYGPATH -u "$windows_path"` 33580 new_path="$unix_path" 33581 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33582 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33583 new_path="$unix_path" 33584 fi 33585 33586 fi 33587 33588 if test "x$new_path" = x; then 33589 # It's still not found. Now this is an unrecoverable error. 33590 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33591 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33592 has_space=`$ECHO "$complete" | $GREP " "` 33593 if test "x$has_space" != x; then 33594 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33595 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33596 fi 33597 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33598 fi 33599 fi 33600 33601 # Now new_path has a complete unix path to the binary 33602 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33603 # Keep paths in /bin as-is, but remove trailing .exe if any 33604 new_path="${new_path/%.exe/}" 33605 # Do not save /bin paths to all_fixpath_prefixes! 33606 else 33607 # Not in mixed or Windows style, start by that. 33608 new_path=`cmd //c echo $new_path` 33609 33610 input_path="$new_path" 33611 # Check if we need to convert this using DOS-style short mode. If the path 33612 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33613 # take no chances and rewrite it. 33614 # Note: m4 eats our [], so we need to use [ and ] instead. 33615 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33616 if test "x$has_forbidden_chars" != x; then 33617 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33618 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33619 fi 33620 33621 # Output is in $new_path 33622 33623 windows_path="$new_path" 33624 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33625 unix_path=`$CYGPATH -u "$windows_path"` 33626 new_path="$unix_path" 33627 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33628 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33629 new_path="$unix_path" 33630 fi 33631 33632 # remove trailing .exe if any 33633 new_path="${new_path/%.exe/}" 33634 33635 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33636 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33637 fi 33638 33639 else 33640 # We're on a posix platform. Hooray! :) 33641 # First separate the path from the arguments. This will split at the first 33642 # space. 33643 complete="$OBJC" 33644 path="${complete%% *}" 33645 tmp="$complete EOL" 33646 arguments="${tmp#* }" 33647 33648 # Cannot rely on the command "which" here since it doesn't always work. 33649 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33650 if test -z "$is_absolute_path"; then 33651 # Path to executable is not absolute. Find it. 33652 IFS_save="$IFS" 33653 IFS=: 33654 for p in $PATH; do 33655 if test -f "$p/$path" && test -x "$p/$path"; then 33656 new_path="$p/$path" 33657 break 33658 fi 33659 done 33660 IFS="$IFS_save" 33661 else 33662 # This is an absolute path, we can use it without further modifications. 33663 new_path="$path" 33664 fi 33665 33666 if test "x$new_path" = x; then 33667 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33668 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33669 has_space=`$ECHO "$complete" | $GREP " "` 33670 if test "x$has_space" != x; then 33671 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33672 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33673 fi 33674 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33675 fi 33676 fi 33677 33678 # Now join together the path and the arguments once again 33679 if test "x$arguments" != xEOL; then 33680 new_complete="$new_path ${arguments% *}" 33681 else 33682 new_complete="$new_path" 33683 fi 33684 33685 if test "x$complete" != "x$new_complete"; then 33686 OBJC="$new_complete" 33687 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJC to \"$new_complete\"" >&5 33688 $as_echo "$as_me: Rewriting OBJC to \"$new_complete\"" >&6;} 33689 fi 33690 33691 33692 33693 # Publish this variable in the help. 33694 33695 33696 if test "x$LIPO" = x; then 33697 # The variable is not set by user, try to locate tool using the code snippet 33698 for ac_prog in lipo 33699 do 33700 # Extract the first word of "$ac_prog", so it can be a program name with args. 33701 set dummy $ac_prog; ac_word=$2 33702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33703 $as_echo_n "checking for $ac_word... " >&6; } 33704 if ${ac_cv_path_LIPO+:} false; then : 33705 $as_echo_n "(cached) " >&6 33706 else 33707 case $LIPO in 33708 [\\/]* | ?:[\\/]*) 33709 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33710 ;; 33711 *) 33712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33713 for as_dir in $PATH 33714 do 33715 IFS=$as_save_IFS 33716 test -z "$as_dir" && as_dir=. 33717 for ac_exec_ext in '' $ac_executable_extensions; do 33718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33719 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33721 break 2 33722 fi 33723 done 33724 done 33725 IFS=$as_save_IFS 33726 33727 ;; 33728 esac 33729 fi 33730 LIPO=$ac_cv_path_LIPO 33731 if test -n "$LIPO"; then 33732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33733 $as_echo "$LIPO" >&6; } 33734 else 33735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33736 $as_echo "no" >&6; } 33737 fi 33738 33739 33740 test -n "$LIPO" && break 33741 done 33742 33743 else 33744 # The variable is set, but is it from the command line or the environment? 33745 33746 # Try to remove the string !LIPO! from our list. 33747 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 33748 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 33749 # If it failed, the variable was not from the command line. Ignore it, 33750 # but warn the user (except for BASH, which is always set by the calling BASH). 33751 if test "xLIPO" != xBASH; then 33752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 33753 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 33754 fi 33755 # Try to locate tool using the code snippet 33756 for ac_prog in lipo 33757 do 33758 # Extract the first word of "$ac_prog", so it can be a program name with args. 33759 set dummy $ac_prog; ac_word=$2 33760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33761 $as_echo_n "checking for $ac_word... " >&6; } 33762 if ${ac_cv_path_LIPO+:} false; then : 33763 $as_echo_n "(cached) " >&6 33764 else 33765 case $LIPO in 33766 [\\/]* | ?:[\\/]*) 33767 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33768 ;; 33769 *) 33770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33771 for as_dir in $PATH 33772 do 33773 IFS=$as_save_IFS 33774 test -z "$as_dir" && as_dir=. 33775 for ac_exec_ext in '' $ac_executable_extensions; do 33776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33777 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33779 break 2 33780 fi 33781 done 33782 done 33783 IFS=$as_save_IFS 33784 33785 ;; 33786 esac 33787 fi 33788 LIPO=$ac_cv_path_LIPO 33789 if test -n "$LIPO"; then 33790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33791 $as_echo "$LIPO" >&6; } 33792 else 33793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33794 $as_echo "no" >&6; } 33795 fi 33796 33797 33798 test -n "$LIPO" && break 33799 done 33800 33801 else 33802 # If it succeeded, then it was overridden by the user. We will use it 33803 # for the tool. 33804 33805 # First remove it from the list of overridden variables, so we can test 33806 # for unknown variables in the end. 33807 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33808 33809 # Check if the provided tool contains a complete path. 33810 tool_specified="$LIPO" 33811 tool_basename="${tool_specified##*/}" 33812 if test "x$tool_basename" = "x$tool_specified"; then 33813 # A command without a complete path is provided, search $PATH. 33814 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 33815 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 33816 # Extract the first word of "$tool_basename", so it can be a program name with args. 33817 set dummy $tool_basename; ac_word=$2 33818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33819 $as_echo_n "checking for $ac_word... " >&6; } 33820 if ${ac_cv_path_LIPO+:} false; then : 33821 $as_echo_n "(cached) " >&6 33822 else 33823 case $LIPO in 33824 [\\/]* | ?:[\\/]*) 33825 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33826 ;; 33827 *) 33828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33829 for as_dir in $PATH 33830 do 33831 IFS=$as_save_IFS 33832 test -z "$as_dir" && as_dir=. 33833 for ac_exec_ext in '' $ac_executable_extensions; do 33834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33835 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33837 break 2 33838 fi 33839 done 33840 done 33841 IFS=$as_save_IFS 33842 33843 ;; 33844 esac 33845 fi 33846 LIPO=$ac_cv_path_LIPO 33847 if test -n "$LIPO"; then 33848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33849 $as_echo "$LIPO" >&6; } 33850 else 33851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33852 $as_echo "no" >&6; } 33853 fi 33854 33855 33856 if test "x$LIPO" = x; then 33857 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33858 fi 33859 else 33860 # Otherwise we believe it is a complete path. Use it as it is. 33861 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 33862 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 33863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 33864 $as_echo_n "checking for LIPO... " >&6; } 33865 if test ! -x "$tool_specified"; then 33866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33867 $as_echo "not found" >&6; } 33868 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 33869 fi 33870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33871 $as_echo "$tool_specified" >&6; } 33872 fi 33873 fi 33874 fi 33875 33876 33877 33878 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33879 33880 # First separate the path from the arguments. This will split at the first 33881 # space. 33882 complete="$LIPO" 33883 path="${complete%% *}" 33884 tmp="$complete EOL" 33885 arguments="${tmp#* }" 33886 33887 # Input might be given as Windows format, start by converting to 33888 # unix format. 33889 new_path=`$CYGPATH -u "$path"` 33890 33891 # Now try to locate executable using which 33892 new_path=`$WHICH "$new_path" 2> /dev/null` 33893 # bat and cmd files are not always considered executable in cygwin causing which 33894 # to not find them 33895 if test "x$new_path" = x \ 33896 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33897 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33898 new_path=`$CYGPATH -u "$path"` 33899 fi 33900 if test "x$new_path" = x; then 33901 # Oops. Which didn't find the executable. 33902 # The splitting of arguments from the executable at a space might have been incorrect, 33903 # since paths with space are more likely in Windows. Give it another try with the whole 33904 # argument. 33905 path="$complete" 33906 arguments="EOL" 33907 new_path=`$CYGPATH -u "$path"` 33908 new_path=`$WHICH "$new_path" 2> /dev/null` 33909 # bat and cmd files are not always considered executable in cygwin causing which 33910 # to not find them 33911 if test "x$new_path" = x \ 33912 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33913 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33914 new_path=`$CYGPATH -u "$path"` 33915 fi 33916 if test "x$new_path" = x; then 33917 # It's still not found. Now this is an unrecoverable error. 33918 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33919 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33920 has_space=`$ECHO "$complete" | $GREP " "` 33921 if test "x$has_space" != x; then 33922 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33923 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33924 fi 33925 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33926 fi 33927 fi 33928 33929 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33930 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33931 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33932 # "foo.exe" is OK but "foo" is an error. 33933 # 33934 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33935 # It is also a way to make sure we got the proper file name for the real test later on. 33936 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33937 if test "x$test_shortpath" = x; then 33938 # Short path failed, file does not exist as specified. 33939 # Try adding .exe or .cmd 33940 if test -f "${new_path}.exe"; then 33941 input_to_shortpath="${new_path}.exe" 33942 elif test -f "${new_path}.cmd"; then 33943 input_to_shortpath="${new_path}.cmd" 33944 else 33945 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 33946 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 33947 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33948 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33949 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33950 fi 33951 else 33952 input_to_shortpath="$new_path" 33953 fi 33954 33955 # Call helper function which possibly converts this using DOS-style short mode. 33956 # If so, the updated path is stored in $new_path. 33957 new_path="$input_to_shortpath" 33958 33959 input_path="$input_to_shortpath" 33960 # Check if we need to convert this using DOS-style short mode. If the path 33961 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33962 # take no chances and rewrite it. 33963 # Note: m4 eats our [], so we need to use [ and ] instead. 33964 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33965 if test "x$has_forbidden_chars" != x; then 33966 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33967 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33968 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33969 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33970 # Going to short mode and back again did indeed matter. Since short mode is 33971 # case insensitive, let's make it lowercase to improve readability. 33972 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33973 # Now convert it back to Unix-stile (cygpath) 33974 input_path=`$CYGPATH -u "$shortmode_path"` 33975 new_path="$input_path" 33976 fi 33977 fi 33978 33979 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33980 if test "x$test_cygdrive_prefix" = x; then 33981 # As a simple fix, exclude /usr/bin since it's not a real path. 33982 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33983 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33984 # a path prefixed by /cygdrive for fixpath to work. 33985 new_path="$CYGWIN_ROOT_PATH$input_path" 33986 fi 33987 fi 33988 33989 # remove trailing .exe if any 33990 new_path="${new_path/%.exe/}" 33991 33992 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33993 33994 # First separate the path from the arguments. This will split at the first 33995 # space. 33996 complete="$LIPO" 33997 path="${complete%% *}" 33998 tmp="$complete EOL" 33999 arguments="${tmp#* }" 34000 34001 # Input might be given as Windows format, start by converting to 34002 # unix format. 34003 new_path="$path" 34004 34005 windows_path="$new_path" 34006 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34007 unix_path=`$CYGPATH -u "$windows_path"` 34008 new_path="$unix_path" 34009 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34010 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34011 new_path="$unix_path" 34012 fi 34013 34014 34015 # Now try to locate executable using which 34016 new_path=`$WHICH "$new_path" 2> /dev/null` 34017 34018 if test "x$new_path" = x; then 34019 # Oops. Which didn't find the executable. 34020 # The splitting of arguments from the executable at a space might have been incorrect, 34021 # since paths with space are more likely in Windows. Give it another try with the whole 34022 # argument. 34023 path="$complete" 34024 arguments="EOL" 34025 new_path="$path" 34026 34027 windows_path="$new_path" 34028 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34029 unix_path=`$CYGPATH -u "$windows_path"` 34030 new_path="$unix_path" 34031 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34032 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34033 new_path="$unix_path" 34034 fi 34035 34036 34037 new_path=`$WHICH "$new_path" 2> /dev/null` 34038 # bat and cmd files are not always considered executable in MSYS causing which 34039 # to not find them 34040 if test "x$new_path" = x \ 34041 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34042 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34043 new_path="$path" 34044 34045 windows_path="$new_path" 34046 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34047 unix_path=`$CYGPATH -u "$windows_path"` 34048 new_path="$unix_path" 34049 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34050 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34051 new_path="$unix_path" 34052 fi 34053 34054 fi 34055 34056 if test "x$new_path" = x; then 34057 # It's still not found. Now this is an unrecoverable error. 34058 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 34059 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 34060 has_space=`$ECHO "$complete" | $GREP " "` 34061 if test "x$has_space" != x; then 34062 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34063 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34064 fi 34065 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 34066 fi 34067 fi 34068 34069 # Now new_path has a complete unix path to the binary 34070 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34071 # Keep paths in /bin as-is, but remove trailing .exe if any 34072 new_path="${new_path/%.exe/}" 34073 # Do not save /bin paths to all_fixpath_prefixes! 34074 else 34075 # Not in mixed or Windows style, start by that. 34076 new_path=`cmd //c echo $new_path` 34077 34078 input_path="$new_path" 34079 # Check if we need to convert this using DOS-style short mode. If the path 34080 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34081 # take no chances and rewrite it. 34082 # Note: m4 eats our [], so we need to use [ and ] instead. 34083 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34084 if test "x$has_forbidden_chars" != x; then 34085 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34086 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34087 fi 34088 34089 # Output is in $new_path 34090 34091 windows_path="$new_path" 34092 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34093 unix_path=`$CYGPATH -u "$windows_path"` 34094 new_path="$unix_path" 34095 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34096 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34097 new_path="$unix_path" 34098 fi 34099 34100 # remove trailing .exe if any 34101 new_path="${new_path/%.exe/}" 34102 34103 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34104 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34105 fi 34106 34107 else 34108 # We're on a posix platform. Hooray! :) 34109 # First separate the path from the arguments. This will split at the first 34110 # space. 34111 complete="$LIPO" 34112 path="${complete%% *}" 34113 tmp="$complete EOL" 34114 arguments="${tmp#* }" 34115 34116 # Cannot rely on the command "which" here since it doesn't always work. 34117 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34118 if test -z "$is_absolute_path"; then 34119 # Path to executable is not absolute. Find it. 34120 IFS_save="$IFS" 34121 IFS=: 34122 for p in $PATH; do 34123 if test -f "$p/$path" && test -x "$p/$path"; then 34124 new_path="$p/$path" 34125 break 34126 fi 34127 done 34128 IFS="$IFS_save" 34129 else 34130 # This is an absolute path, we can use it without further modifications. 34131 new_path="$path" 34132 fi 34133 34134 if test "x$new_path" = x; then 34135 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 34136 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 34137 has_space=`$ECHO "$complete" | $GREP " "` 34138 if test "x$has_space" != x; then 34139 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34140 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34141 fi 34142 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 34143 fi 34144 fi 34145 34146 # Now join together the path and the arguments once again 34147 if test "x$arguments" != xEOL; then 34148 new_complete="$new_path ${arguments% *}" 34149 else 34150 new_complete="$new_path" 34151 fi 34152 34153 if test "x$complete" != "x$new_complete"; then 34154 LIPO="$new_complete" 34155 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 34156 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 34157 fi 34158 34159 else 34160 OBJC= 34161 fi 34162 34163 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 34164 # Extract the first word of "mt", so it can be a program name with args. 34165 set dummy mt; ac_word=$2 34166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34167 $as_echo_n "checking for $ac_word... " >&6; } 34168 if ${ac_cv_prog_MT+:} false; then : 34169 $as_echo_n "(cached) " >&6 34170 else 34171 if test -n "$MT"; then 34172 ac_cv_prog_MT="$MT" # Let the user override the test. 34173 else 34174 ac_prog_rejected=no 34175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34176 for as_dir in $PATH 34177 do 34178 IFS=$as_save_IFS 34179 test -z "$as_dir" && as_dir=. 34180 for ac_exec_ext in '' $ac_executable_extensions; do 34181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34182 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 34183 ac_prog_rejected=yes 34184 continue 34185 fi 34186 ac_cv_prog_MT="mt" 34187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34188 break 2 34189 fi 34190 done 34191 done 34192 IFS=$as_save_IFS 34193 34194 if test $ac_prog_rejected = yes; then 34195 # We found a bogon in the path, so make sure we never use it. 34196 set dummy $ac_cv_prog_MT 34197 shift 34198 if test $# != 0; then 34199 # We chose a different compiler from the bogus one. 34200 # However, it has the same basename, so the bogon will be chosen 34201 # first if we set MT to just the basename; use the full file name. 34202 shift 34203 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 34204 fi 34205 fi 34206 fi 34207 fi 34208 MT=$ac_cv_prog_MT 34209 if test -n "$MT"; then 34210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 34211 $as_echo "$MT" >&6; } 34212 else 34213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34214 $as_echo "no" >&6; } 34215 fi 34216 34217 34218 34219 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34220 34221 # First separate the path from the arguments. This will split at the first 34222 # space. 34223 complete="$MT" 34224 path="${complete%% *}" 34225 tmp="$complete EOL" 34226 arguments="${tmp#* }" 34227 34228 # Input might be given as Windows format, start by converting to 34229 # unix format. 34230 new_path=`$CYGPATH -u "$path"` 34231 34232 # Now try to locate executable using which 34233 new_path=`$WHICH "$new_path" 2> /dev/null` 34234 # bat and cmd files are not always considered executable in cygwin causing which 34235 # to not find them 34236 if test "x$new_path" = x \ 34237 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34238 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34239 new_path=`$CYGPATH -u "$path"` 34240 fi 34241 if test "x$new_path" = x; then 34242 # Oops. Which didn't find the executable. 34243 # The splitting of arguments from the executable at a space might have been incorrect, 34244 # since paths with space are more likely in Windows. Give it another try with the whole 34245 # argument. 34246 path="$complete" 34247 arguments="EOL" 34248 new_path=`$CYGPATH -u "$path"` 34249 new_path=`$WHICH "$new_path" 2> /dev/null` 34250 # bat and cmd files are not always considered executable in cygwin causing which 34251 # to not find them 34252 if test "x$new_path" = x \ 34253 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34254 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34255 new_path=`$CYGPATH -u "$path"` 34256 fi 34257 if test "x$new_path" = x; then 34258 # It's still not found. Now this is an unrecoverable error. 34259 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34260 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34261 has_space=`$ECHO "$complete" | $GREP " "` 34262 if test "x$has_space" != x; then 34263 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34264 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34265 fi 34266 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34267 fi 34268 fi 34269 34270 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34271 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34272 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34273 # "foo.exe" is OK but "foo" is an error. 34274 # 34275 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34276 # It is also a way to make sure we got the proper file name for the real test later on. 34277 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34278 if test "x$test_shortpath" = x; then 34279 # Short path failed, file does not exist as specified. 34280 # Try adding .exe or .cmd 34281 if test -f "${new_path}.exe"; then 34282 input_to_shortpath="${new_path}.exe" 34283 elif test -f "${new_path}.cmd"; then 34284 input_to_shortpath="${new_path}.cmd" 34285 else 34286 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 34287 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 34288 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34289 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34290 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34291 fi 34292 else 34293 input_to_shortpath="$new_path" 34294 fi 34295 34296 # Call helper function which possibly converts this using DOS-style short mode. 34297 # If so, the updated path is stored in $new_path. 34298 new_path="$input_to_shortpath" 34299 34300 input_path="$input_to_shortpath" 34301 # Check if we need to convert this using DOS-style short mode. If the path 34302 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34303 # take no chances and rewrite it. 34304 # Note: m4 eats our [], so we need to use [ and ] instead. 34305 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34306 if test "x$has_forbidden_chars" != x; then 34307 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34308 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34309 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34310 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34311 # Going to short mode and back again did indeed matter. Since short mode is 34312 # case insensitive, let's make it lowercase to improve readability. 34313 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34314 # Now convert it back to Unix-stile (cygpath) 34315 input_path=`$CYGPATH -u "$shortmode_path"` 34316 new_path="$input_path" 34317 fi 34318 fi 34319 34320 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34321 if test "x$test_cygdrive_prefix" = x; then 34322 # As a simple fix, exclude /usr/bin since it's not a real path. 34323 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34324 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34325 # a path prefixed by /cygdrive for fixpath to work. 34326 new_path="$CYGWIN_ROOT_PATH$input_path" 34327 fi 34328 fi 34329 34330 # remove trailing .exe if any 34331 new_path="${new_path/%.exe/}" 34332 34333 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34334 34335 # First separate the path from the arguments. This will split at the first 34336 # space. 34337 complete="$MT" 34338 path="${complete%% *}" 34339 tmp="$complete EOL" 34340 arguments="${tmp#* }" 34341 34342 # Input might be given as Windows format, start by converting to 34343 # unix format. 34344 new_path="$path" 34345 34346 windows_path="$new_path" 34347 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34348 unix_path=`$CYGPATH -u "$windows_path"` 34349 new_path="$unix_path" 34350 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34351 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34352 new_path="$unix_path" 34353 fi 34354 34355 34356 # Now try to locate executable using which 34357 new_path=`$WHICH "$new_path" 2> /dev/null` 34358 34359 if test "x$new_path" = x; then 34360 # Oops. Which didn't find the executable. 34361 # The splitting of arguments from the executable at a space might have been incorrect, 34362 # since paths with space are more likely in Windows. Give it another try with the whole 34363 # argument. 34364 path="$complete" 34365 arguments="EOL" 34366 new_path="$path" 34367 34368 windows_path="$new_path" 34369 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34370 unix_path=`$CYGPATH -u "$windows_path"` 34371 new_path="$unix_path" 34372 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34373 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34374 new_path="$unix_path" 34375 fi 34376 34377 34378 new_path=`$WHICH "$new_path" 2> /dev/null` 34379 # bat and cmd files are not always considered executable in MSYS causing which 34380 # to not find them 34381 if test "x$new_path" = x \ 34382 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34383 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34384 new_path="$path" 34385 34386 windows_path="$new_path" 34387 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34388 unix_path=`$CYGPATH -u "$windows_path"` 34389 new_path="$unix_path" 34390 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34391 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34392 new_path="$unix_path" 34393 fi 34394 34395 fi 34396 34397 if test "x$new_path" = x; then 34398 # It's still not found. Now this is an unrecoverable error. 34399 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34400 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34401 has_space=`$ECHO "$complete" | $GREP " "` 34402 if test "x$has_space" != x; then 34403 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34404 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34405 fi 34406 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34407 fi 34408 fi 34409 34410 # Now new_path has a complete unix path to the binary 34411 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34412 # Keep paths in /bin as-is, but remove trailing .exe if any 34413 new_path="${new_path/%.exe/}" 34414 # Do not save /bin paths to all_fixpath_prefixes! 34415 else 34416 # Not in mixed or Windows style, start by that. 34417 new_path=`cmd //c echo $new_path` 34418 34419 input_path="$new_path" 34420 # Check if we need to convert this using DOS-style short mode. If the path 34421 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34422 # take no chances and rewrite it. 34423 # Note: m4 eats our [], so we need to use [ and ] instead. 34424 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34425 if test "x$has_forbidden_chars" != x; then 34426 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34427 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34428 fi 34429 34430 # Output is in $new_path 34431 34432 windows_path="$new_path" 34433 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34434 unix_path=`$CYGPATH -u "$windows_path"` 34435 new_path="$unix_path" 34436 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34437 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34438 new_path="$unix_path" 34439 fi 34440 34441 # remove trailing .exe if any 34442 new_path="${new_path/%.exe/}" 34443 34444 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34445 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34446 fi 34447 34448 else 34449 # We're on a posix platform. Hooray! :) 34450 # First separate the path from the arguments. This will split at the first 34451 # space. 34452 complete="$MT" 34453 path="${complete%% *}" 34454 tmp="$complete EOL" 34455 arguments="${tmp#* }" 34456 34457 # Cannot rely on the command "which" here since it doesn't always work. 34458 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34459 if test -z "$is_absolute_path"; then 34460 # Path to executable is not absolute. Find it. 34461 IFS_save="$IFS" 34462 IFS=: 34463 for p in $PATH; do 34464 if test -f "$p/$path" && test -x "$p/$path"; then 34465 new_path="$p/$path" 34466 break 34467 fi 34468 done 34469 IFS="$IFS_save" 34470 else 34471 # This is an absolute path, we can use it without further modifications. 34472 new_path="$path" 34473 fi 34474 34475 if test "x$new_path" = x; then 34476 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34477 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34478 has_space=`$ECHO "$complete" | $GREP " "` 34479 if test "x$has_space" != x; then 34480 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34481 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34482 fi 34483 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34484 fi 34485 fi 34486 34487 # Now join together the path and the arguments once again 34488 if test "x$arguments" != xEOL; then 34489 new_complete="$new_path ${arguments% *}" 34490 else 34491 new_complete="$new_path" 34492 fi 34493 34494 if test "x$complete" != "x$new_complete"; then 34495 MT="$new_complete" 34496 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 34497 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 34498 fi 34499 34500 # Setup the resource compiler (RC) 34501 # Extract the first word of "rc", so it can be a program name with args. 34502 set dummy rc; ac_word=$2 34503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34504 $as_echo_n "checking for $ac_word... " >&6; } 34505 if ${ac_cv_prog_RC+:} false; then : 34506 $as_echo_n "(cached) " >&6 34507 else 34508 if test -n "$RC"; then 34509 ac_cv_prog_RC="$RC" # Let the user override the test. 34510 else 34511 ac_prog_rejected=no 34512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34513 for as_dir in $PATH 34514 do 34515 IFS=$as_save_IFS 34516 test -z "$as_dir" && as_dir=. 34517 for ac_exec_ext in '' $ac_executable_extensions; do 34518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34519 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 34520 ac_prog_rejected=yes 34521 continue 34522 fi 34523 ac_cv_prog_RC="rc" 34524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34525 break 2 34526 fi 34527 done 34528 done 34529 IFS=$as_save_IFS 34530 34531 if test $ac_prog_rejected = yes; then 34532 # We found a bogon in the path, so make sure we never use it. 34533 set dummy $ac_cv_prog_RC 34534 shift 34535 if test $# != 0; then 34536 # We chose a different compiler from the bogus one. 34537 # However, it has the same basename, so the bogon will be chosen 34538 # first if we set RC to just the basename; use the full file name. 34539 shift 34540 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 34541 fi 34542 fi 34543 fi 34544 fi 34545 RC=$ac_cv_prog_RC 34546 if test -n "$RC"; then 34547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 34548 $as_echo "$RC" >&6; } 34549 else 34550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34551 $as_echo "no" >&6; } 34552 fi 34553 34554 34555 34556 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34557 34558 # First separate the path from the arguments. This will split at the first 34559 # space. 34560 complete="$RC" 34561 path="${complete%% *}" 34562 tmp="$complete EOL" 34563 arguments="${tmp#* }" 34564 34565 # Input might be given as Windows format, start by converting to 34566 # unix format. 34567 new_path=`$CYGPATH -u "$path"` 34568 34569 # Now try to locate executable using which 34570 new_path=`$WHICH "$new_path" 2> /dev/null` 34571 # bat and cmd files are not always considered executable in cygwin causing which 34572 # to not find them 34573 if test "x$new_path" = x \ 34574 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34575 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34576 new_path=`$CYGPATH -u "$path"` 34577 fi 34578 if test "x$new_path" = x; then 34579 # Oops. Which didn't find the executable. 34580 # The splitting of arguments from the executable at a space might have been incorrect, 34581 # since paths with space are more likely in Windows. Give it another try with the whole 34582 # argument. 34583 path="$complete" 34584 arguments="EOL" 34585 new_path=`$CYGPATH -u "$path"` 34586 new_path=`$WHICH "$new_path" 2> /dev/null` 34587 # bat and cmd files are not always considered executable in cygwin causing which 34588 # to not find them 34589 if test "x$new_path" = x \ 34590 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34591 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34592 new_path=`$CYGPATH -u "$path"` 34593 fi 34594 if test "x$new_path" = x; then 34595 # It's still not found. Now this is an unrecoverable error. 34596 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34597 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34598 has_space=`$ECHO "$complete" | $GREP " "` 34599 if test "x$has_space" != x; then 34600 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34601 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34602 fi 34603 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34604 fi 34605 fi 34606 34607 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34608 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34609 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34610 # "foo.exe" is OK but "foo" is an error. 34611 # 34612 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34613 # It is also a way to make sure we got the proper file name for the real test later on. 34614 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34615 if test "x$test_shortpath" = x; then 34616 # Short path failed, file does not exist as specified. 34617 # Try adding .exe or .cmd 34618 if test -f "${new_path}.exe"; then 34619 input_to_shortpath="${new_path}.exe" 34620 elif test -f "${new_path}.cmd"; then 34621 input_to_shortpath="${new_path}.cmd" 34622 else 34623 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 34624 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 34625 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34626 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34627 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34628 fi 34629 else 34630 input_to_shortpath="$new_path" 34631 fi 34632 34633 # Call helper function which possibly converts this using DOS-style short mode. 34634 # If so, the updated path is stored in $new_path. 34635 new_path="$input_to_shortpath" 34636 34637 input_path="$input_to_shortpath" 34638 # Check if we need to convert this using DOS-style short mode. If the path 34639 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34640 # take no chances and rewrite it. 34641 # Note: m4 eats our [], so we need to use [ and ] instead. 34642 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34643 if test "x$has_forbidden_chars" != x; then 34644 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34645 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34646 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34647 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34648 # Going to short mode and back again did indeed matter. Since short mode is 34649 # case insensitive, let's make it lowercase to improve readability. 34650 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34651 # Now convert it back to Unix-stile (cygpath) 34652 input_path=`$CYGPATH -u "$shortmode_path"` 34653 new_path="$input_path" 34654 fi 34655 fi 34656 34657 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34658 if test "x$test_cygdrive_prefix" = x; then 34659 # As a simple fix, exclude /usr/bin since it's not a real path. 34660 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34661 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34662 # a path prefixed by /cygdrive for fixpath to work. 34663 new_path="$CYGWIN_ROOT_PATH$input_path" 34664 fi 34665 fi 34666 34667 # remove trailing .exe if any 34668 new_path="${new_path/%.exe/}" 34669 34670 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34671 34672 # First separate the path from the arguments. This will split at the first 34673 # space. 34674 complete="$RC" 34675 path="${complete%% *}" 34676 tmp="$complete EOL" 34677 arguments="${tmp#* }" 34678 34679 # Input might be given as Windows format, start by converting to 34680 # unix format. 34681 new_path="$path" 34682 34683 windows_path="$new_path" 34684 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34685 unix_path=`$CYGPATH -u "$windows_path"` 34686 new_path="$unix_path" 34687 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34688 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34689 new_path="$unix_path" 34690 fi 34691 34692 34693 # Now try to locate executable using which 34694 new_path=`$WHICH "$new_path" 2> /dev/null` 34695 34696 if test "x$new_path" = x; then 34697 # Oops. Which didn't find the executable. 34698 # The splitting of arguments from the executable at a space might have been incorrect, 34699 # since paths with space are more likely in Windows. Give it another try with the whole 34700 # argument. 34701 path="$complete" 34702 arguments="EOL" 34703 new_path="$path" 34704 34705 windows_path="$new_path" 34706 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34707 unix_path=`$CYGPATH -u "$windows_path"` 34708 new_path="$unix_path" 34709 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34710 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34711 new_path="$unix_path" 34712 fi 34713 34714 34715 new_path=`$WHICH "$new_path" 2> /dev/null` 34716 # bat and cmd files are not always considered executable in MSYS causing which 34717 # to not find them 34718 if test "x$new_path" = x \ 34719 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34720 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34721 new_path="$path" 34722 34723 windows_path="$new_path" 34724 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34725 unix_path=`$CYGPATH -u "$windows_path"` 34726 new_path="$unix_path" 34727 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34728 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34729 new_path="$unix_path" 34730 fi 34731 34732 fi 34733 34734 if test "x$new_path" = x; then 34735 # It's still not found. Now this is an unrecoverable error. 34736 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34737 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34738 has_space=`$ECHO "$complete" | $GREP " "` 34739 if test "x$has_space" != x; then 34740 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34741 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34742 fi 34743 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34744 fi 34745 fi 34746 34747 # Now new_path has a complete unix path to the binary 34748 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34749 # Keep paths in /bin as-is, but remove trailing .exe if any 34750 new_path="${new_path/%.exe/}" 34751 # Do not save /bin paths to all_fixpath_prefixes! 34752 else 34753 # Not in mixed or Windows style, start by that. 34754 new_path=`cmd //c echo $new_path` 34755 34756 input_path="$new_path" 34757 # Check if we need to convert this using DOS-style short mode. If the path 34758 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34759 # take no chances and rewrite it. 34760 # Note: m4 eats our [], so we need to use [ and ] instead. 34761 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34762 if test "x$has_forbidden_chars" != x; then 34763 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34764 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34765 fi 34766 34767 # Output is in $new_path 34768 34769 windows_path="$new_path" 34770 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34771 unix_path=`$CYGPATH -u "$windows_path"` 34772 new_path="$unix_path" 34773 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34774 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34775 new_path="$unix_path" 34776 fi 34777 34778 # remove trailing .exe if any 34779 new_path="${new_path/%.exe/}" 34780 34781 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34782 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34783 fi 34784 34785 else 34786 # We're on a posix platform. Hooray! :) 34787 # First separate the path from the arguments. This will split at the first 34788 # space. 34789 complete="$RC" 34790 path="${complete%% *}" 34791 tmp="$complete EOL" 34792 arguments="${tmp#* }" 34793 34794 # Cannot rely on the command "which" here since it doesn't always work. 34795 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34796 if test -z "$is_absolute_path"; then 34797 # Path to executable is not absolute. Find it. 34798 IFS_save="$IFS" 34799 IFS=: 34800 for p in $PATH; do 34801 if test -f "$p/$path" && test -x "$p/$path"; then 34802 new_path="$p/$path" 34803 break 34804 fi 34805 done 34806 IFS="$IFS_save" 34807 else 34808 # This is an absolute path, we can use it without further modifications. 34809 new_path="$path" 34810 fi 34811 34812 if test "x$new_path" = x; then 34813 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34814 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34815 has_space=`$ECHO "$complete" | $GREP " "` 34816 if test "x$has_space" != x; then 34817 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34818 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34819 fi 34820 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34821 fi 34822 fi 34823 34824 # Now join together the path and the arguments once again 34825 if test "x$arguments" != xEOL; then 34826 new_complete="$new_path ${arguments% *}" 34827 else 34828 new_complete="$new_path" 34829 fi 34830 34831 if test "x$complete" != "x$new_complete"; then 34832 RC="$new_complete" 34833 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 34834 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 34835 fi 34836 34837 # Extract the first word of "dumpbin", so it can be a program name with args. 34838 set dummy dumpbin; ac_word=$2 34839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34840 $as_echo_n "checking for $ac_word... " >&6; } 34841 if ${ac_cv_prog_DUMPBIN+:} false; then : 34842 $as_echo_n "(cached) " >&6 34843 else 34844 if test -n "$DUMPBIN"; then 34845 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 34846 else 34847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34848 for as_dir in $PATH 34849 do 34850 IFS=$as_save_IFS 34851 test -z "$as_dir" && as_dir=. 34852 for ac_exec_ext in '' $ac_executable_extensions; do 34853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34854 ac_cv_prog_DUMPBIN="dumpbin" 34855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34856 break 2 34857 fi 34858 done 34859 done 34860 IFS=$as_save_IFS 34861 34862 fi 34863 fi 34864 DUMPBIN=$ac_cv_prog_DUMPBIN 34865 if test -n "$DUMPBIN"; then 34866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 34867 $as_echo "$DUMPBIN" >&6; } 34868 else 34869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34870 $as_echo "no" >&6; } 34871 fi 34872 34873 34874 34875 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34876 34877 # First separate the path from the arguments. This will split at the first 34878 # space. 34879 complete="$DUMPBIN" 34880 path="${complete%% *}" 34881 tmp="$complete EOL" 34882 arguments="${tmp#* }" 34883 34884 # Input might be given as Windows format, start by converting to 34885 # unix format. 34886 new_path=`$CYGPATH -u "$path"` 34887 34888 # Now try to locate executable using which 34889 new_path=`$WHICH "$new_path" 2> /dev/null` 34890 # bat and cmd files are not always considered executable in cygwin causing which 34891 # to not find them 34892 if test "x$new_path" = x \ 34893 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34894 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34895 new_path=`$CYGPATH -u "$path"` 34896 fi 34897 if test "x$new_path" = x; then 34898 # Oops. Which didn't find the executable. 34899 # The splitting of arguments from the executable at a space might have been incorrect, 34900 # since paths with space are more likely in Windows. Give it another try with the whole 34901 # argument. 34902 path="$complete" 34903 arguments="EOL" 34904 new_path=`$CYGPATH -u "$path"` 34905 new_path=`$WHICH "$new_path" 2> /dev/null` 34906 # bat and cmd files are not always considered executable in cygwin causing which 34907 # to not find them 34908 if test "x$new_path" = x \ 34909 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34910 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34911 new_path=`$CYGPATH -u "$path"` 34912 fi 34913 if test "x$new_path" = x; then 34914 # It's still not found. Now this is an unrecoverable error. 34915 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34916 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34917 has_space=`$ECHO "$complete" | $GREP " "` 34918 if test "x$has_space" != x; then 34919 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34920 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34921 fi 34922 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34923 fi 34924 fi 34925 34926 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34927 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34928 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34929 # "foo.exe" is OK but "foo" is an error. 34930 # 34931 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34932 # It is also a way to make sure we got the proper file name for the real test later on. 34933 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34934 if test "x$test_shortpath" = x; then 34935 # Short path failed, file does not exist as specified. 34936 # Try adding .exe or .cmd 34937 if test -f "${new_path}.exe"; then 34938 input_to_shortpath="${new_path}.exe" 34939 elif test -f "${new_path}.cmd"; then 34940 input_to_shortpath="${new_path}.cmd" 34941 else 34942 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 34943 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 34944 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34945 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34946 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34947 fi 34948 else 34949 input_to_shortpath="$new_path" 34950 fi 34951 34952 # Call helper function which possibly converts this using DOS-style short mode. 34953 # If so, the updated path is stored in $new_path. 34954 new_path="$input_to_shortpath" 34955 34956 input_path="$input_to_shortpath" 34957 # Check if we need to convert this using DOS-style short mode. If the path 34958 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34959 # take no chances and rewrite it. 34960 # Note: m4 eats our [], so we need to use [ and ] instead. 34961 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34962 if test "x$has_forbidden_chars" != x; then 34963 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34964 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34965 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34966 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34967 # Going to short mode and back again did indeed matter. Since short mode is 34968 # case insensitive, let's make it lowercase to improve readability. 34969 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34970 # Now convert it back to Unix-stile (cygpath) 34971 input_path=`$CYGPATH -u "$shortmode_path"` 34972 new_path="$input_path" 34973 fi 34974 fi 34975 34976 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34977 if test "x$test_cygdrive_prefix" = x; then 34978 # As a simple fix, exclude /usr/bin since it's not a real path. 34979 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34980 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34981 # a path prefixed by /cygdrive for fixpath to work. 34982 new_path="$CYGWIN_ROOT_PATH$input_path" 34983 fi 34984 fi 34985 34986 # remove trailing .exe if any 34987 new_path="${new_path/%.exe/}" 34988 34989 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34990 34991 # First separate the path from the arguments. This will split at the first 34992 # space. 34993 complete="$DUMPBIN" 34994 path="${complete%% *}" 34995 tmp="$complete EOL" 34996 arguments="${tmp#* }" 34997 34998 # Input might be given as Windows format, start by converting to 34999 # unix format. 35000 new_path="$path" 35001 35002 windows_path="$new_path" 35003 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35004 unix_path=`$CYGPATH -u "$windows_path"` 35005 new_path="$unix_path" 35006 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35007 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35008 new_path="$unix_path" 35009 fi 35010 35011 35012 # Now try to locate executable using which 35013 new_path=`$WHICH "$new_path" 2> /dev/null` 35014 35015 if test "x$new_path" = x; then 35016 # Oops. Which didn't find the executable. 35017 # The splitting of arguments from the executable at a space might have been incorrect, 35018 # since paths with space are more likely in Windows. Give it another try with the whole 35019 # argument. 35020 path="$complete" 35021 arguments="EOL" 35022 new_path="$path" 35023 35024 windows_path="$new_path" 35025 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35026 unix_path=`$CYGPATH -u "$windows_path"` 35027 new_path="$unix_path" 35028 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35029 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35030 new_path="$unix_path" 35031 fi 35032 35033 35034 new_path=`$WHICH "$new_path" 2> /dev/null` 35035 # bat and cmd files are not always considered executable in MSYS causing which 35036 # to not find them 35037 if test "x$new_path" = x \ 35038 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35039 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35040 new_path="$path" 35041 35042 windows_path="$new_path" 35043 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35044 unix_path=`$CYGPATH -u "$windows_path"` 35045 new_path="$unix_path" 35046 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35047 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35048 new_path="$unix_path" 35049 fi 35050 35051 fi 35052 35053 if test "x$new_path" = x; then 35054 # It's still not found. Now this is an unrecoverable error. 35055 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 35056 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 35057 has_space=`$ECHO "$complete" | $GREP " "` 35058 if test "x$has_space" != x; then 35059 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35060 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35061 fi 35062 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35063 fi 35064 fi 35065 35066 # Now new_path has a complete unix path to the binary 35067 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35068 # Keep paths in /bin as-is, but remove trailing .exe if any 35069 new_path="${new_path/%.exe/}" 35070 # Do not save /bin paths to all_fixpath_prefixes! 35071 else 35072 # Not in mixed or Windows style, start by that. 35073 new_path=`cmd //c echo $new_path` 35074 35075 input_path="$new_path" 35076 # Check if we need to convert this using DOS-style short mode. If the path 35077 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35078 # take no chances and rewrite it. 35079 # Note: m4 eats our [], so we need to use [ and ] instead. 35080 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35081 if test "x$has_forbidden_chars" != x; then 35082 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35083 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35084 fi 35085 35086 # Output is in $new_path 35087 35088 windows_path="$new_path" 35089 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35090 unix_path=`$CYGPATH -u "$windows_path"` 35091 new_path="$unix_path" 35092 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35093 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35094 new_path="$unix_path" 35095 fi 35096 35097 # remove trailing .exe if any 35098 new_path="${new_path/%.exe/}" 35099 35100 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35101 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35102 fi 35103 35104 else 35105 # We're on a posix platform. Hooray! :) 35106 # First separate the path from the arguments. This will split at the first 35107 # space. 35108 complete="$DUMPBIN" 35109 path="${complete%% *}" 35110 tmp="$complete EOL" 35111 arguments="${tmp#* }" 35112 35113 # Cannot rely on the command "which" here since it doesn't always work. 35114 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35115 if test -z "$is_absolute_path"; then 35116 # Path to executable is not absolute. Find it. 35117 IFS_save="$IFS" 35118 IFS=: 35119 for p in $PATH; do 35120 if test -f "$p/$path" && test -x "$p/$path"; then 35121 new_path="$p/$path" 35122 break 35123 fi 35124 done 35125 IFS="$IFS_save" 35126 else 35127 # This is an absolute path, we can use it without further modifications. 35128 new_path="$path" 35129 fi 35130 35131 if test "x$new_path" = x; then 35132 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 35133 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 35134 has_space=`$ECHO "$complete" | $GREP " "` 35135 if test "x$has_space" != x; then 35136 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35137 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35138 fi 35139 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35140 fi 35141 fi 35142 35143 # Now join together the path and the arguments once again 35144 if test "x$arguments" != xEOL; then 35145 new_complete="$new_path ${arguments% *}" 35146 else 35147 new_complete="$new_path" 35148 fi 35149 35150 if test "x$complete" != "x$new_complete"; then 35151 DUMPBIN="$new_complete" 35152 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 35153 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 35154 fi 35155 35156 # We need to check for 'msbuild.exe' because at the place where we expect to 35157 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 35158 # won't find the 'msbuild.exe' executable in that case (and the 35159 # 'ac_executable_extensions' is unusable due to performance reasons). 35160 # Notice that we intentionally don't fix up the path to MSBUILD because we 35161 # will call it in a DOS shell during freetype detection on Windows (see 35162 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 35163 # Extract the first word of "msbuild.exe", so it can be a program name with args. 35164 set dummy msbuild.exe; ac_word=$2 35165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35166 $as_echo_n "checking for $ac_word... " >&6; } 35167 if ${ac_cv_prog_MSBUILD+:} false; then : 35168 $as_echo_n "(cached) " >&6 35169 else 35170 if test -n "$MSBUILD"; then 35171 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 35172 else 35173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35174 for as_dir in $PATH 35175 do 35176 IFS=$as_save_IFS 35177 test -z "$as_dir" && as_dir=. 35178 for ac_exec_ext in '' $ac_executable_extensions; do 35179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35180 ac_cv_prog_MSBUILD="msbuild.exe" 35181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35182 break 2 35183 fi 35184 done 35185 done 35186 IFS=$as_save_IFS 35187 35188 fi 35189 fi 35190 MSBUILD=$ac_cv_prog_MSBUILD 35191 if test -n "$MSBUILD"; then 35192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 35193 $as_echo "$MSBUILD" >&6; } 35194 else 35195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35196 $as_echo "no" >&6; } 35197 fi 35198 35199 35200 fi 35201 35202 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 35203 35204 35205 # Publish this variable in the help. 35206 35207 35208 if test "x$STRIP" = x; then 35209 # The variable is not set by user, try to locate tool using the code snippet 35210 for ac_prog in strip 35211 do 35212 # Extract the first word of "$ac_prog", so it can be a program name with args. 35213 set dummy $ac_prog; ac_word=$2 35214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35215 $as_echo_n "checking for $ac_word... " >&6; } 35216 if ${ac_cv_path_STRIP+:} false; then : 35217 $as_echo_n "(cached) " >&6 35218 else 35219 case $STRIP in 35220 [\\/]* | ?:[\\/]*) 35221 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35222 ;; 35223 *) 35224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35225 for as_dir in $PATH 35226 do 35227 IFS=$as_save_IFS 35228 test -z "$as_dir" && as_dir=. 35229 for ac_exec_ext in '' $ac_executable_extensions; do 35230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35231 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35233 break 2 35234 fi 35235 done 35236 done 35237 IFS=$as_save_IFS 35238 35239 ;; 35240 esac 35241 fi 35242 STRIP=$ac_cv_path_STRIP 35243 if test -n "$STRIP"; then 35244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35245 $as_echo "$STRIP" >&6; } 35246 else 35247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35248 $as_echo "no" >&6; } 35249 fi 35250 35251 35252 test -n "$STRIP" && break 35253 done 35254 35255 else 35256 # The variable is set, but is it from the command line or the environment? 35257 35258 # Try to remove the string !STRIP! from our list. 35259 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 35260 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35261 # If it failed, the variable was not from the command line. Ignore it, 35262 # but warn the user (except for BASH, which is always set by the calling BASH). 35263 if test "xSTRIP" != xBASH; then 35264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 35265 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 35266 fi 35267 # Try to locate tool using the code snippet 35268 for ac_prog in strip 35269 do 35270 # Extract the first word of "$ac_prog", so it can be a program name with args. 35271 set dummy $ac_prog; ac_word=$2 35272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35273 $as_echo_n "checking for $ac_word... " >&6; } 35274 if ${ac_cv_path_STRIP+:} false; then : 35275 $as_echo_n "(cached) " >&6 35276 else 35277 case $STRIP in 35278 [\\/]* | ?:[\\/]*) 35279 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35280 ;; 35281 *) 35282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35283 for as_dir in $PATH 35284 do 35285 IFS=$as_save_IFS 35286 test -z "$as_dir" && as_dir=. 35287 for ac_exec_ext in '' $ac_executable_extensions; do 35288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35289 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35291 break 2 35292 fi 35293 done 35294 done 35295 IFS=$as_save_IFS 35296 35297 ;; 35298 esac 35299 fi 35300 STRIP=$ac_cv_path_STRIP 35301 if test -n "$STRIP"; then 35302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35303 $as_echo "$STRIP" >&6; } 35304 else 35305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35306 $as_echo "no" >&6; } 35307 fi 35308 35309 35310 test -n "$STRIP" && break 35311 done 35312 35313 else 35314 # If it succeeded, then it was overridden by the user. We will use it 35315 # for the tool. 35316 35317 # First remove it from the list of overridden variables, so we can test 35318 # for unknown variables in the end. 35319 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35320 35321 # Check if the provided tool contains a complete path. 35322 tool_specified="$STRIP" 35323 tool_basename="${tool_specified##*/}" 35324 if test "x$tool_basename" = "x$tool_specified"; then 35325 # A command without a complete path is provided, search $PATH. 35326 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 35327 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 35328 # Extract the first word of "$tool_basename", so it can be a program name with args. 35329 set dummy $tool_basename; ac_word=$2 35330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35331 $as_echo_n "checking for $ac_word... " >&6; } 35332 if ${ac_cv_path_STRIP+:} false; then : 35333 $as_echo_n "(cached) " >&6 35334 else 35335 case $STRIP in 35336 [\\/]* | ?:[\\/]*) 35337 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35338 ;; 35339 *) 35340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35341 for as_dir in $PATH 35342 do 35343 IFS=$as_save_IFS 35344 test -z "$as_dir" && as_dir=. 35345 for ac_exec_ext in '' $ac_executable_extensions; do 35346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35347 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35349 break 2 35350 fi 35351 done 35352 done 35353 IFS=$as_save_IFS 35354 35355 ;; 35356 esac 35357 fi 35358 STRIP=$ac_cv_path_STRIP 35359 if test -n "$STRIP"; then 35360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35361 $as_echo "$STRIP" >&6; } 35362 else 35363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35364 $as_echo "no" >&6; } 35365 fi 35366 35367 35368 if test "x$STRIP" = x; then 35369 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35370 fi 35371 else 35372 # Otherwise we believe it is a complete path. Use it as it is. 35373 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 35374 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 35375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 35376 $as_echo_n "checking for STRIP... " >&6; } 35377 if test ! -x "$tool_specified"; then 35378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35379 $as_echo "not found" >&6; } 35380 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 35381 fi 35382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35383 $as_echo "$tool_specified" >&6; } 35384 fi 35385 fi 35386 fi 35387 35388 35389 35390 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35391 35392 # First separate the path from the arguments. This will split at the first 35393 # space. 35394 complete="$STRIP" 35395 path="${complete%% *}" 35396 tmp="$complete EOL" 35397 arguments="${tmp#* }" 35398 35399 # Input might be given as Windows format, start by converting to 35400 # unix format. 35401 new_path=`$CYGPATH -u "$path"` 35402 35403 # Now try to locate executable using which 35404 new_path=`$WHICH "$new_path" 2> /dev/null` 35405 # bat and cmd files are not always considered executable in cygwin causing which 35406 # to not find them 35407 if test "x$new_path" = x \ 35408 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35409 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35410 new_path=`$CYGPATH -u "$path"` 35411 fi 35412 if test "x$new_path" = x; then 35413 # Oops. Which didn't find the executable. 35414 # The splitting of arguments from the executable at a space might have been incorrect, 35415 # since paths with space are more likely in Windows. Give it another try with the whole 35416 # argument. 35417 path="$complete" 35418 arguments="EOL" 35419 new_path=`$CYGPATH -u "$path"` 35420 new_path=`$WHICH "$new_path" 2> /dev/null` 35421 # bat and cmd files are not always considered executable in cygwin causing which 35422 # to not find them 35423 if test "x$new_path" = x \ 35424 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35425 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35426 new_path=`$CYGPATH -u "$path"` 35427 fi 35428 if test "x$new_path" = x; then 35429 # It's still not found. Now this is an unrecoverable error. 35430 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35431 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35432 has_space=`$ECHO "$complete" | $GREP " "` 35433 if test "x$has_space" != x; then 35434 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35435 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35436 fi 35437 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35438 fi 35439 fi 35440 35441 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35442 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35443 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35444 # "foo.exe" is OK but "foo" is an error. 35445 # 35446 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35447 # It is also a way to make sure we got the proper file name for the real test later on. 35448 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35449 if test "x$test_shortpath" = x; then 35450 # Short path failed, file does not exist as specified. 35451 # Try adding .exe or .cmd 35452 if test -f "${new_path}.exe"; then 35453 input_to_shortpath="${new_path}.exe" 35454 elif test -f "${new_path}.cmd"; then 35455 input_to_shortpath="${new_path}.cmd" 35456 else 35457 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 35458 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 35459 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35460 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35461 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35462 fi 35463 else 35464 input_to_shortpath="$new_path" 35465 fi 35466 35467 # Call helper function which possibly converts this using DOS-style short mode. 35468 # If so, the updated path is stored in $new_path. 35469 new_path="$input_to_shortpath" 35470 35471 input_path="$input_to_shortpath" 35472 # Check if we need to convert this using DOS-style short mode. If the path 35473 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35474 # take no chances and rewrite it. 35475 # Note: m4 eats our [], so we need to use [ and ] instead. 35476 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35477 if test "x$has_forbidden_chars" != x; then 35478 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35479 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35480 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35481 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35482 # Going to short mode and back again did indeed matter. Since short mode is 35483 # case insensitive, let's make it lowercase to improve readability. 35484 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35485 # Now convert it back to Unix-stile (cygpath) 35486 input_path=`$CYGPATH -u "$shortmode_path"` 35487 new_path="$input_path" 35488 fi 35489 fi 35490 35491 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35492 if test "x$test_cygdrive_prefix" = x; then 35493 # As a simple fix, exclude /usr/bin since it's not a real path. 35494 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35495 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35496 # a path prefixed by /cygdrive for fixpath to work. 35497 new_path="$CYGWIN_ROOT_PATH$input_path" 35498 fi 35499 fi 35500 35501 # remove trailing .exe if any 35502 new_path="${new_path/%.exe/}" 35503 35504 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35505 35506 # First separate the path from the arguments. This will split at the first 35507 # space. 35508 complete="$STRIP" 35509 path="${complete%% *}" 35510 tmp="$complete EOL" 35511 arguments="${tmp#* }" 35512 35513 # Input might be given as Windows format, start by converting to 35514 # unix format. 35515 new_path="$path" 35516 35517 windows_path="$new_path" 35518 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35519 unix_path=`$CYGPATH -u "$windows_path"` 35520 new_path="$unix_path" 35521 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35522 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35523 new_path="$unix_path" 35524 fi 35525 35526 35527 # Now try to locate executable using which 35528 new_path=`$WHICH "$new_path" 2> /dev/null` 35529 35530 if test "x$new_path" = x; then 35531 # Oops. Which didn't find the executable. 35532 # The splitting of arguments from the executable at a space might have been incorrect, 35533 # since paths with space are more likely in Windows. Give it another try with the whole 35534 # argument. 35535 path="$complete" 35536 arguments="EOL" 35537 new_path="$path" 35538 35539 windows_path="$new_path" 35540 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35541 unix_path=`$CYGPATH -u "$windows_path"` 35542 new_path="$unix_path" 35543 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35544 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35545 new_path="$unix_path" 35546 fi 35547 35548 35549 new_path=`$WHICH "$new_path" 2> /dev/null` 35550 # bat and cmd files are not always considered executable in MSYS causing which 35551 # to not find them 35552 if test "x$new_path" = x \ 35553 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35554 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35555 new_path="$path" 35556 35557 windows_path="$new_path" 35558 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35559 unix_path=`$CYGPATH -u "$windows_path"` 35560 new_path="$unix_path" 35561 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35562 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35563 new_path="$unix_path" 35564 fi 35565 35566 fi 35567 35568 if test "x$new_path" = x; then 35569 # It's still not found. Now this is an unrecoverable error. 35570 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35571 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35572 has_space=`$ECHO "$complete" | $GREP " "` 35573 if test "x$has_space" != x; then 35574 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35575 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35576 fi 35577 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35578 fi 35579 fi 35580 35581 # Now new_path has a complete unix path to the binary 35582 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35583 # Keep paths in /bin as-is, but remove trailing .exe if any 35584 new_path="${new_path/%.exe/}" 35585 # Do not save /bin paths to all_fixpath_prefixes! 35586 else 35587 # Not in mixed or Windows style, start by that. 35588 new_path=`cmd //c echo $new_path` 35589 35590 input_path="$new_path" 35591 # Check if we need to convert this using DOS-style short mode. If the path 35592 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35593 # take no chances and rewrite it. 35594 # Note: m4 eats our [], so we need to use [ and ] instead. 35595 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35596 if test "x$has_forbidden_chars" != x; then 35597 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35598 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35599 fi 35600 35601 # Output is in $new_path 35602 35603 windows_path="$new_path" 35604 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35605 unix_path=`$CYGPATH -u "$windows_path"` 35606 new_path="$unix_path" 35607 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35608 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35609 new_path="$unix_path" 35610 fi 35611 35612 # remove trailing .exe if any 35613 new_path="${new_path/%.exe/}" 35614 35615 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35616 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35617 fi 35618 35619 else 35620 # We're on a posix platform. Hooray! :) 35621 # First separate the path from the arguments. This will split at the first 35622 # space. 35623 complete="$STRIP" 35624 path="${complete%% *}" 35625 tmp="$complete EOL" 35626 arguments="${tmp#* }" 35627 35628 # Cannot rely on the command "which" here since it doesn't always work. 35629 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35630 if test -z "$is_absolute_path"; then 35631 # Path to executable is not absolute. Find it. 35632 IFS_save="$IFS" 35633 IFS=: 35634 for p in $PATH; do 35635 if test -f "$p/$path" && test -x "$p/$path"; then 35636 new_path="$p/$path" 35637 break 35638 fi 35639 done 35640 IFS="$IFS_save" 35641 else 35642 # This is an absolute path, we can use it without further modifications. 35643 new_path="$path" 35644 fi 35645 35646 if test "x$new_path" = x; then 35647 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35648 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35649 has_space=`$ECHO "$complete" | $GREP " "` 35650 if test "x$has_space" != x; then 35651 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35652 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35653 fi 35654 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35655 fi 35656 fi 35657 35658 # Now join together the path and the arguments once again 35659 if test "x$arguments" != xEOL; then 35660 new_complete="$new_path ${arguments% *}" 35661 else 35662 new_complete="$new_path" 35663 fi 35664 35665 if test "x$complete" != "x$new_complete"; then 35666 STRIP="$new_complete" 35667 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 35668 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 35669 fi 35670 35671 35672 35673 # Publish this variable in the help. 35674 35675 35676 if test "x$NM" = x; then 35677 # The variable is not set by user, try to locate tool using the code snippet 35678 for ac_prog in nm 35679 do 35680 # Extract the first word of "$ac_prog", so it can be a program name with args. 35681 set dummy $ac_prog; ac_word=$2 35682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35683 $as_echo_n "checking for $ac_word... " >&6; } 35684 if ${ac_cv_path_NM+:} false; then : 35685 $as_echo_n "(cached) " >&6 35686 else 35687 case $NM in 35688 [\\/]* | ?:[\\/]*) 35689 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35690 ;; 35691 *) 35692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35693 for as_dir in $PATH 35694 do 35695 IFS=$as_save_IFS 35696 test -z "$as_dir" && as_dir=. 35697 for ac_exec_ext in '' $ac_executable_extensions; do 35698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35699 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35701 break 2 35702 fi 35703 done 35704 done 35705 IFS=$as_save_IFS 35706 35707 ;; 35708 esac 35709 fi 35710 NM=$ac_cv_path_NM 35711 if test -n "$NM"; then 35712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35713 $as_echo "$NM" >&6; } 35714 else 35715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35716 $as_echo "no" >&6; } 35717 fi 35718 35719 35720 test -n "$NM" && break 35721 done 35722 35723 else 35724 # The variable is set, but is it from the command line or the environment? 35725 35726 # Try to remove the string !NM! from our list. 35727 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 35728 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35729 # If it failed, the variable was not from the command line. Ignore it, 35730 # but warn the user (except for BASH, which is always set by the calling BASH). 35731 if test "xNM" != xBASH; then 35732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 35733 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 35734 fi 35735 # Try to locate tool using the code snippet 35736 for ac_prog in nm 35737 do 35738 # Extract the first word of "$ac_prog", so it can be a program name with args. 35739 set dummy $ac_prog; ac_word=$2 35740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35741 $as_echo_n "checking for $ac_word... " >&6; } 35742 if ${ac_cv_path_NM+:} false; then : 35743 $as_echo_n "(cached) " >&6 35744 else 35745 case $NM in 35746 [\\/]* | ?:[\\/]*) 35747 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35748 ;; 35749 *) 35750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35751 for as_dir in $PATH 35752 do 35753 IFS=$as_save_IFS 35754 test -z "$as_dir" && as_dir=. 35755 for ac_exec_ext in '' $ac_executable_extensions; do 35756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35757 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35759 break 2 35760 fi 35761 done 35762 done 35763 IFS=$as_save_IFS 35764 35765 ;; 35766 esac 35767 fi 35768 NM=$ac_cv_path_NM 35769 if test -n "$NM"; then 35770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35771 $as_echo "$NM" >&6; } 35772 else 35773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35774 $as_echo "no" >&6; } 35775 fi 35776 35777 35778 test -n "$NM" && break 35779 done 35780 35781 else 35782 # If it succeeded, then it was overridden by the user. We will use it 35783 # for the tool. 35784 35785 # First remove it from the list of overridden variables, so we can test 35786 # for unknown variables in the end. 35787 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35788 35789 # Check if the provided tool contains a complete path. 35790 tool_specified="$NM" 35791 tool_basename="${tool_specified##*/}" 35792 if test "x$tool_basename" = "x$tool_specified"; then 35793 # A command without a complete path is provided, search $PATH. 35794 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 35795 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 35796 # Extract the first word of "$tool_basename", so it can be a program name with args. 35797 set dummy $tool_basename; ac_word=$2 35798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35799 $as_echo_n "checking for $ac_word... " >&6; } 35800 if ${ac_cv_path_NM+:} false; then : 35801 $as_echo_n "(cached) " >&6 35802 else 35803 case $NM in 35804 [\\/]* | ?:[\\/]*) 35805 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35806 ;; 35807 *) 35808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35809 for as_dir in $PATH 35810 do 35811 IFS=$as_save_IFS 35812 test -z "$as_dir" && as_dir=. 35813 for ac_exec_ext in '' $ac_executable_extensions; do 35814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35815 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35817 break 2 35818 fi 35819 done 35820 done 35821 IFS=$as_save_IFS 35822 35823 ;; 35824 esac 35825 fi 35826 NM=$ac_cv_path_NM 35827 if test -n "$NM"; then 35828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35829 $as_echo "$NM" >&6; } 35830 else 35831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35832 $as_echo "no" >&6; } 35833 fi 35834 35835 35836 if test "x$NM" = x; then 35837 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35838 fi 35839 else 35840 # Otherwise we believe it is a complete path. Use it as it is. 35841 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 35842 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 35843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 35844 $as_echo_n "checking for NM... " >&6; } 35845 if test ! -x "$tool_specified"; then 35846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35847 $as_echo "not found" >&6; } 35848 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 35849 fi 35850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35851 $as_echo "$tool_specified" >&6; } 35852 fi 35853 fi 35854 fi 35855 35856 35857 35858 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35859 35860 # First separate the path from the arguments. This will split at the first 35861 # space. 35862 complete="$NM" 35863 path="${complete%% *}" 35864 tmp="$complete EOL" 35865 arguments="${tmp#* }" 35866 35867 # Input might be given as Windows format, start by converting to 35868 # unix format. 35869 new_path=`$CYGPATH -u "$path"` 35870 35871 # Now try to locate executable using which 35872 new_path=`$WHICH "$new_path" 2> /dev/null` 35873 # bat and cmd files are not always considered executable in cygwin causing which 35874 # to not find them 35875 if test "x$new_path" = x \ 35876 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35877 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35878 new_path=`$CYGPATH -u "$path"` 35879 fi 35880 if test "x$new_path" = x; then 35881 # Oops. Which didn't find the executable. 35882 # The splitting of arguments from the executable at a space might have been incorrect, 35883 # since paths with space are more likely in Windows. Give it another try with the whole 35884 # argument. 35885 path="$complete" 35886 arguments="EOL" 35887 new_path=`$CYGPATH -u "$path"` 35888 new_path=`$WHICH "$new_path" 2> /dev/null` 35889 # bat and cmd files are not always considered executable in cygwin causing which 35890 # to not find them 35891 if test "x$new_path" = x \ 35892 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35893 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35894 new_path=`$CYGPATH -u "$path"` 35895 fi 35896 if test "x$new_path" = x; then 35897 # It's still not found. Now this is an unrecoverable error. 35898 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35899 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35900 has_space=`$ECHO "$complete" | $GREP " "` 35901 if test "x$has_space" != x; then 35902 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35903 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35904 fi 35905 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35906 fi 35907 fi 35908 35909 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35910 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35911 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35912 # "foo.exe" is OK but "foo" is an error. 35913 # 35914 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35915 # It is also a way to make sure we got the proper file name for the real test later on. 35916 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35917 if test "x$test_shortpath" = x; then 35918 # Short path failed, file does not exist as specified. 35919 # Try adding .exe or .cmd 35920 if test -f "${new_path}.exe"; then 35921 input_to_shortpath="${new_path}.exe" 35922 elif test -f "${new_path}.cmd"; then 35923 input_to_shortpath="${new_path}.cmd" 35924 else 35925 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 35926 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 35927 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35928 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35929 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35930 fi 35931 else 35932 input_to_shortpath="$new_path" 35933 fi 35934 35935 # Call helper function which possibly converts this using DOS-style short mode. 35936 # If so, the updated path is stored in $new_path. 35937 new_path="$input_to_shortpath" 35938 35939 input_path="$input_to_shortpath" 35940 # Check if we need to convert this using DOS-style short mode. If the path 35941 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35942 # take no chances and rewrite it. 35943 # Note: m4 eats our [], so we need to use [ and ] instead. 35944 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35945 if test "x$has_forbidden_chars" != x; then 35946 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35947 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35948 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35949 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35950 # Going to short mode and back again did indeed matter. Since short mode is 35951 # case insensitive, let's make it lowercase to improve readability. 35952 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35953 # Now convert it back to Unix-stile (cygpath) 35954 input_path=`$CYGPATH -u "$shortmode_path"` 35955 new_path="$input_path" 35956 fi 35957 fi 35958 35959 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35960 if test "x$test_cygdrive_prefix" = x; then 35961 # As a simple fix, exclude /usr/bin since it's not a real path. 35962 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35963 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35964 # a path prefixed by /cygdrive for fixpath to work. 35965 new_path="$CYGWIN_ROOT_PATH$input_path" 35966 fi 35967 fi 35968 35969 # remove trailing .exe if any 35970 new_path="${new_path/%.exe/}" 35971 35972 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35973 35974 # First separate the path from the arguments. This will split at the first 35975 # space. 35976 complete="$NM" 35977 path="${complete%% *}" 35978 tmp="$complete EOL" 35979 arguments="${tmp#* }" 35980 35981 # Input might be given as Windows format, start by converting to 35982 # unix format. 35983 new_path="$path" 35984 35985 windows_path="$new_path" 35986 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35987 unix_path=`$CYGPATH -u "$windows_path"` 35988 new_path="$unix_path" 35989 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35990 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35991 new_path="$unix_path" 35992 fi 35993 35994 35995 # Now try to locate executable using which 35996 new_path=`$WHICH "$new_path" 2> /dev/null` 35997 35998 if test "x$new_path" = x; then 35999 # Oops. Which didn't find the executable. 36000 # The splitting of arguments from the executable at a space might have been incorrect, 36001 # since paths with space are more likely in Windows. Give it another try with the whole 36002 # argument. 36003 path="$complete" 36004 arguments="EOL" 36005 new_path="$path" 36006 36007 windows_path="$new_path" 36008 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36009 unix_path=`$CYGPATH -u "$windows_path"` 36010 new_path="$unix_path" 36011 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36012 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36013 new_path="$unix_path" 36014 fi 36015 36016 36017 new_path=`$WHICH "$new_path" 2> /dev/null` 36018 # bat and cmd files are not always considered executable in MSYS causing which 36019 # to not find them 36020 if test "x$new_path" = x \ 36021 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36022 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36023 new_path="$path" 36024 36025 windows_path="$new_path" 36026 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36027 unix_path=`$CYGPATH -u "$windows_path"` 36028 new_path="$unix_path" 36029 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36030 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36031 new_path="$unix_path" 36032 fi 36033 36034 fi 36035 36036 if test "x$new_path" = x; then 36037 # It's still not found. Now this is an unrecoverable error. 36038 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36039 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36040 has_space=`$ECHO "$complete" | $GREP " "` 36041 if test "x$has_space" != x; then 36042 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36043 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36044 fi 36045 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36046 fi 36047 fi 36048 36049 # Now new_path has a complete unix path to the binary 36050 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36051 # Keep paths in /bin as-is, but remove trailing .exe if any 36052 new_path="${new_path/%.exe/}" 36053 # Do not save /bin paths to all_fixpath_prefixes! 36054 else 36055 # Not in mixed or Windows style, start by that. 36056 new_path=`cmd //c echo $new_path` 36057 36058 input_path="$new_path" 36059 # Check if we need to convert this using DOS-style short mode. If the path 36060 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36061 # take no chances and rewrite it. 36062 # Note: m4 eats our [], so we need to use [ and ] instead. 36063 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36064 if test "x$has_forbidden_chars" != x; then 36065 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36066 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36067 fi 36068 36069 # Output is in $new_path 36070 36071 windows_path="$new_path" 36072 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36073 unix_path=`$CYGPATH -u "$windows_path"` 36074 new_path="$unix_path" 36075 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36076 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36077 new_path="$unix_path" 36078 fi 36079 36080 # remove trailing .exe if any 36081 new_path="${new_path/%.exe/}" 36082 36083 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36084 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36085 fi 36086 36087 else 36088 # We're on a posix platform. Hooray! :) 36089 # First separate the path from the arguments. This will split at the first 36090 # space. 36091 complete="$NM" 36092 path="${complete%% *}" 36093 tmp="$complete EOL" 36094 arguments="${tmp#* }" 36095 36096 # Cannot rely on the command "which" here since it doesn't always work. 36097 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36098 if test -z "$is_absolute_path"; then 36099 # Path to executable is not absolute. Find it. 36100 IFS_save="$IFS" 36101 IFS=: 36102 for p in $PATH; do 36103 if test -f "$p/$path" && test -x "$p/$path"; then 36104 new_path="$p/$path" 36105 break 36106 fi 36107 done 36108 IFS="$IFS_save" 36109 else 36110 # This is an absolute path, we can use it without further modifications. 36111 new_path="$path" 36112 fi 36113 36114 if test "x$new_path" = x; then 36115 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36116 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36117 has_space=`$ECHO "$complete" | $GREP " "` 36118 if test "x$has_space" != x; then 36119 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36120 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36121 fi 36122 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36123 fi 36124 fi 36125 36126 # Now join together the path and the arguments once again 36127 if test "x$arguments" != xEOL; then 36128 new_complete="$new_path ${arguments% *}" 36129 else 36130 new_complete="$new_path" 36131 fi 36132 36133 if test "x$complete" != "x$new_complete"; then 36134 NM="$new_complete" 36135 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 36136 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 36137 fi 36138 36139 36140 36141 # Publish this variable in the help. 36142 36143 36144 if test "x$GNM" = x; then 36145 # The variable is not set by user, try to locate tool using the code snippet 36146 for ac_prog in gnm 36147 do 36148 # Extract the first word of "$ac_prog", so it can be a program name with args. 36149 set dummy $ac_prog; ac_word=$2 36150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36151 $as_echo_n "checking for $ac_word... " >&6; } 36152 if ${ac_cv_path_GNM+:} false; then : 36153 $as_echo_n "(cached) " >&6 36154 else 36155 case $GNM in 36156 [\\/]* | ?:[\\/]*) 36157 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36158 ;; 36159 *) 36160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36161 for as_dir in $PATH 36162 do 36163 IFS=$as_save_IFS 36164 test -z "$as_dir" && as_dir=. 36165 for ac_exec_ext in '' $ac_executable_extensions; do 36166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36167 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36169 break 2 36170 fi 36171 done 36172 done 36173 IFS=$as_save_IFS 36174 36175 ;; 36176 esac 36177 fi 36178 GNM=$ac_cv_path_GNM 36179 if test -n "$GNM"; then 36180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36181 $as_echo "$GNM" >&6; } 36182 else 36183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36184 $as_echo "no" >&6; } 36185 fi 36186 36187 36188 test -n "$GNM" && break 36189 done 36190 36191 else 36192 # The variable is set, but is it from the command line or the environment? 36193 36194 # Try to remove the string !GNM! from our list. 36195 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 36196 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36197 # If it failed, the variable was not from the command line. Ignore it, 36198 # but warn the user (except for BASH, which is always set by the calling BASH). 36199 if test "xGNM" != xBASH; then 36200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 36201 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 36202 fi 36203 # Try to locate tool using the code snippet 36204 for ac_prog in gnm 36205 do 36206 # Extract the first word of "$ac_prog", so it can be a program name with args. 36207 set dummy $ac_prog; ac_word=$2 36208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36209 $as_echo_n "checking for $ac_word... " >&6; } 36210 if ${ac_cv_path_GNM+:} false; then : 36211 $as_echo_n "(cached) " >&6 36212 else 36213 case $GNM in 36214 [\\/]* | ?:[\\/]*) 36215 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36216 ;; 36217 *) 36218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36219 for as_dir in $PATH 36220 do 36221 IFS=$as_save_IFS 36222 test -z "$as_dir" && as_dir=. 36223 for ac_exec_ext in '' $ac_executable_extensions; do 36224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36225 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36227 break 2 36228 fi 36229 done 36230 done 36231 IFS=$as_save_IFS 36232 36233 ;; 36234 esac 36235 fi 36236 GNM=$ac_cv_path_GNM 36237 if test -n "$GNM"; then 36238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36239 $as_echo "$GNM" >&6; } 36240 else 36241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36242 $as_echo "no" >&6; } 36243 fi 36244 36245 36246 test -n "$GNM" && break 36247 done 36248 36249 else 36250 # If it succeeded, then it was overridden by the user. We will use it 36251 # for the tool. 36252 36253 # First remove it from the list of overridden variables, so we can test 36254 # for unknown variables in the end. 36255 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36256 36257 # Check if the provided tool contains a complete path. 36258 tool_specified="$GNM" 36259 tool_basename="${tool_specified##*/}" 36260 if test "x$tool_basename" = "x$tool_specified"; then 36261 # A command without a complete path is provided, search $PATH. 36262 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 36263 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 36264 # Extract the first word of "$tool_basename", so it can be a program name with args. 36265 set dummy $tool_basename; ac_word=$2 36266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36267 $as_echo_n "checking for $ac_word... " >&6; } 36268 if ${ac_cv_path_GNM+:} false; then : 36269 $as_echo_n "(cached) " >&6 36270 else 36271 case $GNM in 36272 [\\/]* | ?:[\\/]*) 36273 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36274 ;; 36275 *) 36276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36277 for as_dir in $PATH 36278 do 36279 IFS=$as_save_IFS 36280 test -z "$as_dir" && as_dir=. 36281 for ac_exec_ext in '' $ac_executable_extensions; do 36282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36283 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36285 break 2 36286 fi 36287 done 36288 done 36289 IFS=$as_save_IFS 36290 36291 ;; 36292 esac 36293 fi 36294 GNM=$ac_cv_path_GNM 36295 if test -n "$GNM"; then 36296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36297 $as_echo "$GNM" >&6; } 36298 else 36299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36300 $as_echo "no" >&6; } 36301 fi 36302 36303 36304 if test "x$GNM" = x; then 36305 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36306 fi 36307 else 36308 # Otherwise we believe it is a complete path. Use it as it is. 36309 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 36310 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 36311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 36312 $as_echo_n "checking for GNM... " >&6; } 36313 if test ! -x "$tool_specified"; then 36314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36315 $as_echo "not found" >&6; } 36316 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 36317 fi 36318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36319 $as_echo "$tool_specified" >&6; } 36320 fi 36321 fi 36322 fi 36323 36324 36325 36326 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36327 36328 # First separate the path from the arguments. This will split at the first 36329 # space. 36330 complete="$GNM" 36331 path="${complete%% *}" 36332 tmp="$complete EOL" 36333 arguments="${tmp#* }" 36334 36335 # Input might be given as Windows format, start by converting to 36336 # unix format. 36337 new_path=`$CYGPATH -u "$path"` 36338 36339 # Now try to locate executable using which 36340 new_path=`$WHICH "$new_path" 2> /dev/null` 36341 # bat and cmd files are not always considered executable in cygwin causing which 36342 # to not find them 36343 if test "x$new_path" = x \ 36344 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36345 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36346 new_path=`$CYGPATH -u "$path"` 36347 fi 36348 if test "x$new_path" = x; then 36349 # Oops. Which didn't find the executable. 36350 # The splitting of arguments from the executable at a space might have been incorrect, 36351 # since paths with space are more likely in Windows. Give it another try with the whole 36352 # argument. 36353 path="$complete" 36354 arguments="EOL" 36355 new_path=`$CYGPATH -u "$path"` 36356 new_path=`$WHICH "$new_path" 2> /dev/null` 36357 # bat and cmd files are not always considered executable in cygwin causing which 36358 # to not find them 36359 if test "x$new_path" = x \ 36360 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36361 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36362 new_path=`$CYGPATH -u "$path"` 36363 fi 36364 if test "x$new_path" = x; then 36365 # It's still not found. Now this is an unrecoverable error. 36366 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36367 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36368 has_space=`$ECHO "$complete" | $GREP " "` 36369 if test "x$has_space" != x; then 36370 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36371 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36372 fi 36373 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36374 fi 36375 fi 36376 36377 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36378 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36379 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36380 # "foo.exe" is OK but "foo" is an error. 36381 # 36382 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36383 # It is also a way to make sure we got the proper file name for the real test later on. 36384 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36385 if test "x$test_shortpath" = x; then 36386 # Short path failed, file does not exist as specified. 36387 # Try adding .exe or .cmd 36388 if test -f "${new_path}.exe"; then 36389 input_to_shortpath="${new_path}.exe" 36390 elif test -f "${new_path}.cmd"; then 36391 input_to_shortpath="${new_path}.cmd" 36392 else 36393 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 36394 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 36395 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36396 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36397 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36398 fi 36399 else 36400 input_to_shortpath="$new_path" 36401 fi 36402 36403 # Call helper function which possibly converts this using DOS-style short mode. 36404 # If so, the updated path is stored in $new_path. 36405 new_path="$input_to_shortpath" 36406 36407 input_path="$input_to_shortpath" 36408 # Check if we need to convert this using DOS-style short mode. If the path 36409 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36410 # take no chances and rewrite it. 36411 # Note: m4 eats our [], so we need to use [ and ] instead. 36412 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36413 if test "x$has_forbidden_chars" != x; then 36414 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36415 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36416 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36417 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36418 # Going to short mode and back again did indeed matter. Since short mode is 36419 # case insensitive, let's make it lowercase to improve readability. 36420 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36421 # Now convert it back to Unix-stile (cygpath) 36422 input_path=`$CYGPATH -u "$shortmode_path"` 36423 new_path="$input_path" 36424 fi 36425 fi 36426 36427 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36428 if test "x$test_cygdrive_prefix" = x; then 36429 # As a simple fix, exclude /usr/bin since it's not a real path. 36430 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36431 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36432 # a path prefixed by /cygdrive for fixpath to work. 36433 new_path="$CYGWIN_ROOT_PATH$input_path" 36434 fi 36435 fi 36436 36437 # remove trailing .exe if any 36438 new_path="${new_path/%.exe/}" 36439 36440 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36441 36442 # First separate the path from the arguments. This will split at the first 36443 # space. 36444 complete="$GNM" 36445 path="${complete%% *}" 36446 tmp="$complete EOL" 36447 arguments="${tmp#* }" 36448 36449 # Input might be given as Windows format, start by converting to 36450 # unix format. 36451 new_path="$path" 36452 36453 windows_path="$new_path" 36454 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36455 unix_path=`$CYGPATH -u "$windows_path"` 36456 new_path="$unix_path" 36457 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36458 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36459 new_path="$unix_path" 36460 fi 36461 36462 36463 # Now try to locate executable using which 36464 new_path=`$WHICH "$new_path" 2> /dev/null` 36465 36466 if test "x$new_path" = x; then 36467 # Oops. Which didn't find the executable. 36468 # The splitting of arguments from the executable at a space might have been incorrect, 36469 # since paths with space are more likely in Windows. Give it another try with the whole 36470 # argument. 36471 path="$complete" 36472 arguments="EOL" 36473 new_path="$path" 36474 36475 windows_path="$new_path" 36476 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36477 unix_path=`$CYGPATH -u "$windows_path"` 36478 new_path="$unix_path" 36479 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36480 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36481 new_path="$unix_path" 36482 fi 36483 36484 36485 new_path=`$WHICH "$new_path" 2> /dev/null` 36486 # bat and cmd files are not always considered executable in MSYS causing which 36487 # to not find them 36488 if test "x$new_path" = x \ 36489 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36490 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36491 new_path="$path" 36492 36493 windows_path="$new_path" 36494 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36495 unix_path=`$CYGPATH -u "$windows_path"` 36496 new_path="$unix_path" 36497 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36498 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36499 new_path="$unix_path" 36500 fi 36501 36502 fi 36503 36504 if test "x$new_path" = x; then 36505 # It's still not found. Now this is an unrecoverable error. 36506 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36507 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36508 has_space=`$ECHO "$complete" | $GREP " "` 36509 if test "x$has_space" != x; then 36510 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36511 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36512 fi 36513 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36514 fi 36515 fi 36516 36517 # Now new_path has a complete unix path to the binary 36518 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36519 # Keep paths in /bin as-is, but remove trailing .exe if any 36520 new_path="${new_path/%.exe/}" 36521 # Do not save /bin paths to all_fixpath_prefixes! 36522 else 36523 # Not in mixed or Windows style, start by that. 36524 new_path=`cmd //c echo $new_path` 36525 36526 input_path="$new_path" 36527 # Check if we need to convert this using DOS-style short mode. If the path 36528 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36529 # take no chances and rewrite it. 36530 # Note: m4 eats our [], so we need to use [ and ] instead. 36531 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36532 if test "x$has_forbidden_chars" != x; then 36533 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36534 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36535 fi 36536 36537 # Output is in $new_path 36538 36539 windows_path="$new_path" 36540 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36541 unix_path=`$CYGPATH -u "$windows_path"` 36542 new_path="$unix_path" 36543 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36544 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36545 new_path="$unix_path" 36546 fi 36547 36548 # remove trailing .exe if any 36549 new_path="${new_path/%.exe/}" 36550 36551 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36552 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36553 fi 36554 36555 else 36556 # We're on a posix platform. Hooray! :) 36557 # First separate the path from the arguments. This will split at the first 36558 # space. 36559 complete="$GNM" 36560 path="${complete%% *}" 36561 tmp="$complete EOL" 36562 arguments="${tmp#* }" 36563 36564 # Cannot rely on the command "which" here since it doesn't always work. 36565 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36566 if test -z "$is_absolute_path"; then 36567 # Path to executable is not absolute. Find it. 36568 IFS_save="$IFS" 36569 IFS=: 36570 for p in $PATH; do 36571 if test -f "$p/$path" && test -x "$p/$path"; then 36572 new_path="$p/$path" 36573 break 36574 fi 36575 done 36576 IFS="$IFS_save" 36577 else 36578 # This is an absolute path, we can use it without further modifications. 36579 new_path="$path" 36580 fi 36581 36582 if test "x$new_path" = x; then 36583 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36584 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36585 has_space=`$ECHO "$complete" | $GREP " "` 36586 if test "x$has_space" != x; then 36587 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36588 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36589 fi 36590 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36591 fi 36592 fi 36593 36594 # Now join together the path and the arguments once again 36595 if test "x$arguments" != xEOL; then 36596 new_complete="$new_path ${arguments% *}" 36597 else 36598 new_complete="$new_path" 36599 fi 36600 36601 if test "x$complete" != "x$new_complete"; then 36602 GNM="$new_complete" 36603 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 36604 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 36605 fi 36606 36607 36608 36609 36610 # Publish this variable in the help. 36611 36612 36613 if test "x$MCS" = x; then 36614 # The variable is not set by user, try to locate tool using the code snippet 36615 for ac_prog in mcs 36616 do 36617 # Extract the first word of "$ac_prog", so it can be a program name with args. 36618 set dummy $ac_prog; ac_word=$2 36619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36620 $as_echo_n "checking for $ac_word... " >&6; } 36621 if ${ac_cv_path_MCS+:} false; then : 36622 $as_echo_n "(cached) " >&6 36623 else 36624 case $MCS in 36625 [\\/]* | ?:[\\/]*) 36626 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36627 ;; 36628 *) 36629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36630 for as_dir in $PATH 36631 do 36632 IFS=$as_save_IFS 36633 test -z "$as_dir" && as_dir=. 36634 for ac_exec_ext in '' $ac_executable_extensions; do 36635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36636 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36638 break 2 36639 fi 36640 done 36641 done 36642 IFS=$as_save_IFS 36643 36644 ;; 36645 esac 36646 fi 36647 MCS=$ac_cv_path_MCS 36648 if test -n "$MCS"; then 36649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36650 $as_echo "$MCS" >&6; } 36651 else 36652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36653 $as_echo "no" >&6; } 36654 fi 36655 36656 36657 test -n "$MCS" && break 36658 done 36659 36660 else 36661 # The variable is set, but is it from the command line or the environment? 36662 36663 # Try to remove the string !MCS! from our list. 36664 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MCS!/} 36665 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36666 # If it failed, the variable was not from the command line. Ignore it, 36667 # but warn the user (except for BASH, which is always set by the calling BASH). 36668 if test "xMCS" != xBASH; then 36669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&5 36670 $as_echo "$as_me: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&2;} 36671 fi 36672 # Try to locate tool using the code snippet 36673 for ac_prog in mcs 36674 do 36675 # Extract the first word of "$ac_prog", so it can be a program name with args. 36676 set dummy $ac_prog; ac_word=$2 36677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36678 $as_echo_n "checking for $ac_word... " >&6; } 36679 if ${ac_cv_path_MCS+:} false; then : 36680 $as_echo_n "(cached) " >&6 36681 else 36682 case $MCS in 36683 [\\/]* | ?:[\\/]*) 36684 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36685 ;; 36686 *) 36687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36688 for as_dir in $PATH 36689 do 36690 IFS=$as_save_IFS 36691 test -z "$as_dir" && as_dir=. 36692 for ac_exec_ext in '' $ac_executable_extensions; do 36693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36694 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36696 break 2 36697 fi 36698 done 36699 done 36700 IFS=$as_save_IFS 36701 36702 ;; 36703 esac 36704 fi 36705 MCS=$ac_cv_path_MCS 36706 if test -n "$MCS"; then 36707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36708 $as_echo "$MCS" >&6; } 36709 else 36710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36711 $as_echo "no" >&6; } 36712 fi 36713 36714 36715 test -n "$MCS" && break 36716 done 36717 36718 else 36719 # If it succeeded, then it was overridden by the user. We will use it 36720 # for the tool. 36721 36722 # First remove it from the list of overridden variables, so we can test 36723 # for unknown variables in the end. 36724 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36725 36726 # Check if the provided tool contains a complete path. 36727 tool_specified="$MCS" 36728 tool_basename="${tool_specified##*/}" 36729 if test "x$tool_basename" = "x$tool_specified"; then 36730 # A command without a complete path is provided, search $PATH. 36731 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MCS=$tool_basename" >&5 36732 $as_echo "$as_me: Will search for user supplied tool MCS=$tool_basename" >&6;} 36733 # Extract the first word of "$tool_basename", so it can be a program name with args. 36734 set dummy $tool_basename; ac_word=$2 36735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36736 $as_echo_n "checking for $ac_word... " >&6; } 36737 if ${ac_cv_path_MCS+:} false; then : 36738 $as_echo_n "(cached) " >&6 36739 else 36740 case $MCS in 36741 [\\/]* | ?:[\\/]*) 36742 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36743 ;; 36744 *) 36745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36746 for as_dir in $PATH 36747 do 36748 IFS=$as_save_IFS 36749 test -z "$as_dir" && as_dir=. 36750 for ac_exec_ext in '' $ac_executable_extensions; do 36751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36752 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36754 break 2 36755 fi 36756 done 36757 done 36758 IFS=$as_save_IFS 36759 36760 ;; 36761 esac 36762 fi 36763 MCS=$ac_cv_path_MCS 36764 if test -n "$MCS"; then 36765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36766 $as_echo "$MCS" >&6; } 36767 else 36768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36769 $as_echo "no" >&6; } 36770 fi 36771 36772 36773 if test "x$MCS" = x; then 36774 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36775 fi 36776 else 36777 # Otherwise we believe it is a complete path. Use it as it is. 36778 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MCS=$tool_specified" >&5 36779 $as_echo "$as_me: Will use user supplied tool MCS=$tool_specified" >&6;} 36780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCS" >&5 36781 $as_echo_n "checking for MCS... " >&6; } 36782 if test ! -x "$tool_specified"; then 36783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36784 $as_echo "not found" >&6; } 36785 as_fn_error $? "User supplied tool MCS=$tool_specified does not exist or is not executable" "$LINENO" 5 36786 fi 36787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36788 $as_echo "$tool_specified" >&6; } 36789 fi 36790 fi 36791 fi 36792 36793 36794 36795 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36796 36797 # First separate the path from the arguments. This will split at the first 36798 # space. 36799 complete="$MCS" 36800 path="${complete%% *}" 36801 tmp="$complete EOL" 36802 arguments="${tmp#* }" 36803 36804 # Input might be given as Windows format, start by converting to 36805 # unix format. 36806 new_path=`$CYGPATH -u "$path"` 36807 36808 # Now try to locate executable using which 36809 new_path=`$WHICH "$new_path" 2> /dev/null` 36810 # bat and cmd files are not always considered executable in cygwin causing which 36811 # to not find them 36812 if test "x$new_path" = x \ 36813 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36814 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36815 new_path=`$CYGPATH -u "$path"` 36816 fi 36817 if test "x$new_path" = x; then 36818 # Oops. Which didn't find the executable. 36819 # The splitting of arguments from the executable at a space might have been incorrect, 36820 # since paths with space are more likely in Windows. Give it another try with the whole 36821 # argument. 36822 path="$complete" 36823 arguments="EOL" 36824 new_path=`$CYGPATH -u "$path"` 36825 new_path=`$WHICH "$new_path" 2> /dev/null` 36826 # bat and cmd files are not always considered executable in cygwin causing which 36827 # to not find them 36828 if test "x$new_path" = x \ 36829 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36830 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36831 new_path=`$CYGPATH -u "$path"` 36832 fi 36833 if test "x$new_path" = x; then 36834 # It's still not found. Now this is an unrecoverable error. 36835 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36836 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36837 has_space=`$ECHO "$complete" | $GREP " "` 36838 if test "x$has_space" != x; then 36839 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36840 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36841 fi 36842 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36843 fi 36844 fi 36845 36846 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36847 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36848 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36849 # "foo.exe" is OK but "foo" is an error. 36850 # 36851 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36852 # It is also a way to make sure we got the proper file name for the real test later on. 36853 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36854 if test "x$test_shortpath" = x; then 36855 # Short path failed, file does not exist as specified. 36856 # Try adding .exe or .cmd 36857 if test -f "${new_path}.exe"; then 36858 input_to_shortpath="${new_path}.exe" 36859 elif test -f "${new_path}.cmd"; then 36860 input_to_shortpath="${new_path}.cmd" 36861 else 36862 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$new_path\", is invalid." >&5 36863 $as_echo "$as_me: The path of MCS, which resolves as \"$new_path\", is invalid." >&6;} 36864 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36865 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36866 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36867 fi 36868 else 36869 input_to_shortpath="$new_path" 36870 fi 36871 36872 # Call helper function which possibly converts this using DOS-style short mode. 36873 # If so, the updated path is stored in $new_path. 36874 new_path="$input_to_shortpath" 36875 36876 input_path="$input_to_shortpath" 36877 # Check if we need to convert this using DOS-style short mode. If the path 36878 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36879 # take no chances and rewrite it. 36880 # Note: m4 eats our [], so we need to use [ and ] instead. 36881 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36882 if test "x$has_forbidden_chars" != x; then 36883 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36884 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36885 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36886 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36887 # Going to short mode and back again did indeed matter. Since short mode is 36888 # case insensitive, let's make it lowercase to improve readability. 36889 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36890 # Now convert it back to Unix-stile (cygpath) 36891 input_path=`$CYGPATH -u "$shortmode_path"` 36892 new_path="$input_path" 36893 fi 36894 fi 36895 36896 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36897 if test "x$test_cygdrive_prefix" = x; then 36898 # As a simple fix, exclude /usr/bin since it's not a real path. 36899 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36900 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36901 # a path prefixed by /cygdrive for fixpath to work. 36902 new_path="$CYGWIN_ROOT_PATH$input_path" 36903 fi 36904 fi 36905 36906 # remove trailing .exe if any 36907 new_path="${new_path/%.exe/}" 36908 36909 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36910 36911 # First separate the path from the arguments. This will split at the first 36912 # space. 36913 complete="$MCS" 36914 path="${complete%% *}" 36915 tmp="$complete EOL" 36916 arguments="${tmp#* }" 36917 36918 # Input might be given as Windows format, start by converting to 36919 # unix format. 36920 new_path="$path" 36921 36922 windows_path="$new_path" 36923 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36924 unix_path=`$CYGPATH -u "$windows_path"` 36925 new_path="$unix_path" 36926 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36927 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36928 new_path="$unix_path" 36929 fi 36930 36931 36932 # Now try to locate executable using which 36933 new_path=`$WHICH "$new_path" 2> /dev/null` 36934 36935 if test "x$new_path" = x; then 36936 # Oops. Which didn't find the executable. 36937 # The splitting of arguments from the executable at a space might have been incorrect, 36938 # since paths with space are more likely in Windows. Give it another try with the whole 36939 # argument. 36940 path="$complete" 36941 arguments="EOL" 36942 new_path="$path" 36943 36944 windows_path="$new_path" 36945 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36946 unix_path=`$CYGPATH -u "$windows_path"` 36947 new_path="$unix_path" 36948 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36949 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36950 new_path="$unix_path" 36951 fi 36952 36953 36954 new_path=`$WHICH "$new_path" 2> /dev/null` 36955 # bat and cmd files are not always considered executable in MSYS causing which 36956 # to not find them 36957 if test "x$new_path" = x \ 36958 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36959 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36960 new_path="$path" 36961 36962 windows_path="$new_path" 36963 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36964 unix_path=`$CYGPATH -u "$windows_path"` 36965 new_path="$unix_path" 36966 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36967 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36968 new_path="$unix_path" 36969 fi 36970 36971 fi 36972 36973 if test "x$new_path" = x; then 36974 # It's still not found. Now this is an unrecoverable error. 36975 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36976 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36977 has_space=`$ECHO "$complete" | $GREP " "` 36978 if test "x$has_space" != x; then 36979 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36980 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36981 fi 36982 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36983 fi 36984 fi 36985 36986 # Now new_path has a complete unix path to the binary 36987 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36988 # Keep paths in /bin as-is, but remove trailing .exe if any 36989 new_path="${new_path/%.exe/}" 36990 # Do not save /bin paths to all_fixpath_prefixes! 36991 else 36992 # Not in mixed or Windows style, start by that. 36993 new_path=`cmd //c echo $new_path` 36994 36995 input_path="$new_path" 36996 # Check if we need to convert this using DOS-style short mode. If the path 36997 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36998 # take no chances and rewrite it. 36999 # Note: m4 eats our [], so we need to use [ and ] instead. 37000 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37001 if test "x$has_forbidden_chars" != x; then 37002 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37003 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37004 fi 37005 37006 # Output is in $new_path 37007 37008 windows_path="$new_path" 37009 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37010 unix_path=`$CYGPATH -u "$windows_path"` 37011 new_path="$unix_path" 37012 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37013 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37014 new_path="$unix_path" 37015 fi 37016 37017 # remove trailing .exe if any 37018 new_path="${new_path/%.exe/}" 37019 37020 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37021 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37022 fi 37023 37024 else 37025 # We're on a posix platform. Hooray! :) 37026 # First separate the path from the arguments. This will split at the first 37027 # space. 37028 complete="$MCS" 37029 path="${complete%% *}" 37030 tmp="$complete EOL" 37031 arguments="${tmp#* }" 37032 37033 # Cannot rely on the command "which" here since it doesn't always work. 37034 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37035 if test -z "$is_absolute_path"; then 37036 # Path to executable is not absolute. Find it. 37037 IFS_save="$IFS" 37038 IFS=: 37039 for p in $PATH; do 37040 if test -f "$p/$path" && test -x "$p/$path"; then 37041 new_path="$p/$path" 37042 break 37043 fi 37044 done 37045 IFS="$IFS_save" 37046 else 37047 # This is an absolute path, we can use it without further modifications. 37048 new_path="$path" 37049 fi 37050 37051 if test "x$new_path" = x; then 37052 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 37053 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 37054 has_space=`$ECHO "$complete" | $GREP " "` 37055 if test "x$has_space" != x; then 37056 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37057 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37058 fi 37059 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 37060 fi 37061 fi 37062 37063 # Now join together the path and the arguments once again 37064 if test "x$arguments" != xEOL; then 37065 new_complete="$new_path ${arguments% *}" 37066 else 37067 new_complete="$new_path" 37068 fi 37069 37070 if test "x$complete" != "x$new_complete"; then 37071 MCS="$new_complete" 37072 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5 37073 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;} 37074 fi 37075 37076 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 37077 # FIXME: we should unify this with the solaris case above. 37078 37079 37080 # Publish this variable in the help. 37081 37082 37083 if test "x$STRIP" = x; then 37084 # The variable is not set by user, try to locate tool using the code snippet 37085 if test -n "$ac_tool_prefix"; then 37086 for ac_prog in strip 37087 do 37088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37091 $as_echo_n "checking for $ac_word... " >&6; } 37092 if ${ac_cv_prog_STRIP+:} false; then : 37093 $as_echo_n "(cached) " >&6 37094 else 37095 if test -n "$STRIP"; then 37096 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 37097 else 37098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37099 for as_dir in $PATH 37100 do 37101 IFS=$as_save_IFS 37102 test -z "$as_dir" && as_dir=. 37103 for ac_exec_ext in '' $ac_executable_extensions; do 37104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37105 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 37106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37107 break 2 37108 fi 37109 done 37110 done 37111 IFS=$as_save_IFS 37112 37113 fi 37114 fi 37115 STRIP=$ac_cv_prog_STRIP 37116 if test -n "$STRIP"; then 37117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37118 $as_echo "$STRIP" >&6; } 37119 else 37120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37121 $as_echo "no" >&6; } 37122 fi 37123 37124 37125 test -n "$STRIP" && break 37126 done 37127 fi 37128 if test -z "$STRIP"; then 37129 ac_ct_STRIP=$STRIP 37130 for ac_prog in strip 37131 do 37132 # Extract the first word of "$ac_prog", so it can be a program name with args. 37133 set dummy $ac_prog; ac_word=$2 37134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37135 $as_echo_n "checking for $ac_word... " >&6; } 37136 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 37137 $as_echo_n "(cached) " >&6 37138 else 37139 if test -n "$ac_ct_STRIP"; then 37140 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 37141 else 37142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37143 for as_dir in $PATH 37144 do 37145 IFS=$as_save_IFS 37146 test -z "$as_dir" && as_dir=. 37147 for ac_exec_ext in '' $ac_executable_extensions; do 37148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37149 ac_cv_prog_ac_ct_STRIP="$ac_prog" 37150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37151 break 2 37152 fi 37153 done 37154 done 37155 IFS=$as_save_IFS 37156 37157 fi 37158 fi 37159 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 37160 if test -n "$ac_ct_STRIP"; then 37161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 37162 $as_echo "$ac_ct_STRIP" >&6; } 37163 else 37164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37165 $as_echo "no" >&6; } 37166 fi 37167 37168 37169 test -n "$ac_ct_STRIP" && break 37170 done 37171 37172 if test "x$ac_ct_STRIP" = x; then 37173 STRIP="" 37174 else 37175 case $cross_compiling:$ac_tool_warned in 37176 yes:) 37177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37179 ac_tool_warned=yes ;; 37180 esac 37181 STRIP=$ac_ct_STRIP 37182 fi 37183 fi 37184 37185 else 37186 # The variable is set, but is it from the command line or the environment? 37187 37188 # Try to remove the string !STRIP! from our list. 37189 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 37190 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37191 # If it failed, the variable was not from the command line. Ignore it, 37192 # but warn the user (except for BASH, which is always set by the calling BASH). 37193 if test "xSTRIP" != xBASH; then 37194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 37195 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 37196 fi 37197 # Try to locate tool using the code snippet 37198 if test -n "$ac_tool_prefix"; then 37199 for ac_prog in strip 37200 do 37201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37204 $as_echo_n "checking for $ac_word... " >&6; } 37205 if ${ac_cv_prog_STRIP+:} false; then : 37206 $as_echo_n "(cached) " >&6 37207 else 37208 if test -n "$STRIP"; then 37209 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 37210 else 37211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37212 for as_dir in $PATH 37213 do 37214 IFS=$as_save_IFS 37215 test -z "$as_dir" && as_dir=. 37216 for ac_exec_ext in '' $ac_executable_extensions; do 37217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37218 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 37219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37220 break 2 37221 fi 37222 done 37223 done 37224 IFS=$as_save_IFS 37225 37226 fi 37227 fi 37228 STRIP=$ac_cv_prog_STRIP 37229 if test -n "$STRIP"; then 37230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37231 $as_echo "$STRIP" >&6; } 37232 else 37233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37234 $as_echo "no" >&6; } 37235 fi 37236 37237 37238 test -n "$STRIP" && break 37239 done 37240 fi 37241 if test -z "$STRIP"; then 37242 ac_ct_STRIP=$STRIP 37243 for ac_prog in strip 37244 do 37245 # Extract the first word of "$ac_prog", so it can be a program name with args. 37246 set dummy $ac_prog; ac_word=$2 37247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37248 $as_echo_n "checking for $ac_word... " >&6; } 37249 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 37250 $as_echo_n "(cached) " >&6 37251 else 37252 if test -n "$ac_ct_STRIP"; then 37253 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 37254 else 37255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37256 for as_dir in $PATH 37257 do 37258 IFS=$as_save_IFS 37259 test -z "$as_dir" && as_dir=. 37260 for ac_exec_ext in '' $ac_executable_extensions; do 37261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37262 ac_cv_prog_ac_ct_STRIP="$ac_prog" 37263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37264 break 2 37265 fi 37266 done 37267 done 37268 IFS=$as_save_IFS 37269 37270 fi 37271 fi 37272 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 37273 if test -n "$ac_ct_STRIP"; then 37274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 37275 $as_echo "$ac_ct_STRIP" >&6; } 37276 else 37277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37278 $as_echo "no" >&6; } 37279 fi 37280 37281 37282 test -n "$ac_ct_STRIP" && break 37283 done 37284 37285 if test "x$ac_ct_STRIP" = x; then 37286 STRIP="" 37287 else 37288 case $cross_compiling:$ac_tool_warned in 37289 yes:) 37290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37292 ac_tool_warned=yes ;; 37293 esac 37294 STRIP=$ac_ct_STRIP 37295 fi 37296 fi 37297 37298 else 37299 # If it succeeded, then it was overridden by the user. We will use it 37300 # for the tool. 37301 37302 # First remove it from the list of overridden variables, so we can test 37303 # for unknown variables in the end. 37304 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37305 37306 # Check if the provided tool contains a complete path. 37307 tool_specified="$STRIP" 37308 tool_basename="${tool_specified##*/}" 37309 if test "x$tool_basename" = "x$tool_specified"; then 37310 # A command without a complete path is provided, search $PATH. 37311 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 37312 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 37313 # Extract the first word of "$tool_basename", so it can be a program name with args. 37314 set dummy $tool_basename; ac_word=$2 37315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37316 $as_echo_n "checking for $ac_word... " >&6; } 37317 if ${ac_cv_path_STRIP+:} false; then : 37318 $as_echo_n "(cached) " >&6 37319 else 37320 case $STRIP in 37321 [\\/]* | ?:[\\/]*) 37322 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 37323 ;; 37324 *) 37325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37326 for as_dir in $PATH 37327 do 37328 IFS=$as_save_IFS 37329 test -z "$as_dir" && as_dir=. 37330 for ac_exec_ext in '' $ac_executable_extensions; do 37331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37332 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 37333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37334 break 2 37335 fi 37336 done 37337 done 37338 IFS=$as_save_IFS 37339 37340 ;; 37341 esac 37342 fi 37343 STRIP=$ac_cv_path_STRIP 37344 if test -n "$STRIP"; then 37345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37346 $as_echo "$STRIP" >&6; } 37347 else 37348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37349 $as_echo "no" >&6; } 37350 fi 37351 37352 37353 if test "x$STRIP" = x; then 37354 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37355 fi 37356 else 37357 # Otherwise we believe it is a complete path. Use it as it is. 37358 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 37359 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 37360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 37361 $as_echo_n "checking for STRIP... " >&6; } 37362 if test ! -x "$tool_specified"; then 37363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37364 $as_echo "not found" >&6; } 37365 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 37366 fi 37367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37368 $as_echo "$tool_specified" >&6; } 37369 fi 37370 fi 37371 fi 37372 37373 37374 37375 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37376 37377 # First separate the path from the arguments. This will split at the first 37378 # space. 37379 complete="$STRIP" 37380 path="${complete%% *}" 37381 tmp="$complete EOL" 37382 arguments="${tmp#* }" 37383 37384 # Input might be given as Windows format, start by converting to 37385 # unix format. 37386 new_path=`$CYGPATH -u "$path"` 37387 37388 # Now try to locate executable using which 37389 new_path=`$WHICH "$new_path" 2> /dev/null` 37390 # bat and cmd files are not always considered executable in cygwin causing which 37391 # to not find them 37392 if test "x$new_path" = x \ 37393 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37394 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37395 new_path=`$CYGPATH -u "$path"` 37396 fi 37397 if test "x$new_path" = x; then 37398 # Oops. Which didn't find the executable. 37399 # The splitting of arguments from the executable at a space might have been incorrect, 37400 # since paths with space are more likely in Windows. Give it another try with the whole 37401 # argument. 37402 path="$complete" 37403 arguments="EOL" 37404 new_path=`$CYGPATH -u "$path"` 37405 new_path=`$WHICH "$new_path" 2> /dev/null` 37406 # bat and cmd files are not always considered executable in cygwin causing which 37407 # to not find them 37408 if test "x$new_path" = x \ 37409 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37410 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37411 new_path=`$CYGPATH -u "$path"` 37412 fi 37413 if test "x$new_path" = x; then 37414 # It's still not found. Now this is an unrecoverable error. 37415 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37416 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37417 has_space=`$ECHO "$complete" | $GREP " "` 37418 if test "x$has_space" != x; then 37419 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37420 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37421 fi 37422 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37423 fi 37424 fi 37425 37426 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37427 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37428 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37429 # "foo.exe" is OK but "foo" is an error. 37430 # 37431 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37432 # It is also a way to make sure we got the proper file name for the real test later on. 37433 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37434 if test "x$test_shortpath" = x; then 37435 # Short path failed, file does not exist as specified. 37436 # Try adding .exe or .cmd 37437 if test -f "${new_path}.exe"; then 37438 input_to_shortpath="${new_path}.exe" 37439 elif test -f "${new_path}.cmd"; then 37440 input_to_shortpath="${new_path}.cmd" 37441 else 37442 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 37443 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 37444 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37445 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37446 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37447 fi 37448 else 37449 input_to_shortpath="$new_path" 37450 fi 37451 37452 # Call helper function which possibly converts this using DOS-style short mode. 37453 # If so, the updated path is stored in $new_path. 37454 new_path="$input_to_shortpath" 37455 37456 input_path="$input_to_shortpath" 37457 # Check if we need to convert this using DOS-style short mode. If the path 37458 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37459 # take no chances and rewrite it. 37460 # Note: m4 eats our [], so we need to use [ and ] instead. 37461 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37462 if test "x$has_forbidden_chars" != x; then 37463 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37464 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37465 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37466 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37467 # Going to short mode and back again did indeed matter. Since short mode is 37468 # case insensitive, let's make it lowercase to improve readability. 37469 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37470 # Now convert it back to Unix-stile (cygpath) 37471 input_path=`$CYGPATH -u "$shortmode_path"` 37472 new_path="$input_path" 37473 fi 37474 fi 37475 37476 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37477 if test "x$test_cygdrive_prefix" = x; then 37478 # As a simple fix, exclude /usr/bin since it's not a real path. 37479 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37480 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37481 # a path prefixed by /cygdrive for fixpath to work. 37482 new_path="$CYGWIN_ROOT_PATH$input_path" 37483 fi 37484 fi 37485 37486 # remove trailing .exe if any 37487 new_path="${new_path/%.exe/}" 37488 37489 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37490 37491 # First separate the path from the arguments. This will split at the first 37492 # space. 37493 complete="$STRIP" 37494 path="${complete%% *}" 37495 tmp="$complete EOL" 37496 arguments="${tmp#* }" 37497 37498 # Input might be given as Windows format, start by converting to 37499 # unix format. 37500 new_path="$path" 37501 37502 windows_path="$new_path" 37503 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37504 unix_path=`$CYGPATH -u "$windows_path"` 37505 new_path="$unix_path" 37506 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37507 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37508 new_path="$unix_path" 37509 fi 37510 37511 37512 # Now try to locate executable using which 37513 new_path=`$WHICH "$new_path" 2> /dev/null` 37514 37515 if test "x$new_path" = x; then 37516 # Oops. Which didn't find the executable. 37517 # The splitting of arguments from the executable at a space might have been incorrect, 37518 # since paths with space are more likely in Windows. Give it another try with the whole 37519 # argument. 37520 path="$complete" 37521 arguments="EOL" 37522 new_path="$path" 37523 37524 windows_path="$new_path" 37525 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37526 unix_path=`$CYGPATH -u "$windows_path"` 37527 new_path="$unix_path" 37528 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37529 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37530 new_path="$unix_path" 37531 fi 37532 37533 37534 new_path=`$WHICH "$new_path" 2> /dev/null` 37535 # bat and cmd files are not always considered executable in MSYS causing which 37536 # to not find them 37537 if test "x$new_path" = x \ 37538 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37539 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37540 new_path="$path" 37541 37542 windows_path="$new_path" 37543 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37544 unix_path=`$CYGPATH -u "$windows_path"` 37545 new_path="$unix_path" 37546 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37547 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37548 new_path="$unix_path" 37549 fi 37550 37551 fi 37552 37553 if test "x$new_path" = x; then 37554 # It's still not found. Now this is an unrecoverable error. 37555 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37556 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37557 has_space=`$ECHO "$complete" | $GREP " "` 37558 if test "x$has_space" != x; then 37559 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37560 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37561 fi 37562 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37563 fi 37564 fi 37565 37566 # Now new_path has a complete unix path to the binary 37567 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37568 # Keep paths in /bin as-is, but remove trailing .exe if any 37569 new_path="${new_path/%.exe/}" 37570 # Do not save /bin paths to all_fixpath_prefixes! 37571 else 37572 # Not in mixed or Windows style, start by that. 37573 new_path=`cmd //c echo $new_path` 37574 37575 input_path="$new_path" 37576 # Check if we need to convert this using DOS-style short mode. If the path 37577 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37578 # take no chances and rewrite it. 37579 # Note: m4 eats our [], so we need to use [ and ] instead. 37580 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37581 if test "x$has_forbidden_chars" != x; then 37582 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37583 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37584 fi 37585 37586 # Output is in $new_path 37587 37588 windows_path="$new_path" 37589 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37590 unix_path=`$CYGPATH -u "$windows_path"` 37591 new_path="$unix_path" 37592 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37593 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37594 new_path="$unix_path" 37595 fi 37596 37597 # remove trailing .exe if any 37598 new_path="${new_path/%.exe/}" 37599 37600 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37601 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37602 fi 37603 37604 else 37605 # We're on a posix platform. Hooray! :) 37606 # First separate the path from the arguments. This will split at the first 37607 # space. 37608 complete="$STRIP" 37609 path="${complete%% *}" 37610 tmp="$complete EOL" 37611 arguments="${tmp#* }" 37612 37613 # Cannot rely on the command "which" here since it doesn't always work. 37614 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37615 if test -z "$is_absolute_path"; then 37616 # Path to executable is not absolute. Find it. 37617 IFS_save="$IFS" 37618 IFS=: 37619 for p in $PATH; do 37620 if test -f "$p/$path" && test -x "$p/$path"; then 37621 new_path="$p/$path" 37622 break 37623 fi 37624 done 37625 IFS="$IFS_save" 37626 else 37627 # This is an absolute path, we can use it without further modifications. 37628 new_path="$path" 37629 fi 37630 37631 if test "x$new_path" = x; then 37632 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37633 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37634 has_space=`$ECHO "$complete" | $GREP " "` 37635 if test "x$has_space" != x; then 37636 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37637 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37638 fi 37639 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37640 fi 37641 fi 37642 37643 # Now join together the path and the arguments once again 37644 if test "x$arguments" != xEOL; then 37645 new_complete="$new_path ${arguments% *}" 37646 else 37647 new_complete="$new_path" 37648 fi 37649 37650 if test "x$complete" != "x$new_complete"; then 37651 STRIP="$new_complete" 37652 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 37653 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 37654 fi 37655 37656 37657 37658 # Publish this variable in the help. 37659 37660 37661 if test "x$NM" = x; then 37662 # The variable is not set by user, try to locate tool using the code snippet 37663 if test -n "$ac_tool_prefix"; then 37664 for ac_prog in nm 37665 do 37666 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37667 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37669 $as_echo_n "checking for $ac_word... " >&6; } 37670 if ${ac_cv_prog_NM+:} false; then : 37671 $as_echo_n "(cached) " >&6 37672 else 37673 if test -n "$NM"; then 37674 ac_cv_prog_NM="$NM" # Let the user override the test. 37675 else 37676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37677 for as_dir in $PATH 37678 do 37679 IFS=$as_save_IFS 37680 test -z "$as_dir" && as_dir=. 37681 for ac_exec_ext in '' $ac_executable_extensions; do 37682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37683 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37685 break 2 37686 fi 37687 done 37688 done 37689 IFS=$as_save_IFS 37690 37691 fi 37692 fi 37693 NM=$ac_cv_prog_NM 37694 if test -n "$NM"; then 37695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37696 $as_echo "$NM" >&6; } 37697 else 37698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37699 $as_echo "no" >&6; } 37700 fi 37701 37702 37703 test -n "$NM" && break 37704 done 37705 fi 37706 if test -z "$NM"; then 37707 ac_ct_NM=$NM 37708 for ac_prog in nm 37709 do 37710 # Extract the first word of "$ac_prog", so it can be a program name with args. 37711 set dummy $ac_prog; ac_word=$2 37712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37713 $as_echo_n "checking for $ac_word... " >&6; } 37714 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37715 $as_echo_n "(cached) " >&6 37716 else 37717 if test -n "$ac_ct_NM"; then 37718 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37719 else 37720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37721 for as_dir in $PATH 37722 do 37723 IFS=$as_save_IFS 37724 test -z "$as_dir" && as_dir=. 37725 for ac_exec_ext in '' $ac_executable_extensions; do 37726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37727 ac_cv_prog_ac_ct_NM="$ac_prog" 37728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37729 break 2 37730 fi 37731 done 37732 done 37733 IFS=$as_save_IFS 37734 37735 fi 37736 fi 37737 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37738 if test -n "$ac_ct_NM"; then 37739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37740 $as_echo "$ac_ct_NM" >&6; } 37741 else 37742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37743 $as_echo "no" >&6; } 37744 fi 37745 37746 37747 test -n "$ac_ct_NM" && break 37748 done 37749 37750 if test "x$ac_ct_NM" = x; then 37751 NM="" 37752 else 37753 case $cross_compiling:$ac_tool_warned in 37754 yes:) 37755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37757 ac_tool_warned=yes ;; 37758 esac 37759 NM=$ac_ct_NM 37760 fi 37761 fi 37762 37763 else 37764 # The variable is set, but is it from the command line or the environment? 37765 37766 # Try to remove the string !NM! from our list. 37767 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 37768 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37769 # If it failed, the variable was not from the command line. Ignore it, 37770 # but warn the user (except for BASH, which is always set by the calling BASH). 37771 if test "xNM" != xBASH; then 37772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 37773 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 37774 fi 37775 # Try to locate tool using the code snippet 37776 if test -n "$ac_tool_prefix"; then 37777 for ac_prog in nm 37778 do 37779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37782 $as_echo_n "checking for $ac_word... " >&6; } 37783 if ${ac_cv_prog_NM+:} false; then : 37784 $as_echo_n "(cached) " >&6 37785 else 37786 if test -n "$NM"; then 37787 ac_cv_prog_NM="$NM" # Let the user override the test. 37788 else 37789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37790 for as_dir in $PATH 37791 do 37792 IFS=$as_save_IFS 37793 test -z "$as_dir" && as_dir=. 37794 for ac_exec_ext in '' $ac_executable_extensions; do 37795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37796 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37798 break 2 37799 fi 37800 done 37801 done 37802 IFS=$as_save_IFS 37803 37804 fi 37805 fi 37806 NM=$ac_cv_prog_NM 37807 if test -n "$NM"; then 37808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37809 $as_echo "$NM" >&6; } 37810 else 37811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37812 $as_echo "no" >&6; } 37813 fi 37814 37815 37816 test -n "$NM" && break 37817 done 37818 fi 37819 if test -z "$NM"; then 37820 ac_ct_NM=$NM 37821 for ac_prog in nm 37822 do 37823 # Extract the first word of "$ac_prog", so it can be a program name with args. 37824 set dummy $ac_prog; ac_word=$2 37825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37826 $as_echo_n "checking for $ac_word... " >&6; } 37827 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37828 $as_echo_n "(cached) " >&6 37829 else 37830 if test -n "$ac_ct_NM"; then 37831 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37832 else 37833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37834 for as_dir in $PATH 37835 do 37836 IFS=$as_save_IFS 37837 test -z "$as_dir" && as_dir=. 37838 for ac_exec_ext in '' $ac_executable_extensions; do 37839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37840 ac_cv_prog_ac_ct_NM="$ac_prog" 37841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37842 break 2 37843 fi 37844 done 37845 done 37846 IFS=$as_save_IFS 37847 37848 fi 37849 fi 37850 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37851 if test -n "$ac_ct_NM"; then 37852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37853 $as_echo "$ac_ct_NM" >&6; } 37854 else 37855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37856 $as_echo "no" >&6; } 37857 fi 37858 37859 37860 test -n "$ac_ct_NM" && break 37861 done 37862 37863 if test "x$ac_ct_NM" = x; then 37864 NM="" 37865 else 37866 case $cross_compiling:$ac_tool_warned in 37867 yes:) 37868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37870 ac_tool_warned=yes ;; 37871 esac 37872 NM=$ac_ct_NM 37873 fi 37874 fi 37875 37876 else 37877 # If it succeeded, then it was overridden by the user. We will use it 37878 # for the tool. 37879 37880 # First remove it from the list of overridden variables, so we can test 37881 # for unknown variables in the end. 37882 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37883 37884 # Check if the provided tool contains a complete path. 37885 tool_specified="$NM" 37886 tool_basename="${tool_specified##*/}" 37887 if test "x$tool_basename" = "x$tool_specified"; then 37888 # A command without a complete path is provided, search $PATH. 37889 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 37890 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 37891 # Extract the first word of "$tool_basename", so it can be a program name with args. 37892 set dummy $tool_basename; ac_word=$2 37893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37894 $as_echo_n "checking for $ac_word... " >&6; } 37895 if ${ac_cv_path_NM+:} false; then : 37896 $as_echo_n "(cached) " >&6 37897 else 37898 case $NM in 37899 [\\/]* | ?:[\\/]*) 37900 ac_cv_path_NM="$NM" # Let the user override the test with a path. 37901 ;; 37902 *) 37903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37904 for as_dir in $PATH 37905 do 37906 IFS=$as_save_IFS 37907 test -z "$as_dir" && as_dir=. 37908 for ac_exec_ext in '' $ac_executable_extensions; do 37909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37910 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 37911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37912 break 2 37913 fi 37914 done 37915 done 37916 IFS=$as_save_IFS 37917 37918 ;; 37919 esac 37920 fi 37921 NM=$ac_cv_path_NM 37922 if test -n "$NM"; then 37923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37924 $as_echo "$NM" >&6; } 37925 else 37926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37927 $as_echo "no" >&6; } 37928 fi 37929 37930 37931 if test "x$NM" = x; then 37932 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37933 fi 37934 else 37935 # Otherwise we believe it is a complete path. Use it as it is. 37936 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 37937 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 37938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 37939 $as_echo_n "checking for NM... " >&6; } 37940 if test ! -x "$tool_specified"; then 37941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37942 $as_echo "not found" >&6; } 37943 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 37944 fi 37945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37946 $as_echo "$tool_specified" >&6; } 37947 fi 37948 fi 37949 fi 37950 37951 37952 37953 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37954 37955 # First separate the path from the arguments. This will split at the first 37956 # space. 37957 complete="$NM" 37958 path="${complete%% *}" 37959 tmp="$complete EOL" 37960 arguments="${tmp#* }" 37961 37962 # Input might be given as Windows format, start by converting to 37963 # unix format. 37964 new_path=`$CYGPATH -u "$path"` 37965 37966 # Now try to locate executable using which 37967 new_path=`$WHICH "$new_path" 2> /dev/null` 37968 # bat and cmd files are not always considered executable in cygwin causing which 37969 # to not find them 37970 if test "x$new_path" = x \ 37971 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37972 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37973 new_path=`$CYGPATH -u "$path"` 37974 fi 37975 if test "x$new_path" = x; then 37976 # Oops. Which didn't find the executable. 37977 # The splitting of arguments from the executable at a space might have been incorrect, 37978 # since paths with space are more likely in Windows. Give it another try with the whole 37979 # argument. 37980 path="$complete" 37981 arguments="EOL" 37982 new_path=`$CYGPATH -u "$path"` 37983 new_path=`$WHICH "$new_path" 2> /dev/null` 37984 # bat and cmd files are not always considered executable in cygwin causing which 37985 # to not find them 37986 if test "x$new_path" = x \ 37987 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37988 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37989 new_path=`$CYGPATH -u "$path"` 37990 fi 37991 if test "x$new_path" = x; then 37992 # It's still not found. Now this is an unrecoverable error. 37993 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37994 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37995 has_space=`$ECHO "$complete" | $GREP " "` 37996 if test "x$has_space" != x; then 37997 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37998 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37999 fi 38000 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38001 fi 38002 fi 38003 38004 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38005 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38006 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38007 # "foo.exe" is OK but "foo" is an error. 38008 # 38009 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38010 # It is also a way to make sure we got the proper file name for the real test later on. 38011 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38012 if test "x$test_shortpath" = x; then 38013 # Short path failed, file does not exist as specified. 38014 # Try adding .exe or .cmd 38015 if test -f "${new_path}.exe"; then 38016 input_to_shortpath="${new_path}.exe" 38017 elif test -f "${new_path}.cmd"; then 38018 input_to_shortpath="${new_path}.cmd" 38019 else 38020 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 38021 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 38022 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38023 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38024 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38025 fi 38026 else 38027 input_to_shortpath="$new_path" 38028 fi 38029 38030 # Call helper function which possibly converts this using DOS-style short mode. 38031 # If so, the updated path is stored in $new_path. 38032 new_path="$input_to_shortpath" 38033 38034 input_path="$input_to_shortpath" 38035 # Check if we need to convert this using DOS-style short mode. If the path 38036 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38037 # take no chances and rewrite it. 38038 # Note: m4 eats our [], so we need to use [ and ] instead. 38039 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38040 if test "x$has_forbidden_chars" != x; then 38041 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38042 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38043 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38044 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38045 # Going to short mode and back again did indeed matter. Since short mode is 38046 # case insensitive, let's make it lowercase to improve readability. 38047 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38048 # Now convert it back to Unix-stile (cygpath) 38049 input_path=`$CYGPATH -u "$shortmode_path"` 38050 new_path="$input_path" 38051 fi 38052 fi 38053 38054 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38055 if test "x$test_cygdrive_prefix" = x; then 38056 # As a simple fix, exclude /usr/bin since it's not a real path. 38057 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38058 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38059 # a path prefixed by /cygdrive for fixpath to work. 38060 new_path="$CYGWIN_ROOT_PATH$input_path" 38061 fi 38062 fi 38063 38064 # remove trailing .exe if any 38065 new_path="${new_path/%.exe/}" 38066 38067 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38068 38069 # First separate the path from the arguments. This will split at the first 38070 # space. 38071 complete="$NM" 38072 path="${complete%% *}" 38073 tmp="$complete EOL" 38074 arguments="${tmp#* }" 38075 38076 # Input might be given as Windows format, start by converting to 38077 # unix format. 38078 new_path="$path" 38079 38080 windows_path="$new_path" 38081 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38082 unix_path=`$CYGPATH -u "$windows_path"` 38083 new_path="$unix_path" 38084 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38085 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38086 new_path="$unix_path" 38087 fi 38088 38089 38090 # Now try to locate executable using which 38091 new_path=`$WHICH "$new_path" 2> /dev/null` 38092 38093 if test "x$new_path" = x; then 38094 # Oops. Which didn't find the executable. 38095 # The splitting of arguments from the executable at a space might have been incorrect, 38096 # since paths with space are more likely in Windows. Give it another try with the whole 38097 # argument. 38098 path="$complete" 38099 arguments="EOL" 38100 new_path="$path" 38101 38102 windows_path="$new_path" 38103 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38104 unix_path=`$CYGPATH -u "$windows_path"` 38105 new_path="$unix_path" 38106 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38107 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38108 new_path="$unix_path" 38109 fi 38110 38111 38112 new_path=`$WHICH "$new_path" 2> /dev/null` 38113 # bat and cmd files are not always considered executable in MSYS causing which 38114 # to not find them 38115 if test "x$new_path" = x \ 38116 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38117 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38118 new_path="$path" 38119 38120 windows_path="$new_path" 38121 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38122 unix_path=`$CYGPATH -u "$windows_path"` 38123 new_path="$unix_path" 38124 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38125 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38126 new_path="$unix_path" 38127 fi 38128 38129 fi 38130 38131 if test "x$new_path" = x; then 38132 # It's still not found. Now this is an unrecoverable error. 38133 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38134 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38135 has_space=`$ECHO "$complete" | $GREP " "` 38136 if test "x$has_space" != x; then 38137 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38138 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38139 fi 38140 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38141 fi 38142 fi 38143 38144 # Now new_path has a complete unix path to the binary 38145 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38146 # Keep paths in /bin as-is, but remove trailing .exe if any 38147 new_path="${new_path/%.exe/}" 38148 # Do not save /bin paths to all_fixpath_prefixes! 38149 else 38150 # Not in mixed or Windows style, start by that. 38151 new_path=`cmd //c echo $new_path` 38152 38153 input_path="$new_path" 38154 # Check if we need to convert this using DOS-style short mode. If the path 38155 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38156 # take no chances and rewrite it. 38157 # Note: m4 eats our [], so we need to use [ and ] instead. 38158 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38159 if test "x$has_forbidden_chars" != x; then 38160 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38161 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38162 fi 38163 38164 # Output is in $new_path 38165 38166 windows_path="$new_path" 38167 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38168 unix_path=`$CYGPATH -u "$windows_path"` 38169 new_path="$unix_path" 38170 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38171 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38172 new_path="$unix_path" 38173 fi 38174 38175 # remove trailing .exe if any 38176 new_path="${new_path/%.exe/}" 38177 38178 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38179 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38180 fi 38181 38182 else 38183 # We're on a posix platform. Hooray! :) 38184 # First separate the path from the arguments. This will split at the first 38185 # space. 38186 complete="$NM" 38187 path="${complete%% *}" 38188 tmp="$complete EOL" 38189 arguments="${tmp#* }" 38190 38191 # Cannot rely on the command "which" here since it doesn't always work. 38192 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38193 if test -z "$is_absolute_path"; then 38194 # Path to executable is not absolute. Find it. 38195 IFS_save="$IFS" 38196 IFS=: 38197 for p in $PATH; do 38198 if test -f "$p/$path" && test -x "$p/$path"; then 38199 new_path="$p/$path" 38200 break 38201 fi 38202 done 38203 IFS="$IFS_save" 38204 else 38205 # This is an absolute path, we can use it without further modifications. 38206 new_path="$path" 38207 fi 38208 38209 if test "x$new_path" = x; then 38210 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38211 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38212 has_space=`$ECHO "$complete" | $GREP " "` 38213 if test "x$has_space" != x; then 38214 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38215 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38216 fi 38217 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38218 fi 38219 fi 38220 38221 # Now join together the path and the arguments once again 38222 if test "x$arguments" != xEOL; then 38223 new_complete="$new_path ${arguments% *}" 38224 else 38225 new_complete="$new_path" 38226 fi 38227 38228 if test "x$complete" != "x$new_complete"; then 38229 NM="$new_complete" 38230 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 38231 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 38232 fi 38233 38234 GNM="$NM" 38235 38236 fi 38237 38238 # objcopy is used for moving debug symbols to separate files when 38239 # full debug symbols are enabled. 38240 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 38241 38242 38243 # Publish this variable in the help. 38244 38245 38246 if test "x$OBJCOPY" = x; then 38247 # The variable is not set by user, try to locate tool using the code snippet 38248 if test -n "$ac_tool_prefix"; then 38249 for ac_prog in gobjcopy objcopy 38250 do 38251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38252 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38254 $as_echo_n "checking for $ac_word... " >&6; } 38255 if ${ac_cv_prog_OBJCOPY+:} false; then : 38256 $as_echo_n "(cached) " >&6 38257 else 38258 if test -n "$OBJCOPY"; then 38259 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 38260 else 38261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38262 for as_dir in $PATH 38263 do 38264 IFS=$as_save_IFS 38265 test -z "$as_dir" && as_dir=. 38266 for ac_exec_ext in '' $ac_executable_extensions; do 38267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38268 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 38269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38270 break 2 38271 fi 38272 done 38273 done 38274 IFS=$as_save_IFS 38275 38276 fi 38277 fi 38278 OBJCOPY=$ac_cv_prog_OBJCOPY 38279 if test -n "$OBJCOPY"; then 38280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38281 $as_echo "$OBJCOPY" >&6; } 38282 else 38283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38284 $as_echo "no" >&6; } 38285 fi 38286 38287 38288 test -n "$OBJCOPY" && break 38289 done 38290 fi 38291 if test -z "$OBJCOPY"; then 38292 ac_ct_OBJCOPY=$OBJCOPY 38293 for ac_prog in gobjcopy objcopy 38294 do 38295 # Extract the first word of "$ac_prog", so it can be a program name with args. 38296 set dummy $ac_prog; ac_word=$2 38297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38298 $as_echo_n "checking for $ac_word... " >&6; } 38299 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 38300 $as_echo_n "(cached) " >&6 38301 else 38302 if test -n "$ac_ct_OBJCOPY"; then 38303 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 38304 else 38305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38306 for as_dir in $PATH 38307 do 38308 IFS=$as_save_IFS 38309 test -z "$as_dir" && as_dir=. 38310 for ac_exec_ext in '' $ac_executable_extensions; do 38311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38312 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 38313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38314 break 2 38315 fi 38316 done 38317 done 38318 IFS=$as_save_IFS 38319 38320 fi 38321 fi 38322 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 38323 if test -n "$ac_ct_OBJCOPY"; then 38324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 38325 $as_echo "$ac_ct_OBJCOPY" >&6; } 38326 else 38327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38328 $as_echo "no" >&6; } 38329 fi 38330 38331 38332 test -n "$ac_ct_OBJCOPY" && break 38333 done 38334 38335 if test "x$ac_ct_OBJCOPY" = x; then 38336 OBJCOPY="" 38337 else 38338 case $cross_compiling:$ac_tool_warned in 38339 yes:) 38340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38342 ac_tool_warned=yes ;; 38343 esac 38344 OBJCOPY=$ac_ct_OBJCOPY 38345 fi 38346 fi 38347 38348 else 38349 # The variable is set, but is it from the command line or the environment? 38350 38351 # Try to remove the string !OBJCOPY! from our list. 38352 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 38353 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38354 # If it failed, the variable was not from the command line. Ignore it, 38355 # but warn the user (except for BASH, which is always set by the calling BASH). 38356 if test "xOBJCOPY" != xBASH; then 38357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 38358 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 38359 fi 38360 # Try to locate tool using the code snippet 38361 if test -n "$ac_tool_prefix"; then 38362 for ac_prog in gobjcopy objcopy 38363 do 38364 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38365 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38367 $as_echo_n "checking for $ac_word... " >&6; } 38368 if ${ac_cv_prog_OBJCOPY+:} false; then : 38369 $as_echo_n "(cached) " >&6 38370 else 38371 if test -n "$OBJCOPY"; then 38372 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 38373 else 38374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38375 for as_dir in $PATH 38376 do 38377 IFS=$as_save_IFS 38378 test -z "$as_dir" && as_dir=. 38379 for ac_exec_ext in '' $ac_executable_extensions; do 38380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38381 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 38382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38383 break 2 38384 fi 38385 done 38386 done 38387 IFS=$as_save_IFS 38388 38389 fi 38390 fi 38391 OBJCOPY=$ac_cv_prog_OBJCOPY 38392 if test -n "$OBJCOPY"; then 38393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38394 $as_echo "$OBJCOPY" >&6; } 38395 else 38396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38397 $as_echo "no" >&6; } 38398 fi 38399 38400 38401 test -n "$OBJCOPY" && break 38402 done 38403 fi 38404 if test -z "$OBJCOPY"; then 38405 ac_ct_OBJCOPY=$OBJCOPY 38406 for ac_prog in gobjcopy objcopy 38407 do 38408 # Extract the first word of "$ac_prog", so it can be a program name with args. 38409 set dummy $ac_prog; ac_word=$2 38410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38411 $as_echo_n "checking for $ac_word... " >&6; } 38412 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 38413 $as_echo_n "(cached) " >&6 38414 else 38415 if test -n "$ac_ct_OBJCOPY"; then 38416 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 38417 else 38418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38419 for as_dir in $PATH 38420 do 38421 IFS=$as_save_IFS 38422 test -z "$as_dir" && as_dir=. 38423 for ac_exec_ext in '' $ac_executable_extensions; do 38424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38425 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 38426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38427 break 2 38428 fi 38429 done 38430 done 38431 IFS=$as_save_IFS 38432 38433 fi 38434 fi 38435 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 38436 if test -n "$ac_ct_OBJCOPY"; then 38437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 38438 $as_echo "$ac_ct_OBJCOPY" >&6; } 38439 else 38440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38441 $as_echo "no" >&6; } 38442 fi 38443 38444 38445 test -n "$ac_ct_OBJCOPY" && break 38446 done 38447 38448 if test "x$ac_ct_OBJCOPY" = x; then 38449 OBJCOPY="" 38450 else 38451 case $cross_compiling:$ac_tool_warned in 38452 yes:) 38453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38455 ac_tool_warned=yes ;; 38456 esac 38457 OBJCOPY=$ac_ct_OBJCOPY 38458 fi 38459 fi 38460 38461 else 38462 # If it succeeded, then it was overridden by the user. We will use it 38463 # for the tool. 38464 38465 # First remove it from the list of overridden variables, so we can test 38466 # for unknown variables in the end. 38467 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38468 38469 # Check if the provided tool contains a complete path. 38470 tool_specified="$OBJCOPY" 38471 tool_basename="${tool_specified##*/}" 38472 if test "x$tool_basename" = "x$tool_specified"; then 38473 # A command without a complete path is provided, search $PATH. 38474 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 38475 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 38476 # Extract the first word of "$tool_basename", so it can be a program name with args. 38477 set dummy $tool_basename; ac_word=$2 38478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38479 $as_echo_n "checking for $ac_word... " >&6; } 38480 if ${ac_cv_path_OBJCOPY+:} false; then : 38481 $as_echo_n "(cached) " >&6 38482 else 38483 case $OBJCOPY in 38484 [\\/]* | ?:[\\/]*) 38485 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 38486 ;; 38487 *) 38488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38489 for as_dir in $PATH 38490 do 38491 IFS=$as_save_IFS 38492 test -z "$as_dir" && as_dir=. 38493 for ac_exec_ext in '' $ac_executable_extensions; do 38494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38495 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 38496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38497 break 2 38498 fi 38499 done 38500 done 38501 IFS=$as_save_IFS 38502 38503 ;; 38504 esac 38505 fi 38506 OBJCOPY=$ac_cv_path_OBJCOPY 38507 if test -n "$OBJCOPY"; then 38508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38509 $as_echo "$OBJCOPY" >&6; } 38510 else 38511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38512 $as_echo "no" >&6; } 38513 fi 38514 38515 38516 if test "x$OBJCOPY" = x; then 38517 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38518 fi 38519 else 38520 # Otherwise we believe it is a complete path. Use it as it is. 38521 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 38522 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 38523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 38524 $as_echo_n "checking for OBJCOPY... " >&6; } 38525 if test ! -x "$tool_specified"; then 38526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38527 $as_echo "not found" >&6; } 38528 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 38529 fi 38530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38531 $as_echo "$tool_specified" >&6; } 38532 fi 38533 fi 38534 fi 38535 38536 38537 # Only call fixup if objcopy was found. 38538 if test -n "$OBJCOPY"; then 38539 38540 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38541 38542 # First separate the path from the arguments. This will split at the first 38543 # space. 38544 complete="$OBJCOPY" 38545 path="${complete%% *}" 38546 tmp="$complete EOL" 38547 arguments="${tmp#* }" 38548 38549 # Input might be given as Windows format, start by converting to 38550 # unix format. 38551 new_path=`$CYGPATH -u "$path"` 38552 38553 # Now try to locate executable using which 38554 new_path=`$WHICH "$new_path" 2> /dev/null` 38555 # bat and cmd files are not always considered executable in cygwin causing which 38556 # to not find them 38557 if test "x$new_path" = x \ 38558 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38559 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38560 new_path=`$CYGPATH -u "$path"` 38561 fi 38562 if test "x$new_path" = x; then 38563 # Oops. Which didn't find the executable. 38564 # The splitting of arguments from the executable at a space might have been incorrect, 38565 # since paths with space are more likely in Windows. Give it another try with the whole 38566 # argument. 38567 path="$complete" 38568 arguments="EOL" 38569 new_path=`$CYGPATH -u "$path"` 38570 new_path=`$WHICH "$new_path" 2> /dev/null` 38571 # bat and cmd files are not always considered executable in cygwin causing which 38572 # to not find them 38573 if test "x$new_path" = x \ 38574 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38575 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38576 new_path=`$CYGPATH -u "$path"` 38577 fi 38578 if test "x$new_path" = x; then 38579 # It's still not found. Now this is an unrecoverable error. 38580 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38581 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38582 has_space=`$ECHO "$complete" | $GREP " "` 38583 if test "x$has_space" != x; then 38584 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38585 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38586 fi 38587 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38588 fi 38589 fi 38590 38591 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38592 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38593 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38594 # "foo.exe" is OK but "foo" is an error. 38595 # 38596 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38597 # It is also a way to make sure we got the proper file name for the real test later on. 38598 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38599 if test "x$test_shortpath" = x; then 38600 # Short path failed, file does not exist as specified. 38601 # Try adding .exe or .cmd 38602 if test -f "${new_path}.exe"; then 38603 input_to_shortpath="${new_path}.exe" 38604 elif test -f "${new_path}.cmd"; then 38605 input_to_shortpath="${new_path}.cmd" 38606 else 38607 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 38608 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 38609 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38610 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38611 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38612 fi 38613 else 38614 input_to_shortpath="$new_path" 38615 fi 38616 38617 # Call helper function which possibly converts this using DOS-style short mode. 38618 # If so, the updated path is stored in $new_path. 38619 new_path="$input_to_shortpath" 38620 38621 input_path="$input_to_shortpath" 38622 # Check if we need to convert this using DOS-style short mode. If the path 38623 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38624 # take no chances and rewrite it. 38625 # Note: m4 eats our [], so we need to use [ and ] instead. 38626 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38627 if test "x$has_forbidden_chars" != x; then 38628 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38629 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38630 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38631 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38632 # Going to short mode and back again did indeed matter. Since short mode is 38633 # case insensitive, let's make it lowercase to improve readability. 38634 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38635 # Now convert it back to Unix-stile (cygpath) 38636 input_path=`$CYGPATH -u "$shortmode_path"` 38637 new_path="$input_path" 38638 fi 38639 fi 38640 38641 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38642 if test "x$test_cygdrive_prefix" = x; then 38643 # As a simple fix, exclude /usr/bin since it's not a real path. 38644 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38645 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38646 # a path prefixed by /cygdrive for fixpath to work. 38647 new_path="$CYGWIN_ROOT_PATH$input_path" 38648 fi 38649 fi 38650 38651 # remove trailing .exe if any 38652 new_path="${new_path/%.exe/}" 38653 38654 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38655 38656 # First separate the path from the arguments. This will split at the first 38657 # space. 38658 complete="$OBJCOPY" 38659 path="${complete%% *}" 38660 tmp="$complete EOL" 38661 arguments="${tmp#* }" 38662 38663 # Input might be given as Windows format, start by converting to 38664 # unix format. 38665 new_path="$path" 38666 38667 windows_path="$new_path" 38668 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38669 unix_path=`$CYGPATH -u "$windows_path"` 38670 new_path="$unix_path" 38671 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38672 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38673 new_path="$unix_path" 38674 fi 38675 38676 38677 # Now try to locate executable using which 38678 new_path=`$WHICH "$new_path" 2> /dev/null` 38679 38680 if test "x$new_path" = x; then 38681 # Oops. Which didn't find the executable. 38682 # The splitting of arguments from the executable at a space might have been incorrect, 38683 # since paths with space are more likely in Windows. Give it another try with the whole 38684 # argument. 38685 path="$complete" 38686 arguments="EOL" 38687 new_path="$path" 38688 38689 windows_path="$new_path" 38690 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38691 unix_path=`$CYGPATH -u "$windows_path"` 38692 new_path="$unix_path" 38693 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38694 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38695 new_path="$unix_path" 38696 fi 38697 38698 38699 new_path=`$WHICH "$new_path" 2> /dev/null` 38700 # bat and cmd files are not always considered executable in MSYS causing which 38701 # to not find them 38702 if test "x$new_path" = x \ 38703 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38704 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38705 new_path="$path" 38706 38707 windows_path="$new_path" 38708 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38709 unix_path=`$CYGPATH -u "$windows_path"` 38710 new_path="$unix_path" 38711 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38712 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38713 new_path="$unix_path" 38714 fi 38715 38716 fi 38717 38718 if test "x$new_path" = x; then 38719 # It's still not found. Now this is an unrecoverable error. 38720 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38721 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38722 has_space=`$ECHO "$complete" | $GREP " "` 38723 if test "x$has_space" != x; then 38724 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38725 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38726 fi 38727 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38728 fi 38729 fi 38730 38731 # Now new_path has a complete unix path to the binary 38732 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38733 # Keep paths in /bin as-is, but remove trailing .exe if any 38734 new_path="${new_path/%.exe/}" 38735 # Do not save /bin paths to all_fixpath_prefixes! 38736 else 38737 # Not in mixed or Windows style, start by that. 38738 new_path=`cmd //c echo $new_path` 38739 38740 input_path="$new_path" 38741 # Check if we need to convert this using DOS-style short mode. If the path 38742 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38743 # take no chances and rewrite it. 38744 # Note: m4 eats our [], so we need to use [ and ] instead. 38745 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38746 if test "x$has_forbidden_chars" != x; then 38747 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38748 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38749 fi 38750 38751 # Output is in $new_path 38752 38753 windows_path="$new_path" 38754 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38755 unix_path=`$CYGPATH -u "$windows_path"` 38756 new_path="$unix_path" 38757 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38758 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38759 new_path="$unix_path" 38760 fi 38761 38762 # remove trailing .exe if any 38763 new_path="${new_path/%.exe/}" 38764 38765 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38766 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38767 fi 38768 38769 else 38770 # We're on a posix platform. Hooray! :) 38771 # First separate the path from the arguments. This will split at the first 38772 # space. 38773 complete="$OBJCOPY" 38774 path="${complete%% *}" 38775 tmp="$complete EOL" 38776 arguments="${tmp#* }" 38777 38778 # Cannot rely on the command "which" here since it doesn't always work. 38779 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38780 if test -z "$is_absolute_path"; then 38781 # Path to executable is not absolute. Find it. 38782 IFS_save="$IFS" 38783 IFS=: 38784 for p in $PATH; do 38785 if test -f "$p/$path" && test -x "$p/$path"; then 38786 new_path="$p/$path" 38787 break 38788 fi 38789 done 38790 IFS="$IFS_save" 38791 else 38792 # This is an absolute path, we can use it without further modifications. 38793 new_path="$path" 38794 fi 38795 38796 if test "x$new_path" = x; then 38797 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38798 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38799 has_space=`$ECHO "$complete" | $GREP " "` 38800 if test "x$has_space" != x; then 38801 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38802 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38803 fi 38804 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38805 fi 38806 fi 38807 38808 # Now join together the path and the arguments once again 38809 if test "x$arguments" != xEOL; then 38810 new_complete="$new_path ${arguments% *}" 38811 else 38812 new_complete="$new_path" 38813 fi 38814 38815 if test "x$complete" != "x$new_complete"; then 38816 OBJCOPY="$new_complete" 38817 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 38818 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 38819 fi 38820 38821 fi 38822 fi 38823 38824 38825 38826 # Publish this variable in the help. 38827 38828 38829 if test "x$OBJDUMP" = x; then 38830 # The variable is not set by user, try to locate tool using the code snippet 38831 if test -n "$ac_tool_prefix"; then 38832 for ac_prog in gobjdump objdump 38833 do 38834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38835 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38837 $as_echo_n "checking for $ac_word... " >&6; } 38838 if ${ac_cv_prog_OBJDUMP+:} false; then : 38839 $as_echo_n "(cached) " >&6 38840 else 38841 if test -n "$OBJDUMP"; then 38842 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38843 else 38844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38845 for as_dir in $PATH 38846 do 38847 IFS=$as_save_IFS 38848 test -z "$as_dir" && as_dir=. 38849 for ac_exec_ext in '' $ac_executable_extensions; do 38850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38851 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38853 break 2 38854 fi 38855 done 38856 done 38857 IFS=$as_save_IFS 38858 38859 fi 38860 fi 38861 OBJDUMP=$ac_cv_prog_OBJDUMP 38862 if test -n "$OBJDUMP"; then 38863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38864 $as_echo "$OBJDUMP" >&6; } 38865 else 38866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38867 $as_echo "no" >&6; } 38868 fi 38869 38870 38871 test -n "$OBJDUMP" && break 38872 done 38873 fi 38874 if test -z "$OBJDUMP"; then 38875 ac_ct_OBJDUMP=$OBJDUMP 38876 for ac_prog in gobjdump objdump 38877 do 38878 # Extract the first word of "$ac_prog", so it can be a program name with args. 38879 set dummy $ac_prog; ac_word=$2 38880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38881 $as_echo_n "checking for $ac_word... " >&6; } 38882 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38883 $as_echo_n "(cached) " >&6 38884 else 38885 if test -n "$ac_ct_OBJDUMP"; then 38886 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38887 else 38888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38889 for as_dir in $PATH 38890 do 38891 IFS=$as_save_IFS 38892 test -z "$as_dir" && as_dir=. 38893 for ac_exec_ext in '' $ac_executable_extensions; do 38894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38895 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38897 break 2 38898 fi 38899 done 38900 done 38901 IFS=$as_save_IFS 38902 38903 fi 38904 fi 38905 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38906 if test -n "$ac_ct_OBJDUMP"; then 38907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38908 $as_echo "$ac_ct_OBJDUMP" >&6; } 38909 else 38910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38911 $as_echo "no" >&6; } 38912 fi 38913 38914 38915 test -n "$ac_ct_OBJDUMP" && break 38916 done 38917 38918 if test "x$ac_ct_OBJDUMP" = x; then 38919 OBJDUMP="" 38920 else 38921 case $cross_compiling:$ac_tool_warned in 38922 yes:) 38923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38925 ac_tool_warned=yes ;; 38926 esac 38927 OBJDUMP=$ac_ct_OBJDUMP 38928 fi 38929 fi 38930 38931 else 38932 # The variable is set, but is it from the command line or the environment? 38933 38934 # Try to remove the string !OBJDUMP! from our list. 38935 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 38936 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38937 # If it failed, the variable was not from the command line. Ignore it, 38938 # but warn the user (except for BASH, which is always set by the calling BASH). 38939 if test "xOBJDUMP" != xBASH; then 38940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 38941 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 38942 fi 38943 # Try to locate tool using the code snippet 38944 if test -n "$ac_tool_prefix"; then 38945 for ac_prog in gobjdump objdump 38946 do 38947 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38948 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38950 $as_echo_n "checking for $ac_word... " >&6; } 38951 if ${ac_cv_prog_OBJDUMP+:} false; then : 38952 $as_echo_n "(cached) " >&6 38953 else 38954 if test -n "$OBJDUMP"; then 38955 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38956 else 38957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38958 for as_dir in $PATH 38959 do 38960 IFS=$as_save_IFS 38961 test -z "$as_dir" && as_dir=. 38962 for ac_exec_ext in '' $ac_executable_extensions; do 38963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38964 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38966 break 2 38967 fi 38968 done 38969 done 38970 IFS=$as_save_IFS 38971 38972 fi 38973 fi 38974 OBJDUMP=$ac_cv_prog_OBJDUMP 38975 if test -n "$OBJDUMP"; then 38976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38977 $as_echo "$OBJDUMP" >&6; } 38978 else 38979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38980 $as_echo "no" >&6; } 38981 fi 38982 38983 38984 test -n "$OBJDUMP" && break 38985 done 38986 fi 38987 if test -z "$OBJDUMP"; then 38988 ac_ct_OBJDUMP=$OBJDUMP 38989 for ac_prog in gobjdump objdump 38990 do 38991 # Extract the first word of "$ac_prog", so it can be a program name with args. 38992 set dummy $ac_prog; ac_word=$2 38993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38994 $as_echo_n "checking for $ac_word... " >&6; } 38995 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38996 $as_echo_n "(cached) " >&6 38997 else 38998 if test -n "$ac_ct_OBJDUMP"; then 38999 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 39000 else 39001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39002 for as_dir in $PATH 39003 do 39004 IFS=$as_save_IFS 39005 test -z "$as_dir" && as_dir=. 39006 for ac_exec_ext in '' $ac_executable_extensions; do 39007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39008 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 39009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39010 break 2 39011 fi 39012 done 39013 done 39014 IFS=$as_save_IFS 39015 39016 fi 39017 fi 39018 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 39019 if test -n "$ac_ct_OBJDUMP"; then 39020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 39021 $as_echo "$ac_ct_OBJDUMP" >&6; } 39022 else 39023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39024 $as_echo "no" >&6; } 39025 fi 39026 39027 39028 test -n "$ac_ct_OBJDUMP" && break 39029 done 39030 39031 if test "x$ac_ct_OBJDUMP" = x; then 39032 OBJDUMP="" 39033 else 39034 case $cross_compiling:$ac_tool_warned in 39035 yes:) 39036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 39037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 39038 ac_tool_warned=yes ;; 39039 esac 39040 OBJDUMP=$ac_ct_OBJDUMP 39041 fi 39042 fi 39043 39044 else 39045 # If it succeeded, then it was overridden by the user. We will use it 39046 # for the tool. 39047 39048 # First remove it from the list of overridden variables, so we can test 39049 # for unknown variables in the end. 39050 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39051 39052 # Check if the provided tool contains a complete path. 39053 tool_specified="$OBJDUMP" 39054 tool_basename="${tool_specified##*/}" 39055 if test "x$tool_basename" = "x$tool_specified"; then 39056 # A command without a complete path is provided, search $PATH. 39057 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 39058 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 39059 # Extract the first word of "$tool_basename", so it can be a program name with args. 39060 set dummy $tool_basename; ac_word=$2 39061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39062 $as_echo_n "checking for $ac_word... " >&6; } 39063 if ${ac_cv_path_OBJDUMP+:} false; then : 39064 $as_echo_n "(cached) " >&6 39065 else 39066 case $OBJDUMP in 39067 [\\/]* | ?:[\\/]*) 39068 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 39069 ;; 39070 *) 39071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39072 for as_dir in $PATH 39073 do 39074 IFS=$as_save_IFS 39075 test -z "$as_dir" && as_dir=. 39076 for ac_exec_ext in '' $ac_executable_extensions; do 39077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39078 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 39079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39080 break 2 39081 fi 39082 done 39083 done 39084 IFS=$as_save_IFS 39085 39086 ;; 39087 esac 39088 fi 39089 OBJDUMP=$ac_cv_path_OBJDUMP 39090 if test -n "$OBJDUMP"; then 39091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 39092 $as_echo "$OBJDUMP" >&6; } 39093 else 39094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39095 $as_echo "no" >&6; } 39096 fi 39097 39098 39099 if test "x$OBJDUMP" = x; then 39100 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39101 fi 39102 else 39103 # Otherwise we believe it is a complete path. Use it as it is. 39104 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 39105 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 39106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 39107 $as_echo_n "checking for OBJDUMP... " >&6; } 39108 if test ! -x "$tool_specified"; then 39109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39110 $as_echo "not found" >&6; } 39111 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 39112 fi 39113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39114 $as_echo "$tool_specified" >&6; } 39115 fi 39116 fi 39117 fi 39118 39119 39120 if test "x$OBJDUMP" != x; then 39121 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 39122 # bails if argument is missing. 39123 39124 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39125 39126 # First separate the path from the arguments. This will split at the first 39127 # space. 39128 complete="$OBJDUMP" 39129 path="${complete%% *}" 39130 tmp="$complete EOL" 39131 arguments="${tmp#* }" 39132 39133 # Input might be given as Windows format, start by converting to 39134 # unix format. 39135 new_path=`$CYGPATH -u "$path"` 39136 39137 # Now try to locate executable using which 39138 new_path=`$WHICH "$new_path" 2> /dev/null` 39139 # bat and cmd files are not always considered executable in cygwin causing which 39140 # to not find them 39141 if test "x$new_path" = x \ 39142 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39143 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39144 new_path=`$CYGPATH -u "$path"` 39145 fi 39146 if test "x$new_path" = x; then 39147 # Oops. Which didn't find the executable. 39148 # The splitting of arguments from the executable at a space might have been incorrect, 39149 # since paths with space are more likely in Windows. Give it another try with the whole 39150 # argument. 39151 path="$complete" 39152 arguments="EOL" 39153 new_path=`$CYGPATH -u "$path"` 39154 new_path=`$WHICH "$new_path" 2> /dev/null` 39155 # bat and cmd files are not always considered executable in cygwin causing which 39156 # to not find them 39157 if test "x$new_path" = x \ 39158 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39159 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39160 new_path=`$CYGPATH -u "$path"` 39161 fi 39162 if test "x$new_path" = x; then 39163 # It's still not found. Now this is an unrecoverable error. 39164 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39165 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39166 has_space=`$ECHO "$complete" | $GREP " "` 39167 if test "x$has_space" != x; then 39168 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39169 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39170 fi 39171 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39172 fi 39173 fi 39174 39175 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39176 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39177 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39178 # "foo.exe" is OK but "foo" is an error. 39179 # 39180 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39181 # It is also a way to make sure we got the proper file name for the real test later on. 39182 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39183 if test "x$test_shortpath" = x; then 39184 # Short path failed, file does not exist as specified. 39185 # Try adding .exe or .cmd 39186 if test -f "${new_path}.exe"; then 39187 input_to_shortpath="${new_path}.exe" 39188 elif test -f "${new_path}.cmd"; then 39189 input_to_shortpath="${new_path}.cmd" 39190 else 39191 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 39192 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 39193 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39194 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39195 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39196 fi 39197 else 39198 input_to_shortpath="$new_path" 39199 fi 39200 39201 # Call helper function which possibly converts this using DOS-style short mode. 39202 # If so, the updated path is stored in $new_path. 39203 new_path="$input_to_shortpath" 39204 39205 input_path="$input_to_shortpath" 39206 # Check if we need to convert this using DOS-style short mode. If the path 39207 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39208 # take no chances and rewrite it. 39209 # Note: m4 eats our [], so we need to use [ and ] instead. 39210 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39211 if test "x$has_forbidden_chars" != x; then 39212 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39213 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39214 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39215 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39216 # Going to short mode and back again did indeed matter. Since short mode is 39217 # case insensitive, let's make it lowercase to improve readability. 39218 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39219 # Now convert it back to Unix-stile (cygpath) 39220 input_path=`$CYGPATH -u "$shortmode_path"` 39221 new_path="$input_path" 39222 fi 39223 fi 39224 39225 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39226 if test "x$test_cygdrive_prefix" = x; then 39227 # As a simple fix, exclude /usr/bin since it's not a real path. 39228 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39229 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39230 # a path prefixed by /cygdrive for fixpath to work. 39231 new_path="$CYGWIN_ROOT_PATH$input_path" 39232 fi 39233 fi 39234 39235 # remove trailing .exe if any 39236 new_path="${new_path/%.exe/}" 39237 39238 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39239 39240 # First separate the path from the arguments. This will split at the first 39241 # space. 39242 complete="$OBJDUMP" 39243 path="${complete%% *}" 39244 tmp="$complete EOL" 39245 arguments="${tmp#* }" 39246 39247 # Input might be given as Windows format, start by converting to 39248 # unix format. 39249 new_path="$path" 39250 39251 windows_path="$new_path" 39252 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39253 unix_path=`$CYGPATH -u "$windows_path"` 39254 new_path="$unix_path" 39255 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39256 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39257 new_path="$unix_path" 39258 fi 39259 39260 39261 # Now try to locate executable using which 39262 new_path=`$WHICH "$new_path" 2> /dev/null` 39263 39264 if test "x$new_path" = x; then 39265 # Oops. Which didn't find the executable. 39266 # The splitting of arguments from the executable at a space might have been incorrect, 39267 # since paths with space are more likely in Windows. Give it another try with the whole 39268 # argument. 39269 path="$complete" 39270 arguments="EOL" 39271 new_path="$path" 39272 39273 windows_path="$new_path" 39274 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39275 unix_path=`$CYGPATH -u "$windows_path"` 39276 new_path="$unix_path" 39277 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39278 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39279 new_path="$unix_path" 39280 fi 39281 39282 39283 new_path=`$WHICH "$new_path" 2> /dev/null` 39284 # bat and cmd files are not always considered executable in MSYS causing which 39285 # to not find them 39286 if test "x$new_path" = x \ 39287 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39288 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39289 new_path="$path" 39290 39291 windows_path="$new_path" 39292 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39293 unix_path=`$CYGPATH -u "$windows_path"` 39294 new_path="$unix_path" 39295 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39296 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39297 new_path="$unix_path" 39298 fi 39299 39300 fi 39301 39302 if test "x$new_path" = x; then 39303 # It's still not found. Now this is an unrecoverable error. 39304 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39305 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39306 has_space=`$ECHO "$complete" | $GREP " "` 39307 if test "x$has_space" != x; then 39308 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39309 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39310 fi 39311 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39312 fi 39313 fi 39314 39315 # Now new_path has a complete unix path to the binary 39316 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39317 # Keep paths in /bin as-is, but remove trailing .exe if any 39318 new_path="${new_path/%.exe/}" 39319 # Do not save /bin paths to all_fixpath_prefixes! 39320 else 39321 # Not in mixed or Windows style, start by that. 39322 new_path=`cmd //c echo $new_path` 39323 39324 input_path="$new_path" 39325 # Check if we need to convert this using DOS-style short mode. If the path 39326 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39327 # take no chances and rewrite it. 39328 # Note: m4 eats our [], so we need to use [ and ] instead. 39329 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39330 if test "x$has_forbidden_chars" != x; then 39331 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39332 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39333 fi 39334 39335 # Output is in $new_path 39336 39337 windows_path="$new_path" 39338 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39339 unix_path=`$CYGPATH -u "$windows_path"` 39340 new_path="$unix_path" 39341 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39342 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39343 new_path="$unix_path" 39344 fi 39345 39346 # remove trailing .exe if any 39347 new_path="${new_path/%.exe/}" 39348 39349 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39350 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39351 fi 39352 39353 else 39354 # We're on a posix platform. Hooray! :) 39355 # First separate the path from the arguments. This will split at the first 39356 # space. 39357 complete="$OBJDUMP" 39358 path="${complete%% *}" 39359 tmp="$complete EOL" 39360 arguments="${tmp#* }" 39361 39362 # Cannot rely on the command "which" here since it doesn't always work. 39363 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39364 if test -z "$is_absolute_path"; then 39365 # Path to executable is not absolute. Find it. 39366 IFS_save="$IFS" 39367 IFS=: 39368 for p in $PATH; do 39369 if test -f "$p/$path" && test -x "$p/$path"; then 39370 new_path="$p/$path" 39371 break 39372 fi 39373 done 39374 IFS="$IFS_save" 39375 else 39376 # This is an absolute path, we can use it without further modifications. 39377 new_path="$path" 39378 fi 39379 39380 if test "x$new_path" = x; then 39381 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39382 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39383 has_space=`$ECHO "$complete" | $GREP " "` 39384 if test "x$has_space" != x; then 39385 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39386 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39387 fi 39388 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39389 fi 39390 fi 39391 39392 # Now join together the path and the arguments once again 39393 if test "x$arguments" != xEOL; then 39394 new_complete="$new_path ${arguments% *}" 39395 else 39396 new_complete="$new_path" 39397 fi 39398 39399 if test "x$complete" != "x$new_complete"; then 39400 OBJDUMP="$new_complete" 39401 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 39402 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 39403 fi 39404 39405 fi 39406 39407 39408 # Restore old path. 39409 PATH="$OLD_PATH" 39410 39411 # Restore the flags to the user specified values. 39412 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 39413 CFLAGS="$ORG_CFLAGS" 39414 CXXFLAGS="$ORG_CXXFLAGS" 39415 OBJCFLAGS="$ORG_OBJCFLAGS" 39416 39417 39418 # Finally do some processing after the detection phase 39419 39420 if test "x$COMPILE_TYPE" = "xcross"; then 39421 # Now we need to find a C/C++ compiler that can build executables for the 39422 # build platform. We can't use the AC_PROG_CC macro, since it can only be 39423 # used once. Also, we need to do this without adding a tools dir to the 39424 # path, otherwise we might pick up cross-compilers which don't use standard 39425 # naming. 39426 39427 # FIXME: we should list the discovered compilers as an exclude pattern! 39428 # If we do that, we can do this detection before POST_DETECTION, and still 39429 # find the build compilers in the tools dir, if needed. 39430 39431 39432 # Publish this variable in the help. 39433 39434 39435 if test "x$BUILD_CC" = x; then 39436 # The variable is not set by user, try to locate tool using the code snippet 39437 for ac_prog in cl cc gcc 39438 do 39439 # Extract the first word of "$ac_prog", so it can be a program name with args. 39440 set dummy $ac_prog; ac_word=$2 39441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39442 $as_echo_n "checking for $ac_word... " >&6; } 39443 if ${ac_cv_path_BUILD_CC+:} false; then : 39444 $as_echo_n "(cached) " >&6 39445 else 39446 case $BUILD_CC in 39447 [\\/]* | ?:[\\/]*) 39448 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39449 ;; 39450 *) 39451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39452 for as_dir in $PATH 39453 do 39454 IFS=$as_save_IFS 39455 test -z "$as_dir" && as_dir=. 39456 for ac_exec_ext in '' $ac_executable_extensions; do 39457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39458 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39460 break 2 39461 fi 39462 done 39463 done 39464 IFS=$as_save_IFS 39465 39466 ;; 39467 esac 39468 fi 39469 BUILD_CC=$ac_cv_path_BUILD_CC 39470 if test -n "$BUILD_CC"; then 39471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39472 $as_echo "$BUILD_CC" >&6; } 39473 else 39474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39475 $as_echo "no" >&6; } 39476 fi 39477 39478 39479 test -n "$BUILD_CC" && break 39480 done 39481 39482 else 39483 # The variable is set, but is it from the command line or the environment? 39484 39485 # Try to remove the string !BUILD_CC! from our list. 39486 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 39487 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39488 # If it failed, the variable was not from the command line. Ignore it, 39489 # but warn the user (except for BASH, which is always set by the calling BASH). 39490 if test "xBUILD_CC" != xBASH; then 39491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 39492 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 39493 fi 39494 # Try to locate tool using the code snippet 39495 for ac_prog in cl cc gcc 39496 do 39497 # Extract the first word of "$ac_prog", so it can be a program name with args. 39498 set dummy $ac_prog; ac_word=$2 39499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39500 $as_echo_n "checking for $ac_word... " >&6; } 39501 if ${ac_cv_path_BUILD_CC+:} false; then : 39502 $as_echo_n "(cached) " >&6 39503 else 39504 case $BUILD_CC in 39505 [\\/]* | ?:[\\/]*) 39506 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39507 ;; 39508 *) 39509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39510 for as_dir in $PATH 39511 do 39512 IFS=$as_save_IFS 39513 test -z "$as_dir" && as_dir=. 39514 for ac_exec_ext in '' $ac_executable_extensions; do 39515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39516 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39518 break 2 39519 fi 39520 done 39521 done 39522 IFS=$as_save_IFS 39523 39524 ;; 39525 esac 39526 fi 39527 BUILD_CC=$ac_cv_path_BUILD_CC 39528 if test -n "$BUILD_CC"; then 39529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39530 $as_echo "$BUILD_CC" >&6; } 39531 else 39532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39533 $as_echo "no" >&6; } 39534 fi 39535 39536 39537 test -n "$BUILD_CC" && break 39538 done 39539 39540 else 39541 # If it succeeded, then it was overridden by the user. We will use it 39542 # for the tool. 39543 39544 # First remove it from the list of overridden variables, so we can test 39545 # for unknown variables in the end. 39546 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39547 39548 # Check if the provided tool contains a complete path. 39549 tool_specified="$BUILD_CC" 39550 tool_basename="${tool_specified##*/}" 39551 if test "x$tool_basename" = "x$tool_specified"; then 39552 # A command without a complete path is provided, search $PATH. 39553 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 39554 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 39555 # Extract the first word of "$tool_basename", so it can be a program name with args. 39556 set dummy $tool_basename; ac_word=$2 39557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39558 $as_echo_n "checking for $ac_word... " >&6; } 39559 if ${ac_cv_path_BUILD_CC+:} false; then : 39560 $as_echo_n "(cached) " >&6 39561 else 39562 case $BUILD_CC in 39563 [\\/]* | ?:[\\/]*) 39564 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39565 ;; 39566 *) 39567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39568 for as_dir in $PATH 39569 do 39570 IFS=$as_save_IFS 39571 test -z "$as_dir" && as_dir=. 39572 for ac_exec_ext in '' $ac_executable_extensions; do 39573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39574 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39576 break 2 39577 fi 39578 done 39579 done 39580 IFS=$as_save_IFS 39581 39582 ;; 39583 esac 39584 fi 39585 BUILD_CC=$ac_cv_path_BUILD_CC 39586 if test -n "$BUILD_CC"; then 39587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39588 $as_echo "$BUILD_CC" >&6; } 39589 else 39590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39591 $as_echo "no" >&6; } 39592 fi 39593 39594 39595 if test "x$BUILD_CC" = x; then 39596 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39597 fi 39598 else 39599 # Otherwise we believe it is a complete path. Use it as it is. 39600 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 39601 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 39602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 39603 $as_echo_n "checking for BUILD_CC... " >&6; } 39604 if test ! -x "$tool_specified"; then 39605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39606 $as_echo "not found" >&6; } 39607 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 39608 fi 39609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39610 $as_echo "$tool_specified" >&6; } 39611 fi 39612 fi 39613 fi 39614 39615 39616 39617 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39618 39619 # First separate the path from the arguments. This will split at the first 39620 # space. 39621 complete="$BUILD_CC" 39622 path="${complete%% *}" 39623 tmp="$complete EOL" 39624 arguments="${tmp#* }" 39625 39626 # Input might be given as Windows format, start by converting to 39627 # unix format. 39628 new_path=`$CYGPATH -u "$path"` 39629 39630 # Now try to locate executable using which 39631 new_path=`$WHICH "$new_path" 2> /dev/null` 39632 # bat and cmd files are not always considered executable in cygwin causing which 39633 # to not find them 39634 if test "x$new_path" = x \ 39635 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39636 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39637 new_path=`$CYGPATH -u "$path"` 39638 fi 39639 if test "x$new_path" = x; then 39640 # Oops. Which didn't find the executable. 39641 # The splitting of arguments from the executable at a space might have been incorrect, 39642 # since paths with space are more likely in Windows. Give it another try with the whole 39643 # argument. 39644 path="$complete" 39645 arguments="EOL" 39646 new_path=`$CYGPATH -u "$path"` 39647 new_path=`$WHICH "$new_path" 2> /dev/null` 39648 # bat and cmd files are not always considered executable in cygwin causing which 39649 # to not find them 39650 if test "x$new_path" = x \ 39651 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39652 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39653 new_path=`$CYGPATH -u "$path"` 39654 fi 39655 if test "x$new_path" = x; then 39656 # It's still not found. Now this is an unrecoverable error. 39657 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39658 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39659 has_space=`$ECHO "$complete" | $GREP " "` 39660 if test "x$has_space" != x; then 39661 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39662 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39663 fi 39664 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39665 fi 39666 fi 39667 39668 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39669 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39670 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39671 # "foo.exe" is OK but "foo" is an error. 39672 # 39673 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39674 # It is also a way to make sure we got the proper file name for the real test later on. 39675 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39676 if test "x$test_shortpath" = x; then 39677 # Short path failed, file does not exist as specified. 39678 # Try adding .exe or .cmd 39679 if test -f "${new_path}.exe"; then 39680 input_to_shortpath="${new_path}.exe" 39681 elif test -f "${new_path}.cmd"; then 39682 input_to_shortpath="${new_path}.cmd" 39683 else 39684 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 39685 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 39686 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39687 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39688 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39689 fi 39690 else 39691 input_to_shortpath="$new_path" 39692 fi 39693 39694 # Call helper function which possibly converts this using DOS-style short mode. 39695 # If so, the updated path is stored in $new_path. 39696 new_path="$input_to_shortpath" 39697 39698 input_path="$input_to_shortpath" 39699 # Check if we need to convert this using DOS-style short mode. If the path 39700 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39701 # take no chances and rewrite it. 39702 # Note: m4 eats our [], so we need to use [ and ] instead. 39703 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39704 if test "x$has_forbidden_chars" != x; then 39705 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39706 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39707 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39708 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39709 # Going to short mode and back again did indeed matter. Since short mode is 39710 # case insensitive, let's make it lowercase to improve readability. 39711 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39712 # Now convert it back to Unix-stile (cygpath) 39713 input_path=`$CYGPATH -u "$shortmode_path"` 39714 new_path="$input_path" 39715 fi 39716 fi 39717 39718 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39719 if test "x$test_cygdrive_prefix" = x; then 39720 # As a simple fix, exclude /usr/bin since it's not a real path. 39721 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39722 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39723 # a path prefixed by /cygdrive for fixpath to work. 39724 new_path="$CYGWIN_ROOT_PATH$input_path" 39725 fi 39726 fi 39727 39728 # remove trailing .exe if any 39729 new_path="${new_path/%.exe/}" 39730 39731 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39732 39733 # First separate the path from the arguments. This will split at the first 39734 # space. 39735 complete="$BUILD_CC" 39736 path="${complete%% *}" 39737 tmp="$complete EOL" 39738 arguments="${tmp#* }" 39739 39740 # Input might be given as Windows format, start by converting to 39741 # unix format. 39742 new_path="$path" 39743 39744 windows_path="$new_path" 39745 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39746 unix_path=`$CYGPATH -u "$windows_path"` 39747 new_path="$unix_path" 39748 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39749 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39750 new_path="$unix_path" 39751 fi 39752 39753 39754 # Now try to locate executable using which 39755 new_path=`$WHICH "$new_path" 2> /dev/null` 39756 39757 if test "x$new_path" = x; then 39758 # Oops. Which didn't find the executable. 39759 # The splitting of arguments from the executable at a space might have been incorrect, 39760 # since paths with space are more likely in Windows. Give it another try with the whole 39761 # argument. 39762 path="$complete" 39763 arguments="EOL" 39764 new_path="$path" 39765 39766 windows_path="$new_path" 39767 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39768 unix_path=`$CYGPATH -u "$windows_path"` 39769 new_path="$unix_path" 39770 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39771 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39772 new_path="$unix_path" 39773 fi 39774 39775 39776 new_path=`$WHICH "$new_path" 2> /dev/null` 39777 # bat and cmd files are not always considered executable in MSYS causing which 39778 # to not find them 39779 if test "x$new_path" = x \ 39780 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39781 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39782 new_path="$path" 39783 39784 windows_path="$new_path" 39785 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39786 unix_path=`$CYGPATH -u "$windows_path"` 39787 new_path="$unix_path" 39788 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39789 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39790 new_path="$unix_path" 39791 fi 39792 39793 fi 39794 39795 if test "x$new_path" = x; then 39796 # It's still not found. Now this is an unrecoverable error. 39797 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39798 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39799 has_space=`$ECHO "$complete" | $GREP " "` 39800 if test "x$has_space" != x; then 39801 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39802 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39803 fi 39804 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39805 fi 39806 fi 39807 39808 # Now new_path has a complete unix path to the binary 39809 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39810 # Keep paths in /bin as-is, but remove trailing .exe if any 39811 new_path="${new_path/%.exe/}" 39812 # Do not save /bin paths to all_fixpath_prefixes! 39813 else 39814 # Not in mixed or Windows style, start by that. 39815 new_path=`cmd //c echo $new_path` 39816 39817 input_path="$new_path" 39818 # Check if we need to convert this using DOS-style short mode. If the path 39819 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39820 # take no chances and rewrite it. 39821 # Note: m4 eats our [], so we need to use [ and ] instead. 39822 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39823 if test "x$has_forbidden_chars" != x; then 39824 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39825 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39826 fi 39827 39828 # Output is in $new_path 39829 39830 windows_path="$new_path" 39831 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39832 unix_path=`$CYGPATH -u "$windows_path"` 39833 new_path="$unix_path" 39834 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39835 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39836 new_path="$unix_path" 39837 fi 39838 39839 # remove trailing .exe if any 39840 new_path="${new_path/%.exe/}" 39841 39842 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39843 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39844 fi 39845 39846 else 39847 # We're on a posix platform. Hooray! :) 39848 # First separate the path from the arguments. This will split at the first 39849 # space. 39850 complete="$BUILD_CC" 39851 path="${complete%% *}" 39852 tmp="$complete EOL" 39853 arguments="${tmp#* }" 39854 39855 # Cannot rely on the command "which" here since it doesn't always work. 39856 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39857 if test -z "$is_absolute_path"; then 39858 # Path to executable is not absolute. Find it. 39859 IFS_save="$IFS" 39860 IFS=: 39861 for p in $PATH; do 39862 if test -f "$p/$path" && test -x "$p/$path"; then 39863 new_path="$p/$path" 39864 break 39865 fi 39866 done 39867 IFS="$IFS_save" 39868 else 39869 # This is an absolute path, we can use it without further modifications. 39870 new_path="$path" 39871 fi 39872 39873 if test "x$new_path" = x; then 39874 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39875 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39876 has_space=`$ECHO "$complete" | $GREP " "` 39877 if test "x$has_space" != x; then 39878 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39879 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39880 fi 39881 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39882 fi 39883 fi 39884 39885 # Now join together the path and the arguments once again 39886 if test "x$arguments" != xEOL; then 39887 new_complete="$new_path ${arguments% *}" 39888 else 39889 new_complete="$new_path" 39890 fi 39891 39892 if test "x$complete" != "x$new_complete"; then 39893 BUILD_CC="$new_complete" 39894 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 39895 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 39896 fi 39897 39898 39899 39900 # Publish this variable in the help. 39901 39902 39903 if test "x$BUILD_CXX" = x; then 39904 # The variable is not set by user, try to locate tool using the code snippet 39905 for ac_prog in cl CC g++ 39906 do 39907 # Extract the first word of "$ac_prog", so it can be a program name with args. 39908 set dummy $ac_prog; ac_word=$2 39909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39910 $as_echo_n "checking for $ac_word... " >&6; } 39911 if ${ac_cv_path_BUILD_CXX+:} false; then : 39912 $as_echo_n "(cached) " >&6 39913 else 39914 case $BUILD_CXX in 39915 [\\/]* | ?:[\\/]*) 39916 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39917 ;; 39918 *) 39919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39920 for as_dir in $PATH 39921 do 39922 IFS=$as_save_IFS 39923 test -z "$as_dir" && as_dir=. 39924 for ac_exec_ext in '' $ac_executable_extensions; do 39925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39926 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39928 break 2 39929 fi 39930 done 39931 done 39932 IFS=$as_save_IFS 39933 39934 ;; 39935 esac 39936 fi 39937 BUILD_CXX=$ac_cv_path_BUILD_CXX 39938 if test -n "$BUILD_CXX"; then 39939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39940 $as_echo "$BUILD_CXX" >&6; } 39941 else 39942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39943 $as_echo "no" >&6; } 39944 fi 39945 39946 39947 test -n "$BUILD_CXX" && break 39948 done 39949 39950 else 39951 # The variable is set, but is it from the command line or the environment? 39952 39953 # Try to remove the string !BUILD_CXX! from our list. 39954 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 39955 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39956 # If it failed, the variable was not from the command line. Ignore it, 39957 # but warn the user (except for BASH, which is always set by the calling BASH). 39958 if test "xBUILD_CXX" != xBASH; then 39959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 39960 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 39961 fi 39962 # Try to locate tool using the code snippet 39963 for ac_prog in cl CC g++ 39964 do 39965 # Extract the first word of "$ac_prog", so it can be a program name with args. 39966 set dummy $ac_prog; ac_word=$2 39967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39968 $as_echo_n "checking for $ac_word... " >&6; } 39969 if ${ac_cv_path_BUILD_CXX+:} false; then : 39970 $as_echo_n "(cached) " >&6 39971 else 39972 case $BUILD_CXX in 39973 [\\/]* | ?:[\\/]*) 39974 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39975 ;; 39976 *) 39977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39978 for as_dir in $PATH 39979 do 39980 IFS=$as_save_IFS 39981 test -z "$as_dir" && as_dir=. 39982 for ac_exec_ext in '' $ac_executable_extensions; do 39983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39984 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39986 break 2 39987 fi 39988 done 39989 done 39990 IFS=$as_save_IFS 39991 39992 ;; 39993 esac 39994 fi 39995 BUILD_CXX=$ac_cv_path_BUILD_CXX 39996 if test -n "$BUILD_CXX"; then 39997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39998 $as_echo "$BUILD_CXX" >&6; } 39999 else 40000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40001 $as_echo "no" >&6; } 40002 fi 40003 40004 40005 test -n "$BUILD_CXX" && break 40006 done 40007 40008 else 40009 # If it succeeded, then it was overridden by the user. We will use it 40010 # for the tool. 40011 40012 # First remove it from the list of overridden variables, so we can test 40013 # for unknown variables in the end. 40014 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40015 40016 # Check if the provided tool contains a complete path. 40017 tool_specified="$BUILD_CXX" 40018 tool_basename="${tool_specified##*/}" 40019 if test "x$tool_basename" = "x$tool_specified"; then 40020 # A command without a complete path is provided, search $PATH. 40021 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 40022 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 40023 # Extract the first word of "$tool_basename", so it can be a program name with args. 40024 set dummy $tool_basename; ac_word=$2 40025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40026 $as_echo_n "checking for $ac_word... " >&6; } 40027 if ${ac_cv_path_BUILD_CXX+:} false; then : 40028 $as_echo_n "(cached) " >&6 40029 else 40030 case $BUILD_CXX in 40031 [\\/]* | ?:[\\/]*) 40032 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 40033 ;; 40034 *) 40035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40036 for as_dir in $PATH 40037 do 40038 IFS=$as_save_IFS 40039 test -z "$as_dir" && as_dir=. 40040 for ac_exec_ext in '' $ac_executable_extensions; do 40041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40042 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 40043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40044 break 2 40045 fi 40046 done 40047 done 40048 IFS=$as_save_IFS 40049 40050 ;; 40051 esac 40052 fi 40053 BUILD_CXX=$ac_cv_path_BUILD_CXX 40054 if test -n "$BUILD_CXX"; then 40055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 40056 $as_echo "$BUILD_CXX" >&6; } 40057 else 40058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40059 $as_echo "no" >&6; } 40060 fi 40061 40062 40063 if test "x$BUILD_CXX" = x; then 40064 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40065 fi 40066 else 40067 # Otherwise we believe it is a complete path. Use it as it is. 40068 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 40069 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 40070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 40071 $as_echo_n "checking for BUILD_CXX... " >&6; } 40072 if test ! -x "$tool_specified"; then 40073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40074 $as_echo "not found" >&6; } 40075 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 40076 fi 40077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40078 $as_echo "$tool_specified" >&6; } 40079 fi 40080 fi 40081 fi 40082 40083 40084 40085 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40086 40087 # First separate the path from the arguments. This will split at the first 40088 # space. 40089 complete="$BUILD_CXX" 40090 path="${complete%% *}" 40091 tmp="$complete EOL" 40092 arguments="${tmp#* }" 40093 40094 # Input might be given as Windows format, start by converting to 40095 # unix format. 40096 new_path=`$CYGPATH -u "$path"` 40097 40098 # Now try to locate executable using which 40099 new_path=`$WHICH "$new_path" 2> /dev/null` 40100 # bat and cmd files are not always considered executable in cygwin causing which 40101 # to not find them 40102 if test "x$new_path" = x \ 40103 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40104 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40105 new_path=`$CYGPATH -u "$path"` 40106 fi 40107 if test "x$new_path" = x; then 40108 # Oops. Which didn't find the executable. 40109 # The splitting of arguments from the executable at a space might have been incorrect, 40110 # since paths with space are more likely in Windows. Give it another try with the whole 40111 # argument. 40112 path="$complete" 40113 arguments="EOL" 40114 new_path=`$CYGPATH -u "$path"` 40115 new_path=`$WHICH "$new_path" 2> /dev/null` 40116 # bat and cmd files are not always considered executable in cygwin causing which 40117 # to not find them 40118 if test "x$new_path" = x \ 40119 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40120 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40121 new_path=`$CYGPATH -u "$path"` 40122 fi 40123 if test "x$new_path" = x; then 40124 # It's still not found. Now this is an unrecoverable error. 40125 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40126 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40127 has_space=`$ECHO "$complete" | $GREP " "` 40128 if test "x$has_space" != x; then 40129 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40130 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40131 fi 40132 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40133 fi 40134 fi 40135 40136 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40137 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40138 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40139 # "foo.exe" is OK but "foo" is an error. 40140 # 40141 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40142 # It is also a way to make sure we got the proper file name for the real test later on. 40143 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40144 if test "x$test_shortpath" = x; then 40145 # Short path failed, file does not exist as specified. 40146 # Try adding .exe or .cmd 40147 if test -f "${new_path}.exe"; then 40148 input_to_shortpath="${new_path}.exe" 40149 elif test -f "${new_path}.cmd"; then 40150 input_to_shortpath="${new_path}.cmd" 40151 else 40152 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 40153 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 40154 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40155 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40156 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40157 fi 40158 else 40159 input_to_shortpath="$new_path" 40160 fi 40161 40162 # Call helper function which possibly converts this using DOS-style short mode. 40163 # If so, the updated path is stored in $new_path. 40164 new_path="$input_to_shortpath" 40165 40166 input_path="$input_to_shortpath" 40167 # Check if we need to convert this using DOS-style short mode. If the path 40168 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40169 # take no chances and rewrite it. 40170 # Note: m4 eats our [], so we need to use [ and ] instead. 40171 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40172 if test "x$has_forbidden_chars" != x; then 40173 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40174 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40175 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40176 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40177 # Going to short mode and back again did indeed matter. Since short mode is 40178 # case insensitive, let's make it lowercase to improve readability. 40179 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40180 # Now convert it back to Unix-stile (cygpath) 40181 input_path=`$CYGPATH -u "$shortmode_path"` 40182 new_path="$input_path" 40183 fi 40184 fi 40185 40186 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40187 if test "x$test_cygdrive_prefix" = x; then 40188 # As a simple fix, exclude /usr/bin since it's not a real path. 40189 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40190 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40191 # a path prefixed by /cygdrive for fixpath to work. 40192 new_path="$CYGWIN_ROOT_PATH$input_path" 40193 fi 40194 fi 40195 40196 # remove trailing .exe if any 40197 new_path="${new_path/%.exe/}" 40198 40199 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40200 40201 # First separate the path from the arguments. This will split at the first 40202 # space. 40203 complete="$BUILD_CXX" 40204 path="${complete%% *}" 40205 tmp="$complete EOL" 40206 arguments="${tmp#* }" 40207 40208 # Input might be given as Windows format, start by converting to 40209 # unix format. 40210 new_path="$path" 40211 40212 windows_path="$new_path" 40213 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40214 unix_path=`$CYGPATH -u "$windows_path"` 40215 new_path="$unix_path" 40216 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40217 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40218 new_path="$unix_path" 40219 fi 40220 40221 40222 # Now try to locate executable using which 40223 new_path=`$WHICH "$new_path" 2> /dev/null` 40224 40225 if test "x$new_path" = x; then 40226 # Oops. Which didn't find the executable. 40227 # The splitting of arguments from the executable at a space might have been incorrect, 40228 # since paths with space are more likely in Windows. Give it another try with the whole 40229 # argument. 40230 path="$complete" 40231 arguments="EOL" 40232 new_path="$path" 40233 40234 windows_path="$new_path" 40235 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40236 unix_path=`$CYGPATH -u "$windows_path"` 40237 new_path="$unix_path" 40238 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40239 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40240 new_path="$unix_path" 40241 fi 40242 40243 40244 new_path=`$WHICH "$new_path" 2> /dev/null` 40245 # bat and cmd files are not always considered executable in MSYS causing which 40246 # to not find them 40247 if test "x$new_path" = x \ 40248 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40249 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40250 new_path="$path" 40251 40252 windows_path="$new_path" 40253 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40254 unix_path=`$CYGPATH -u "$windows_path"` 40255 new_path="$unix_path" 40256 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40257 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40258 new_path="$unix_path" 40259 fi 40260 40261 fi 40262 40263 if test "x$new_path" = x; then 40264 # It's still not found. Now this is an unrecoverable error. 40265 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40266 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40267 has_space=`$ECHO "$complete" | $GREP " "` 40268 if test "x$has_space" != x; then 40269 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40270 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40271 fi 40272 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40273 fi 40274 fi 40275 40276 # Now new_path has a complete unix path to the binary 40277 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40278 # Keep paths in /bin as-is, but remove trailing .exe if any 40279 new_path="${new_path/%.exe/}" 40280 # Do not save /bin paths to all_fixpath_prefixes! 40281 else 40282 # Not in mixed or Windows style, start by that. 40283 new_path=`cmd //c echo $new_path` 40284 40285 input_path="$new_path" 40286 # Check if we need to convert this using DOS-style short mode. If the path 40287 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40288 # take no chances and rewrite it. 40289 # Note: m4 eats our [], so we need to use [ and ] instead. 40290 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40291 if test "x$has_forbidden_chars" != x; then 40292 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40293 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40294 fi 40295 40296 # Output is in $new_path 40297 40298 windows_path="$new_path" 40299 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40300 unix_path=`$CYGPATH -u "$windows_path"` 40301 new_path="$unix_path" 40302 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40303 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40304 new_path="$unix_path" 40305 fi 40306 40307 # remove trailing .exe if any 40308 new_path="${new_path/%.exe/}" 40309 40310 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40311 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40312 fi 40313 40314 else 40315 # We're on a posix platform. Hooray! :) 40316 # First separate the path from the arguments. This will split at the first 40317 # space. 40318 complete="$BUILD_CXX" 40319 path="${complete%% *}" 40320 tmp="$complete EOL" 40321 arguments="${tmp#* }" 40322 40323 # Cannot rely on the command "which" here since it doesn't always work. 40324 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40325 if test -z "$is_absolute_path"; then 40326 # Path to executable is not absolute. Find it. 40327 IFS_save="$IFS" 40328 IFS=: 40329 for p in $PATH; do 40330 if test -f "$p/$path" && test -x "$p/$path"; then 40331 new_path="$p/$path" 40332 break 40333 fi 40334 done 40335 IFS="$IFS_save" 40336 else 40337 # This is an absolute path, we can use it without further modifications. 40338 new_path="$path" 40339 fi 40340 40341 if test "x$new_path" = x; then 40342 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40343 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40344 has_space=`$ECHO "$complete" | $GREP " "` 40345 if test "x$has_space" != x; then 40346 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40347 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40348 fi 40349 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40350 fi 40351 fi 40352 40353 # Now join together the path and the arguments once again 40354 if test "x$arguments" != xEOL; then 40355 new_complete="$new_path ${arguments% *}" 40356 else 40357 new_complete="$new_path" 40358 fi 40359 40360 if test "x$complete" != "x$new_complete"; then 40361 BUILD_CXX="$new_complete" 40362 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 40363 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 40364 fi 40365 40366 40367 40368 # Publish this variable in the help. 40369 40370 40371 if test "x$BUILD_LD" = x; then 40372 # The variable is not set by user, try to locate tool using the code snippet 40373 for ac_prog in ld 40374 do 40375 # Extract the first word of "$ac_prog", so it can be a program name with args. 40376 set dummy $ac_prog; ac_word=$2 40377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40378 $as_echo_n "checking for $ac_word... " >&6; } 40379 if ${ac_cv_path_BUILD_LD+:} false; then : 40380 $as_echo_n "(cached) " >&6 40381 else 40382 case $BUILD_LD in 40383 [\\/]* | ?:[\\/]*) 40384 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40385 ;; 40386 *) 40387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40388 for as_dir in $PATH 40389 do 40390 IFS=$as_save_IFS 40391 test -z "$as_dir" && as_dir=. 40392 for ac_exec_ext in '' $ac_executable_extensions; do 40393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40394 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40396 break 2 40397 fi 40398 done 40399 done 40400 IFS=$as_save_IFS 40401 40402 ;; 40403 esac 40404 fi 40405 BUILD_LD=$ac_cv_path_BUILD_LD 40406 if test -n "$BUILD_LD"; then 40407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40408 $as_echo "$BUILD_LD" >&6; } 40409 else 40410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40411 $as_echo "no" >&6; } 40412 fi 40413 40414 40415 test -n "$BUILD_LD" && break 40416 done 40417 40418 else 40419 # The variable is set, but is it from the command line or the environment? 40420 40421 # Try to remove the string !BUILD_LD! from our list. 40422 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_LD!/} 40423 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40424 # If it failed, the variable was not from the command line. Ignore it, 40425 # but warn the user (except for BASH, which is always set by the calling BASH). 40426 if test "xBUILD_LD" != xBASH; then 40427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&5 40428 $as_echo "$as_me: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&2;} 40429 fi 40430 # Try to locate tool using the code snippet 40431 for ac_prog in ld 40432 do 40433 # Extract the first word of "$ac_prog", so it can be a program name with args. 40434 set dummy $ac_prog; ac_word=$2 40435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40436 $as_echo_n "checking for $ac_word... " >&6; } 40437 if ${ac_cv_path_BUILD_LD+:} false; then : 40438 $as_echo_n "(cached) " >&6 40439 else 40440 case $BUILD_LD in 40441 [\\/]* | ?:[\\/]*) 40442 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40443 ;; 40444 *) 40445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40446 for as_dir in $PATH 40447 do 40448 IFS=$as_save_IFS 40449 test -z "$as_dir" && as_dir=. 40450 for ac_exec_ext in '' $ac_executable_extensions; do 40451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40452 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40454 break 2 40455 fi 40456 done 40457 done 40458 IFS=$as_save_IFS 40459 40460 ;; 40461 esac 40462 fi 40463 BUILD_LD=$ac_cv_path_BUILD_LD 40464 if test -n "$BUILD_LD"; then 40465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40466 $as_echo "$BUILD_LD" >&6; } 40467 else 40468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40469 $as_echo "no" >&6; } 40470 fi 40471 40472 40473 test -n "$BUILD_LD" && break 40474 done 40475 40476 else 40477 # If it succeeded, then it was overridden by the user. We will use it 40478 # for the tool. 40479 40480 # First remove it from the list of overridden variables, so we can test 40481 # for unknown variables in the end. 40482 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40483 40484 # Check if the provided tool contains a complete path. 40485 tool_specified="$BUILD_LD" 40486 tool_basename="${tool_specified##*/}" 40487 if test "x$tool_basename" = "x$tool_specified"; then 40488 # A command without a complete path is provided, search $PATH. 40489 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_LD=$tool_basename" >&5 40490 $as_echo "$as_me: Will search for user supplied tool BUILD_LD=$tool_basename" >&6;} 40491 # Extract the first word of "$tool_basename", so it can be a program name with args. 40492 set dummy $tool_basename; ac_word=$2 40493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40494 $as_echo_n "checking for $ac_word... " >&6; } 40495 if ${ac_cv_path_BUILD_LD+:} false; then : 40496 $as_echo_n "(cached) " >&6 40497 else 40498 case $BUILD_LD in 40499 [\\/]* | ?:[\\/]*) 40500 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40501 ;; 40502 *) 40503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40504 for as_dir in $PATH 40505 do 40506 IFS=$as_save_IFS 40507 test -z "$as_dir" && as_dir=. 40508 for ac_exec_ext in '' $ac_executable_extensions; do 40509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40510 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40512 break 2 40513 fi 40514 done 40515 done 40516 IFS=$as_save_IFS 40517 40518 ;; 40519 esac 40520 fi 40521 BUILD_LD=$ac_cv_path_BUILD_LD 40522 if test -n "$BUILD_LD"; then 40523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40524 $as_echo "$BUILD_LD" >&6; } 40525 else 40526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40527 $as_echo "no" >&6; } 40528 fi 40529 40530 40531 if test "x$BUILD_LD" = x; then 40532 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40533 fi 40534 else 40535 # Otherwise we believe it is a complete path. Use it as it is. 40536 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_LD=$tool_specified" >&5 40537 $as_echo "$as_me: Will use user supplied tool BUILD_LD=$tool_specified" >&6;} 40538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5 40539 $as_echo_n "checking for BUILD_LD... " >&6; } 40540 if test ! -x "$tool_specified"; then 40541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40542 $as_echo "not found" >&6; } 40543 as_fn_error $? "User supplied tool BUILD_LD=$tool_specified does not exist or is not executable" "$LINENO" 5 40544 fi 40545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40546 $as_echo "$tool_specified" >&6; } 40547 fi 40548 fi 40549 fi 40550 40551 40552 40553 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40554 40555 # First separate the path from the arguments. This will split at the first 40556 # space. 40557 complete="$BUILD_LD" 40558 path="${complete%% *}" 40559 tmp="$complete EOL" 40560 arguments="${tmp#* }" 40561 40562 # Input might be given as Windows format, start by converting to 40563 # unix format. 40564 new_path=`$CYGPATH -u "$path"` 40565 40566 # Now try to locate executable using which 40567 new_path=`$WHICH "$new_path" 2> /dev/null` 40568 # bat and cmd files are not always considered executable in cygwin causing which 40569 # to not find them 40570 if test "x$new_path" = x \ 40571 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40572 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40573 new_path=`$CYGPATH -u "$path"` 40574 fi 40575 if test "x$new_path" = x; then 40576 # Oops. Which didn't find the executable. 40577 # The splitting of arguments from the executable at a space might have been incorrect, 40578 # since paths with space are more likely in Windows. Give it another try with the whole 40579 # argument. 40580 path="$complete" 40581 arguments="EOL" 40582 new_path=`$CYGPATH -u "$path"` 40583 new_path=`$WHICH "$new_path" 2> /dev/null` 40584 # bat and cmd files are not always considered executable in cygwin causing which 40585 # to not find them 40586 if test "x$new_path" = x \ 40587 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40588 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40589 new_path=`$CYGPATH -u "$path"` 40590 fi 40591 if test "x$new_path" = x; then 40592 # It's still not found. Now this is an unrecoverable error. 40593 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40594 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40595 has_space=`$ECHO "$complete" | $GREP " "` 40596 if test "x$has_space" != x; then 40597 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40598 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40599 fi 40600 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40601 fi 40602 fi 40603 40604 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40605 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40606 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40607 # "foo.exe" is OK but "foo" is an error. 40608 # 40609 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40610 # It is also a way to make sure we got the proper file name for the real test later on. 40611 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40612 if test "x$test_shortpath" = x; then 40613 # Short path failed, file does not exist as specified. 40614 # Try adding .exe or .cmd 40615 if test -f "${new_path}.exe"; then 40616 input_to_shortpath="${new_path}.exe" 40617 elif test -f "${new_path}.cmd"; then 40618 input_to_shortpath="${new_path}.cmd" 40619 else 40620 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5 40621 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;} 40622 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40623 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40624 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40625 fi 40626 else 40627 input_to_shortpath="$new_path" 40628 fi 40629 40630 # Call helper function which possibly converts this using DOS-style short mode. 40631 # If so, the updated path is stored in $new_path. 40632 new_path="$input_to_shortpath" 40633 40634 input_path="$input_to_shortpath" 40635 # Check if we need to convert this using DOS-style short mode. If the path 40636 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40637 # take no chances and rewrite it. 40638 # Note: m4 eats our [], so we need to use [ and ] instead. 40639 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40640 if test "x$has_forbidden_chars" != x; then 40641 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40642 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40643 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40644 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40645 # Going to short mode and back again did indeed matter. Since short mode is 40646 # case insensitive, let's make it lowercase to improve readability. 40647 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40648 # Now convert it back to Unix-stile (cygpath) 40649 input_path=`$CYGPATH -u "$shortmode_path"` 40650 new_path="$input_path" 40651 fi 40652 fi 40653 40654 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40655 if test "x$test_cygdrive_prefix" = x; then 40656 # As a simple fix, exclude /usr/bin since it's not a real path. 40657 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40658 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40659 # a path prefixed by /cygdrive for fixpath to work. 40660 new_path="$CYGWIN_ROOT_PATH$input_path" 40661 fi 40662 fi 40663 40664 # remove trailing .exe if any 40665 new_path="${new_path/%.exe/}" 40666 40667 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40668 40669 # First separate the path from the arguments. This will split at the first 40670 # space. 40671 complete="$BUILD_LD" 40672 path="${complete%% *}" 40673 tmp="$complete EOL" 40674 arguments="${tmp#* }" 40675 40676 # Input might be given as Windows format, start by converting to 40677 # unix format. 40678 new_path="$path" 40679 40680 windows_path="$new_path" 40681 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40682 unix_path=`$CYGPATH -u "$windows_path"` 40683 new_path="$unix_path" 40684 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40685 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40686 new_path="$unix_path" 40687 fi 40688 40689 40690 # Now try to locate executable using which 40691 new_path=`$WHICH "$new_path" 2> /dev/null` 40692 40693 if test "x$new_path" = x; then 40694 # Oops. Which didn't find the executable. 40695 # The splitting of arguments from the executable at a space might have been incorrect, 40696 # since paths with space are more likely in Windows. Give it another try with the whole 40697 # argument. 40698 path="$complete" 40699 arguments="EOL" 40700 new_path="$path" 40701 40702 windows_path="$new_path" 40703 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40704 unix_path=`$CYGPATH -u "$windows_path"` 40705 new_path="$unix_path" 40706 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40707 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40708 new_path="$unix_path" 40709 fi 40710 40711 40712 new_path=`$WHICH "$new_path" 2> /dev/null` 40713 # bat and cmd files are not always considered executable in MSYS causing which 40714 # to not find them 40715 if test "x$new_path" = x \ 40716 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40717 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40718 new_path="$path" 40719 40720 windows_path="$new_path" 40721 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40722 unix_path=`$CYGPATH -u "$windows_path"` 40723 new_path="$unix_path" 40724 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40725 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40726 new_path="$unix_path" 40727 fi 40728 40729 fi 40730 40731 if test "x$new_path" = x; then 40732 # It's still not found. Now this is an unrecoverable error. 40733 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40734 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40735 has_space=`$ECHO "$complete" | $GREP " "` 40736 if test "x$has_space" != x; then 40737 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40738 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40739 fi 40740 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40741 fi 40742 fi 40743 40744 # Now new_path has a complete unix path to the binary 40745 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40746 # Keep paths in /bin as-is, but remove trailing .exe if any 40747 new_path="${new_path/%.exe/}" 40748 # Do not save /bin paths to all_fixpath_prefixes! 40749 else 40750 # Not in mixed or Windows style, start by that. 40751 new_path=`cmd //c echo $new_path` 40752 40753 input_path="$new_path" 40754 # Check if we need to convert this using DOS-style short mode. If the path 40755 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40756 # take no chances and rewrite it. 40757 # Note: m4 eats our [], so we need to use [ and ] instead. 40758 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40759 if test "x$has_forbidden_chars" != x; then 40760 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40761 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40762 fi 40763 40764 # Output is in $new_path 40765 40766 windows_path="$new_path" 40767 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40768 unix_path=`$CYGPATH -u "$windows_path"` 40769 new_path="$unix_path" 40770 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40771 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40772 new_path="$unix_path" 40773 fi 40774 40775 # remove trailing .exe if any 40776 new_path="${new_path/%.exe/}" 40777 40778 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40779 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40780 fi 40781 40782 else 40783 # We're on a posix platform. Hooray! :) 40784 # First separate the path from the arguments. This will split at the first 40785 # space. 40786 complete="$BUILD_LD" 40787 path="${complete%% *}" 40788 tmp="$complete EOL" 40789 arguments="${tmp#* }" 40790 40791 # Cannot rely on the command "which" here since it doesn't always work. 40792 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40793 if test -z "$is_absolute_path"; then 40794 # Path to executable is not absolute. Find it. 40795 IFS_save="$IFS" 40796 IFS=: 40797 for p in $PATH; do 40798 if test -f "$p/$path" && test -x "$p/$path"; then 40799 new_path="$p/$path" 40800 break 40801 fi 40802 done 40803 IFS="$IFS_save" 40804 else 40805 # This is an absolute path, we can use it without further modifications. 40806 new_path="$path" 40807 fi 40808 40809 if test "x$new_path" = x; then 40810 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40811 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40812 has_space=`$ECHO "$complete" | $GREP " "` 40813 if test "x$has_space" != x; then 40814 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40815 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40816 fi 40817 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40818 fi 40819 fi 40820 40821 # Now join together the path and the arguments once again 40822 if test "x$arguments" != xEOL; then 40823 new_complete="$new_path ${arguments% *}" 40824 else 40825 new_complete="$new_path" 40826 fi 40827 40828 if test "x$complete" != "x$new_complete"; then 40829 BUILD_LD="$new_complete" 40830 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5 40831 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;} 40832 fi 40833 40834 else 40835 # If we are not cross compiling, use the normal target compilers for 40836 # building the build platform executables. 40837 BUILD_CC="$CC" 40838 BUILD_CXX="$CXX" 40839 BUILD_LD="$LD" 40840 fi 40841 40842 40843 40844 40845 40846 40847 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40848 # For hotspot, we need these in Windows mixed path, 40849 # so rewrite them all. Need added .exe suffix. 40850 HOTSPOT_CXX="$CXX.exe" 40851 HOTSPOT_LD="$LD.exe" 40852 HOTSPOT_MT="$MT.exe" 40853 HOTSPOT_RC="$RC.exe" 40854 40855 unix_path="$HOTSPOT_CXX" 40856 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40857 windows_path=`$CYGPATH -m "$unix_path"` 40858 HOTSPOT_CXX="$windows_path" 40859 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40860 windows_path=`cmd //c echo $unix_path` 40861 HOTSPOT_CXX="$windows_path" 40862 fi 40863 40864 40865 unix_path="$HOTSPOT_LD" 40866 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40867 windows_path=`$CYGPATH -m "$unix_path"` 40868 HOTSPOT_LD="$windows_path" 40869 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40870 windows_path=`cmd //c echo $unix_path` 40871 HOTSPOT_LD="$windows_path" 40872 fi 40873 40874 40875 unix_path="$HOTSPOT_MT" 40876 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40877 windows_path=`$CYGPATH -m "$unix_path"` 40878 HOTSPOT_MT="$windows_path" 40879 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40880 windows_path=`cmd //c echo $unix_path` 40881 HOTSPOT_MT="$windows_path" 40882 fi 40883 40884 40885 unix_path="$HOTSPOT_RC" 40886 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40887 windows_path=`$CYGPATH -m "$unix_path"` 40888 HOTSPOT_RC="$windows_path" 40889 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40890 windows_path=`cmd //c echo $unix_path` 40891 HOTSPOT_RC="$windows_path" 40892 fi 40893 40894 40895 40896 else 40897 HOTSPOT_CXX="$CXX" 40898 HOTSPOT_LD="$LD" 40899 fi 40900 40901 40902 40903 if test "x$TOOLCHAIN_TYPE" = xclang; then 40904 USE_CLANG=true 40905 fi 40906 40907 40908 # LDEXE is the linker to use, when creating executables. Not really used. 40909 # FIXME: These should just be removed! 40910 LDEXE="$LD" 40911 LDEXECXX="$LDCXX" 40912 40913 40914 40915 40916 40917 40918 # The package path is used only on macosx? 40919 # FIXME: clean this up, and/or move it elsewhere. 40920 PACKAGE_PATH=/opt/local 40921 40922 40923 # Check for extra potential brokenness. 40924 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40925 # On Windows, double-check that we got the right compiler. 40926 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 40927 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 40928 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 40929 if test "x$COMPILER_CPU_TEST" != "x80x86"; then 40930 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5 40931 fi 40932 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 40933 if test "x$COMPILER_CPU_TEST" != "xx64"; then 40934 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 40935 fi 40936 fi 40937 fi 40938 40939 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40940 # If this is a --hash-style=gnu system, use --hash-style=both, why? 40941 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 40942 # This is later checked when setting flags. 40943 40944 # "-Og" suppported for GCC 4.8 and later 40945 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 40946 40947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 40948 $as_echo_n "checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 40949 supports=yes 40950 40951 saved_cflags="$CFLAGS" 40952 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 40953 ac_ext=c 40954 ac_cpp='$CPP $CPPFLAGS' 40955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40957 ac_compiler_gnu=$ac_cv_c_compiler_gnu 40958 40959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40960 /* end confdefs.h. */ 40961 int i; 40962 _ACEOF 40963 if ac_fn_c_try_compile "$LINENO"; then : 40964 40965 else 40966 supports=no 40967 fi 40968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40969 ac_ext=cpp 40970 ac_cpp='$CXXCPP $CPPFLAGS' 40971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40974 40975 CFLAGS="$saved_cflags" 40976 40977 saved_cxxflags="$CXXFLAGS" 40978 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 40979 ac_ext=cpp 40980 ac_cpp='$CXXCPP $CPPFLAGS' 40981 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40982 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40983 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40984 40985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40986 /* end confdefs.h. */ 40987 int i; 40988 _ACEOF 40989 if ac_fn_cxx_try_compile "$LINENO"; then : 40990 40991 else 40992 supports=no 40993 fi 40994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40995 ac_ext=cpp 40996 ac_cpp='$CXXCPP $CPPFLAGS' 40997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41000 41001 CXXFLAGS="$saved_cxxflags" 41002 41003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41004 $as_echo "$supports" >&6; } 41005 if test "x$supports" = "xyes" ; then 41006 HAS_CFLAG_OPTIMIZE_DEBUG=true 41007 else 41008 HAS_CFLAG_OPTIMIZE_DEBUG=false 41009 fi 41010 41011 41012 # "-fsanitize=undefined" supported for GCC 4.9 and later 41013 CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG="-fsanitize=undefined -fsanitize-recover" 41014 41015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG\"" >&5 41016 $as_echo_n "checking if compiler supports \"$CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG\"... " >&6; } 41017 supports=yes 41018 41019 saved_cflags="$CFLAGS" 41020 CFLAGS="$CFLAGS $CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG" 41021 ac_ext=c 41022 ac_cpp='$CPP $CPPFLAGS' 41023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41025 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41026 41027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41028 /* end confdefs.h. */ 41029 int i; 41030 _ACEOF 41031 if ac_fn_c_try_compile "$LINENO"; then : 41032 41033 else 41034 supports=no 41035 fi 41036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41037 ac_ext=cpp 41038 ac_cpp='$CXXCPP $CPPFLAGS' 41039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41042 41043 CFLAGS="$saved_cflags" 41044 41045 saved_cxxflags="$CXXFLAGS" 41046 CXXFLAGS="$CXXFLAG $CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG" 41047 ac_ext=cpp 41048 ac_cpp='$CXXCPP $CPPFLAGS' 41049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41052 41053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41054 /* end confdefs.h. */ 41055 int i; 41056 _ACEOF 41057 if ac_fn_cxx_try_compile "$LINENO"; then : 41058 41059 else 41060 supports=no 41061 fi 41062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41063 ac_ext=cpp 41064 ac_cpp='$CXXCPP $CPPFLAGS' 41065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41068 41069 CXXFLAGS="$saved_cxxflags" 41070 41071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41072 $as_echo "$supports" >&6; } 41073 if test "x$supports" = "xyes" ; then 41074 HAS_CFLAG_DETECT_UNDEFINED_BEHAVIOR=true 41075 else 41076 HAS_CFLAG_DETECT_UNDEFINED_BEHAVIOR=false 41077 fi 41078 41079 41080 # "-z relro" supported in GNU binutils 2.17 and later 41081 LINKER_RELRO_FLAG="-Xlinker -z -Xlinker relro" 41082 41083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 41084 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 41085 supports=yes 41086 41087 saved_ldflags="$LDFLAGS" 41088 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 41089 ac_ext=c 41090 ac_cpp='$CPP $CPPFLAGS' 41091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41093 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41094 41095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41096 /* end confdefs.h. */ 41097 41098 int 41099 main () 41100 { 41101 41102 ; 41103 return 0; 41104 } 41105 _ACEOF 41106 if ac_fn_c_try_link "$LINENO"; then : 41107 41108 else 41109 supports=no 41110 fi 41111 rm -f core conftest.err conftest.$ac_objext \ 41112 conftest$ac_exeext conftest.$ac_ext 41113 ac_ext=cpp 41114 ac_cpp='$CXXCPP $CPPFLAGS' 41115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41118 41119 LDFLAGS="$saved_ldflags" 41120 41121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41122 $as_echo "$supports" >&6; } 41123 if test "x$supports" = "xyes" ; then 41124 HAS_LINKER_RELRO=true 41125 else 41126 HAS_LINKER_RELRO=false 41127 fi 41128 41129 41130 # "-z now" supported in GNU binutils 2.11 and later 41131 LINKER_NOW_FLAG="-Xlinker -z -Xlinker now" 41132 41133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 41134 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 41135 supports=yes 41136 41137 saved_ldflags="$LDFLAGS" 41138 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 41139 ac_ext=c 41140 ac_cpp='$CPP $CPPFLAGS' 41141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41143 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41144 41145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41146 /* end confdefs.h. */ 41147 41148 int 41149 main () 41150 { 41151 41152 ; 41153 return 0; 41154 } 41155 _ACEOF 41156 if ac_fn_c_try_link "$LINENO"; then : 41157 41158 else 41159 supports=no 41160 fi 41161 rm -f core conftest.err conftest.$ac_objext \ 41162 conftest$ac_exeext conftest.$ac_ext 41163 ac_ext=cpp 41164 ac_cpp='$CXXCPP $CPPFLAGS' 41165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41168 41169 LDFLAGS="$saved_ldflags" 41170 41171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41172 $as_echo "$supports" >&6; } 41173 if test "x$supports" = "xyes" ; then 41174 HAS_LINKER_NOW=true 41175 else 41176 HAS_LINKER_NOW=false 41177 fi 41178 41179 fi 41180 41181 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 41182 # in executable.' 41183 USING_BROKEN_SUSE_LD=no 41184 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 41185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 41186 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 41187 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 41188 $ECHO "int main() { }" > main.c 41189 if $CXX -Xlinker -version-script=version-script.map main.c 2>&5 >&5; then 41190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41191 $as_echo "no" >&6; } 41192 USING_BROKEN_SUSE_LD=no 41193 else 41194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41195 $as_echo "yes" >&6; } 41196 USING_BROKEN_SUSE_LD=yes 41197 fi 41198 rm -rf version-script.map main.c a.out 41199 fi 41200 41201 41202 41203 # Setup the JTReg Regression Test Harness. 41204 41205 41206 # Check whether --with-jtreg was given. 41207 if test "${with_jtreg+set}" = set; then : 41208 withval=$with_jtreg; 41209 else 41210 with_jtreg=no 41211 fi 41212 41213 41214 if test "x$with_jtreg" = xno; then 41215 # jtreg disabled 41216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 41217 $as_echo_n "checking for jtreg... " >&6; } 41218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41219 $as_echo "no" >&6; } 41220 else 41221 if test "x$with_jtreg" != xyes; then 41222 # with path specified. 41223 JT_HOME="$with_jtreg" 41224 fi 41225 41226 if test "x$JT_HOME" != x; then 41227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 41228 $as_echo_n "checking for jtreg... " >&6; } 41229 41230 # use JT_HOME enviroment var. 41231 41232 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41233 41234 # Input might be given as Windows format, start by converting to 41235 # unix format. 41236 path="$JT_HOME" 41237 new_path=`$CYGPATH -u "$path"` 41238 41239 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41240 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41241 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41242 # "foo.exe" is OK but "foo" is an error. 41243 # 41244 # This test is therefore slightly more accurate than "test -f" to check for file precense. 41245 # It is also a way to make sure we got the proper file name for the real test later on. 41246 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41247 if test "x$test_shortpath" = x; then 41248 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 41249 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 41250 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 41251 fi 41252 41253 # Call helper function which possibly converts this using DOS-style short mode. 41254 # If so, the updated path is stored in $new_path. 41255 41256 input_path="$new_path" 41257 # Check if we need to convert this using DOS-style short mode. If the path 41258 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41259 # take no chances and rewrite it. 41260 # Note: m4 eats our [], so we need to use [ and ] instead. 41261 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41262 if test "x$has_forbidden_chars" != x; then 41263 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41264 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41265 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41266 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41267 # Going to short mode and back again did indeed matter. Since short mode is 41268 # case insensitive, let's make it lowercase to improve readability. 41269 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41270 # Now convert it back to Unix-stile (cygpath) 41271 input_path=`$CYGPATH -u "$shortmode_path"` 41272 new_path="$input_path" 41273 fi 41274 fi 41275 41276 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41277 if test "x$test_cygdrive_prefix" = x; then 41278 # As a simple fix, exclude /usr/bin since it's not a real path. 41279 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 41280 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41281 # a path prefixed by /cygdrive for fixpath to work. 41282 new_path="$CYGWIN_ROOT_PATH$input_path" 41283 fi 41284 fi 41285 41286 41287 if test "x$path" != "x$new_path"; then 41288 JT_HOME="$new_path" 41289 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 41290 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 41291 fi 41292 41293 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41294 41295 path="$JT_HOME" 41296 has_colon=`$ECHO $path | $GREP ^.:` 41297 new_path="$path" 41298 if test "x$has_colon" = x; then 41299 # Not in mixed or Windows style, start by that. 41300 new_path=`cmd //c echo $path` 41301 fi 41302 41303 41304 input_path="$new_path" 41305 # Check if we need to convert this using DOS-style short mode. If the path 41306 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41307 # take no chances and rewrite it. 41308 # Note: m4 eats our [], so we need to use [ and ] instead. 41309 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41310 if test "x$has_forbidden_chars" != x; then 41311 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41312 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41313 fi 41314 41315 41316 windows_path="$new_path" 41317 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41318 unix_path=`$CYGPATH -u "$windows_path"` 41319 new_path="$unix_path" 41320 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41321 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41322 new_path="$unix_path" 41323 fi 41324 41325 if test "x$path" != "x$new_path"; then 41326 JT_HOME="$new_path" 41327 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 41328 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 41329 fi 41330 41331 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41332 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41333 41334 else 41335 # We're on a posix platform. Hooray! :) 41336 path="$JT_HOME" 41337 has_space=`$ECHO "$path" | $GREP " "` 41338 if test "x$has_space" != x; then 41339 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 41340 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 41341 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 41342 fi 41343 41344 # Use eval to expand a potential ~ 41345 eval path="$path" 41346 if test ! -f "$path" && test ! -d "$path"; then 41347 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 41348 fi 41349 41350 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 41351 fi 41352 41353 41354 # jtreg win32 script works for everybody 41355 JTREGEXE="$JT_HOME/win32/bin/jtreg" 41356 41357 if test ! -f "$JTREGEXE"; then 41358 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 41359 fi 41360 41361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41362 $as_echo "$JTREGEXE" >&6; } 41363 else 41364 # try to find jtreg on path 41365 41366 41367 41368 # Publish this variable in the help. 41369 41370 41371 if test "x$JTREGEXE" = x; then 41372 # The variable is not set by user, try to locate tool using the code snippet 41373 for ac_prog in jtreg 41374 do 41375 # Extract the first word of "$ac_prog", so it can be a program name with args. 41376 set dummy $ac_prog; ac_word=$2 41377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41378 $as_echo_n "checking for $ac_word... " >&6; } 41379 if ${ac_cv_path_JTREGEXE+:} false; then : 41380 $as_echo_n "(cached) " >&6 41381 else 41382 case $JTREGEXE in 41383 [\\/]* | ?:[\\/]*) 41384 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41385 ;; 41386 *) 41387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41388 for as_dir in $PATH 41389 do 41390 IFS=$as_save_IFS 41391 test -z "$as_dir" && as_dir=. 41392 for ac_exec_ext in '' $ac_executable_extensions; do 41393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41394 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41396 break 2 41397 fi 41398 done 41399 done 41400 IFS=$as_save_IFS 41401 41402 ;; 41403 esac 41404 fi 41405 JTREGEXE=$ac_cv_path_JTREGEXE 41406 if test -n "$JTREGEXE"; then 41407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41408 $as_echo "$JTREGEXE" >&6; } 41409 else 41410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41411 $as_echo "no" >&6; } 41412 fi 41413 41414 41415 test -n "$JTREGEXE" && break 41416 done 41417 41418 else 41419 # The variable is set, but is it from the command line or the environment? 41420 41421 # Try to remove the string !JTREGEXE! from our list. 41422 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 41423 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41424 # If it failed, the variable was not from the command line. Ignore it, 41425 # but warn the user (except for BASH, which is always set by the calling BASH). 41426 if test "xJTREGEXE" != xBASH; then 41427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 41428 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 41429 fi 41430 # Try to locate tool using the code snippet 41431 for ac_prog in jtreg 41432 do 41433 # Extract the first word of "$ac_prog", so it can be a program name with args. 41434 set dummy $ac_prog; ac_word=$2 41435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41436 $as_echo_n "checking for $ac_word... " >&6; } 41437 if ${ac_cv_path_JTREGEXE+:} false; then : 41438 $as_echo_n "(cached) " >&6 41439 else 41440 case $JTREGEXE in 41441 [\\/]* | ?:[\\/]*) 41442 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41443 ;; 41444 *) 41445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41446 for as_dir in $PATH 41447 do 41448 IFS=$as_save_IFS 41449 test -z "$as_dir" && as_dir=. 41450 for ac_exec_ext in '' $ac_executable_extensions; do 41451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41452 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41454 break 2 41455 fi 41456 done 41457 done 41458 IFS=$as_save_IFS 41459 41460 ;; 41461 esac 41462 fi 41463 JTREGEXE=$ac_cv_path_JTREGEXE 41464 if test -n "$JTREGEXE"; then 41465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41466 $as_echo "$JTREGEXE" >&6; } 41467 else 41468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41469 $as_echo "no" >&6; } 41470 fi 41471 41472 41473 test -n "$JTREGEXE" && break 41474 done 41475 41476 else 41477 # If it succeeded, then it was overridden by the user. We will use it 41478 # for the tool. 41479 41480 # First remove it from the list of overridden variables, so we can test 41481 # for unknown variables in the end. 41482 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41483 41484 # Check if the provided tool contains a complete path. 41485 tool_specified="$JTREGEXE" 41486 tool_basename="${tool_specified##*/}" 41487 if test "x$tool_basename" = "x$tool_specified"; then 41488 # A command without a complete path is provided, search $PATH. 41489 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 41490 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 41491 # Extract the first word of "$tool_basename", so it can be a program name with args. 41492 set dummy $tool_basename; ac_word=$2 41493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41494 $as_echo_n "checking for $ac_word... " >&6; } 41495 if ${ac_cv_path_JTREGEXE+:} false; then : 41496 $as_echo_n "(cached) " >&6 41497 else 41498 case $JTREGEXE in 41499 [\\/]* | ?:[\\/]*) 41500 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41501 ;; 41502 *) 41503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41504 for as_dir in $PATH 41505 do 41506 IFS=$as_save_IFS 41507 test -z "$as_dir" && as_dir=. 41508 for ac_exec_ext in '' $ac_executable_extensions; do 41509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41510 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41512 break 2 41513 fi 41514 done 41515 done 41516 IFS=$as_save_IFS 41517 41518 ;; 41519 esac 41520 fi 41521 JTREGEXE=$ac_cv_path_JTREGEXE 41522 if test -n "$JTREGEXE"; then 41523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41524 $as_echo "$JTREGEXE" >&6; } 41525 else 41526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41527 $as_echo "no" >&6; } 41528 fi 41529 41530 41531 if test "x$JTREGEXE" = x; then 41532 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41533 fi 41534 else 41535 # Otherwise we believe it is a complete path. Use it as it is. 41536 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 41537 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 41538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 41539 $as_echo_n "checking for JTREGEXE... " >&6; } 41540 if test ! -x "$tool_specified"; then 41541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41542 $as_echo "not found" >&6; } 41543 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 41544 fi 41545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41546 $as_echo "$tool_specified" >&6; } 41547 fi 41548 fi 41549 fi 41550 41551 41552 41553 if test "x$JTREGEXE" = x; then 41554 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 41555 fi 41556 41557 41558 JT_HOME="`$DIRNAME $JTREGEXE`" 41559 fi 41560 fi 41561 41562 41563 41564 41565 41566 41567 # Option used to tell the compiler whether to create 32- or 64-bit executables 41568 if test "x$TOOLCHAIN_TYPE" = xxlc; then 41569 COMPILER_TARGET_BITS_FLAG="-q" 41570 else 41571 COMPILER_TARGET_BITS_FLAG="-m" 41572 fi 41573 41574 41575 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 41576 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41577 ARFLAGS="-r" 41578 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41579 ARFLAGS="-X64" 41580 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 41581 # lib.exe is used as AR to create static libraries. 41582 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 41583 else 41584 ARFLAGS="" 41585 fi 41586 41587 41588 ## Setup strip. 41589 # FIXME: should this really be per platform, or should it be per toolchain type? 41590 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 41591 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 41592 if test "x$OPENJDK_TARGET_OS" = xlinux; then 41593 STRIPFLAGS="-g" 41594 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 41595 STRIPFLAGS="-x" 41596 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 41597 STRIPFLAGS="-S" 41598 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41599 STRIPFLAGS="-X32_64" 41600 fi 41601 41602 if test "x$OPENJDK_TARGET_OS" != xwindows; then 41603 POST_STRIP_CMD="$STRIP $STRIPFLAGS" 41604 fi 41605 41606 41607 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41608 # FIXME: break out into MCSFLAGS 41609 POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\"" 41610 fi 41611 41612 41613 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41614 CC_OUT_OPTION=-Fo 41615 EXE_OUT_OPTION=-out: 41616 LD_OUT_OPTION=-out: 41617 AR_OUT_OPTION=-out: 41618 else 41619 # The option used to specify the target .o,.a or .so file. 41620 # When compiling, how to specify the to be created object file. 41621 CC_OUT_OPTION='-o$(SPACE)' 41622 # When linking, how to specify the to be created executable. 41623 EXE_OUT_OPTION='-o$(SPACE)' 41624 # When linking, how to specify the to be created dynamically linkable library. 41625 LD_OUT_OPTION='-o$(SPACE)' 41626 # When archiving, how to specify the to be create static archive for object files. 41627 AR_OUT_OPTION='rcs$(SPACE)' 41628 fi 41629 41630 41631 41632 41633 41634 # On Windows, we need to set RC flags. 41635 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41636 RC_FLAGS="-nologo -l 0x409 -r" 41637 if test "x$VARIANT" = xOPT; then 41638 RC_FLAGS="$RC_FLAGS -d NDEBUG" 41639 fi 41640 41641 # The version variables used to create RC_FLAGS may be overridden 41642 # in a custom configure script, or possibly the command line. 41643 # Let those variables be expanded at make time in spec.gmk. 41644 # The \$ are escaped to the shell, and the $(...) variables 41645 # are evaluated by make. 41646 RC_FLAGS="$RC_FLAGS \ 41647 -d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \ 41648 -d \"JDK_COMPANY=\$(COMPANY_NAME)\" \ 41649 -d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 41650 -d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \ 41651 -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 41652 -d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \ 41653 -d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\"" 41654 fi 41655 41656 41657 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41658 # silence copyright notice and other headers. 41659 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 41660 fi 41661 41662 if test "x$SYSROOT" != "x"; then 41663 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41664 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41665 # Solaris Studio does not have a concept of sysroot. Instead we must 41666 # make sure the default include and lib dirs are appended to each 41667 # compile and link command line. 41668 SYSROOT_CFLAGS="-I$SYSROOT/usr/include" 41669 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 41670 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 41671 -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 41672 fi 41673 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 41674 # Apple only wants -isysroot <path>, but we also need -iframework<path>/System/Library/Frameworks 41675 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\" -iframework\"$SYSROOT/System/Library/Frameworks\"" 41676 SYSROOT_LDFLAGS=$SYSROOT_CFLAGS 41677 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 41678 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 41679 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 41680 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41681 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\"" 41682 SYSROOT_LDFLAGS="-isysroot \"$SYSROOT\"" 41683 fi 41684 # Propagate the sysroot args to hotspot 41685 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS" 41686 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS" 41687 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS" 41688 fi 41689 41690 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 41691 # set this here so it doesn't have to be peppered throughout the forest 41692 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41693 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F\"$SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 41694 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F\"$SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 41695 fi 41696 41697 41698 41699 41700 41701 # FIXME: Currently we must test this after toolchain but before flags. Fix! 41702 41703 # Now we can test some aspects on the target using configure macros. 41704 41705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 41706 $as_echo_n "checking for ANSI C header files... " >&6; } 41707 if ${ac_cv_header_stdc+:} false; then : 41708 $as_echo_n "(cached) " >&6 41709 else 41710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41711 /* end confdefs.h. */ 41712 #include <stdlib.h> 41713 #include <stdarg.h> 41714 #include <string.h> 41715 #include <float.h> 41716 41717 int 41718 main () 41719 { 41720 41721 ; 41722 return 0; 41723 } 41724 _ACEOF 41725 if ac_fn_cxx_try_compile "$LINENO"; then : 41726 ac_cv_header_stdc=yes 41727 else 41728 ac_cv_header_stdc=no 41729 fi 41730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41731 41732 if test $ac_cv_header_stdc = yes; then 41733 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 41734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41735 /* end confdefs.h. */ 41736 #include <string.h> 41737 41738 _ACEOF 41739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41740 $EGREP "memchr" >/dev/null 2>&1; then : 41741 41742 else 41743 ac_cv_header_stdc=no 41744 fi 41745 rm -f conftest* 41746 41747 fi 41748 41749 if test $ac_cv_header_stdc = yes; then 41750 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 41751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41752 /* end confdefs.h. */ 41753 #include <stdlib.h> 41754 41755 _ACEOF 41756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41757 $EGREP "free" >/dev/null 2>&1; then : 41758 41759 else 41760 ac_cv_header_stdc=no 41761 fi 41762 rm -f conftest* 41763 41764 fi 41765 41766 if test $ac_cv_header_stdc = yes; then 41767 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 41768 if test "$cross_compiling" = yes; then : 41769 : 41770 else 41771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41772 /* end confdefs.h. */ 41773 #include <ctype.h> 41774 #include <stdlib.h> 41775 #if ((' ' & 0x0FF) == 0x020) 41776 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 41777 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 41778 #else 41779 # define ISLOWER(c) \ 41780 (('a' <= (c) && (c) <= 'i') \ 41781 || ('j' <= (c) && (c) <= 'r') \ 41782 || ('s' <= (c) && (c) <= 'z')) 41783 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 41784 #endif 41785 41786 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 41787 int 41788 main () 41789 { 41790 int i; 41791 for (i = 0; i < 256; i++) 41792 if (XOR (islower (i), ISLOWER (i)) 41793 || toupper (i) != TOUPPER (i)) 41794 return 2; 41795 return 0; 41796 } 41797 _ACEOF 41798 if ac_fn_cxx_try_run "$LINENO"; then : 41799 41800 else 41801 ac_cv_header_stdc=no 41802 fi 41803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41804 conftest.$ac_objext conftest.beam conftest.$ac_ext 41805 fi 41806 41807 fi 41808 fi 41809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 41810 $as_echo "$ac_cv_header_stdc" >&6; } 41811 if test $ac_cv_header_stdc = yes; then 41812 41813 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 41814 41815 fi 41816 41817 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 41818 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 41819 inttypes.h stdint.h unistd.h 41820 do : 41821 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 41822 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 41823 " 41824 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 41825 cat >>confdefs.h <<_ACEOF 41826 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 41827 _ACEOF 41828 41829 fi 41830 41831 done 41832 41833 41834 41835 ############################################################################### 41836 # 41837 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 41838 # (The JVM can use 32 or 64 bit Java pointers but that decision 41839 # is made at runtime.) 41840 # 41841 41842 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 41843 # Always specify -m flag on Solaris 41844 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 41845 41846 # When we add flags to the "official" CFLAGS etc, we need to 41847 # keep track of these additions in ADDED_CFLAGS etc. These 41848 # will later be checked to make sure only controlled additions 41849 # have been made to CFLAGS etc. 41850 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41851 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41852 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41853 41854 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41855 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41856 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41857 41858 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41859 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41860 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41861 41862 elif test "x$COMPILE_TYPE" = xreduced; then 41863 if test "x$OPENJDK_TARGET_OS" != xwindows; then 41864 # Specify -m if running reduced on other Posix platforms 41865 41866 # When we add flags to the "official" CFLAGS etc, we need to 41867 # keep track of these additions in ADDED_CFLAGS etc. These 41868 # will later be checked to make sure only controlled additions 41869 # have been made to CFLAGS etc. 41870 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41871 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41872 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41873 41874 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41875 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41876 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41877 41878 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41879 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41880 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41881 41882 fi 41883 fi 41884 41885 # Make compilation sanity check 41886 for ac_header in stdio.h 41887 do : 41888 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 41889 if test "x$ac_cv_header_stdio_h" = xyes; then : 41890 cat >>confdefs.h <<_ACEOF 41891 #define HAVE_STDIO_H 1 41892 _ACEOF 41893 41894 else 41895 41896 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 41897 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 41898 if test "x$COMPILE_TYPE" = xreduced; then 41899 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5 41900 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;} 41901 elif test "x$COMPILE_TYPE" = xcross; then 41902 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 41903 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 41904 fi 41905 as_fn_error $? "Cannot continue." "$LINENO" 5 41906 41907 fi 41908 41909 done 41910 41911 41912 # The cast to long int works around a bug in the HP C Compiler 41913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41914 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41915 # This bug is HP SR number 8606223364. 41916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41917 $as_echo_n "checking size of int *... " >&6; } 41918 if ${ac_cv_sizeof_int_p+:} false; then : 41919 $as_echo_n "(cached) " >&6 41920 else 41921 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41922 41923 else 41924 if test "$ac_cv_type_int_p" = yes; then 41925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41927 as_fn_error 77 "cannot compute sizeof (int *) 41928 See \`config.log' for more details" "$LINENO" 5; } 41929 else 41930 ac_cv_sizeof_int_p=0 41931 fi 41932 fi 41933 41934 fi 41935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 41936 $as_echo "$ac_cv_sizeof_int_p" >&6; } 41937 41938 41939 41940 cat >>confdefs.h <<_ACEOF 41941 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 41942 _ACEOF 41943 41944 41945 41946 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 41947 if test "x$ac_cv_sizeof_int_p" = x; then 41948 # The test failed, lets stick to the assumed value. 41949 { $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 41950 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 41951 else 41952 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41953 41954 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41955 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 41956 # Let's try to implicitely set the compilers target architecture and retry the test 41957 { $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 41958 $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;} 41959 { $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 41960 $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;} 41961 41962 # When we add flags to the "official" CFLAGS etc, we need to 41963 # keep track of these additions in ADDED_CFLAGS etc. These 41964 # will later be checked to make sure only controlled additions 41965 # have been made to CFLAGS etc. 41966 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41967 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41968 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41969 41970 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41971 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41972 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41973 41974 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41975 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41976 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41977 41978 41979 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 41980 unset ac_cv_sizeof_int_p 41981 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 41982 cat >>confdefs.h <<_ACEOF 41983 #undef SIZEOF_INT_P 41984 _ACEOF 41985 41986 # The cast to long int works around a bug in the HP C Compiler 41987 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41988 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41989 # This bug is HP SR number 8606223364. 41990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41991 $as_echo_n "checking size of int *... " >&6; } 41992 if ${ac_cv_sizeof_int_p+:} false; then : 41993 $as_echo_n "(cached) " >&6 41994 else 41995 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41996 41997 else 41998 if test "$ac_cv_type_int_p" = yes; then 41999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 42000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 42001 as_fn_error 77 "cannot compute sizeof (int *) 42002 See \`config.log' for more details" "$LINENO" 5; } 42003 else 42004 ac_cv_sizeof_int_p=0 42005 fi 42006 fi 42007 42008 fi 42009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 42010 $as_echo "$ac_cv_sizeof_int_p" >&6; } 42011 42012 42013 42014 cat >>confdefs.h <<_ACEOF 42015 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 42016 _ACEOF 42017 42018 42019 42020 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 42021 42022 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 42023 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 42024 fi 42025 fi 42026 fi 42027 42028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 42029 $as_echo_n "checking for target address size... " >&6; } 42030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 42031 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 42032 42033 42034 ############################################################################### 42035 # 42036 # Is the target little of big endian? 42037 # 42038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 42039 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 42040 if ${ac_cv_c_bigendian+:} false; then : 42041 $as_echo_n "(cached) " >&6 42042 else 42043 ac_cv_c_bigendian=unknown 42044 # See if we're dealing with a universal compiler. 42045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42046 /* end confdefs.h. */ 42047 #ifndef __APPLE_CC__ 42048 not a universal capable compiler 42049 #endif 42050 typedef int dummy; 42051 42052 _ACEOF 42053 if ac_fn_cxx_try_compile "$LINENO"; then : 42054 42055 # Check for potential -arch flags. It is not universal unless 42056 # there are at least two -arch flags with different values. 42057 ac_arch= 42058 ac_prev= 42059 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 42060 if test -n "$ac_prev"; then 42061 case $ac_word in 42062 i?86 | x86_64 | ppc | ppc64) 42063 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 42064 ac_arch=$ac_word 42065 else 42066 ac_cv_c_bigendian=universal 42067 break 42068 fi 42069 ;; 42070 esac 42071 ac_prev= 42072 elif test "x$ac_word" = "x-arch"; then 42073 ac_prev=arch 42074 fi 42075 done 42076 fi 42077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42078 if test $ac_cv_c_bigendian = unknown; then 42079 # See if sys/param.h defines the BYTE_ORDER macro. 42080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42081 /* end confdefs.h. */ 42082 #include <sys/types.h> 42083 #include <sys/param.h> 42084 42085 int 42086 main () 42087 { 42088 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 42089 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 42090 && LITTLE_ENDIAN) 42091 bogus endian macros 42092 #endif 42093 42094 ; 42095 return 0; 42096 } 42097 _ACEOF 42098 if ac_fn_cxx_try_compile "$LINENO"; then : 42099 # It does; now see whether it defined to BIG_ENDIAN or not. 42100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42101 /* end confdefs.h. */ 42102 #include <sys/types.h> 42103 #include <sys/param.h> 42104 42105 int 42106 main () 42107 { 42108 #if BYTE_ORDER != BIG_ENDIAN 42109 not big endian 42110 #endif 42111 42112 ; 42113 return 0; 42114 } 42115 _ACEOF 42116 if ac_fn_cxx_try_compile "$LINENO"; then : 42117 ac_cv_c_bigendian=yes 42118 else 42119 ac_cv_c_bigendian=no 42120 fi 42121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42122 fi 42123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42124 fi 42125 if test $ac_cv_c_bigendian = unknown; then 42126 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 42127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42128 /* end confdefs.h. */ 42129 #include <limits.h> 42130 42131 int 42132 main () 42133 { 42134 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 42135 bogus endian macros 42136 #endif 42137 42138 ; 42139 return 0; 42140 } 42141 _ACEOF 42142 if ac_fn_cxx_try_compile "$LINENO"; then : 42143 # It does; now see whether it defined to _BIG_ENDIAN or not. 42144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42145 /* end confdefs.h. */ 42146 #include <limits.h> 42147 42148 int 42149 main () 42150 { 42151 #ifndef _BIG_ENDIAN 42152 not big endian 42153 #endif 42154 42155 ; 42156 return 0; 42157 } 42158 _ACEOF 42159 if ac_fn_cxx_try_compile "$LINENO"; then : 42160 ac_cv_c_bigendian=yes 42161 else 42162 ac_cv_c_bigendian=no 42163 fi 42164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42165 fi 42166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42167 fi 42168 if test $ac_cv_c_bigendian = unknown; then 42169 # Compile a test program. 42170 if test "$cross_compiling" = yes; then : 42171 # Try to guess by grepping values from an object file. 42172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42173 /* end confdefs.h. */ 42174 short int ascii_mm[] = 42175 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 42176 short int ascii_ii[] = 42177 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 42178 int use_ascii (int i) { 42179 return ascii_mm[i] + ascii_ii[i]; 42180 } 42181 short int ebcdic_ii[] = 42182 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 42183 short int ebcdic_mm[] = 42184 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 42185 int use_ebcdic (int i) { 42186 return ebcdic_mm[i] + ebcdic_ii[i]; 42187 } 42188 extern int foo; 42189 42190 int 42191 main () 42192 { 42193 return use_ascii (foo) == use_ebcdic (foo); 42194 ; 42195 return 0; 42196 } 42197 _ACEOF 42198 if ac_fn_cxx_try_compile "$LINENO"; then : 42199 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 42200 ac_cv_c_bigendian=yes 42201 fi 42202 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 42203 if test "$ac_cv_c_bigendian" = unknown; then 42204 ac_cv_c_bigendian=no 42205 else 42206 # finding both strings is unlikely to happen, but who knows? 42207 ac_cv_c_bigendian=unknown 42208 fi 42209 fi 42210 fi 42211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42212 else 42213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42214 /* end confdefs.h. */ 42215 $ac_includes_default 42216 int 42217 main () 42218 { 42219 42220 /* Are we little or big endian? From Harbison&Steele. */ 42221 union 42222 { 42223 long int l; 42224 char c[sizeof (long int)]; 42225 } u; 42226 u.l = 1; 42227 return u.c[sizeof (long int) - 1] == 1; 42228 42229 ; 42230 return 0; 42231 } 42232 _ACEOF 42233 if ac_fn_cxx_try_run "$LINENO"; then : 42234 ac_cv_c_bigendian=no 42235 else 42236 ac_cv_c_bigendian=yes 42237 fi 42238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 42239 conftest.$ac_objext conftest.beam conftest.$ac_ext 42240 fi 42241 42242 fi 42243 fi 42244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 42245 $as_echo "$ac_cv_c_bigendian" >&6; } 42246 case $ac_cv_c_bigendian in #( 42247 yes) 42248 ENDIAN="big";; #( 42249 no) 42250 ENDIAN="little" ;; #( 42251 universal) 42252 ENDIAN="universal_endianness" 42253 ;; #( 42254 *) 42255 ENDIAN="unknown" ;; 42256 esac 42257 42258 42259 if test "x$ENDIAN" = xuniversal_endianness; then 42260 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 42261 fi 42262 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 42263 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 42264 fi 42265 42266 42267 # Configure flags for the tools 42268 42269 ############################################################################### 42270 # 42271 # How to compile shared libraries. 42272 # 42273 42274 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42275 PICFLAG="-fPIC" 42276 C_FLAG_REORDER='' 42277 CXX_FLAG_REORDER='' 42278 42279 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42280 # Linking is different on MacOSX 42281 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 42282 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 42283 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42284 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 42285 SET_SHARED_LIBRARY_MAPFILE='' 42286 else 42287 # Default works for linux, might work on other platforms as well. 42288 SHARED_LIBRARY_FLAGS='-shared' 42289 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 42290 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 42291 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 42292 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 42293 fi 42294 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42295 PICFLAG='' 42296 C_FLAG_REORDER='' 42297 CXX_FLAG_REORDER='' 42298 42299 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42300 # Linking is different on MacOSX 42301 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 42302 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 42303 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42304 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 42305 SET_SHARED_LIBRARY_MAPFILE='' 42306 else 42307 # Default works for linux, might work on other platforms as well. 42308 SHARED_LIBRARY_FLAGS='-shared' 42309 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 42310 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 42311 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 42312 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 42313 fi 42314 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42315 PICFLAG="-KPIC" 42316 C_FLAG_REORDER='-xF' 42317 CXX_FLAG_REORDER='-xF' 42318 SHARED_LIBRARY_FLAGS="-G" 42319 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 42320 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42321 SET_SHARED_LIBRARY_NAME='' 42322 SET_SHARED_LIBRARY_MAPFILE='-M$1' 42323 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42324 PICFLAG="-qpic=large" 42325 C_FLAG_REORDER='' 42326 CXX_FLAG_REORDER='' 42327 SHARED_LIBRARY_FLAGS="-qmkshrobj" 42328 SET_EXECUTABLE_ORIGIN="" 42329 SET_SHARED_LIBRARY_ORIGIN='' 42330 SET_SHARED_LIBRARY_NAME='' 42331 SET_SHARED_LIBRARY_MAPFILE='' 42332 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42333 PICFLAG="" 42334 C_FLAG_REORDER='' 42335 CXX_FLAG_REORDER='' 42336 SHARED_LIBRARY_FLAGS="-LD" 42337 SET_EXECUTABLE_ORIGIN='' 42338 SET_SHARED_LIBRARY_ORIGIN='' 42339 SET_SHARED_LIBRARY_NAME='' 42340 SET_SHARED_LIBRARY_MAPFILE='' 42341 fi 42342 42343 42344 42345 42346 42347 42348 42349 42350 42351 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42352 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 42353 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 42354 CFLAGS_JDKLIB_EXTRA='-xstrconst' 42355 fi 42356 # The (cross) compiler is now configured, we can now test capabilities 42357 # of the target platform. 42358 42359 42360 42361 ############################################################################### 42362 # 42363 # Setup the opt flags for different compilers 42364 # and different operating systems. 42365 # 42366 42367 # FIXME: this was indirectly the old default, but just inherited. 42368 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42369 # C_FLAG_DEPS="-MMD -MF" 42370 # fi 42371 42372 # Generate make dependency files 42373 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42374 C_FLAG_DEPS="-MMD -MF" 42375 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42376 C_FLAG_DEPS="-MMD -MF" 42377 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42378 C_FLAG_DEPS="-xMMD -xMF" 42379 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42380 C_FLAG_DEPS="-qmakedep=gcc -MF" 42381 fi 42382 CXX_FLAG_DEPS="$C_FLAG_DEPS" 42383 42384 42385 42386 # Debug symbols 42387 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42388 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 42389 # reduce from default "-g2" option to save space 42390 CFLAGS_DEBUG_SYMBOLS="-g1" 42391 CXXFLAGS_DEBUG_SYMBOLS="-g1" 42392 else 42393 CFLAGS_DEBUG_SYMBOLS="-g" 42394 CXXFLAGS_DEBUG_SYMBOLS="-g" 42395 fi 42396 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42397 CFLAGS_DEBUG_SYMBOLS="-g" 42398 CXXFLAGS_DEBUG_SYMBOLS="-g" 42399 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42400 CFLAGS_DEBUG_SYMBOLS="-g -xs" 42401 # FIXME: likely a bug, this disables debug symbols rather than enables them 42402 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 42403 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42404 CFLAGS_DEBUG_SYMBOLS="-g" 42405 CXXFLAGS_DEBUG_SYMBOLS="-g" 42406 fi 42407 42408 42409 42410 # bounds, memory and behavior checking options 42411 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42412 case $DEBUG_LEVEL in 42413 release ) 42414 # no adjustment 42415 ;; 42416 fastdebug ) 42417 # no adjustment 42418 ;; 42419 slowdebug ) 42420 # Add runtime stack smashing and undefined behavior checks 42421 CFLAGS_DEBUG_OPTIONS="-fstack-protector-all --param ssp-buffer-size=1" 42422 CXXFLAGS_DEBUG_OPTIONS="-fstack-protector-all --param ssp-buffer-size=1" 42423 if test "x$HAS_CFLAG_DETECT_UNDEFINED_BEHAVIOR" = "xtrue"; then 42424 CFLAGS_DEBUG_OPTIONS="$CFLAGS_DEBUG_OPTIONS $CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG" 42425 CXXFLAGS_DEBUG_OPTIONS="$CXXFLAGS_DEBUG_OPTIONS $CFLAG_DETECT_UNDEFINED_BEHAVIsOR_FLAG" 42426 fi 42427 ;; 42428 esac 42429 fi 42430 42431 42432 42433 # Optimization levels 42434 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42435 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 42436 42437 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 42438 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 42439 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 42440 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 42441 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 42442 C_O_FLAG_DEBUG="-xregs=no%frameptr" 42443 C_O_FLAG_NONE="-xregs=no%frameptr" 42444 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 42445 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 42446 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 42447 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 42448 CXX_O_FLAG_NONE="-xregs=no%frameptr" 42449 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 42450 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 42451 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 42452 fi 42453 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 42454 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 42455 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 42456 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 42457 C_O_FLAG_DEBUG="" 42458 C_O_FLAG_NONE="" 42459 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 42460 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 42461 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 42462 C_O_FLAG_DEBUG="" 42463 CXX_O_FLAG_NONE="" 42464 fi 42465 else 42466 # The remaining toolchains share opt flags between CC and CXX; 42467 # setup for C and duplicate afterwards. 42468 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42469 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42470 # On MacOSX we optimize for size, something 42471 # we should do for all platforms? 42472 C_O_FLAG_HIGHEST="-Os" 42473 C_O_FLAG_HI="-Os" 42474 C_O_FLAG_NORM="-Os" 42475 else 42476 C_O_FLAG_HIGHEST="-O3" 42477 C_O_FLAG_HI="-O3" 42478 C_O_FLAG_NORM="-O2" 42479 fi 42480 C_O_FLAG_DEBUG="-O0" 42481 C_O_FLAG_NONE="-O0" 42482 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42483 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42484 # On MacOSX we optimize for size, something 42485 # we should do for all platforms? 42486 C_O_FLAG_HIGHEST="-Os" 42487 C_O_FLAG_HI="-Os" 42488 C_O_FLAG_NORM="-Os" 42489 else 42490 C_O_FLAG_HIGHEST="-O3" 42491 C_O_FLAG_HI="-O3" 42492 C_O_FLAG_NORM="-O2" 42493 fi 42494 C_O_FLAG_DEBUG="-O0" 42495 C_O_FLAG_NONE="-O0" 42496 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42497 C_O_FLAG_HIGHEST="-O3" 42498 C_O_FLAG_HI="-O3 -qstrict" 42499 C_O_FLAG_NORM="-O2" 42500 C_O_FLAG_DEBUG="-qnoopt" 42501 C_O_FLAG_NONE="-qnoop" 42502 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42503 C_O_FLAG_HIGHEST="-O2" 42504 C_O_FLAG_HI="-O1" 42505 C_O_FLAG_NORM="-O1" 42506 C_O_FLAG_DEBUG="-Od" 42507 C_O_FLAG_NONE="-Od" 42508 fi 42509 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 42510 CXX_O_FLAG_HI="$C_O_FLAG_HI" 42511 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 42512 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 42513 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 42514 fi 42515 42516 # Adjust optimization flags according to debug level. 42517 case $DEBUG_LEVEL in 42518 release ) 42519 # no adjustment 42520 ;; 42521 fastdebug ) 42522 # Not quite so much optimization 42523 C_O_FLAG_HI="$C_O_FLAG_NORM" 42524 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 42525 ;; 42526 slowdebug ) 42527 # Disable optimization 42528 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 42529 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 42530 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 42531 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 42532 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 42533 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 42534 ;; 42535 esac 42536 42537 42538 42539 42540 42541 42542 42543 42544 42545 42546 42547 42548 42549 # Special extras... 42550 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42551 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 42552 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 42553 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 42554 fi 42555 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42556 LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall" 42557 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 42558 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 42559 fi 42560 42561 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 42562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 42563 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 42564 fi 42565 42566 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 42567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 42568 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 42569 fi 42570 42571 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 42572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 42573 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 42574 fi 42575 42576 42577 # Check whether --with-extra-cflags was given. 42578 if test "${with_extra_cflags+set}" = set; then : 42579 withval=$with_extra_cflags; 42580 fi 42581 42582 42583 42584 # Check whether --with-extra-cxxflags was given. 42585 if test "${with_extra_cxxflags+set}" = set; then : 42586 withval=$with_extra_cxxflags; 42587 fi 42588 42589 42590 42591 # Check whether --with-extra-ldflags was given. 42592 if test "${with_extra_ldflags+set}" = set; then : 42593 withval=$with_extra_ldflags; 42594 fi 42595 42596 42597 CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags" 42598 CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags" 42599 LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags" 42600 42601 # Hotspot needs these set in their legacy form 42602 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $with_extra_cflags" 42603 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $with_extra_cxxflags" 42604 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $with_extra_ldflags" 42605 42606 42607 42608 42609 42610 ############################################################################### 42611 # 42612 # Now setup the CFLAGS and LDFLAGS for the JDK build. 42613 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 42614 # 42615 42616 # Setup compiler/platform specific flags into 42617 # CFLAGS_JDK - C Compiler flags 42618 # CXXFLAGS_JDK - C++ Compiler flags 42619 # COMMON_CCXXFLAGS_JDK - common to C and C++ 42620 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42621 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wno-parentheses -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 42622 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 42623 case $OPENJDK_TARGET_CPU_ARCH in 42624 arm ) 42625 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 42626 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42627 ;; 42628 ppc ) 42629 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 42630 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42631 ;; 42632 * ) 42633 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 42634 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42635 ;; 42636 esac 42637 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42638 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 42639 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 42640 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 42641 CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE" 42642 fi 42643 42644 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 42645 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 42646 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42647 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42648 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42649 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42650 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 42651 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \ 42652 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 42653 -DWIN32 -DIAL" 42654 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 42655 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 42656 else 42657 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 42658 fi 42659 fi 42660 42661 ############################################################################### 42662 42663 # Adjust flags according to debug level. 42664 case $DEBUG_LEVEL in 42665 fastdebug | slowdebug ) 42666 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 42667 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 42668 JAVAC_FLAGS="$JAVAC_FLAGS -g" 42669 ;; 42670 release ) 42671 ;; 42672 * ) 42673 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 42674 ;; 42675 esac 42676 42677 # Setup LP64 42678 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $ADD_LP64" 42679 42680 # Set some common defines. These works for all compilers, but assume 42681 # -D is universally accepted. 42682 42683 # Setup endianness 42684 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 42685 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 42686 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 42687 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 42688 # Note: -Dmacro is the same as #define macro 1 42689 # -Dmacro= is the same as #define macro 42690 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42691 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 42692 else 42693 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 42694 fi 42695 else 42696 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 42697 # are defined in the system? 42698 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42699 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 42700 else 42701 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 42702 fi 42703 fi 42704 42705 # Setup target OS define. Use OS target name but in upper case. 42706 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 42707 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 42708 42709 # Setup target CPU 42710 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 42711 42712 # Setup debug/release defines 42713 if test "x$DEBUG_LEVEL" = xrelease; then 42714 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 42715 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42716 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 42717 fi 42718 else 42719 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 42720 fi 42721 42722 # Setup release name 42723 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'" 42724 42725 42726 # Set some additional per-OS defines. 42727 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42728 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 42729 elif test "x$OPENJDK_TARGET_OS" = xaix; then 42730 # FIXME: PPC64 should not be here. 42731 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DPPC64" 42732 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 42733 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 42734 fi 42735 42736 # Additional macosx handling 42737 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42738 # Setting these parameters makes it an error to link to macosx APIs that are 42739 # newer than the given OS version and makes the linked binaries compatible 42740 # even if built on a newer version of the OS. 42741 # The expected format is X.Y.Z 42742 MACOSX_VERSION_MIN=10.7.0 42743 42744 42745 # The macro takes the version with no dots, ex: 1070 42746 # Let the flags variables get resolved in make for easier override on make 42747 # command line. 42748 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42749 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42750 fi 42751 42752 # Setup some hard coded includes 42753 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 42754 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 42755 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS/native/include \ 42756 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_API_DIR/native/include" 42757 42758 # The shared libraries are compiled using the picflag. 42759 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 42760 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA " 42761 42762 # Executable flags 42763 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 42764 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 42765 42766 42767 42768 42769 42770 42771 # Setup LDFLAGS et al. 42772 # 42773 42774 # Now this is odd. The JDK native libraries have to link against libjvm.so 42775 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. 42776 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library 42777 # is identical for client and server? Yes. Which is picked at runtime (client or server)? 42778 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following 42779 # libraries will link to whatever is in memory. Yuck. 42780 # 42781 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh. 42782 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42783 LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no" 42784 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 42785 LDFLAGS_JDK="$LDFLAGS_JDK -safeseh" 42786 fi 42787 # TODO: make -debug optional "--disable-full-debug-symbols" 42788 LDFLAGS_JDK="$LDFLAGS_JDK -debug" 42789 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 42790 # If this is a --hash-style=gnu system, use --hash-style=both, why? 42791 # We have previously set HAS_GNU_HASH if this is the case 42792 if test -n "$HAS_GNU_HASH"; then 42793 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both" 42794 fi 42795 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42796 # And since we now know that the linker is gnu, then add -z defs, to forbid 42797 # undefined symbols in object files. 42798 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs" 42799 case $DEBUG_LEVEL in 42800 release ) 42801 # tell linker to optimize libraries. 42802 # Should this be supplied to the OSS linker as well? 42803 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" 42804 ;; 42805 slowdebug ) 42806 if test "x$HAS_LINKER_NOW" = "xtrue"; then 42807 # do relocations at load 42808 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 42809 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 42810 fi 42811 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 42812 # mark relocations read only 42813 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 42814 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 42815 fi 42816 ;; 42817 fastdebug ) 42818 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 42819 # mark relocations read only 42820 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 42821 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 42822 fi 42823 ;; 42824 * ) 42825 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 42826 ;; 42827 esac 42828 fi 42829 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42830 LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext" 42831 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib" 42832 fi 42833 42834 if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then 42835 # If undefined behaviour detection is enabled then we need to tell linker. 42836 case $DEBUG_LEVEL in 42837 release | fastdebug ) 42838 ;; 42839 slowdebug ) 42840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $HAS_CFLAG_DETECT_UNDEFINED_BEHAVIOR" >&5 42841 $as_echo "$as_me: WARNING: $HAS_CFLAG_DETECT_UNDEFINED_BEHAVIOR" >&2;} 42842 if test "x$HAS_CFLAG_DETECT_UNDEFINED_BEHAVIOR" = "xtrue"; then 42843 # enable undefined behaviour checking 42844 LDFLAGS_JDK="$LDFLAGS_JDK `$ECHO -n $CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG | sed -e "s/ *\(^ \+\)/ -Xlinker \1/g"`" 42845 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK `$ECHO -n $CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG | sed -e "s/ *\(^ \+\)/ -Xlinker \1/g"`" 42846 fi 42847 ;; 42848 * ) 42849 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 42850 ;; 42851 esac 42852 fi 42853 42854 # Customize LDFLAGS for executables 42855 42856 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 42857 42858 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42859 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 42860 LDFLAGS_STACK_SIZE=1048576 42861 else 42862 LDFLAGS_STACK_SIZE=327680 42863 fi 42864 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 42865 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 42866 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" 42867 fi 42868 42869 # Customize LDFLAGS for libs 42870 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 42871 42872 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42873 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -dll -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 42874 LDFLAGS_JDKLIB_SUFFIX="" 42875 else 42876 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS} \ 42877 -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}" 42878 42879 # On some platforms (mac) the linker warns about non existing -L dirs. 42880 # Add server first if available. Linking aginst client does not always produce the same results. 42881 # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1. 42882 # Default to server for other variants. 42883 if test "x$JVM_VARIANT_SERVER" = xtrue; then 42884 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/server" 42885 elif test "x$JVM_VARIANT_CLIENT" = xtrue; then 42886 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/client" 42887 elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 42888 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/minimal" 42889 else 42890 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/server" 42891 fi 42892 42893 LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm" 42894 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42895 LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc" 42896 fi 42897 fi 42898 42899 42900 42901 42902 42903 42904 42905 42906 # Some Zero and Shark settings. 42907 # ZERO_ARCHFLAG tells the compiler which mode to build for 42908 case "${OPENJDK_TARGET_CPU}" in 42909 s390) 42910 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 42911 ;; 42912 *) 42913 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42914 esac 42915 42916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5 42917 $as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 42918 supports=yes 42919 42920 saved_cflags="$CFLAGS" 42921 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 42922 ac_ext=c 42923 ac_cpp='$CPP $CPPFLAGS' 42924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42926 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42927 42928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42929 /* end confdefs.h. */ 42930 int i; 42931 _ACEOF 42932 if ac_fn_c_try_compile "$LINENO"; then : 42933 42934 else 42935 supports=no 42936 fi 42937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42938 ac_ext=cpp 42939 ac_cpp='$CXXCPP $CPPFLAGS' 42940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42943 42944 CFLAGS="$saved_cflags" 42945 42946 saved_cxxflags="$CXXFLAGS" 42947 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 42948 ac_ext=cpp 42949 ac_cpp='$CXXCPP $CPPFLAGS' 42950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42953 42954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42955 /* end confdefs.h. */ 42956 int i; 42957 _ACEOF 42958 if ac_fn_cxx_try_compile "$LINENO"; then : 42959 42960 else 42961 supports=no 42962 fi 42963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42964 ac_ext=cpp 42965 ac_cpp='$CXXCPP $CPPFLAGS' 42966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42969 42970 CXXFLAGS="$saved_cxxflags" 42971 42972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42973 $as_echo "$supports" >&6; } 42974 if test "x$supports" = "xyes" ; then 42975 : 42976 else 42977 ZERO_ARCHFLAG="" 42978 fi 42979 42980 42981 42982 # Check that the compiler supports -mX (or -qX on AIX) flags 42983 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 42984 42985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 42986 $as_echo_n "checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 42987 supports=yes 42988 42989 saved_cflags="$CFLAGS" 42990 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42991 ac_ext=c 42992 ac_cpp='$CPP $CPPFLAGS' 42993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42995 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42996 42997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42998 /* end confdefs.h. */ 42999 int i; 43000 _ACEOF 43001 if ac_fn_c_try_compile "$LINENO"; then : 43002 43003 else 43004 supports=no 43005 fi 43006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43007 ac_ext=cpp 43008 ac_cpp='$CXXCPP $CPPFLAGS' 43009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43012 43013 CFLAGS="$saved_cflags" 43014 43015 saved_cxxflags="$CXXFLAGS" 43016 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 43017 ac_ext=cpp 43018 ac_cpp='$CXXCPP $CPPFLAGS' 43019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43022 43023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43024 /* end confdefs.h. */ 43025 int i; 43026 _ACEOF 43027 if ac_fn_cxx_try_compile "$LINENO"; then : 43028 43029 else 43030 supports=no 43031 fi 43032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43033 ac_ext=cpp 43034 ac_cpp='$CXXCPP $CPPFLAGS' 43035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43038 43039 CXXFLAGS="$saved_cxxflags" 43040 43041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 43042 $as_echo "$supports" >&6; } 43043 if test "x$supports" = "xyes" ; then 43044 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 43045 else 43046 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 43047 fi 43048 43049 43050 43051 case "${TOOLCHAIN_TYPE}" in 43052 microsoft) 43053 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 43054 ;; 43055 solstudio) 43056 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 43057 ;; 43058 gcc) 43059 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 43060 ;; 43061 clang) 43062 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 43063 ;; 43064 esac 43065 43066 43067 43068 # Setup debug symbols (need objcopy from the toolchain for that) 43069 43070 # 43071 # ENABLE_DEBUG_SYMBOLS 43072 # This must be done after the toolchain is setup, since we're looking at objcopy. 43073 # 43074 # Check whether --enable-debug-symbols was given. 43075 if test "${enable_debug_symbols+set}" = set; then : 43076 enableval=$enable_debug_symbols; 43077 fi 43078 43079 43080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5 43081 $as_echo_n "checking if we should generate debug symbols... " >&6; } 43082 43083 if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then 43084 # explicit enabling of enable-debug-symbols and can't find objcopy 43085 # this is an error 43086 as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5 43087 fi 43088 43089 if test "x$enable_debug_symbols" = "xyes"; then 43090 ENABLE_DEBUG_SYMBOLS=true 43091 elif test "x$enable_debug_symbols" = "xno"; then 43092 ENABLE_DEBUG_SYMBOLS=false 43093 else 43094 # Default is on if objcopy is found 43095 if test "x$OBJCOPY" != x; then 43096 ENABLE_DEBUG_SYMBOLS=true 43097 # MacOS X and Windows don't use objcopy but default is on for those OSes 43098 elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then 43099 ENABLE_DEBUG_SYMBOLS=true 43100 else 43101 ENABLE_DEBUG_SYMBOLS=false 43102 fi 43103 fi 43104 43105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5 43106 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; } 43107 43108 # 43109 # ZIP_DEBUGINFO_FILES 43110 # 43111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5 43112 $as_echo_n "checking if we should zip debug-info files... " >&6; } 43113 # Check whether --enable-zip-debug-info was given. 43114 if test "${enable_zip_debug_info+set}" = set; then : 43115 enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}" 43116 else 43117 enable_zip_debug_info="yes" 43118 fi 43119 43120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5 43121 $as_echo "${enable_zip_debug_info}" >&6; } 43122 43123 if test "x${enable_zip_debug_info}" = "xno"; then 43124 ZIP_DEBUGINFO_FILES=false 43125 else 43126 ZIP_DEBUGINFO_FILES=true 43127 fi 43128 43129 43130 43131 43132 43133 ############################################################################### 43134 # 43135 # Check dependencies for external and internal libraries. 43136 # 43137 ############################################################################### 43138 43139 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 43140 43141 # When using cygwin or msys, we need a wrapper binary that renames 43142 # /cygdrive/c/ arguments into c:/ arguments and peeks into 43143 # @files and rewrites these too! This wrapper binary is 43144 # called fixpath. 43145 FIXPATH= 43146 if test "x$OPENJDK_BUILD_OS" = xwindows; then 43147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 43148 $as_echo_n "checking if fixpath can be created... " >&6; } 43149 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 43150 FIXPATH_BIN="$OUTPUT_ROOT/fixpath.exe" 43151 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 43152 FIXPATH_SRC=`$CYGPATH -m $FIXPATH_SRC` 43153 FIXPATH_BIN=`$CYGPATH -m $FIXPATH_BIN` 43154 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 43155 FIXPATH="$OUTPUT_ROOT/fixpath.exe -c" 43156 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 43157 FIXPATH_SRC=`cmd //c echo $FIXPATH_SRC` 43158 FIXPATH_BIN=`cmd //c echo $FIXPATH_BIN` 43159 43160 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 43161 # @ was chosen as separator to minimize risk of other tools messing around with it 43162 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" | tr ' ' '\n' | grep '^/./' | sort | uniq` 43163 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 43164 43165 FIXPATH="$OUTPUT_ROOT/fixpath -m$fixpath_argument_list" 43166 fi 43167 rm -f $OUTPUT_ROOT/fixpath* 43168 cd $OUTPUT_ROOT 43169 $CC $FIXPATH_SRC -Fe$FIXPATH_BIN > $OUTPUT_ROOT/fixpath1.log 2>&1 43170 cd $CURDIR 43171 43172 if test ! -x $OUTPUT_ROOT/fixpath.exe; then 43173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43174 $as_echo "no" >&6; } 43175 cat $OUTPUT_ROOT/fixpath1.log 43176 as_fn_error $? "Could not create $OUTPUT_ROOT/fixpath.exe" "$LINENO" 5 43177 fi 43178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43179 $as_echo "yes" >&6; } 43180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 43181 $as_echo_n "checking if fixpath.exe works... " >&6; } 43182 cd $OUTPUT_ROOT 43183 $FIXPATH $CC $SRC_ROOT/common/src/fixpath.c -Fe$OUTPUT_ROOT/fixpath2.exe > $OUTPUT_ROOT/fixpath2.log 2>&1 43184 cd $CURDIR 43185 if test ! -x $OUTPUT_ROOT/fixpath2.exe; then 43186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43187 $as_echo "no" >&6; } 43188 cat $OUTPUT_ROOT/fixpath2.log 43189 as_fn_error $? "fixpath did not work!" "$LINENO" 5 43190 fi 43191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43192 $as_echo "yes" >&6; } 43193 rm -f $OUTPUT_ROOT/fixpath?.??? $OUTPUT_ROOT/fixpath.obj 43194 fi 43195 43196 43197 43198 43199 43200 43201 ############################################################################### 43202 # 43203 # OS specific settings that we never will need to probe. 43204 # 43205 if test "x$OPENJDK_TARGET_OS" = xlinux; then 43206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5 43207 $as_echo_n "checking what is not needed on Linux?... " >&6; } 43208 PULSE_NOT_NEEDED=yes 43209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5 43210 $as_echo "pulse" >&6; } 43211 fi 43212 43213 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 43214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5 43215 $as_echo_n "checking what is not needed on Solaris?... " >&6; } 43216 ALSA_NOT_NEEDED=yes 43217 PULSE_NOT_NEEDED=yes 43218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 43219 $as_echo "alsa pulse" >&6; } 43220 fi 43221 43222 if test "x$OPENJDK_TARGET_OS" = xaix; then 43223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5 43224 $as_echo_n "checking what is not needed on AIX?... " >&6; } 43225 ALSA_NOT_NEEDED=yes 43226 PULSE_NOT_NEEDED=yes 43227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 43228 $as_echo "alsa pulse" >&6; } 43229 fi 43230 43231 43232 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5 43234 $as_echo_n "checking what is not needed on Windows?... " >&6; } 43235 CUPS_NOT_NEEDED=yes 43236 ALSA_NOT_NEEDED=yes 43237 PULSE_NOT_NEEDED=yes 43238 X11_NOT_NEEDED=yes 43239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5 43240 $as_echo "alsa cups pulse x11" >&6; } 43241 fi 43242 43243 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 43244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5 43245 $as_echo_n "checking what is not needed on MacOSX?... " >&6; } 43246 ALSA_NOT_NEEDED=yes 43247 PULSE_NOT_NEEDED=yes 43248 X11_NOT_NEEDED=yes 43249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5 43250 $as_echo "alsa pulse x11" >&6; } 43251 fi 43252 43253 if test "x$OPENJDK_TARGET_OS" = xbsd; then 43254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5 43255 $as_echo_n "checking what is not needed on bsd?... " >&6; } 43256 ALSA_NOT_NEEDED=yes 43257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5 43258 $as_echo "alsa" >&6; } 43259 fi 43260 43261 if test "x$OPENJDK" = "xfalse"; then 43262 FREETYPE_NOT_NEEDED=yes 43263 fi 43264 43265 if test "x$SUPPORT_HEADFUL" = xno; then 43266 X11_NOT_NEEDED=yes 43267 fi 43268 43269 43270 43271 ############################################################################### 43272 # 43273 # Check for X Windows 43274 # 43275 43276 if test "x$X11_NOT_NEEDED" = xyes; then 43277 if test "x${with_x}" != x; then 43278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 is not used, so --with-x is ignored" >&5 43279 $as_echo "$as_me: WARNING: X11 is not used, so --with-x is ignored" >&2;} 43280 fi 43281 X_CFLAGS= 43282 X_LIBS= 43283 else 43284 # Check if the user has specified sysroot, but not --x-includes or --x-libraries. 43285 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 43286 # --x-libraries for the sysroot, if that seems to be correct. 43287 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 43288 if test "x$SYSROOT" != "x"; then 43289 if test "x$x_includes" = xNONE; then 43290 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 43291 x_includes="$SYSROOT/usr/X11R6/include" 43292 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 43293 x_includes="$SYSROOT/usr/include" 43294 fi 43295 fi 43296 if test "x$x_libraries" = xNONE; then 43297 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 43298 x_libraries="$SYSROOT/usr/X11R6/lib" 43299 elif test "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 43300 x_libraries="$SYSROOT/usr/lib64" 43301 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 43302 x_libraries="$SYSROOT/usr/lib" 43303 fi 43304 fi 43305 fi 43306 fi 43307 43308 # Now let autoconf do it's magic 43309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 43310 $as_echo_n "checking for X... " >&6; } 43311 43312 43313 # Check whether --with-x was given. 43314 if test "${with_x+set}" = set; then : 43315 withval=$with_x; 43316 fi 43317 43318 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 43319 if test "x$with_x" = xno; then 43320 # The user explicitly disabled X. 43321 have_x=disabled 43322 else 43323 case $x_includes,$x_libraries in #( 43324 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 43325 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 43326 $as_echo_n "(cached) " >&6 43327 else 43328 # One or both of the vars are not set, and there is no cached value. 43329 ac_x_includes=no ac_x_libraries=no 43330 rm -f -r conftest.dir 43331 if mkdir conftest.dir; then 43332 cd conftest.dir 43333 cat >Imakefile <<'_ACEOF' 43334 incroot: 43335 @echo incroot='${INCROOT}' 43336 usrlibdir: 43337 @echo usrlibdir='${USRLIBDIR}' 43338 libdir: 43339 @echo libdir='${LIBDIR}' 43340 _ACEOF 43341 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 43342 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 43343 for ac_var in incroot usrlibdir libdir; do 43344 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 43345 done 43346 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 43347 for ac_extension in a so sl dylib la dll; do 43348 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 43349 test -f "$ac_im_libdir/libX11.$ac_extension"; then 43350 ac_im_usrlibdir=$ac_im_libdir; break 43351 fi 43352 done 43353 # Screen out bogus values from the imake configuration. They are 43354 # bogus both because they are the default anyway, and because 43355 # using them would break gcc on systems where it needs fixed includes. 43356 case $ac_im_incroot in 43357 /usr/include) ac_x_includes= ;; 43358 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 43359 esac 43360 case $ac_im_usrlibdir in 43361 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 43362 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 43363 esac 43364 fi 43365 cd .. 43366 rm -f -r conftest.dir 43367 fi 43368 43369 # Standard set of common directories for X headers. 43370 # Check X11 before X11Rn because it is often a symlink to the current release. 43371 ac_x_header_dirs=' 43372 /usr/X11/include 43373 /usr/X11R7/include 43374 /usr/X11R6/include 43375 /usr/X11R5/include 43376 /usr/X11R4/include 43377 43378 /usr/include/X11 43379 /usr/include/X11R7 43380 /usr/include/X11R6 43381 /usr/include/X11R5 43382 /usr/include/X11R4 43383 43384 /usr/local/X11/include 43385 /usr/local/X11R7/include 43386 /usr/local/X11R6/include 43387 /usr/local/X11R5/include 43388 /usr/local/X11R4/include 43389 43390 /usr/local/include/X11 43391 /usr/local/include/X11R7 43392 /usr/local/include/X11R6 43393 /usr/local/include/X11R5 43394 /usr/local/include/X11R4 43395 43396 /usr/X386/include 43397 /usr/x386/include 43398 /usr/XFree86/include/X11 43399 43400 /usr/include 43401 /usr/local/include 43402 /usr/unsupported/include 43403 /usr/athena/include 43404 /usr/local/x11r5/include 43405 /usr/lpp/Xamples/include 43406 43407 /usr/openwin/include 43408 /usr/openwin/share/include' 43409 43410 if test "$ac_x_includes" = no; then 43411 # Guess where to find include files, by looking for Xlib.h. 43412 # First, try using that file with no special directory specified. 43413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43414 /* end confdefs.h. */ 43415 #include <X11/Xlib.h> 43416 _ACEOF 43417 if ac_fn_cxx_try_cpp "$LINENO"; then : 43418 # We can compile using X headers with no special include directory. 43419 ac_x_includes= 43420 else 43421 for ac_dir in $ac_x_header_dirs; do 43422 if test -r "$ac_dir/X11/Xlib.h"; then 43423 ac_x_includes=$ac_dir 43424 break 43425 fi 43426 done 43427 fi 43428 rm -f conftest.err conftest.i conftest.$ac_ext 43429 fi # $ac_x_includes = no 43430 43431 if test "$ac_x_libraries" = no; then 43432 # Check for the libraries. 43433 # See if we find them without any special options. 43434 # Don't add to $LIBS permanently. 43435 ac_save_LIBS=$LIBS 43436 LIBS="-lX11 $LIBS" 43437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43438 /* end confdefs.h. */ 43439 #include <X11/Xlib.h> 43440 int 43441 main () 43442 { 43443 XrmInitialize () 43444 ; 43445 return 0; 43446 } 43447 _ACEOF 43448 if ac_fn_cxx_try_link "$LINENO"; then : 43449 LIBS=$ac_save_LIBS 43450 # We can link X programs with no special library path. 43451 ac_x_libraries= 43452 else 43453 LIBS=$ac_save_LIBS 43454 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 43455 do 43456 # Don't even attempt the hair of trying to link an X program! 43457 for ac_extension in a so sl dylib la dll; do 43458 if test -r "$ac_dir/libX11.$ac_extension"; then 43459 ac_x_libraries=$ac_dir 43460 break 2 43461 fi 43462 done 43463 done 43464 fi 43465 rm -f core conftest.err conftest.$ac_objext \ 43466 conftest$ac_exeext conftest.$ac_ext 43467 fi # $ac_x_libraries = no 43468 43469 case $ac_x_includes,$ac_x_libraries in #( 43470 no,* | *,no | *\'*) 43471 # Didn't find X, or a directory has "'" in its name. 43472 ac_cv_have_x="have_x=no";; #( 43473 *) 43474 # Record where we found X for the cache. 43475 ac_cv_have_x="have_x=yes\ 43476 ac_x_includes='$ac_x_includes'\ 43477 ac_x_libraries='$ac_x_libraries'" 43478 esac 43479 fi 43480 ;; #( 43481 *) have_x=yes;; 43482 esac 43483 eval "$ac_cv_have_x" 43484 fi # $with_x != no 43485 43486 if test "$have_x" != yes; then 43487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 43488 $as_echo "$have_x" >&6; } 43489 no_x=yes 43490 else 43491 # If each of the values was on the command line, it overrides each guess. 43492 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 43493 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 43494 # Update the cache value to reflect the command line values. 43495 ac_cv_have_x="have_x=yes\ 43496 ac_x_includes='$x_includes'\ 43497 ac_x_libraries='$x_libraries'" 43498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 43499 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 43500 fi 43501 43502 if test "$no_x" = yes; then 43503 # Not all programs may use this symbol, but it does not hurt to define it. 43504 43505 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 43506 43507 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 43508 else 43509 if test -n "$x_includes"; then 43510 X_CFLAGS="$X_CFLAGS -I$x_includes" 43511 fi 43512 43513 # It would also be nice to do this for all -L options, not just this one. 43514 if test -n "$x_libraries"; then 43515 X_LIBS="$X_LIBS -L$x_libraries" 43516 # For Solaris; some versions of Sun CC require a space after -R and 43517 # others require no space. Words are not sufficient . . . . 43518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 43519 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 43520 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 43521 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 43522 ac_cxx_werror_flag=yes 43523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43524 /* end confdefs.h. */ 43525 43526 int 43527 main () 43528 { 43529 43530 ; 43531 return 0; 43532 } 43533 _ACEOF 43534 if ac_fn_cxx_try_link "$LINENO"; then : 43535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43536 $as_echo "no" >&6; } 43537 X_LIBS="$X_LIBS -R$x_libraries" 43538 else 43539 LIBS="$ac_xsave_LIBS -R $x_libraries" 43540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43541 /* end confdefs.h. */ 43542 43543 int 43544 main () 43545 { 43546 43547 ; 43548 return 0; 43549 } 43550 _ACEOF 43551 if ac_fn_cxx_try_link "$LINENO"; then : 43552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43553 $as_echo "yes" >&6; } 43554 X_LIBS="$X_LIBS -R $x_libraries" 43555 else 43556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 43557 $as_echo "neither works" >&6; } 43558 fi 43559 rm -f core conftest.err conftest.$ac_objext \ 43560 conftest$ac_exeext conftest.$ac_ext 43561 fi 43562 rm -f core conftest.err conftest.$ac_objext \ 43563 conftest$ac_exeext conftest.$ac_ext 43564 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 43565 LIBS=$ac_xsave_LIBS 43566 fi 43567 43568 # Check for system-dependent libraries X programs must link with. 43569 # Do this before checking for the system-independent R6 libraries 43570 # (-lICE), since we may need -lsocket or whatever for X linking. 43571 43572 if test "$ISC" = yes; then 43573 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 43574 else 43575 # Martyn Johnson says this is needed for Ultrix, if the X 43576 # libraries were built with DECnet support. And Karl Berry says 43577 # the Alpha needs dnet_stub (dnet does not exist). 43578 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 43579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43580 /* end confdefs.h. */ 43581 43582 /* Override any GCC internal prototype to avoid an error. 43583 Use char because int might match the return type of a GCC 43584 builtin and then its argument prototype would still apply. */ 43585 #ifdef __cplusplus 43586 extern "C" 43587 #endif 43588 char XOpenDisplay (); 43589 int 43590 main () 43591 { 43592 return XOpenDisplay (); 43593 ; 43594 return 0; 43595 } 43596 _ACEOF 43597 if ac_fn_cxx_try_link "$LINENO"; then : 43598 43599 else 43600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 43601 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 43602 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 43603 $as_echo_n "(cached) " >&6 43604 else 43605 ac_check_lib_save_LIBS=$LIBS 43606 LIBS="-ldnet $LIBS" 43607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43608 /* end confdefs.h. */ 43609 43610 /* Override any GCC internal prototype to avoid an error. 43611 Use char because int might match the return type of a GCC 43612 builtin and then its argument prototype would still apply. */ 43613 #ifdef __cplusplus 43614 extern "C" 43615 #endif 43616 char dnet_ntoa (); 43617 int 43618 main () 43619 { 43620 return dnet_ntoa (); 43621 ; 43622 return 0; 43623 } 43624 _ACEOF 43625 if ac_fn_cxx_try_link "$LINENO"; then : 43626 ac_cv_lib_dnet_dnet_ntoa=yes 43627 else 43628 ac_cv_lib_dnet_dnet_ntoa=no 43629 fi 43630 rm -f core conftest.err conftest.$ac_objext \ 43631 conftest$ac_exeext conftest.$ac_ext 43632 LIBS=$ac_check_lib_save_LIBS 43633 fi 43634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 43635 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 43636 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 43637 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 43638 fi 43639 43640 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 43641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 43642 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 43643 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 43644 $as_echo_n "(cached) " >&6 43645 else 43646 ac_check_lib_save_LIBS=$LIBS 43647 LIBS="-ldnet_stub $LIBS" 43648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43649 /* end confdefs.h. */ 43650 43651 /* Override any GCC internal prototype to avoid an error. 43652 Use char because int might match the return type of a GCC 43653 builtin and then its argument prototype would still apply. */ 43654 #ifdef __cplusplus 43655 extern "C" 43656 #endif 43657 char dnet_ntoa (); 43658 int 43659 main () 43660 { 43661 return dnet_ntoa (); 43662 ; 43663 return 0; 43664 } 43665 _ACEOF 43666 if ac_fn_cxx_try_link "$LINENO"; then : 43667 ac_cv_lib_dnet_stub_dnet_ntoa=yes 43668 else 43669 ac_cv_lib_dnet_stub_dnet_ntoa=no 43670 fi 43671 rm -f core conftest.err conftest.$ac_objext \ 43672 conftest$ac_exeext conftest.$ac_ext 43673 LIBS=$ac_check_lib_save_LIBS 43674 fi 43675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 43676 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 43677 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 43678 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 43679 fi 43680 43681 fi 43682 fi 43683 rm -f core conftest.err conftest.$ac_objext \ 43684 conftest$ac_exeext conftest.$ac_ext 43685 LIBS="$ac_xsave_LIBS" 43686 43687 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 43688 # to get the SysV transport functions. 43689 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 43690 # needs -lnsl. 43691 # The nsl library prevents programs from opening the X display 43692 # on Irix 5.2, according to T.E. Dickey. 43693 # The functions gethostbyname, getservbyname, and inet_addr are 43694 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 43695 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 43696 if test "x$ac_cv_func_gethostbyname" = xyes; then : 43697 43698 fi 43699 43700 if test $ac_cv_func_gethostbyname = no; then 43701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 43702 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 43703 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 43704 $as_echo_n "(cached) " >&6 43705 else 43706 ac_check_lib_save_LIBS=$LIBS 43707 LIBS="-lnsl $LIBS" 43708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43709 /* end confdefs.h. */ 43710 43711 /* Override any GCC internal prototype to avoid an error. 43712 Use char because int might match the return type of a GCC 43713 builtin and then its argument prototype would still apply. */ 43714 #ifdef __cplusplus 43715 extern "C" 43716 #endif 43717 char gethostbyname (); 43718 int 43719 main () 43720 { 43721 return gethostbyname (); 43722 ; 43723 return 0; 43724 } 43725 _ACEOF 43726 if ac_fn_cxx_try_link "$LINENO"; then : 43727 ac_cv_lib_nsl_gethostbyname=yes 43728 else 43729 ac_cv_lib_nsl_gethostbyname=no 43730 fi 43731 rm -f core conftest.err conftest.$ac_objext \ 43732 conftest$ac_exeext conftest.$ac_ext 43733 LIBS=$ac_check_lib_save_LIBS 43734 fi 43735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 43736 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 43737 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 43738 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 43739 fi 43740 43741 if test $ac_cv_lib_nsl_gethostbyname = no; then 43742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 43743 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 43744 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 43745 $as_echo_n "(cached) " >&6 43746 else 43747 ac_check_lib_save_LIBS=$LIBS 43748 LIBS="-lbsd $LIBS" 43749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43750 /* end confdefs.h. */ 43751 43752 /* Override any GCC internal prototype to avoid an error. 43753 Use char because int might match the return type of a GCC 43754 builtin and then its argument prototype would still apply. */ 43755 #ifdef __cplusplus 43756 extern "C" 43757 #endif 43758 char gethostbyname (); 43759 int 43760 main () 43761 { 43762 return gethostbyname (); 43763 ; 43764 return 0; 43765 } 43766 _ACEOF 43767 if ac_fn_cxx_try_link "$LINENO"; then : 43768 ac_cv_lib_bsd_gethostbyname=yes 43769 else 43770 ac_cv_lib_bsd_gethostbyname=no 43771 fi 43772 rm -f core conftest.err conftest.$ac_objext \ 43773 conftest$ac_exeext conftest.$ac_ext 43774 LIBS=$ac_check_lib_save_LIBS 43775 fi 43776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 43777 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 43778 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 43779 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 43780 fi 43781 43782 fi 43783 fi 43784 43785 # lieder@skyler.mavd.honeywell.com says without -lsocket, 43786 # socket/setsockopt and other routines are undefined under SCO ODT 43787 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 43788 # on later versions), says Simon Leinen: it contains gethostby* 43789 # variants that don't use the name server (or something). -lsocket 43790 # must be given before -lnsl if both are needed. We assume that 43791 # if connect needs -lnsl, so does gethostbyname. 43792 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 43793 if test "x$ac_cv_func_connect" = xyes; then : 43794 43795 fi 43796 43797 if test $ac_cv_func_connect = no; then 43798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 43799 $as_echo_n "checking for connect in -lsocket... " >&6; } 43800 if ${ac_cv_lib_socket_connect+:} false; then : 43801 $as_echo_n "(cached) " >&6 43802 else 43803 ac_check_lib_save_LIBS=$LIBS 43804 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 43805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43806 /* end confdefs.h. */ 43807 43808 /* Override any GCC internal prototype to avoid an error. 43809 Use char because int might match the return type of a GCC 43810 builtin and then its argument prototype would still apply. */ 43811 #ifdef __cplusplus 43812 extern "C" 43813 #endif 43814 char connect (); 43815 int 43816 main () 43817 { 43818 return connect (); 43819 ; 43820 return 0; 43821 } 43822 _ACEOF 43823 if ac_fn_cxx_try_link "$LINENO"; then : 43824 ac_cv_lib_socket_connect=yes 43825 else 43826 ac_cv_lib_socket_connect=no 43827 fi 43828 rm -f core conftest.err conftest.$ac_objext \ 43829 conftest$ac_exeext conftest.$ac_ext 43830 LIBS=$ac_check_lib_save_LIBS 43831 fi 43832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 43833 $as_echo "$ac_cv_lib_socket_connect" >&6; } 43834 if test "x$ac_cv_lib_socket_connect" = xyes; then : 43835 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 43836 fi 43837 43838 fi 43839 43840 # Guillermo Gomez says -lposix is necessary on A/UX. 43841 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 43842 if test "x$ac_cv_func_remove" = xyes; then : 43843 43844 fi 43845 43846 if test $ac_cv_func_remove = no; then 43847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 43848 $as_echo_n "checking for remove in -lposix... " >&6; } 43849 if ${ac_cv_lib_posix_remove+:} false; then : 43850 $as_echo_n "(cached) " >&6 43851 else 43852 ac_check_lib_save_LIBS=$LIBS 43853 LIBS="-lposix $LIBS" 43854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43855 /* end confdefs.h. */ 43856 43857 /* Override any GCC internal prototype to avoid an error. 43858 Use char because int might match the return type of a GCC 43859 builtin and then its argument prototype would still apply. */ 43860 #ifdef __cplusplus 43861 extern "C" 43862 #endif 43863 char remove (); 43864 int 43865 main () 43866 { 43867 return remove (); 43868 ; 43869 return 0; 43870 } 43871 _ACEOF 43872 if ac_fn_cxx_try_link "$LINENO"; then : 43873 ac_cv_lib_posix_remove=yes 43874 else 43875 ac_cv_lib_posix_remove=no 43876 fi 43877 rm -f core conftest.err conftest.$ac_objext \ 43878 conftest$ac_exeext conftest.$ac_ext 43879 LIBS=$ac_check_lib_save_LIBS 43880 fi 43881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 43882 $as_echo "$ac_cv_lib_posix_remove" >&6; } 43883 if test "x$ac_cv_lib_posix_remove" = xyes; then : 43884 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 43885 fi 43886 43887 fi 43888 43889 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 43890 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 43891 if test "x$ac_cv_func_shmat" = xyes; then : 43892 43893 fi 43894 43895 if test $ac_cv_func_shmat = no; then 43896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 43897 $as_echo_n "checking for shmat in -lipc... " >&6; } 43898 if ${ac_cv_lib_ipc_shmat+:} false; then : 43899 $as_echo_n "(cached) " >&6 43900 else 43901 ac_check_lib_save_LIBS=$LIBS 43902 LIBS="-lipc $LIBS" 43903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43904 /* end confdefs.h. */ 43905 43906 /* Override any GCC internal prototype to avoid an error. 43907 Use char because int might match the return type of a GCC 43908 builtin and then its argument prototype would still apply. */ 43909 #ifdef __cplusplus 43910 extern "C" 43911 #endif 43912 char shmat (); 43913 int 43914 main () 43915 { 43916 return shmat (); 43917 ; 43918 return 0; 43919 } 43920 _ACEOF 43921 if ac_fn_cxx_try_link "$LINENO"; then : 43922 ac_cv_lib_ipc_shmat=yes 43923 else 43924 ac_cv_lib_ipc_shmat=no 43925 fi 43926 rm -f core conftest.err conftest.$ac_objext \ 43927 conftest$ac_exeext conftest.$ac_ext 43928 LIBS=$ac_check_lib_save_LIBS 43929 fi 43930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 43931 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 43932 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 43933 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 43934 fi 43935 43936 fi 43937 fi 43938 43939 # Check for libraries that X11R6 Xt/Xaw programs need. 43940 ac_save_LDFLAGS=$LDFLAGS 43941 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 43942 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 43943 # check for ICE first), but we must link in the order -lSM -lICE or 43944 # we get undefined symbols. So assume we have SM if we have ICE. 43945 # These have to be linked with before -lX11, unlike the other 43946 # libraries we check for below, so use a different variable. 43947 # John Interrante, Karl Berry 43948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 43949 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 43950 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 43951 $as_echo_n "(cached) " >&6 43952 else 43953 ac_check_lib_save_LIBS=$LIBS 43954 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 43955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43956 /* end confdefs.h. */ 43957 43958 /* Override any GCC internal prototype to avoid an error. 43959 Use char because int might match the return type of a GCC 43960 builtin and then its argument prototype would still apply. */ 43961 #ifdef __cplusplus 43962 extern "C" 43963 #endif 43964 char IceConnectionNumber (); 43965 int 43966 main () 43967 { 43968 return IceConnectionNumber (); 43969 ; 43970 return 0; 43971 } 43972 _ACEOF 43973 if ac_fn_cxx_try_link "$LINENO"; then : 43974 ac_cv_lib_ICE_IceConnectionNumber=yes 43975 else 43976 ac_cv_lib_ICE_IceConnectionNumber=no 43977 fi 43978 rm -f core conftest.err conftest.$ac_objext \ 43979 conftest$ac_exeext conftest.$ac_ext 43980 LIBS=$ac_check_lib_save_LIBS 43981 fi 43982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 43983 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 43984 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 43985 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 43986 fi 43987 43988 LDFLAGS=$ac_save_LDFLAGS 43989 43990 fi 43991 43992 43993 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 43994 # this doesn't make sense so we remove it. 43995 if test "x$COMPILE_TYPE" = xcross; then 43996 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 43997 fi 43998 43999 if test "x$no_x" = xyes; then 44000 44001 # Print a helpful message on how to acquire the necessary build dependency. 44002 # x11 is the help tag: freetype, cups, pulse, alsa etc 44003 MISSING_DEPENDENCY=x11 44004 44005 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44006 cygwin_help $MISSING_DEPENDENCY 44007 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44008 msys_help $MISSING_DEPENDENCY 44009 else 44010 PKGHANDLER_COMMAND= 44011 44012 case $PKGHANDLER in 44013 apt-get) 44014 apt_help $MISSING_DEPENDENCY ;; 44015 yum) 44016 yum_help $MISSING_DEPENDENCY ;; 44017 port) 44018 port_help $MISSING_DEPENDENCY ;; 44019 pkgutil) 44020 pkgutil_help $MISSING_DEPENDENCY ;; 44021 pkgadd) 44022 pkgadd_help $MISSING_DEPENDENCY ;; 44023 esac 44024 44025 if test "x$PKGHANDLER_COMMAND" != x; then 44026 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44027 fi 44028 fi 44029 44030 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 44031 fi 44032 44033 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 44034 OPENWIN_HOME="/usr/openwin" 44035 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 44036 X_LIBS="-L$SYSROOT$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 44037 -L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 44038 -R$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 44039 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 44040 fi 44041 44042 ac_ext=c 44043 ac_cpp='$CPP $CPPFLAGS' 44044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44046 ac_compiler_gnu=$ac_cv_c_compiler_gnu 44047 44048 OLD_CFLAGS="$CFLAGS" 44049 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 44050 44051 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 44052 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 44053 do : 44054 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 44055 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 44056 # include <X11/Xlib.h> 44057 # include <X11/Xutil.h> 44058 44059 44060 " 44061 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 44062 cat >>confdefs.h <<_ACEOF 44063 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 44064 _ACEOF 44065 X11_HEADERS_OK=yes 44066 else 44067 X11_HEADERS_OK=no; break 44068 fi 44069 44070 done 44071 44072 44073 if test "x$X11_HEADERS_OK" = xno; then 44074 44075 # Print a helpful message on how to acquire the necessary build dependency. 44076 # x11 is the help tag: freetype, cups, pulse, alsa etc 44077 MISSING_DEPENDENCY=x11 44078 44079 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44080 cygwin_help $MISSING_DEPENDENCY 44081 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44082 msys_help $MISSING_DEPENDENCY 44083 else 44084 PKGHANDLER_COMMAND= 44085 44086 case $PKGHANDLER in 44087 apt-get) 44088 apt_help $MISSING_DEPENDENCY ;; 44089 yum) 44090 yum_help $MISSING_DEPENDENCY ;; 44091 port) 44092 port_help $MISSING_DEPENDENCY ;; 44093 pkgutil) 44094 pkgutil_help $MISSING_DEPENDENCY ;; 44095 pkgadd) 44096 pkgadd_help $MISSING_DEPENDENCY ;; 44097 esac 44098 44099 if test "x$PKGHANDLER_COMMAND" != x; then 44100 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44101 fi 44102 fi 44103 44104 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 44105 fi 44106 44107 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 44108 # defined in libawt_xawt. 44109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 44110 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 44111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44112 /* end confdefs.h. */ 44113 #include <X11/extensions/Xrender.h> 44114 int 44115 main () 44116 { 44117 XLinearGradient x; 44118 ; 44119 return 0; 44120 } 44121 _ACEOF 44122 if ac_fn_c_try_compile "$LINENO"; then : 44123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44124 $as_echo "yes" >&6; } 44125 else 44126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44127 $as_echo "no" >&6; } 44128 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 44129 fi 44130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 44131 44132 CFLAGS="$OLD_CFLAGS" 44133 ac_ext=cpp 44134 ac_cpp='$CXXCPP $CPPFLAGS' 44135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 44138 44139 fi # X11_NOT_NEEDED 44140 44141 44142 44143 44144 44145 44146 ############################################################################### 44147 # 44148 # The common unix printing system cups is used to print from java. 44149 # 44150 44151 # Check whether --with-cups was given. 44152 if test "${with_cups+set}" = set; then : 44153 withval=$with_cups; 44154 fi 44155 44156 44157 # Check whether --with-cups-include was given. 44158 if test "${with_cups_include+set}" = set; then : 44159 withval=$with_cups_include; 44160 fi 44161 44162 44163 if test "x$CUPS_NOT_NEEDED" = xyes; then 44164 if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then 44165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5 44166 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;} 44167 fi 44168 CUPS_CFLAGS= 44169 else 44170 CUPS_FOUND=no 44171 44172 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 44173 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 44174 fi 44175 44176 if test "x${with_cups}" != x; then 44177 CUPS_CFLAGS="-I${with_cups}/include" 44178 CUPS_FOUND=yes 44179 fi 44180 if test "x${with_cups_include}" != x; then 44181 CUPS_CFLAGS="-I${with_cups_include}" 44182 CUPS_FOUND=yes 44183 fi 44184 if test "x$CUPS_FOUND" = xno; then 44185 44186 44187 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 44188 # Source the builddeps file again, to make sure it uses the latest variables! 44189 . $builddepsfile 44190 # Look for a target and build machine specific resource! 44191 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 44192 if test "x$resource" = x; then 44193 # Ok, lets instead look for a target specific resource 44194 eval resource=\${builddep_cups_TARGET_${rewritten_target_var}} 44195 fi 44196 if test "x$resource" = x; then 44197 # Ok, lets instead look for a build specific resource 44198 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}} 44199 fi 44200 if test "x$resource" = x; then 44201 # Ok, lets instead look for a generic resource 44202 # (The cups comes from M4 and not the shell, thus no need for eval here.) 44203 resource=${builddep_cups} 44204 fi 44205 if test "x$resource" != x; then 44206 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5 44207 $as_echo "$as_me: Using builddeps $resource for cups" >&6;} 44208 # If the resource in the builddeps.conf file is an existing directory, 44209 # for example /java/linux/cups 44210 if test -d ${resource}; then 44211 depdir=${resource} 44212 else 44213 44214 # cups is for example mymodule 44215 # $resource is for example libs/general/libmymod_1_2_3.zip 44216 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 44217 # $with_builddeps_dir is for example /localhome/builddeps 44218 # depdir is the name of the variable into which we store the depdir, eg MYMOD 44219 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 44220 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 44221 filename=`basename $resource` 44222 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 44223 filebase=${filename%%.*} 44224 extension=${filename#*.} 44225 installdir=$with_builddeps_dir/$filebase 44226 if test ! -f $installdir/$filename.unpacked; then 44227 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5 44228 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;} 44229 if test ! -d $installdir; then 44230 mkdir -p $installdir 44231 fi 44232 if test ! -d $installdir; then 44233 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 44234 fi 44235 tmpfile=`mktemp $installdir/cups.XXXXXXXXX` 44236 touch $tmpfile 44237 if test ! -f $tmpfile; then 44238 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 44239 fi 44240 44241 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 44242 # $tmpfile is the local file name for the downloaded file. 44243 VALID_TOOL=no 44244 if test "x$BDEPS_FTP" = xwget; then 44245 VALID_TOOL=yes 44246 wget -O $tmpfile $with_builddeps_server/$resource 44247 fi 44248 if test "x$BDEPS_FTP" = xlftp; then 44249 VALID_TOOL=yes 44250 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 44251 fi 44252 if test "x$BDEPS_FTP" = xftp; then 44253 VALID_TOOL=yes 44254 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 44255 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 44256 FTPUSERPWD=${FTPSERVER%%@*} 44257 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 44258 FTPUSER=${userpwd%%:*} 44259 FTPPWD=${userpwd#*@} 44260 FTPSERVER=${FTPSERVER#*@} 44261 else 44262 FTPUSER=ftp 44263 FTPPWD=ftp 44264 fi 44265 # the "pass" command does not work on some 44266 # ftp clients (read ftp.exe) but if it works, 44267 # passive mode is better! 44268 ( \ 44269 echo "user $FTPUSER $FTPPWD" ; \ 44270 echo "pass" ; \ 44271 echo "bin" ; \ 44272 echo "get $FTPPATH $tmpfile" ; \ 44273 ) | ftp -in $FTPSERVER 44274 fi 44275 if test "x$VALID_TOOL" != xyes; then 44276 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 44277 fi 44278 44279 mv $tmpfile $installdir/$filename 44280 if test ! -s $installdir/$filename; then 44281 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 44282 fi 44283 case "$extension" in 44284 zip) echo "Unzipping $installdir/$filename..." 44285 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 44286 ;; 44287 tar.gz) echo "Untaring $installdir/$filename..." 44288 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44289 ;; 44290 tgz) echo "Untaring $installdir/$filename..." 44291 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44292 ;; 44293 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 44294 ;; 44295 esac 44296 fi 44297 if test -f $installdir/$filename.unpacked; then 44298 depdir=$installdir 44299 fi 44300 44301 fi 44302 # Source the builddeps file again, because in the previous command, the depdir 44303 # was updated to point at the current build dependency install directory. 44304 . $builddepsfile 44305 # Now extract variables from the builddeps.conf files. 44306 theroot=${builddep_cups_ROOT} 44307 thecflags=${builddep_cups_CFLAGS} 44308 thelibs=${builddep_cups_LIBS} 44309 if test "x$depdir" = x; then 44310 as_fn_error $? "Could not download build dependency cups" "$LINENO" 5 44311 fi 44312 CUPS=$depdir 44313 if test "x$theroot" != x; then 44314 CUPS="$theroot" 44315 fi 44316 if test "x$thecflags" != x; then 44317 CUPS_CFLAGS="$thecflags" 44318 fi 44319 if test "x$thelibs" != x; then 44320 CUPS_LIBS="$thelibs" 44321 fi 44322 CUPS_FOUND=yes 44323 44324 fi 44325 44326 fi 44327 44328 fi 44329 if test "x$CUPS_FOUND" = xno; then 44330 # Are the cups headers installed in the default /usr/include location? 44331 for ac_header in cups/cups.h cups/ppd.h 44332 do : 44333 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 44334 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 44335 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 44336 cat >>confdefs.h <<_ACEOF 44337 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 44338 _ACEOF 44339 44340 CUPS_FOUND=yes 44341 CUPS_CFLAGS= 44342 DEFAULT_CUPS=yes 44343 44344 44345 fi 44346 44347 done 44348 44349 fi 44350 if test "x$CUPS_FOUND" = xno; then 44351 # Getting nervous now? Lets poke around for standard Solaris third-party 44352 # package installation locations. 44353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 44354 $as_echo_n "checking for cups headers... " >&6; } 44355 if test -s $SYSROOT/opt/sfw/cups/include/cups/cups.h; then 44356 # An SFW package seems to be installed! 44357 CUPS_FOUND=yes 44358 CUPS_CFLAGS="-I$SYSROOT/opt/sfw/cups/include" 44359 elif test -s $SYSROOT/opt/csw/include/cups/cups.h; then 44360 # A CSW package seems to be installed! 44361 CUPS_FOUND=yes 44362 CUPS_CFLAGS="-I$SYSROOT/opt/csw/include" 44363 fi 44364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 44365 $as_echo "$CUPS_FOUND" >&6; } 44366 fi 44367 if test "x$CUPS_FOUND" = xno; then 44368 44369 # Print a helpful message on how to acquire the necessary build dependency. 44370 # cups is the help tag: freetype, cups, pulse, alsa etc 44371 MISSING_DEPENDENCY=cups 44372 44373 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44374 cygwin_help $MISSING_DEPENDENCY 44375 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44376 msys_help $MISSING_DEPENDENCY 44377 else 44378 PKGHANDLER_COMMAND= 44379 44380 case $PKGHANDLER in 44381 apt-get) 44382 apt_help $MISSING_DEPENDENCY ;; 44383 yum) 44384 yum_help $MISSING_DEPENDENCY ;; 44385 port) 44386 port_help $MISSING_DEPENDENCY ;; 44387 pkgutil) 44388 pkgutil_help $MISSING_DEPENDENCY ;; 44389 pkgadd) 44390 pkgadd_help $MISSING_DEPENDENCY ;; 44391 esac 44392 44393 if test "x$PKGHANDLER_COMMAND" != x; then 44394 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44395 fi 44396 fi 44397 44398 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 44399 fi 44400 fi 44401 44402 44403 44404 44405 44406 44407 ############################################################################### 44408 # 44409 # The ubiquitous freetype library is used to render fonts. 44410 # 44411 44412 # Check whether --with-freetype was given. 44413 if test "${with_freetype+set}" = set; then : 44414 withval=$with_freetype; 44415 fi 44416 44417 44418 # Check whether --with-freetype-include was given. 44419 if test "${with_freetype_include+set}" = set; then : 44420 withval=$with_freetype_include; 44421 fi 44422 44423 44424 # Check whether --with-freetype-lib was given. 44425 if test "${with_freetype_lib+set}" = set; then : 44426 withval=$with_freetype_lib; 44427 fi 44428 44429 44430 # Check whether --with-freetype-src was given. 44431 if test "${with_freetype_src+set}" = set; then : 44432 withval=$with_freetype_src; 44433 fi 44434 44435 # Check whether --enable-freetype-bundling was given. 44436 if test "${enable_freetype_bundling+set}" = set; then : 44437 enableval=$enable_freetype_bundling; 44438 fi 44439 44440 44441 # Need to specify explicitly since it needs to be overridden on some versions of macosx 44442 FREETYPE_BASE_NAME=freetype 44443 FREETYPE_CFLAGS= 44444 FREETYPE_LIBS= 44445 FREETYPE_BUNDLE_LIB_PATH= 44446 44447 if test "x$FREETYPE_NOT_NEEDED" = xyes; then 44448 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 44449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5 44450 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;} 44451 fi 44452 if test "x$enable_freetype_bundling" != x; then 44453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 44454 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 44455 fi 44456 else 44457 # freetype is needed to build; go get it! 44458 44459 BUNDLE_FREETYPE="$enable_freetype_bundling" 44460 44461 if test "x$with_freetype_src" != x; then 44462 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44463 # Try to build freetype if --with-freetype-src was given on Windows 44464 44465 FREETYPE_SRC_PATH="$with_freetype_src" 44466 BUILD_FREETYPE=yes 44467 44468 # Check if the freetype sources are acessible.. 44469 if ! test -d $FREETYPE_SRC_PATH; then 44470 { $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 44471 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can't find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 44472 BUILD_FREETYPE=no 44473 fi 44474 # ..and contain a vc2010 project file 44475 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 44476 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 44477 { $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 44478 $as_echo "$as_me: WARNING: Can't find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 44479 BUILD_FREETYPE=no 44480 fi 44481 # Now check if configure found a version of 'msbuild.exe' 44482 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 44483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find an msbuild.exe executable (you may try to install .NET 4.0) - ignoring --with-freetype-src" >&5 44484 $as_echo "$as_me: WARNING: Can not find an msbuild.exe executable (you may try to install .NET 4.0) - ignoring --with-freetype-src" >&2;} 44485 BUILD_FREETYPE=no 44486 fi 44487 44488 # Ready to go.. 44489 if test "x$BUILD_FREETYPE" = xyes; then 44490 44491 # msbuild requires trailing slashes for output directories 44492 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 44493 freetype_lib_path_unix="$freetype_lib_path" 44494 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 44495 44496 unix_path="$vcxproj_path" 44497 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44498 windows_path=`$CYGPATH -m "$unix_path"` 44499 vcxproj_path="$windows_path" 44500 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44501 windows_path=`cmd //c echo $unix_path` 44502 vcxproj_path="$windows_path" 44503 fi 44504 44505 44506 unix_path="$freetype_lib_path" 44507 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44508 windows_path=`$CYGPATH -m "$unix_path"` 44509 freetype_lib_path="$windows_path" 44510 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44511 windows_path=`cmd //c echo $unix_path` 44512 freetype_lib_path="$windows_path" 44513 fi 44514 44515 44516 unix_path="$freetype_obj_path" 44517 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44518 windows_path=`$CYGPATH -m "$unix_path"` 44519 freetype_obj_path="$windows_path" 44520 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44521 windows_path=`cmd //c echo $unix_path` 44522 freetype_obj_path="$windows_path" 44523 fi 44524 44525 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 44526 freetype_platform=x64 44527 else 44528 freetype_platform=win32 44529 fi 44530 44531 # The original freetype project file is for VS 2010 (i.e. 'v100'), 44532 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 44533 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 44534 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 44535 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 44536 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 44537 44538 # First we try to build the freetype.dll 44539 $ECHO -e "@echo off\n"\ 44540 "$MSBUILD $vcxproj_path "\ 44541 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 44542 "/p:Configuration=\"Release Multithreaded\" "\ 44543 "/p:Platform=$freetype_platform "\ 44544 "/p:ConfigurationType=DynamicLibrary "\ 44545 "/p:TargetName=freetype "\ 44546 "/p:OutDir=\"$freetype_lib_path\" "\ 44547 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 44548 cmd /c freetype.bat 44549 44550 if test -s "$freetype_lib_path_unix/freetype.dll"; then 44551 # If that succeeds we also build freetype.lib 44552 $ECHO -e "@echo off\n"\ 44553 "$MSBUILD $vcxproj_path "\ 44554 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 44555 "/p:Configuration=\"Release Multithreaded\" "\ 44556 "/p:Platform=$freetype_platform "\ 44557 "/p:ConfigurationType=StaticLibrary "\ 44558 "/p:TargetName=freetype "\ 44559 "/p:OutDir=\"$freetype_lib_path\" "\ 44560 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 44561 cmd /c freetype.bat 44562 44563 if test -s "$freetype_lib_path_unix/freetype.lib"; then 44564 # Once we build both, lib and dll, set freetype lib and include path appropriately 44565 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 44566 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 44567 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 44568 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 44569 else 44570 BUILD_FREETYPE=no 44571 fi 44572 else 44573 BUILD_FREETYPE=no 44574 fi 44575 fi 44576 44577 if test "x$BUILD_FREETYPE" = xyes; then 44578 # Okay, we built it. Check that it works. 44579 44580 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44581 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44582 METHOD="--with-freetype-src" 44583 44584 # Let's start with an optimistic view of the world :-) 44585 FOUND_FREETYPE=yes 44586 44587 # First look for the canonical freetype main include file ft2build.h. 44588 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44589 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 44590 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 44591 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44592 # Fail. 44593 FOUND_FREETYPE=no 44594 fi 44595 fi 44596 44597 if test "x$FOUND_FREETYPE" = xyes; then 44598 # Include file found, let's continue the sanity check. 44599 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44600 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44601 44602 # Reset to default value 44603 FREETYPE_BASE_NAME=freetype 44604 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44605 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44606 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 44607 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 44608 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 44609 # for the .6 version explicitly. 44610 FREETYPE_BASE_NAME=freetype.6 44611 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44612 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 44613 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 44614 else 44615 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44616 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44617 FOUND_FREETYPE=no 44618 fi 44619 else 44620 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44621 # On Windows, we will need both .lib and .dll file. 44622 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 44623 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 44624 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 44625 FOUND_FREETYPE=no 44626 fi 44627 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 44628 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 44629 # Found lib in isa dir, use that instead. 44630 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 44631 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 44632 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 44633 fi 44634 fi 44635 fi 44636 44637 if test "x$FOUND_FREETYPE" = xyes; then 44638 44639 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44640 44641 # Input might be given as Windows format, start by converting to 44642 # unix format. 44643 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44644 new_path=`$CYGPATH -u "$path"` 44645 44646 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44647 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44648 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44649 # "foo.exe" is OK but "foo" is an error. 44650 # 44651 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44652 # It is also a way to make sure we got the proper file name for the real test later on. 44653 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44654 if test "x$test_shortpath" = x; then 44655 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44656 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44657 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44658 fi 44659 44660 # Call helper function which possibly converts this using DOS-style short mode. 44661 # If so, the updated path is stored in $new_path. 44662 44663 input_path="$new_path" 44664 # Check if we need to convert this using DOS-style short mode. If the path 44665 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44666 # take no chances and rewrite it. 44667 # Note: m4 eats our [], so we need to use [ and ] instead. 44668 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44669 if test "x$has_forbidden_chars" != x; then 44670 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44671 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44672 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44673 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44674 # Going to short mode and back again did indeed matter. Since short mode is 44675 # case insensitive, let's make it lowercase to improve readability. 44676 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44677 # Now convert it back to Unix-stile (cygpath) 44678 input_path=`$CYGPATH -u "$shortmode_path"` 44679 new_path="$input_path" 44680 fi 44681 fi 44682 44683 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44684 if test "x$test_cygdrive_prefix" = x; then 44685 # As a simple fix, exclude /usr/bin since it's not a real path. 44686 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44687 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44688 # a path prefixed by /cygdrive for fixpath to work. 44689 new_path="$CYGWIN_ROOT_PATH$input_path" 44690 fi 44691 fi 44692 44693 44694 if test "x$path" != "x$new_path"; then 44695 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44696 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44697 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44698 fi 44699 44700 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44701 44702 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44703 has_colon=`$ECHO $path | $GREP ^.:` 44704 new_path="$path" 44705 if test "x$has_colon" = x; then 44706 # Not in mixed or Windows style, start by that. 44707 new_path=`cmd //c echo $path` 44708 fi 44709 44710 44711 input_path="$new_path" 44712 # Check if we need to convert this using DOS-style short mode. If the path 44713 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44714 # take no chances and rewrite it. 44715 # Note: m4 eats our [], so we need to use [ and ] instead. 44716 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44717 if test "x$has_forbidden_chars" != x; then 44718 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44719 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44720 fi 44721 44722 44723 windows_path="$new_path" 44724 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44725 unix_path=`$CYGPATH -u "$windows_path"` 44726 new_path="$unix_path" 44727 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44728 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44729 new_path="$unix_path" 44730 fi 44731 44732 if test "x$path" != "x$new_path"; then 44733 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44734 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44735 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44736 fi 44737 44738 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44739 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44740 44741 else 44742 # We're on a posix platform. Hooray! :) 44743 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44744 has_space=`$ECHO "$path" | $GREP " "` 44745 if test "x$has_space" != x; then 44746 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44747 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44748 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44749 fi 44750 44751 # Use eval to expand a potential ~ 44752 eval path="$path" 44753 if test ! -f "$path" && test ! -d "$path"; then 44754 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44755 fi 44756 44757 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44758 fi 44759 44760 44761 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44762 44763 # Input might be given as Windows format, start by converting to 44764 # unix format. 44765 path="$POTENTIAL_FREETYPE_LIB_PATH" 44766 new_path=`$CYGPATH -u "$path"` 44767 44768 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44769 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44770 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44771 # "foo.exe" is OK but "foo" is an error. 44772 # 44773 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44774 # It is also a way to make sure we got the proper file name for the real test later on. 44775 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44776 if test "x$test_shortpath" = x; then 44777 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44778 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44779 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44780 fi 44781 44782 # Call helper function which possibly converts this using DOS-style short mode. 44783 # If so, the updated path is stored in $new_path. 44784 44785 input_path="$new_path" 44786 # Check if we need to convert this using DOS-style short mode. If the path 44787 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44788 # take no chances and rewrite it. 44789 # Note: m4 eats our [], so we need to use [ and ] instead. 44790 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44791 if test "x$has_forbidden_chars" != x; then 44792 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44793 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44794 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44795 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44796 # Going to short mode and back again did indeed matter. Since short mode is 44797 # case insensitive, let's make it lowercase to improve readability. 44798 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44799 # Now convert it back to Unix-stile (cygpath) 44800 input_path=`$CYGPATH -u "$shortmode_path"` 44801 new_path="$input_path" 44802 fi 44803 fi 44804 44805 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44806 if test "x$test_cygdrive_prefix" = x; then 44807 # As a simple fix, exclude /usr/bin since it's not a real path. 44808 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44809 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44810 # a path prefixed by /cygdrive for fixpath to work. 44811 new_path="$CYGWIN_ROOT_PATH$input_path" 44812 fi 44813 fi 44814 44815 44816 if test "x$path" != "x$new_path"; then 44817 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44818 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44819 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44820 fi 44821 44822 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44823 44824 path="$POTENTIAL_FREETYPE_LIB_PATH" 44825 has_colon=`$ECHO $path | $GREP ^.:` 44826 new_path="$path" 44827 if test "x$has_colon" = x; then 44828 # Not in mixed or Windows style, start by that. 44829 new_path=`cmd //c echo $path` 44830 fi 44831 44832 44833 input_path="$new_path" 44834 # Check if we need to convert this using DOS-style short mode. If the path 44835 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44836 # take no chances and rewrite it. 44837 # Note: m4 eats our [], so we need to use [ and ] instead. 44838 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44839 if test "x$has_forbidden_chars" != x; then 44840 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44841 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44842 fi 44843 44844 44845 windows_path="$new_path" 44846 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44847 unix_path=`$CYGPATH -u "$windows_path"` 44848 new_path="$unix_path" 44849 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44850 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44851 new_path="$unix_path" 44852 fi 44853 44854 if test "x$path" != "x$new_path"; then 44855 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44856 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44857 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44858 fi 44859 44860 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44861 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44862 44863 else 44864 # We're on a posix platform. Hooray! :) 44865 path="$POTENTIAL_FREETYPE_LIB_PATH" 44866 has_space=`$ECHO "$path" | $GREP " "` 44867 if test "x$has_space" != x; then 44868 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44869 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44870 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44871 fi 44872 44873 # Use eval to expand a potential ~ 44874 eval path="$path" 44875 if test ! -f "$path" && test ! -d "$path"; then 44876 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44877 fi 44878 44879 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44880 fi 44881 44882 44883 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44885 $as_echo_n "checking for freetype includes... " >&6; } 44886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44887 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44888 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44890 $as_echo_n "checking for freetype libraries... " >&6; } 44891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44892 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44893 fi 44894 44895 if test "x$FOUND_FREETYPE" != xyes; then 44896 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 44897 fi 44898 else 44899 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 44900 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 44901 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 44902 fi 44903 else 44904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 44905 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 44906 fi 44907 fi 44908 44909 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 44910 # User has specified settings 44911 44912 if test "x$BUNDLE_FREETYPE" = x; then 44913 # If not specified, default is to bundle freetype 44914 BUNDLE_FREETYPE=yes 44915 fi 44916 44917 if test "x$with_freetype" != x; then 44918 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 44919 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 44920 fi 44921 44922 # Allow --with-freetype-lib and --with-freetype-include to override 44923 if test "x$with_freetype_include" != x; then 44924 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 44925 fi 44926 if test "x$with_freetype_lib" != x; then 44927 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 44928 fi 44929 44930 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 44931 # Okay, we got it. Check that it works. 44932 44933 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44934 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44935 METHOD="--with-freetype" 44936 44937 # Let's start with an optimistic view of the world :-) 44938 FOUND_FREETYPE=yes 44939 44940 # First look for the canonical freetype main include file ft2build.h. 44941 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44942 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 44943 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 44944 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44945 # Fail. 44946 FOUND_FREETYPE=no 44947 fi 44948 fi 44949 44950 if test "x$FOUND_FREETYPE" = xyes; then 44951 # Include file found, let's continue the sanity check. 44952 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44953 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44954 44955 # Reset to default value 44956 FREETYPE_BASE_NAME=freetype 44957 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44958 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44959 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 44960 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 44961 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 44962 # for the .6 version explicitly. 44963 FREETYPE_BASE_NAME=freetype.6 44964 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44965 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 44966 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 44967 else 44968 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44969 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44970 FOUND_FREETYPE=no 44971 fi 44972 else 44973 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44974 # On Windows, we will need both .lib and .dll file. 44975 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 44976 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 44977 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 44978 FOUND_FREETYPE=no 44979 fi 44980 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 44981 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 44982 # Found lib in isa dir, use that instead. 44983 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 44984 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 44985 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 44986 fi 44987 fi 44988 fi 44989 44990 if test "x$FOUND_FREETYPE" = xyes; then 44991 44992 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44993 44994 # Input might be given as Windows format, start by converting to 44995 # unix format. 44996 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44997 new_path=`$CYGPATH -u "$path"` 44998 44999 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45000 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45001 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45002 # "foo.exe" is OK but "foo" is an error. 45003 # 45004 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45005 # It is also a way to make sure we got the proper file name for the real test later on. 45006 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45007 if test "x$test_shortpath" = x; then 45008 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45009 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45010 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45011 fi 45012 45013 # Call helper function which possibly converts this using DOS-style short mode. 45014 # If so, the updated path is stored in $new_path. 45015 45016 input_path="$new_path" 45017 # Check if we need to convert this using DOS-style short mode. If the path 45018 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45019 # take no chances and rewrite it. 45020 # Note: m4 eats our [], so we need to use [ and ] instead. 45021 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45022 if test "x$has_forbidden_chars" != x; then 45023 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45024 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45025 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45026 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45027 # Going to short mode and back again did indeed matter. Since short mode is 45028 # case insensitive, let's make it lowercase to improve readability. 45029 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45030 # Now convert it back to Unix-stile (cygpath) 45031 input_path=`$CYGPATH -u "$shortmode_path"` 45032 new_path="$input_path" 45033 fi 45034 fi 45035 45036 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45037 if test "x$test_cygdrive_prefix" = x; then 45038 # As a simple fix, exclude /usr/bin since it's not a real path. 45039 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45040 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45041 # a path prefixed by /cygdrive for fixpath to work. 45042 new_path="$CYGWIN_ROOT_PATH$input_path" 45043 fi 45044 fi 45045 45046 45047 if test "x$path" != "x$new_path"; then 45048 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45049 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45050 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45051 fi 45052 45053 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45054 45055 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45056 has_colon=`$ECHO $path | $GREP ^.:` 45057 new_path="$path" 45058 if test "x$has_colon" = x; then 45059 # Not in mixed or Windows style, start by that. 45060 new_path=`cmd //c echo $path` 45061 fi 45062 45063 45064 input_path="$new_path" 45065 # Check if we need to convert this using DOS-style short mode. If the path 45066 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45067 # take no chances and rewrite it. 45068 # Note: m4 eats our [], so we need to use [ and ] instead. 45069 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45070 if test "x$has_forbidden_chars" != x; then 45071 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45072 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45073 fi 45074 45075 45076 windows_path="$new_path" 45077 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45078 unix_path=`$CYGPATH -u "$windows_path"` 45079 new_path="$unix_path" 45080 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45081 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45082 new_path="$unix_path" 45083 fi 45084 45085 if test "x$path" != "x$new_path"; then 45086 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45087 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45088 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45089 fi 45090 45091 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45092 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45093 45094 else 45095 # We're on a posix platform. Hooray! :) 45096 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45097 has_space=`$ECHO "$path" | $GREP " "` 45098 if test "x$has_space" != x; then 45099 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45100 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45101 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45102 fi 45103 45104 # Use eval to expand a potential ~ 45105 eval path="$path" 45106 if test ! -f "$path" && test ! -d "$path"; then 45107 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45108 fi 45109 45110 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45111 fi 45112 45113 45114 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45115 45116 # Input might be given as Windows format, start by converting to 45117 # unix format. 45118 path="$POTENTIAL_FREETYPE_LIB_PATH" 45119 new_path=`$CYGPATH -u "$path"` 45120 45121 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45122 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45123 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45124 # "foo.exe" is OK but "foo" is an error. 45125 # 45126 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45127 # It is also a way to make sure we got the proper file name for the real test later on. 45128 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45129 if test "x$test_shortpath" = x; then 45130 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45131 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45132 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45133 fi 45134 45135 # Call helper function which possibly converts this using DOS-style short mode. 45136 # If so, the updated path is stored in $new_path. 45137 45138 input_path="$new_path" 45139 # Check if we need to convert this using DOS-style short mode. If the path 45140 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45141 # take no chances and rewrite it. 45142 # Note: m4 eats our [], so we need to use [ and ] instead. 45143 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45144 if test "x$has_forbidden_chars" != x; then 45145 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45146 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45147 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45148 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45149 # Going to short mode and back again did indeed matter. Since short mode is 45150 # case insensitive, let's make it lowercase to improve readability. 45151 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45152 # Now convert it back to Unix-stile (cygpath) 45153 input_path=`$CYGPATH -u "$shortmode_path"` 45154 new_path="$input_path" 45155 fi 45156 fi 45157 45158 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45159 if test "x$test_cygdrive_prefix" = x; then 45160 # As a simple fix, exclude /usr/bin since it's not a real path. 45161 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45162 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45163 # a path prefixed by /cygdrive for fixpath to work. 45164 new_path="$CYGWIN_ROOT_PATH$input_path" 45165 fi 45166 fi 45167 45168 45169 if test "x$path" != "x$new_path"; then 45170 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45171 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45172 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45173 fi 45174 45175 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45176 45177 path="$POTENTIAL_FREETYPE_LIB_PATH" 45178 has_colon=`$ECHO $path | $GREP ^.:` 45179 new_path="$path" 45180 if test "x$has_colon" = x; then 45181 # Not in mixed or Windows style, start by that. 45182 new_path=`cmd //c echo $path` 45183 fi 45184 45185 45186 input_path="$new_path" 45187 # Check if we need to convert this using DOS-style short mode. If the path 45188 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45189 # take no chances and rewrite it. 45190 # Note: m4 eats our [], so we need to use [ and ] instead. 45191 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45192 if test "x$has_forbidden_chars" != x; then 45193 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45194 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45195 fi 45196 45197 45198 windows_path="$new_path" 45199 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45200 unix_path=`$CYGPATH -u "$windows_path"` 45201 new_path="$unix_path" 45202 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45203 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45204 new_path="$unix_path" 45205 fi 45206 45207 if test "x$path" != "x$new_path"; then 45208 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45209 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45210 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45211 fi 45212 45213 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45214 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45215 45216 else 45217 # We're on a posix platform. Hooray! :) 45218 path="$POTENTIAL_FREETYPE_LIB_PATH" 45219 has_space=`$ECHO "$path" | $GREP " "` 45220 if test "x$has_space" != x; then 45221 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45222 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45223 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45224 fi 45225 45226 # Use eval to expand a potential ~ 45227 eval path="$path" 45228 if test ! -f "$path" && test ! -d "$path"; then 45229 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45230 fi 45231 45232 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45233 fi 45234 45235 45236 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45238 $as_echo_n "checking for freetype includes... " >&6; } 45239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45240 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45241 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45243 $as_echo_n "checking for freetype libraries... " >&6; } 45244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45245 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45246 fi 45247 45248 if test "x$FOUND_FREETYPE" != xyes; then 45249 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 45250 fi 45251 else 45252 # User specified only one of lib or include. This is an error. 45253 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 45254 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 45255 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 45256 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 45257 else 45258 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 45259 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 45260 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 45261 fi 45262 fi 45263 else 45264 # User did not specify settings, but we need freetype. Try to locate it. 45265 45266 if test "x$BUNDLE_FREETYPE" = x; then 45267 # If not specified, default is to bundle freetype only on windows 45268 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45269 BUNDLE_FREETYPE=yes 45270 else 45271 BUNDLE_FREETYPE=no 45272 fi 45273 fi 45274 45275 if test "x$FOUND_FREETYPE" != xyes; then 45276 # Check builddeps 45277 45278 45279 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 45280 # Source the builddeps file again, to make sure it uses the latest variables! 45281 . $builddepsfile 45282 # Look for a target and build machine specific resource! 45283 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 45284 if test "x$resource" = x; then 45285 # Ok, lets instead look for a target specific resource 45286 eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}} 45287 fi 45288 if test "x$resource" = x; then 45289 # Ok, lets instead look for a build specific resource 45290 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}} 45291 fi 45292 if test "x$resource" = x; then 45293 # Ok, lets instead look for a generic resource 45294 # (The freetype2 comes from M4 and not the shell, thus no need for eval here.) 45295 resource=${builddep_freetype2} 45296 fi 45297 if test "x$resource" != x; then 45298 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5 45299 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;} 45300 # If the resource in the builddeps.conf file is an existing directory, 45301 # for example /java/linux/cups 45302 if test -d ${resource}; then 45303 depdir=${resource} 45304 else 45305 45306 # freetype2 is for example mymodule 45307 # $resource is for example libs/general/libmymod_1_2_3.zip 45308 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 45309 # $with_builddeps_dir is for example /localhome/builddeps 45310 # depdir is the name of the variable into which we store the depdir, eg MYMOD 45311 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 45312 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 45313 filename=`basename $resource` 45314 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 45315 filebase=${filename%%.*} 45316 extension=${filename#*.} 45317 installdir=$with_builddeps_dir/$filebase 45318 if test ! -f $installdir/$filename.unpacked; then 45319 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5 45320 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;} 45321 if test ! -d $installdir; then 45322 mkdir -p $installdir 45323 fi 45324 if test ! -d $installdir; then 45325 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 45326 fi 45327 tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX` 45328 touch $tmpfile 45329 if test ! -f $tmpfile; then 45330 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 45331 fi 45332 45333 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 45334 # $tmpfile is the local file name for the downloaded file. 45335 VALID_TOOL=no 45336 if test "x$BDEPS_FTP" = xwget; then 45337 VALID_TOOL=yes 45338 wget -O $tmpfile $with_builddeps_server/$resource 45339 fi 45340 if test "x$BDEPS_FTP" = xlftp; then 45341 VALID_TOOL=yes 45342 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 45343 fi 45344 if test "x$BDEPS_FTP" = xftp; then 45345 VALID_TOOL=yes 45346 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 45347 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 45348 FTPUSERPWD=${FTPSERVER%%@*} 45349 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 45350 FTPUSER=${userpwd%%:*} 45351 FTPPWD=${userpwd#*@} 45352 FTPSERVER=${FTPSERVER#*@} 45353 else 45354 FTPUSER=ftp 45355 FTPPWD=ftp 45356 fi 45357 # the "pass" command does not work on some 45358 # ftp clients (read ftp.exe) but if it works, 45359 # passive mode is better! 45360 ( \ 45361 echo "user $FTPUSER $FTPPWD" ; \ 45362 echo "pass" ; \ 45363 echo "bin" ; \ 45364 echo "get $FTPPATH $tmpfile" ; \ 45365 ) | ftp -in $FTPSERVER 45366 fi 45367 if test "x$VALID_TOOL" != xyes; then 45368 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 45369 fi 45370 45371 mv $tmpfile $installdir/$filename 45372 if test ! -s $installdir/$filename; then 45373 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 45374 fi 45375 case "$extension" in 45376 zip) echo "Unzipping $installdir/$filename..." 45377 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 45378 ;; 45379 tar.gz) echo "Untaring $installdir/$filename..." 45380 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 45381 ;; 45382 tgz) echo "Untaring $installdir/$filename..." 45383 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 45384 ;; 45385 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 45386 ;; 45387 esac 45388 fi 45389 if test -f $installdir/$filename.unpacked; then 45390 depdir=$installdir 45391 fi 45392 45393 fi 45394 # Source the builddeps file again, because in the previous command, the depdir 45395 # was updated to point at the current build dependency install directory. 45396 . $builddepsfile 45397 # Now extract variables from the builddeps.conf files. 45398 theroot=${builddep_freetype2_ROOT} 45399 thecflags=${builddep_freetype2_CFLAGS} 45400 thelibs=${builddep_freetype2_LIBS} 45401 if test "x$depdir" = x; then 45402 as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5 45403 fi 45404 FREETYPE=$depdir 45405 if test "x$theroot" != x; then 45406 FREETYPE="$theroot" 45407 fi 45408 if test "x$thecflags" != x; then 45409 FREETYPE_CFLAGS="$thecflags" 45410 fi 45411 if test "x$thelibs" != x; then 45412 FREETYPE_LIBS="$thelibs" 45413 fi 45414 FOUND_FREETYPE=yes 45415 else FOUND_FREETYPE=no 45416 45417 fi 45418 else FOUND_FREETYPE=no 45419 45420 fi 45421 45422 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 45423 if test "x$FOUND_FREETYPE" = xyes; then 45424 if test "x$BUNDLE_FREETYPE" = xyes; then 45425 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using builddeps, but ignoring since we can not bundle that" >&5 45426 $as_echo "$as_me: Found freetype using builddeps, but ignoring since we can not bundle that" >&6;} 45427 FOUND_FREETYPE=no 45428 else 45429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 45430 $as_echo_n "checking for freetype... " >&6; } 45431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using builddeps)" >&5 45432 $as_echo "yes (using builddeps)" >&6; } 45433 fi 45434 fi 45435 fi 45436 45437 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 45438 if test "x$SYSROOT" = x; then 45439 if test "x$FOUND_FREETYPE" != xyes; then 45440 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 45441 if test "x$PKG_CONFIG" != x; then 45442 45443 pkg_failed=no 45444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 45445 $as_echo_n "checking for FREETYPE... " >&6; } 45446 45447 if test -n "$FREETYPE_CFLAGS"; then 45448 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 45449 elif test -n "$PKG_CONFIG"; then 45450 if test -n "$PKG_CONFIG" && \ 45451 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 45452 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 45453 ac_status=$? 45454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45455 test $ac_status = 0; }; then 45456 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 45457 else 45458 pkg_failed=yes 45459 fi 45460 else 45461 pkg_failed=untried 45462 fi 45463 if test -n "$FREETYPE_LIBS"; then 45464 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 45465 elif test -n "$PKG_CONFIG"; then 45466 if test -n "$PKG_CONFIG" && \ 45467 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 45468 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 45469 ac_status=$? 45470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45471 test $ac_status = 0; }; then 45472 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 45473 else 45474 pkg_failed=yes 45475 fi 45476 else 45477 pkg_failed=untried 45478 fi 45479 45480 45481 45482 if test $pkg_failed = yes; then 45483 45484 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 45485 _pkg_short_errors_supported=yes 45486 else 45487 _pkg_short_errors_supported=no 45488 fi 45489 if test $_pkg_short_errors_supported = yes; then 45490 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 45491 else 45492 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 45493 fi 45494 # Put the nasty error message in config.log where it belongs 45495 echo "$FREETYPE_PKG_ERRORS" >&5 45496 45497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45498 $as_echo "no" >&6; } 45499 FOUND_FREETYPE=no 45500 elif test $pkg_failed = untried; then 45501 FOUND_FREETYPE=no 45502 else 45503 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 45504 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 45505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45506 $as_echo "yes" >&6; } 45507 FOUND_FREETYPE=yes 45508 fi 45509 if test "x$FOUND_FREETYPE" = xyes; then 45510 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 45511 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 45512 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 45513 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 45514 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 45515 fi 45516 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 45517 if test "x$BUNDLE_FREETYPE" = xyes; then 45518 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 45519 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 45520 FOUND_FREETYPE=no 45521 else 45522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 45523 $as_echo_n "checking for freetype... " >&6; } 45524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 45525 $as_echo "yes (using pkg-config)" >&6; } 45526 fi 45527 fi 45528 fi 45529 fi 45530 fi 45531 45532 if test "x$FOUND_FREETYPE" != xyes; then 45533 # Check in well-known locations 45534 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45535 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 45536 45537 windows_path="$FREETYPE_BASE_DIR" 45538 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45539 unix_path=`$CYGPATH -u "$windows_path"` 45540 FREETYPE_BASE_DIR="$unix_path" 45541 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45542 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45543 FREETYPE_BASE_DIR="$unix_path" 45544 fi 45545 45546 45547 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45548 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45549 METHOD="well-known location" 45550 45551 # Let's start with an optimistic view of the world :-) 45552 FOUND_FREETYPE=yes 45553 45554 # First look for the canonical freetype main include file ft2build.h. 45555 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45556 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 45557 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 45558 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45559 # Fail. 45560 FOUND_FREETYPE=no 45561 fi 45562 fi 45563 45564 if test "x$FOUND_FREETYPE" = xyes; then 45565 # Include file found, let's continue the sanity check. 45566 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45567 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45568 45569 # Reset to default value 45570 FREETYPE_BASE_NAME=freetype 45571 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45572 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45573 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 45574 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 45575 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 45576 # for the .6 version explicitly. 45577 FREETYPE_BASE_NAME=freetype.6 45578 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45579 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 45580 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 45581 else 45582 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45583 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45584 FOUND_FREETYPE=no 45585 fi 45586 else 45587 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45588 # On Windows, we will need both .lib and .dll file. 45589 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 45590 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 45591 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 45592 FOUND_FREETYPE=no 45593 fi 45594 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 45595 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 45596 # Found lib in isa dir, use that instead. 45597 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 45598 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 45599 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 45600 fi 45601 fi 45602 fi 45603 45604 if test "x$FOUND_FREETYPE" = xyes; then 45605 45606 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45607 45608 # Input might be given as Windows format, start by converting to 45609 # unix format. 45610 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45611 new_path=`$CYGPATH -u "$path"` 45612 45613 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45614 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45615 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45616 # "foo.exe" is OK but "foo" is an error. 45617 # 45618 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45619 # It is also a way to make sure we got the proper file name for the real test later on. 45620 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45621 if test "x$test_shortpath" = x; then 45622 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45623 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45624 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45625 fi 45626 45627 # Call helper function which possibly converts this using DOS-style short mode. 45628 # If so, the updated path is stored in $new_path. 45629 45630 input_path="$new_path" 45631 # Check if we need to convert this using DOS-style short mode. If the path 45632 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45633 # take no chances and rewrite it. 45634 # Note: m4 eats our [], so we need to use [ and ] instead. 45635 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45636 if test "x$has_forbidden_chars" != x; then 45637 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45638 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45639 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45640 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45641 # Going to short mode and back again did indeed matter. Since short mode is 45642 # case insensitive, let's make it lowercase to improve readability. 45643 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45644 # Now convert it back to Unix-stile (cygpath) 45645 input_path=`$CYGPATH -u "$shortmode_path"` 45646 new_path="$input_path" 45647 fi 45648 fi 45649 45650 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45651 if test "x$test_cygdrive_prefix" = x; then 45652 # As a simple fix, exclude /usr/bin since it's not a real path. 45653 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45654 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45655 # a path prefixed by /cygdrive for fixpath to work. 45656 new_path="$CYGWIN_ROOT_PATH$input_path" 45657 fi 45658 fi 45659 45660 45661 if test "x$path" != "x$new_path"; then 45662 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45663 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45664 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45665 fi 45666 45667 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45668 45669 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45670 has_colon=`$ECHO $path | $GREP ^.:` 45671 new_path="$path" 45672 if test "x$has_colon" = x; then 45673 # Not in mixed or Windows style, start by that. 45674 new_path=`cmd //c echo $path` 45675 fi 45676 45677 45678 input_path="$new_path" 45679 # Check if we need to convert this using DOS-style short mode. If the path 45680 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45681 # take no chances and rewrite it. 45682 # Note: m4 eats our [], so we need to use [ and ] instead. 45683 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45684 if test "x$has_forbidden_chars" != x; then 45685 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45686 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45687 fi 45688 45689 45690 windows_path="$new_path" 45691 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45692 unix_path=`$CYGPATH -u "$windows_path"` 45693 new_path="$unix_path" 45694 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45695 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45696 new_path="$unix_path" 45697 fi 45698 45699 if test "x$path" != "x$new_path"; then 45700 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45701 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45702 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45703 fi 45704 45705 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45706 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45707 45708 else 45709 # We're on a posix platform. Hooray! :) 45710 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45711 has_space=`$ECHO "$path" | $GREP " "` 45712 if test "x$has_space" != x; then 45713 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45714 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45715 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45716 fi 45717 45718 # Use eval to expand a potential ~ 45719 eval path="$path" 45720 if test ! -f "$path" && test ! -d "$path"; then 45721 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45722 fi 45723 45724 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45725 fi 45726 45727 45728 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45729 45730 # Input might be given as Windows format, start by converting to 45731 # unix format. 45732 path="$POTENTIAL_FREETYPE_LIB_PATH" 45733 new_path=`$CYGPATH -u "$path"` 45734 45735 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45736 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45737 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45738 # "foo.exe" is OK but "foo" is an error. 45739 # 45740 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45741 # It is also a way to make sure we got the proper file name for the real test later on. 45742 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45743 if test "x$test_shortpath" = x; then 45744 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45745 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45746 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45747 fi 45748 45749 # Call helper function which possibly converts this using DOS-style short mode. 45750 # If so, the updated path is stored in $new_path. 45751 45752 input_path="$new_path" 45753 # Check if we need to convert this using DOS-style short mode. If the path 45754 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45755 # take no chances and rewrite it. 45756 # Note: m4 eats our [], so we need to use [ and ] instead. 45757 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45758 if test "x$has_forbidden_chars" != x; then 45759 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45760 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45761 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45762 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45763 # Going to short mode and back again did indeed matter. Since short mode is 45764 # case insensitive, let's make it lowercase to improve readability. 45765 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45766 # Now convert it back to Unix-stile (cygpath) 45767 input_path=`$CYGPATH -u "$shortmode_path"` 45768 new_path="$input_path" 45769 fi 45770 fi 45771 45772 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45773 if test "x$test_cygdrive_prefix" = x; then 45774 # As a simple fix, exclude /usr/bin since it's not a real path. 45775 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45776 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45777 # a path prefixed by /cygdrive for fixpath to work. 45778 new_path="$CYGWIN_ROOT_PATH$input_path" 45779 fi 45780 fi 45781 45782 45783 if test "x$path" != "x$new_path"; then 45784 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45785 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45786 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45787 fi 45788 45789 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45790 45791 path="$POTENTIAL_FREETYPE_LIB_PATH" 45792 has_colon=`$ECHO $path | $GREP ^.:` 45793 new_path="$path" 45794 if test "x$has_colon" = x; then 45795 # Not in mixed or Windows style, start by that. 45796 new_path=`cmd //c echo $path` 45797 fi 45798 45799 45800 input_path="$new_path" 45801 # Check if we need to convert this using DOS-style short mode. If the path 45802 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45803 # take no chances and rewrite it. 45804 # Note: m4 eats our [], so we need to use [ and ] instead. 45805 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45806 if test "x$has_forbidden_chars" != x; then 45807 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45808 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45809 fi 45810 45811 45812 windows_path="$new_path" 45813 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45814 unix_path=`$CYGPATH -u "$windows_path"` 45815 new_path="$unix_path" 45816 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45817 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45818 new_path="$unix_path" 45819 fi 45820 45821 if test "x$path" != "x$new_path"; then 45822 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45823 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45824 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45825 fi 45826 45827 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45828 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45829 45830 else 45831 # We're on a posix platform. Hooray! :) 45832 path="$POTENTIAL_FREETYPE_LIB_PATH" 45833 has_space=`$ECHO "$path" | $GREP " "` 45834 if test "x$has_space" != x; then 45835 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45836 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45837 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45838 fi 45839 45840 # Use eval to expand a potential ~ 45841 eval path="$path" 45842 if test ! -f "$path" && test ! -d "$path"; then 45843 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45844 fi 45845 45846 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45847 fi 45848 45849 45850 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45852 $as_echo_n "checking for freetype includes... " >&6; } 45853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45854 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45855 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45857 $as_echo_n "checking for freetype libraries... " >&6; } 45858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45859 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45860 fi 45861 45862 if test "x$FOUND_FREETYPE" != xyes; then 45863 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 45864 45865 windows_path="$FREETYPE_BASE_DIR" 45866 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45867 unix_path=`$CYGPATH -u "$windows_path"` 45868 FREETYPE_BASE_DIR="$unix_path" 45869 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45870 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45871 FREETYPE_BASE_DIR="$unix_path" 45872 fi 45873 45874 45875 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45876 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45877 METHOD="well-known location" 45878 45879 # Let's start with an optimistic view of the world :-) 45880 FOUND_FREETYPE=yes 45881 45882 # First look for the canonical freetype main include file ft2build.h. 45883 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45884 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 45885 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 45886 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45887 # Fail. 45888 FOUND_FREETYPE=no 45889 fi 45890 fi 45891 45892 if test "x$FOUND_FREETYPE" = xyes; then 45893 # Include file found, let's continue the sanity check. 45894 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45895 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45896 45897 # Reset to default value 45898 FREETYPE_BASE_NAME=freetype 45899 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45900 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45901 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 45902 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 45903 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 45904 # for the .6 version explicitly. 45905 FREETYPE_BASE_NAME=freetype.6 45906 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45907 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 45908 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 45909 else 45910 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45911 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45912 FOUND_FREETYPE=no 45913 fi 45914 else 45915 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45916 # On Windows, we will need both .lib and .dll file. 45917 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 45918 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 45919 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 45920 FOUND_FREETYPE=no 45921 fi 45922 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 45923 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 45924 # Found lib in isa dir, use that instead. 45925 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 45926 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 45927 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 45928 fi 45929 fi 45930 fi 45931 45932 if test "x$FOUND_FREETYPE" = xyes; then 45933 45934 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45935 45936 # Input might be given as Windows format, start by converting to 45937 # unix format. 45938 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45939 new_path=`$CYGPATH -u "$path"` 45940 45941 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45942 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45943 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45944 # "foo.exe" is OK but "foo" is an error. 45945 # 45946 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45947 # It is also a way to make sure we got the proper file name for the real test later on. 45948 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45949 if test "x$test_shortpath" = x; then 45950 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45951 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45952 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45953 fi 45954 45955 # Call helper function which possibly converts this using DOS-style short mode. 45956 # If so, the updated path is stored in $new_path. 45957 45958 input_path="$new_path" 45959 # Check if we need to convert this using DOS-style short mode. If the path 45960 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45961 # take no chances and rewrite it. 45962 # Note: m4 eats our [], so we need to use [ and ] instead. 45963 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45964 if test "x$has_forbidden_chars" != x; then 45965 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45966 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45967 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45968 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45969 # Going to short mode and back again did indeed matter. Since short mode is 45970 # case insensitive, let's make it lowercase to improve readability. 45971 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45972 # Now convert it back to Unix-stile (cygpath) 45973 input_path=`$CYGPATH -u "$shortmode_path"` 45974 new_path="$input_path" 45975 fi 45976 fi 45977 45978 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45979 if test "x$test_cygdrive_prefix" = x; then 45980 # As a simple fix, exclude /usr/bin since it's not a real path. 45981 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45982 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45983 # a path prefixed by /cygdrive for fixpath to work. 45984 new_path="$CYGWIN_ROOT_PATH$input_path" 45985 fi 45986 fi 45987 45988 45989 if test "x$path" != "x$new_path"; then 45990 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45991 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45992 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45993 fi 45994 45995 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45996 45997 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45998 has_colon=`$ECHO $path | $GREP ^.:` 45999 new_path="$path" 46000 if test "x$has_colon" = x; then 46001 # Not in mixed or Windows style, start by that. 46002 new_path=`cmd //c echo $path` 46003 fi 46004 46005 46006 input_path="$new_path" 46007 # Check if we need to convert this using DOS-style short mode. If the path 46008 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46009 # take no chances and rewrite it. 46010 # Note: m4 eats our [], so we need to use [ and ] instead. 46011 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46012 if test "x$has_forbidden_chars" != x; then 46013 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46014 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46015 fi 46016 46017 46018 windows_path="$new_path" 46019 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46020 unix_path=`$CYGPATH -u "$windows_path"` 46021 new_path="$unix_path" 46022 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46023 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46024 new_path="$unix_path" 46025 fi 46026 46027 if test "x$path" != "x$new_path"; then 46028 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46029 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46030 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46031 fi 46032 46033 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46034 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46035 46036 else 46037 # We're on a posix platform. Hooray! :) 46038 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46039 has_space=`$ECHO "$path" | $GREP " "` 46040 if test "x$has_space" != x; then 46041 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46042 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46043 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46044 fi 46045 46046 # Use eval to expand a potential ~ 46047 eval path="$path" 46048 if test ! -f "$path" && test ! -d "$path"; then 46049 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46050 fi 46051 46052 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46053 fi 46054 46055 46056 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46057 46058 # Input might be given as Windows format, start by converting to 46059 # unix format. 46060 path="$POTENTIAL_FREETYPE_LIB_PATH" 46061 new_path=`$CYGPATH -u "$path"` 46062 46063 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46064 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46065 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46066 # "foo.exe" is OK but "foo" is an error. 46067 # 46068 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46069 # It is also a way to make sure we got the proper file name for the real test later on. 46070 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46071 if test "x$test_shortpath" = x; then 46072 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46073 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46074 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46075 fi 46076 46077 # Call helper function which possibly converts this using DOS-style short mode. 46078 # If so, the updated path is stored in $new_path. 46079 46080 input_path="$new_path" 46081 # Check if we need to convert this using DOS-style short mode. If the path 46082 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46083 # take no chances and rewrite it. 46084 # Note: m4 eats our [], so we need to use [ and ] instead. 46085 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46086 if test "x$has_forbidden_chars" != x; then 46087 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46088 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46089 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46090 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46091 # Going to short mode and back again did indeed matter. Since short mode is 46092 # case insensitive, let's make it lowercase to improve readability. 46093 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46094 # Now convert it back to Unix-stile (cygpath) 46095 input_path=`$CYGPATH -u "$shortmode_path"` 46096 new_path="$input_path" 46097 fi 46098 fi 46099 46100 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46101 if test "x$test_cygdrive_prefix" = x; then 46102 # As a simple fix, exclude /usr/bin since it's not a real path. 46103 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46104 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46105 # a path prefixed by /cygdrive for fixpath to work. 46106 new_path="$CYGWIN_ROOT_PATH$input_path" 46107 fi 46108 fi 46109 46110 46111 if test "x$path" != "x$new_path"; then 46112 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46113 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46114 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46115 fi 46116 46117 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46118 46119 path="$POTENTIAL_FREETYPE_LIB_PATH" 46120 has_colon=`$ECHO $path | $GREP ^.:` 46121 new_path="$path" 46122 if test "x$has_colon" = x; then 46123 # Not in mixed or Windows style, start by that. 46124 new_path=`cmd //c echo $path` 46125 fi 46126 46127 46128 input_path="$new_path" 46129 # Check if we need to convert this using DOS-style short mode. If the path 46130 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46131 # take no chances and rewrite it. 46132 # Note: m4 eats our [], so we need to use [ and ] instead. 46133 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46134 if test "x$has_forbidden_chars" != x; then 46135 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46136 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46137 fi 46138 46139 46140 windows_path="$new_path" 46141 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46142 unix_path=`$CYGPATH -u "$windows_path"` 46143 new_path="$unix_path" 46144 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46145 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46146 new_path="$unix_path" 46147 fi 46148 46149 if test "x$path" != "x$new_path"; then 46150 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46151 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46152 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46153 fi 46154 46155 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46156 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46157 46158 else 46159 # We're on a posix platform. Hooray! :) 46160 path="$POTENTIAL_FREETYPE_LIB_PATH" 46161 has_space=`$ECHO "$path" | $GREP " "` 46162 if test "x$has_space" != x; then 46163 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46164 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46165 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46166 fi 46167 46168 # Use eval to expand a potential ~ 46169 eval path="$path" 46170 if test ! -f "$path" && test ! -d "$path"; then 46171 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46172 fi 46173 46174 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46175 fi 46176 46177 46178 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46180 $as_echo_n "checking for freetype includes... " >&6; } 46181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46182 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46183 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46185 $as_echo_n "checking for freetype libraries... " >&6; } 46186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46187 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46188 fi 46189 46190 fi 46191 else 46192 FREETYPE_BASE_DIR="$SYSROOT/usr" 46193 46194 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46195 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46196 METHOD="well-known location" 46197 46198 # Let's start with an optimistic view of the world :-) 46199 FOUND_FREETYPE=yes 46200 46201 # First look for the canonical freetype main include file ft2build.h. 46202 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46203 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 46204 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 46205 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46206 # Fail. 46207 FOUND_FREETYPE=no 46208 fi 46209 fi 46210 46211 if test "x$FOUND_FREETYPE" = xyes; then 46212 # Include file found, let's continue the sanity check. 46213 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46214 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46215 46216 # Reset to default value 46217 FREETYPE_BASE_NAME=freetype 46218 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46219 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46220 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 46221 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 46222 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 46223 # for the .6 version explicitly. 46224 FREETYPE_BASE_NAME=freetype.6 46225 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46226 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 46227 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 46228 else 46229 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46230 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46231 FOUND_FREETYPE=no 46232 fi 46233 else 46234 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46235 # On Windows, we will need both .lib and .dll file. 46236 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 46237 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 46238 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 46239 FOUND_FREETYPE=no 46240 fi 46241 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46242 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46243 # Found lib in isa dir, use that instead. 46244 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46245 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 46246 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 46247 fi 46248 fi 46249 fi 46250 46251 if test "x$FOUND_FREETYPE" = xyes; then 46252 46253 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46254 46255 # Input might be given as Windows format, start by converting to 46256 # unix format. 46257 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46258 new_path=`$CYGPATH -u "$path"` 46259 46260 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46261 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46262 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46263 # "foo.exe" is OK but "foo" is an error. 46264 # 46265 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46266 # It is also a way to make sure we got the proper file name for the real test later on. 46267 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46268 if test "x$test_shortpath" = x; then 46269 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46270 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46271 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46272 fi 46273 46274 # Call helper function which possibly converts this using DOS-style short mode. 46275 # If so, the updated path is stored in $new_path. 46276 46277 input_path="$new_path" 46278 # Check if we need to convert this using DOS-style short mode. If the path 46279 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46280 # take no chances and rewrite it. 46281 # Note: m4 eats our [], so we need to use [ and ] instead. 46282 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46283 if test "x$has_forbidden_chars" != x; then 46284 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46285 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46286 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46287 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46288 # Going to short mode and back again did indeed matter. Since short mode is 46289 # case insensitive, let's make it lowercase to improve readability. 46290 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46291 # Now convert it back to Unix-stile (cygpath) 46292 input_path=`$CYGPATH -u "$shortmode_path"` 46293 new_path="$input_path" 46294 fi 46295 fi 46296 46297 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46298 if test "x$test_cygdrive_prefix" = x; then 46299 # As a simple fix, exclude /usr/bin since it's not a real path. 46300 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46301 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46302 # a path prefixed by /cygdrive for fixpath to work. 46303 new_path="$CYGWIN_ROOT_PATH$input_path" 46304 fi 46305 fi 46306 46307 46308 if test "x$path" != "x$new_path"; then 46309 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46310 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46311 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46312 fi 46313 46314 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46315 46316 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46317 has_colon=`$ECHO $path | $GREP ^.:` 46318 new_path="$path" 46319 if test "x$has_colon" = x; then 46320 # Not in mixed or Windows style, start by that. 46321 new_path=`cmd //c echo $path` 46322 fi 46323 46324 46325 input_path="$new_path" 46326 # Check if we need to convert this using DOS-style short mode. If the path 46327 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46328 # take no chances and rewrite it. 46329 # Note: m4 eats our [], so we need to use [ and ] instead. 46330 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46331 if test "x$has_forbidden_chars" != x; then 46332 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46333 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46334 fi 46335 46336 46337 windows_path="$new_path" 46338 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46339 unix_path=`$CYGPATH -u "$windows_path"` 46340 new_path="$unix_path" 46341 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46342 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46343 new_path="$unix_path" 46344 fi 46345 46346 if test "x$path" != "x$new_path"; then 46347 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46348 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46349 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46350 fi 46351 46352 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46353 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46354 46355 else 46356 # We're on a posix platform. Hooray! :) 46357 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46358 has_space=`$ECHO "$path" | $GREP " "` 46359 if test "x$has_space" != x; then 46360 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46361 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46362 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46363 fi 46364 46365 # Use eval to expand a potential ~ 46366 eval path="$path" 46367 if test ! -f "$path" && test ! -d "$path"; then 46368 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46369 fi 46370 46371 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46372 fi 46373 46374 46375 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46376 46377 # Input might be given as Windows format, start by converting to 46378 # unix format. 46379 path="$POTENTIAL_FREETYPE_LIB_PATH" 46380 new_path=`$CYGPATH -u "$path"` 46381 46382 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46383 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46384 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46385 # "foo.exe" is OK but "foo" is an error. 46386 # 46387 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46388 # It is also a way to make sure we got the proper file name for the real test later on. 46389 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46390 if test "x$test_shortpath" = x; then 46391 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46392 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46393 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46394 fi 46395 46396 # Call helper function which possibly converts this using DOS-style short mode. 46397 # If so, the updated path is stored in $new_path. 46398 46399 input_path="$new_path" 46400 # Check if we need to convert this using DOS-style short mode. If the path 46401 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46402 # take no chances and rewrite it. 46403 # Note: m4 eats our [], so we need to use [ and ] instead. 46404 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46405 if test "x$has_forbidden_chars" != x; then 46406 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46407 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46408 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46409 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46410 # Going to short mode and back again did indeed matter. Since short mode is 46411 # case insensitive, let's make it lowercase to improve readability. 46412 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46413 # Now convert it back to Unix-stile (cygpath) 46414 input_path=`$CYGPATH -u "$shortmode_path"` 46415 new_path="$input_path" 46416 fi 46417 fi 46418 46419 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46420 if test "x$test_cygdrive_prefix" = x; then 46421 # As a simple fix, exclude /usr/bin since it's not a real path. 46422 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46423 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46424 # a path prefixed by /cygdrive for fixpath to work. 46425 new_path="$CYGWIN_ROOT_PATH$input_path" 46426 fi 46427 fi 46428 46429 46430 if test "x$path" != "x$new_path"; then 46431 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46432 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46433 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46434 fi 46435 46436 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46437 46438 path="$POTENTIAL_FREETYPE_LIB_PATH" 46439 has_colon=`$ECHO $path | $GREP ^.:` 46440 new_path="$path" 46441 if test "x$has_colon" = x; then 46442 # Not in mixed or Windows style, start by that. 46443 new_path=`cmd //c echo $path` 46444 fi 46445 46446 46447 input_path="$new_path" 46448 # Check if we need to convert this using DOS-style short mode. If the path 46449 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46450 # take no chances and rewrite it. 46451 # Note: m4 eats our [], so we need to use [ and ] instead. 46452 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46453 if test "x$has_forbidden_chars" != x; then 46454 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46455 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46456 fi 46457 46458 46459 windows_path="$new_path" 46460 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46461 unix_path=`$CYGPATH -u "$windows_path"` 46462 new_path="$unix_path" 46463 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46464 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46465 new_path="$unix_path" 46466 fi 46467 46468 if test "x$path" != "x$new_path"; then 46469 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46470 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46471 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46472 fi 46473 46474 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46475 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46476 46477 else 46478 # We're on a posix platform. Hooray! :) 46479 path="$POTENTIAL_FREETYPE_LIB_PATH" 46480 has_space=`$ECHO "$path" | $GREP " "` 46481 if test "x$has_space" != x; then 46482 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46483 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46484 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46485 fi 46486 46487 # Use eval to expand a potential ~ 46488 eval path="$path" 46489 if test ! -f "$path" && test ! -d "$path"; then 46490 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46491 fi 46492 46493 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46494 fi 46495 46496 46497 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46499 $as_echo_n "checking for freetype includes... " >&6; } 46500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46501 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46502 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46504 $as_echo_n "checking for freetype libraries... " >&6; } 46505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46506 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46507 fi 46508 46509 46510 if test "x$FOUND_FREETYPE" != xyes; then 46511 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 46512 46513 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46514 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46515 METHOD="well-known location" 46516 46517 # Let's start with an optimistic view of the world :-) 46518 FOUND_FREETYPE=yes 46519 46520 # First look for the canonical freetype main include file ft2build.h. 46521 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46522 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 46523 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 46524 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46525 # Fail. 46526 FOUND_FREETYPE=no 46527 fi 46528 fi 46529 46530 if test "x$FOUND_FREETYPE" = xyes; then 46531 # Include file found, let's continue the sanity check. 46532 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46533 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46534 46535 # Reset to default value 46536 FREETYPE_BASE_NAME=freetype 46537 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46538 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46539 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 46540 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 46541 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 46542 # for the .6 version explicitly. 46543 FREETYPE_BASE_NAME=freetype.6 46544 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46545 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 46546 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 46547 else 46548 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46549 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46550 FOUND_FREETYPE=no 46551 fi 46552 else 46553 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46554 # On Windows, we will need both .lib and .dll file. 46555 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 46556 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 46557 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 46558 FOUND_FREETYPE=no 46559 fi 46560 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46561 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46562 # Found lib in isa dir, use that instead. 46563 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46564 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 46565 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 46566 fi 46567 fi 46568 fi 46569 46570 if test "x$FOUND_FREETYPE" = xyes; then 46571 46572 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46573 46574 # Input might be given as Windows format, start by converting to 46575 # unix format. 46576 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46577 new_path=`$CYGPATH -u "$path"` 46578 46579 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46580 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46581 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46582 # "foo.exe" is OK but "foo" is an error. 46583 # 46584 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46585 # It is also a way to make sure we got the proper file name for the real test later on. 46586 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46587 if test "x$test_shortpath" = x; then 46588 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46589 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46590 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46591 fi 46592 46593 # Call helper function which possibly converts this using DOS-style short mode. 46594 # If so, the updated path is stored in $new_path. 46595 46596 input_path="$new_path" 46597 # Check if we need to convert this using DOS-style short mode. If the path 46598 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46599 # take no chances and rewrite it. 46600 # Note: m4 eats our [], so we need to use [ and ] instead. 46601 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46602 if test "x$has_forbidden_chars" != x; then 46603 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46604 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46605 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46606 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46607 # Going to short mode and back again did indeed matter. Since short mode is 46608 # case insensitive, let's make it lowercase to improve readability. 46609 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46610 # Now convert it back to Unix-stile (cygpath) 46611 input_path=`$CYGPATH -u "$shortmode_path"` 46612 new_path="$input_path" 46613 fi 46614 fi 46615 46616 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46617 if test "x$test_cygdrive_prefix" = x; then 46618 # As a simple fix, exclude /usr/bin since it's not a real path. 46619 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46620 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46621 # a path prefixed by /cygdrive for fixpath to work. 46622 new_path="$CYGWIN_ROOT_PATH$input_path" 46623 fi 46624 fi 46625 46626 46627 if test "x$path" != "x$new_path"; then 46628 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46629 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46630 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46631 fi 46632 46633 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46634 46635 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46636 has_colon=`$ECHO $path | $GREP ^.:` 46637 new_path="$path" 46638 if test "x$has_colon" = x; then 46639 # Not in mixed or Windows style, start by that. 46640 new_path=`cmd //c echo $path` 46641 fi 46642 46643 46644 input_path="$new_path" 46645 # Check if we need to convert this using DOS-style short mode. If the path 46646 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46647 # take no chances and rewrite it. 46648 # Note: m4 eats our [], so we need to use [ and ] instead. 46649 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46650 if test "x$has_forbidden_chars" != x; then 46651 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46652 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46653 fi 46654 46655 46656 windows_path="$new_path" 46657 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46658 unix_path=`$CYGPATH -u "$windows_path"` 46659 new_path="$unix_path" 46660 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46661 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46662 new_path="$unix_path" 46663 fi 46664 46665 if test "x$path" != "x$new_path"; then 46666 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46667 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46668 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46669 fi 46670 46671 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46672 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46673 46674 else 46675 # We're on a posix platform. Hooray! :) 46676 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46677 has_space=`$ECHO "$path" | $GREP " "` 46678 if test "x$has_space" != x; then 46679 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46680 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46681 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46682 fi 46683 46684 # Use eval to expand a potential ~ 46685 eval path="$path" 46686 if test ! -f "$path" && test ! -d "$path"; then 46687 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46688 fi 46689 46690 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46691 fi 46692 46693 46694 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46695 46696 # Input might be given as Windows format, start by converting to 46697 # unix format. 46698 path="$POTENTIAL_FREETYPE_LIB_PATH" 46699 new_path=`$CYGPATH -u "$path"` 46700 46701 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46702 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46703 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46704 # "foo.exe" is OK but "foo" is an error. 46705 # 46706 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46707 # It is also a way to make sure we got the proper file name for the real test later on. 46708 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46709 if test "x$test_shortpath" = x; then 46710 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46711 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46712 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46713 fi 46714 46715 # Call helper function which possibly converts this using DOS-style short mode. 46716 # If so, the updated path is stored in $new_path. 46717 46718 input_path="$new_path" 46719 # Check if we need to convert this using DOS-style short mode. If the path 46720 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46721 # take no chances and rewrite it. 46722 # Note: m4 eats our [], so we need to use [ and ] instead. 46723 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46724 if test "x$has_forbidden_chars" != x; then 46725 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46726 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46727 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46728 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46729 # Going to short mode and back again did indeed matter. Since short mode is 46730 # case insensitive, let's make it lowercase to improve readability. 46731 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46732 # Now convert it back to Unix-stile (cygpath) 46733 input_path=`$CYGPATH -u "$shortmode_path"` 46734 new_path="$input_path" 46735 fi 46736 fi 46737 46738 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46739 if test "x$test_cygdrive_prefix" = x; then 46740 # As a simple fix, exclude /usr/bin since it's not a real path. 46741 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46742 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46743 # a path prefixed by /cygdrive for fixpath to work. 46744 new_path="$CYGWIN_ROOT_PATH$input_path" 46745 fi 46746 fi 46747 46748 46749 if test "x$path" != "x$new_path"; then 46750 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46751 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46752 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46753 fi 46754 46755 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46756 46757 path="$POTENTIAL_FREETYPE_LIB_PATH" 46758 has_colon=`$ECHO $path | $GREP ^.:` 46759 new_path="$path" 46760 if test "x$has_colon" = x; then 46761 # Not in mixed or Windows style, start by that. 46762 new_path=`cmd //c echo $path` 46763 fi 46764 46765 46766 input_path="$new_path" 46767 # Check if we need to convert this using DOS-style short mode. If the path 46768 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46769 # take no chances and rewrite it. 46770 # Note: m4 eats our [], so we need to use [ and ] instead. 46771 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46772 if test "x$has_forbidden_chars" != x; then 46773 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46774 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46775 fi 46776 46777 46778 windows_path="$new_path" 46779 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46780 unix_path=`$CYGPATH -u "$windows_path"` 46781 new_path="$unix_path" 46782 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46783 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46784 new_path="$unix_path" 46785 fi 46786 46787 if test "x$path" != "x$new_path"; then 46788 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46789 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46790 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46791 fi 46792 46793 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46794 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46795 46796 else 46797 # We're on a posix platform. Hooray! :) 46798 path="$POTENTIAL_FREETYPE_LIB_PATH" 46799 has_space=`$ECHO "$path" | $GREP " "` 46800 if test "x$has_space" != x; then 46801 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46802 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46803 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46804 fi 46805 46806 # Use eval to expand a potential ~ 46807 eval path="$path" 46808 if test ! -f "$path" && test ! -d "$path"; then 46809 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46810 fi 46811 46812 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46813 fi 46814 46815 46816 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46818 $as_echo_n "checking for freetype includes... " >&6; } 46819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46820 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46821 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46823 $as_echo_n "checking for freetype libraries... " >&6; } 46824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46825 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46826 fi 46827 46828 fi 46829 46830 if test "x$FOUND_FREETYPE" != xyes; then 46831 FREETYPE_BASE_DIR="$SYSROOT/usr/sfw" 46832 46833 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46834 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46835 METHOD="well-known location" 46836 46837 # Let's start with an optimistic view of the world :-) 46838 FOUND_FREETYPE=yes 46839 46840 # First look for the canonical freetype main include file ft2build.h. 46841 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46842 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 46843 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 46844 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46845 # Fail. 46846 FOUND_FREETYPE=no 46847 fi 46848 fi 46849 46850 if test "x$FOUND_FREETYPE" = xyes; then 46851 # Include file found, let's continue the sanity check. 46852 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46853 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46854 46855 # Reset to default value 46856 FREETYPE_BASE_NAME=freetype 46857 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46858 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46859 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 46860 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 46861 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 46862 # for the .6 version explicitly. 46863 FREETYPE_BASE_NAME=freetype.6 46864 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46865 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 46866 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 46867 else 46868 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46869 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46870 FOUND_FREETYPE=no 46871 fi 46872 else 46873 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46874 # On Windows, we will need both .lib and .dll file. 46875 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 46876 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 46877 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 46878 FOUND_FREETYPE=no 46879 fi 46880 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46881 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46882 # Found lib in isa dir, use that instead. 46883 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46884 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 46885 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 46886 fi 46887 fi 46888 fi 46889 46890 if test "x$FOUND_FREETYPE" = xyes; then 46891 46892 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46893 46894 # Input might be given as Windows format, start by converting to 46895 # unix format. 46896 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46897 new_path=`$CYGPATH -u "$path"` 46898 46899 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46900 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46901 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46902 # "foo.exe" is OK but "foo" is an error. 46903 # 46904 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46905 # It is also a way to make sure we got the proper file name for the real test later on. 46906 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46907 if test "x$test_shortpath" = x; then 46908 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46909 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46910 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46911 fi 46912 46913 # Call helper function which possibly converts this using DOS-style short mode. 46914 # If so, the updated path is stored in $new_path. 46915 46916 input_path="$new_path" 46917 # Check if we need to convert this using DOS-style short mode. If the path 46918 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46919 # take no chances and rewrite it. 46920 # Note: m4 eats our [], so we need to use [ and ] instead. 46921 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46922 if test "x$has_forbidden_chars" != x; then 46923 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46924 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46925 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46926 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46927 # Going to short mode and back again did indeed matter. Since short mode is 46928 # case insensitive, let's make it lowercase to improve readability. 46929 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46930 # Now convert it back to Unix-stile (cygpath) 46931 input_path=`$CYGPATH -u "$shortmode_path"` 46932 new_path="$input_path" 46933 fi 46934 fi 46935 46936 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46937 if test "x$test_cygdrive_prefix" = x; then 46938 # As a simple fix, exclude /usr/bin since it's not a real path. 46939 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46940 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46941 # a path prefixed by /cygdrive for fixpath to work. 46942 new_path="$CYGWIN_ROOT_PATH$input_path" 46943 fi 46944 fi 46945 46946 46947 if test "x$path" != "x$new_path"; then 46948 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46949 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46950 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46951 fi 46952 46953 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46954 46955 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46956 has_colon=`$ECHO $path | $GREP ^.:` 46957 new_path="$path" 46958 if test "x$has_colon" = x; then 46959 # Not in mixed or Windows style, start by that. 46960 new_path=`cmd //c echo $path` 46961 fi 46962 46963 46964 input_path="$new_path" 46965 # Check if we need to convert this using DOS-style short mode. If the path 46966 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46967 # take no chances and rewrite it. 46968 # Note: m4 eats our [], so we need to use [ and ] instead. 46969 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46970 if test "x$has_forbidden_chars" != x; then 46971 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46972 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46973 fi 46974 46975 46976 windows_path="$new_path" 46977 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46978 unix_path=`$CYGPATH -u "$windows_path"` 46979 new_path="$unix_path" 46980 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46981 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46982 new_path="$unix_path" 46983 fi 46984 46985 if test "x$path" != "x$new_path"; then 46986 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46987 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46988 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46989 fi 46990 46991 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46992 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46993 46994 else 46995 # We're on a posix platform. Hooray! :) 46996 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46997 has_space=`$ECHO "$path" | $GREP " "` 46998 if test "x$has_space" != x; then 46999 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47000 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47001 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47002 fi 47003 47004 # Use eval to expand a potential ~ 47005 eval path="$path" 47006 if test ! -f "$path" && test ! -d "$path"; then 47007 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47008 fi 47009 47010 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47011 fi 47012 47013 47014 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47015 47016 # Input might be given as Windows format, start by converting to 47017 # unix format. 47018 path="$POTENTIAL_FREETYPE_LIB_PATH" 47019 new_path=`$CYGPATH -u "$path"` 47020 47021 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47022 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47023 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47024 # "foo.exe" is OK but "foo" is an error. 47025 # 47026 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47027 # It is also a way to make sure we got the proper file name for the real test later on. 47028 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47029 if test "x$test_shortpath" = x; then 47030 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47031 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47032 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47033 fi 47034 47035 # Call helper function which possibly converts this using DOS-style short mode. 47036 # If so, the updated path is stored in $new_path. 47037 47038 input_path="$new_path" 47039 # Check if we need to convert this using DOS-style short mode. If the path 47040 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47041 # take no chances and rewrite it. 47042 # Note: m4 eats our [], so we need to use [ and ] instead. 47043 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47044 if test "x$has_forbidden_chars" != x; then 47045 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47046 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47047 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47048 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47049 # Going to short mode and back again did indeed matter. Since short mode is 47050 # case insensitive, let's make it lowercase to improve readability. 47051 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47052 # Now convert it back to Unix-stile (cygpath) 47053 input_path=`$CYGPATH -u "$shortmode_path"` 47054 new_path="$input_path" 47055 fi 47056 fi 47057 47058 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47059 if test "x$test_cygdrive_prefix" = x; then 47060 # As a simple fix, exclude /usr/bin since it's not a real path. 47061 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47062 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47063 # a path prefixed by /cygdrive for fixpath to work. 47064 new_path="$CYGWIN_ROOT_PATH$input_path" 47065 fi 47066 fi 47067 47068 47069 if test "x$path" != "x$new_path"; then 47070 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47071 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47072 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47073 fi 47074 47075 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47076 47077 path="$POTENTIAL_FREETYPE_LIB_PATH" 47078 has_colon=`$ECHO $path | $GREP ^.:` 47079 new_path="$path" 47080 if test "x$has_colon" = x; then 47081 # Not in mixed or Windows style, start by that. 47082 new_path=`cmd //c echo $path` 47083 fi 47084 47085 47086 input_path="$new_path" 47087 # Check if we need to convert this using DOS-style short mode. If the path 47088 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47089 # take no chances and rewrite it. 47090 # Note: m4 eats our [], so we need to use [ and ] instead. 47091 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47092 if test "x$has_forbidden_chars" != x; then 47093 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47094 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47095 fi 47096 47097 47098 windows_path="$new_path" 47099 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47100 unix_path=`$CYGPATH -u "$windows_path"` 47101 new_path="$unix_path" 47102 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47103 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47104 new_path="$unix_path" 47105 fi 47106 47107 if test "x$path" != "x$new_path"; then 47108 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47109 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47110 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47111 fi 47112 47113 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47114 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47115 47116 else 47117 # We're on a posix platform. Hooray! :) 47118 path="$POTENTIAL_FREETYPE_LIB_PATH" 47119 has_space=`$ECHO "$path" | $GREP " "` 47120 if test "x$has_space" != x; then 47121 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47122 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47123 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47124 fi 47125 47126 # Use eval to expand a potential ~ 47127 eval path="$path" 47128 if test ! -f "$path" && test ! -d "$path"; then 47129 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47130 fi 47131 47132 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47133 fi 47134 47135 47136 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47138 $as_echo_n "checking for freetype includes... " >&6; } 47139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47140 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47141 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47143 $as_echo_n "checking for freetype libraries... " >&6; } 47144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47145 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47146 fi 47147 47148 fi 47149 47150 if test "x$FOUND_FREETYPE" != xyes; then 47151 FREETYPE_BASE_DIR="$SYSROOT/usr" 47152 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 47153 47154 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47155 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 47156 METHOD="well-known location" 47157 47158 # Let's start with an optimistic view of the world :-) 47159 FOUND_FREETYPE=yes 47160 47161 # First look for the canonical freetype main include file ft2build.h. 47162 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47163 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 47164 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 47165 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47166 # Fail. 47167 FOUND_FREETYPE=no 47168 fi 47169 fi 47170 47171 if test "x$FOUND_FREETYPE" = xyes; then 47172 # Include file found, let's continue the sanity check. 47173 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47174 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47175 47176 # Reset to default value 47177 FREETYPE_BASE_NAME=freetype 47178 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47179 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47180 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 47181 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 47182 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 47183 # for the .6 version explicitly. 47184 FREETYPE_BASE_NAME=freetype.6 47185 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47186 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 47187 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 47188 else 47189 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47190 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47191 FOUND_FREETYPE=no 47192 fi 47193 else 47194 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47195 # On Windows, we will need both .lib and .dll file. 47196 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 47197 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 47198 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 47199 FOUND_FREETYPE=no 47200 fi 47201 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47202 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47203 # Found lib in isa dir, use that instead. 47204 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47205 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 47206 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 47207 fi 47208 fi 47209 fi 47210 47211 if test "x$FOUND_FREETYPE" = xyes; then 47212 47213 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47214 47215 # Input might be given as Windows format, start by converting to 47216 # unix format. 47217 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47218 new_path=`$CYGPATH -u "$path"` 47219 47220 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47221 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47222 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47223 # "foo.exe" is OK but "foo" is an error. 47224 # 47225 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47226 # It is also a way to make sure we got the proper file name for the real test later on. 47227 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47228 if test "x$test_shortpath" = x; then 47229 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47230 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47231 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47232 fi 47233 47234 # Call helper function which possibly converts this using DOS-style short mode. 47235 # If so, the updated path is stored in $new_path. 47236 47237 input_path="$new_path" 47238 # Check if we need to convert this using DOS-style short mode. If the path 47239 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47240 # take no chances and rewrite it. 47241 # Note: m4 eats our [], so we need to use [ and ] instead. 47242 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47243 if test "x$has_forbidden_chars" != x; then 47244 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47245 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47246 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47247 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47248 # Going to short mode and back again did indeed matter. Since short mode is 47249 # case insensitive, let's make it lowercase to improve readability. 47250 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47251 # Now convert it back to Unix-stile (cygpath) 47252 input_path=`$CYGPATH -u "$shortmode_path"` 47253 new_path="$input_path" 47254 fi 47255 fi 47256 47257 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47258 if test "x$test_cygdrive_prefix" = x; then 47259 # As a simple fix, exclude /usr/bin since it's not a real path. 47260 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47261 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47262 # a path prefixed by /cygdrive for fixpath to work. 47263 new_path="$CYGWIN_ROOT_PATH$input_path" 47264 fi 47265 fi 47266 47267 47268 if test "x$path" != "x$new_path"; then 47269 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47270 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47271 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47272 fi 47273 47274 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47275 47276 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47277 has_colon=`$ECHO $path | $GREP ^.:` 47278 new_path="$path" 47279 if test "x$has_colon" = x; then 47280 # Not in mixed or Windows style, start by that. 47281 new_path=`cmd //c echo $path` 47282 fi 47283 47284 47285 input_path="$new_path" 47286 # Check if we need to convert this using DOS-style short mode. If the path 47287 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47288 # take no chances and rewrite it. 47289 # Note: m4 eats our [], so we need to use [ and ] instead. 47290 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47291 if test "x$has_forbidden_chars" != x; then 47292 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47293 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47294 fi 47295 47296 47297 windows_path="$new_path" 47298 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47299 unix_path=`$CYGPATH -u "$windows_path"` 47300 new_path="$unix_path" 47301 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47302 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47303 new_path="$unix_path" 47304 fi 47305 47306 if test "x$path" != "x$new_path"; then 47307 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47308 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47309 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47310 fi 47311 47312 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47313 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47314 47315 else 47316 # We're on a posix platform. Hooray! :) 47317 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47318 has_space=`$ECHO "$path" | $GREP " "` 47319 if test "x$has_space" != x; then 47320 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47321 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47322 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47323 fi 47324 47325 # Use eval to expand a potential ~ 47326 eval path="$path" 47327 if test ! -f "$path" && test ! -d "$path"; then 47328 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47329 fi 47330 47331 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47332 fi 47333 47334 47335 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47336 47337 # Input might be given as Windows format, start by converting to 47338 # unix format. 47339 path="$POTENTIAL_FREETYPE_LIB_PATH" 47340 new_path=`$CYGPATH -u "$path"` 47341 47342 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47343 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47344 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47345 # "foo.exe" is OK but "foo" is an error. 47346 # 47347 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47348 # It is also a way to make sure we got the proper file name for the real test later on. 47349 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47350 if test "x$test_shortpath" = x; then 47351 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47352 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47353 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47354 fi 47355 47356 # Call helper function which possibly converts this using DOS-style short mode. 47357 # If so, the updated path is stored in $new_path. 47358 47359 input_path="$new_path" 47360 # Check if we need to convert this using DOS-style short mode. If the path 47361 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47362 # take no chances and rewrite it. 47363 # Note: m4 eats our [], so we need to use [ and ] instead. 47364 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47365 if test "x$has_forbidden_chars" != x; then 47366 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47367 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47368 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47369 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47370 # Going to short mode and back again did indeed matter. Since short mode is 47371 # case insensitive, let's make it lowercase to improve readability. 47372 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47373 # Now convert it back to Unix-stile (cygpath) 47374 input_path=`$CYGPATH -u "$shortmode_path"` 47375 new_path="$input_path" 47376 fi 47377 fi 47378 47379 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47380 if test "x$test_cygdrive_prefix" = x; then 47381 # As a simple fix, exclude /usr/bin since it's not a real path. 47382 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47383 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47384 # a path prefixed by /cygdrive for fixpath to work. 47385 new_path="$CYGWIN_ROOT_PATH$input_path" 47386 fi 47387 fi 47388 47389 47390 if test "x$path" != "x$new_path"; then 47391 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47392 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47393 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47394 fi 47395 47396 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47397 47398 path="$POTENTIAL_FREETYPE_LIB_PATH" 47399 has_colon=`$ECHO $path | $GREP ^.:` 47400 new_path="$path" 47401 if test "x$has_colon" = x; then 47402 # Not in mixed or Windows style, start by that. 47403 new_path=`cmd //c echo $path` 47404 fi 47405 47406 47407 input_path="$new_path" 47408 # Check if we need to convert this using DOS-style short mode. If the path 47409 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47410 # take no chances and rewrite it. 47411 # Note: m4 eats our [], so we need to use [ and ] instead. 47412 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47413 if test "x$has_forbidden_chars" != x; then 47414 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47415 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47416 fi 47417 47418 47419 windows_path="$new_path" 47420 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47421 unix_path=`$CYGPATH -u "$windows_path"` 47422 new_path="$unix_path" 47423 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47424 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47425 new_path="$unix_path" 47426 fi 47427 47428 if test "x$path" != "x$new_path"; then 47429 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47430 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47431 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47432 fi 47433 47434 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47435 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47436 47437 else 47438 # We're on a posix platform. Hooray! :) 47439 path="$POTENTIAL_FREETYPE_LIB_PATH" 47440 has_space=`$ECHO "$path" | $GREP " "` 47441 if test "x$has_space" != x; then 47442 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47443 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47444 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47445 fi 47446 47447 # Use eval to expand a potential ~ 47448 eval path="$path" 47449 if test ! -f "$path" && test ! -d "$path"; then 47450 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47451 fi 47452 47453 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47454 fi 47455 47456 47457 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47459 $as_echo_n "checking for freetype includes... " >&6; } 47460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47461 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47462 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47464 $as_echo_n "checking for freetype libraries... " >&6; } 47465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47466 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47467 fi 47468 47469 else 47470 47471 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47472 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 47473 METHOD="well-known location" 47474 47475 # Let's start with an optimistic view of the world :-) 47476 FOUND_FREETYPE=yes 47477 47478 # First look for the canonical freetype main include file ft2build.h. 47479 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47480 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 47481 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 47482 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47483 # Fail. 47484 FOUND_FREETYPE=no 47485 fi 47486 fi 47487 47488 if test "x$FOUND_FREETYPE" = xyes; then 47489 # Include file found, let's continue the sanity check. 47490 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47491 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47492 47493 # Reset to default value 47494 FREETYPE_BASE_NAME=freetype 47495 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47496 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47497 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 47498 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 47499 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 47500 # for the .6 version explicitly. 47501 FREETYPE_BASE_NAME=freetype.6 47502 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47503 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 47504 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 47505 else 47506 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47507 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47508 FOUND_FREETYPE=no 47509 fi 47510 else 47511 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47512 # On Windows, we will need both .lib and .dll file. 47513 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 47514 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 47515 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 47516 FOUND_FREETYPE=no 47517 fi 47518 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47519 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47520 # Found lib in isa dir, use that instead. 47521 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47522 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 47523 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 47524 fi 47525 fi 47526 fi 47527 47528 if test "x$FOUND_FREETYPE" = xyes; then 47529 47530 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47531 47532 # Input might be given as Windows format, start by converting to 47533 # unix format. 47534 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47535 new_path=`$CYGPATH -u "$path"` 47536 47537 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47538 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47539 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47540 # "foo.exe" is OK but "foo" is an error. 47541 # 47542 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47543 # It is also a way to make sure we got the proper file name for the real test later on. 47544 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47545 if test "x$test_shortpath" = x; then 47546 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47547 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47548 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47549 fi 47550 47551 # Call helper function which possibly converts this using DOS-style short mode. 47552 # If so, the updated path is stored in $new_path. 47553 47554 input_path="$new_path" 47555 # Check if we need to convert this using DOS-style short mode. If the path 47556 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47557 # take no chances and rewrite it. 47558 # Note: m4 eats our [], so we need to use [ and ] instead. 47559 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47560 if test "x$has_forbidden_chars" != x; then 47561 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47562 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47563 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47564 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47565 # Going to short mode and back again did indeed matter. Since short mode is 47566 # case insensitive, let's make it lowercase to improve readability. 47567 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47568 # Now convert it back to Unix-stile (cygpath) 47569 input_path=`$CYGPATH -u "$shortmode_path"` 47570 new_path="$input_path" 47571 fi 47572 fi 47573 47574 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47575 if test "x$test_cygdrive_prefix" = x; then 47576 # As a simple fix, exclude /usr/bin since it's not a real path. 47577 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47578 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47579 # a path prefixed by /cygdrive for fixpath to work. 47580 new_path="$CYGWIN_ROOT_PATH$input_path" 47581 fi 47582 fi 47583 47584 47585 if test "x$path" != "x$new_path"; then 47586 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47587 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47588 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47589 fi 47590 47591 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47592 47593 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47594 has_colon=`$ECHO $path | $GREP ^.:` 47595 new_path="$path" 47596 if test "x$has_colon" = x; then 47597 # Not in mixed or Windows style, start by that. 47598 new_path=`cmd //c echo $path` 47599 fi 47600 47601 47602 input_path="$new_path" 47603 # Check if we need to convert this using DOS-style short mode. If the path 47604 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47605 # take no chances and rewrite it. 47606 # Note: m4 eats our [], so we need to use [ and ] instead. 47607 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47608 if test "x$has_forbidden_chars" != x; then 47609 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47610 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47611 fi 47612 47613 47614 windows_path="$new_path" 47615 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47616 unix_path=`$CYGPATH -u "$windows_path"` 47617 new_path="$unix_path" 47618 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47619 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47620 new_path="$unix_path" 47621 fi 47622 47623 if test "x$path" != "x$new_path"; then 47624 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47625 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47626 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47627 fi 47628 47629 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47630 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47631 47632 else 47633 # We're on a posix platform. Hooray! :) 47634 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47635 has_space=`$ECHO "$path" | $GREP " "` 47636 if test "x$has_space" != x; then 47637 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47638 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47639 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47640 fi 47641 47642 # Use eval to expand a potential ~ 47643 eval path="$path" 47644 if test ! -f "$path" && test ! -d "$path"; then 47645 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47646 fi 47647 47648 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47649 fi 47650 47651 47652 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47653 47654 # Input might be given as Windows format, start by converting to 47655 # unix format. 47656 path="$POTENTIAL_FREETYPE_LIB_PATH" 47657 new_path=`$CYGPATH -u "$path"` 47658 47659 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47660 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47661 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47662 # "foo.exe" is OK but "foo" is an error. 47663 # 47664 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47665 # It is also a way to make sure we got the proper file name for the real test later on. 47666 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47667 if test "x$test_shortpath" = x; then 47668 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47669 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47670 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47671 fi 47672 47673 # Call helper function which possibly converts this using DOS-style short mode. 47674 # If so, the updated path is stored in $new_path. 47675 47676 input_path="$new_path" 47677 # Check if we need to convert this using DOS-style short mode. If the path 47678 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47679 # take no chances and rewrite it. 47680 # Note: m4 eats our [], so we need to use [ and ] instead. 47681 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47682 if test "x$has_forbidden_chars" != x; then 47683 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47684 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47685 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47686 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47687 # Going to short mode and back again did indeed matter. Since short mode is 47688 # case insensitive, let's make it lowercase to improve readability. 47689 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47690 # Now convert it back to Unix-stile (cygpath) 47691 input_path=`$CYGPATH -u "$shortmode_path"` 47692 new_path="$input_path" 47693 fi 47694 fi 47695 47696 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47697 if test "x$test_cygdrive_prefix" = x; then 47698 # As a simple fix, exclude /usr/bin since it's not a real path. 47699 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47700 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47701 # a path prefixed by /cygdrive for fixpath to work. 47702 new_path="$CYGWIN_ROOT_PATH$input_path" 47703 fi 47704 fi 47705 47706 47707 if test "x$path" != "x$new_path"; then 47708 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47709 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47710 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47711 fi 47712 47713 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47714 47715 path="$POTENTIAL_FREETYPE_LIB_PATH" 47716 has_colon=`$ECHO $path | $GREP ^.:` 47717 new_path="$path" 47718 if test "x$has_colon" = x; then 47719 # Not in mixed or Windows style, start by that. 47720 new_path=`cmd //c echo $path` 47721 fi 47722 47723 47724 input_path="$new_path" 47725 # Check if we need to convert this using DOS-style short mode. If the path 47726 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47727 # take no chances and rewrite it. 47728 # Note: m4 eats our [], so we need to use [ and ] instead. 47729 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47730 if test "x$has_forbidden_chars" != x; then 47731 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47732 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47733 fi 47734 47735 47736 windows_path="$new_path" 47737 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47738 unix_path=`$CYGPATH -u "$windows_path"` 47739 new_path="$unix_path" 47740 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47741 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47742 new_path="$unix_path" 47743 fi 47744 47745 if test "x$path" != "x$new_path"; then 47746 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47747 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47748 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47749 fi 47750 47751 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47752 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47753 47754 else 47755 # We're on a posix platform. Hooray! :) 47756 path="$POTENTIAL_FREETYPE_LIB_PATH" 47757 has_space=`$ECHO "$path" | $GREP " "` 47758 if test "x$has_space" != x; then 47759 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47760 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47761 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47762 fi 47763 47764 # Use eval to expand a potential ~ 47765 eval path="$path" 47766 if test ! -f "$path" && test ! -d "$path"; then 47767 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47768 fi 47769 47770 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47771 fi 47772 47773 47774 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47776 $as_echo_n "checking for freetype includes... " >&6; } 47777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47778 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47779 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47781 $as_echo_n "checking for freetype libraries... " >&6; } 47782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47783 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47784 fi 47785 47786 if test "x$FOUND_FREETYPE" != xyes; then 47787 47788 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47789 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 47790 METHOD="well-known location" 47791 47792 # Let's start with an optimistic view of the world :-) 47793 FOUND_FREETYPE=yes 47794 47795 # First look for the canonical freetype main include file ft2build.h. 47796 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47797 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 47798 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 47799 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47800 # Fail. 47801 FOUND_FREETYPE=no 47802 fi 47803 fi 47804 47805 if test "x$FOUND_FREETYPE" = xyes; then 47806 # Include file found, let's continue the sanity check. 47807 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47808 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47809 47810 # Reset to default value 47811 FREETYPE_BASE_NAME=freetype 47812 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47813 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47814 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 47815 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 47816 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 47817 # for the .6 version explicitly. 47818 FREETYPE_BASE_NAME=freetype.6 47819 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47820 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 47821 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 47822 else 47823 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47824 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47825 FOUND_FREETYPE=no 47826 fi 47827 else 47828 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47829 # On Windows, we will need both .lib and .dll file. 47830 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 47831 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 47832 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 47833 FOUND_FREETYPE=no 47834 fi 47835 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47836 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47837 # Found lib in isa dir, use that instead. 47838 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47839 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 47840 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 47841 fi 47842 fi 47843 fi 47844 47845 if test "x$FOUND_FREETYPE" = xyes; then 47846 47847 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47848 47849 # Input might be given as Windows format, start by converting to 47850 # unix format. 47851 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47852 new_path=`$CYGPATH -u "$path"` 47853 47854 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47855 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47856 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47857 # "foo.exe" is OK but "foo" is an error. 47858 # 47859 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47860 # It is also a way to make sure we got the proper file name for the real test later on. 47861 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47862 if test "x$test_shortpath" = x; then 47863 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47864 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47865 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47866 fi 47867 47868 # Call helper function which possibly converts this using DOS-style short mode. 47869 # If so, the updated path is stored in $new_path. 47870 47871 input_path="$new_path" 47872 # Check if we need to convert this using DOS-style short mode. If the path 47873 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47874 # take no chances and rewrite it. 47875 # Note: m4 eats our [], so we need to use [ and ] instead. 47876 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47877 if test "x$has_forbidden_chars" != x; then 47878 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47879 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47880 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47881 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47882 # Going to short mode and back again did indeed matter. Since short mode is 47883 # case insensitive, let's make it lowercase to improve readability. 47884 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47885 # Now convert it back to Unix-stile (cygpath) 47886 input_path=`$CYGPATH -u "$shortmode_path"` 47887 new_path="$input_path" 47888 fi 47889 fi 47890 47891 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47892 if test "x$test_cygdrive_prefix" = x; then 47893 # As a simple fix, exclude /usr/bin since it's not a real path. 47894 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47895 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47896 # a path prefixed by /cygdrive for fixpath to work. 47897 new_path="$CYGWIN_ROOT_PATH$input_path" 47898 fi 47899 fi 47900 47901 47902 if test "x$path" != "x$new_path"; then 47903 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47904 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47905 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47906 fi 47907 47908 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47909 47910 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47911 has_colon=`$ECHO $path | $GREP ^.:` 47912 new_path="$path" 47913 if test "x$has_colon" = x; then 47914 # Not in mixed or Windows style, start by that. 47915 new_path=`cmd //c echo $path` 47916 fi 47917 47918 47919 input_path="$new_path" 47920 # Check if we need to convert this using DOS-style short mode. If the path 47921 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47922 # take no chances and rewrite it. 47923 # Note: m4 eats our [], so we need to use [ and ] instead. 47924 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47925 if test "x$has_forbidden_chars" != x; then 47926 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47927 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47928 fi 47929 47930 47931 windows_path="$new_path" 47932 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47933 unix_path=`$CYGPATH -u "$windows_path"` 47934 new_path="$unix_path" 47935 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47936 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47937 new_path="$unix_path" 47938 fi 47939 47940 if test "x$path" != "x$new_path"; then 47941 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47942 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47943 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47944 fi 47945 47946 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47947 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47948 47949 else 47950 # We're on a posix platform. Hooray! :) 47951 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47952 has_space=`$ECHO "$path" | $GREP " "` 47953 if test "x$has_space" != x; then 47954 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47955 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47956 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47957 fi 47958 47959 # Use eval to expand a potential ~ 47960 eval path="$path" 47961 if test ! -f "$path" && test ! -d "$path"; then 47962 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47963 fi 47964 47965 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47966 fi 47967 47968 47969 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47970 47971 # Input might be given as Windows format, start by converting to 47972 # unix format. 47973 path="$POTENTIAL_FREETYPE_LIB_PATH" 47974 new_path=`$CYGPATH -u "$path"` 47975 47976 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47977 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47978 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47979 # "foo.exe" is OK but "foo" is an error. 47980 # 47981 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47982 # It is also a way to make sure we got the proper file name for the real test later on. 47983 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47984 if test "x$test_shortpath" = x; then 47985 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47986 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47987 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47988 fi 47989 47990 # Call helper function which possibly converts this using DOS-style short mode. 47991 # If so, the updated path is stored in $new_path. 47992 47993 input_path="$new_path" 47994 # Check if we need to convert this using DOS-style short mode. If the path 47995 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47996 # take no chances and rewrite it. 47997 # Note: m4 eats our [], so we need to use [ and ] instead. 47998 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47999 if test "x$has_forbidden_chars" != x; then 48000 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48001 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48002 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48003 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48004 # Going to short mode and back again did indeed matter. Since short mode is 48005 # case insensitive, let's make it lowercase to improve readability. 48006 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48007 # Now convert it back to Unix-stile (cygpath) 48008 input_path=`$CYGPATH -u "$shortmode_path"` 48009 new_path="$input_path" 48010 fi 48011 fi 48012 48013 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48014 if test "x$test_cygdrive_prefix" = x; then 48015 # As a simple fix, exclude /usr/bin since it's not a real path. 48016 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48017 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48018 # a path prefixed by /cygdrive for fixpath to work. 48019 new_path="$CYGWIN_ROOT_PATH$input_path" 48020 fi 48021 fi 48022 48023 48024 if test "x$path" != "x$new_path"; then 48025 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 48026 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 48027 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48028 fi 48029 48030 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48031 48032 path="$POTENTIAL_FREETYPE_LIB_PATH" 48033 has_colon=`$ECHO $path | $GREP ^.:` 48034 new_path="$path" 48035 if test "x$has_colon" = x; then 48036 # Not in mixed or Windows style, start by that. 48037 new_path=`cmd //c echo $path` 48038 fi 48039 48040 48041 input_path="$new_path" 48042 # Check if we need to convert this using DOS-style short mode. If the path 48043 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48044 # take no chances and rewrite it. 48045 # Note: m4 eats our [], so we need to use [ and ] instead. 48046 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48047 if test "x$has_forbidden_chars" != x; then 48048 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48049 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48050 fi 48051 48052 48053 windows_path="$new_path" 48054 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48055 unix_path=`$CYGPATH -u "$windows_path"` 48056 new_path="$unix_path" 48057 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48058 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48059 new_path="$unix_path" 48060 fi 48061 48062 if test "x$path" != "x$new_path"; then 48063 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 48064 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 48065 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48066 fi 48067 48068 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48069 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48070 48071 else 48072 # We're on a posix platform. Hooray! :) 48073 path="$POTENTIAL_FREETYPE_LIB_PATH" 48074 has_space=`$ECHO "$path" | $GREP " "` 48075 if test "x$has_space" != x; then 48076 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48077 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48078 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48079 fi 48080 48081 # Use eval to expand a potential ~ 48082 eval path="$path" 48083 if test ! -f "$path" && test ! -d "$path"; then 48084 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48085 fi 48086 48087 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 48088 fi 48089 48090 48091 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 48092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 48093 $as_echo_n "checking for freetype includes... " >&6; } 48094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 48095 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 48096 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 48097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 48098 $as_echo_n "checking for freetype libraries... " >&6; } 48099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 48100 $as_echo "$FREETYPE_LIB_PATH" >&6; } 48101 fi 48102 48103 fi 48104 fi 48105 fi 48106 fi 48107 fi # end check in well-known locations 48108 48109 if test "x$FOUND_FREETYPE" != xyes; then 48110 48111 # Print a helpful message on how to acquire the necessary build dependency. 48112 # freetype is the help tag: freetype, cups, pulse, alsa etc 48113 MISSING_DEPENDENCY=freetype 48114 48115 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48116 cygwin_help $MISSING_DEPENDENCY 48117 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48118 msys_help $MISSING_DEPENDENCY 48119 else 48120 PKGHANDLER_COMMAND= 48121 48122 case $PKGHANDLER in 48123 apt-get) 48124 apt_help $MISSING_DEPENDENCY ;; 48125 yum) 48126 yum_help $MISSING_DEPENDENCY ;; 48127 port) 48128 port_help $MISSING_DEPENDENCY ;; 48129 pkgutil) 48130 pkgutil_help $MISSING_DEPENDENCY ;; 48131 pkgadd) 48132 pkgadd_help $MISSING_DEPENDENCY ;; 48133 esac 48134 48135 if test "x$PKGHANDLER_COMMAND" != x; then 48136 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48137 fi 48138 fi 48139 48140 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 48141 fi 48142 fi # end user specified settings 48143 48144 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 48145 if test "x$FREETYPE_CFLAGS" = x; then 48146 48147 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48148 48149 # Input might be given as Windows format, start by converting to 48150 # unix format. 48151 path="$FREETYPE_INCLUDE_PATH" 48152 new_path=`$CYGPATH -u "$path"` 48153 48154 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48155 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48156 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48157 # "foo.exe" is OK but "foo" is an error. 48158 # 48159 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48160 # It is also a way to make sure we got the proper file name for the real test later on. 48161 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48162 if test "x$test_shortpath" = x; then 48163 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 48164 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 48165 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 48166 fi 48167 48168 # Call helper function which possibly converts this using DOS-style short mode. 48169 # If so, the updated path is stored in $new_path. 48170 48171 input_path="$new_path" 48172 # Check if we need to convert this using DOS-style short mode. If the path 48173 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48174 # take no chances and rewrite it. 48175 # Note: m4 eats our [], so we need to use [ and ] instead. 48176 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48177 if test "x$has_forbidden_chars" != x; then 48178 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48179 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48180 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48181 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48182 # Going to short mode and back again did indeed matter. Since short mode is 48183 # case insensitive, let's make it lowercase to improve readability. 48184 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48185 # Now convert it back to Unix-stile (cygpath) 48186 input_path=`$CYGPATH -u "$shortmode_path"` 48187 new_path="$input_path" 48188 fi 48189 fi 48190 48191 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48192 if test "x$test_cygdrive_prefix" = x; then 48193 # As a simple fix, exclude /usr/bin since it's not a real path. 48194 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48195 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48196 # a path prefixed by /cygdrive for fixpath to work. 48197 new_path="$CYGWIN_ROOT_PATH$input_path" 48198 fi 48199 fi 48200 48201 48202 if test "x$path" != "x$new_path"; then 48203 FREETYPE_INCLUDE_PATH="$new_path" 48204 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 48205 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 48206 fi 48207 48208 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48209 48210 path="$FREETYPE_INCLUDE_PATH" 48211 has_colon=`$ECHO $path | $GREP ^.:` 48212 new_path="$path" 48213 if test "x$has_colon" = x; then 48214 # Not in mixed or Windows style, start by that. 48215 new_path=`cmd //c echo $path` 48216 fi 48217 48218 48219 input_path="$new_path" 48220 # Check if we need to convert this using DOS-style short mode. If the path 48221 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48222 # take no chances and rewrite it. 48223 # Note: m4 eats our [], so we need to use [ and ] instead. 48224 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48225 if test "x$has_forbidden_chars" != x; then 48226 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48227 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48228 fi 48229 48230 48231 windows_path="$new_path" 48232 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48233 unix_path=`$CYGPATH -u "$windows_path"` 48234 new_path="$unix_path" 48235 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48236 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48237 new_path="$unix_path" 48238 fi 48239 48240 if test "x$path" != "x$new_path"; then 48241 FREETYPE_INCLUDE_PATH="$new_path" 48242 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 48243 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 48244 fi 48245 48246 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48247 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48248 48249 else 48250 # We're on a posix platform. Hooray! :) 48251 path="$FREETYPE_INCLUDE_PATH" 48252 has_space=`$ECHO "$path" | $GREP " "` 48253 if test "x$has_space" != x; then 48254 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 48255 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 48256 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48257 fi 48258 48259 # Use eval to expand a potential ~ 48260 eval path="$path" 48261 if test ! -f "$path" && test ! -d "$path"; then 48262 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48263 fi 48264 48265 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 48266 fi 48267 48268 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 48269 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 48270 else 48271 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 48272 fi 48273 fi 48274 48275 if test "x$FREETYPE_LIBS" = x; then 48276 48277 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48278 48279 # Input might be given as Windows format, start by converting to 48280 # unix format. 48281 path="$FREETYPE_LIB_PATH" 48282 new_path=`$CYGPATH -u "$path"` 48283 48284 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48285 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48286 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48287 # "foo.exe" is OK but "foo" is an error. 48288 # 48289 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48290 # It is also a way to make sure we got the proper file name for the real test later on. 48291 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48292 if test "x$test_shortpath" = x; then 48293 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48294 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48295 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 48296 fi 48297 48298 # Call helper function which possibly converts this using DOS-style short mode. 48299 # If so, the updated path is stored in $new_path. 48300 48301 input_path="$new_path" 48302 # Check if we need to convert this using DOS-style short mode. If the path 48303 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48304 # take no chances and rewrite it. 48305 # Note: m4 eats our [], so we need to use [ and ] instead. 48306 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48307 if test "x$has_forbidden_chars" != x; then 48308 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48309 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48310 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48311 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48312 # Going to short mode and back again did indeed matter. Since short mode is 48313 # case insensitive, let's make it lowercase to improve readability. 48314 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48315 # Now convert it back to Unix-stile (cygpath) 48316 input_path=`$CYGPATH -u "$shortmode_path"` 48317 new_path="$input_path" 48318 fi 48319 fi 48320 48321 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48322 if test "x$test_cygdrive_prefix" = x; then 48323 # As a simple fix, exclude /usr/bin since it's not a real path. 48324 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48325 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48326 # a path prefixed by /cygdrive for fixpath to work. 48327 new_path="$CYGWIN_ROOT_PATH$input_path" 48328 fi 48329 fi 48330 48331 48332 if test "x$path" != "x$new_path"; then 48333 FREETYPE_LIB_PATH="$new_path" 48334 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 48335 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48336 fi 48337 48338 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48339 48340 path="$FREETYPE_LIB_PATH" 48341 has_colon=`$ECHO $path | $GREP ^.:` 48342 new_path="$path" 48343 if test "x$has_colon" = x; then 48344 # Not in mixed or Windows style, start by that. 48345 new_path=`cmd //c echo $path` 48346 fi 48347 48348 48349 input_path="$new_path" 48350 # Check if we need to convert this using DOS-style short mode. If the path 48351 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48352 # take no chances and rewrite it. 48353 # Note: m4 eats our [], so we need to use [ and ] instead. 48354 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48355 if test "x$has_forbidden_chars" != x; then 48356 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48357 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48358 fi 48359 48360 48361 windows_path="$new_path" 48362 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48363 unix_path=`$CYGPATH -u "$windows_path"` 48364 new_path="$unix_path" 48365 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48366 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48367 new_path="$unix_path" 48368 fi 48369 48370 if test "x$path" != "x$new_path"; then 48371 FREETYPE_LIB_PATH="$new_path" 48372 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 48373 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48374 fi 48375 48376 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48377 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48378 48379 else 48380 # We're on a posix platform. Hooray! :) 48381 path="$FREETYPE_LIB_PATH" 48382 has_space=`$ECHO "$path" | $GREP " "` 48383 if test "x$has_space" != x; then 48384 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48385 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48386 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48387 fi 48388 48389 # Use eval to expand a potential ~ 48390 eval path="$path" 48391 if test ! -f "$path" && test ! -d "$path"; then 48392 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48393 fi 48394 48395 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 48396 fi 48397 48398 if test "x$OPENJDK_TARGET_OS" = xwindows; then 48399 FREETYPE_LIBS="$FREETYPE_LIB_PATH/$FREETYPE_BASE_NAME.lib" 48400 else 48401 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -l$FREETYPE_BASE_NAME" 48402 fi 48403 fi 48404 48405 # Try to compile it 48406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 48407 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 48408 ac_ext=cpp 48409 ac_cpp='$CXXCPP $CPPFLAGS' 48410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48413 48414 PREV_CXXCFLAGS="$CXXFLAGS" 48415 PREV_LIBS="$LIBS" 48416 PREV_CXX="$CXX" 48417 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 48418 LIBS="$LIBS $FREETYPE_LIBS" 48419 CXX="$FIXPATH $CXX" 48420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48421 /* end confdefs.h. */ 48422 48423 #include<ft2build.h> 48424 #include FT_FREETYPE_H 48425 int main () { 48426 FT_Init_FreeType(NULL); 48427 return 0; 48428 } 48429 48430 _ACEOF 48431 if ac_fn_cxx_try_link "$LINENO"; then : 48432 48433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48434 $as_echo "yes" >&6; } 48435 48436 else 48437 48438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48439 $as_echo "no" >&6; } 48440 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 48441 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 48442 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 48443 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 48444 48445 48446 # Print a helpful message on how to acquire the necessary build dependency. 48447 # freetype is the help tag: freetype, cups, pulse, alsa etc 48448 MISSING_DEPENDENCY=freetype 48449 48450 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48451 cygwin_help $MISSING_DEPENDENCY 48452 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48453 msys_help $MISSING_DEPENDENCY 48454 else 48455 PKGHANDLER_COMMAND= 48456 48457 case $PKGHANDLER in 48458 apt-get) 48459 apt_help $MISSING_DEPENDENCY ;; 48460 yum) 48461 yum_help $MISSING_DEPENDENCY ;; 48462 port) 48463 port_help $MISSING_DEPENDENCY ;; 48464 pkgutil) 48465 pkgutil_help $MISSING_DEPENDENCY ;; 48466 pkgadd) 48467 pkgadd_help $MISSING_DEPENDENCY ;; 48468 esac 48469 48470 if test "x$PKGHANDLER_COMMAND" != x; then 48471 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48472 fi 48473 fi 48474 48475 48476 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 48477 48478 48479 fi 48480 rm -f core conftest.err conftest.$ac_objext \ 48481 conftest$ac_exeext conftest.$ac_ext 48482 CXXCFLAGS="$PREV_CXXFLAGS" 48483 LIBS="$PREV_LIBS" 48484 CXX="$PREV_CXX" 48485 ac_ext=cpp 48486 ac_cpp='$CXXCPP $CPPFLAGS' 48487 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48488 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48489 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48490 48491 48492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 48493 $as_echo_n "checking if we should bundle freetype... " >&6; } 48494 if test "x$BUNDLE_FREETYPE" = xyes; then 48495 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 48496 fi 48497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 48498 $as_echo "$BUNDLE_FREETYPE" >&6; } 48499 48500 fi # end freetype needed 48501 48502 48503 48504 48505 48506 48507 48508 ############################################################################### 48509 # 48510 # Check for alsa headers and libraries. Used on Linux/GNU systems. 48511 # 48512 48513 # Check whether --with-alsa was given. 48514 if test "${with_alsa+set}" = set; then : 48515 withval=$with_alsa; 48516 fi 48517 48518 48519 # Check whether --with-alsa-include was given. 48520 if test "${with_alsa_include+set}" = set; then : 48521 withval=$with_alsa_include; 48522 fi 48523 48524 48525 # Check whether --with-alsa-lib was given. 48526 if test "${with_alsa_lib+set}" = set; then : 48527 withval=$with_alsa_lib; 48528 fi 48529 48530 48531 if test "x$ALSA_NOT_NEEDED" = xyes; then 48532 if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then 48533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5 48534 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;} 48535 fi 48536 ALSA_CFLAGS= 48537 ALSA_LIBS= 48538 else 48539 ALSA_FOUND=no 48540 48541 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 48542 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 48543 fi 48544 48545 if test "x${with_alsa}" != x; then 48546 ALSA_LIBS="-L${with_alsa}/lib -lasound" 48547 ALSA_CFLAGS="-I${with_alsa}/include" 48548 ALSA_FOUND=yes 48549 fi 48550 if test "x${with_alsa_include}" != x; then 48551 ALSA_CFLAGS="-I${with_alsa_include}" 48552 ALSA_FOUND=yes 48553 fi 48554 if test "x${with_alsa_lib}" != x; then 48555 ALSA_LIBS="-L${with_alsa_lib} -lasound" 48556 ALSA_FOUND=yes 48557 fi 48558 if test "x$ALSA_FOUND" = xno; then 48559 48560 48561 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 48562 # Source the builddeps file again, to make sure it uses the latest variables! 48563 . $builddepsfile 48564 # Look for a target and build machine specific resource! 48565 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 48566 if test "x$resource" = x; then 48567 # Ok, lets instead look for a target specific resource 48568 eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}} 48569 fi 48570 if test "x$resource" = x; then 48571 # Ok, lets instead look for a build specific resource 48572 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}} 48573 fi 48574 if test "x$resource" = x; then 48575 # Ok, lets instead look for a generic resource 48576 # (The alsa comes from M4 and not the shell, thus no need for eval here.) 48577 resource=${builddep_alsa} 48578 fi 48579 if test "x$resource" != x; then 48580 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5 48581 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;} 48582 # If the resource in the builddeps.conf file is an existing directory, 48583 # for example /java/linux/cups 48584 if test -d ${resource}; then 48585 depdir=${resource} 48586 else 48587 48588 # alsa is for example mymodule 48589 # $resource is for example libs/general/libmymod_1_2_3.zip 48590 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 48591 # $with_builddeps_dir is for example /localhome/builddeps 48592 # depdir is the name of the variable into which we store the depdir, eg MYMOD 48593 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 48594 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 48595 filename=`basename $resource` 48596 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 48597 filebase=${filename%%.*} 48598 extension=${filename#*.} 48599 installdir=$with_builddeps_dir/$filebase 48600 if test ! -f $installdir/$filename.unpacked; then 48601 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5 48602 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;} 48603 if test ! -d $installdir; then 48604 mkdir -p $installdir 48605 fi 48606 if test ! -d $installdir; then 48607 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 48608 fi 48609 tmpfile=`mktemp $installdir/alsa.XXXXXXXXX` 48610 touch $tmpfile 48611 if test ! -f $tmpfile; then 48612 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 48613 fi 48614 48615 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 48616 # $tmpfile is the local file name for the downloaded file. 48617 VALID_TOOL=no 48618 if test "x$BDEPS_FTP" = xwget; then 48619 VALID_TOOL=yes 48620 wget -O $tmpfile $with_builddeps_server/$resource 48621 fi 48622 if test "x$BDEPS_FTP" = xlftp; then 48623 VALID_TOOL=yes 48624 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 48625 fi 48626 if test "x$BDEPS_FTP" = xftp; then 48627 VALID_TOOL=yes 48628 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 48629 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 48630 FTPUSERPWD=${FTPSERVER%%@*} 48631 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 48632 FTPUSER=${userpwd%%:*} 48633 FTPPWD=${userpwd#*@} 48634 FTPSERVER=${FTPSERVER#*@} 48635 else 48636 FTPUSER=ftp 48637 FTPPWD=ftp 48638 fi 48639 # the "pass" command does not work on some 48640 # ftp clients (read ftp.exe) but if it works, 48641 # passive mode is better! 48642 ( \ 48643 echo "user $FTPUSER $FTPPWD" ; \ 48644 echo "pass" ; \ 48645 echo "bin" ; \ 48646 echo "get $FTPPATH $tmpfile" ; \ 48647 ) | ftp -in $FTPSERVER 48648 fi 48649 if test "x$VALID_TOOL" != xyes; then 48650 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 48651 fi 48652 48653 mv $tmpfile $installdir/$filename 48654 if test ! -s $installdir/$filename; then 48655 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 48656 fi 48657 case "$extension" in 48658 zip) echo "Unzipping $installdir/$filename..." 48659 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 48660 ;; 48661 tar.gz) echo "Untaring $installdir/$filename..." 48662 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 48663 ;; 48664 tgz) echo "Untaring $installdir/$filename..." 48665 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 48666 ;; 48667 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 48668 ;; 48669 esac 48670 fi 48671 if test -f $installdir/$filename.unpacked; then 48672 depdir=$installdir 48673 fi 48674 48675 fi 48676 # Source the builddeps file again, because in the previous command, the depdir 48677 # was updated to point at the current build dependency install directory. 48678 . $builddepsfile 48679 # Now extract variables from the builddeps.conf files. 48680 theroot=${builddep_alsa_ROOT} 48681 thecflags=${builddep_alsa_CFLAGS} 48682 thelibs=${builddep_alsa_LIBS} 48683 if test "x$depdir" = x; then 48684 as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5 48685 fi 48686 ALSA=$depdir 48687 if test "x$theroot" != x; then 48688 ALSA="$theroot" 48689 fi 48690 if test "x$thecflags" != x; then 48691 ALSA_CFLAGS="$thecflags" 48692 fi 48693 if test "x$thelibs" != x; then 48694 ALSA_LIBS="$thelibs" 48695 fi 48696 ALSA_FOUND=yes 48697 else ALSA_FOUND=no 48698 48699 fi 48700 else ALSA_FOUND=no 48701 48702 fi 48703 48704 fi 48705 # Do not try pkg-config if we have a sysroot set. 48706 if test "x$SYSROOT" = x; then 48707 if test "x$ALSA_FOUND" = xno; then 48708 48709 pkg_failed=no 48710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 48711 $as_echo_n "checking for ALSA... " >&6; } 48712 48713 if test -n "$ALSA_CFLAGS"; then 48714 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 48715 elif test -n "$PKG_CONFIG"; then 48716 if test -n "$PKG_CONFIG" && \ 48717 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 48718 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 48719 ac_status=$? 48720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48721 test $ac_status = 0; }; then 48722 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 48723 else 48724 pkg_failed=yes 48725 fi 48726 else 48727 pkg_failed=untried 48728 fi 48729 if test -n "$ALSA_LIBS"; then 48730 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 48731 elif test -n "$PKG_CONFIG"; then 48732 if test -n "$PKG_CONFIG" && \ 48733 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 48734 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 48735 ac_status=$? 48736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48737 test $ac_status = 0; }; then 48738 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 48739 else 48740 pkg_failed=yes 48741 fi 48742 else 48743 pkg_failed=untried 48744 fi 48745 48746 48747 48748 if test $pkg_failed = yes; then 48749 48750 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 48751 _pkg_short_errors_supported=yes 48752 else 48753 _pkg_short_errors_supported=no 48754 fi 48755 if test $_pkg_short_errors_supported = yes; then 48756 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 48757 else 48758 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 48759 fi 48760 # Put the nasty error message in config.log where it belongs 48761 echo "$ALSA_PKG_ERRORS" >&5 48762 48763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48764 $as_echo "no" >&6; } 48765 ALSA_FOUND=no 48766 elif test $pkg_failed = untried; then 48767 ALSA_FOUND=no 48768 else 48769 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 48770 ALSA_LIBS=$pkg_cv_ALSA_LIBS 48771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48772 $as_echo "yes" >&6; } 48773 ALSA_FOUND=yes 48774 fi 48775 fi 48776 fi 48777 if test "x$ALSA_FOUND" = xno; then 48778 for ac_header in alsa/asoundlib.h 48779 do : 48780 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 48781 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 48782 cat >>confdefs.h <<_ACEOF 48783 #define HAVE_ALSA_ASOUNDLIB_H 1 48784 _ACEOF 48785 48786 ALSA_FOUND=yes 48787 ALSA_CFLAGS=-Iignoreme 48788 ALSA_LIBS=-lasound 48789 DEFAULT_ALSA=yes 48790 48791 else 48792 ALSA_FOUND=no 48793 fi 48794 48795 done 48796 48797 fi 48798 if test "x$ALSA_FOUND" = xno; then 48799 48800 # Print a helpful message on how to acquire the necessary build dependency. 48801 # alsa is the help tag: freetype, cups, pulse, alsa etc 48802 MISSING_DEPENDENCY=alsa 48803 48804 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48805 cygwin_help $MISSING_DEPENDENCY 48806 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48807 msys_help $MISSING_DEPENDENCY 48808 else 48809 PKGHANDLER_COMMAND= 48810 48811 case $PKGHANDLER in 48812 apt-get) 48813 apt_help $MISSING_DEPENDENCY ;; 48814 yum) 48815 yum_help $MISSING_DEPENDENCY ;; 48816 port) 48817 port_help $MISSING_DEPENDENCY ;; 48818 pkgutil) 48819 pkgutil_help $MISSING_DEPENDENCY ;; 48820 pkgadd) 48821 pkgadd_help $MISSING_DEPENDENCY ;; 48822 esac 48823 48824 if test "x$PKGHANDLER_COMMAND" != x; then 48825 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48826 fi 48827 fi 48828 48829 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5 48830 fi 48831 fi 48832 48833 48834 48835 48836 48837 48838 ############################################################################### 48839 # 48840 # Check for the jpeg library 48841 # 48842 48843 48844 # Check whether --with-libjpeg was given. 48845 if test "${with_libjpeg+set}" = set; then : 48846 withval=$with_libjpeg; 48847 fi 48848 48849 48850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 48851 $as_echo_n "checking for which libjpeg to use... " >&6; } 48852 48853 # default is bundled 48854 DEFAULT_LIBJPEG=bundled 48855 48856 # 48857 # if user didn't specify, use DEFAULT_LIBJPEG 48858 # 48859 if test "x${with_libjpeg}" = "x"; then 48860 with_libjpeg=${DEFAULT_LIBJPEG} 48861 fi 48862 48863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 48864 $as_echo "${with_libjpeg}" >&6; } 48865 48866 if test "x${with_libjpeg}" = "xbundled"; then 48867 USE_EXTERNAL_LIBJPEG=false 48868 elif test "x${with_libjpeg}" = "xsystem"; then 48869 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 48870 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 48871 48872 else 48873 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 48874 fi 48875 48876 48877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 48878 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 48879 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 48880 $as_echo_n "(cached) " >&6 48881 else 48882 ac_check_lib_save_LIBS=$LIBS 48883 LIBS="-ljpeg $LIBS" 48884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48885 /* end confdefs.h. */ 48886 48887 /* Override any GCC internal prototype to avoid an error. 48888 Use char because int might match the return type of a GCC 48889 builtin and then its argument prototype would still apply. */ 48890 #ifdef __cplusplus 48891 extern "C" 48892 #endif 48893 char jpeg_CreateDecompress (); 48894 int 48895 main () 48896 { 48897 return jpeg_CreateDecompress (); 48898 ; 48899 return 0; 48900 } 48901 _ACEOF 48902 if ac_fn_cxx_try_link "$LINENO"; then : 48903 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 48904 else 48905 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 48906 fi 48907 rm -f core conftest.err conftest.$ac_objext \ 48908 conftest$ac_exeext conftest.$ac_ext 48909 LIBS=$ac_check_lib_save_LIBS 48910 fi 48911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 48912 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 48913 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 48914 cat >>confdefs.h <<_ACEOF 48915 #define HAVE_LIBJPEG 1 48916 _ACEOF 48917 48918 LIBS="-ljpeg $LIBS" 48919 48920 else 48921 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 48922 fi 48923 48924 48925 USE_EXTERNAL_LIBJPEG=true 48926 else 48927 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 48928 fi 48929 48930 48931 48932 ############################################################################### 48933 # 48934 # Check for the gif library 48935 # 48936 48937 48938 # Check whether --with-giflib was given. 48939 if test "${with_giflib+set}" = set; then : 48940 withval=$with_giflib; 48941 fi 48942 48943 48944 48945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 48946 $as_echo_n "checking for which giflib to use... " >&6; } 48947 48948 # default is bundled 48949 DEFAULT_GIFLIB=bundled 48950 48951 # 48952 # if user didn't specify, use DEFAULT_GIFLIB 48953 # 48954 if test "x${with_giflib}" = "x"; then 48955 with_giflib=${DEFAULT_GIFLIB} 48956 fi 48957 48958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 48959 $as_echo "${with_giflib}" >&6; } 48960 48961 if test "x${with_giflib}" = "xbundled"; then 48962 USE_EXTERNAL_LIBGIF=false 48963 elif test "x${with_giflib}" = "xsystem"; then 48964 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 48965 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 48966 48967 else 48968 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 48969 fi 48970 48971 48972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 48973 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 48974 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 48975 $as_echo_n "(cached) " >&6 48976 else 48977 ac_check_lib_save_LIBS=$LIBS 48978 LIBS="-lgif $LIBS" 48979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48980 /* end confdefs.h. */ 48981 48982 /* Override any GCC internal prototype to avoid an error. 48983 Use char because int might match the return type of a GCC 48984 builtin and then its argument prototype would still apply. */ 48985 #ifdef __cplusplus 48986 extern "C" 48987 #endif 48988 char DGifGetCode (); 48989 int 48990 main () 48991 { 48992 return DGifGetCode (); 48993 ; 48994 return 0; 48995 } 48996 _ACEOF 48997 if ac_fn_cxx_try_link "$LINENO"; then : 48998 ac_cv_lib_gif_DGifGetCode=yes 48999 else 49000 ac_cv_lib_gif_DGifGetCode=no 49001 fi 49002 rm -f core conftest.err conftest.$ac_objext \ 49003 conftest$ac_exeext conftest.$ac_ext 49004 LIBS=$ac_check_lib_save_LIBS 49005 fi 49006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 49007 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 49008 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 49009 cat >>confdefs.h <<_ACEOF 49010 #define HAVE_LIBGIF 1 49011 _ACEOF 49012 49013 LIBS="-lgif $LIBS" 49014 49015 else 49016 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 49017 fi 49018 49019 49020 USE_EXTERNAL_LIBGIF=true 49021 else 49022 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 49023 fi 49024 49025 49026 ############################################################################### 49027 # 49028 # Check for the lcms2 library 49029 # 49030 49031 49032 # Check whether --with-lcms was given. 49033 if test "${with_lcms+set}" = set; then : 49034 withval=$with_lcms; 49035 fi 49036 49037 49038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 49039 $as_echo_n "checking for which lcms to use... " >&6; } 49040 49041 DEFAULT_LCMS=bundled 49042 49043 # 49044 # If user didn't specify, use DEFAULT_LCMS 49045 # 49046 if test "x${with_lcms}" = "x"; then 49047 with_lcms=${DEFAULT_LCMS} 49048 fi 49049 49050 if test "x${with_lcms}" = "xbundled"; then 49051 USE_EXTERNAL_LCMS=false 49052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 49053 $as_echo "bundled" >&6; } 49054 elif test "x${with_lcms}" = "xsystem"; then 49055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 49056 $as_echo "system" >&6; } 49057 49058 pkg_failed=no 49059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 49060 $as_echo_n "checking for LCMS... " >&6; } 49061 49062 if test -n "$LCMS_CFLAGS"; then 49063 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 49064 elif test -n "$PKG_CONFIG"; then 49065 if test -n "$PKG_CONFIG" && \ 49066 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 49067 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 49068 ac_status=$? 49069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49070 test $ac_status = 0; }; then 49071 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 49072 else 49073 pkg_failed=yes 49074 fi 49075 else 49076 pkg_failed=untried 49077 fi 49078 if test -n "$LCMS_LIBS"; then 49079 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 49080 elif test -n "$PKG_CONFIG"; then 49081 if test -n "$PKG_CONFIG" && \ 49082 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 49083 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 49084 ac_status=$? 49085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49086 test $ac_status = 0; }; then 49087 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 49088 else 49089 pkg_failed=yes 49090 fi 49091 else 49092 pkg_failed=untried 49093 fi 49094 49095 49096 49097 if test $pkg_failed = yes; then 49098 49099 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 49100 _pkg_short_errors_supported=yes 49101 else 49102 _pkg_short_errors_supported=no 49103 fi 49104 if test $_pkg_short_errors_supported = yes; then 49105 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 49106 else 49107 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 49108 fi 49109 # Put the nasty error message in config.log where it belongs 49110 echo "$LCMS_PKG_ERRORS" >&5 49111 49112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49113 $as_echo "no" >&6; } 49114 LCMS_FOUND=no 49115 elif test $pkg_failed = untried; then 49116 LCMS_FOUND=no 49117 else 49118 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 49119 LCMS_LIBS=$pkg_cv_LCMS_LIBS 49120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49121 $as_echo "yes" >&6; } 49122 LCMS_FOUND=yes 49123 fi 49124 if test "x${LCMS_FOUND}" = "xyes"; then 49125 USE_EXTERNAL_LCMS=true 49126 else 49127 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 49128 fi 49129 else 49130 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 49131 fi 49132 49133 49134 49135 ############################################################################### 49136 # 49137 # Check for the png library 49138 # 49139 49140 49141 # Check whether --with-libpng was given. 49142 if test "${with_libpng+set}" = set; then : 49143 withval=$with_libpng; 49144 fi 49145 49146 49147 49148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 49149 $as_echo_n "checking for which libpng to use... " >&6; } 49150 49151 # default is bundled 49152 DEFAULT_LIBPNG=bundled 49153 49154 # 49155 # if user didn't specify, use DEFAULT_LIBPNG 49156 # 49157 if test "x${with_libpng}" = "x"; then 49158 with_libpng=${DEFAULT_LIBPNG} 49159 fi 49160 49161 if test "x${with_libpng}" = "xbundled"; then 49162 USE_EXTERNAL_LIBPNG=false 49163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 49164 $as_echo "bundled" >&6; } 49165 elif test "x${with_libpng}" = "xsystem"; then 49166 49167 pkg_failed=no 49168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 49169 $as_echo_n "checking for PNG... " >&6; } 49170 49171 if test -n "$PNG_CFLAGS"; then 49172 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 49173 elif test -n "$PKG_CONFIG"; then 49174 if test -n "$PKG_CONFIG" && \ 49175 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 49176 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 49177 ac_status=$? 49178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49179 test $ac_status = 0; }; then 49180 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 49181 else 49182 pkg_failed=yes 49183 fi 49184 else 49185 pkg_failed=untried 49186 fi 49187 if test -n "$PNG_LIBS"; then 49188 pkg_cv_PNG_LIBS="$PNG_LIBS" 49189 elif test -n "$PKG_CONFIG"; then 49190 if test -n "$PKG_CONFIG" && \ 49191 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 49192 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 49193 ac_status=$? 49194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49195 test $ac_status = 0; }; then 49196 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 49197 else 49198 pkg_failed=yes 49199 fi 49200 else 49201 pkg_failed=untried 49202 fi 49203 49204 49205 49206 if test $pkg_failed = yes; then 49207 49208 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 49209 _pkg_short_errors_supported=yes 49210 else 49211 _pkg_short_errors_supported=no 49212 fi 49213 if test $_pkg_short_errors_supported = yes; then 49214 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 49215 else 49216 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 49217 fi 49218 # Put the nasty error message in config.log where it belongs 49219 echo "$PNG_PKG_ERRORS" >&5 49220 49221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49222 $as_echo "no" >&6; } 49223 LIBPNG_FOUND=no 49224 elif test $pkg_failed = untried; then 49225 LIBPNG_FOUND=no 49226 else 49227 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 49228 PNG_LIBS=$pkg_cv_PNG_LIBS 49229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49230 $as_echo "yes" >&6; } 49231 LIBPNG_FOUND=yes 49232 fi 49233 if test "x${LIBPNG_FOUND}" = "xyes"; then 49234 USE_EXTERNAL_LIBPNG=true 49235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 49236 $as_echo "system" >&6; } 49237 else 49238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 49239 $as_echo "system not found" >&6; } 49240 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 49241 fi 49242 else 49243 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 49244 fi 49245 49246 49247 ############################################################################### 49248 # 49249 # Check for the zlib library 49250 # 49251 49252 49253 # Check whether --with-zlib was given. 49254 if test "${with_zlib+set}" = set; then : 49255 withval=$with_zlib; 49256 fi 49257 49258 49259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 49260 $as_echo_n "checking for compress in -lz... " >&6; } 49261 if ${ac_cv_lib_z_compress+:} false; then : 49262 $as_echo_n "(cached) " >&6 49263 else 49264 ac_check_lib_save_LIBS=$LIBS 49265 LIBS="-lz $LIBS" 49266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49267 /* end confdefs.h. */ 49268 49269 /* Override any GCC internal prototype to avoid an error. 49270 Use char because int might match the return type of a GCC 49271 builtin and then its argument prototype would still apply. */ 49272 #ifdef __cplusplus 49273 extern "C" 49274 #endif 49275 char compress (); 49276 int 49277 main () 49278 { 49279 return compress (); 49280 ; 49281 return 0; 49282 } 49283 _ACEOF 49284 if ac_fn_cxx_try_link "$LINENO"; then : 49285 ac_cv_lib_z_compress=yes 49286 else 49287 ac_cv_lib_z_compress=no 49288 fi 49289 rm -f core conftest.err conftest.$ac_objext \ 49290 conftest$ac_exeext conftest.$ac_ext 49291 LIBS=$ac_check_lib_save_LIBS 49292 fi 49293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 49294 $as_echo "$ac_cv_lib_z_compress" >&6; } 49295 if test "x$ac_cv_lib_z_compress" = xyes; then : 49296 ZLIB_FOUND=yes 49297 else 49298 ZLIB_FOUND=no 49299 fi 49300 49301 49302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 49303 $as_echo_n "checking for which zlib to use... " >&6; } 49304 49305 DEFAULT_ZLIB=bundled 49306 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49307 # 49308 # On macosx default is system...on others default is 49309 # 49310 DEFAULT_ZLIB=system 49311 fi 49312 49313 if test "x${ZLIB_FOUND}" != "xyes"; then 49314 # 49315 # If we don't find any system...set default to bundled 49316 # 49317 DEFAULT_ZLIB=bundled 49318 fi 49319 49320 # 49321 # If user didn't specify, use DEFAULT_ZLIB 49322 # 49323 if test "x${with_zlib}" = "x"; then 49324 with_zlib=${DEFAULT_ZLIB} 49325 fi 49326 49327 if test "x${with_zlib}" = "xbundled"; then 49328 USE_EXTERNAL_LIBZ=false 49329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 49330 $as_echo "bundled" >&6; } 49331 elif test "x${with_zlib}" = "xsystem"; then 49332 if test "x${ZLIB_FOUND}" = "xyes"; then 49333 USE_EXTERNAL_LIBZ=true 49334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 49335 $as_echo "system" >&6; } 49336 else 49337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 49338 $as_echo "system not found" >&6; } 49339 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 49340 fi 49341 else 49342 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 49343 fi 49344 49345 49346 49347 ############################################################################### 49348 LIBZIP_CAN_USE_MMAP=true 49349 49350 49351 49352 ############################################################################### 49353 # 49354 # Check if altzone exists in time.h 49355 # 49356 49357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49358 /* end confdefs.h. */ 49359 #include <time.h> 49360 int 49361 main () 49362 { 49363 return (int)altzone; 49364 ; 49365 return 0; 49366 } 49367 _ACEOF 49368 if ac_fn_cxx_try_link "$LINENO"; then : 49369 has_altzone=yes 49370 else 49371 has_altzone=no 49372 fi 49373 rm -f core conftest.err conftest.$ac_objext \ 49374 conftest$ac_exeext conftest.$ac_ext 49375 if test "x$has_altzone" = xyes; then 49376 49377 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 49378 49379 fi 49380 49381 ############################################################################### 49382 # 49383 # Check the maths library 49384 # 49385 49386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 49387 $as_echo_n "checking for cos in -lm... " >&6; } 49388 if ${ac_cv_lib_m_cos+:} false; then : 49389 $as_echo_n "(cached) " >&6 49390 else 49391 ac_check_lib_save_LIBS=$LIBS 49392 LIBS="-lm $LIBS" 49393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49394 /* end confdefs.h. */ 49395 49396 /* Override any GCC internal prototype to avoid an error. 49397 Use char because int might match the return type of a GCC 49398 builtin and then its argument prototype would still apply. */ 49399 #ifdef __cplusplus 49400 extern "C" 49401 #endif 49402 char cos (); 49403 int 49404 main () 49405 { 49406 return cos (); 49407 ; 49408 return 0; 49409 } 49410 _ACEOF 49411 if ac_fn_cxx_try_link "$LINENO"; then : 49412 ac_cv_lib_m_cos=yes 49413 else 49414 ac_cv_lib_m_cos=no 49415 fi 49416 rm -f core conftest.err conftest.$ac_objext \ 49417 conftest$ac_exeext conftest.$ac_ext 49418 LIBS=$ac_check_lib_save_LIBS 49419 fi 49420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 49421 $as_echo "$ac_cv_lib_m_cos" >&6; } 49422 if test "x$ac_cv_lib_m_cos" = xyes; then : 49423 cat >>confdefs.h <<_ACEOF 49424 #define HAVE_LIBM 1 49425 _ACEOF 49426 49427 LIBS="-lm $LIBS" 49428 49429 else 49430 49431 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 49432 $as_echo "$as_me: Maths library was not found" >&6;} 49433 49434 49435 fi 49436 49437 49438 49439 ############################################################################### 49440 # 49441 # Check for libdl.so 49442 49443 save_LIBS="$LIBS" 49444 LIBS="" 49445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 49446 $as_echo_n "checking for dlopen in -ldl... " >&6; } 49447 if ${ac_cv_lib_dl_dlopen+:} false; then : 49448 $as_echo_n "(cached) " >&6 49449 else 49450 ac_check_lib_save_LIBS=$LIBS 49451 LIBS="-ldl $LIBS" 49452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49453 /* end confdefs.h. */ 49454 49455 /* Override any GCC internal prototype to avoid an error. 49456 Use char because int might match the return type of a GCC 49457 builtin and then its argument prototype would still apply. */ 49458 #ifdef __cplusplus 49459 extern "C" 49460 #endif 49461 char dlopen (); 49462 int 49463 main () 49464 { 49465 return dlopen (); 49466 ; 49467 return 0; 49468 } 49469 _ACEOF 49470 if ac_fn_cxx_try_link "$LINENO"; then : 49471 ac_cv_lib_dl_dlopen=yes 49472 else 49473 ac_cv_lib_dl_dlopen=no 49474 fi 49475 rm -f core conftest.err conftest.$ac_objext \ 49476 conftest$ac_exeext conftest.$ac_ext 49477 LIBS=$ac_check_lib_save_LIBS 49478 fi 49479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 49480 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 49481 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 49482 cat >>confdefs.h <<_ACEOF 49483 #define HAVE_LIBDL 1 49484 _ACEOF 49485 49486 LIBS="-ldl $LIBS" 49487 49488 fi 49489 49490 LIBDL="$LIBS" 49491 49492 LIBS="$save_LIBS" 49493 49494 49495 ############################################################################### 49496 # 49497 # statically link libstdc++ before C++ ABI is stablized on Linux unless 49498 # dynamic build is configured on command line. 49499 # 49500 49501 # Check whether --with-stdc++lib was given. 49502 if test "${with_stdc__lib+set}" = set; then : 49503 withval=$with_stdc__lib; 49504 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 49505 && test "x$with_stdc__lib" != xdefault; then 49506 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 49507 fi 49508 49509 else 49510 with_stdc__lib=default 49511 49512 fi 49513 49514 49515 if test "x$OPENJDK_TARGET_OS" = xlinux; then 49516 # Test if -lstdc++ works. 49517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 49518 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 49519 ac_ext=cpp 49520 ac_cpp='$CXXCPP $CPPFLAGS' 49521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49524 49525 OLD_CXXFLAGS="$CXXFLAGS" 49526 CXXFLAGS="$CXXFLAGS -lstdc++" 49527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49528 /* end confdefs.h. */ 49529 49530 int 49531 main () 49532 { 49533 return 0; 49534 ; 49535 return 0; 49536 } 49537 _ACEOF 49538 if ac_fn_cxx_try_link "$LINENO"; then : 49539 has_dynamic_libstdcxx=yes 49540 else 49541 has_dynamic_libstdcxx=no 49542 fi 49543 rm -f core conftest.err conftest.$ac_objext \ 49544 conftest$ac_exeext conftest.$ac_ext 49545 CXXFLAGS="$OLD_CXXFLAGS" 49546 ac_ext=cpp 49547 ac_cpp='$CXXCPP $CPPFLAGS' 49548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49551 49552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 49553 $as_echo "$has_dynamic_libstdcxx" >&6; } 49554 49555 # Test if stdc++ can be linked statically. 49556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 49557 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 49558 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 49559 ac_ext=cpp 49560 ac_cpp='$CXXCPP $CPPFLAGS' 49561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49564 49565 OLD_LIBS="$LIBS" 49566 OLD_CXX="$CXX" 49567 LIBS="$STATIC_STDCXX_FLAGS" 49568 CXX="$CC" 49569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49570 /* end confdefs.h. */ 49571 49572 int 49573 main () 49574 { 49575 return 0; 49576 ; 49577 return 0; 49578 } 49579 _ACEOF 49580 if ac_fn_cxx_try_link "$LINENO"; then : 49581 has_static_libstdcxx=yes 49582 else 49583 has_static_libstdcxx=no 49584 fi 49585 rm -f core conftest.err conftest.$ac_objext \ 49586 conftest$ac_exeext conftest.$ac_ext 49587 LIBS="$OLD_LIBS" 49588 CXX="$OLD_CXX" 49589 ac_ext=cpp 49590 ac_cpp='$CXXCPP $CPPFLAGS' 49591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49594 49595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 49596 $as_echo "$has_static_libstdcxx" >&6; } 49597 49598 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 49599 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 49600 fi 49601 49602 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 49603 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 49604 fi 49605 49606 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 49607 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 49608 fi 49609 49610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 49611 $as_echo_n "checking how to link with libstdc++... " >&6; } 49612 # If dynamic was requested, it's available since it would fail above otherwise. 49613 # If dynamic wasn't requested, go with static unless it isn't available. 49614 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49615 LIBCXX="$LIBCXX -lstdc++" 49616 LDCXX="$CXX" 49617 STATIC_CXX_SETTING="STATIC_CXX=false" 49618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 49619 $as_echo "dynamic" >&6; } 49620 else 49621 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 49622 LDCXX="$CC" 49623 STATIC_CXX_SETTING="STATIC_CXX=true" 49624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 49625 $as_echo "static" >&6; } 49626 fi 49627 fi 49628 49629 49630 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49631 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 49632 49633 pkg_failed=no 49634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 49635 $as_echo_n "checking for LIBFFI... " >&6; } 49636 49637 if test -n "$LIBFFI_CFLAGS"; then 49638 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 49639 elif test -n "$PKG_CONFIG"; then 49640 if test -n "$PKG_CONFIG" && \ 49641 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 49642 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 49643 ac_status=$? 49644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49645 test $ac_status = 0; }; then 49646 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 49647 else 49648 pkg_failed=yes 49649 fi 49650 else 49651 pkg_failed=untried 49652 fi 49653 if test -n "$LIBFFI_LIBS"; then 49654 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 49655 elif test -n "$PKG_CONFIG"; then 49656 if test -n "$PKG_CONFIG" && \ 49657 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 49658 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 49659 ac_status=$? 49660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49661 test $ac_status = 0; }; then 49662 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 49663 else 49664 pkg_failed=yes 49665 fi 49666 else 49667 pkg_failed=untried 49668 fi 49669 49670 49671 49672 if test $pkg_failed = yes; then 49673 49674 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 49675 _pkg_short_errors_supported=yes 49676 else 49677 _pkg_short_errors_supported=no 49678 fi 49679 if test $_pkg_short_errors_supported = yes; then 49680 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 49681 else 49682 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 49683 fi 49684 # Put the nasty error message in config.log where it belongs 49685 echo "$LIBFFI_PKG_ERRORS" >&5 49686 49687 as_fn_error $? "Package requirements (libffi) were not met: 49688 49689 $LIBFFI_PKG_ERRORS 49690 49691 Consider adjusting the PKG_CONFIG_PATH environment variable if you 49692 installed software in a non-standard prefix. 49693 49694 Alternatively, you may set the environment variables LIBFFI_CFLAGS 49695 and LIBFFI_LIBS to avoid the need to call pkg-config. 49696 See the pkg-config man page for more details. 49697 " "$LINENO" 5 49698 elif test $pkg_failed = untried; then 49699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 49700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 49701 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 49702 is in your PATH or set the PKG_CONFIG environment variable to the full 49703 path to pkg-config. 49704 49705 Alternatively, you may set the environment variables LIBFFI_CFLAGS 49706 and LIBFFI_LIBS to avoid the need to call pkg-config. 49707 See the pkg-config man page for more details. 49708 49709 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 49710 See \`config.log' for more details" "$LINENO" 5; } 49711 else 49712 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 49713 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 49714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49715 $as_echo "yes" >&6; } 49716 : 49717 fi 49718 49719 fi 49720 49721 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49722 # Extract the first word of "llvm-config", so it can be a program name with args. 49723 set dummy llvm-config; ac_word=$2 49724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49725 $as_echo_n "checking for $ac_word... " >&6; } 49726 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 49727 $as_echo_n "(cached) " >&6 49728 else 49729 if test -n "$LLVM_CONFIG"; then 49730 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 49731 else 49732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49733 for as_dir in $PATH 49734 do 49735 IFS=$as_save_IFS 49736 test -z "$as_dir" && as_dir=. 49737 for ac_exec_ext in '' $ac_executable_extensions; do 49738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49739 ac_cv_prog_LLVM_CONFIG="llvm-config" 49740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49741 break 2 49742 fi 49743 done 49744 done 49745 IFS=$as_save_IFS 49746 49747 fi 49748 fi 49749 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 49750 if test -n "$LLVM_CONFIG"; then 49751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 49752 $as_echo "$LLVM_CONFIG" >&6; } 49753 else 49754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49755 $as_echo "no" >&6; } 49756 fi 49757 49758 49759 49760 if test "x$LLVM_CONFIG" != xllvm-config; then 49761 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 49762 fi 49763 49764 llvm_components="jit mcjit engine nativecodegen native" 49765 unset LLVM_CFLAGS 49766 for flag in $("$LLVM_CONFIG" --cxxflags); do 49767 if echo "${flag}" | grep -q '^-[ID]'; then 49768 if test "${flag}" != "-D_DEBUG" ; then 49769 if test "${LLVM_CFLAGS}" != "" ; then 49770 LLVM_CFLAGS="${LLVM_CFLAGS} " 49771 fi 49772 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 49773 fi 49774 fi 49775 done 49776 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') 49777 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 49778 49779 unset LLVM_LDFLAGS 49780 for flag in $("${LLVM_CONFIG}" --ldflags); do 49781 if echo "${flag}" | grep -q '^-L'; then 49782 if test "${LLVM_LDFLAGS}" != ""; then 49783 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 49784 fi 49785 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 49786 fi 49787 done 49788 49789 unset LLVM_LIBS 49790 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 49791 if echo "${flag}" | grep -q '^-l'; then 49792 if test "${LLVM_LIBS}" != ""; then 49793 LLVM_LIBS="${LLVM_LIBS} " 49794 fi 49795 LLVM_LIBS="${LLVM_LIBS}${flag}" 49796 fi 49797 done 49798 49799 49800 49801 49802 fi 49803 49804 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 49805 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 49806 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 49807 fi 49808 49809 # TODO better (platform agnostic) test 49810 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then 49811 LIBCXX="-lstdc++" 49812 fi 49813 49814 49815 49816 49817 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 49818 49819 49820 # Check whether --with-msvcr-dll was given. 49821 if test "${with_msvcr_dll+set}" = set; then : 49822 withval=$with_msvcr_dll; 49823 fi 49824 49825 49826 if test "x$with_msvcr_dll" != x; then 49827 # If given explicitely by user, do not probe. If not present, fail directly. 49828 49829 POSSIBLE_MSVCR_DLL="$with_msvcr_dll" 49830 METHOD="--with-msvcr-dll" 49831 if test -e "$POSSIBLE_MSVCR_DLL"; then 49832 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49833 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49834 49835 # Need to check if the found msvcr is correct architecture 49836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49837 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49838 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49839 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49840 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49841 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49842 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49843 CORRECT_MSVCR_ARCH="PE32 executable" 49844 else 49845 CORRECT_MSVCR_ARCH="PE32+ executable" 49846 fi 49847 else 49848 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49849 CORRECT_MSVCR_ARCH=386 49850 else 49851 CORRECT_MSVCR_ARCH=x86-64 49852 fi 49853 fi 49854 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49856 $as_echo "ok" >&6; } 49857 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49859 $as_echo_n "checking for msvcr100.dll... " >&6; } 49860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49861 $as_echo "$MSVCR_DLL" >&6; } 49862 else 49863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49864 $as_echo "incorrect, ignoring" >&6; } 49865 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49866 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49867 fi 49868 fi 49869 49870 if test "x$MSVCR_DLL" = x; then 49871 as_fn_error $? "Could not find a proper msvcr100.dll as specified by --with-msvcr-dll" "$LINENO" 5 49872 fi 49873 fi 49874 49875 if test "x$MSVCR_DLL" = x; then 49876 # Probe: Using well-known location from Visual Studio 10.0 49877 if test "x$VCINSTALLDIR" != x; then 49878 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 49879 49880 windows_path="$CYGWIN_VC_INSTALL_DIR" 49881 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49882 unix_path=`$CYGPATH -u "$windows_path"` 49883 CYGWIN_VC_INSTALL_DIR="$unix_path" 49884 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49885 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49886 CYGWIN_VC_INSTALL_DIR="$unix_path" 49887 fi 49888 49889 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49890 POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC100.CRT/msvcr100.dll" 49891 else 49892 POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC100.CRT/msvcr100.dll" 49893 fi 49894 49895 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49896 METHOD="well-known location in VCINSTALLDIR" 49897 if test -e "$POSSIBLE_MSVCR_DLL"; then 49898 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49899 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49900 49901 # Need to check if the found msvcr is correct architecture 49902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49903 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49904 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49905 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49906 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49907 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49908 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49909 CORRECT_MSVCR_ARCH="PE32 executable" 49910 else 49911 CORRECT_MSVCR_ARCH="PE32+ executable" 49912 fi 49913 else 49914 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49915 CORRECT_MSVCR_ARCH=386 49916 else 49917 CORRECT_MSVCR_ARCH=x86-64 49918 fi 49919 fi 49920 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49922 $as_echo "ok" >&6; } 49923 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49925 $as_echo_n "checking for msvcr100.dll... " >&6; } 49926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49927 $as_echo "$MSVCR_DLL" >&6; } 49928 else 49929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49930 $as_echo "incorrect, ignoring" >&6; } 49931 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49932 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49933 fi 49934 fi 49935 49936 fi 49937 fi 49938 49939 if test "x$MSVCR_DLL" = x; then 49940 # Probe: Check in the Boot JDK directory. 49941 POSSIBLE_MSVCR_DLL="$BOOT_JDK/bin/msvcr100.dll" 49942 49943 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49944 METHOD="well-known location in Boot JDK" 49945 if test -e "$POSSIBLE_MSVCR_DLL"; then 49946 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49947 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49948 49949 # Need to check if the found msvcr is correct architecture 49950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49951 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49952 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49953 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49954 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49955 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49956 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49957 CORRECT_MSVCR_ARCH="PE32 executable" 49958 else 49959 CORRECT_MSVCR_ARCH="PE32+ executable" 49960 fi 49961 else 49962 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49963 CORRECT_MSVCR_ARCH=386 49964 else 49965 CORRECT_MSVCR_ARCH=x86-64 49966 fi 49967 fi 49968 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49970 $as_echo "ok" >&6; } 49971 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49973 $as_echo_n "checking for msvcr100.dll... " >&6; } 49974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49975 $as_echo "$MSVCR_DLL" >&6; } 49976 else 49977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49978 $as_echo "incorrect, ignoring" >&6; } 49979 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49980 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49981 fi 49982 fi 49983 49984 fi 49985 49986 if test "x$MSVCR_DLL" = x; then 49987 # Probe: Look in the Windows system32 directory 49988 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 49989 49990 windows_path="$CYGWIN_SYSTEMROOT" 49991 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49992 unix_path=`$CYGPATH -u "$windows_path"` 49993 CYGWIN_SYSTEMROOT="$unix_path" 49994 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49995 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49996 CYGWIN_SYSTEMROOT="$unix_path" 49997 fi 49998 49999 POSSIBLE_MSVCR_DLL="$CYGWIN_SYSTEMROOT/system32/msvcr100.dll" 50000 50001 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 50002 METHOD="well-known location in SYSTEMROOT" 50003 if test -e "$POSSIBLE_MSVCR_DLL"; then 50004 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 50005 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 50006 50007 # Need to check if the found msvcr is correct architecture 50008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 50009 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 50010 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 50011 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50012 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50013 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50014 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50015 CORRECT_MSVCR_ARCH="PE32 executable" 50016 else 50017 CORRECT_MSVCR_ARCH="PE32+ executable" 50018 fi 50019 else 50020 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50021 CORRECT_MSVCR_ARCH=386 50022 else 50023 CORRECT_MSVCR_ARCH=x86-64 50024 fi 50025 fi 50026 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50028 $as_echo "ok" >&6; } 50029 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 50030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 50031 $as_echo_n "checking for msvcr100.dll... " >&6; } 50032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 50033 $as_echo "$MSVCR_DLL" >&6; } 50034 else 50035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50036 $as_echo "incorrect, ignoring" >&6; } 50037 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 50038 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 50039 fi 50040 fi 50041 50042 fi 50043 50044 if test "x$MSVCR_DLL" = x; then 50045 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 50046 if test "x$VS100COMNTOOLS" != x; then 50047 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 50048 50049 windows_path="$CYGWIN_VS_TOOLS_DIR" 50050 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50051 unix_path=`$CYGPATH -u "$windows_path"` 50052 CYGWIN_VS_TOOLS_DIR="$unix_path" 50053 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50054 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50055 CYGWIN_VS_TOOLS_DIR="$unix_path" 50056 fi 50057 50058 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50059 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x64/ | $HEAD --lines 1` 50060 else 50061 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x86/ | $HEAD --lines 1` 50062 fi 50063 50064 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 50065 METHOD="search of VS100COMNTOOLS" 50066 if test -e "$POSSIBLE_MSVCR_DLL"; then 50067 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 50068 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 50069 50070 # Need to check if the found msvcr is correct architecture 50071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 50072 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 50073 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 50074 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50075 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50076 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50077 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50078 CORRECT_MSVCR_ARCH="PE32 executable" 50079 else 50080 CORRECT_MSVCR_ARCH="PE32+ executable" 50081 fi 50082 else 50083 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50084 CORRECT_MSVCR_ARCH=386 50085 else 50086 CORRECT_MSVCR_ARCH=x86-64 50087 fi 50088 fi 50089 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50091 $as_echo "ok" >&6; } 50092 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 50093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 50094 $as_echo_n "checking for msvcr100.dll... " >&6; } 50095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 50096 $as_echo "$MSVCR_DLL" >&6; } 50097 else 50098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50099 $as_echo "incorrect, ignoring" >&6; } 50100 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 50101 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 50102 fi 50103 fi 50104 50105 fi 50106 fi 50107 50108 if test "x$MSVCR_DLL" = x; then 50109 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 50110 # (This was the original behaviour; kept since it might turn up something) 50111 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 50112 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50113 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x64 | $HEAD --lines 1` 50114 else 50115 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 50116 if test "x$POSSIBLE_MSVCR_DLL" = x; then 50117 # We're grasping at straws now... 50118 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $HEAD --lines 1` 50119 fi 50120 fi 50121 50122 50123 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 50124 METHOD="search of VCINSTALLDIR" 50125 if test -e "$POSSIBLE_MSVCR_DLL"; then 50126 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 50127 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 50128 50129 # Need to check if the found msvcr is correct architecture 50130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 50131 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 50132 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 50133 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50134 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50135 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50136 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50137 CORRECT_MSVCR_ARCH="PE32 executable" 50138 else 50139 CORRECT_MSVCR_ARCH="PE32+ executable" 50140 fi 50141 else 50142 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50143 CORRECT_MSVCR_ARCH=386 50144 else 50145 CORRECT_MSVCR_ARCH=x86-64 50146 fi 50147 fi 50148 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50150 $as_echo "ok" >&6; } 50151 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 50152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 50153 $as_echo_n "checking for msvcr100.dll... " >&6; } 50154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 50155 $as_echo "$MSVCR_DLL" >&6; } 50156 else 50157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50158 $as_echo "incorrect, ignoring" >&6; } 50159 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 50160 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 50161 fi 50162 fi 50163 50164 fi 50165 fi 50166 50167 if test "x$MSVCR_DLL" = x; then 50168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 50169 $as_echo_n "checking for msvcr100.dll... " >&6; } 50170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50171 $as_echo "no" >&6; } 50172 as_fn_error $? "Could not find msvcr100.dll. Please specify using --with-msvcr-dll." "$LINENO" 5 50173 fi 50174 50175 50176 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50177 50178 # Input might be given as Windows format, start by converting to 50179 # unix format. 50180 path="$MSVCR_DLL" 50181 new_path=`$CYGPATH -u "$path"` 50182 50183 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50184 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50185 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50186 # "foo.exe" is OK but "foo" is an error. 50187 # 50188 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50189 # It is also a way to make sure we got the proper file name for the real test later on. 50190 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50191 if test "x$test_shortpath" = x; then 50192 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 50193 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 50194 as_fn_error $? "Cannot locate the the path of MSVCR_DLL" "$LINENO" 5 50195 fi 50196 50197 # Call helper function which possibly converts this using DOS-style short mode. 50198 # If so, the updated path is stored in $new_path. 50199 50200 input_path="$new_path" 50201 # Check if we need to convert this using DOS-style short mode. If the path 50202 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50203 # take no chances and rewrite it. 50204 # Note: m4 eats our [], so we need to use [ and ] instead. 50205 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50206 if test "x$has_forbidden_chars" != x; then 50207 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50208 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50209 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50210 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50211 # Going to short mode and back again did indeed matter. Since short mode is 50212 # case insensitive, let's make it lowercase to improve readability. 50213 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50214 # Now convert it back to Unix-stile (cygpath) 50215 input_path=`$CYGPATH -u "$shortmode_path"` 50216 new_path="$input_path" 50217 fi 50218 fi 50219 50220 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50221 if test "x$test_cygdrive_prefix" = x; then 50222 # As a simple fix, exclude /usr/bin since it's not a real path. 50223 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50224 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50225 # a path prefixed by /cygdrive for fixpath to work. 50226 new_path="$CYGWIN_ROOT_PATH$input_path" 50227 fi 50228 fi 50229 50230 50231 if test "x$path" != "x$new_path"; then 50232 MSVCR_DLL="$new_path" 50233 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 50234 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 50235 fi 50236 50237 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50238 50239 path="$MSVCR_DLL" 50240 has_colon=`$ECHO $path | $GREP ^.:` 50241 new_path="$path" 50242 if test "x$has_colon" = x; then 50243 # Not in mixed or Windows style, start by that. 50244 new_path=`cmd //c echo $path` 50245 fi 50246 50247 50248 input_path="$new_path" 50249 # Check if we need to convert this using DOS-style short mode. If the path 50250 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50251 # take no chances and rewrite it. 50252 # Note: m4 eats our [], so we need to use [ and ] instead. 50253 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50254 if test "x$has_forbidden_chars" != x; then 50255 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50256 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50257 fi 50258 50259 50260 windows_path="$new_path" 50261 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50262 unix_path=`$CYGPATH -u "$windows_path"` 50263 new_path="$unix_path" 50264 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50265 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50266 new_path="$unix_path" 50267 fi 50268 50269 if test "x$path" != "x$new_path"; then 50270 MSVCR_DLL="$new_path" 50271 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 50272 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 50273 fi 50274 50275 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50276 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50277 50278 else 50279 # We're on a posix platform. Hooray! :) 50280 path="$MSVCR_DLL" 50281 has_space=`$ECHO "$path" | $GREP " "` 50282 if test "x$has_space" != x; then 50283 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 50284 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 50285 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50286 fi 50287 50288 # Use eval to expand a potential ~ 50289 eval path="$path" 50290 if test ! -f "$path" && test ! -d "$path"; then 50291 as_fn_error $? "The path of MSVCR_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50292 fi 50293 50294 MSVCR_DLL="`cd "$path"; $THEPWDCMD -L`" 50295 fi 50296 50297 50298 50299 50300 # Check whether --with-dxsdk was given. 50301 if test "${with_dxsdk+set}" = set; then : 50302 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 50303 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 50304 fi 50305 50306 50307 50308 50309 # Check whether --with-dxsdk-lib was given. 50310 if test "${with_dxsdk_lib+set}" = set; then : 50311 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 50312 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 50313 fi 50314 50315 50316 50317 50318 # Check whether --with-dxsdk-include was given. 50319 if test "${with_dxsdk_include+set}" = set; then : 50320 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 50321 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 50322 fi 50323 50324 50325 fi 50326 50327 50328 50329 ############################################################################### 50330 # 50331 # We need to do some final tweaking, when everything else is done. 50332 # 50333 ############################################################################### 50334 50335 50336 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 50337 50338 50339 # The name of the Service Agent jar. 50340 SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}" 50341 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 50342 SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}" 50343 fi 50344 50345 50346 50347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 50348 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 50349 50350 if test -d "${SRC_ROOT}/jdk/src/jdk.crypto.ec/share/native/libsunec/impl"; then 50351 ENABLE_INTREE_EC=yes 50352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50353 $as_echo "yes" >&6; } 50354 else 50355 ENABLE_INTREE_EC=no 50356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50357 $as_echo "no" >&6; } 50358 fi 50359 50360 50361 50362 50363 ############################################################################### 50364 # 50365 # Configure parts of the build that only affect the build performance, 50366 # not the result. 50367 # 50368 ############################################################################### 50369 50370 50371 # How many cores do we have on this build system? 50372 50373 # Check whether --with-num-cores was given. 50374 if test "${with_num_cores+set}" = set; then : 50375 withval=$with_num_cores; 50376 fi 50377 50378 if test "x$with_num_cores" = x; then 50379 # The number of cores were not specified, try to probe them. 50380 50381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 50382 $as_echo_n "checking for number of cores... " >&6; } 50383 NUM_CORES=1 50384 FOUND_CORES=no 50385 50386 if test -f /proc/cpuinfo; then 50387 # Looks like a Linux (or cygwin) system 50388 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 50389 FOUND_CORES=yes 50390 elif test -x /usr/sbin/psrinfo; then 50391 # Looks like a Solaris system 50392 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 50393 FOUND_CORES=yes 50394 elif test -x /usr/sbin/system_profiler; then 50395 # Looks like a MacOSX system 50396 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` 50397 FOUND_CORES=yes 50398 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 50399 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 50400 FOUND_CORES=yes 50401 elif test -n "$NUMBER_OF_PROCESSORS"; then 50402 # On windows, look in the env 50403 NUM_CORES=$NUMBER_OF_PROCESSORS 50404 FOUND_CORES=yes 50405 fi 50406 50407 if test "x$FOUND_CORES" = xyes; then 50408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 50409 $as_echo "$NUM_CORES" >&6; } 50410 else 50411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 50412 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 50413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 50414 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 50415 fi 50416 50417 else 50418 NUM_CORES=$with_num_cores 50419 fi 50420 50421 50422 50423 # How much memory do we have on this build system? 50424 50425 # Check whether --with-memory-size was given. 50426 if test "${with_memory_size+set}" = set; then : 50427 withval=$with_memory_size; 50428 fi 50429 50430 if test "x$with_memory_size" = x; then 50431 # The memory size was not specified, try to probe it. 50432 50433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 50434 $as_echo_n "checking for memory size... " >&6; } 50435 # Default to 1024 MB 50436 MEMORY_SIZE=1024 50437 FOUND_MEM=no 50438 50439 if test -f /proc/meminfo; then 50440 # Looks like a Linux (or cygwin) system 50441 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 50442 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 50443 FOUND_MEM=yes 50444 elif test -x /usr/sbin/prtconf; then 50445 # Looks like a Solaris or AIX system 50446 MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 50447 FOUND_MEM=yes 50448 elif test -x /usr/sbin/system_profiler; then 50449 # Looks like a MacOSX system 50450 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'` 50451 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` 50452 FOUND_MEM=yes 50453 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 50454 # Windows, but without cygwin 50455 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 50456 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 50457 FOUND_MEM=yes 50458 fi 50459 50460 if test "x$FOUND_MEM" = xyes; then 50461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 50462 $as_echo "$MEMORY_SIZE MB" >&6; } 50463 else 50464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 50465 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 50466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 50467 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 50468 fi 50469 50470 else 50471 MEMORY_SIZE=$with_memory_size 50472 fi 50473 50474 50475 50476 # Provide a decent default number of parallel jobs for make depending on 50477 # number of cores, amount of memory and machine architecture. 50478 50479 # Check whether --with-jobs was given. 50480 if test "${with_jobs+set}" = set; then : 50481 withval=$with_jobs; 50482 fi 50483 50484 if test "x$with_jobs" = x; then 50485 # Number of jobs was not specified, calculate. 50486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 50487 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 50488 # Approximate memory in GB. 50489 memory_gb=`expr $MEMORY_SIZE / 1024` 50490 # Pick the lowest of memory in gb and number of cores. 50491 if test "$memory_gb" -lt "$NUM_CORES"; then 50492 JOBS="$memory_gb" 50493 else 50494 JOBS="$NUM_CORES" 50495 # On bigger machines, leave some room for other processes to run 50496 if test "$JOBS" -gt "4"; then 50497 JOBS=`expr $JOBS '*' 90 / 100` 50498 fi 50499 fi 50500 # Cap number of jobs to 16 50501 if test "$JOBS" -gt "16"; then 50502 JOBS=16 50503 fi 50504 if test "$JOBS" -eq "0"; then 50505 JOBS=1 50506 fi 50507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 50508 $as_echo "$JOBS" >&6; } 50509 else 50510 JOBS=$with_jobs 50511 fi 50512 50513 50514 50515 # Setup arguments for the boot jdk (after cores and memory have been setup) 50516 50517 ############################################################################## 50518 # 50519 # Specify jvm options for anything that is run with the Boot JDK. 50520 # Not all JVM:s accept the same arguments on the command line. 50521 # 50522 50523 # Check whether --with-boot-jdk-jvmargs was given. 50524 if test "${with_boot_jdk_jvmargs+set}" = set; then : 50525 withval=$with_boot_jdk_jvmargs; 50526 fi 50527 50528 50529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 50530 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 50531 50532 # Disable special log output when a debug build is used as Boot JDK... 50533 50534 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 50535 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 50536 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 50537 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50538 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50539 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50540 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 50541 JVM_ARG_OK=true 50542 else 50543 $ECHO "Arg failed:" >&5 50544 $ECHO "$OUTPUT" >&5 50545 JVM_ARG_OK=false 50546 fi 50547 50548 50549 # Apply user provided options. 50550 50551 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 50552 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 50553 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 50554 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50555 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50556 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50557 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 50558 JVM_ARG_OK=true 50559 else 50560 $ECHO "Arg failed:" >&5 50561 $ECHO "$OUTPUT" >&5 50562 JVM_ARG_OK=false 50563 fi 50564 50565 50566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 50567 $as_echo "$boot_jdk_jvmargs" >&6; } 50568 50569 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 50570 JAVA_FLAGS=$boot_jdk_jvmargs 50571 50572 50573 50574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 50575 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 50576 50577 # Starting amount of heap memory. 50578 50579 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 50580 $ECHO "Command: $JAVA -Xms64M -version" >&5 50581 OUTPUT=`$JAVA -Xms64M -version 2>&1` 50582 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50583 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50584 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50585 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 50586 JVM_ARG_OK=true 50587 else 50588 $ECHO "Arg failed:" >&5 50589 $ECHO "$OUTPUT" >&5 50590 JVM_ARG_OK=false 50591 fi 50592 50593 50594 # Maximum amount of heap memory. 50595 # Maximum stack size. 50596 JVM_MAX_HEAP=`expr $MEMORY_SIZE / 2` 50597 if test "x$BUILD_NUM_BITS" = x32; then 50598 if test "$JVM_MAX_HEAP" -gt "1100"; then 50599 JVM_MAX_HEAP=1100 50600 elif test "$JVM_MAX_HEAP" -lt "512"; then 50601 JVM_MAX_HEAP=512 50602 fi 50603 STACK_SIZE=768 50604 else 50605 # Running Javac on a JVM on a 64-bit machine, takes more space since 64-bit 50606 # pointers are used. Apparently, we need to increase the heap and stack 50607 # space for the jvm. More specifically, when running javac to build huge 50608 # jdk batch 50609 if test "$JVM_MAX_HEAP" -gt "1600"; then 50610 JVM_MAX_HEAP=1600 50611 elif test "$JVM_MAX_HEAP" -lt "512"; then 50612 JVM_MAX_HEAP=512 50613 fi 50614 STACK_SIZE=1536 50615 fi 50616 50617 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 50618 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 50619 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 50620 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50621 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50622 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50623 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 50624 JVM_ARG_OK=true 50625 else 50626 $ECHO "Arg failed:" >&5 50627 $ECHO "$OUTPUT" >&5 50628 JVM_ARG_OK=false 50629 fi 50630 50631 50632 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 50633 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 50634 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 50635 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50636 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50637 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50638 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 50639 JVM_ARG_OK=true 50640 else 50641 $ECHO "Arg failed:" >&5 50642 $ECHO "$OUTPUT" >&5 50643 JVM_ARG_OK=false 50644 fi 50645 50646 50647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 50648 $as_echo "$boot_jdk_jvmargs_big" >&6; } 50649 50650 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 50651 50652 50653 50654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 50655 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 50656 50657 # Use serial gc for small short lived tools if possible 50658 50659 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 50660 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 50661 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 50662 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50663 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50664 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50665 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 50666 JVM_ARG_OK=true 50667 else 50668 $ECHO "Arg failed:" >&5 50669 $ECHO "$OUTPUT" >&5 50670 JVM_ARG_OK=false 50671 fi 50672 50673 50674 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 50675 $ECHO "Command: $JAVA -Xms32M -version" >&5 50676 OUTPUT=`$JAVA -Xms32M -version 2>&1` 50677 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50678 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50679 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50680 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 50681 JVM_ARG_OK=true 50682 else 50683 $ECHO "Arg failed:" >&5 50684 $ECHO "$OUTPUT" >&5 50685 JVM_ARG_OK=false 50686 fi 50687 50688 50689 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 50690 $ECHO "Command: $JAVA -Xmx512M -version" >&5 50691 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 50692 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50693 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50694 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50695 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 50696 JVM_ARG_OK=true 50697 else 50698 $ECHO "Arg failed:" >&5 50699 $ECHO "$OUTPUT" >&5 50700 JVM_ARG_OK=false 50701 fi 50702 50703 50704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 50705 $as_echo "$boot_jdk_jvmargs_small" >&6; } 50706 50707 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 50708 50709 50710 JAVA_TOOL_FLAGS_SMALL="" 50711 for f in $JAVA_FLAGS_SMALL; do 50712 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 50713 done 50714 50715 50716 50717 # Setup smart javac (after cores and memory have been setup) 50718 50719 50720 # Check whether --with-sjavac-server-java was given. 50721 if test "${with_sjavac_server_java+set}" = set; then : 50722 withval=$with_sjavac_server_java; 50723 fi 50724 50725 50726 if test "x$with_sjavac_server_java" != x; then 50727 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 50728 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 50729 if test "x$FOUND_VERSION" = x; then 50730 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 50731 fi 50732 else 50733 SJAVAC_SERVER_JAVA="$JAVA" 50734 fi 50735 50736 50737 if test "$MEMORY_SIZE" -gt "3000"; then 50738 50739 $ECHO "Check if jvm arg is ok: -d64" >&5 50740 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 50741 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 50742 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50743 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50744 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50745 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -d64" 50746 JVM_ARG_OK=true 50747 else 50748 $ECHO "Arg failed:" >&5 50749 $ECHO "$OUTPUT" >&5 50750 JVM_ARG_OK=false 50751 fi 50752 50753 if test "$JVM_ARG_OK" = true; then 50754 JVM_64BIT=true 50755 JVM_ARG_OK=false 50756 fi 50757 fi 50758 50759 MX_VALUE=`expr $MEMORY_SIZE / 2` 50760 if test "$JVM_64BIT" = true; then 50761 # Set ms lower than mx since more than one instance of the server might 50762 # get launched at the same time before they figure out which instance won. 50763 MS_VALUE=512 50764 if test "$MX_VALUE" -gt "2048"; then 50765 MX_VALUE=2048 50766 fi 50767 else 50768 MS_VALUE=256 50769 if test "$MX_VALUE" -gt "1500"; then 50770 MX_VALUE=1500 50771 fi 50772 fi 50773 if test "$MX_VALUE" -lt "512"; then 50774 MX_VALUE=512 50775 fi 50776 50777 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 50778 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 50779 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 50780 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50781 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50782 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50783 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 50784 JVM_ARG_OK=true 50785 else 50786 $ECHO "Arg failed:" >&5 50787 $ECHO "$OUTPUT" >&5 50788 JVM_ARG_OK=false 50789 fi 50790 50791 50792 50793 # Check whether --enable-sjavac was given. 50794 if test "${enable_sjavac+set}" = set; then : 50795 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 50796 else 50797 ENABLE_SJAVAC='no' 50798 fi 50799 50800 if test "x$JVM_ARG_OK" = "xfalse"; then 50801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 50802 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 50803 ENABLE_SJAVAC=no; 50804 fi 50805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 50806 $as_echo_n "checking whether to use sjavac... " >&6; } 50807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 50808 $as_echo "$ENABLE_SJAVAC" >&6; } 50809 50810 50811 if test "x$ENABLE_SJAVAC" = xyes; then 50812 SJAVAC_SERVER_DIR="$OUTPUT_ROOT/javacservers" 50813 else 50814 SJAVAC_SERVER_DIR= 50815 fi 50816 50817 50818 50819 # Can the C/C++ compiler use precompiled headers? 50820 50821 50822 ############################################################################### 50823 # 50824 # Can the C/C++ compiler use precompiled headers? 50825 # 50826 # Check whether --enable-precompiled-headers was given. 50827 if test "${enable_precompiled_headers+set}" = set; then : 50828 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 50829 else 50830 ENABLE_PRECOMPH=yes 50831 fi 50832 50833 50834 USE_PRECOMPILED_HEADER=1 50835 if test "x$ENABLE_PRECOMPH" = xno; then 50836 USE_PRECOMPILED_HEADER=0 50837 fi 50838 50839 if test "x$ENABLE_PRECOMPH" = xyes; then 50840 # Check that the compiler actually supports precomp headers. 50841 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 50843 $as_echo_n "checking that precompiled headers work... " >&6; } 50844 echo "int alfa();" > conftest.h 50845 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 50846 if test ! -f conftest.hpp.gch; then 50847 USE_PRECOMPILED_HEADER=0 50848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50849 $as_echo "no" >&6; } 50850 else 50851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50852 $as_echo "yes" >&6; } 50853 fi 50854 rm -f conftest.h conftest.hpp.gch 50855 fi 50856 fi 50857 50858 50859 50860 50861 # Setup use of ccache, if available 50862 50863 # Check whether --enable-ccache was given. 50864 if test "${enable_ccache+set}" = set; then : 50865 enableval=$enable_ccache; 50866 fi 50867 50868 50869 CCACHE= 50870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 50871 $as_echo_n "checking is ccache enabled... " >&6; } 50872 ENABLE_CCACHE=$enable_ccache 50873 if test "x$enable_ccache" = xyes; then 50874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50875 $as_echo "yes" >&6; } 50876 OLD_PATH="$PATH" 50877 if test "x$TOOLCHAIN_PATH" != x; then 50878 PATH=$TOOLCHAIN_PATH:$PATH 50879 fi 50880 50881 50882 50883 # Publish this variable in the help. 50884 50885 50886 if test "x$CCACHE" = x; then 50887 # The variable is not set by user, try to locate tool using the code snippet 50888 for ac_prog in ccache 50889 do 50890 # Extract the first word of "$ac_prog", so it can be a program name with args. 50891 set dummy $ac_prog; ac_word=$2 50892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 50893 $as_echo_n "checking for $ac_word... " >&6; } 50894 if ${ac_cv_path_CCACHE+:} false; then : 50895 $as_echo_n "(cached) " >&6 50896 else 50897 case $CCACHE in 50898 [\\/]* | ?:[\\/]*) 50899 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 50900 ;; 50901 *) 50902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 50903 for as_dir in $PATH 50904 do 50905 IFS=$as_save_IFS 50906 test -z "$as_dir" && as_dir=. 50907 for ac_exec_ext in '' $ac_executable_extensions; do 50908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 50909 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 50910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 50911 break 2 50912 fi 50913 done 50914 done 50915 IFS=$as_save_IFS 50916 50917 ;; 50918 esac 50919 fi 50920 CCACHE=$ac_cv_path_CCACHE 50921 if test -n "$CCACHE"; then 50922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 50923 $as_echo "$CCACHE" >&6; } 50924 else 50925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50926 $as_echo "no" >&6; } 50927 fi 50928 50929 50930 test -n "$CCACHE" && break 50931 done 50932 50933 else 50934 # The variable is set, but is it from the command line or the environment? 50935 50936 # Try to remove the string !CCACHE! from our list. 50937 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 50938 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 50939 # If it failed, the variable was not from the command line. Ignore it, 50940 # but warn the user (except for BASH, which is always set by the calling BASH). 50941 if test "xCCACHE" != xBASH; then 50942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 50943 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 50944 fi 50945 # Try to locate tool using the code snippet 50946 for ac_prog in ccache 50947 do 50948 # Extract the first word of "$ac_prog", so it can be a program name with args. 50949 set dummy $ac_prog; ac_word=$2 50950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 50951 $as_echo_n "checking for $ac_word... " >&6; } 50952 if ${ac_cv_path_CCACHE+:} false; then : 50953 $as_echo_n "(cached) " >&6 50954 else 50955 case $CCACHE in 50956 [\\/]* | ?:[\\/]*) 50957 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 50958 ;; 50959 *) 50960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 50961 for as_dir in $PATH 50962 do 50963 IFS=$as_save_IFS 50964 test -z "$as_dir" && as_dir=. 50965 for ac_exec_ext in '' $ac_executable_extensions; do 50966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 50967 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 50968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 50969 break 2 50970 fi 50971 done 50972 done 50973 IFS=$as_save_IFS 50974 50975 ;; 50976 esac 50977 fi 50978 CCACHE=$ac_cv_path_CCACHE 50979 if test -n "$CCACHE"; then 50980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 50981 $as_echo "$CCACHE" >&6; } 50982 else 50983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50984 $as_echo "no" >&6; } 50985 fi 50986 50987 50988 test -n "$CCACHE" && break 50989 done 50990 50991 else 50992 # If it succeeded, then it was overridden by the user. We will use it 50993 # for the tool. 50994 50995 # First remove it from the list of overridden variables, so we can test 50996 # for unknown variables in the end. 50997 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 50998 50999 # Check if the provided tool contains a complete path. 51000 tool_specified="$CCACHE" 51001 tool_basename="${tool_specified##*/}" 51002 if test "x$tool_basename" = "x$tool_specified"; then 51003 # A command without a complete path is provided, search $PATH. 51004 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 51005 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 51006 # Extract the first word of "$tool_basename", so it can be a program name with args. 51007 set dummy $tool_basename; ac_word=$2 51008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 51009 $as_echo_n "checking for $ac_word... " >&6; } 51010 if ${ac_cv_path_CCACHE+:} false; then : 51011 $as_echo_n "(cached) " >&6 51012 else 51013 case $CCACHE in 51014 [\\/]* | ?:[\\/]*) 51015 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 51016 ;; 51017 *) 51018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 51019 for as_dir in $PATH 51020 do 51021 IFS=$as_save_IFS 51022 test -z "$as_dir" && as_dir=. 51023 for ac_exec_ext in '' $ac_executable_extensions; do 51024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 51025 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 51026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 51027 break 2 51028 fi 51029 done 51030 done 51031 IFS=$as_save_IFS 51032 51033 ;; 51034 esac 51035 fi 51036 CCACHE=$ac_cv_path_CCACHE 51037 if test -n "$CCACHE"; then 51038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 51039 $as_echo "$CCACHE" >&6; } 51040 else 51041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51042 $as_echo "no" >&6; } 51043 fi 51044 51045 51046 if test "x$CCACHE" = x; then 51047 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 51048 fi 51049 else 51050 # Otherwise we believe it is a complete path. Use it as it is. 51051 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 51052 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 51053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 51054 $as_echo_n "checking for CCACHE... " >&6; } 51055 if test ! -x "$tool_specified"; then 51056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 51057 $as_echo "not found" >&6; } 51058 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 51059 fi 51060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 51061 $as_echo "$tool_specified" >&6; } 51062 fi 51063 fi 51064 fi 51065 51066 51067 51068 if test "x$CCACHE" = x; then 51069 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 51070 fi 51071 51072 51073 CCACHE_STATUS="enabled" 51074 PATH="$OLD_PATH" 51075 elif test "x$enable_ccache" = xno; then 51076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 51077 $as_echo "no, explicitly disabled" >&6; } 51078 elif test "x$enable_ccache" = x; then 51079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51080 $as_echo "no" >&6; } 51081 else 51082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 51083 $as_echo "unknown" >&6; } 51084 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 51085 fi 51086 51087 51088 51089 # Check whether --with-ccache-dir was given. 51090 if test "${with_ccache_dir+set}" = set; then : 51091 withval=$with_ccache_dir; 51092 fi 51093 51094 51095 if test "x$with_ccache_dir" != x; then 51096 # When using a non home ccache directory, assume the use is to share ccache files 51097 # with other users. Thus change the umask. 51098 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 51099 if test "x$CCACHE" = x; then 51100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 51101 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 51102 fi 51103 fi 51104 51105 if test "x$CCACHE" != x; then 51106 51107 if test "x$CCACHE" != x; then 51108 # Only use ccache if it is 3.1.4 or later, which supports 51109 # precompiled headers. 51110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5 51111 $as_echo_n "checking if ccache supports precompiled headers... " >&6; } 51112 HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null` 51113 if test "x$HAS_GOOD_CCACHE" = x; then 51114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5 51115 $as_echo "no, disabling ccache" >&6; } 51116 CCACHE= 51117 CCACHE_STATUS="disabled" 51118 else 51119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51120 $as_echo "yes" >&6; } 51121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 51122 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 51123 PUSHED_FLAGS="$CXXFLAGS" 51124 CXXFLAGS="-fpch-preprocess $CXXFLAGS" 51125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51126 /* end confdefs.h. */ 51127 51128 int 51129 main () 51130 { 51131 51132 ; 51133 return 0; 51134 } 51135 _ACEOF 51136 if ac_fn_cxx_try_compile "$LINENO"; then : 51137 CC_KNOWS_CCACHE_TRICK=yes 51138 else 51139 CC_KNOWS_CCACHE_TRICK=no 51140 fi 51141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51142 CXXFLAGS="$PUSHED_FLAGS" 51143 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 51144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51145 $as_echo "yes" >&6; } 51146 else 51147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5 51148 $as_echo "no, disabling ccaching of precompiled headers" >&6; } 51149 CCACHE= 51150 CCACHE_STATUS="disabled" 51151 fi 51152 fi 51153 fi 51154 51155 if test "x$CCACHE" != x; then 51156 CCACHE_SLOPPINESS=time_macros 51157 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE" 51158 CCACHE_FLAGS=-fpch-preprocess 51159 51160 if test "x$SET_CCACHE_DIR" != x; then 51161 mkdir -p $CCACHE_DIR > /dev/null 2>&1 51162 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 51163 fi 51164 fi 51165 51166 fi 51167 51168 51169 ############################################################################### 51170 # 51171 # And now the finish... 51172 # 51173 ############################################################################### 51174 51175 # Check for some common pitfalls 51176 51177 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51178 file_to_test="$SRC_ROOT/LICENSE" 51179 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 51180 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 51181 fi 51182 fi 51183 51184 51185 # Did user specify any unknown variables? 51186 51187 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 51188 # Replace the separating ! with spaces before presenting for end user. 51189 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 51190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 51191 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 51192 fi 51193 51194 51195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 51196 $as_echo_n "checking if build directory is on local disk... " >&6; } 51197 51198 # df -l lists only local disks; if the given directory is not found then 51199 # a non-zero exit code is given 51200 if test "x$DF" = x; then 51201 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51202 # msys does not have df; use Windows "net use" instead. 51203 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 51204 if test "x$IS_NETWORK_DISK" = x; then 51205 OUTPUT_DIR_IS_LOCAL="yes" 51206 else 51207 OUTPUT_DIR_IS_LOCAL="no" 51208 fi 51209 else 51210 # No df here, say it's local 51211 OUTPUT_DIR_IS_LOCAL="yes" 51212 fi 51213 else 51214 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 51215 OUTPUT_DIR_IS_LOCAL="yes" 51216 else 51217 OUTPUT_DIR_IS_LOCAL="no" 51218 fi 51219 fi 51220 51221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 51222 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 51223 51224 51225 51226 # Check if the user has any old-style ALT_ variables set. 51227 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 51228 51229 # Before generating output files, test if they exist. If they do, this is a reconfigure. 51230 # Since we can't properly handle the dependencies for this, warn the user about the situation 51231 if test -e $OUTPUT_ROOT/spec.gmk; then 51232 IS_RECONFIGURE=yes 51233 else 51234 IS_RECONFIGURE=no 51235 fi 51236 51237 51238 # At the end, call the custom hook. (Dummy macro if no custom sources available) 51239 51240 51241 # We're messing a bit with internal autoconf variables to put the config.status 51242 # in the output directory instead of the current directory. 51243 CONFIG_STATUS="$OUTPUT_ROOT/config.status" 51244 51245 # Create the actual output files. Now the main work of configure is done. 51246 cat >confcache <<\_ACEOF 51247 # This file is a shell script that caches the results of configure 51248 # tests run on this system so they can be shared between configure 51249 # scripts and configure runs, see configure's option --config-cache. 51250 # It is not useful on other systems. If it contains results you don't 51251 # want to keep, you may remove or edit it. 51252 # 51253 # config.status only pays attention to the cache file if you give it 51254 # the --recheck option to rerun configure. 51255 # 51256 # `ac_cv_env_foo' variables (set or unset) will be overridden when 51257 # loading this file, other *unset* `ac_cv_foo' will be assigned the 51258 # following values. 51259 51260 _ACEOF 51261 51262 # The following way of writing the cache mishandles newlines in values, 51263 # but we know of no workaround that is simple, portable, and efficient. 51264 # So, we kill variables containing newlines. 51265 # Ultrix sh set writes to stderr and can't be redirected directly, 51266 # and sets the high bit in the cache file unless we assign to the vars. 51267 ( 51268 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 51269 eval ac_val=\$$ac_var 51270 case $ac_val in #( 51271 *${as_nl}*) 51272 case $ac_var in #( 51273 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 51274 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 51275 esac 51276 case $ac_var in #( 51277 _ | IFS | as_nl) ;; #( 51278 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 51279 *) { eval $ac_var=; unset $ac_var;} ;; 51280 esac ;; 51281 esac 51282 done 51283 51284 (set) 2>&1 | 51285 case $as_nl`(ac_space=' '; set) 2>&1` in #( 51286 *${as_nl}ac_space=\ *) 51287 # `set' does not quote correctly, so add quotes: double-quote 51288 # substitution turns \\\\ into \\, and sed turns \\ into \. 51289 sed -n \ 51290 "s/'/'\\\\''/g; 51291 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 51292 ;; #( 51293 *) 51294 # `set' quotes correctly as required by POSIX, so do not add quotes. 51295 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 51296 ;; 51297 esac | 51298 sort 51299 ) | 51300 sed ' 51301 /^ac_cv_env_/b end 51302 t clear 51303 :clear 51304 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 51305 t end 51306 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 51307 :end' >>confcache 51308 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 51309 if test -w "$cache_file"; then 51310 if test "x$cache_file" != "x/dev/null"; then 51311 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 51312 $as_echo "$as_me: updating cache $cache_file" >&6;} 51313 if test ! -f "$cache_file" || test -h "$cache_file"; then 51314 cat confcache >"$cache_file" 51315 else 51316 case $cache_file in #( 51317 */* | ?:*) 51318 mv -f confcache "$cache_file"$$ && 51319 mv -f "$cache_file"$$ "$cache_file" ;; #( 51320 *) 51321 mv -f confcache "$cache_file" ;; 51322 esac 51323 fi 51324 fi 51325 else 51326 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 51327 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 51328 fi 51329 fi 51330 rm -f confcache 51331 51332 test "x$prefix" = xNONE && prefix=$ac_default_prefix 51333 # Let make expand exec_prefix. 51334 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 51335 51336 # Transform confdefs.h into DEFS. 51337 # Protect against shell expansion while executing Makefile rules. 51338 # Protect against Makefile macro expansion. 51339 # 51340 # If the first sed substitution is executed (which looks for macros that 51341 # take arguments), then branch to the quote section. Otherwise, 51342 # look for a macro that doesn't take arguments. 51343 ac_script=' 51344 :mline 51345 /\\$/{ 51346 N 51347 s,\\\n,, 51348 b mline 51349 } 51350 t clear 51351 :clear 51352 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 51353 t quote 51354 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 51355 t quote 51356 b any 51357 :quote 51358 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 51359 s/\[/\\&/g 51360 s/\]/\\&/g 51361 s/\$/$$/g 51362 H 51363 :any 51364 ${ 51365 g 51366 s/^\n// 51367 s/\n/ /g 51368 p 51369 } 51370 ' 51371 DEFS=`sed -n "$ac_script" confdefs.h` 51372 51373 51374 ac_libobjs= 51375 ac_ltlibobjs= 51376 U= 51377 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 51378 # 1. Remove the extension, and $U if already installed. 51379 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 51380 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 51381 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 51382 # will be set to the directory where LIBOBJS objects are built. 51383 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 51384 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 51385 done 51386 LIBOBJS=$ac_libobjs 51387 51388 LTLIBOBJS=$ac_ltlibobjs 51389 51390 51391 51392 : "${CONFIG_STATUS=./config.status}" 51393 ac_write_fail=0 51394 ac_clean_files_save=$ac_clean_files 51395 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 51396 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 51397 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 51398 as_write_fail=0 51399 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 51400 #! $SHELL 51401 # Generated by $as_me. 51402 # Run this file to recreate the current configuration. 51403 # Compiler output produced by configure, useful for debugging 51404 # configure, is in config.log if it exists. 51405 51406 debug=false 51407 ac_cs_recheck=false 51408 ac_cs_silent=false 51409 51410 SHELL=\${CONFIG_SHELL-$SHELL} 51411 export SHELL 51412 _ASEOF 51413 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 51414 ## -------------------- ## 51415 ## M4sh Initialization. ## 51416 ## -------------------- ## 51417 51418 # Be more Bourne compatible 51419 DUALCASE=1; export DUALCASE # for MKS sh 51420 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 51421 emulate sh 51422 NULLCMD=: 51423 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 51424 # is contrary to our usage. Disable this feature. 51425 alias -g '${1+"$@"}'='"$@"' 51426 setopt NO_GLOB_SUBST 51427 else 51428 case `(set -o) 2>/dev/null` in #( 51429 *posix*) : 51430 set -o posix ;; #( 51431 *) : 51432 ;; 51433 esac 51434 fi 51435 51436 51437 as_nl=' 51438 ' 51439 export as_nl 51440 # Printing a long string crashes Solaris 7 /usr/bin/printf. 51441 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 51442 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 51443 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 51444 # Prefer a ksh shell builtin over an external printf program on Solaris, 51445 # but without wasting forks for bash or zsh. 51446 if test -z "$BASH_VERSION$ZSH_VERSION" \ 51447 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 51448 as_echo='print -r --' 51449 as_echo_n='print -rn --' 51450 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 51451 as_echo='printf %s\n' 51452 as_echo_n='printf %s' 51453 else 51454 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 51455 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 51456 as_echo_n='/usr/ucb/echo -n' 51457 else 51458 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 51459 as_echo_n_body='eval 51460 arg=$1; 51461 case $arg in #( 51462 *"$as_nl"*) 51463 expr "X$arg" : "X\\(.*\\)$as_nl"; 51464 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 51465 esac; 51466 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 51467 ' 51468 export as_echo_n_body 51469 as_echo_n='sh -c $as_echo_n_body as_echo' 51470 fi 51471 export as_echo_body 51472 as_echo='sh -c $as_echo_body as_echo' 51473 fi 51474 51475 # The user is always right. 51476 if test "${PATH_SEPARATOR+set}" != set; then 51477 PATH_SEPARATOR=: 51478 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 51479 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 51480 PATH_SEPARATOR=';' 51481 } 51482 fi 51483 51484 51485 # IFS 51486 # We need space, tab and new line, in precisely that order. Quoting is 51487 # there to prevent editors from complaining about space-tab. 51488 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 51489 # splitting by setting IFS to empty value.) 51490 IFS=" "" $as_nl" 51491 51492 # Find who we are. Look in the path if we contain no directory separator. 51493 as_myself= 51494 case $0 in #(( 51495 *[\\/]* ) as_myself=$0 ;; 51496 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 51497 for as_dir in $PATH 51498 do 51499 IFS=$as_save_IFS 51500 test -z "$as_dir" && as_dir=. 51501 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 51502 done 51503 IFS=$as_save_IFS 51504 51505 ;; 51506 esac 51507 # We did not find ourselves, most probably we were run as `sh COMMAND' 51508 # in which case we are not to be found in the path. 51509 if test "x$as_myself" = x; then 51510 as_myself=$0 51511 fi 51512 if test ! -f "$as_myself"; then 51513 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 51514 exit 1 51515 fi 51516 51517 # Unset variables that we do not need and which cause bugs (e.g. in 51518 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 51519 # suppresses any "Segmentation fault" message there. '((' could 51520 # trigger a bug in pdksh 5.2.14. 51521 for as_var in BASH_ENV ENV MAIL MAILPATH 51522 do eval test x\${$as_var+set} = xset \ 51523 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 51524 done 51525 PS1='$ ' 51526 PS2='> ' 51527 PS4='+ ' 51528 51529 # NLS nuisances. 51530 LC_ALL=C 51531 export LC_ALL 51532 LANGUAGE=C 51533 export LANGUAGE 51534 51535 # CDPATH. 51536 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 51537 51538 51539 # as_fn_error STATUS ERROR [LINENO LOG_FD] 51540 # ---------------------------------------- 51541 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 51542 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 51543 # script with STATUS, using 1 if that was 0. 51544 as_fn_error () 51545 { 51546 as_status=$1; test $as_status -eq 0 && as_status=1 51547 if test "$4"; then 51548 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 51549 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 51550 fi 51551 $as_echo "$as_me: error: $2" >&2 51552 as_fn_exit $as_status 51553 } # as_fn_error 51554 51555 51556 # as_fn_set_status STATUS 51557 # ----------------------- 51558 # Set $? to STATUS, without forking. 51559 as_fn_set_status () 51560 { 51561 return $1 51562 } # as_fn_set_status 51563 51564 # as_fn_exit STATUS 51565 # ----------------- 51566 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 51567 as_fn_exit () 51568 { 51569 set +e 51570 as_fn_set_status $1 51571 exit $1 51572 } # as_fn_exit 51573 51574 # as_fn_unset VAR 51575 # --------------- 51576 # Portably unset VAR. 51577 as_fn_unset () 51578 { 51579 { eval $1=; unset $1;} 51580 } 51581 as_unset=as_fn_unset 51582 # as_fn_append VAR VALUE 51583 # ---------------------- 51584 # Append the text in VALUE to the end of the definition contained in VAR. Take 51585 # advantage of any shell optimizations that allow amortized linear growth over 51586 # repeated appends, instead of the typical quadratic growth present in naive 51587 # implementations. 51588 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 51589 eval 'as_fn_append () 51590 { 51591 eval $1+=\$2 51592 }' 51593 else 51594 as_fn_append () 51595 { 51596 eval $1=\$$1\$2 51597 } 51598 fi # as_fn_append 51599 51600 # as_fn_arith ARG... 51601 # ------------------ 51602 # Perform arithmetic evaluation on the ARGs, and store the result in the 51603 # global $as_val. Take advantage of shells that can avoid forks. The arguments 51604 # must be portable across $(()) and expr. 51605 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 51606 eval 'as_fn_arith () 51607 { 51608 as_val=$(( $* )) 51609 }' 51610 else 51611 as_fn_arith () 51612 { 51613 as_val=`expr "$@" || test $? -eq 1` 51614 } 51615 fi # as_fn_arith 51616 51617 51618 if expr a : '\(a\)' >/dev/null 2>&1 && 51619 test "X`expr 00001 : '.*\(...\)'`" = X001; then 51620 as_expr=expr 51621 else 51622 as_expr=false 51623 fi 51624 51625 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 51626 as_basename=basename 51627 else 51628 as_basename=false 51629 fi 51630 51631 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 51632 as_dirname=dirname 51633 else 51634 as_dirname=false 51635 fi 51636 51637 as_me=`$as_basename -- "$0" || 51638 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 51639 X"$0" : 'X\(//\)$' \| \ 51640 X"$0" : 'X\(/\)' \| . 2>/dev/null || 51641 $as_echo X/"$0" | 51642 sed '/^.*\/\([^/][^/]*\)\/*$/{ 51643 s//\1/ 51644 q 51645 } 51646 /^X\/\(\/\/\)$/{ 51647 s//\1/ 51648 q 51649 } 51650 /^X\/\(\/\).*/{ 51651 s//\1/ 51652 q 51653 } 51654 s/.*/./; q'` 51655 51656 # Avoid depending upon Character Ranges. 51657 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 51658 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 51659 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 51660 as_cr_digits='0123456789' 51661 as_cr_alnum=$as_cr_Letters$as_cr_digits 51662 51663 ECHO_C= ECHO_N= ECHO_T= 51664 case `echo -n x` in #((((( 51665 -n*) 51666 case `echo 'xy\c'` in 51667 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 51668 xy) ECHO_C='\c';; 51669 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 51670 ECHO_T=' ';; 51671 esac;; 51672 *) 51673 ECHO_N='-n';; 51674 esac 51675 51676 rm -f conf$$ conf$$.exe conf$$.file 51677 if test -d conf$$.dir; then 51678 rm -f conf$$.dir/conf$$.file 51679 else 51680 rm -f conf$$.dir 51681 mkdir conf$$.dir 2>/dev/null 51682 fi 51683 if (echo >conf$$.file) 2>/dev/null; then 51684 if ln -s conf$$.file conf$$ 2>/dev/null; then 51685 as_ln_s='ln -s' 51686 # ... but there are two gotchas: 51687 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 51688 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 51689 # In both cases, we have to default to `cp -pR'. 51690 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 51691 as_ln_s='cp -pR' 51692 elif ln conf$$.file conf$$ 2>/dev/null; then 51693 as_ln_s=ln 51694 else 51695 as_ln_s='cp -pR' 51696 fi 51697 else 51698 as_ln_s='cp -pR' 51699 fi 51700 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 51701 rmdir conf$$.dir 2>/dev/null 51702 51703 51704 # as_fn_mkdir_p 51705 # ------------- 51706 # Create "$as_dir" as a directory, including parents if necessary. 51707 as_fn_mkdir_p () 51708 { 51709 51710 case $as_dir in #( 51711 -*) as_dir=./$as_dir;; 51712 esac 51713 test -d "$as_dir" || eval $as_mkdir_p || { 51714 as_dirs= 51715 while :; do 51716 case $as_dir in #( 51717 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 51718 *) as_qdir=$as_dir;; 51719 esac 51720 as_dirs="'$as_qdir' $as_dirs" 51721 as_dir=`$as_dirname -- "$as_dir" || 51722 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 51723 X"$as_dir" : 'X\(//\)[^/]' \| \ 51724 X"$as_dir" : 'X\(//\)$' \| \ 51725 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 51726 $as_echo X"$as_dir" | 51727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 51728 s//\1/ 51729 q 51730 } 51731 /^X\(\/\/\)[^/].*/{ 51732 s//\1/ 51733 q 51734 } 51735 /^X\(\/\/\)$/{ 51736 s//\1/ 51737 q 51738 } 51739 /^X\(\/\).*/{ 51740 s//\1/ 51741 q 51742 } 51743 s/.*/./; q'` 51744 test -d "$as_dir" && break 51745 done 51746 test -z "$as_dirs" || eval "mkdir $as_dirs" 51747 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 51748 51749 51750 } # as_fn_mkdir_p 51751 if mkdir -p . 2>/dev/null; then 51752 as_mkdir_p='mkdir -p "$as_dir"' 51753 else 51754 test -d ./-p && rmdir ./-p 51755 as_mkdir_p=false 51756 fi 51757 51758 51759 # as_fn_executable_p FILE 51760 # ----------------------- 51761 # Test if FILE is an executable regular file. 51762 as_fn_executable_p () 51763 { 51764 test -f "$1" && test -x "$1" 51765 } # as_fn_executable_p 51766 as_test_x='test -x' 51767 as_executable_p=as_fn_executable_p 51768 51769 # Sed expression to map a string onto a valid CPP name. 51770 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 51771 51772 # Sed expression to map a string onto a valid variable name. 51773 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 51774 51775 51776 exec 6>&1 51777 ## ----------------------------------- ## 51778 ## Main body of $CONFIG_STATUS script. ## 51779 ## ----------------------------------- ## 51780 _ASEOF 51781 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 51782 51783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51784 # Save the log message, to keep $0 and so on meaningful, and to 51785 # report actual input values of CONFIG_FILES etc. instead of their 51786 # values after options handling. 51787 ac_log=" 51788 This file was extended by OpenJDK $as_me jdk9, which was 51789 generated by GNU Autoconf 2.69. Invocation command line was 51790 51791 CONFIG_FILES = $CONFIG_FILES 51792 CONFIG_HEADERS = $CONFIG_HEADERS 51793 CONFIG_LINKS = $CONFIG_LINKS 51794 CONFIG_COMMANDS = $CONFIG_COMMANDS 51795 $ $0 $@ 51796 51797 on `(hostname || uname -n) 2>/dev/null | sed 1q` 51798 " 51799 51800 _ACEOF 51801 51802 case $ac_config_files in *" 51803 "*) set x $ac_config_files; shift; ac_config_files=$*;; 51804 esac 51805 51806 51807 51808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51809 # Files that config.status was made for. 51810 config_files="$ac_config_files" 51811 51812 _ACEOF 51813 51814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51815 ac_cs_usage="\ 51816 \`$as_me' instantiates files and other configuration actions 51817 from templates according to the current configuration. Unless the files 51818 and actions are specified as TAGs, all are instantiated by default. 51819 51820 Usage: $0 [OPTION]... [TAG]... 51821 51822 -h, --help print this help, then exit 51823 -V, --version print version number and configuration settings, then exit 51824 --config print configuration, then exit 51825 -q, --quiet, --silent 51826 do not print progress messages 51827 -d, --debug don't remove temporary files 51828 --recheck update $as_me by reconfiguring in the same conditions 51829 --file=FILE[:TEMPLATE] 51830 instantiate the configuration file FILE 51831 51832 Configuration files: 51833 $config_files 51834 51835 Report bugs to <build-dev@openjdk.java.net>. 51836 OpenJDK home page: <http://openjdk.java.net>." 51837 51838 _ACEOF 51839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51840 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 51841 ac_cs_version="\\ 51842 OpenJDK config.status jdk9 51843 configured by $0, generated by GNU Autoconf 2.69, 51844 with options \\"\$ac_cs_config\\" 51845 51846 Copyright (C) 2012 Free Software Foundation, Inc. 51847 This config.status script is free software; the Free Software Foundation 51848 gives unlimited permission to copy, distribute and modify it." 51849 51850 ac_pwd='$ac_pwd' 51851 srcdir='$srcdir' 51852 AWK='$AWK' 51853 test -n "\$AWK" || AWK=awk 51854 _ACEOF 51855 51856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51857 # The default lists apply if the user does not specify any file. 51858 ac_need_defaults=: 51859 while test $# != 0 51860 do 51861 case $1 in 51862 --*=?*) 51863 ac_option=`expr "X$1" : 'X\([^=]*\)='` 51864 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 51865 ac_shift=: 51866 ;; 51867 --*=) 51868 ac_option=`expr "X$1" : 'X\([^=]*\)='` 51869 ac_optarg= 51870 ac_shift=: 51871 ;; 51872 *) 51873 ac_option=$1 51874 ac_optarg=$2 51875 ac_shift=shift 51876 ;; 51877 esac 51878 51879 case $ac_option in 51880 # Handling of the options. 51881 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 51882 ac_cs_recheck=: ;; 51883 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 51884 $as_echo "$ac_cs_version"; exit ;; 51885 --config | --confi | --conf | --con | --co | --c ) 51886 $as_echo "$ac_cs_config"; exit ;; 51887 --debug | --debu | --deb | --de | --d | -d ) 51888 debug=: ;; 51889 --file | --fil | --fi | --f ) 51890 $ac_shift 51891 case $ac_optarg in 51892 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 51893 '') as_fn_error $? "missing file argument" ;; 51894 esac 51895 as_fn_append CONFIG_FILES " '$ac_optarg'" 51896 ac_need_defaults=false;; 51897 --he | --h | --help | --hel | -h ) 51898 $as_echo "$ac_cs_usage"; exit ;; 51899 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 51900 | -silent | --silent | --silen | --sile | --sil | --si | --s) 51901 ac_cs_silent=: ;; 51902 51903 # This is an error. 51904 -*) as_fn_error $? "unrecognized option: \`$1' 51905 Try \`$0 --help' for more information." ;; 51906 51907 *) as_fn_append ac_config_targets " $1" 51908 ac_need_defaults=false ;; 51909 51910 esac 51911 shift 51912 done 51913 51914 ac_configure_extra_args= 51915 51916 if $ac_cs_silent; then 51917 exec 6>/dev/null 51918 ac_configure_extra_args="$ac_configure_extra_args --silent" 51919 fi 51920 51921 _ACEOF 51922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51923 if \$ac_cs_recheck; then 51924 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 51925 shift 51926 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 51927 CONFIG_SHELL='$SHELL' 51928 export CONFIG_SHELL 51929 exec "\$@" 51930 fi 51931 51932 _ACEOF 51933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51934 exec 5>>config.log 51935 { 51936 echo 51937 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 51938 ## Running $as_me. ## 51939 _ASBOX 51940 $as_echo "$ac_log" 51941 } >&5 51942 51943 _ACEOF 51944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51945 _ACEOF 51946 51947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51948 51949 # Handling of arguments. 51950 for ac_config_target in $ac_config_targets 51951 do 51952 case $ac_config_target in 51953 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 51954 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 51955 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 51956 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 51957 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 51958 51959 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 51960 esac 51961 done 51962 51963 51964 # If the user did not use the arguments to specify the items to instantiate, 51965 # then the envvar interface is used. Set only those that are not. 51966 # We use the long form for the default assignment because of an extremely 51967 # bizarre bug on SunOS 4.1.3. 51968 if $ac_need_defaults; then 51969 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 51970 fi 51971 51972 # Have a temporary directory for convenience. Make it in the build tree 51973 # simply because there is no reason against having it here, and in addition, 51974 # creating and moving files from /tmp can sometimes cause problems. 51975 # Hook for its removal unless debugging. 51976 # Note that there is a small window in which the directory will not be cleaned: 51977 # after its creation but before its name has been assigned to `$tmp'. 51978 $debug || 51979 { 51980 tmp= ac_tmp= 51981 trap 'exit_status=$? 51982 : "${ac_tmp:=$tmp}" 51983 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 51984 ' 0 51985 trap 'as_fn_exit 1' 1 2 13 15 51986 } 51987 # Create a (secure) tmp directory for tmp files. 51988 51989 { 51990 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 51991 test -d "$tmp" 51992 } || 51993 { 51994 tmp=./conf$$-$RANDOM 51995 (umask 077 && mkdir "$tmp") 51996 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 51997 ac_tmp=$tmp 51998 51999 # Set up the scripts for CONFIG_FILES section. 52000 # No need to generate them if there are no CONFIG_FILES. 52001 # This happens for instance with `./config.status config.h'. 52002 if test -n "$CONFIG_FILES"; then 52003 52004 52005 ac_cr=`echo X | tr X '\015'` 52006 # On cygwin, bash can eat \r inside `` if the user requested igncr. 52007 # But we know of no other shell where ac_cr would be empty at this 52008 # point, so we can use a bashism as a fallback. 52009 if test "x$ac_cr" = x; then 52010 eval ac_cr=\$\'\\r\' 52011 fi 52012 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 52013 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 52014 ac_cs_awk_cr='\\r' 52015 else 52016 ac_cs_awk_cr=$ac_cr 52017 fi 52018 52019 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 52020 _ACEOF 52021 52022 52023 { 52024 echo "cat >conf$$subs.awk <<_ACEOF" && 52025 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 52026 echo "_ACEOF" 52027 } >conf$$subs.sh || 52028 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 52029 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 52030 ac_delim='%!_!# ' 52031 for ac_last_try in false false false false false :; do 52032 . ./conf$$subs.sh || 52033 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 52034 52035 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 52036 if test $ac_delim_n = $ac_delim_num; then 52037 break 52038 elif $ac_last_try; then 52039 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 52040 else 52041 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 52042 fi 52043 done 52044 rm -f conf$$subs.sh 52045 52046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52047 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 52048 _ACEOF 52049 sed -n ' 52050 h 52051 s/^/S["/; s/!.*/"]=/ 52052 p 52053 g 52054 s/^[^!]*!// 52055 :repl 52056 t repl 52057 s/'"$ac_delim"'$// 52058 t delim 52059 :nl 52060 h 52061 s/\(.\{148\}\)..*/\1/ 52062 t more1 52063 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 52064 p 52065 n 52066 b repl 52067 :more1 52068 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 52069 p 52070 g 52071 s/.\{148\}// 52072 t nl 52073 :delim 52074 h 52075 s/\(.\{148\}\)..*/\1/ 52076 t more2 52077 s/["\\]/\\&/g; s/^/"/; s/$/"/ 52078 p 52079 b 52080 :more2 52081 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 52082 p 52083 g 52084 s/.\{148\}// 52085 t delim 52086 ' <conf$$subs.awk | sed ' 52087 /^[^""]/{ 52088 N 52089 s/\n// 52090 } 52091 ' >>$CONFIG_STATUS || ac_write_fail=1 52092 rm -f conf$$subs.awk 52093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52094 _ACAWK 52095 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 52096 for (key in S) S_is_set[key] = 1 52097 FS = "" 52098 52099 } 52100 { 52101 line = $ 0 52102 nfields = split(line, field, "@") 52103 substed = 0 52104 len = length(field[1]) 52105 for (i = 2; i < nfields; i++) { 52106 key = field[i] 52107 keylen = length(key) 52108 if (S_is_set[key]) { 52109 value = S[key] 52110 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 52111 len += length(value) + length(field[++i]) 52112 substed = 1 52113 } else 52114 len += 1 + keylen 52115 } 52116 52117 print line 52118 } 52119 52120 _ACAWK 52121 _ACEOF 52122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52123 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 52124 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 52125 else 52126 cat 52127 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 52128 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 52129 _ACEOF 52130 52131 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 52132 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 52133 # trailing colons and then remove the whole line if VPATH becomes empty 52134 # (actually we leave an empty line to preserve line numbers). 52135 if test "x$srcdir" = x.; then 52136 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 52137 h 52138 s/// 52139 s/^/:/ 52140 s/[ ]*$/:/ 52141 s/:\$(srcdir):/:/g 52142 s/:\${srcdir}:/:/g 52143 s/:@srcdir@:/:/g 52144 s/^:*// 52145 s/:*$// 52146 x 52147 s/\(=[ ]*\).*/\1/ 52148 G 52149 s/\n// 52150 s/^[^=]*=[ ]*$// 52151 }' 52152 fi 52153 52154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52155 fi # test -n "$CONFIG_FILES" 52156 52157 52158 eval set X " :F $CONFIG_FILES " 52159 shift 52160 for ac_tag 52161 do 52162 case $ac_tag in 52163 :[FHLC]) ac_mode=$ac_tag; continue;; 52164 esac 52165 case $ac_mode$ac_tag in 52166 :[FHL]*:*);; 52167 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 52168 :[FH]-) ac_tag=-:-;; 52169 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 52170 esac 52171 ac_save_IFS=$IFS 52172 IFS=: 52173 set x $ac_tag 52174 IFS=$ac_save_IFS 52175 shift 52176 ac_file=$1 52177 shift 52178 52179 case $ac_mode in 52180 :L) ac_source=$1;; 52181 :[FH]) 52182 ac_file_inputs= 52183 for ac_f 52184 do 52185 case $ac_f in 52186 -) ac_f="$ac_tmp/stdin";; 52187 *) # Look for the file first in the build tree, then in the source tree 52188 # (if the path is not absolute). The absolute path cannot be DOS-style, 52189 # because $ac_f cannot contain `:'. 52190 test -f "$ac_f" || 52191 case $ac_f in 52192 [\\/$]*) false;; 52193 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 52194 esac || 52195 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 52196 esac 52197 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 52198 as_fn_append ac_file_inputs " '$ac_f'" 52199 done 52200 52201 # Let's still pretend it is `configure' which instantiates (i.e., don't 52202 # use $as_me), people would be surprised to read: 52203 # /* config.h. Generated by config.status. */ 52204 configure_input='Generated from '` 52205 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 52206 `' by configure.' 52207 if test x"$ac_file" != x-; then 52208 configure_input="$ac_file. $configure_input" 52209 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 52210 $as_echo "$as_me: creating $ac_file" >&6;} 52211 fi 52212 # Neutralize special characters interpreted by sed in replacement strings. 52213 case $configure_input in #( 52214 *\&* | *\|* | *\\* ) 52215 ac_sed_conf_input=`$as_echo "$configure_input" | 52216 sed 's/[\\\\&|]/\\\\&/g'`;; #( 52217 *) ac_sed_conf_input=$configure_input;; 52218 esac 52219 52220 case $ac_tag in 52221 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 52222 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 52223 esac 52224 ;; 52225 esac 52226 52227 ac_dir=`$as_dirname -- "$ac_file" || 52228 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 52229 X"$ac_file" : 'X\(//\)[^/]' \| \ 52230 X"$ac_file" : 'X\(//\)$' \| \ 52231 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 52232 $as_echo X"$ac_file" | 52233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 52234 s//\1/ 52235 q 52236 } 52237 /^X\(\/\/\)[^/].*/{ 52238 s//\1/ 52239 q 52240 } 52241 /^X\(\/\/\)$/{ 52242 s//\1/ 52243 q 52244 } 52245 /^X\(\/\).*/{ 52246 s//\1/ 52247 q 52248 } 52249 s/.*/./; q'` 52250 as_dir="$ac_dir"; as_fn_mkdir_p 52251 ac_builddir=. 52252 52253 case "$ac_dir" in 52254 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 52255 *) 52256 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 52257 # A ".." for each directory in $ac_dir_suffix. 52258 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 52259 case $ac_top_builddir_sub in 52260 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 52261 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 52262 esac ;; 52263 esac 52264 ac_abs_top_builddir=$ac_pwd 52265 ac_abs_builddir=$ac_pwd$ac_dir_suffix 52266 # for backward compatibility: 52267 ac_top_builddir=$ac_top_build_prefix 52268 52269 case $srcdir in 52270 .) # We are building in place. 52271 ac_srcdir=. 52272 ac_top_srcdir=$ac_top_builddir_sub 52273 ac_abs_top_srcdir=$ac_pwd ;; 52274 [\\/]* | ?:[\\/]* ) # Absolute name. 52275 ac_srcdir=$srcdir$ac_dir_suffix; 52276 ac_top_srcdir=$srcdir 52277 ac_abs_top_srcdir=$srcdir ;; 52278 *) # Relative name. 52279 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 52280 ac_top_srcdir=$ac_top_build_prefix$srcdir 52281 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 52282 esac 52283 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 52284 52285 52286 case $ac_mode in 52287 :F) 52288 # 52289 # CONFIG_FILE 52290 # 52291 52292 _ACEOF 52293 52294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52295 # If the template does not know about datarootdir, expand it. 52296 # FIXME: This hack should be removed a few years after 2.60. 52297 ac_datarootdir_hack=; ac_datarootdir_seen= 52298 ac_sed_dataroot=' 52299 /datarootdir/ { 52300 p 52301 q 52302 } 52303 /@datadir@/p 52304 /@docdir@/p 52305 /@infodir@/p 52306 /@localedir@/p 52307 /@mandir@/p' 52308 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 52309 *datarootdir*) ac_datarootdir_seen=yes;; 52310 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 52311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 52312 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 52313 _ACEOF 52314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52315 ac_datarootdir_hack=' 52316 s&@datadir@&$datadir&g 52317 s&@docdir@&$docdir&g 52318 s&@infodir@&$infodir&g 52319 s&@localedir@&$localedir&g 52320 s&@mandir@&$mandir&g 52321 s&\\\${datarootdir}&$datarootdir&g' ;; 52322 esac 52323 _ACEOF 52324 52325 # Neutralize VPATH when `$srcdir' = `.'. 52326 # Shell code in configure.ac might set extrasub. 52327 # FIXME: do we really want to maintain this feature? 52328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52329 ac_sed_extra="$ac_vpsub 52330 $extrasub 52331 _ACEOF 52332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52333 :t 52334 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 52335 s|@configure_input@|$ac_sed_conf_input|;t t 52336 s&@top_builddir@&$ac_top_builddir_sub&;t t 52337 s&@top_build_prefix@&$ac_top_build_prefix&;t t 52338 s&@srcdir@&$ac_srcdir&;t t 52339 s&@abs_srcdir@&$ac_abs_srcdir&;t t 52340 s&@top_srcdir@&$ac_top_srcdir&;t t 52341 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 52342 s&@builddir@&$ac_builddir&;t t 52343 s&@abs_builddir@&$ac_abs_builddir&;t t 52344 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 52345 $ac_datarootdir_hack 52346 " 52347 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 52348 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 52349 52350 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 52351 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 52352 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 52353 "$ac_tmp/out"`; test -z "$ac_out"; } && 52354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 52355 which seems to be undefined. Please make sure it is defined" >&5 52356 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 52357 which seems to be undefined. Please make sure it is defined" >&2;} 52358 52359 rm -f "$ac_tmp/stdin" 52360 case $ac_file in 52361 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 52362 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 52363 esac \ 52364 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 52365 ;; 52366 52367 52368 52369 esac 52370 52371 done # for ac_tag 52372 52373 52374 as_fn_exit 0 52375 _ACEOF 52376 ac_clean_files=$ac_clean_files_save 52377 52378 test $ac_write_fail = 0 || 52379 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 52380 52381 52382 # configure is writing to config.log, and then calls config.status. 52383 # config.status does its own redirection, appending to config.log. 52384 # Unfortunately, on DOS this fails, as config.log is still kept open 52385 # by configure, so config.status won't be able to write to it; its 52386 # output is simply discarded. So we exec the FD to /dev/null, 52387 # effectively closing config.log, so it can be properly (re)opened and 52388 # appended to by config.status. When coming back to configure, we 52389 # need to make the FD available again. 52390 if test "$no_create" != yes; then 52391 ac_cs_success=: 52392 ac_config_status_args= 52393 test "$silent" = yes && 52394 ac_config_status_args="$ac_config_status_args --quiet" 52395 exec 5>/dev/null 52396 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 52397 exec 5>>config.log 52398 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 52399 # would make configure fail if this is the last instruction. 52400 $ac_cs_success || as_fn_exit 1 52401 fi 52402 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 52403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 52404 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 52405 fi 52406 52407 52408 # Try to move the config.log file to the output directory. 52409 if test -e ./config.log; then 52410 $MV -f ./config.log "$OUTPUT_ROOT/config.log" 2> /dev/null 52411 fi 52412 52413 # Make the compare script executable 52414 $CHMOD +x $OUTPUT_ROOT/compare.sh 52415 52416 # Finally output some useful information to the user 52417 52418 # Finally output some useful information to the user 52419 52420 printf "\n" 52421 printf "====================================================\n" 52422 if test "x$no_create" != "xyes"; then 52423 if test "x$IS_RECONFIGURE" != "xyes"; then 52424 printf "A new configuration has been successfully created in\n %s\n" "$OUTPUT_ROOT" 52425 else 52426 printf "The existing configuration has been successfully updated in\n %s\n" "$OUTPUT_ROOT" 52427 fi 52428 else 52429 if test "x$IS_RECONFIGURE" != "xyes"; then 52430 printf "A configuration has been successfully checked but not created\n" 52431 else 52432 printf "The existing configuration has been successfully checked in\n %s\n" "$OUTPUT_ROOT" 52433 fi 52434 fi 52435 if test "x$CONFIGURE_COMMAND_LINE" != x; then 52436 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 52437 else 52438 printf "using default settings.\n" 52439 fi 52440 52441 printf "\n" 52442 printf "Configuration summary:\n" 52443 printf "* Debug level: $DEBUG_LEVEL\n" 52444 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 52445 printf "* JDK variant: $JDK_VARIANT\n" 52446 printf "* JVM variants: $with_jvm_variants\n" 52447 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 52448 52449 printf "\n" 52450 printf "Tools summary:\n" 52451 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 52452 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 52453 fi 52454 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 52455 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)\n" 52456 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 52457 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 52458 52459 printf "\n" 52460 printf "Build performance summary:\n" 52461 printf "* Cores to use: $JOBS\n" 52462 printf "* Memory limit: $MEMORY_SIZE MB\n" 52463 if test "x$CCACHE_STATUS" != "x"; then 52464 printf "* ccache status: $CCACHE_STATUS\n" 52465 fi 52466 printf "\n" 52467 52468 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 52469 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 52470 printf "will result in longer build times.\n" 52471 printf "\n" 52472 fi 52473 52474 if test "x$FOUND_ALT_VARIABLES" != "x"; then 52475 printf "WARNING: You have old-style ALT_ environment variables set.\n" 52476 printf "These are not respected, and will be ignored. It is recommended\n" 52477 printf "that you clean your environment. The following variables are set:\n" 52478 printf "$FOUND_ALT_VARIABLES\n" 52479 printf "\n" 52480 fi 52481 52482 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 52483 printf "WARNING: Your build output directory is not on a local disk.\n" 52484 printf "This will severely degrade build performance!\n" 52485 printf "It is recommended that you create an output directory on a local disk,\n" 52486 printf "and run the configure script again from that directory.\n" 52487 printf "\n" 52488 fi 52489 52490 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 52491 printf "WARNING: The result of this configuration has overridden an older\n" 52492 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 52493 printf "proper build. Failure to do so might result in strange build problems.\n" 52494 printf "\n" 52495 fi 52496 52497 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 52498 printf "WARNING: The result of this configuration was not saved.\n" 52499 printf "You should run without '--no-create | -n' to create the configuration.\n" 52500 printf "\n" 52501 fi 52502 52503