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" ;; 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=1416588259 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 aarch64) 13588 VAR_CPU=aarch64 13589 VAR_CPU_ARCH=aarch64 13590 VAR_CPU_BITS=64 13591 VAR_CPU_ENDIAN=little 13592 ;; 13593 powerpc) 13594 VAR_CPU=ppc 13595 VAR_CPU_ARCH=ppc 13596 VAR_CPU_BITS=32 13597 VAR_CPU_ENDIAN=big 13598 ;; 13599 powerpc64) 13600 VAR_CPU=ppc64 13601 VAR_CPU_ARCH=ppc 13602 VAR_CPU_BITS=64 13603 VAR_CPU_ENDIAN=big 13604 ;; 13605 powerpc64le) 13606 VAR_CPU=ppc64 13607 VAR_CPU_ARCH=ppc 13608 VAR_CPU_BITS=64 13609 VAR_CPU_ENDIAN=little 13610 ;; 13611 s390) 13612 VAR_CPU=s390 13613 VAR_CPU_ARCH=s390 13614 VAR_CPU_BITS=32 13615 VAR_CPU_ENDIAN=big 13616 ;; 13617 s390x) 13618 VAR_CPU=s390x 13619 VAR_CPU_ARCH=s390 13620 VAR_CPU_BITS=64 13621 VAR_CPU_ENDIAN=big 13622 ;; 13623 sparc) 13624 VAR_CPU=sparc 13625 VAR_CPU_ARCH=sparc 13626 VAR_CPU_BITS=32 13627 VAR_CPU_ENDIAN=big 13628 ;; 13629 sparcv9|sparc64) 13630 VAR_CPU=sparcv9 13631 VAR_CPU_ARCH=sparc 13632 VAR_CPU_BITS=64 13633 VAR_CPU_ENDIAN=big 13634 ;; 13635 *) 13636 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 13637 ;; 13638 esac 13639 13640 # ..and setup our own variables. (Do this explicitely to facilitate searching) 13641 OPENJDK_BUILD_OS="$VAR_OS" 13642 OPENJDK_BUILD_OS_API="$VAR_OS_API" 13643 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 13644 OPENJDK_BUILD_CPU="$VAR_CPU" 13645 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 13646 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 13647 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13648 13649 13650 13651 13652 13653 13654 13655 13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 13657 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 13659 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 13660 13661 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13662 13663 case "$host_os" in 13664 *linux*) 13665 VAR_OS=linux 13666 VAR_OS_API=posix 13667 VAR_OS_ENV=linux 13668 ;; 13669 *solaris*) 13670 VAR_OS=solaris 13671 VAR_OS_API=posix 13672 VAR_OS_ENV=solaris 13673 ;; 13674 *darwin*) 13675 VAR_OS=macosx 13676 VAR_OS_API=posix 13677 VAR_OS_ENV=macosx 13678 ;; 13679 *bsd*) 13680 VAR_OS=bsd 13681 VAR_OS_API=posix 13682 VAR_OS_ENV=bsd 13683 ;; 13684 *cygwin*) 13685 VAR_OS=windows 13686 VAR_OS_API=winapi 13687 VAR_OS_ENV=windows.cygwin 13688 ;; 13689 *mingw*) 13690 VAR_OS=windows 13691 VAR_OS_API=winapi 13692 VAR_OS_ENV=windows.msys 13693 ;; 13694 *aix*) 13695 VAR_OS=aix 13696 VAR_OS_API=posix 13697 VAR_OS_ENV=aix 13698 ;; 13699 *) 13700 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 13701 ;; 13702 esac 13703 13704 13705 # First argument is the cpu name from the trip/quad 13706 case "$host_cpu" in 13707 x86_64) 13708 VAR_CPU=x86_64 13709 VAR_CPU_ARCH=x86 13710 VAR_CPU_BITS=64 13711 VAR_CPU_ENDIAN=little 13712 ;; 13713 i?86) 13714 VAR_CPU=x86 13715 VAR_CPU_ARCH=x86 13716 VAR_CPU_BITS=32 13717 VAR_CPU_ENDIAN=little 13718 ;; 13719 arm*) 13720 VAR_CPU=arm 13721 VAR_CPU_ARCH=arm 13722 VAR_CPU_BITS=32 13723 VAR_CPU_ENDIAN=little 13724 ;; 13725 aarch64) 13726 VAR_CPU=aarch64 13727 VAR_CPU_ARCH=aarch64 13728 VAR_CPU_BITS=64 13729 VAR_CPU_ENDIAN=little 13730 ;; 13731 powerpc) 13732 VAR_CPU=ppc 13733 VAR_CPU_ARCH=ppc 13734 VAR_CPU_BITS=32 13735 VAR_CPU_ENDIAN=big 13736 ;; 13737 powerpc64) 13738 VAR_CPU=ppc64 13739 VAR_CPU_ARCH=ppc 13740 VAR_CPU_BITS=64 13741 VAR_CPU_ENDIAN=big 13742 ;; 13743 powerpc64le) 13744 VAR_CPU=ppc64 13745 VAR_CPU_ARCH=ppc 13746 VAR_CPU_BITS=64 13747 VAR_CPU_ENDIAN=little 13748 ;; 13749 s390) 13750 VAR_CPU=s390 13751 VAR_CPU_ARCH=s390 13752 VAR_CPU_BITS=32 13753 VAR_CPU_ENDIAN=big 13754 ;; 13755 s390x) 13756 VAR_CPU=s390x 13757 VAR_CPU_ARCH=s390 13758 VAR_CPU_BITS=64 13759 VAR_CPU_ENDIAN=big 13760 ;; 13761 sparc) 13762 VAR_CPU=sparc 13763 VAR_CPU_ARCH=sparc 13764 VAR_CPU_BITS=32 13765 VAR_CPU_ENDIAN=big 13766 ;; 13767 sparcv9|sparc64) 13768 VAR_CPU=sparcv9 13769 VAR_CPU_ARCH=sparc 13770 VAR_CPU_BITS=64 13771 VAR_CPU_ENDIAN=big 13772 ;; 13773 *) 13774 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 13775 ;; 13776 esac 13777 13778 # ... and setup our own variables. (Do this explicitely to facilitate searching) 13779 OPENJDK_TARGET_OS="$VAR_OS" 13780 OPENJDK_TARGET_OS_API="$VAR_OS_API" 13781 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 13782 OPENJDK_TARGET_CPU="$VAR_CPU" 13783 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 13784 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 13785 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13786 13787 13788 13789 13790 13791 13792 13793 13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 13795 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 13797 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 13798 13799 13800 13801 # Check whether --with-target-bits was given. 13802 if test "${with_target_bits+set}" = set; then : 13803 withval=$with_target_bits; 13804 fi 13805 13806 13807 # We have three types of compiles: 13808 # native == normal compilation, target system == build system 13809 # cross == traditional cross compilation, target system != build system; special toolchain needed 13810 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 13811 # 13812 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 13813 # We're doing a proper cross-compilation 13814 COMPILE_TYPE="cross" 13815 else 13816 COMPILE_TYPE="native" 13817 fi 13818 13819 if test "x$with_target_bits" != x; then 13820 if test "x$COMPILE_TYPE" = "xcross"; then 13821 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 13822 fi 13823 13824 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13825 # A reduced build is requested 13826 COMPILE_TYPE="reduced" 13827 OPENJDK_TARGET_CPU_BITS=32 13828 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 13829 OPENJDK_TARGET_CPU=x86 13830 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 13831 OPENJDK_TARGET_CPU=sparc 13832 else 13833 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 13834 fi 13835 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 13836 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 13837 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 13838 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 13839 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 13840 else 13841 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 13842 fi 13843 fi 13844 13845 13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 13847 $as_echo_n "checking compilation type... " >&6; } 13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 13849 $as_echo "$COMPILE_TYPE" >&6; } 13850 13851 13852 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 13853 REQUIRED_OS_NAME=SunOS 13854 REQUIRED_OS_VERSION=5.10 13855 fi 13856 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 13857 REQUIRED_OS_NAME=Linux 13858 REQUIRED_OS_VERSION=2.6 13859 fi 13860 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13861 REQUIRED_OS_NAME=Windows 13862 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 13863 REQUIRED_OS_VERSION=5.2 13864 else 13865 REQUIRED_OS_VERSION=5.1 13866 fi 13867 fi 13868 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 13869 REQUIRED_OS_NAME=Darwin 13870 REQUIRED_OS_VERSION=11.2 13871 fi 13872 13873 13874 13875 13876 13877 # Also store the legacy naming of the cpu. 13878 # Ie i586 and amd64 instead of x86 and x86_64 13879 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 13880 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13881 OPENJDK_TARGET_CPU_LEGACY="i586" 13882 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13883 # On all platforms except MacOSX replace x86_64 with amd64. 13884 OPENJDK_TARGET_CPU_LEGACY="amd64" 13885 fi 13886 13887 13888 # And the second legacy naming of the cpu. 13889 # Ie i386 and amd64 instead of x86 and x86_64. 13890 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 13891 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13892 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 13893 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13894 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 13895 fi 13896 13897 13898 # This is the name of the cpu (but using i386 and amd64 instead of 13899 # x86 and x86_64, respectively), preceeded by a /, to be used when 13900 # locating libraries. On macosx, it's empty, though. 13901 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 13902 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13903 OPENJDK_TARGET_CPU_LIBDIR="" 13904 fi 13905 13906 13907 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 13908 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 13909 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 13910 OPENJDK_TARGET_CPU_ISADIR="" 13911 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13912 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13913 OPENJDK_TARGET_CPU_ISADIR="/amd64" 13914 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 13915 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 13916 fi 13917 fi 13918 13919 13920 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 13921 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 13922 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 13923 # On linux only, we replace x86 with i386. 13924 OPENJDK_TARGET_CPU_OSARCH="i386" 13925 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13926 # On all platforms except macosx, we replace x86_64 with amd64. 13927 OPENJDK_TARGET_CPU_OSARCH="amd64" 13928 fi 13929 13930 13931 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 13932 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13933 OPENJDK_TARGET_CPU_JLI="i386" 13934 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13935 # On all platforms except macosx, we replace x86_64 with amd64. 13936 OPENJDK_TARGET_CPU_JLI="amd64" 13937 fi 13938 # Now setup the -D flags for building libjli. 13939 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 13940 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13941 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 13942 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 13943 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 13944 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 13945 fi 13946 fi 13947 13948 13949 # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths. 13950 if test "x$OPENJDK_TARGET_OS_API" = xposix; then 13951 OPENJDK_TARGET_OS_API_DIR="unix" 13952 fi 13953 if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then 13954 OPENJDK_TARGET_OS_API_DIR="windows" 13955 fi 13956 13957 13958 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13959 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 13960 else 13961 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR} 13962 fi 13963 13964 13965 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13966 A_LP64="LP64:=" 13967 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 13968 # unpack200.exe 13969 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 13970 ADD_LP64="-D_LP64=1" 13971 fi 13972 fi 13973 LP64=$A_LP64 13974 13975 13976 if test "x$COMPILE_TYPE" = "xcross"; then 13977 # FIXME: ... or should this include reduced builds..? 13978 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 13979 else 13980 DEFINE_CROSS_COMPILE_ARCH="" 13981 fi 13982 13983 13984 # ZERO_ARCHDEF is used to enable architecture-specific code 13985 case "${OPENJDK_TARGET_CPU}" in 13986 ppc*) ZERO_ARCHDEF=PPC ;; 13987 s390*) ZERO_ARCHDEF=S390 ;; 13988 sparc*) ZERO_ARCHDEF=SPARC ;; 13989 x86_64*) ZERO_ARCHDEF=AMD64 ;; 13990 x86) ZERO_ARCHDEF=IA32 ;; 13991 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 13992 esac 13993 13994 13995 13996 13997 # Continue setting up basic stuff. Most remaining code require fundamental tools. 13998 13999 # Save the current directory this script was started from 14000 CURDIR="$PWD" 14001 14002 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 14003 PATH_SEP=";" 14004 14005 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 14006 if test $SRC_ROOT_LENGTH -gt 100; then 14007 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 14008 fi 14009 14010 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 14012 $as_echo_n "checking cygwin release... " >&6; } 14013 CYGWIN_VERSION=`$UNAME -r` 14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 14015 $as_echo "$CYGWIN_VERSION" >&6; } 14016 WINDOWS_ENV_VENDOR='cygwin' 14017 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 14018 14019 CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.` 14020 if test "x$CYGWIN_VERSION_OK" = x; then 14021 { $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 14022 $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;} 14023 as_fn_error $? "Cannot continue" "$LINENO" 5 14024 fi 14025 if test "x$CYGPATH" = x; then 14026 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 14027 fi 14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 14029 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 14030 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14031 cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"` 14032 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 14033 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 14035 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 14036 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 14037 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 14038 if test "x$test_cygdrive_prefix" = x; then 14039 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 14040 fi 14041 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 14043 $as_echo_n "checking msys release... " >&6; } 14044 MSYS_VERSION=`$UNAME -r` 14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 14046 $as_echo "$MSYS_VERSION" >&6; } 14047 14048 WINDOWS_ENV_VENDOR='msys' 14049 WINDOWS_ENV_VERSION="$MSYS_VERSION" 14050 14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 14052 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 14053 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14054 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 14055 14056 windows_path="$MSYS_ROOT_PATH" 14057 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14058 unix_path=`$CYGPATH -u "$windows_path"` 14059 MSYS_ROOT_PATH="$unix_path" 14060 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14061 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14062 MSYS_ROOT_PATH="$unix_path" 14063 fi 14064 14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 14066 $as_echo "$MSYS_ROOT_PATH" >&6; } 14067 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 14068 else 14069 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 14070 fi 14071 14072 # Test if windows or unix (cygwin/msys) find is first in path. 14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 14074 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 14075 FIND_BINARY_OUTPUT=`find --version 2>&1` 14076 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 14078 $as_echo "unix style" >&6; } 14079 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 14081 $as_echo "Windows" >&6; } 14082 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 14083 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 14084 { $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 14085 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 14086 as_fn_error $? "Cannot continue" "$LINENO" 5 14087 else 14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14089 $as_echo "unknown" >&6; } 14090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 14091 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 14092 fi 14093 14094 else 14095 PATH_SEP=":" 14096 fi 14097 14098 14099 # We get the top-level directory from the supporting wrappers. 14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 14101 $as_echo_n "checking for top-level directory... " >&6; } 14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 14103 $as_echo "$TOPDIR" >&6; } 14104 14105 14106 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 14107 14108 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14109 14110 # Input might be given as Windows format, start by converting to 14111 # unix format. 14112 path="$CURDIR" 14113 new_path=`$CYGPATH -u "$path"` 14114 14115 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14116 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14117 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14118 # "foo.exe" is OK but "foo" is an error. 14119 # 14120 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14121 # It is also a way to make sure we got the proper file name for the real test later on. 14122 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14123 if test "x$test_shortpath" = x; then 14124 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14125 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14126 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 14127 fi 14128 14129 # Call helper function which possibly converts this using DOS-style short mode. 14130 # If so, the updated path is stored in $new_path. 14131 14132 input_path="$new_path" 14133 # Check if we need to convert this using DOS-style short mode. If the path 14134 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14135 # take no chances and rewrite it. 14136 # Note: m4 eats our [], so we need to use [ and ] instead. 14137 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14138 if test "x$has_forbidden_chars" != x; then 14139 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14140 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14141 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14142 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14143 # Going to short mode and back again did indeed matter. Since short mode is 14144 # case insensitive, let's make it lowercase to improve readability. 14145 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14146 # Now convert it back to Unix-stile (cygpath) 14147 input_path=`$CYGPATH -u "$shortmode_path"` 14148 new_path="$input_path" 14149 fi 14150 fi 14151 14152 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14153 if test "x$test_cygdrive_prefix" = x; then 14154 # As a simple fix, exclude /usr/bin since it's not a real path. 14155 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14156 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14157 # a path prefixed by /cygdrive for fixpath to work. 14158 new_path="$CYGWIN_ROOT_PATH$input_path" 14159 fi 14160 fi 14161 14162 14163 if test "x$path" != "x$new_path"; then 14164 CURDIR="$new_path" 14165 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14166 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14167 fi 14168 14169 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14170 14171 path="$CURDIR" 14172 has_colon=`$ECHO $path | $GREP ^.:` 14173 new_path="$path" 14174 if test "x$has_colon" = x; then 14175 # Not in mixed or Windows style, start by that. 14176 new_path=`cmd //c echo $path` 14177 fi 14178 14179 14180 input_path="$new_path" 14181 # Check if we need to convert this using DOS-style short mode. If the path 14182 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14183 # take no chances and rewrite it. 14184 # Note: m4 eats our [], so we need to use [ and ] instead. 14185 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14186 if test "x$has_forbidden_chars" != x; then 14187 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14188 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14189 fi 14190 14191 14192 windows_path="$new_path" 14193 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14194 unix_path=`$CYGPATH -u "$windows_path"` 14195 new_path="$unix_path" 14196 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14197 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14198 new_path="$unix_path" 14199 fi 14200 14201 if test "x$path" != "x$new_path"; then 14202 CURDIR="$new_path" 14203 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14204 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14205 fi 14206 14207 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14208 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14209 14210 else 14211 # We're on a posix platform. Hooray! :) 14212 path="$CURDIR" 14213 has_space=`$ECHO "$path" | $GREP " "` 14214 if test "x$has_space" != x; then 14215 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14216 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14217 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14218 fi 14219 14220 # Use eval to expand a potential ~ 14221 eval path="$path" 14222 if test ! -f "$path" && test ! -d "$path"; then 14223 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14224 fi 14225 14226 CURDIR="`cd "$path"; $THEPWDCMD -L`" 14227 fi 14228 14229 14230 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14231 14232 # Input might be given as Windows format, start by converting to 14233 # unix format. 14234 path="$TOPDIR" 14235 new_path=`$CYGPATH -u "$path"` 14236 14237 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14238 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14239 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14240 # "foo.exe" is OK but "foo" is an error. 14241 # 14242 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14243 # It is also a way to make sure we got the proper file name for the real test later on. 14244 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14245 if test "x$test_shortpath" = x; then 14246 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14247 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14248 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 14249 fi 14250 14251 # Call helper function which possibly converts this using DOS-style short mode. 14252 # If so, the updated path is stored in $new_path. 14253 14254 input_path="$new_path" 14255 # Check if we need to convert this using DOS-style short mode. If the path 14256 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14257 # take no chances and rewrite it. 14258 # Note: m4 eats our [], so we need to use [ and ] instead. 14259 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14260 if test "x$has_forbidden_chars" != x; then 14261 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14262 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14263 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14264 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14265 # Going to short mode and back again did indeed matter. Since short mode is 14266 # case insensitive, let's make it lowercase to improve readability. 14267 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14268 # Now convert it back to Unix-stile (cygpath) 14269 input_path=`$CYGPATH -u "$shortmode_path"` 14270 new_path="$input_path" 14271 fi 14272 fi 14273 14274 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14275 if test "x$test_cygdrive_prefix" = x; then 14276 # As a simple fix, exclude /usr/bin since it's not a real path. 14277 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14278 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14279 # a path prefixed by /cygdrive for fixpath to work. 14280 new_path="$CYGWIN_ROOT_PATH$input_path" 14281 fi 14282 fi 14283 14284 14285 if test "x$path" != "x$new_path"; then 14286 TOPDIR="$new_path" 14287 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14288 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14289 fi 14290 14291 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14292 14293 path="$TOPDIR" 14294 has_colon=`$ECHO $path | $GREP ^.:` 14295 new_path="$path" 14296 if test "x$has_colon" = x; then 14297 # Not in mixed or Windows style, start by that. 14298 new_path=`cmd //c echo $path` 14299 fi 14300 14301 14302 input_path="$new_path" 14303 # Check if we need to convert this using DOS-style short mode. If the path 14304 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14305 # take no chances and rewrite it. 14306 # Note: m4 eats our [], so we need to use [ and ] instead. 14307 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14308 if test "x$has_forbidden_chars" != x; then 14309 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14310 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14311 fi 14312 14313 14314 windows_path="$new_path" 14315 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14316 unix_path=`$CYGPATH -u "$windows_path"` 14317 new_path="$unix_path" 14318 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14319 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14320 new_path="$unix_path" 14321 fi 14322 14323 if test "x$path" != "x$new_path"; then 14324 TOPDIR="$new_path" 14325 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14326 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14327 fi 14328 14329 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14330 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14331 14332 else 14333 # We're on a posix platform. Hooray! :) 14334 path="$TOPDIR" 14335 has_space=`$ECHO "$path" | $GREP " "` 14336 if test "x$has_space" != x; then 14337 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14338 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14339 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14340 fi 14341 14342 # Use eval to expand a potential ~ 14343 eval path="$path" 14344 if test ! -f "$path" && test ! -d "$path"; then 14345 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14346 fi 14347 14348 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 14349 fi 14350 14351 # SRC_ROOT is a traditional alias for TOPDIR. 14352 SRC_ROOT=$TOPDIR 14353 14354 # Locate the directory of this script. 14355 AUTOCONF_DIR=$TOPDIR/common/autoconf 14356 14357 14358 # Setup default logging of stdout and stderr to build.log in the output root. 14359 BUILD_LOG='$(OUTPUT_ROOT)/build.log' 14360 BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old' 14361 BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)' 14362 14363 14364 14365 14366 14367 # Check if it's a pure open build or if custom sources are to be used. 14368 14369 # Check whether --enable-openjdk-only was given. 14370 if test "${enable_openjdk_only+set}" = set; then : 14371 enableval=$enable_openjdk_only; 14372 else 14373 enable_openjdk_only="no" 14374 fi 14375 14376 14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 14378 $as_echo_n "checking for presence of closed sources... " >&6; } 14379 if test -d "$SRC_ROOT/jdk/src/closed"; then 14380 CLOSED_SOURCE_PRESENT=yes 14381 else 14382 CLOSED_SOURCE_PRESENT=no 14383 fi 14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 14385 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 14386 14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 14388 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 14389 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 14391 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 14392 14393 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 14394 OPENJDK=true 14395 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 14397 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 14398 fi 14399 else 14400 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14401 OPENJDK=true 14402 else 14403 OPENJDK=false 14404 fi 14405 fi 14406 14407 if test "x$OPENJDK" = "xtrue"; then 14408 SET_OPENJDK="OPENJDK=true" 14409 fi 14410 14411 14412 14413 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 14414 # the IncludeCustomExtension macro. 14415 14416 14417 # Check whether --with-custom-make-dir was given. 14418 if test "${with_custom_make_dir+set}" = set; then : 14419 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 14420 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 14421 fi 14422 14423 14424 14425 14426 # These are needed to be able to create a configuration name (and thus the output directory) 14427 14428 ############################################################################### 14429 # 14430 # Check which variant of the JDK that we want to build. 14431 # Currently we have: 14432 # normal: standard edition 14433 # but the custom make system may add other variants 14434 # 14435 # Effectively the JDK variant gives a name to a specific set of 14436 # modules to compile into the JDK. In the future, these modules 14437 # might even be Jigsaw modules. 14438 # 14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 14440 $as_echo_n "checking which variant of the JDK to build... " >&6; } 14441 14442 # Check whether --with-jdk-variant was given. 14443 if test "${with_jdk_variant+set}" = set; then : 14444 withval=$with_jdk_variant; 14445 fi 14446 14447 14448 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 14449 JDK_VARIANT="normal" 14450 else 14451 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 14452 fi 14453 14454 14455 14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 14457 $as_echo "$JDK_VARIANT" >&6; } 14458 14459 14460 ############################################################################### 14461 # 14462 # Check which interpreter of the JVM we want to build. 14463 # Currently we have: 14464 # template: Template interpreter (the default) 14465 # cpp : C++ interpreter 14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5 14467 $as_echo_n "checking which interpreter of the JVM to build... " >&6; } 14468 14469 # Check whether --with-jvm-interpreter was given. 14470 if test "${with_jvm_interpreter+set}" = set; then : 14471 withval=$with_jvm_interpreter; 14472 fi 14473 14474 14475 if test "x$with_jvm_interpreter" = x; then 14476 with_jvm_interpreter="template" 14477 fi 14478 14479 JVM_INTERPRETER="$with_jvm_interpreter" 14480 14481 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then 14482 as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5 14483 fi 14484 14485 14486 14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5 14488 $as_echo "$with_jvm_interpreter" >&6; } 14489 14490 14491 14492 ############################################################################### 14493 # 14494 # Check which variants of the JVM that we want to build. 14495 # Currently we have: 14496 # server: normal interpreter and a tiered C1/C2 compiler 14497 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 14498 # minimal1: reduced form of client with optional VM services and features stripped out 14499 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 14500 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 14501 # zero: no machine code interpreter, no compiler 14502 # zeroshark: zero interpreter and shark/llvm compiler backend 14503 # core: interpreter only, no compiler (only works on some platforms) 14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 14505 $as_echo_n "checking which variants of the JVM to build... " >&6; } 14506 14507 # Check whether --with-jvm-variants was given. 14508 if test "${with_jvm_variants+set}" = set; then : 14509 withval=$with_jvm_variants; 14510 fi 14511 14512 14513 if test "x$with_jvm_variants" = x; then 14514 with_jvm_variants="server" 14515 fi 14516 14517 JVM_VARIANTS=",$with_jvm_variants," 14518 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,//'` 14519 14520 if test "x$TEST_VARIANTS" != "x,"; then 14521 as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5 14522 fi 14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 14524 $as_echo "$with_jvm_variants" >&6; } 14525 14526 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 14527 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 14528 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 14529 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 14530 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 14531 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 14532 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 14533 14534 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14535 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14536 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 14537 fi 14538 fi 14539 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14540 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14541 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 14542 fi 14543 fi 14544 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14545 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14546 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 14547 fi 14548 fi 14549 14550 # Replace the commas with AND for use in the build directory name. 14551 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'` 14552 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/'` 14553 if test "x$COUNT_VARIANTS" != "x,1"; then 14554 BUILDING_MULTIPLE_JVM_VARIANTS=yes 14555 else 14556 BUILDING_MULTIPLE_JVM_VARIANTS=no 14557 fi 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 INCLUDE_SA=true 14569 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 14570 INCLUDE_SA=false 14571 fi 14572 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 14573 INCLUDE_SA=false 14574 fi 14575 if test "x$OPENJDK_TARGET_OS" = xaix ; then 14576 INCLUDE_SA=false 14577 fi 14578 if test "x$OPENJDK_TARGET_CPU" = xaarch64; then 14579 INCLUDE_SA=false 14580 fi 14581 14582 14583 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 14584 MACOSX_UNIVERSAL="true" 14585 fi 14586 14587 14588 14589 14590 ############################################################################### 14591 # 14592 # Set the debug level 14593 # release: no debug information, all optimizations, no asserts. 14594 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 14595 # fastdebug: debug information (-g), all optimizations, all asserts 14596 # slowdebug: debug information (-g), no optimizations, all asserts 14597 # 14598 DEBUG_LEVEL="release" 14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 14600 $as_echo_n "checking which debug level to use... " >&6; } 14601 # Check whether --enable-debug was given. 14602 if test "${enable_debug+set}" = set; then : 14603 enableval=$enable_debug; 14604 ENABLE_DEBUG="${enableval}" 14605 DEBUG_LEVEL="fastdebug" 14606 14607 else 14608 ENABLE_DEBUG="no" 14609 fi 14610 14611 14612 14613 # Check whether --with-debug-level was given. 14614 if test "${with_debug_level+set}" = set; then : 14615 withval=$with_debug_level; 14616 DEBUG_LEVEL="${withval}" 14617 if test "x$ENABLE_DEBUG" = xyes; then 14618 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 14619 fi 14620 14621 fi 14622 14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 14624 $as_echo "$DEBUG_LEVEL" >&6; } 14625 14626 if test "x$DEBUG_LEVEL" != xrelease && \ 14627 test "x$DEBUG_LEVEL" != xoptimized && \ 14628 test "x$DEBUG_LEVEL" != xfastdebug && \ 14629 test "x$DEBUG_LEVEL" != xslowdebug; then 14630 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 14631 fi 14632 14633 14634 ############################################################################### 14635 # 14636 # Setup legacy vars/targets and new vars to deal with different debug levels. 14637 # 14638 14639 case $DEBUG_LEVEL in 14640 release ) 14641 VARIANT="OPT" 14642 FASTDEBUG="false" 14643 DEBUG_CLASSFILES="false" 14644 BUILD_VARIANT_RELEASE="" 14645 HOTSPOT_DEBUG_LEVEL="product" 14646 HOTSPOT_EXPORT="product" 14647 ;; 14648 fastdebug ) 14649 VARIANT="DBG" 14650 FASTDEBUG="true" 14651 DEBUG_CLASSFILES="true" 14652 BUILD_VARIANT_RELEASE="-fastdebug" 14653 HOTSPOT_DEBUG_LEVEL="fastdebug" 14654 HOTSPOT_EXPORT="fastdebug" 14655 ;; 14656 slowdebug ) 14657 VARIANT="DBG" 14658 FASTDEBUG="false" 14659 DEBUG_CLASSFILES="true" 14660 BUILD_VARIANT_RELEASE="-debug" 14661 HOTSPOT_DEBUG_LEVEL="debug" 14662 HOTSPOT_EXPORT="debug" 14663 ;; 14664 optimized ) 14665 VARIANT="OPT" 14666 FASTDEBUG="false" 14667 DEBUG_CLASSFILES="false" 14668 BUILD_VARIANT_RELEASE="-optimized" 14669 HOTSPOT_DEBUG_LEVEL="optimized" 14670 HOTSPOT_EXPORT="optimized" 14671 ;; 14672 esac 14673 14674 # The debug level 'optimized' is a little special because it is currently only 14675 # applicable to the HotSpot build where it means to build a completely 14676 # optimized version of the VM without any debugging code (like for the 14677 # 'release' debug level which is called 'product' in the HotSpot build) but 14678 # with the exception that it can contain additional code which is otherwise 14679 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 14680 # test new and/or experimental features which are not intended for customer 14681 # shipment. Because these new features need to be tested and benchmarked in 14682 # real world scenarios, we want to build the containing JDK at the 'release' 14683 # debug level. 14684 if test "x$DEBUG_LEVEL" = xoptimized; then 14685 DEBUG_LEVEL="release" 14686 fi 14687 14688 ##### 14689 # Generate the legacy makefile targets for hotspot. 14690 # The hotspot api for selecting the build artifacts, really, needs to be improved. 14691 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 14692 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 14693 # But until then ... 14694 HOTSPOT_TARGET="" 14695 14696 if test "x$JVM_VARIANT_SERVER" = xtrue; then 14697 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 14698 fi 14699 14700 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14701 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 14702 fi 14703 14704 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14705 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 14706 fi 14707 14708 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14709 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 14710 fi 14711 14712 if test "x$JVM_VARIANT_ZERO" = xtrue; then 14713 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 14714 fi 14715 14716 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 14717 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 14718 fi 14719 14720 if test "x$JVM_VARIANT_CORE" = xtrue; then 14721 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 14722 fi 14723 14724 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 14725 14726 # On Macosx universal binaries are produced, but they only contain 14727 # 64 bit intel. This invalidates control of which jvms are built 14728 # from configure, but only server is valid anyway. Fix this 14729 # when hotspot makefiles are rewritten. 14730 if test "x$MACOSX_UNIVERSAL" = xtrue; then 14731 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 14732 fi 14733 14734 ##### 14735 14736 14737 14738 14739 14740 14741 14742 14743 # With basic setup done, call the custom early hook. 14744 14745 14746 # Check if we have devkits, extra paths or sysroot set. 14747 14748 14749 # Check whether --with-devkit was given. 14750 if test "${with_devkit+set}" = set; then : 14751 withval=$with_devkit; 14752 14753 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14754 14755 # Input might be given as Windows format, start by converting to 14756 # unix format. 14757 path="$with_devkit" 14758 new_path=`$CYGPATH -u "$path"` 14759 14760 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14761 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14762 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14763 # "foo.exe" is OK but "foo" is an error. 14764 # 14765 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14766 # It is also a way to make sure we got the proper file name for the real test later on. 14767 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14768 if test "x$test_shortpath" = x; then 14769 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14770 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14771 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 14772 fi 14773 14774 # Call helper function which possibly converts this using DOS-style short mode. 14775 # If so, the updated path is stored in $new_path. 14776 14777 input_path="$new_path" 14778 # Check if we need to convert this using DOS-style short mode. If the path 14779 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14780 # take no chances and rewrite it. 14781 # Note: m4 eats our [], so we need to use [ and ] instead. 14782 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14783 if test "x$has_forbidden_chars" != x; then 14784 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14785 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14786 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14787 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14788 # Going to short mode and back again did indeed matter. Since short mode is 14789 # case insensitive, let's make it lowercase to improve readability. 14790 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14791 # Now convert it back to Unix-stile (cygpath) 14792 input_path=`$CYGPATH -u "$shortmode_path"` 14793 new_path="$input_path" 14794 fi 14795 fi 14796 14797 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14798 if test "x$test_cygdrive_prefix" = x; then 14799 # As a simple fix, exclude /usr/bin since it's not a real path. 14800 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14801 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14802 # a path prefixed by /cygdrive for fixpath to work. 14803 new_path="$CYGWIN_ROOT_PATH$input_path" 14804 fi 14805 fi 14806 14807 14808 if test "x$path" != "x$new_path"; then 14809 with_devkit="$new_path" 14810 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14811 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14812 fi 14813 14814 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14815 14816 path="$with_devkit" 14817 has_colon=`$ECHO $path | $GREP ^.:` 14818 new_path="$path" 14819 if test "x$has_colon" = x; then 14820 # Not in mixed or Windows style, start by that. 14821 new_path=`cmd //c echo $path` 14822 fi 14823 14824 14825 input_path="$new_path" 14826 # Check if we need to convert this using DOS-style short mode. If the path 14827 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14828 # take no chances and rewrite it. 14829 # Note: m4 eats our [], so we need to use [ and ] instead. 14830 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14831 if test "x$has_forbidden_chars" != x; then 14832 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14833 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14834 fi 14835 14836 14837 windows_path="$new_path" 14838 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14839 unix_path=`$CYGPATH -u "$windows_path"` 14840 new_path="$unix_path" 14841 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14842 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14843 new_path="$unix_path" 14844 fi 14845 14846 if test "x$path" != "x$new_path"; then 14847 with_devkit="$new_path" 14848 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14849 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14850 fi 14851 14852 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14853 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14854 14855 else 14856 # We're on a posix platform. Hooray! :) 14857 path="$with_devkit" 14858 has_space=`$ECHO "$path" | $GREP " "` 14859 if test "x$has_space" != x; then 14860 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14861 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14862 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14863 fi 14864 14865 # Use eval to expand a potential ~ 14866 eval path="$path" 14867 if test ! -f "$path" && test ! -d "$path"; then 14868 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 14869 fi 14870 14871 with_devkit="`cd "$path"; $THEPWDCMD -L`" 14872 fi 14873 14874 DEVKIT_ROOT="$with_devkit" 14875 # Check for a meta data info file in the root of the devkit 14876 if test -f "$DEVKIT_ROOT/devkit.info"; then 14877 # This potentially sets the following: 14878 # DEVKIT_NAME: A descriptive name of the devkit 14879 # DEVKIT_TOOLCHAIN_PATH: Corresponds to --with-toolchain-path 14880 # DEVKIT_EXTRA_PATH: Corresponds to --with-extra-path 14881 # DEVKIT_SYSROOT: Corresponds to --with-sysroot 14882 . $DEVKIT_ROOT/devkit.info 14883 fi 14884 14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 14886 $as_echo_n "checking for devkit... " >&6; } 14887 if test "x$DEVKIT_NAME" != x; then 14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 14889 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 14890 else 14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 14892 $as_echo "$DEVKIT_ROOT" >&6; } 14893 fi 14894 14895 if test "x$DEVKIT_EXTRA_PATH" != x; then 14896 14897 if test "x$DEVKIT_EXTRA_PATH" != x; then 14898 if test "x$EXTRA_PATH" = x; then 14899 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 14900 else 14901 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 14902 fi 14903 fi 14904 14905 fi 14906 14907 # Fallback default of just /bin if DEVKIT_PATH is not defined 14908 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 14909 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 14910 fi 14911 14912 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 14913 if test "x$TOOLCHAIN_PATH" = x; then 14914 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 14915 else 14916 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 14917 fi 14918 fi 14919 14920 14921 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 14922 # places for backwards compatiblity. 14923 if test "x$DEVKIT_SYSROOT" != x; then 14924 SYSROOT="$DEVKIT_SYSROOT" 14925 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 14926 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 14927 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 14928 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 14929 fi 14930 14931 14932 fi 14933 14934 14935 # You can force the sysroot if the sysroot encoded into the compiler tools 14936 # is not correct. 14937 14938 # Check whether --with-sys-root was given. 14939 if test "${with_sys_root+set}" = set; then : 14940 withval=$with_sys_root; SYSROOT=$with_sys_root 14941 14942 fi 14943 14944 14945 14946 # Check whether --with-sysroot was given. 14947 if test "${with_sysroot+set}" = set; then : 14948 withval=$with_sysroot; SYSROOT=$with_sysroot 14949 14950 fi 14951 14952 14953 14954 # Check whether --with-tools-dir was given. 14955 if test "${with_tools_dir+set}" = set; then : 14956 withval=$with_tools_dir; 14957 if test "x$with_tools_dir" != x; then 14958 if test "x$TOOLCHAIN_PATH" = x; then 14959 TOOLCHAIN_PATH="$with_tools_dir" 14960 else 14961 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 14962 fi 14963 fi 14964 14965 14966 fi 14967 14968 14969 14970 # Check whether --with-toolchain-path was given. 14971 if test "${with_toolchain_path+set}" = set; then : 14972 withval=$with_toolchain_path; 14973 if test "x$with_toolchain_path" != x; then 14974 if test "x$TOOLCHAIN_PATH" = x; then 14975 TOOLCHAIN_PATH="$with_toolchain_path" 14976 else 14977 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 14978 fi 14979 fi 14980 14981 14982 fi 14983 14984 14985 14986 # Check whether --with-extra-path was given. 14987 if test "${with_extra_path+set}" = set; then : 14988 withval=$with_extra_path; 14989 if test "x$with_extra_path" != x; then 14990 if test "x$EXTRA_PATH" = x; then 14991 EXTRA_PATH="$with_extra_path" 14992 else 14993 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 14994 fi 14995 fi 14996 14997 14998 fi 14999 15000 15001 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 15002 # detect if Xcode is installed by running xcodebuild -version 15003 # if no Xcode installed, xcodebuild exits with 1 15004 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 15005 if /usr/bin/xcodebuild -version >/dev/null 2>&1; then 15006 # We need to use xcodebuild in the toolchain dir provided by the user, this will 15007 # fall back on the stub binary in /usr/bin/xcodebuild 15008 # Extract the first word of "xcodebuild", so it can be a program name with args. 15009 set dummy xcodebuild; ac_word=$2 15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15011 $as_echo_n "checking for $ac_word... " >&6; } 15012 if ${ac_cv_path_XCODEBUILD+:} false; then : 15013 $as_echo_n "(cached) " >&6 15014 else 15015 case $XCODEBUILD in 15016 [\\/]* | ?:[\\/]*) 15017 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 15018 ;; 15019 *) 15020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15021 for as_dir in $TOOLCHAIN_PATH 15022 do 15023 IFS=$as_save_IFS 15024 test -z "$as_dir" && as_dir=. 15025 for ac_exec_ext in '' $ac_executable_extensions; do 15026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15027 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 15028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15029 break 2 15030 fi 15031 done 15032 done 15033 IFS=$as_save_IFS 15034 15035 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 15036 ;; 15037 esac 15038 fi 15039 XCODEBUILD=$ac_cv_path_XCODEBUILD 15040 if test -n "$XCODEBUILD"; then 15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 15042 $as_echo "$XCODEBUILD" >&6; } 15043 else 15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15045 $as_echo "no" >&6; } 15046 fi 15047 15048 15049 else 15050 # this should result in SYSROOT being empty, unless --with-sysroot is provided 15051 # when only the command line tools are installed there are no SDKs, so headers 15052 # are copied into the system frameworks 15053 XCODEBUILD= 15054 15055 fi 15056 15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 15058 $as_echo_n "checking for sdk name... " >&6; } 15059 15060 # Check whether --with-sdk-name was given. 15061 if test "${with_sdk_name+set}" = set; then : 15062 withval=$with_sdk_name; SDKNAME=$with_sdk_name 15063 15064 fi 15065 15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 15067 $as_echo "$SDKNAME" >&6; } 15068 15069 # if toolchain path is specified then don't rely on system headers, they may not compile 15070 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 15071 test -z "$TOOLCHAIN_PATH" && \ 15072 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 15073 15074 if test -z "$SYSROOT"; then 15075 if test -n "$XCODEBUILD"; then 15076 # if we don't have system headers, use default SDK name (last resort) 15077 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 15078 SDKNAME=${SDKNAME:-macosx} 15079 fi 15080 15081 if test -n "$SDKNAME"; then 15082 # Call xcodebuild to determine SYSROOT 15083 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'` 15084 fi 15085 else 15086 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 15087 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 15088 fi 15089 fi 15090 else 15091 # warn user if --with-sdk-name was also set 15092 if test -n "$with_sdk_name"; then 15093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 15094 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 15095 fi 15096 fi 15097 15098 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 15099 # If no system framework headers, then SYSROOT must be set, or we won't build 15100 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 15101 fi 15102 15103 # Perform a basic sanity test 15104 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 15105 if test -z "$SYSROOT"; then 15106 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 15107 else 15108 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 15109 fi 15110 fi 15111 15112 # set SDKROOT too, Xcode tools will pick it up 15113 SDKROOT=$SYSROOT 15114 15115 fi 15116 15117 # Prepend the extra path to the global path 15118 15119 if test "x$EXTRA_PATH" != x; then 15120 if test "x$PATH" = x; then 15121 PATH="$EXTRA_PATH" 15122 else 15123 PATH="$EXTRA_PATH:$PATH" 15124 fi 15125 fi 15126 15127 15128 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 15129 # Add extra search paths on solaris for utilities like ar and as etc... 15130 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 15131 fi 15132 15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 15134 $as_echo_n "checking for sysroot... " >&6; } 15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 15136 $as_echo "$SYSROOT" >&6; } 15137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 15138 $as_echo_n "checking for toolchain path... " >&6; } 15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 15140 $as_echo "$TOOLCHAIN_PATH" >&6; } 15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 15142 $as_echo_n "checking for extra path... " >&6; } 15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 15144 $as_echo "$EXTRA_PATH" >&6; } 15145 15146 15147 # To properly create a configuration name, we need to have the OpenJDK target 15148 # and options (variants and debug level) parsed. 15149 15150 15151 15152 # Check whether --with-conf-name was given. 15153 if test "${with_conf_name+set}" = set; then : 15154 withval=$with_conf_name; CONF_NAME=${with_conf_name} 15155 fi 15156 15157 15158 # Test from where we are running configure, in or outside of src root. 15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 15160 $as_echo_n "checking where to store configuration... " >&6; } 15161 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 15162 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 15163 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 15164 # We are running configure from the src root. 15165 # Create a default ./build/target-variant-debuglevel output root. 15166 if test "x${CONF_NAME}" = x; then 15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 15168 $as_echo "in default location" >&6; } 15169 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 15170 else 15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 15172 $as_echo "in build directory with custom name" >&6; } 15173 fi 15174 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 15175 $MKDIR -p "$OUTPUT_ROOT" 15176 if test ! -d "$OUTPUT_ROOT"; then 15177 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 15178 fi 15179 else 15180 # We are running configure from outside of the src dir. 15181 # Then use the current directory as output dir! 15182 # If configuration is situated in normal build directory, just use the build 15183 # directory name as configuration name, otherwise use the complete path. 15184 if test "x${CONF_NAME}" = x; then 15185 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 15186 fi 15187 OUTPUT_ROOT="$CURDIR" 15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 15189 $as_echo "in current directory" >&6; } 15190 15191 # WARNING: This might be a bad thing to do. You need to be sure you want to 15192 # have a configuration in this directory. Do some sanity checks! 15193 15194 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 15195 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 15196 # other files 15197 files_present=`$LS $OUTPUT_ROOT` 15198 # Configure has already touched config.log and confdefs.h in the current dir when this check 15199 # is performed. 15200 filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \ 15201 | $TR -d '\n'` 15202 if test "x$filtered_files" != x; then 15203 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 15204 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 15205 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 15206 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 15207 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 15208 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 15209 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 15210 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 15211 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 15212 $as_echo "$as_me: seriously mess up just about everything." >&6;} 15213 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 15214 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 15215 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 15216 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 15217 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 15218 fi 15219 fi 15220 fi 15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 15222 $as_echo_n "checking what configuration name to use... " >&6; } 15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 15224 $as_echo "$CONF_NAME" >&6; } 15225 15226 15227 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15228 15229 # Input might be given as Windows format, start by converting to 15230 # unix format. 15231 path="$OUTPUT_ROOT" 15232 new_path=`$CYGPATH -u "$path"` 15233 15234 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15235 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15236 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15237 # "foo.exe" is OK but "foo" is an error. 15238 # 15239 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15240 # It is also a way to make sure we got the proper file name for the real test later on. 15241 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15242 if test "x$test_shortpath" = x; then 15243 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15244 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15245 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 15246 fi 15247 15248 # Call helper function which possibly converts this using DOS-style short mode. 15249 # If so, the updated path is stored in $new_path. 15250 15251 input_path="$new_path" 15252 # Check if we need to convert this using DOS-style short mode. If the path 15253 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15254 # take no chances and rewrite it. 15255 # Note: m4 eats our [], so we need to use [ and ] instead. 15256 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15257 if test "x$has_forbidden_chars" != x; then 15258 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15259 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15260 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15261 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15262 # Going to short mode and back again did indeed matter. Since short mode is 15263 # case insensitive, let's make it lowercase to improve readability. 15264 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15265 # Now convert it back to Unix-stile (cygpath) 15266 input_path=`$CYGPATH -u "$shortmode_path"` 15267 new_path="$input_path" 15268 fi 15269 fi 15270 15271 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15272 if test "x$test_cygdrive_prefix" = x; then 15273 # As a simple fix, exclude /usr/bin since it's not a real path. 15274 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15275 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15276 # a path prefixed by /cygdrive for fixpath to work. 15277 new_path="$CYGWIN_ROOT_PATH$input_path" 15278 fi 15279 fi 15280 15281 15282 if test "x$path" != "x$new_path"; then 15283 OUTPUT_ROOT="$new_path" 15284 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15285 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15286 fi 15287 15288 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15289 15290 path="$OUTPUT_ROOT" 15291 has_colon=`$ECHO $path | $GREP ^.:` 15292 new_path="$path" 15293 if test "x$has_colon" = x; then 15294 # Not in mixed or Windows style, start by that. 15295 new_path=`cmd //c echo $path` 15296 fi 15297 15298 15299 input_path="$new_path" 15300 # Check if we need to convert this using DOS-style short mode. If the path 15301 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15302 # take no chances and rewrite it. 15303 # Note: m4 eats our [], so we need to use [ and ] instead. 15304 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15305 if test "x$has_forbidden_chars" != x; then 15306 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15307 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15308 fi 15309 15310 15311 windows_path="$new_path" 15312 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15313 unix_path=`$CYGPATH -u "$windows_path"` 15314 new_path="$unix_path" 15315 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15316 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15317 new_path="$unix_path" 15318 fi 15319 15320 if test "x$path" != "x$new_path"; then 15321 OUTPUT_ROOT="$new_path" 15322 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15323 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15324 fi 15325 15326 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15327 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15328 15329 else 15330 # We're on a posix platform. Hooray! :) 15331 path="$OUTPUT_ROOT" 15332 has_space=`$ECHO "$path" | $GREP " "` 15333 if test "x$has_space" != x; then 15334 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15335 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15336 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15337 fi 15338 15339 # Use eval to expand a potential ~ 15340 eval path="$path" 15341 if test ! -f "$path" && test ! -d "$path"; then 15342 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 15343 fi 15344 15345 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 15346 fi 15347 15348 15349 SPEC=$OUTPUT_ROOT/spec.gmk 15350 15351 CONF_NAME=$CONF_NAME 15352 15353 OUTPUT_ROOT=$OUTPUT_ROOT 15354 15355 15356 # Most of the probed defines are put into config.h 15357 ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" 15358 15359 # The spec.gmk file contains all variables for the make system. 15360 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 15361 15362 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 15363 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 15364 15365 # The bootcycle-spec.gmk file contains support for boot cycle builds. 15366 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 15367 15368 # The compare.sh is used to compare the build output to other builds. 15369 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 15370 15371 # Spec.sh is currently used by compare-objects.sh 15372 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" 15373 15374 # The generated Makefile knows where the spec.gmk is and where the source is. 15375 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 15376 # which will look for generated configurations 15377 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 15378 15379 15380 15381 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 15382 15383 for ac_prog in apt-get yum port pkgutil pkgadd 15384 do 15385 # Extract the first word of "$ac_prog", so it can be a program name with args. 15386 set dummy $ac_prog; ac_word=$2 15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15388 $as_echo_n "checking for $ac_word... " >&6; } 15389 if ${ac_cv_prog_PKGHANDLER+:} false; then : 15390 $as_echo_n "(cached) " >&6 15391 else 15392 if test -n "$PKGHANDLER"; then 15393 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 15394 else 15395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15396 for as_dir in $PATH 15397 do 15398 IFS=$as_save_IFS 15399 test -z "$as_dir" && as_dir=. 15400 for ac_exec_ext in '' $ac_executable_extensions; do 15401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15402 ac_cv_prog_PKGHANDLER="$ac_prog" 15403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15404 break 2 15405 fi 15406 done 15407 done 15408 IFS=$as_save_IFS 15409 15410 fi 15411 fi 15412 PKGHANDLER=$ac_cv_prog_PKGHANDLER 15413 if test -n "$PKGHANDLER"; then 15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 15415 $as_echo "$PKGHANDLER" >&6; } 15416 else 15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15418 $as_echo "no" >&6; } 15419 fi 15420 15421 15422 test -n "$PKGHANDLER" && break 15423 done 15424 15425 15426 15427 # Setup tools that requires more complex handling, or that is not needed by the configure script. 15428 15429 15430 # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. 15431 if test "x$MAKE" != x; then 15432 # User has supplied a make, test it. 15433 if test ! -f "$MAKE"; then 15434 as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5 15435 fi 15436 15437 MAKE_CANDIDATE=""$MAKE"" 15438 DESCRIPTION="user supplied MAKE=$MAKE" 15439 if test "x$MAKE_CANDIDATE" != x; then 15440 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15441 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15442 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15443 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15444 if test "x$IS_GNU_MAKE" = x; then 15445 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15446 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15447 else 15448 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15449 if test "x$IS_MODERN_MAKE" = x; then 15450 { $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 15451 $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;} 15452 else 15453 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15454 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15455 MAKE_EXPECTED_ENV='cygwin' 15456 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15457 MAKE_EXPECTED_ENV='msys' 15458 else 15459 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15460 fi 15461 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15462 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15463 else 15464 # Not relevant for non-Windows 15465 IS_MAKE_CORRECT_ENV=true 15466 fi 15467 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15468 { $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 15469 $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;} 15470 else 15471 FOUND_MAKE=$MAKE_CANDIDATE 15472 15473 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15474 15475 # First separate the path from the arguments. This will split at the first 15476 # space. 15477 complete="$FOUND_MAKE" 15478 path="${complete%% *}" 15479 tmp="$complete EOL" 15480 arguments="${tmp#* }" 15481 15482 # Input might be given as Windows format, start by converting to 15483 # unix format. 15484 new_path=`$CYGPATH -u "$path"` 15485 15486 # Now try to locate executable using which 15487 new_path=`$WHICH "$new_path" 2> /dev/null` 15488 # bat and cmd files are not always considered executable in cygwin causing which 15489 # to not find them 15490 if test "x$new_path" = x \ 15491 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15492 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15493 new_path=`$CYGPATH -u "$path"` 15494 fi 15495 if test "x$new_path" = x; then 15496 # Oops. Which didn't find the executable. 15497 # The splitting of arguments from the executable at a space might have been incorrect, 15498 # since paths with space are more likely in Windows. Give it another try with the whole 15499 # argument. 15500 path="$complete" 15501 arguments="EOL" 15502 new_path=`$CYGPATH -u "$path"` 15503 new_path=`$WHICH "$new_path" 2> /dev/null` 15504 # bat and cmd files are not always considered executable in cygwin causing which 15505 # to not find them 15506 if test "x$new_path" = x \ 15507 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15508 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15509 new_path=`$CYGPATH -u "$path"` 15510 fi 15511 if test "x$new_path" = x; then 15512 # It's still not found. Now this is an unrecoverable error. 15513 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15514 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15515 has_space=`$ECHO "$complete" | $GREP " "` 15516 if test "x$has_space" != x; then 15517 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15518 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15519 fi 15520 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15521 fi 15522 fi 15523 15524 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15525 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15526 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15527 # "foo.exe" is OK but "foo" is an error. 15528 # 15529 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15530 # It is also a way to make sure we got the proper file name for the real test later on. 15531 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15532 if test "x$test_shortpath" = x; then 15533 # Short path failed, file does not exist as specified. 15534 # Try adding .exe or .cmd 15535 if test -f "${new_path}.exe"; then 15536 input_to_shortpath="${new_path}.exe" 15537 elif test -f "${new_path}.cmd"; then 15538 input_to_shortpath="${new_path}.cmd" 15539 else 15540 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15541 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15542 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15543 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15544 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15545 fi 15546 else 15547 input_to_shortpath="$new_path" 15548 fi 15549 15550 # Call helper function which possibly converts this using DOS-style short mode. 15551 # If so, the updated path is stored in $new_path. 15552 new_path="$input_to_shortpath" 15553 15554 input_path="$input_to_shortpath" 15555 # Check if we need to convert this using DOS-style short mode. If the path 15556 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15557 # take no chances and rewrite it. 15558 # Note: m4 eats our [], so we need to use [ and ] instead. 15559 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15560 if test "x$has_forbidden_chars" != x; then 15561 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15562 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15563 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15564 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15565 # Going to short mode and back again did indeed matter. Since short mode is 15566 # case insensitive, let's make it lowercase to improve readability. 15567 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15568 # Now convert it back to Unix-stile (cygpath) 15569 input_path=`$CYGPATH -u "$shortmode_path"` 15570 new_path="$input_path" 15571 fi 15572 fi 15573 15574 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15575 if test "x$test_cygdrive_prefix" = x; then 15576 # As a simple fix, exclude /usr/bin since it's not a real path. 15577 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15578 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15579 # a path prefixed by /cygdrive for fixpath to work. 15580 new_path="$CYGWIN_ROOT_PATH$input_path" 15581 fi 15582 fi 15583 15584 # remove trailing .exe if any 15585 new_path="${new_path/%.exe/}" 15586 15587 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15588 15589 # First separate the path from the arguments. This will split at the first 15590 # space. 15591 complete="$FOUND_MAKE" 15592 path="${complete%% *}" 15593 tmp="$complete EOL" 15594 arguments="${tmp#* }" 15595 15596 # Input might be given as Windows format, start by converting to 15597 # unix format. 15598 new_path="$path" 15599 15600 windows_path="$new_path" 15601 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15602 unix_path=`$CYGPATH -u "$windows_path"` 15603 new_path="$unix_path" 15604 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15605 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15606 new_path="$unix_path" 15607 fi 15608 15609 15610 # Now try to locate executable using which 15611 new_path=`$WHICH "$new_path" 2> /dev/null` 15612 15613 if test "x$new_path" = x; then 15614 # Oops. Which didn't find the executable. 15615 # The splitting of arguments from the executable at a space might have been incorrect, 15616 # since paths with space are more likely in Windows. Give it another try with the whole 15617 # argument. 15618 path="$complete" 15619 arguments="EOL" 15620 new_path="$path" 15621 15622 windows_path="$new_path" 15623 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15624 unix_path=`$CYGPATH -u "$windows_path"` 15625 new_path="$unix_path" 15626 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15627 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15628 new_path="$unix_path" 15629 fi 15630 15631 15632 new_path=`$WHICH "$new_path" 2> /dev/null` 15633 # bat and cmd files are not always considered executable in MSYS causing which 15634 # to not find them 15635 if test "x$new_path" = x \ 15636 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15637 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15638 new_path="$path" 15639 15640 windows_path="$new_path" 15641 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15642 unix_path=`$CYGPATH -u "$windows_path"` 15643 new_path="$unix_path" 15644 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15645 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15646 new_path="$unix_path" 15647 fi 15648 15649 fi 15650 15651 if test "x$new_path" = x; then 15652 # It's still not found. Now this is an unrecoverable error. 15653 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15654 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15655 has_space=`$ECHO "$complete" | $GREP " "` 15656 if test "x$has_space" != x; then 15657 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15658 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15659 fi 15660 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15661 fi 15662 fi 15663 15664 # Now new_path has a complete unix path to the binary 15665 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15666 # Keep paths in /bin as-is, but remove trailing .exe if any 15667 new_path="${new_path/%.exe/}" 15668 # Do not save /bin paths to all_fixpath_prefixes! 15669 else 15670 # Not in mixed or Windows style, start by that. 15671 new_path=`cmd //c echo $new_path` 15672 15673 input_path="$new_path" 15674 # Check if we need to convert this using DOS-style short mode. If the path 15675 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15676 # take no chances and rewrite it. 15677 # Note: m4 eats our [], so we need to use [ and ] instead. 15678 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15679 if test "x$has_forbidden_chars" != x; then 15680 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15681 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15682 fi 15683 15684 # Output is in $new_path 15685 15686 windows_path="$new_path" 15687 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15688 unix_path=`$CYGPATH -u "$windows_path"` 15689 new_path="$unix_path" 15690 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15691 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15692 new_path="$unix_path" 15693 fi 15694 15695 # remove trailing .exe if any 15696 new_path="${new_path/%.exe/}" 15697 15698 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15699 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15700 fi 15701 15702 else 15703 # We're on a posix platform. Hooray! :) 15704 # First separate the path from the arguments. This will split at the first 15705 # space. 15706 complete="$FOUND_MAKE" 15707 path="${complete%% *}" 15708 tmp="$complete EOL" 15709 arguments="${tmp#* }" 15710 15711 # Cannot rely on the command "which" here since it doesn't always work. 15712 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15713 if test -z "$is_absolute_path"; then 15714 # Path to executable is not absolute. Find it. 15715 IFS_save="$IFS" 15716 IFS=: 15717 for p in $PATH; do 15718 if test -f "$p/$path" && test -x "$p/$path"; then 15719 new_path="$p/$path" 15720 break 15721 fi 15722 done 15723 IFS="$IFS_save" 15724 else 15725 # This is an absolute path, we can use it without further modifications. 15726 new_path="$path" 15727 fi 15728 15729 if test "x$new_path" = x; then 15730 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15731 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15732 has_space=`$ECHO "$complete" | $GREP " "` 15733 if test "x$has_space" != x; then 15734 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15735 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15736 fi 15737 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15738 fi 15739 fi 15740 15741 # Now join together the path and the arguments once again 15742 if test "x$arguments" != xEOL; then 15743 new_complete="$new_path ${arguments% *}" 15744 else 15745 new_complete="$new_path" 15746 fi 15747 15748 if test "x$complete" != "x$new_complete"; then 15749 FOUND_MAKE="$new_complete" 15750 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15751 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15752 fi 15753 15754 fi 15755 fi 15756 fi 15757 fi 15758 15759 if test "x$FOUND_MAKE" = x; then 15760 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5 15761 fi 15762 else 15763 # Try our hardest to locate a correct version of GNU make 15764 for ac_prog in gmake 15765 do 15766 # Extract the first word of "$ac_prog", so it can be a program name with args. 15767 set dummy $ac_prog; ac_word=$2 15768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15769 $as_echo_n "checking for $ac_word... " >&6; } 15770 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 15771 $as_echo_n "(cached) " >&6 15772 else 15773 case $CHECK_GMAKE in 15774 [\\/]* | ?:[\\/]*) 15775 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 15776 ;; 15777 *) 15778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15779 for as_dir in $PATH 15780 do 15781 IFS=$as_save_IFS 15782 test -z "$as_dir" && as_dir=. 15783 for ac_exec_ext in '' $ac_executable_extensions; do 15784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15785 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 15786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15787 break 2 15788 fi 15789 done 15790 done 15791 IFS=$as_save_IFS 15792 15793 ;; 15794 esac 15795 fi 15796 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 15797 if test -n "$CHECK_GMAKE"; then 15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 15799 $as_echo "$CHECK_GMAKE" >&6; } 15800 else 15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15802 $as_echo "no" >&6; } 15803 fi 15804 15805 15806 test -n "$CHECK_GMAKE" && break 15807 done 15808 15809 15810 MAKE_CANDIDATE=""$CHECK_GMAKE"" 15811 DESCRIPTION="gmake in PATH" 15812 if test "x$MAKE_CANDIDATE" != x; then 15813 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15814 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15815 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15816 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15817 if test "x$IS_GNU_MAKE" = x; then 15818 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15819 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15820 else 15821 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15822 if test "x$IS_MODERN_MAKE" = x; then 15823 { $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 15824 $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;} 15825 else 15826 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15827 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15828 MAKE_EXPECTED_ENV='cygwin' 15829 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15830 MAKE_EXPECTED_ENV='msys' 15831 else 15832 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15833 fi 15834 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15835 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15836 else 15837 # Not relevant for non-Windows 15838 IS_MAKE_CORRECT_ENV=true 15839 fi 15840 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15841 { $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 15842 $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;} 15843 else 15844 FOUND_MAKE=$MAKE_CANDIDATE 15845 15846 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15847 15848 # First separate the path from the arguments. This will split at the first 15849 # space. 15850 complete="$FOUND_MAKE" 15851 path="${complete%% *}" 15852 tmp="$complete EOL" 15853 arguments="${tmp#* }" 15854 15855 # Input might be given as Windows format, start by converting to 15856 # unix format. 15857 new_path=`$CYGPATH -u "$path"` 15858 15859 # Now try to locate executable using which 15860 new_path=`$WHICH "$new_path" 2> /dev/null` 15861 # bat and cmd files are not always considered executable in cygwin causing which 15862 # to not find them 15863 if test "x$new_path" = x \ 15864 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15865 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15866 new_path=`$CYGPATH -u "$path"` 15867 fi 15868 if test "x$new_path" = x; then 15869 # Oops. Which didn't find the executable. 15870 # The splitting of arguments from the executable at a space might have been incorrect, 15871 # since paths with space are more likely in Windows. Give it another try with the whole 15872 # argument. 15873 path="$complete" 15874 arguments="EOL" 15875 new_path=`$CYGPATH -u "$path"` 15876 new_path=`$WHICH "$new_path" 2> /dev/null` 15877 # bat and cmd files are not always considered executable in cygwin causing which 15878 # to not find them 15879 if test "x$new_path" = x \ 15880 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15881 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15882 new_path=`$CYGPATH -u "$path"` 15883 fi 15884 if test "x$new_path" = x; then 15885 # It's still not found. Now this is an unrecoverable error. 15886 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15887 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15888 has_space=`$ECHO "$complete" | $GREP " "` 15889 if test "x$has_space" != x; then 15890 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15891 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15892 fi 15893 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15894 fi 15895 fi 15896 15897 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15898 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15899 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15900 # "foo.exe" is OK but "foo" is an error. 15901 # 15902 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15903 # It is also a way to make sure we got the proper file name for the real test later on. 15904 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15905 if test "x$test_shortpath" = x; then 15906 # Short path failed, file does not exist as specified. 15907 # Try adding .exe or .cmd 15908 if test -f "${new_path}.exe"; then 15909 input_to_shortpath="${new_path}.exe" 15910 elif test -f "${new_path}.cmd"; then 15911 input_to_shortpath="${new_path}.cmd" 15912 else 15913 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15914 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15915 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15916 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15917 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15918 fi 15919 else 15920 input_to_shortpath="$new_path" 15921 fi 15922 15923 # Call helper function which possibly converts this using DOS-style short mode. 15924 # If so, the updated path is stored in $new_path. 15925 new_path="$input_to_shortpath" 15926 15927 input_path="$input_to_shortpath" 15928 # Check if we need to convert this using DOS-style short mode. If the path 15929 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15930 # take no chances and rewrite it. 15931 # Note: m4 eats our [], so we need to use [ and ] instead. 15932 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15933 if test "x$has_forbidden_chars" != x; then 15934 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15935 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15936 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15937 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15938 # Going to short mode and back again did indeed matter. Since short mode is 15939 # case insensitive, let's make it lowercase to improve readability. 15940 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15941 # Now convert it back to Unix-stile (cygpath) 15942 input_path=`$CYGPATH -u "$shortmode_path"` 15943 new_path="$input_path" 15944 fi 15945 fi 15946 15947 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15948 if test "x$test_cygdrive_prefix" = x; then 15949 # As a simple fix, exclude /usr/bin since it's not a real path. 15950 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15951 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15952 # a path prefixed by /cygdrive for fixpath to work. 15953 new_path="$CYGWIN_ROOT_PATH$input_path" 15954 fi 15955 fi 15956 15957 # remove trailing .exe if any 15958 new_path="${new_path/%.exe/}" 15959 15960 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15961 15962 # First separate the path from the arguments. This will split at the first 15963 # space. 15964 complete="$FOUND_MAKE" 15965 path="${complete%% *}" 15966 tmp="$complete EOL" 15967 arguments="${tmp#* }" 15968 15969 # Input might be given as Windows format, start by converting to 15970 # unix format. 15971 new_path="$path" 15972 15973 windows_path="$new_path" 15974 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15975 unix_path=`$CYGPATH -u "$windows_path"` 15976 new_path="$unix_path" 15977 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15978 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15979 new_path="$unix_path" 15980 fi 15981 15982 15983 # Now try to locate executable using which 15984 new_path=`$WHICH "$new_path" 2> /dev/null` 15985 15986 if test "x$new_path" = x; then 15987 # Oops. Which didn't find the executable. 15988 # The splitting of arguments from the executable at a space might have been incorrect, 15989 # since paths with space are more likely in Windows. Give it another try with the whole 15990 # argument. 15991 path="$complete" 15992 arguments="EOL" 15993 new_path="$path" 15994 15995 windows_path="$new_path" 15996 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15997 unix_path=`$CYGPATH -u "$windows_path"` 15998 new_path="$unix_path" 15999 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16000 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16001 new_path="$unix_path" 16002 fi 16003 16004 16005 new_path=`$WHICH "$new_path" 2> /dev/null` 16006 # bat and cmd files are not always considered executable in MSYS causing which 16007 # to not find them 16008 if test "x$new_path" = x \ 16009 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16010 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16011 new_path="$path" 16012 16013 windows_path="$new_path" 16014 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16015 unix_path=`$CYGPATH -u "$windows_path"` 16016 new_path="$unix_path" 16017 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16018 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16019 new_path="$unix_path" 16020 fi 16021 16022 fi 16023 16024 if test "x$new_path" = x; then 16025 # It's still not found. Now this is an unrecoverable error. 16026 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16027 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16028 has_space=`$ECHO "$complete" | $GREP " "` 16029 if test "x$has_space" != x; then 16030 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16031 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16032 fi 16033 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16034 fi 16035 fi 16036 16037 # Now new_path has a complete unix path to the binary 16038 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16039 # Keep paths in /bin as-is, but remove trailing .exe if any 16040 new_path="${new_path/%.exe/}" 16041 # Do not save /bin paths to all_fixpath_prefixes! 16042 else 16043 # Not in mixed or Windows style, start by that. 16044 new_path=`cmd //c echo $new_path` 16045 16046 input_path="$new_path" 16047 # Check if we need to convert this using DOS-style short mode. If the path 16048 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16049 # take no chances and rewrite it. 16050 # Note: m4 eats our [], so we need to use [ and ] instead. 16051 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16052 if test "x$has_forbidden_chars" != x; then 16053 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16054 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16055 fi 16056 16057 # Output is in $new_path 16058 16059 windows_path="$new_path" 16060 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16061 unix_path=`$CYGPATH -u "$windows_path"` 16062 new_path="$unix_path" 16063 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16064 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16065 new_path="$unix_path" 16066 fi 16067 16068 # remove trailing .exe if any 16069 new_path="${new_path/%.exe/}" 16070 16071 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16072 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16073 fi 16074 16075 else 16076 # We're on a posix platform. Hooray! :) 16077 # First separate the path from the arguments. This will split at the first 16078 # space. 16079 complete="$FOUND_MAKE" 16080 path="${complete%% *}" 16081 tmp="$complete EOL" 16082 arguments="${tmp#* }" 16083 16084 # Cannot rely on the command "which" here since it doesn't always work. 16085 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16086 if test -z "$is_absolute_path"; then 16087 # Path to executable is not absolute. Find it. 16088 IFS_save="$IFS" 16089 IFS=: 16090 for p in $PATH; do 16091 if test -f "$p/$path" && test -x "$p/$path"; then 16092 new_path="$p/$path" 16093 break 16094 fi 16095 done 16096 IFS="$IFS_save" 16097 else 16098 # This is an absolute path, we can use it without further modifications. 16099 new_path="$path" 16100 fi 16101 16102 if test "x$new_path" = x; then 16103 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16104 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16105 has_space=`$ECHO "$complete" | $GREP " "` 16106 if test "x$has_space" != x; then 16107 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16108 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16109 fi 16110 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16111 fi 16112 fi 16113 16114 # Now join together the path and the arguments once again 16115 if test "x$arguments" != xEOL; then 16116 new_complete="$new_path ${arguments% *}" 16117 else 16118 new_complete="$new_path" 16119 fi 16120 16121 if test "x$complete" != "x$new_complete"; then 16122 FOUND_MAKE="$new_complete" 16123 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16124 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16125 fi 16126 16127 fi 16128 fi 16129 fi 16130 fi 16131 16132 16133 if test "x$FOUND_MAKE" = x; then 16134 for ac_prog in make 16135 do 16136 # Extract the first word of "$ac_prog", so it can be a program name with args. 16137 set dummy $ac_prog; ac_word=$2 16138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16139 $as_echo_n "checking for $ac_word... " >&6; } 16140 if ${ac_cv_path_CHECK_MAKE+:} false; then : 16141 $as_echo_n "(cached) " >&6 16142 else 16143 case $CHECK_MAKE in 16144 [\\/]* | ?:[\\/]*) 16145 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 16146 ;; 16147 *) 16148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16149 for as_dir in $PATH 16150 do 16151 IFS=$as_save_IFS 16152 test -z "$as_dir" && as_dir=. 16153 for ac_exec_ext in '' $ac_executable_extensions; do 16154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16155 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 16156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16157 break 2 16158 fi 16159 done 16160 done 16161 IFS=$as_save_IFS 16162 16163 ;; 16164 esac 16165 fi 16166 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 16167 if test -n "$CHECK_MAKE"; then 16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 16169 $as_echo "$CHECK_MAKE" >&6; } 16170 else 16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16172 $as_echo "no" >&6; } 16173 fi 16174 16175 16176 test -n "$CHECK_MAKE" && break 16177 done 16178 16179 16180 MAKE_CANDIDATE=""$CHECK_MAKE"" 16181 DESCRIPTION="make in PATH" 16182 if test "x$MAKE_CANDIDATE" != x; then 16183 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16184 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16185 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16186 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16187 if test "x$IS_GNU_MAKE" = x; then 16188 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16189 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16190 else 16191 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16192 if test "x$IS_MODERN_MAKE" = x; then 16193 { $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 16194 $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;} 16195 else 16196 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16197 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16198 MAKE_EXPECTED_ENV='cygwin' 16199 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16200 MAKE_EXPECTED_ENV='msys' 16201 else 16202 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16203 fi 16204 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16205 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16206 else 16207 # Not relevant for non-Windows 16208 IS_MAKE_CORRECT_ENV=true 16209 fi 16210 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16211 { $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 16212 $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;} 16213 else 16214 FOUND_MAKE=$MAKE_CANDIDATE 16215 16216 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16217 16218 # First separate the path from the arguments. This will split at the first 16219 # space. 16220 complete="$FOUND_MAKE" 16221 path="${complete%% *}" 16222 tmp="$complete EOL" 16223 arguments="${tmp#* }" 16224 16225 # Input might be given as Windows format, start by converting to 16226 # unix format. 16227 new_path=`$CYGPATH -u "$path"` 16228 16229 # Now try to locate executable using which 16230 new_path=`$WHICH "$new_path" 2> /dev/null` 16231 # bat and cmd files are not always considered executable in cygwin causing which 16232 # to not find them 16233 if test "x$new_path" = x \ 16234 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16235 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16236 new_path=`$CYGPATH -u "$path"` 16237 fi 16238 if test "x$new_path" = x; then 16239 # Oops. Which didn't find the executable. 16240 # The splitting of arguments from the executable at a space might have been incorrect, 16241 # since paths with space are more likely in Windows. Give it another try with the whole 16242 # argument. 16243 path="$complete" 16244 arguments="EOL" 16245 new_path=`$CYGPATH -u "$path"` 16246 new_path=`$WHICH "$new_path" 2> /dev/null` 16247 # bat and cmd files are not always considered executable in cygwin causing which 16248 # to not find them 16249 if test "x$new_path" = x \ 16250 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16251 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16252 new_path=`$CYGPATH -u "$path"` 16253 fi 16254 if test "x$new_path" = x; then 16255 # It's still not found. Now this is an unrecoverable error. 16256 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16257 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16258 has_space=`$ECHO "$complete" | $GREP " "` 16259 if test "x$has_space" != x; then 16260 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16261 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16262 fi 16263 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16264 fi 16265 fi 16266 16267 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16268 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16269 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16270 # "foo.exe" is OK but "foo" is an error. 16271 # 16272 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16273 # It is also a way to make sure we got the proper file name for the real test later on. 16274 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16275 if test "x$test_shortpath" = x; then 16276 # Short path failed, file does not exist as specified. 16277 # Try adding .exe or .cmd 16278 if test -f "${new_path}.exe"; then 16279 input_to_shortpath="${new_path}.exe" 16280 elif test -f "${new_path}.cmd"; then 16281 input_to_shortpath="${new_path}.cmd" 16282 else 16283 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16284 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16285 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16286 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16287 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16288 fi 16289 else 16290 input_to_shortpath="$new_path" 16291 fi 16292 16293 # Call helper function which possibly converts this using DOS-style short mode. 16294 # If so, the updated path is stored in $new_path. 16295 new_path="$input_to_shortpath" 16296 16297 input_path="$input_to_shortpath" 16298 # Check if we need to convert this using DOS-style short mode. If the path 16299 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16300 # take no chances and rewrite it. 16301 # Note: m4 eats our [], so we need to use [ and ] instead. 16302 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16303 if test "x$has_forbidden_chars" != x; then 16304 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16305 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16306 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16307 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16308 # Going to short mode and back again did indeed matter. Since short mode is 16309 # case insensitive, let's make it lowercase to improve readability. 16310 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16311 # Now convert it back to Unix-stile (cygpath) 16312 input_path=`$CYGPATH -u "$shortmode_path"` 16313 new_path="$input_path" 16314 fi 16315 fi 16316 16317 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16318 if test "x$test_cygdrive_prefix" = x; then 16319 # As a simple fix, exclude /usr/bin since it's not a real path. 16320 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16321 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16322 # a path prefixed by /cygdrive for fixpath to work. 16323 new_path="$CYGWIN_ROOT_PATH$input_path" 16324 fi 16325 fi 16326 16327 # remove trailing .exe if any 16328 new_path="${new_path/%.exe/}" 16329 16330 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16331 16332 # First separate the path from the arguments. This will split at the first 16333 # space. 16334 complete="$FOUND_MAKE" 16335 path="${complete%% *}" 16336 tmp="$complete EOL" 16337 arguments="${tmp#* }" 16338 16339 # Input might be given as Windows format, start by converting to 16340 # unix format. 16341 new_path="$path" 16342 16343 windows_path="$new_path" 16344 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16345 unix_path=`$CYGPATH -u "$windows_path"` 16346 new_path="$unix_path" 16347 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16348 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16349 new_path="$unix_path" 16350 fi 16351 16352 16353 # Now try to locate executable using which 16354 new_path=`$WHICH "$new_path" 2> /dev/null` 16355 16356 if test "x$new_path" = x; then 16357 # Oops. Which didn't find the executable. 16358 # The splitting of arguments from the executable at a space might have been incorrect, 16359 # since paths with space are more likely in Windows. Give it another try with the whole 16360 # argument. 16361 path="$complete" 16362 arguments="EOL" 16363 new_path="$path" 16364 16365 windows_path="$new_path" 16366 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16367 unix_path=`$CYGPATH -u "$windows_path"` 16368 new_path="$unix_path" 16369 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16370 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16371 new_path="$unix_path" 16372 fi 16373 16374 16375 new_path=`$WHICH "$new_path" 2> /dev/null` 16376 # bat and cmd files are not always considered executable in MSYS causing which 16377 # to not find them 16378 if test "x$new_path" = x \ 16379 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16380 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16381 new_path="$path" 16382 16383 windows_path="$new_path" 16384 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16385 unix_path=`$CYGPATH -u "$windows_path"` 16386 new_path="$unix_path" 16387 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16388 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16389 new_path="$unix_path" 16390 fi 16391 16392 fi 16393 16394 if test "x$new_path" = x; then 16395 # It's still not found. Now this is an unrecoverable error. 16396 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16397 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16398 has_space=`$ECHO "$complete" | $GREP " "` 16399 if test "x$has_space" != x; then 16400 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16401 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16402 fi 16403 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16404 fi 16405 fi 16406 16407 # Now new_path has a complete unix path to the binary 16408 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16409 # Keep paths in /bin as-is, but remove trailing .exe if any 16410 new_path="${new_path/%.exe/}" 16411 # Do not save /bin paths to all_fixpath_prefixes! 16412 else 16413 # Not in mixed or Windows style, start by that. 16414 new_path=`cmd //c echo $new_path` 16415 16416 input_path="$new_path" 16417 # Check if we need to convert this using DOS-style short mode. If the path 16418 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16419 # take no chances and rewrite it. 16420 # Note: m4 eats our [], so we need to use [ and ] instead. 16421 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16422 if test "x$has_forbidden_chars" != x; then 16423 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16424 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16425 fi 16426 16427 # Output is in $new_path 16428 16429 windows_path="$new_path" 16430 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16431 unix_path=`$CYGPATH -u "$windows_path"` 16432 new_path="$unix_path" 16433 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16434 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16435 new_path="$unix_path" 16436 fi 16437 16438 # remove trailing .exe if any 16439 new_path="${new_path/%.exe/}" 16440 16441 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16442 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16443 fi 16444 16445 else 16446 # We're on a posix platform. Hooray! :) 16447 # First separate the path from the arguments. This will split at the first 16448 # space. 16449 complete="$FOUND_MAKE" 16450 path="${complete%% *}" 16451 tmp="$complete EOL" 16452 arguments="${tmp#* }" 16453 16454 # Cannot rely on the command "which" here since it doesn't always work. 16455 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16456 if test -z "$is_absolute_path"; then 16457 # Path to executable is not absolute. Find it. 16458 IFS_save="$IFS" 16459 IFS=: 16460 for p in $PATH; do 16461 if test -f "$p/$path" && test -x "$p/$path"; then 16462 new_path="$p/$path" 16463 break 16464 fi 16465 done 16466 IFS="$IFS_save" 16467 else 16468 # This is an absolute path, we can use it without further modifications. 16469 new_path="$path" 16470 fi 16471 16472 if test "x$new_path" = x; then 16473 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16474 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16475 has_space=`$ECHO "$complete" | $GREP " "` 16476 if test "x$has_space" != x; then 16477 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16478 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16479 fi 16480 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16481 fi 16482 fi 16483 16484 # Now join together the path and the arguments once again 16485 if test "x$arguments" != xEOL; then 16486 new_complete="$new_path ${arguments% *}" 16487 else 16488 new_complete="$new_path" 16489 fi 16490 16491 if test "x$complete" != "x$new_complete"; then 16492 FOUND_MAKE="$new_complete" 16493 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16494 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16495 fi 16496 16497 fi 16498 fi 16499 fi 16500 fi 16501 16502 fi 16503 16504 if test "x$FOUND_MAKE" = x; then 16505 if test "x$TOOLCHAIN_PATH" != x; then 16506 # We have a toolchain path, check that as well before giving up. 16507 OLD_PATH=$PATH 16508 PATH=$TOOLCHAIN_PATH:$PATH 16509 for ac_prog in gmake 16510 do 16511 # Extract the first word of "$ac_prog", so it can be a program name with args. 16512 set dummy $ac_prog; ac_word=$2 16513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16514 $as_echo_n "checking for $ac_word... " >&6; } 16515 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 16516 $as_echo_n "(cached) " >&6 16517 else 16518 case $CHECK_TOOLSDIR_GMAKE in 16519 [\\/]* | ?:[\\/]*) 16520 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 16521 ;; 16522 *) 16523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16524 for as_dir in $PATH 16525 do 16526 IFS=$as_save_IFS 16527 test -z "$as_dir" && as_dir=. 16528 for ac_exec_ext in '' $ac_executable_extensions; do 16529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16530 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 16531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16532 break 2 16533 fi 16534 done 16535 done 16536 IFS=$as_save_IFS 16537 16538 ;; 16539 esac 16540 fi 16541 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 16542 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 16543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 16544 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 16545 else 16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16547 $as_echo "no" >&6; } 16548 fi 16549 16550 16551 test -n "$CHECK_TOOLSDIR_GMAKE" && break 16552 done 16553 16554 16555 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 16556 DESCRIPTION="gmake in tools-dir" 16557 if test "x$MAKE_CANDIDATE" != x; then 16558 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16559 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16560 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16561 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16562 if test "x$IS_GNU_MAKE" = x; then 16563 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16564 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16565 else 16566 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16567 if test "x$IS_MODERN_MAKE" = x; then 16568 { $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 16569 $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;} 16570 else 16571 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16572 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16573 MAKE_EXPECTED_ENV='cygwin' 16574 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16575 MAKE_EXPECTED_ENV='msys' 16576 else 16577 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16578 fi 16579 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16580 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16581 else 16582 # Not relevant for non-Windows 16583 IS_MAKE_CORRECT_ENV=true 16584 fi 16585 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16586 { $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 16587 $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;} 16588 else 16589 FOUND_MAKE=$MAKE_CANDIDATE 16590 16591 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16592 16593 # First separate the path from the arguments. This will split at the first 16594 # space. 16595 complete="$FOUND_MAKE" 16596 path="${complete%% *}" 16597 tmp="$complete EOL" 16598 arguments="${tmp#* }" 16599 16600 # Input might be given as Windows format, start by converting to 16601 # unix format. 16602 new_path=`$CYGPATH -u "$path"` 16603 16604 # Now try to locate executable using which 16605 new_path=`$WHICH "$new_path" 2> /dev/null` 16606 # bat and cmd files are not always considered executable in cygwin causing which 16607 # to not find them 16608 if test "x$new_path" = x \ 16609 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16610 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16611 new_path=`$CYGPATH -u "$path"` 16612 fi 16613 if test "x$new_path" = x; then 16614 # Oops. Which didn't find the executable. 16615 # The splitting of arguments from the executable at a space might have been incorrect, 16616 # since paths with space are more likely in Windows. Give it another try with the whole 16617 # argument. 16618 path="$complete" 16619 arguments="EOL" 16620 new_path=`$CYGPATH -u "$path"` 16621 new_path=`$WHICH "$new_path" 2> /dev/null` 16622 # bat and cmd files are not always considered executable in cygwin causing which 16623 # to not find them 16624 if test "x$new_path" = x \ 16625 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16626 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16627 new_path=`$CYGPATH -u "$path"` 16628 fi 16629 if test "x$new_path" = x; then 16630 # It's still not found. Now this is an unrecoverable error. 16631 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16632 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16633 has_space=`$ECHO "$complete" | $GREP " "` 16634 if test "x$has_space" != x; then 16635 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16636 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16637 fi 16638 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16639 fi 16640 fi 16641 16642 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16643 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16644 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16645 # "foo.exe" is OK but "foo" is an error. 16646 # 16647 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16648 # It is also a way to make sure we got the proper file name for the real test later on. 16649 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16650 if test "x$test_shortpath" = x; then 16651 # Short path failed, file does not exist as specified. 16652 # Try adding .exe or .cmd 16653 if test -f "${new_path}.exe"; then 16654 input_to_shortpath="${new_path}.exe" 16655 elif test -f "${new_path}.cmd"; then 16656 input_to_shortpath="${new_path}.cmd" 16657 else 16658 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16659 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16660 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16661 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16662 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16663 fi 16664 else 16665 input_to_shortpath="$new_path" 16666 fi 16667 16668 # Call helper function which possibly converts this using DOS-style short mode. 16669 # If so, the updated path is stored in $new_path. 16670 new_path="$input_to_shortpath" 16671 16672 input_path="$input_to_shortpath" 16673 # Check if we need to convert this using DOS-style short mode. If the path 16674 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16675 # take no chances and rewrite it. 16676 # Note: m4 eats our [], so we need to use [ and ] instead. 16677 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16678 if test "x$has_forbidden_chars" != x; then 16679 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16680 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16681 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16682 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16683 # Going to short mode and back again did indeed matter. Since short mode is 16684 # case insensitive, let's make it lowercase to improve readability. 16685 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16686 # Now convert it back to Unix-stile (cygpath) 16687 input_path=`$CYGPATH -u "$shortmode_path"` 16688 new_path="$input_path" 16689 fi 16690 fi 16691 16692 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16693 if test "x$test_cygdrive_prefix" = x; then 16694 # As a simple fix, exclude /usr/bin since it's not a real path. 16695 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16696 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16697 # a path prefixed by /cygdrive for fixpath to work. 16698 new_path="$CYGWIN_ROOT_PATH$input_path" 16699 fi 16700 fi 16701 16702 # remove trailing .exe if any 16703 new_path="${new_path/%.exe/}" 16704 16705 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16706 16707 # First separate the path from the arguments. This will split at the first 16708 # space. 16709 complete="$FOUND_MAKE" 16710 path="${complete%% *}" 16711 tmp="$complete EOL" 16712 arguments="${tmp#* }" 16713 16714 # Input might be given as Windows format, start by converting to 16715 # unix format. 16716 new_path="$path" 16717 16718 windows_path="$new_path" 16719 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16720 unix_path=`$CYGPATH -u "$windows_path"` 16721 new_path="$unix_path" 16722 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16723 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16724 new_path="$unix_path" 16725 fi 16726 16727 16728 # Now try to locate executable using which 16729 new_path=`$WHICH "$new_path" 2> /dev/null` 16730 16731 if test "x$new_path" = x; then 16732 # Oops. Which didn't find the executable. 16733 # The splitting of arguments from the executable at a space might have been incorrect, 16734 # since paths with space are more likely in Windows. Give it another try with the whole 16735 # argument. 16736 path="$complete" 16737 arguments="EOL" 16738 new_path="$path" 16739 16740 windows_path="$new_path" 16741 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16742 unix_path=`$CYGPATH -u "$windows_path"` 16743 new_path="$unix_path" 16744 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16745 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16746 new_path="$unix_path" 16747 fi 16748 16749 16750 new_path=`$WHICH "$new_path" 2> /dev/null` 16751 # bat and cmd files are not always considered executable in MSYS causing which 16752 # to not find them 16753 if test "x$new_path" = x \ 16754 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16755 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16756 new_path="$path" 16757 16758 windows_path="$new_path" 16759 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16760 unix_path=`$CYGPATH -u "$windows_path"` 16761 new_path="$unix_path" 16762 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16763 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16764 new_path="$unix_path" 16765 fi 16766 16767 fi 16768 16769 if test "x$new_path" = x; then 16770 # It's still not found. Now this is an unrecoverable error. 16771 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16772 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16773 has_space=`$ECHO "$complete" | $GREP " "` 16774 if test "x$has_space" != x; then 16775 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16776 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16777 fi 16778 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16779 fi 16780 fi 16781 16782 # Now new_path has a complete unix path to the binary 16783 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16784 # Keep paths in /bin as-is, but remove trailing .exe if any 16785 new_path="${new_path/%.exe/}" 16786 # Do not save /bin paths to all_fixpath_prefixes! 16787 else 16788 # Not in mixed or Windows style, start by that. 16789 new_path=`cmd //c echo $new_path` 16790 16791 input_path="$new_path" 16792 # Check if we need to convert this using DOS-style short mode. If the path 16793 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16794 # take no chances and rewrite it. 16795 # Note: m4 eats our [], so we need to use [ and ] instead. 16796 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16797 if test "x$has_forbidden_chars" != x; then 16798 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16799 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16800 fi 16801 16802 # Output is in $new_path 16803 16804 windows_path="$new_path" 16805 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16806 unix_path=`$CYGPATH -u "$windows_path"` 16807 new_path="$unix_path" 16808 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16809 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16810 new_path="$unix_path" 16811 fi 16812 16813 # remove trailing .exe if any 16814 new_path="${new_path/%.exe/}" 16815 16816 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16817 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16818 fi 16819 16820 else 16821 # We're on a posix platform. Hooray! :) 16822 # First separate the path from the arguments. This will split at the first 16823 # space. 16824 complete="$FOUND_MAKE" 16825 path="${complete%% *}" 16826 tmp="$complete EOL" 16827 arguments="${tmp#* }" 16828 16829 # Cannot rely on the command "which" here since it doesn't always work. 16830 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16831 if test -z "$is_absolute_path"; then 16832 # Path to executable is not absolute. Find it. 16833 IFS_save="$IFS" 16834 IFS=: 16835 for p in $PATH; do 16836 if test -f "$p/$path" && test -x "$p/$path"; then 16837 new_path="$p/$path" 16838 break 16839 fi 16840 done 16841 IFS="$IFS_save" 16842 else 16843 # This is an absolute path, we can use it without further modifications. 16844 new_path="$path" 16845 fi 16846 16847 if test "x$new_path" = x; then 16848 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16849 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16850 has_space=`$ECHO "$complete" | $GREP " "` 16851 if test "x$has_space" != x; then 16852 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16853 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16854 fi 16855 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16856 fi 16857 fi 16858 16859 # Now join together the path and the arguments once again 16860 if test "x$arguments" != xEOL; then 16861 new_complete="$new_path ${arguments% *}" 16862 else 16863 new_complete="$new_path" 16864 fi 16865 16866 if test "x$complete" != "x$new_complete"; then 16867 FOUND_MAKE="$new_complete" 16868 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16869 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16870 fi 16871 16872 fi 16873 fi 16874 fi 16875 fi 16876 16877 if test "x$FOUND_MAKE" = x; then 16878 for ac_prog in make 16879 do 16880 # Extract the first word of "$ac_prog", so it can be a program name with args. 16881 set dummy $ac_prog; ac_word=$2 16882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16883 $as_echo_n "checking for $ac_word... " >&6; } 16884 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 16885 $as_echo_n "(cached) " >&6 16886 else 16887 case $CHECK_TOOLSDIR_MAKE in 16888 [\\/]* | ?:[\\/]*) 16889 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 16890 ;; 16891 *) 16892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16893 for as_dir in $PATH 16894 do 16895 IFS=$as_save_IFS 16896 test -z "$as_dir" && as_dir=. 16897 for ac_exec_ext in '' $ac_executable_extensions; do 16898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16899 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 16900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16901 break 2 16902 fi 16903 done 16904 done 16905 IFS=$as_save_IFS 16906 16907 ;; 16908 esac 16909 fi 16910 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 16911 if test -n "$CHECK_TOOLSDIR_MAKE"; then 16912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 16913 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 16914 else 16915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16916 $as_echo "no" >&6; } 16917 fi 16918 16919 16920 test -n "$CHECK_TOOLSDIR_MAKE" && break 16921 done 16922 16923 16924 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 16925 DESCRIPTION="make in tools-dir" 16926 if test "x$MAKE_CANDIDATE" != x; then 16927 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16928 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16929 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16930 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16931 if test "x$IS_GNU_MAKE" = x; then 16932 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16933 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16934 else 16935 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16936 if test "x$IS_MODERN_MAKE" = x; then 16937 { $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 16938 $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;} 16939 else 16940 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16941 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16942 MAKE_EXPECTED_ENV='cygwin' 16943 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16944 MAKE_EXPECTED_ENV='msys' 16945 else 16946 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16947 fi 16948 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16949 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16950 else 16951 # Not relevant for non-Windows 16952 IS_MAKE_CORRECT_ENV=true 16953 fi 16954 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16955 { $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 16956 $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;} 16957 else 16958 FOUND_MAKE=$MAKE_CANDIDATE 16959 16960 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16961 16962 # First separate the path from the arguments. This will split at the first 16963 # space. 16964 complete="$FOUND_MAKE" 16965 path="${complete%% *}" 16966 tmp="$complete EOL" 16967 arguments="${tmp#* }" 16968 16969 # Input might be given as Windows format, start by converting to 16970 # unix format. 16971 new_path=`$CYGPATH -u "$path"` 16972 16973 # Now try to locate executable using which 16974 new_path=`$WHICH "$new_path" 2> /dev/null` 16975 # bat and cmd files are not always considered executable in cygwin causing which 16976 # to not find them 16977 if test "x$new_path" = x \ 16978 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16979 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16980 new_path=`$CYGPATH -u "$path"` 16981 fi 16982 if test "x$new_path" = x; then 16983 # Oops. Which didn't find the executable. 16984 # The splitting of arguments from the executable at a space might have been incorrect, 16985 # since paths with space are more likely in Windows. Give it another try with the whole 16986 # argument. 16987 path="$complete" 16988 arguments="EOL" 16989 new_path=`$CYGPATH -u "$path"` 16990 new_path=`$WHICH "$new_path" 2> /dev/null` 16991 # bat and cmd files are not always considered executable in cygwin causing which 16992 # to not find them 16993 if test "x$new_path" = x \ 16994 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16995 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16996 new_path=`$CYGPATH -u "$path"` 16997 fi 16998 if test "x$new_path" = x; then 16999 # It's still not found. Now this is an unrecoverable error. 17000 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17001 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17002 has_space=`$ECHO "$complete" | $GREP " "` 17003 if test "x$has_space" != x; then 17004 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17005 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17006 fi 17007 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17008 fi 17009 fi 17010 17011 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17012 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17013 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17014 # "foo.exe" is OK but "foo" is an error. 17015 # 17016 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17017 # It is also a way to make sure we got the proper file name for the real test later on. 17018 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17019 if test "x$test_shortpath" = x; then 17020 # Short path failed, file does not exist as specified. 17021 # Try adding .exe or .cmd 17022 if test -f "${new_path}.exe"; then 17023 input_to_shortpath="${new_path}.exe" 17024 elif test -f "${new_path}.cmd"; then 17025 input_to_shortpath="${new_path}.cmd" 17026 else 17027 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17028 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17029 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17030 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17031 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17032 fi 17033 else 17034 input_to_shortpath="$new_path" 17035 fi 17036 17037 # Call helper function which possibly converts this using DOS-style short mode. 17038 # If so, the updated path is stored in $new_path. 17039 new_path="$input_to_shortpath" 17040 17041 input_path="$input_to_shortpath" 17042 # Check if we need to convert this using DOS-style short mode. If the path 17043 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17044 # take no chances and rewrite it. 17045 # Note: m4 eats our [], so we need to use [ and ] instead. 17046 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17047 if test "x$has_forbidden_chars" != x; then 17048 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17049 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17050 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17051 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17052 # Going to short mode and back again did indeed matter. Since short mode is 17053 # case insensitive, let's make it lowercase to improve readability. 17054 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17055 # Now convert it back to Unix-stile (cygpath) 17056 input_path=`$CYGPATH -u "$shortmode_path"` 17057 new_path="$input_path" 17058 fi 17059 fi 17060 17061 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17062 if test "x$test_cygdrive_prefix" = x; then 17063 # As a simple fix, exclude /usr/bin since it's not a real path. 17064 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17065 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17066 # a path prefixed by /cygdrive for fixpath to work. 17067 new_path="$CYGWIN_ROOT_PATH$input_path" 17068 fi 17069 fi 17070 17071 # remove trailing .exe if any 17072 new_path="${new_path/%.exe/}" 17073 17074 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17075 17076 # First separate the path from the arguments. This will split at the first 17077 # space. 17078 complete="$FOUND_MAKE" 17079 path="${complete%% *}" 17080 tmp="$complete EOL" 17081 arguments="${tmp#* }" 17082 17083 # Input might be given as Windows format, start by converting to 17084 # unix format. 17085 new_path="$path" 17086 17087 windows_path="$new_path" 17088 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17089 unix_path=`$CYGPATH -u "$windows_path"` 17090 new_path="$unix_path" 17091 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17092 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17093 new_path="$unix_path" 17094 fi 17095 17096 17097 # Now try to locate executable using which 17098 new_path=`$WHICH "$new_path" 2> /dev/null` 17099 17100 if test "x$new_path" = x; then 17101 # Oops. Which didn't find the executable. 17102 # The splitting of arguments from the executable at a space might have been incorrect, 17103 # since paths with space are more likely in Windows. Give it another try with the whole 17104 # argument. 17105 path="$complete" 17106 arguments="EOL" 17107 new_path="$path" 17108 17109 windows_path="$new_path" 17110 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17111 unix_path=`$CYGPATH -u "$windows_path"` 17112 new_path="$unix_path" 17113 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17114 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17115 new_path="$unix_path" 17116 fi 17117 17118 17119 new_path=`$WHICH "$new_path" 2> /dev/null` 17120 # bat and cmd files are not always considered executable in MSYS causing which 17121 # to not find them 17122 if test "x$new_path" = x \ 17123 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17124 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17125 new_path="$path" 17126 17127 windows_path="$new_path" 17128 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17129 unix_path=`$CYGPATH -u "$windows_path"` 17130 new_path="$unix_path" 17131 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17132 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17133 new_path="$unix_path" 17134 fi 17135 17136 fi 17137 17138 if test "x$new_path" = x; then 17139 # It's still not found. Now this is an unrecoverable error. 17140 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17141 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17142 has_space=`$ECHO "$complete" | $GREP " "` 17143 if test "x$has_space" != x; then 17144 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17145 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17146 fi 17147 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17148 fi 17149 fi 17150 17151 # Now new_path has a complete unix path to the binary 17152 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17153 # Keep paths in /bin as-is, but remove trailing .exe if any 17154 new_path="${new_path/%.exe/}" 17155 # Do not save /bin paths to all_fixpath_prefixes! 17156 else 17157 # Not in mixed or Windows style, start by that. 17158 new_path=`cmd //c echo $new_path` 17159 17160 input_path="$new_path" 17161 # Check if we need to convert this using DOS-style short mode. If the path 17162 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17163 # take no chances and rewrite it. 17164 # Note: m4 eats our [], so we need to use [ and ] instead. 17165 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17166 if test "x$has_forbidden_chars" != x; then 17167 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17168 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17169 fi 17170 17171 # Output is in $new_path 17172 17173 windows_path="$new_path" 17174 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17175 unix_path=`$CYGPATH -u "$windows_path"` 17176 new_path="$unix_path" 17177 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17178 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17179 new_path="$unix_path" 17180 fi 17181 17182 # remove trailing .exe if any 17183 new_path="${new_path/%.exe/}" 17184 17185 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17186 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17187 fi 17188 17189 else 17190 # We're on a posix platform. Hooray! :) 17191 # First separate the path from the arguments. This will split at the first 17192 # space. 17193 complete="$FOUND_MAKE" 17194 path="${complete%% *}" 17195 tmp="$complete EOL" 17196 arguments="${tmp#* }" 17197 17198 # Cannot rely on the command "which" here since it doesn't always work. 17199 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17200 if test -z "$is_absolute_path"; then 17201 # Path to executable is not absolute. Find it. 17202 IFS_save="$IFS" 17203 IFS=: 17204 for p in $PATH; do 17205 if test -f "$p/$path" && test -x "$p/$path"; then 17206 new_path="$p/$path" 17207 break 17208 fi 17209 done 17210 IFS="$IFS_save" 17211 else 17212 # This is an absolute path, we can use it without further modifications. 17213 new_path="$path" 17214 fi 17215 17216 if test "x$new_path" = x; then 17217 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17218 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17219 has_space=`$ECHO "$complete" | $GREP " "` 17220 if test "x$has_space" != x; then 17221 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17222 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17223 fi 17224 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17225 fi 17226 fi 17227 17228 # Now join together the path and the arguments once again 17229 if test "x$arguments" != xEOL; then 17230 new_complete="$new_path ${arguments% *}" 17231 else 17232 new_complete="$new_path" 17233 fi 17234 17235 if test "x$complete" != "x$new_complete"; then 17236 FOUND_MAKE="$new_complete" 17237 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17238 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17239 fi 17240 17241 fi 17242 fi 17243 fi 17244 fi 17245 17246 fi 17247 PATH=$OLD_PATH 17248 fi 17249 fi 17250 17251 if test "x$FOUND_MAKE" = x; then 17252 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 17253 fi 17254 fi 17255 17256 MAKE=$FOUND_MAKE 17257 17258 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 17259 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 17260 17261 17262 # Check if make supports the output sync option and if so, setup using it. 17263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 17264 $as_echo_n "checking if make --output-sync is supported... " >&6; } 17265 if $MAKE --version -O > /dev/null 2>&1; then 17266 OUTPUT_SYNC_SUPPORTED=true 17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17268 $as_echo "yes" >&6; } 17269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 17270 $as_echo_n "checking for output-sync value... " >&6; } 17271 17272 # Check whether --with-output-sync was given. 17273 if test "${with_output_sync+set}" = set; then : 17274 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 17275 fi 17276 17277 if test "x$OUTPUT_SYNC" = "x"; then 17278 OUTPUT_SYNC=none 17279 fi 17280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 17281 $as_echo "$OUTPUT_SYNC" >&6; } 17282 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 17283 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 17284 fi 17285 else 17286 OUTPUT_SYNC_SUPPORTED=false 17287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17288 $as_echo "no" >&6; } 17289 fi 17290 17291 17292 17293 17294 17295 17296 # Test if find supports -delete 17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 17298 $as_echo_n "checking if find supports -delete... " >&6; } 17299 FIND_DELETE="-delete" 17300 17301 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 17302 17303 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 17304 17305 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 17306 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 17307 # No, it does not. 17308 rm $DELETEDIR/TestIfFindSupportsDelete 17309 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 17310 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 17311 FIND_DELETE="-print | xargs rm" 17312 else 17313 FIND_DELETE="-exec rm \{\} \+" 17314 fi 17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17316 $as_echo "no" >&6; } 17317 else 17318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17319 $as_echo "yes" >&6; } 17320 fi 17321 rmdir $DELETEDIR 17322 17323 17324 17325 # These tools might not be installed by default, 17326 # need hint on how to install them. 17327 17328 17329 17330 # Publish this variable in the help. 17331 17332 17333 if test "x$UNZIP" = x; then 17334 # The variable is not set by user, try to locate tool using the code snippet 17335 for ac_prog in unzip 17336 do 17337 # Extract the first word of "$ac_prog", so it can be a program name with args. 17338 set dummy $ac_prog; ac_word=$2 17339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17340 $as_echo_n "checking for $ac_word... " >&6; } 17341 if ${ac_cv_path_UNZIP+:} false; then : 17342 $as_echo_n "(cached) " >&6 17343 else 17344 case $UNZIP in 17345 [\\/]* | ?:[\\/]*) 17346 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17347 ;; 17348 *) 17349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17350 for as_dir in $PATH 17351 do 17352 IFS=$as_save_IFS 17353 test -z "$as_dir" && as_dir=. 17354 for ac_exec_ext in '' $ac_executable_extensions; do 17355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17356 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17358 break 2 17359 fi 17360 done 17361 done 17362 IFS=$as_save_IFS 17363 17364 ;; 17365 esac 17366 fi 17367 UNZIP=$ac_cv_path_UNZIP 17368 if test -n "$UNZIP"; then 17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17370 $as_echo "$UNZIP" >&6; } 17371 else 17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17373 $as_echo "no" >&6; } 17374 fi 17375 17376 17377 test -n "$UNZIP" && break 17378 done 17379 17380 else 17381 # The variable is set, but is it from the command line or the environment? 17382 17383 # Try to remove the string !UNZIP! from our list. 17384 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 17385 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17386 # If it failed, the variable was not from the command line. Ignore it, 17387 # but warn the user (except for BASH, which is always set by the calling BASH). 17388 if test "xUNZIP" != xBASH; then 17389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 17390 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 17391 fi 17392 # Try to locate tool using the code snippet 17393 for ac_prog in unzip 17394 do 17395 # Extract the first word of "$ac_prog", so it can be a program name with args. 17396 set dummy $ac_prog; ac_word=$2 17397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17398 $as_echo_n "checking for $ac_word... " >&6; } 17399 if ${ac_cv_path_UNZIP+:} false; then : 17400 $as_echo_n "(cached) " >&6 17401 else 17402 case $UNZIP in 17403 [\\/]* | ?:[\\/]*) 17404 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17405 ;; 17406 *) 17407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17408 for as_dir in $PATH 17409 do 17410 IFS=$as_save_IFS 17411 test -z "$as_dir" && as_dir=. 17412 for ac_exec_ext in '' $ac_executable_extensions; do 17413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17414 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17416 break 2 17417 fi 17418 done 17419 done 17420 IFS=$as_save_IFS 17421 17422 ;; 17423 esac 17424 fi 17425 UNZIP=$ac_cv_path_UNZIP 17426 if test -n "$UNZIP"; then 17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17428 $as_echo "$UNZIP" >&6; } 17429 else 17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17431 $as_echo "no" >&6; } 17432 fi 17433 17434 17435 test -n "$UNZIP" && break 17436 done 17437 17438 else 17439 # If it succeeded, then it was overridden by the user. We will use it 17440 # for the tool. 17441 17442 # First remove it from the list of overridden variables, so we can test 17443 # for unknown variables in the end. 17444 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17445 17446 # Check if the provided tool contains a complete path. 17447 tool_specified="$UNZIP" 17448 tool_basename="${tool_specified##*/}" 17449 if test "x$tool_basename" = "x$tool_specified"; then 17450 # A command without a complete path is provided, search $PATH. 17451 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 17452 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 17453 # Extract the first word of "$tool_basename", so it can be a program name with args. 17454 set dummy $tool_basename; ac_word=$2 17455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17456 $as_echo_n "checking for $ac_word... " >&6; } 17457 if ${ac_cv_path_UNZIP+:} false; then : 17458 $as_echo_n "(cached) " >&6 17459 else 17460 case $UNZIP in 17461 [\\/]* | ?:[\\/]*) 17462 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17463 ;; 17464 *) 17465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17466 for as_dir in $PATH 17467 do 17468 IFS=$as_save_IFS 17469 test -z "$as_dir" && as_dir=. 17470 for ac_exec_ext in '' $ac_executable_extensions; do 17471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17472 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17474 break 2 17475 fi 17476 done 17477 done 17478 IFS=$as_save_IFS 17479 17480 ;; 17481 esac 17482 fi 17483 UNZIP=$ac_cv_path_UNZIP 17484 if test -n "$UNZIP"; then 17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17486 $as_echo "$UNZIP" >&6; } 17487 else 17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17489 $as_echo "no" >&6; } 17490 fi 17491 17492 17493 if test "x$UNZIP" = x; then 17494 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17495 fi 17496 else 17497 # Otherwise we believe it is a complete path. Use it as it is. 17498 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 17499 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 17501 $as_echo_n "checking for UNZIP... " >&6; } 17502 if test ! -x "$tool_specified"; then 17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17504 $as_echo "not found" >&6; } 17505 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17506 fi 17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17508 $as_echo "$tool_specified" >&6; } 17509 fi 17510 fi 17511 fi 17512 17513 17514 17515 if test "x$UNZIP" = x; then 17516 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 17517 fi 17518 17519 17520 17521 17522 17523 # Publish this variable in the help. 17524 17525 17526 if test "x$ZIP" = x; then 17527 # The variable is not set by user, try to locate tool using the code snippet 17528 for ac_prog in zip 17529 do 17530 # Extract the first word of "$ac_prog", so it can be a program name with args. 17531 set dummy $ac_prog; ac_word=$2 17532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17533 $as_echo_n "checking for $ac_word... " >&6; } 17534 if ${ac_cv_path_ZIP+:} false; then : 17535 $as_echo_n "(cached) " >&6 17536 else 17537 case $ZIP in 17538 [\\/]* | ?:[\\/]*) 17539 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17540 ;; 17541 *) 17542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17543 for as_dir in $PATH 17544 do 17545 IFS=$as_save_IFS 17546 test -z "$as_dir" && as_dir=. 17547 for ac_exec_ext in '' $ac_executable_extensions; do 17548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17549 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17551 break 2 17552 fi 17553 done 17554 done 17555 IFS=$as_save_IFS 17556 17557 ;; 17558 esac 17559 fi 17560 ZIP=$ac_cv_path_ZIP 17561 if test -n "$ZIP"; then 17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17563 $as_echo "$ZIP" >&6; } 17564 else 17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17566 $as_echo "no" >&6; } 17567 fi 17568 17569 17570 test -n "$ZIP" && break 17571 done 17572 17573 else 17574 # The variable is set, but is it from the command line or the environment? 17575 17576 # Try to remove the string !ZIP! from our list. 17577 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 17578 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17579 # If it failed, the variable was not from the command line. Ignore it, 17580 # but warn the user (except for BASH, which is always set by the calling BASH). 17581 if test "xZIP" != xBASH; then 17582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 17583 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 17584 fi 17585 # Try to locate tool using the code snippet 17586 for ac_prog in zip 17587 do 17588 # Extract the first word of "$ac_prog", so it can be a program name with args. 17589 set dummy $ac_prog; ac_word=$2 17590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17591 $as_echo_n "checking for $ac_word... " >&6; } 17592 if ${ac_cv_path_ZIP+:} false; then : 17593 $as_echo_n "(cached) " >&6 17594 else 17595 case $ZIP in 17596 [\\/]* | ?:[\\/]*) 17597 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17598 ;; 17599 *) 17600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17601 for as_dir in $PATH 17602 do 17603 IFS=$as_save_IFS 17604 test -z "$as_dir" && as_dir=. 17605 for ac_exec_ext in '' $ac_executable_extensions; do 17606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17607 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17609 break 2 17610 fi 17611 done 17612 done 17613 IFS=$as_save_IFS 17614 17615 ;; 17616 esac 17617 fi 17618 ZIP=$ac_cv_path_ZIP 17619 if test -n "$ZIP"; then 17620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17621 $as_echo "$ZIP" >&6; } 17622 else 17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17624 $as_echo "no" >&6; } 17625 fi 17626 17627 17628 test -n "$ZIP" && break 17629 done 17630 17631 else 17632 # If it succeeded, then it was overridden by the user. We will use it 17633 # for the tool. 17634 17635 # First remove it from the list of overridden variables, so we can test 17636 # for unknown variables in the end. 17637 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17638 17639 # Check if the provided tool contains a complete path. 17640 tool_specified="$ZIP" 17641 tool_basename="${tool_specified##*/}" 17642 if test "x$tool_basename" = "x$tool_specified"; then 17643 # A command without a complete path is provided, search $PATH. 17644 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 17645 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 17646 # Extract the first word of "$tool_basename", so it can be a program name with args. 17647 set dummy $tool_basename; ac_word=$2 17648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17649 $as_echo_n "checking for $ac_word... " >&6; } 17650 if ${ac_cv_path_ZIP+:} false; then : 17651 $as_echo_n "(cached) " >&6 17652 else 17653 case $ZIP in 17654 [\\/]* | ?:[\\/]*) 17655 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17656 ;; 17657 *) 17658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17659 for as_dir in $PATH 17660 do 17661 IFS=$as_save_IFS 17662 test -z "$as_dir" && as_dir=. 17663 for ac_exec_ext in '' $ac_executable_extensions; do 17664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17665 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17667 break 2 17668 fi 17669 done 17670 done 17671 IFS=$as_save_IFS 17672 17673 ;; 17674 esac 17675 fi 17676 ZIP=$ac_cv_path_ZIP 17677 if test -n "$ZIP"; then 17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17679 $as_echo "$ZIP" >&6; } 17680 else 17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17682 $as_echo "no" >&6; } 17683 fi 17684 17685 17686 if test "x$ZIP" = x; then 17687 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17688 fi 17689 else 17690 # Otherwise we believe it is a complete path. Use it as it is. 17691 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 17692 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 17693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 17694 $as_echo_n "checking for ZIP... " >&6; } 17695 if test ! -x "$tool_specified"; then 17696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17697 $as_echo "not found" >&6; } 17698 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17699 fi 17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17701 $as_echo "$tool_specified" >&6; } 17702 fi 17703 fi 17704 fi 17705 17706 17707 17708 if test "x$ZIP" = x; then 17709 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 17710 fi 17711 17712 17713 17714 # Non-required basic tools 17715 17716 17717 17718 # Publish this variable in the help. 17719 17720 17721 if test "x$LDD" = x; then 17722 # The variable is not set by user, try to locate tool using the code snippet 17723 for ac_prog in ldd 17724 do 17725 # Extract the first word of "$ac_prog", so it can be a program name with args. 17726 set dummy $ac_prog; ac_word=$2 17727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17728 $as_echo_n "checking for $ac_word... " >&6; } 17729 if ${ac_cv_path_LDD+:} false; then : 17730 $as_echo_n "(cached) " >&6 17731 else 17732 case $LDD in 17733 [\\/]* | ?:[\\/]*) 17734 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17735 ;; 17736 *) 17737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17738 for as_dir in $PATH 17739 do 17740 IFS=$as_save_IFS 17741 test -z "$as_dir" && as_dir=. 17742 for ac_exec_ext in '' $ac_executable_extensions; do 17743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17744 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17746 break 2 17747 fi 17748 done 17749 done 17750 IFS=$as_save_IFS 17751 17752 ;; 17753 esac 17754 fi 17755 LDD=$ac_cv_path_LDD 17756 if test -n "$LDD"; then 17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17758 $as_echo "$LDD" >&6; } 17759 else 17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17761 $as_echo "no" >&6; } 17762 fi 17763 17764 17765 test -n "$LDD" && break 17766 done 17767 17768 else 17769 # The variable is set, but is it from the command line or the environment? 17770 17771 # Try to remove the string !LDD! from our list. 17772 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 17773 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17774 # If it failed, the variable was not from the command line. Ignore it, 17775 # but warn the user (except for BASH, which is always set by the calling BASH). 17776 if test "xLDD" != xBASH; then 17777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 17778 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 17779 fi 17780 # Try to locate tool using the code snippet 17781 for ac_prog in ldd 17782 do 17783 # Extract the first word of "$ac_prog", so it can be a program name with args. 17784 set dummy $ac_prog; ac_word=$2 17785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17786 $as_echo_n "checking for $ac_word... " >&6; } 17787 if ${ac_cv_path_LDD+:} false; then : 17788 $as_echo_n "(cached) " >&6 17789 else 17790 case $LDD in 17791 [\\/]* | ?:[\\/]*) 17792 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17793 ;; 17794 *) 17795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17796 for as_dir in $PATH 17797 do 17798 IFS=$as_save_IFS 17799 test -z "$as_dir" && as_dir=. 17800 for ac_exec_ext in '' $ac_executable_extensions; do 17801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17802 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17804 break 2 17805 fi 17806 done 17807 done 17808 IFS=$as_save_IFS 17809 17810 ;; 17811 esac 17812 fi 17813 LDD=$ac_cv_path_LDD 17814 if test -n "$LDD"; then 17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17816 $as_echo "$LDD" >&6; } 17817 else 17818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17819 $as_echo "no" >&6; } 17820 fi 17821 17822 17823 test -n "$LDD" && break 17824 done 17825 17826 else 17827 # If it succeeded, then it was overridden by the user. We will use it 17828 # for the tool. 17829 17830 # First remove it from the list of overridden variables, so we can test 17831 # for unknown variables in the end. 17832 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17833 17834 # Check if the provided tool contains a complete path. 17835 tool_specified="$LDD" 17836 tool_basename="${tool_specified##*/}" 17837 if test "x$tool_basename" = "x$tool_specified"; then 17838 # A command without a complete path is provided, search $PATH. 17839 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 17840 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 17841 # Extract the first word of "$tool_basename", so it can be a program name with args. 17842 set dummy $tool_basename; ac_word=$2 17843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17844 $as_echo_n "checking for $ac_word... " >&6; } 17845 if ${ac_cv_path_LDD+:} false; then : 17846 $as_echo_n "(cached) " >&6 17847 else 17848 case $LDD in 17849 [\\/]* | ?:[\\/]*) 17850 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17851 ;; 17852 *) 17853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17854 for as_dir in $PATH 17855 do 17856 IFS=$as_save_IFS 17857 test -z "$as_dir" && as_dir=. 17858 for ac_exec_ext in '' $ac_executable_extensions; do 17859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17860 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17862 break 2 17863 fi 17864 done 17865 done 17866 IFS=$as_save_IFS 17867 17868 ;; 17869 esac 17870 fi 17871 LDD=$ac_cv_path_LDD 17872 if test -n "$LDD"; then 17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17874 $as_echo "$LDD" >&6; } 17875 else 17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17877 $as_echo "no" >&6; } 17878 fi 17879 17880 17881 if test "x$LDD" = x; then 17882 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17883 fi 17884 else 17885 # Otherwise we believe it is a complete path. Use it as it is. 17886 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 17887 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 17888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 17889 $as_echo_n "checking for LDD... " >&6; } 17890 if test ! -x "$tool_specified"; then 17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17892 $as_echo "not found" >&6; } 17893 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 17894 fi 17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17896 $as_echo "$tool_specified" >&6; } 17897 fi 17898 fi 17899 fi 17900 17901 17902 if test "x$LDD" = "x"; then 17903 # List shared lib dependencies is used for 17904 # debug output and checking for forbidden dependencies. 17905 # We can build without it. 17906 LDD="true" 17907 fi 17908 17909 17910 # Publish this variable in the help. 17911 17912 17913 if test "x$OTOOL" = x; then 17914 # The variable is not set by user, try to locate tool using the code snippet 17915 for ac_prog in otool 17916 do 17917 # Extract the first word of "$ac_prog", so it can be a program name with args. 17918 set dummy $ac_prog; ac_word=$2 17919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17920 $as_echo_n "checking for $ac_word... " >&6; } 17921 if ${ac_cv_path_OTOOL+:} false; then : 17922 $as_echo_n "(cached) " >&6 17923 else 17924 case $OTOOL in 17925 [\\/]* | ?:[\\/]*) 17926 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 17927 ;; 17928 *) 17929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17930 for as_dir in $PATH 17931 do 17932 IFS=$as_save_IFS 17933 test -z "$as_dir" && as_dir=. 17934 for ac_exec_ext in '' $ac_executable_extensions; do 17935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17936 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 17937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17938 break 2 17939 fi 17940 done 17941 done 17942 IFS=$as_save_IFS 17943 17944 ;; 17945 esac 17946 fi 17947 OTOOL=$ac_cv_path_OTOOL 17948 if test -n "$OTOOL"; then 17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17950 $as_echo "$OTOOL" >&6; } 17951 else 17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17953 $as_echo "no" >&6; } 17954 fi 17955 17956 17957 test -n "$OTOOL" && break 17958 done 17959 17960 else 17961 # The variable is set, but is it from the command line or the environment? 17962 17963 # Try to remove the string !OTOOL! from our list. 17964 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 17965 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17966 # If it failed, the variable was not from the command line. Ignore it, 17967 # but warn the user (except for BASH, which is always set by the calling BASH). 17968 if test "xOTOOL" != xBASH; then 17969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 17970 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 17971 fi 17972 # Try to locate tool using the code snippet 17973 for ac_prog in otool 17974 do 17975 # Extract the first word of "$ac_prog", so it can be a program name with args. 17976 set dummy $ac_prog; ac_word=$2 17977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17978 $as_echo_n "checking for $ac_word... " >&6; } 17979 if ${ac_cv_path_OTOOL+:} false; then : 17980 $as_echo_n "(cached) " >&6 17981 else 17982 case $OTOOL in 17983 [\\/]* | ?:[\\/]*) 17984 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 17985 ;; 17986 *) 17987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17988 for as_dir in $PATH 17989 do 17990 IFS=$as_save_IFS 17991 test -z "$as_dir" && as_dir=. 17992 for ac_exec_ext in '' $ac_executable_extensions; do 17993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17994 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 17995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17996 break 2 17997 fi 17998 done 17999 done 18000 IFS=$as_save_IFS 18001 18002 ;; 18003 esac 18004 fi 18005 OTOOL=$ac_cv_path_OTOOL 18006 if test -n "$OTOOL"; then 18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 18008 $as_echo "$OTOOL" >&6; } 18009 else 18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18011 $as_echo "no" >&6; } 18012 fi 18013 18014 18015 test -n "$OTOOL" && break 18016 done 18017 18018 else 18019 # If it succeeded, then it was overridden by the user. We will use it 18020 # for the tool. 18021 18022 # First remove it from the list of overridden variables, so we can test 18023 # for unknown variables in the end. 18024 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18025 18026 # Check if the provided tool contains a complete path. 18027 tool_specified="$OTOOL" 18028 tool_basename="${tool_specified##*/}" 18029 if test "x$tool_basename" = "x$tool_specified"; then 18030 # A command without a complete path is provided, search $PATH. 18031 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 18032 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 18033 # Extract the first word of "$tool_basename", so it can be a program name with args. 18034 set dummy $tool_basename; ac_word=$2 18035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18036 $as_echo_n "checking for $ac_word... " >&6; } 18037 if ${ac_cv_path_OTOOL+:} false; then : 18038 $as_echo_n "(cached) " >&6 18039 else 18040 case $OTOOL in 18041 [\\/]* | ?:[\\/]*) 18042 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 18043 ;; 18044 *) 18045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18046 for as_dir in $PATH 18047 do 18048 IFS=$as_save_IFS 18049 test -z "$as_dir" && as_dir=. 18050 for ac_exec_ext in '' $ac_executable_extensions; do 18051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18052 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 18053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18054 break 2 18055 fi 18056 done 18057 done 18058 IFS=$as_save_IFS 18059 18060 ;; 18061 esac 18062 fi 18063 OTOOL=$ac_cv_path_OTOOL 18064 if test -n "$OTOOL"; then 18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 18066 $as_echo "$OTOOL" >&6; } 18067 else 18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18069 $as_echo "no" >&6; } 18070 fi 18071 18072 18073 if test "x$OTOOL" = x; then 18074 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18075 fi 18076 else 18077 # Otherwise we believe it is a complete path. Use it as it is. 18078 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 18079 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 18080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 18081 $as_echo_n "checking for OTOOL... " >&6; } 18082 if test ! -x "$tool_specified"; then 18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18084 $as_echo "not found" >&6; } 18085 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 18086 fi 18087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18088 $as_echo "$tool_specified" >&6; } 18089 fi 18090 fi 18091 fi 18092 18093 18094 if test "x$OTOOL" = "x"; then 18095 OTOOL="true" 18096 fi 18097 18098 18099 # Publish this variable in the help. 18100 18101 18102 if test "x$READELF" = x; then 18103 # The variable is not set by user, try to locate tool using the code snippet 18104 for ac_prog in greadelf readelf 18105 do 18106 # Extract the first word of "$ac_prog", so it can be a program name with args. 18107 set dummy $ac_prog; ac_word=$2 18108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18109 $as_echo_n "checking for $ac_word... " >&6; } 18110 if ${ac_cv_path_READELF+:} false; then : 18111 $as_echo_n "(cached) " >&6 18112 else 18113 case $READELF in 18114 [\\/]* | ?:[\\/]*) 18115 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18116 ;; 18117 *) 18118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18119 for as_dir in $PATH 18120 do 18121 IFS=$as_save_IFS 18122 test -z "$as_dir" && as_dir=. 18123 for ac_exec_ext in '' $ac_executable_extensions; do 18124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18125 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18127 break 2 18128 fi 18129 done 18130 done 18131 IFS=$as_save_IFS 18132 18133 ;; 18134 esac 18135 fi 18136 READELF=$ac_cv_path_READELF 18137 if test -n "$READELF"; then 18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18139 $as_echo "$READELF" >&6; } 18140 else 18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18142 $as_echo "no" >&6; } 18143 fi 18144 18145 18146 test -n "$READELF" && break 18147 done 18148 18149 else 18150 # The variable is set, but is it from the command line or the environment? 18151 18152 # Try to remove the string !READELF! from our list. 18153 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 18154 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18155 # If it failed, the variable was not from the command line. Ignore it, 18156 # but warn the user (except for BASH, which is always set by the calling BASH). 18157 if test "xREADELF" != xBASH; then 18158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 18159 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 18160 fi 18161 # Try to locate tool using the code snippet 18162 for ac_prog in greadelf readelf 18163 do 18164 # Extract the first word of "$ac_prog", so it can be a program name with args. 18165 set dummy $ac_prog; ac_word=$2 18166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18167 $as_echo_n "checking for $ac_word... " >&6; } 18168 if ${ac_cv_path_READELF+:} false; then : 18169 $as_echo_n "(cached) " >&6 18170 else 18171 case $READELF in 18172 [\\/]* | ?:[\\/]*) 18173 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18174 ;; 18175 *) 18176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18177 for as_dir in $PATH 18178 do 18179 IFS=$as_save_IFS 18180 test -z "$as_dir" && as_dir=. 18181 for ac_exec_ext in '' $ac_executable_extensions; do 18182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18183 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18185 break 2 18186 fi 18187 done 18188 done 18189 IFS=$as_save_IFS 18190 18191 ;; 18192 esac 18193 fi 18194 READELF=$ac_cv_path_READELF 18195 if test -n "$READELF"; then 18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18197 $as_echo "$READELF" >&6; } 18198 else 18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18200 $as_echo "no" >&6; } 18201 fi 18202 18203 18204 test -n "$READELF" && break 18205 done 18206 18207 else 18208 # If it succeeded, then it was overridden by the user. We will use it 18209 # for the tool. 18210 18211 # First remove it from the list of overridden variables, so we can test 18212 # for unknown variables in the end. 18213 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18214 18215 # Check if the provided tool contains a complete path. 18216 tool_specified="$READELF" 18217 tool_basename="${tool_specified##*/}" 18218 if test "x$tool_basename" = "x$tool_specified"; then 18219 # A command without a complete path is provided, search $PATH. 18220 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 18221 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 18222 # Extract the first word of "$tool_basename", so it can be a program name with args. 18223 set dummy $tool_basename; ac_word=$2 18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18225 $as_echo_n "checking for $ac_word... " >&6; } 18226 if ${ac_cv_path_READELF+:} false; then : 18227 $as_echo_n "(cached) " >&6 18228 else 18229 case $READELF in 18230 [\\/]* | ?:[\\/]*) 18231 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18232 ;; 18233 *) 18234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18235 for as_dir in $PATH 18236 do 18237 IFS=$as_save_IFS 18238 test -z "$as_dir" && as_dir=. 18239 for ac_exec_ext in '' $ac_executable_extensions; do 18240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18241 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18243 break 2 18244 fi 18245 done 18246 done 18247 IFS=$as_save_IFS 18248 18249 ;; 18250 esac 18251 fi 18252 READELF=$ac_cv_path_READELF 18253 if test -n "$READELF"; then 18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18255 $as_echo "$READELF" >&6; } 18256 else 18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18258 $as_echo "no" >&6; } 18259 fi 18260 18261 18262 if test "x$READELF" = x; then 18263 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18264 fi 18265 else 18266 # Otherwise we believe it is a complete path. Use it as it is. 18267 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 18268 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 18269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 18270 $as_echo_n "checking for READELF... " >&6; } 18271 if test ! -x "$tool_specified"; then 18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18273 $as_echo "not found" >&6; } 18274 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 18275 fi 18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18277 $as_echo "$tool_specified" >&6; } 18278 fi 18279 fi 18280 fi 18281 18282 18283 18284 18285 # Publish this variable in the help. 18286 18287 18288 if test "x$HG" = x; then 18289 # The variable is not set by user, try to locate tool using the code snippet 18290 for ac_prog in hg 18291 do 18292 # Extract the first word of "$ac_prog", so it can be a program name with args. 18293 set dummy $ac_prog; ac_word=$2 18294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18295 $as_echo_n "checking for $ac_word... " >&6; } 18296 if ${ac_cv_path_HG+:} false; then : 18297 $as_echo_n "(cached) " >&6 18298 else 18299 case $HG in 18300 [\\/]* | ?:[\\/]*) 18301 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18302 ;; 18303 *) 18304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18305 for as_dir in $PATH 18306 do 18307 IFS=$as_save_IFS 18308 test -z "$as_dir" && as_dir=. 18309 for ac_exec_ext in '' $ac_executable_extensions; do 18310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18311 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18313 break 2 18314 fi 18315 done 18316 done 18317 IFS=$as_save_IFS 18318 18319 ;; 18320 esac 18321 fi 18322 HG=$ac_cv_path_HG 18323 if test -n "$HG"; then 18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18325 $as_echo "$HG" >&6; } 18326 else 18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18328 $as_echo "no" >&6; } 18329 fi 18330 18331 18332 test -n "$HG" && break 18333 done 18334 18335 else 18336 # The variable is set, but is it from the command line or the environment? 18337 18338 # Try to remove the string !HG! from our list. 18339 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 18340 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18341 # If it failed, the variable was not from the command line. Ignore it, 18342 # but warn the user (except for BASH, which is always set by the calling BASH). 18343 if test "xHG" != xBASH; then 18344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 18345 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 18346 fi 18347 # Try to locate tool using the code snippet 18348 for ac_prog in hg 18349 do 18350 # Extract the first word of "$ac_prog", so it can be a program name with args. 18351 set dummy $ac_prog; ac_word=$2 18352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18353 $as_echo_n "checking for $ac_word... " >&6; } 18354 if ${ac_cv_path_HG+:} false; then : 18355 $as_echo_n "(cached) " >&6 18356 else 18357 case $HG in 18358 [\\/]* | ?:[\\/]*) 18359 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18360 ;; 18361 *) 18362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18363 for as_dir in $PATH 18364 do 18365 IFS=$as_save_IFS 18366 test -z "$as_dir" && as_dir=. 18367 for ac_exec_ext in '' $ac_executable_extensions; do 18368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18369 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18371 break 2 18372 fi 18373 done 18374 done 18375 IFS=$as_save_IFS 18376 18377 ;; 18378 esac 18379 fi 18380 HG=$ac_cv_path_HG 18381 if test -n "$HG"; then 18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18383 $as_echo "$HG" >&6; } 18384 else 18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18386 $as_echo "no" >&6; } 18387 fi 18388 18389 18390 test -n "$HG" && break 18391 done 18392 18393 else 18394 # If it succeeded, then it was overridden by the user. We will use it 18395 # for the tool. 18396 18397 # First remove it from the list of overridden variables, so we can test 18398 # for unknown variables in the end. 18399 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18400 18401 # Check if the provided tool contains a complete path. 18402 tool_specified="$HG" 18403 tool_basename="${tool_specified##*/}" 18404 if test "x$tool_basename" = "x$tool_specified"; then 18405 # A command without a complete path is provided, search $PATH. 18406 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 18407 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 18408 # Extract the first word of "$tool_basename", so it can be a program name with args. 18409 set dummy $tool_basename; ac_word=$2 18410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18411 $as_echo_n "checking for $ac_word... " >&6; } 18412 if ${ac_cv_path_HG+:} false; then : 18413 $as_echo_n "(cached) " >&6 18414 else 18415 case $HG in 18416 [\\/]* | ?:[\\/]*) 18417 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18418 ;; 18419 *) 18420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18421 for as_dir in $PATH 18422 do 18423 IFS=$as_save_IFS 18424 test -z "$as_dir" && as_dir=. 18425 for ac_exec_ext in '' $ac_executable_extensions; do 18426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18427 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18429 break 2 18430 fi 18431 done 18432 done 18433 IFS=$as_save_IFS 18434 18435 ;; 18436 esac 18437 fi 18438 HG=$ac_cv_path_HG 18439 if test -n "$HG"; then 18440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18441 $as_echo "$HG" >&6; } 18442 else 18443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18444 $as_echo "no" >&6; } 18445 fi 18446 18447 18448 if test "x$HG" = x; then 18449 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18450 fi 18451 else 18452 # Otherwise we believe it is a complete path. Use it as it is. 18453 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 18454 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 18455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 18456 $as_echo_n "checking for HG... " >&6; } 18457 if test ! -x "$tool_specified"; then 18458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18459 $as_echo "not found" >&6; } 18460 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 18461 fi 18462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18463 $as_echo "$tool_specified" >&6; } 18464 fi 18465 fi 18466 fi 18467 18468 18469 18470 18471 # Publish this variable in the help. 18472 18473 18474 if test "x$STAT" = x; then 18475 # The variable is not set by user, try to locate tool using the code snippet 18476 for ac_prog in stat 18477 do 18478 # Extract the first word of "$ac_prog", so it can be a program name with args. 18479 set dummy $ac_prog; ac_word=$2 18480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18481 $as_echo_n "checking for $ac_word... " >&6; } 18482 if ${ac_cv_path_STAT+:} false; then : 18483 $as_echo_n "(cached) " >&6 18484 else 18485 case $STAT in 18486 [\\/]* | ?:[\\/]*) 18487 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18488 ;; 18489 *) 18490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18491 for as_dir in $PATH 18492 do 18493 IFS=$as_save_IFS 18494 test -z "$as_dir" && as_dir=. 18495 for ac_exec_ext in '' $ac_executable_extensions; do 18496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18497 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18499 break 2 18500 fi 18501 done 18502 done 18503 IFS=$as_save_IFS 18504 18505 ;; 18506 esac 18507 fi 18508 STAT=$ac_cv_path_STAT 18509 if test -n "$STAT"; then 18510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18511 $as_echo "$STAT" >&6; } 18512 else 18513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18514 $as_echo "no" >&6; } 18515 fi 18516 18517 18518 test -n "$STAT" && break 18519 done 18520 18521 else 18522 # The variable is set, but is it from the command line or the environment? 18523 18524 # Try to remove the string !STAT! from our list. 18525 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 18526 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18527 # If it failed, the variable was not from the command line. Ignore it, 18528 # but warn the user (except for BASH, which is always set by the calling BASH). 18529 if test "xSTAT" != xBASH; then 18530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 18531 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 18532 fi 18533 # Try to locate tool using the code snippet 18534 for ac_prog in stat 18535 do 18536 # Extract the first word of "$ac_prog", so it can be a program name with args. 18537 set dummy $ac_prog; ac_word=$2 18538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18539 $as_echo_n "checking for $ac_word... " >&6; } 18540 if ${ac_cv_path_STAT+:} false; then : 18541 $as_echo_n "(cached) " >&6 18542 else 18543 case $STAT in 18544 [\\/]* | ?:[\\/]*) 18545 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18546 ;; 18547 *) 18548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18549 for as_dir in $PATH 18550 do 18551 IFS=$as_save_IFS 18552 test -z "$as_dir" && as_dir=. 18553 for ac_exec_ext in '' $ac_executable_extensions; do 18554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18555 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18557 break 2 18558 fi 18559 done 18560 done 18561 IFS=$as_save_IFS 18562 18563 ;; 18564 esac 18565 fi 18566 STAT=$ac_cv_path_STAT 18567 if test -n "$STAT"; then 18568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18569 $as_echo "$STAT" >&6; } 18570 else 18571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18572 $as_echo "no" >&6; } 18573 fi 18574 18575 18576 test -n "$STAT" && break 18577 done 18578 18579 else 18580 # If it succeeded, then it was overridden by the user. We will use it 18581 # for the tool. 18582 18583 # First remove it from the list of overridden variables, so we can test 18584 # for unknown variables in the end. 18585 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18586 18587 # Check if the provided tool contains a complete path. 18588 tool_specified="$STAT" 18589 tool_basename="${tool_specified##*/}" 18590 if test "x$tool_basename" = "x$tool_specified"; then 18591 # A command without a complete path is provided, search $PATH. 18592 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 18593 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 18594 # Extract the first word of "$tool_basename", so it can be a program name with args. 18595 set dummy $tool_basename; ac_word=$2 18596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18597 $as_echo_n "checking for $ac_word... " >&6; } 18598 if ${ac_cv_path_STAT+:} false; then : 18599 $as_echo_n "(cached) " >&6 18600 else 18601 case $STAT in 18602 [\\/]* | ?:[\\/]*) 18603 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18604 ;; 18605 *) 18606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18607 for as_dir in $PATH 18608 do 18609 IFS=$as_save_IFS 18610 test -z "$as_dir" && as_dir=. 18611 for ac_exec_ext in '' $ac_executable_extensions; do 18612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18613 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18615 break 2 18616 fi 18617 done 18618 done 18619 IFS=$as_save_IFS 18620 18621 ;; 18622 esac 18623 fi 18624 STAT=$ac_cv_path_STAT 18625 if test -n "$STAT"; then 18626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18627 $as_echo "$STAT" >&6; } 18628 else 18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18630 $as_echo "no" >&6; } 18631 fi 18632 18633 18634 if test "x$STAT" = x; then 18635 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18636 fi 18637 else 18638 # Otherwise we believe it is a complete path. Use it as it is. 18639 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 18640 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 18641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 18642 $as_echo_n "checking for STAT... " >&6; } 18643 if test ! -x "$tool_specified"; then 18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18645 $as_echo "not found" >&6; } 18646 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 18647 fi 18648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18649 $as_echo "$tool_specified" >&6; } 18650 fi 18651 fi 18652 fi 18653 18654 18655 18656 18657 # Publish this variable in the help. 18658 18659 18660 if test "x$TIME" = x; then 18661 # The variable is not set by user, try to locate tool using the code snippet 18662 for ac_prog in time 18663 do 18664 # Extract the first word of "$ac_prog", so it can be a program name with args. 18665 set dummy $ac_prog; ac_word=$2 18666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18667 $as_echo_n "checking for $ac_word... " >&6; } 18668 if ${ac_cv_path_TIME+:} false; then : 18669 $as_echo_n "(cached) " >&6 18670 else 18671 case $TIME in 18672 [\\/]* | ?:[\\/]*) 18673 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18674 ;; 18675 *) 18676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18677 for as_dir in $PATH 18678 do 18679 IFS=$as_save_IFS 18680 test -z "$as_dir" && as_dir=. 18681 for ac_exec_ext in '' $ac_executable_extensions; do 18682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18683 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18685 break 2 18686 fi 18687 done 18688 done 18689 IFS=$as_save_IFS 18690 18691 ;; 18692 esac 18693 fi 18694 TIME=$ac_cv_path_TIME 18695 if test -n "$TIME"; then 18696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18697 $as_echo "$TIME" >&6; } 18698 else 18699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18700 $as_echo "no" >&6; } 18701 fi 18702 18703 18704 test -n "$TIME" && break 18705 done 18706 18707 else 18708 # The variable is set, but is it from the command line or the environment? 18709 18710 # Try to remove the string !TIME! from our list. 18711 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 18712 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18713 # If it failed, the variable was not from the command line. Ignore it, 18714 # but warn the user (except for BASH, which is always set by the calling BASH). 18715 if test "xTIME" != xBASH; then 18716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 18717 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 18718 fi 18719 # Try to locate tool using the code snippet 18720 for ac_prog in time 18721 do 18722 # Extract the first word of "$ac_prog", so it can be a program name with args. 18723 set dummy $ac_prog; ac_word=$2 18724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18725 $as_echo_n "checking for $ac_word... " >&6; } 18726 if ${ac_cv_path_TIME+:} false; then : 18727 $as_echo_n "(cached) " >&6 18728 else 18729 case $TIME in 18730 [\\/]* | ?:[\\/]*) 18731 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18732 ;; 18733 *) 18734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18735 for as_dir in $PATH 18736 do 18737 IFS=$as_save_IFS 18738 test -z "$as_dir" && as_dir=. 18739 for ac_exec_ext in '' $ac_executable_extensions; do 18740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18741 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18743 break 2 18744 fi 18745 done 18746 done 18747 IFS=$as_save_IFS 18748 18749 ;; 18750 esac 18751 fi 18752 TIME=$ac_cv_path_TIME 18753 if test -n "$TIME"; then 18754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18755 $as_echo "$TIME" >&6; } 18756 else 18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18758 $as_echo "no" >&6; } 18759 fi 18760 18761 18762 test -n "$TIME" && break 18763 done 18764 18765 else 18766 # If it succeeded, then it was overridden by the user. We will use it 18767 # for the tool. 18768 18769 # First remove it from the list of overridden variables, so we can test 18770 # for unknown variables in the end. 18771 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18772 18773 # Check if the provided tool contains a complete path. 18774 tool_specified="$TIME" 18775 tool_basename="${tool_specified##*/}" 18776 if test "x$tool_basename" = "x$tool_specified"; then 18777 # A command without a complete path is provided, search $PATH. 18778 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 18779 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 18780 # Extract the first word of "$tool_basename", so it can be a program name with args. 18781 set dummy $tool_basename; ac_word=$2 18782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18783 $as_echo_n "checking for $ac_word... " >&6; } 18784 if ${ac_cv_path_TIME+:} false; then : 18785 $as_echo_n "(cached) " >&6 18786 else 18787 case $TIME in 18788 [\\/]* | ?:[\\/]*) 18789 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18790 ;; 18791 *) 18792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18793 for as_dir in $PATH 18794 do 18795 IFS=$as_save_IFS 18796 test -z "$as_dir" && as_dir=. 18797 for ac_exec_ext in '' $ac_executable_extensions; do 18798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18799 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18801 break 2 18802 fi 18803 done 18804 done 18805 IFS=$as_save_IFS 18806 18807 ;; 18808 esac 18809 fi 18810 TIME=$ac_cv_path_TIME 18811 if test -n "$TIME"; then 18812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18813 $as_echo "$TIME" >&6; } 18814 else 18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18816 $as_echo "no" >&6; } 18817 fi 18818 18819 18820 if test "x$TIME" = x; then 18821 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18822 fi 18823 else 18824 # Otherwise we believe it is a complete path. Use it as it is. 18825 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 18826 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 18827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 18828 $as_echo_n "checking for TIME... " >&6; } 18829 if test ! -x "$tool_specified"; then 18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18831 $as_echo "not found" >&6; } 18832 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 18833 fi 18834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18835 $as_echo "$tool_specified" >&6; } 18836 fi 18837 fi 18838 fi 18839 18840 18841 # Check if it's GNU time 18842 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 18843 if test "x$IS_GNU_TIME" != x; then 18844 IS_GNU_TIME=yes 18845 else 18846 IS_GNU_TIME=no 18847 fi 18848 18849 18850 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 18851 18852 18853 18854 # Publish this variable in the help. 18855 18856 18857 if test "x$COMM" = x; then 18858 # The variable is not set by user, try to locate tool using the code snippet 18859 for ac_prog in comm 18860 do 18861 # Extract the first word of "$ac_prog", so it can be a program name with args. 18862 set dummy $ac_prog; ac_word=$2 18863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18864 $as_echo_n "checking for $ac_word... " >&6; } 18865 if ${ac_cv_path_COMM+:} false; then : 18866 $as_echo_n "(cached) " >&6 18867 else 18868 case $COMM in 18869 [\\/]* | ?:[\\/]*) 18870 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18871 ;; 18872 *) 18873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18874 for as_dir in $PATH 18875 do 18876 IFS=$as_save_IFS 18877 test -z "$as_dir" && as_dir=. 18878 for ac_exec_ext in '' $ac_executable_extensions; do 18879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18880 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18882 break 2 18883 fi 18884 done 18885 done 18886 IFS=$as_save_IFS 18887 18888 ;; 18889 esac 18890 fi 18891 COMM=$ac_cv_path_COMM 18892 if test -n "$COMM"; then 18893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18894 $as_echo "$COMM" >&6; } 18895 else 18896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18897 $as_echo "no" >&6; } 18898 fi 18899 18900 18901 test -n "$COMM" && break 18902 done 18903 18904 else 18905 # The variable is set, but is it from the command line or the environment? 18906 18907 # Try to remove the string !COMM! from our list. 18908 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 18909 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18910 # If it failed, the variable was not from the command line. Ignore it, 18911 # but warn the user (except for BASH, which is always set by the calling BASH). 18912 if test "xCOMM" != xBASH; then 18913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 18914 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 18915 fi 18916 # Try to locate tool using the code snippet 18917 for ac_prog in comm 18918 do 18919 # Extract the first word of "$ac_prog", so it can be a program name with args. 18920 set dummy $ac_prog; ac_word=$2 18921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18922 $as_echo_n "checking for $ac_word... " >&6; } 18923 if ${ac_cv_path_COMM+:} false; then : 18924 $as_echo_n "(cached) " >&6 18925 else 18926 case $COMM in 18927 [\\/]* | ?:[\\/]*) 18928 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18929 ;; 18930 *) 18931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18932 for as_dir in $PATH 18933 do 18934 IFS=$as_save_IFS 18935 test -z "$as_dir" && as_dir=. 18936 for ac_exec_ext in '' $ac_executable_extensions; do 18937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18938 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18940 break 2 18941 fi 18942 done 18943 done 18944 IFS=$as_save_IFS 18945 18946 ;; 18947 esac 18948 fi 18949 COMM=$ac_cv_path_COMM 18950 if test -n "$COMM"; then 18951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18952 $as_echo "$COMM" >&6; } 18953 else 18954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18955 $as_echo "no" >&6; } 18956 fi 18957 18958 18959 test -n "$COMM" && break 18960 done 18961 18962 else 18963 # If it succeeded, then it was overridden by the user. We will use it 18964 # for the tool. 18965 18966 # First remove it from the list of overridden variables, so we can test 18967 # for unknown variables in the end. 18968 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18969 18970 # Check if the provided tool contains a complete path. 18971 tool_specified="$COMM" 18972 tool_basename="${tool_specified##*/}" 18973 if test "x$tool_basename" = "x$tool_specified"; then 18974 # A command without a complete path is provided, search $PATH. 18975 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 18976 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 18977 # Extract the first word of "$tool_basename", so it can be a program name with args. 18978 set dummy $tool_basename; ac_word=$2 18979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18980 $as_echo_n "checking for $ac_word... " >&6; } 18981 if ${ac_cv_path_COMM+:} false; then : 18982 $as_echo_n "(cached) " >&6 18983 else 18984 case $COMM in 18985 [\\/]* | ?:[\\/]*) 18986 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18987 ;; 18988 *) 18989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18990 for as_dir in $PATH 18991 do 18992 IFS=$as_save_IFS 18993 test -z "$as_dir" && as_dir=. 18994 for ac_exec_ext in '' $ac_executable_extensions; do 18995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18996 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18998 break 2 18999 fi 19000 done 19001 done 19002 IFS=$as_save_IFS 19003 19004 ;; 19005 esac 19006 fi 19007 COMM=$ac_cv_path_COMM 19008 if test -n "$COMM"; then 19009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 19010 $as_echo "$COMM" >&6; } 19011 else 19012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19013 $as_echo "no" >&6; } 19014 fi 19015 19016 19017 if test "x$COMM" = x; then 19018 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19019 fi 19020 else 19021 # Otherwise we believe it is a complete path. Use it as it is. 19022 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 19023 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 19024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 19025 $as_echo_n "checking for COMM... " >&6; } 19026 if test ! -x "$tool_specified"; then 19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19028 $as_echo "not found" >&6; } 19029 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 19030 fi 19031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19032 $as_echo "$tool_specified" >&6; } 19033 fi 19034 fi 19035 fi 19036 19037 19038 19039 if test "x$COMM" = x; then 19040 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 19041 fi 19042 19043 19044 fi 19045 19046 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 19047 19048 19049 19050 # Publish this variable in the help. 19051 19052 19053 if test "x$DSYMUTIL" = x; then 19054 # The variable is not set by user, try to locate tool using the code snippet 19055 for ac_prog in dsymutil 19056 do 19057 # Extract the first word of "$ac_prog", so it can be a program name with args. 19058 set dummy $ac_prog; ac_word=$2 19059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19060 $as_echo_n "checking for $ac_word... " >&6; } 19061 if ${ac_cv_path_DSYMUTIL+:} false; then : 19062 $as_echo_n "(cached) " >&6 19063 else 19064 case $DSYMUTIL in 19065 [\\/]* | ?:[\\/]*) 19066 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 19067 ;; 19068 *) 19069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19070 for as_dir in $PATH 19071 do 19072 IFS=$as_save_IFS 19073 test -z "$as_dir" && as_dir=. 19074 for ac_exec_ext in '' $ac_executable_extensions; do 19075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19076 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 19077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19078 break 2 19079 fi 19080 done 19081 done 19082 IFS=$as_save_IFS 19083 19084 ;; 19085 esac 19086 fi 19087 DSYMUTIL=$ac_cv_path_DSYMUTIL 19088 if test -n "$DSYMUTIL"; then 19089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19090 $as_echo "$DSYMUTIL" >&6; } 19091 else 19092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19093 $as_echo "no" >&6; } 19094 fi 19095 19096 19097 test -n "$DSYMUTIL" && break 19098 done 19099 19100 else 19101 # The variable is set, but is it from the command line or the environment? 19102 19103 # Try to remove the string !DSYMUTIL! from our list. 19104 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 19105 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19106 # If it failed, the variable was not from the command line. Ignore it, 19107 # but warn the user (except for BASH, which is always set by the calling BASH). 19108 if test "xDSYMUTIL" != xBASH; then 19109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 19110 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 19111 fi 19112 # Try to locate tool using the code snippet 19113 for ac_prog in dsymutil 19114 do 19115 # Extract the first word of "$ac_prog", so it can be a program name with args. 19116 set dummy $ac_prog; ac_word=$2 19117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19118 $as_echo_n "checking for $ac_word... " >&6; } 19119 if ${ac_cv_path_DSYMUTIL+:} false; then : 19120 $as_echo_n "(cached) " >&6 19121 else 19122 case $DSYMUTIL in 19123 [\\/]* | ?:[\\/]*) 19124 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 19125 ;; 19126 *) 19127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19128 for as_dir in $PATH 19129 do 19130 IFS=$as_save_IFS 19131 test -z "$as_dir" && as_dir=. 19132 for ac_exec_ext in '' $ac_executable_extensions; do 19133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19134 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 19135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19136 break 2 19137 fi 19138 done 19139 done 19140 IFS=$as_save_IFS 19141 19142 ;; 19143 esac 19144 fi 19145 DSYMUTIL=$ac_cv_path_DSYMUTIL 19146 if test -n "$DSYMUTIL"; then 19147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19148 $as_echo "$DSYMUTIL" >&6; } 19149 else 19150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19151 $as_echo "no" >&6; } 19152 fi 19153 19154 19155 test -n "$DSYMUTIL" && break 19156 done 19157 19158 else 19159 # If it succeeded, then it was overridden by the user. We will use it 19160 # for the tool. 19161 19162 # First remove it from the list of overridden variables, so we can test 19163 # for unknown variables in the end. 19164 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19165 19166 # Check if the provided tool contains a complete path. 19167 tool_specified="$DSYMUTIL" 19168 tool_basename="${tool_specified##*/}" 19169 if test "x$tool_basename" = "x$tool_specified"; then 19170 # A command without a complete path is provided, search $PATH. 19171 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 19172 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 19173 # Extract the first word of "$tool_basename", so it can be a program name with args. 19174 set dummy $tool_basename; ac_word=$2 19175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19176 $as_echo_n "checking for $ac_word... " >&6; } 19177 if ${ac_cv_path_DSYMUTIL+:} false; then : 19178 $as_echo_n "(cached) " >&6 19179 else 19180 case $DSYMUTIL in 19181 [\\/]* | ?:[\\/]*) 19182 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 19183 ;; 19184 *) 19185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19186 for as_dir in $PATH 19187 do 19188 IFS=$as_save_IFS 19189 test -z "$as_dir" && as_dir=. 19190 for ac_exec_ext in '' $ac_executable_extensions; do 19191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19192 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 19193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19194 break 2 19195 fi 19196 done 19197 done 19198 IFS=$as_save_IFS 19199 19200 ;; 19201 esac 19202 fi 19203 DSYMUTIL=$ac_cv_path_DSYMUTIL 19204 if test -n "$DSYMUTIL"; then 19205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19206 $as_echo "$DSYMUTIL" >&6; } 19207 else 19208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19209 $as_echo "no" >&6; } 19210 fi 19211 19212 19213 if test "x$DSYMUTIL" = x; then 19214 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19215 fi 19216 else 19217 # Otherwise we believe it is a complete path. Use it as it is. 19218 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 19219 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 19220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 19221 $as_echo_n "checking for DSYMUTIL... " >&6; } 19222 if test ! -x "$tool_specified"; then 19223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19224 $as_echo "not found" >&6; } 19225 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 19226 fi 19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19228 $as_echo "$tool_specified" >&6; } 19229 fi 19230 fi 19231 fi 19232 19233 19234 19235 if test "x$DSYMUTIL" = x; then 19236 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 19237 fi 19238 19239 19240 19241 19242 19243 # Publish this variable in the help. 19244 19245 19246 if test "x$XATTR" = x; then 19247 # The variable is not set by user, try to locate tool using the code snippet 19248 for ac_prog in xattr 19249 do 19250 # Extract the first word of "$ac_prog", so it can be a program name with args. 19251 set dummy $ac_prog; ac_word=$2 19252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19253 $as_echo_n "checking for $ac_word... " >&6; } 19254 if ${ac_cv_path_XATTR+:} false; then : 19255 $as_echo_n "(cached) " >&6 19256 else 19257 case $XATTR in 19258 [\\/]* | ?:[\\/]*) 19259 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19260 ;; 19261 *) 19262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19263 for as_dir in $PATH 19264 do 19265 IFS=$as_save_IFS 19266 test -z "$as_dir" && as_dir=. 19267 for ac_exec_ext in '' $ac_executable_extensions; do 19268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19269 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19271 break 2 19272 fi 19273 done 19274 done 19275 IFS=$as_save_IFS 19276 19277 ;; 19278 esac 19279 fi 19280 XATTR=$ac_cv_path_XATTR 19281 if test -n "$XATTR"; then 19282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19283 $as_echo "$XATTR" >&6; } 19284 else 19285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19286 $as_echo "no" >&6; } 19287 fi 19288 19289 19290 test -n "$XATTR" && break 19291 done 19292 19293 else 19294 # The variable is set, but is it from the command line or the environment? 19295 19296 # Try to remove the string !XATTR! from our list. 19297 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 19298 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19299 # If it failed, the variable was not from the command line. Ignore it, 19300 # but warn the user (except for BASH, which is always set by the calling BASH). 19301 if test "xXATTR" != xBASH; then 19302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 19303 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 19304 fi 19305 # Try to locate tool using the code snippet 19306 for ac_prog in xattr 19307 do 19308 # Extract the first word of "$ac_prog", so it can be a program name with args. 19309 set dummy $ac_prog; ac_word=$2 19310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19311 $as_echo_n "checking for $ac_word... " >&6; } 19312 if ${ac_cv_path_XATTR+:} false; then : 19313 $as_echo_n "(cached) " >&6 19314 else 19315 case $XATTR in 19316 [\\/]* | ?:[\\/]*) 19317 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19318 ;; 19319 *) 19320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19321 for as_dir in $PATH 19322 do 19323 IFS=$as_save_IFS 19324 test -z "$as_dir" && as_dir=. 19325 for ac_exec_ext in '' $ac_executable_extensions; do 19326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19327 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19329 break 2 19330 fi 19331 done 19332 done 19333 IFS=$as_save_IFS 19334 19335 ;; 19336 esac 19337 fi 19338 XATTR=$ac_cv_path_XATTR 19339 if test -n "$XATTR"; then 19340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19341 $as_echo "$XATTR" >&6; } 19342 else 19343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19344 $as_echo "no" >&6; } 19345 fi 19346 19347 19348 test -n "$XATTR" && break 19349 done 19350 19351 else 19352 # If it succeeded, then it was overridden by the user. We will use it 19353 # for the tool. 19354 19355 # First remove it from the list of overridden variables, so we can test 19356 # for unknown variables in the end. 19357 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19358 19359 # Check if the provided tool contains a complete path. 19360 tool_specified="$XATTR" 19361 tool_basename="${tool_specified##*/}" 19362 if test "x$tool_basename" = "x$tool_specified"; then 19363 # A command without a complete path is provided, search $PATH. 19364 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 19365 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 19366 # Extract the first word of "$tool_basename", so it can be a program name with args. 19367 set dummy $tool_basename; ac_word=$2 19368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19369 $as_echo_n "checking for $ac_word... " >&6; } 19370 if ${ac_cv_path_XATTR+:} false; then : 19371 $as_echo_n "(cached) " >&6 19372 else 19373 case $XATTR in 19374 [\\/]* | ?:[\\/]*) 19375 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19376 ;; 19377 *) 19378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19379 for as_dir in $PATH 19380 do 19381 IFS=$as_save_IFS 19382 test -z "$as_dir" && as_dir=. 19383 for ac_exec_ext in '' $ac_executable_extensions; do 19384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19385 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19387 break 2 19388 fi 19389 done 19390 done 19391 IFS=$as_save_IFS 19392 19393 ;; 19394 esac 19395 fi 19396 XATTR=$ac_cv_path_XATTR 19397 if test -n "$XATTR"; then 19398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19399 $as_echo "$XATTR" >&6; } 19400 else 19401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19402 $as_echo "no" >&6; } 19403 fi 19404 19405 19406 if test "x$XATTR" = x; then 19407 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19408 fi 19409 else 19410 # Otherwise we believe it is a complete path. Use it as it is. 19411 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 19412 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 19413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 19414 $as_echo_n "checking for XATTR... " >&6; } 19415 if test ! -x "$tool_specified"; then 19416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19417 $as_echo "not found" >&6; } 19418 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 19419 fi 19420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19421 $as_echo "$tool_specified" >&6; } 19422 fi 19423 fi 19424 fi 19425 19426 19427 19428 if test "x$XATTR" = x; then 19429 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 19430 fi 19431 19432 19433 19434 19435 # Publish this variable in the help. 19436 19437 19438 if test "x$CODESIGN" = x; then 19439 # The variable is not set by user, try to locate tool using the code snippet 19440 for ac_prog in codesign 19441 do 19442 # Extract the first word of "$ac_prog", so it can be a program name with args. 19443 set dummy $ac_prog; ac_word=$2 19444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19445 $as_echo_n "checking for $ac_word... " >&6; } 19446 if ${ac_cv_path_CODESIGN+:} false; then : 19447 $as_echo_n "(cached) " >&6 19448 else 19449 case $CODESIGN in 19450 [\\/]* | ?:[\\/]*) 19451 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19452 ;; 19453 *) 19454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19455 for as_dir in $PATH 19456 do 19457 IFS=$as_save_IFS 19458 test -z "$as_dir" && as_dir=. 19459 for ac_exec_ext in '' $ac_executable_extensions; do 19460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19461 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19463 break 2 19464 fi 19465 done 19466 done 19467 IFS=$as_save_IFS 19468 19469 ;; 19470 esac 19471 fi 19472 CODESIGN=$ac_cv_path_CODESIGN 19473 if test -n "$CODESIGN"; then 19474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19475 $as_echo "$CODESIGN" >&6; } 19476 else 19477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19478 $as_echo "no" >&6; } 19479 fi 19480 19481 19482 test -n "$CODESIGN" && break 19483 done 19484 19485 else 19486 # The variable is set, but is it from the command line or the environment? 19487 19488 # Try to remove the string !CODESIGN! from our list. 19489 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 19490 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19491 # If it failed, the variable was not from the command line. Ignore it, 19492 # but warn the user (except for BASH, which is always set by the calling BASH). 19493 if test "xCODESIGN" != xBASH; then 19494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 19495 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 19496 fi 19497 # Try to locate tool using the code snippet 19498 for ac_prog in codesign 19499 do 19500 # Extract the first word of "$ac_prog", so it can be a program name with args. 19501 set dummy $ac_prog; ac_word=$2 19502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19503 $as_echo_n "checking for $ac_word... " >&6; } 19504 if ${ac_cv_path_CODESIGN+:} false; then : 19505 $as_echo_n "(cached) " >&6 19506 else 19507 case $CODESIGN in 19508 [\\/]* | ?:[\\/]*) 19509 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19510 ;; 19511 *) 19512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19513 for as_dir in $PATH 19514 do 19515 IFS=$as_save_IFS 19516 test -z "$as_dir" && as_dir=. 19517 for ac_exec_ext in '' $ac_executable_extensions; do 19518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19519 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19521 break 2 19522 fi 19523 done 19524 done 19525 IFS=$as_save_IFS 19526 19527 ;; 19528 esac 19529 fi 19530 CODESIGN=$ac_cv_path_CODESIGN 19531 if test -n "$CODESIGN"; then 19532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19533 $as_echo "$CODESIGN" >&6; } 19534 else 19535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19536 $as_echo "no" >&6; } 19537 fi 19538 19539 19540 test -n "$CODESIGN" && break 19541 done 19542 19543 else 19544 # If it succeeded, then it was overridden by the user. We will use it 19545 # for the tool. 19546 19547 # First remove it from the list of overridden variables, so we can test 19548 # for unknown variables in the end. 19549 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19550 19551 # Check if the provided tool contains a complete path. 19552 tool_specified="$CODESIGN" 19553 tool_basename="${tool_specified##*/}" 19554 if test "x$tool_basename" = "x$tool_specified"; then 19555 # A command without a complete path is provided, search $PATH. 19556 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 19557 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 19558 # Extract the first word of "$tool_basename", so it can be a program name with args. 19559 set dummy $tool_basename; ac_word=$2 19560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19561 $as_echo_n "checking for $ac_word... " >&6; } 19562 if ${ac_cv_path_CODESIGN+:} false; then : 19563 $as_echo_n "(cached) " >&6 19564 else 19565 case $CODESIGN in 19566 [\\/]* | ?:[\\/]*) 19567 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19568 ;; 19569 *) 19570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19571 for as_dir in $PATH 19572 do 19573 IFS=$as_save_IFS 19574 test -z "$as_dir" && as_dir=. 19575 for ac_exec_ext in '' $ac_executable_extensions; do 19576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19577 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19579 break 2 19580 fi 19581 done 19582 done 19583 IFS=$as_save_IFS 19584 19585 ;; 19586 esac 19587 fi 19588 CODESIGN=$ac_cv_path_CODESIGN 19589 if test -n "$CODESIGN"; then 19590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19591 $as_echo "$CODESIGN" >&6; } 19592 else 19593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19594 $as_echo "no" >&6; } 19595 fi 19596 19597 19598 if test "x$CODESIGN" = x; then 19599 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19600 fi 19601 else 19602 # Otherwise we believe it is a complete path. Use it as it is. 19603 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 19604 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 19605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 19606 $as_echo_n "checking for CODESIGN... " >&6; } 19607 if test ! -x "$tool_specified"; then 19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19609 $as_echo "not found" >&6; } 19610 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 19611 fi 19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19613 $as_echo "$tool_specified" >&6; } 19614 fi 19615 fi 19616 fi 19617 19618 19619 if test "x$CODESIGN" != "x"; then 19620 # Verify that the openjdk_codesign certificate is present 19621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 19622 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 19623 rm -f codesign-testfile 19624 touch codesign-testfile 19625 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 19626 rm -f codesign-testfile 19627 if test "x$CODESIGN" = x; then 19628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19629 $as_echo "no" >&6; } 19630 else 19631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19632 $as_echo "yes" >&6; } 19633 fi 19634 fi 19635 fi 19636 19637 19638 # Check if pkg-config is available. 19639 19640 19641 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19642 if test -n "$ac_tool_prefix"; then 19643 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19644 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19646 $as_echo_n "checking for $ac_word... " >&6; } 19647 if ${ac_cv_path_PKG_CONFIG+:} false; then : 19648 $as_echo_n "(cached) " >&6 19649 else 19650 case $PKG_CONFIG in 19651 [\\/]* | ?:[\\/]*) 19652 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19653 ;; 19654 *) 19655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19656 for as_dir in $PATH 19657 do 19658 IFS=$as_save_IFS 19659 test -z "$as_dir" && as_dir=. 19660 for ac_exec_ext in '' $ac_executable_extensions; do 19661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19662 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19664 break 2 19665 fi 19666 done 19667 done 19668 IFS=$as_save_IFS 19669 19670 ;; 19671 esac 19672 fi 19673 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19674 if test -n "$PKG_CONFIG"; then 19675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19676 $as_echo "$PKG_CONFIG" >&6; } 19677 else 19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19679 $as_echo "no" >&6; } 19680 fi 19681 19682 19683 fi 19684 if test -z "$ac_cv_path_PKG_CONFIG"; then 19685 ac_pt_PKG_CONFIG=$PKG_CONFIG 19686 # Extract the first word of "pkg-config", so it can be a program name with args. 19687 set dummy pkg-config; ac_word=$2 19688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19689 $as_echo_n "checking for $ac_word... " >&6; } 19690 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19691 $as_echo_n "(cached) " >&6 19692 else 19693 case $ac_pt_PKG_CONFIG in 19694 [\\/]* | ?:[\\/]*) 19695 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19696 ;; 19697 *) 19698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19699 for as_dir in $PATH 19700 do 19701 IFS=$as_save_IFS 19702 test -z "$as_dir" && as_dir=. 19703 for ac_exec_ext in '' $ac_executable_extensions; do 19704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19705 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19707 break 2 19708 fi 19709 done 19710 done 19711 IFS=$as_save_IFS 19712 19713 ;; 19714 esac 19715 fi 19716 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19717 if test -n "$ac_pt_PKG_CONFIG"; then 19718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19719 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 19720 else 19721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19722 $as_echo "no" >&6; } 19723 fi 19724 19725 if test "x$ac_pt_PKG_CONFIG" = x; then 19726 PKG_CONFIG="" 19727 else 19728 case $cross_compiling:$ac_tool_warned in 19729 yes:) 19730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19732 ac_tool_warned=yes ;; 19733 esac 19734 PKG_CONFIG=$ac_pt_PKG_CONFIG 19735 fi 19736 else 19737 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19738 fi 19739 19740 fi 19741 if test -n "$PKG_CONFIG"; then 19742 _pkg_min_version=0.9.0 19743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19744 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19745 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19747 $as_echo "yes" >&6; } 19748 else 19749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19750 $as_echo "no" >&6; } 19751 PKG_CONFIG="" 19752 fi 19753 19754 fi 19755 19756 # After basic tools have been setup, we can check build os specific details. 19757 19758 ############################################################################### 19759 19760 # Note that this is the build platform OS version! 19761 19762 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 19763 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 19764 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 19765 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 19766 19767 19768 19769 19770 19771 # Setup builddeps, for automatic downloading of tools we need. 19772 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in 19773 # boot-jdk setup, but we need to have basic tools setup first. 19774 19775 19776 # Check whether --with-builddeps-conf was given. 19777 if test "${with_builddeps_conf+set}" = set; then : 19778 withval=$with_builddeps_conf; 19779 fi 19780 19781 19782 19783 # Check whether --with-builddeps-server was given. 19784 if test "${with_builddeps_server+set}" = set; then : 19785 withval=$with_builddeps_server; 19786 fi 19787 19788 19789 19790 # Check whether --with-builddeps-dir was given. 19791 if test "${with_builddeps_dir+set}" = set; then : 19792 withval=$with_builddeps_dir; 19793 else 19794 with_builddeps_dir=/localhome/builddeps 19795 fi 19796 19797 19798 19799 # Check whether --with-builddeps-group was given. 19800 if test "${with_builddeps_group+set}" = set; then : 19801 withval=$with_builddeps_group; 19802 fi 19803 19804 19805 19806 19807 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19808 if test "x$with_builddeps_conf" != x; then 19809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5 19810 $as_echo_n "checking for supplied builddeps configuration file... " >&6; } 19811 builddepsfile=$with_builddeps_conf 19812 if test -s $builddepsfile; then 19813 . $builddepsfile 19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5 19815 $as_echo "loaded!" >&6; } 19816 else 19817 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5 19818 fi 19819 else 19820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5 19821 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; } 19822 builddepsfile=`mktemp` 19823 touch $builddepsfile 19824 # Put all found confs into a single file. 19825 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile 19826 # Source the file to acquire the variables 19827 if test -s $builddepsfile; then 19828 . $builddepsfile 19829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5 19830 $as_echo "found at least one!" >&6; } 19831 else 19832 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5 19833 fi 19834 fi 19835 # Create build and target names that use _ instead of "-" and ".". 19836 # This is necessary to use them in variable names. 19837 build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19838 target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19839 # Extract rewrite information for build and target 19840 eval rewritten_build=\${REWRITE_${build_var}} 19841 if test "x$rewritten_build" = x; then 19842 rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME} 19843 echo Build stays the same $rewritten_build 19844 else 19845 echo Rewriting build for builddeps into $rewritten_build 19846 fi 19847 eval rewritten_target=\${REWRITE_${target_var}} 19848 if test "x$rewritten_target" = x; then 19849 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME} 19850 echo Target stays the same $rewritten_target 19851 else 19852 echo Rewriting target for builddeps into $rewritten_target 19853 fi 19854 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'` 19855 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'` 19856 fi 19857 for ac_prog in 7z unzip 19858 do 19859 # Extract the first word of "$ac_prog", so it can be a program name with args. 19860 set dummy $ac_prog; ac_word=$2 19861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19862 $as_echo_n "checking for $ac_word... " >&6; } 19863 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then : 19864 $as_echo_n "(cached) " >&6 19865 else 19866 if test -n "$BDEPS_UNZIP"; then 19867 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 19868 else 19869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19870 for as_dir in $PATH 19871 do 19872 IFS=$as_save_IFS 19873 test -z "$as_dir" && as_dir=. 19874 for ac_exec_ext in '' $ac_executable_extensions; do 19875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19876 ac_cv_prog_BDEPS_UNZIP="$ac_prog" 19877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19878 break 2 19879 fi 19880 done 19881 done 19882 IFS=$as_save_IFS 19883 19884 fi 19885 fi 19886 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 19887 if test -n "$BDEPS_UNZIP"; then 19888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 19889 $as_echo "$BDEPS_UNZIP" >&6; } 19890 else 19891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19892 $as_echo "no" >&6; } 19893 fi 19894 19895 19896 test -n "$BDEPS_UNZIP" && break 19897 done 19898 19899 if test "x$BDEPS_UNZIP" = x7z; then 19900 BDEPS_UNZIP="7z x" 19901 fi 19902 19903 for ac_prog in wget lftp ftp 19904 do 19905 # Extract the first word of "$ac_prog", so it can be a program name with args. 19906 set dummy $ac_prog; ac_word=$2 19907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19908 $as_echo_n "checking for $ac_word... " >&6; } 19909 if ${ac_cv_prog_BDEPS_FTP+:} false; then : 19910 $as_echo_n "(cached) " >&6 19911 else 19912 if test -n "$BDEPS_FTP"; then 19913 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 19914 else 19915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19916 for as_dir in $PATH 19917 do 19918 IFS=$as_save_IFS 19919 test -z "$as_dir" && as_dir=. 19920 for ac_exec_ext in '' $ac_executable_extensions; do 19921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19922 ac_cv_prog_BDEPS_FTP="$ac_prog" 19923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19924 break 2 19925 fi 19926 done 19927 done 19928 IFS=$as_save_IFS 19929 19930 fi 19931 fi 19932 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 19933 if test -n "$BDEPS_FTP"; then 19934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 19935 $as_echo "$BDEPS_FTP" >&6; } 19936 else 19937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19938 $as_echo "no" >&6; } 19939 fi 19940 19941 19942 test -n "$BDEPS_FTP" && break 19943 done 19944 19945 19946 19947 ############################################################################### 19948 # 19949 # Determine OpenJDK variants, options and version numbers. 19950 # 19951 ############################################################################### 19952 19953 # We need build & target for this. 19954 19955 19956 ############################################################################### 19957 # 19958 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 19959 # We always build headless support. 19960 # 19961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 19962 $as_echo_n "checking headful support... " >&6; } 19963 # Check whether --enable-headful was given. 19964 if test "${enable_headful+set}" = set; then : 19965 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 19966 else 19967 SUPPORT_HEADFUL=yes 19968 fi 19969 19970 19971 SUPPORT_HEADLESS=yes 19972 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19973 19974 if test "x$SUPPORT_HEADFUL" = xyes; then 19975 # We are building both headful and headless. 19976 headful_msg="include support for both headful and headless" 19977 fi 19978 19979 if test "x$SUPPORT_HEADFUL" = xno; then 19980 # Thus we are building headless only. 19981 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19982 headful_msg="headless only" 19983 fi 19984 19985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 19986 $as_echo "$headful_msg" >&6; } 19987 19988 19989 19990 19991 19992 # Control wether Hotspot runs Queens test after build. 19993 # Check whether --enable-hotspot-test-in-build was given. 19994 if test "${enable_hotspot_test_in_build+set}" = set; then : 19995 enableval=$enable_hotspot_test_in_build; 19996 else 19997 enable_hotspot_test_in_build=no 19998 fi 19999 20000 if test "x$enable_hotspot_test_in_build" = "xyes"; then 20001 TEST_IN_BUILD=true 20002 else 20003 TEST_IN_BUILD=false 20004 fi 20005 20006 20007 ############################################################################### 20008 # 20009 # Choose cacerts source file 20010 # 20011 20012 # Check whether --with-cacerts-file was given. 20013 if test "${with_cacerts_file+set}" = set; then : 20014 withval=$with_cacerts_file; 20015 fi 20016 20017 if test "x$with_cacerts_file" != x; then 20018 CACERTS_FILE=$with_cacerts_file 20019 fi 20020 20021 20022 ############################################################################### 20023 # 20024 # Enable or disable unlimited crypto 20025 # 20026 # Check whether --enable-unlimited-crypto was given. 20027 if test "${enable_unlimited_crypto+set}" = set; then : 20028 enableval=$enable_unlimited_crypto; 20029 else 20030 enable_unlimited_crypto=no 20031 fi 20032 20033 if test "x$enable_unlimited_crypto" = "xyes"; then 20034 UNLIMITED_CRYPTO=true 20035 else 20036 UNLIMITED_CRYPTO=false 20037 fi 20038 20039 20040 ############################################################################### 20041 # 20042 # Enable or disable the elliptic curve crypto implementation 20043 # 20044 20045 20046 ############################################################################### 20047 # 20048 # --enable-rmiconnector-iiop 20049 # 20050 # Check whether --enable-rmiconnector-iiop was given. 20051 if test "${enable_rmiconnector_iiop+set}" = set; then : 20052 enableval=$enable_rmiconnector_iiop; 20053 fi 20054 20055 if test "x$enable_rmiconnector_iiop" = "xyes"; then 20056 RMICONNECTOR_IIOP=true 20057 else 20058 RMICONNECTOR_IIOP=false 20059 fi 20060 20061 20062 ############################################################################### 20063 # 20064 # Compress jars 20065 # 20066 COMPRESS_JARS=false 20067 20068 20069 20070 20071 # Source the version numbers 20072 . $AUTOCONF_DIR/version-numbers 20073 20074 # Get the settings from parameters 20075 20076 # Check whether --with-milestone was given. 20077 if test "${with_milestone+set}" = set; then : 20078 withval=$with_milestone; 20079 fi 20080 20081 if test "x$with_milestone" = xyes; then 20082 as_fn_error $? "Milestone must have a value" "$LINENO" 5 20083 elif test "x$with_milestone" != x; then 20084 MILESTONE="$with_milestone" 20085 fi 20086 if test "x$MILESTONE" = x; then 20087 MILESTONE=internal 20088 fi 20089 20090 20091 # Check whether --with-update-version was given. 20092 if test "${with_update_version+set}" = set; then : 20093 withval=$with_update_version; 20094 fi 20095 20096 if test "x$with_update_version" = xyes; then 20097 as_fn_error $? "Update version must have a value" "$LINENO" 5 20098 elif test "x$with_update_version" != x; then 20099 JDK_UPDATE_VERSION="$with_update_version" 20100 # On macosx 10.7, it's not possible to set --with-update-version=0X due 20101 # to a bug in expr (which reduces it to just X). To work around this, we 20102 # always add a 0 to one digit update versions. 20103 if test "${#JDK_UPDATE_VERSION}" = "1"; then 20104 JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}" 20105 fi 20106 fi 20107 20108 20109 # Check whether --with-user-release-suffix was given. 20110 if test "${with_user_release_suffix+set}" = set; then : 20111 withval=$with_user_release_suffix; 20112 fi 20113 20114 if test "x$with_user_release_suffix" = xyes; then 20115 as_fn_error $? "Release suffix must have a value" "$LINENO" 5 20116 elif test "x$with_user_release_suffix" != x; then 20117 USER_RELEASE_SUFFIX="$with_user_release_suffix" 20118 fi 20119 20120 20121 # Check whether --with-build-number was given. 20122 if test "${with_build_number+set}" = set; then : 20123 withval=$with_build_number; 20124 fi 20125 20126 if test "x$with_build_number" = xyes; then 20127 as_fn_error $? "Build number must have a value" "$LINENO" 5 20128 elif test "x$with_build_number" != x; then 20129 JDK_BUILD_NUMBER="$with_build_number" 20130 fi 20131 # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set 20132 if test "x$JDK_BUILD_NUMBER" = x; then 20133 JDK_BUILD_NUMBER=b00 20134 if test "x$USER_RELEASE_SUFFIX" = x; then 20135 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'` 20136 # Avoid [:alnum:] since it depends on the locale. 20137 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'` 20138 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20139 fi 20140 fi 20141 20142 # Now set the JDK version, milestone, build number etc. 20143 20144 20145 20146 20147 20148 20149 20150 20151 20152 20153 20154 20155 20156 20157 20158 COPYRIGHT_YEAR=`date +'%Y'` 20159 20160 20161 if test "x$JDK_UPDATE_VERSION" != x; then 20162 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 20163 else 20164 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 20165 fi 20166 20167 20168 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 20169 20170 20171 20172 ############################################################################### 20173 # 20174 # Setup BootJDK, used to bootstrap the build. 20175 # 20176 ############################################################################### 20177 20178 20179 BOOT_JDK_FOUND=no 20180 20181 # Check whether --with-boot-jdk was given. 20182 if test "${with_boot_jdk+set}" = set; then : 20183 withval=$with_boot_jdk; 20184 fi 20185 20186 20187 # We look for the Boot JDK through various means, going from more certain to 20188 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 20189 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 20190 # must check if this is indeed valid; otherwise we'll continue looking. 20191 20192 # Test: Is bootjdk explicitely set by command line arguments? 20193 20194 if test "x$BOOT_JDK_FOUND" = xno; then 20195 # Now execute the test 20196 20197 if test "x$with_boot_jdk" != x; then 20198 BOOT_JDK=$with_boot_jdk 20199 BOOT_JDK_FOUND=maybe 20200 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 20201 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 20202 fi 20203 20204 20205 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20206 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20207 # Do we have a bin/java? 20208 if test ! -x "$BOOT_JDK/bin/java"; then 20209 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20210 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20211 BOOT_JDK_FOUND=no 20212 else 20213 # Do we have a bin/javac? 20214 if test ! -x "$BOOT_JDK/bin/javac"; then 20215 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20216 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20217 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20218 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20219 BOOT_JDK_FOUND=no 20220 else 20221 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20222 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20223 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20224 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20225 BOOT_JDK_FOUND=no 20226 else 20227 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20228 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20229 20230 # Extra M4 quote needed to protect [] in grep expression. 20231 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20232 if test "x$FOUND_CORRECT_VERSION" = x; then 20233 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20234 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20235 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20236 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20237 BOOT_JDK_FOUND=no 20238 else 20239 # We're done! :-) 20240 BOOT_JDK_FOUND=yes 20241 20242 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20243 20244 # Input might be given as Windows format, start by converting to 20245 # unix format. 20246 path="$BOOT_JDK" 20247 new_path=`$CYGPATH -u "$path"` 20248 20249 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20250 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20251 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20252 # "foo.exe" is OK but "foo" is an error. 20253 # 20254 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20255 # It is also a way to make sure we got the proper file name for the real test later on. 20256 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20257 if test "x$test_shortpath" = x; then 20258 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20259 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20260 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20261 fi 20262 20263 # Call helper function which possibly converts this using DOS-style short mode. 20264 # If so, the updated path is stored in $new_path. 20265 20266 input_path="$new_path" 20267 # Check if we need to convert this using DOS-style short mode. If the path 20268 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20269 # take no chances and rewrite it. 20270 # Note: m4 eats our [], so we need to use [ and ] instead. 20271 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20272 if test "x$has_forbidden_chars" != x; then 20273 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20274 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20275 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20276 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20277 # Going to short mode and back again did indeed matter. Since short mode is 20278 # case insensitive, let's make it lowercase to improve readability. 20279 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20280 # Now convert it back to Unix-stile (cygpath) 20281 input_path=`$CYGPATH -u "$shortmode_path"` 20282 new_path="$input_path" 20283 fi 20284 fi 20285 20286 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20287 if test "x$test_cygdrive_prefix" = x; then 20288 # As a simple fix, exclude /usr/bin since it's not a real path. 20289 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20290 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20291 # a path prefixed by /cygdrive for fixpath to work. 20292 new_path="$CYGWIN_ROOT_PATH$input_path" 20293 fi 20294 fi 20295 20296 20297 if test "x$path" != "x$new_path"; then 20298 BOOT_JDK="$new_path" 20299 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20300 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20301 fi 20302 20303 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20304 20305 path="$BOOT_JDK" 20306 has_colon=`$ECHO $path | $GREP ^.:` 20307 new_path="$path" 20308 if test "x$has_colon" = x; then 20309 # Not in mixed or Windows style, start by that. 20310 new_path=`cmd //c echo $path` 20311 fi 20312 20313 20314 input_path="$new_path" 20315 # Check if we need to convert this using DOS-style short mode. If the path 20316 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20317 # take no chances and rewrite it. 20318 # Note: m4 eats our [], so we need to use [ and ] instead. 20319 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20320 if test "x$has_forbidden_chars" != x; then 20321 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20322 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20323 fi 20324 20325 20326 windows_path="$new_path" 20327 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20328 unix_path=`$CYGPATH -u "$windows_path"` 20329 new_path="$unix_path" 20330 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20331 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20332 new_path="$unix_path" 20333 fi 20334 20335 if test "x$path" != "x$new_path"; then 20336 BOOT_JDK="$new_path" 20337 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20338 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20339 fi 20340 20341 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20342 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20343 20344 else 20345 # We're on a posix platform. Hooray! :) 20346 path="$BOOT_JDK" 20347 has_space=`$ECHO "$path" | $GREP " "` 20348 if test "x$has_space" != x; then 20349 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20350 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20351 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20352 fi 20353 20354 # Use eval to expand a potential ~ 20355 eval path="$path" 20356 if test ! -f "$path" && test ! -d "$path"; then 20357 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20358 fi 20359 20360 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20361 fi 20362 20363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20364 $as_echo_n "checking for Boot JDK... " >&6; } 20365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20366 $as_echo "$BOOT_JDK" >&6; } 20367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20368 $as_echo_n "checking Boot JDK version... " >&6; } 20369 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20371 $as_echo "$BOOT_JDK_VERSION" >&6; } 20372 fi # end check jdk version 20373 fi # end check rt.jar 20374 fi # end check javac 20375 fi # end check java 20376 fi # end check boot jdk found 20377 fi 20378 20379 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 20380 # Having specified an argument which is incorrect will produce an instant failure; 20381 # we should not go on looking 20382 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 20383 fi 20384 20385 # Test: Is bootjdk available from builddeps? 20386 20387 if test "x$BOOT_JDK_FOUND" = xno; then 20388 # Now execute the test 20389 20390 20391 20392 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 20393 # Source the builddeps file again, to make sure it uses the latest variables! 20394 . $builddepsfile 20395 # Look for a target and build machine specific resource! 20396 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 20397 if test "x$resource" = x; then 20398 # Ok, lets instead look for a target specific resource 20399 eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}} 20400 fi 20401 if test "x$resource" = x; then 20402 # Ok, lets instead look for a build specific resource 20403 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}} 20404 fi 20405 if test "x$resource" = x; then 20406 # Ok, lets instead look for a generic resource 20407 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.) 20408 resource=${builddep_bootjdk} 20409 fi 20410 if test "x$resource" != x; then 20411 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5 20412 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;} 20413 # If the resource in the builddeps.conf file is an existing directory, 20414 # for example /java/linux/cups 20415 if test -d ${resource}; then 20416 depdir=${resource} 20417 else 20418 20419 # bootjdk is for example mymodule 20420 # $resource is for example libs/general/libmymod_1_2_3.zip 20421 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 20422 # $with_builddeps_dir is for example /localhome/builddeps 20423 # depdir is the name of the variable into which we store the depdir, eg MYMOD 20424 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 20425 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 20426 filename=`basename $resource` 20427 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 20428 filebase=${filename%%.*} 20429 extension=${filename#*.} 20430 installdir=$with_builddeps_dir/$filebase 20431 if test ! -f $installdir/$filename.unpacked; then 20432 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5 20433 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;} 20434 if test ! -d $installdir; then 20435 mkdir -p $installdir 20436 fi 20437 if test ! -d $installdir; then 20438 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 20439 fi 20440 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX` 20441 touch $tmpfile 20442 if test ! -f $tmpfile; then 20443 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 20444 fi 20445 20446 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 20447 # $tmpfile is the local file name for the downloaded file. 20448 VALID_TOOL=no 20449 if test "x$BDEPS_FTP" = xwget; then 20450 VALID_TOOL=yes 20451 wget -O $tmpfile $with_builddeps_server/$resource 20452 fi 20453 if test "x$BDEPS_FTP" = xlftp; then 20454 VALID_TOOL=yes 20455 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 20456 fi 20457 if test "x$BDEPS_FTP" = xftp; then 20458 VALID_TOOL=yes 20459 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 20460 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 20461 FTPUSERPWD=${FTPSERVER%%@*} 20462 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 20463 FTPUSER=${userpwd%%:*} 20464 FTPPWD=${userpwd#*@} 20465 FTPSERVER=${FTPSERVER#*@} 20466 else 20467 FTPUSER=ftp 20468 FTPPWD=ftp 20469 fi 20470 # the "pass" command does not work on some 20471 # ftp clients (read ftp.exe) but if it works, 20472 # passive mode is better! 20473 ( \ 20474 echo "user $FTPUSER $FTPPWD" ; \ 20475 echo "pass" ; \ 20476 echo "bin" ; \ 20477 echo "get $FTPPATH $tmpfile" ; \ 20478 ) | ftp -in $FTPSERVER 20479 fi 20480 if test "x$VALID_TOOL" != xyes; then 20481 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 20482 fi 20483 20484 mv $tmpfile $installdir/$filename 20485 if test ! -s $installdir/$filename; then 20486 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 20487 fi 20488 case "$extension" in 20489 zip) echo "Unzipping $installdir/$filename..." 20490 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 20491 ;; 20492 tar.gz) echo "Untaring $installdir/$filename..." 20493 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20494 ;; 20495 tgz) echo "Untaring $installdir/$filename..." 20496 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20497 ;; 20498 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 20499 ;; 20500 esac 20501 fi 20502 if test -f $installdir/$filename.unpacked; then 20503 depdir=$installdir 20504 fi 20505 20506 fi 20507 # Source the builddeps file again, because in the previous command, the depdir 20508 # was updated to point at the current build dependency install directory. 20509 . $builddepsfile 20510 # Now extract variables from the builddeps.conf files. 20511 theroot=${builddep_bootjdk_ROOT} 20512 thecflags=${builddep_bootjdk_CFLAGS} 20513 thelibs=${builddep_bootjdk_LIBS} 20514 if test "x$depdir" = x; then 20515 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5 20516 fi 20517 BOOT_JDK=$depdir 20518 if test "x$theroot" != x; then 20519 BOOT_JDK="$theroot" 20520 fi 20521 if test "x$thecflags" != x; then 20522 BOOT_JDK_CFLAGS="$thecflags" 20523 fi 20524 if test "x$thelibs" != x; then 20525 BOOT_JDK_LIBS="$thelibs" 20526 fi 20527 BOOT_JDK_FOUND=maybe 20528 else BOOT_JDK_FOUND=no 20529 20530 fi 20531 else BOOT_JDK_FOUND=no 20532 20533 fi 20534 20535 20536 20537 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20538 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20539 # Do we have a bin/java? 20540 if test ! -x "$BOOT_JDK/bin/java"; then 20541 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20542 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20543 BOOT_JDK_FOUND=no 20544 else 20545 # Do we have a bin/javac? 20546 if test ! -x "$BOOT_JDK/bin/javac"; then 20547 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20548 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20549 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20550 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20551 BOOT_JDK_FOUND=no 20552 else 20553 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20554 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20555 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20556 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20557 BOOT_JDK_FOUND=no 20558 else 20559 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20560 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20561 20562 # Extra M4 quote needed to protect [] in grep expression. 20563 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20564 if test "x$FOUND_CORRECT_VERSION" = x; then 20565 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20566 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20567 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20568 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20569 BOOT_JDK_FOUND=no 20570 else 20571 # We're done! :-) 20572 BOOT_JDK_FOUND=yes 20573 20574 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20575 20576 # Input might be given as Windows format, start by converting to 20577 # unix format. 20578 path="$BOOT_JDK" 20579 new_path=`$CYGPATH -u "$path"` 20580 20581 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20582 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20583 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20584 # "foo.exe" is OK but "foo" is an error. 20585 # 20586 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20587 # It is also a way to make sure we got the proper file name for the real test later on. 20588 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20589 if test "x$test_shortpath" = x; then 20590 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20591 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20592 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20593 fi 20594 20595 # Call helper function which possibly converts this using DOS-style short mode. 20596 # If so, the updated path is stored in $new_path. 20597 20598 input_path="$new_path" 20599 # Check if we need to convert this using DOS-style short mode. If the path 20600 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20601 # take no chances and rewrite it. 20602 # Note: m4 eats our [], so we need to use [ and ] instead. 20603 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20604 if test "x$has_forbidden_chars" != x; then 20605 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20606 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20607 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20608 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20609 # Going to short mode and back again did indeed matter. Since short mode is 20610 # case insensitive, let's make it lowercase to improve readability. 20611 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20612 # Now convert it back to Unix-stile (cygpath) 20613 input_path=`$CYGPATH -u "$shortmode_path"` 20614 new_path="$input_path" 20615 fi 20616 fi 20617 20618 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20619 if test "x$test_cygdrive_prefix" = x; then 20620 # As a simple fix, exclude /usr/bin since it's not a real path. 20621 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20622 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20623 # a path prefixed by /cygdrive for fixpath to work. 20624 new_path="$CYGWIN_ROOT_PATH$input_path" 20625 fi 20626 fi 20627 20628 20629 if test "x$path" != "x$new_path"; then 20630 BOOT_JDK="$new_path" 20631 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20632 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20633 fi 20634 20635 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20636 20637 path="$BOOT_JDK" 20638 has_colon=`$ECHO $path | $GREP ^.:` 20639 new_path="$path" 20640 if test "x$has_colon" = x; then 20641 # Not in mixed or Windows style, start by that. 20642 new_path=`cmd //c echo $path` 20643 fi 20644 20645 20646 input_path="$new_path" 20647 # Check if we need to convert this using DOS-style short mode. If the path 20648 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20649 # take no chances and rewrite it. 20650 # Note: m4 eats our [], so we need to use [ and ] instead. 20651 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20652 if test "x$has_forbidden_chars" != x; then 20653 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20654 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20655 fi 20656 20657 20658 windows_path="$new_path" 20659 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20660 unix_path=`$CYGPATH -u "$windows_path"` 20661 new_path="$unix_path" 20662 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20663 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20664 new_path="$unix_path" 20665 fi 20666 20667 if test "x$path" != "x$new_path"; then 20668 BOOT_JDK="$new_path" 20669 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20670 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20671 fi 20672 20673 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20674 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20675 20676 else 20677 # We're on a posix platform. Hooray! :) 20678 path="$BOOT_JDK" 20679 has_space=`$ECHO "$path" | $GREP " "` 20680 if test "x$has_space" != x; then 20681 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20682 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20683 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20684 fi 20685 20686 # Use eval to expand a potential ~ 20687 eval path="$path" 20688 if test ! -f "$path" && test ! -d "$path"; then 20689 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20690 fi 20691 20692 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20693 fi 20694 20695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20696 $as_echo_n "checking for Boot JDK... " >&6; } 20697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20698 $as_echo "$BOOT_JDK" >&6; } 20699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20700 $as_echo_n "checking Boot JDK version... " >&6; } 20701 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20703 $as_echo "$BOOT_JDK_VERSION" >&6; } 20704 fi # end check jdk version 20705 fi # end check rt.jar 20706 fi # end check javac 20707 fi # end check java 20708 fi # end check boot jdk found 20709 fi 20710 20711 20712 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 20713 20714 if test "x$BOOT_JDK_FOUND" = xno; then 20715 # Now execute the test 20716 20717 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 20718 # First check at user selected default 20719 20720 if test "x$BOOT_JDK_FOUND" = xno; then 20721 # Now execute the test 20722 20723 if test -x /usr/libexec/java_home; then 20724 BOOT_JDK=`/usr/libexec/java_home ` 20725 BOOT_JDK_FOUND=maybe 20726 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 20727 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 20728 fi 20729 20730 20731 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20732 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20733 # Do we have a bin/java? 20734 if test ! -x "$BOOT_JDK/bin/java"; then 20735 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20736 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20737 BOOT_JDK_FOUND=no 20738 else 20739 # Do we have a bin/javac? 20740 if test ! -x "$BOOT_JDK/bin/javac"; then 20741 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20742 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20743 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20744 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20745 BOOT_JDK_FOUND=no 20746 else 20747 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20748 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20749 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20750 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20751 BOOT_JDK_FOUND=no 20752 else 20753 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20754 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20755 20756 # Extra M4 quote needed to protect [] in grep expression. 20757 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20758 if test "x$FOUND_CORRECT_VERSION" = x; then 20759 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20760 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20761 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20762 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20763 BOOT_JDK_FOUND=no 20764 else 20765 # We're done! :-) 20766 BOOT_JDK_FOUND=yes 20767 20768 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20769 20770 # Input might be given as Windows format, start by converting to 20771 # unix format. 20772 path="$BOOT_JDK" 20773 new_path=`$CYGPATH -u "$path"` 20774 20775 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20776 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20777 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20778 # "foo.exe" is OK but "foo" is an error. 20779 # 20780 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20781 # It is also a way to make sure we got the proper file name for the real test later on. 20782 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20783 if test "x$test_shortpath" = x; then 20784 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20785 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20786 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20787 fi 20788 20789 # Call helper function which possibly converts this using DOS-style short mode. 20790 # If so, the updated path is stored in $new_path. 20791 20792 input_path="$new_path" 20793 # Check if we need to convert this using DOS-style short mode. If the path 20794 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20795 # take no chances and rewrite it. 20796 # Note: m4 eats our [], so we need to use [ and ] instead. 20797 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20798 if test "x$has_forbidden_chars" != x; then 20799 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20800 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20801 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20802 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20803 # Going to short mode and back again did indeed matter. Since short mode is 20804 # case insensitive, let's make it lowercase to improve readability. 20805 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20806 # Now convert it back to Unix-stile (cygpath) 20807 input_path=`$CYGPATH -u "$shortmode_path"` 20808 new_path="$input_path" 20809 fi 20810 fi 20811 20812 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20813 if test "x$test_cygdrive_prefix" = x; then 20814 # As a simple fix, exclude /usr/bin since it's not a real path. 20815 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20816 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20817 # a path prefixed by /cygdrive for fixpath to work. 20818 new_path="$CYGWIN_ROOT_PATH$input_path" 20819 fi 20820 fi 20821 20822 20823 if test "x$path" != "x$new_path"; then 20824 BOOT_JDK="$new_path" 20825 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20826 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20827 fi 20828 20829 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20830 20831 path="$BOOT_JDK" 20832 has_colon=`$ECHO $path | $GREP ^.:` 20833 new_path="$path" 20834 if test "x$has_colon" = x; then 20835 # Not in mixed or Windows style, start by that. 20836 new_path=`cmd //c echo $path` 20837 fi 20838 20839 20840 input_path="$new_path" 20841 # Check if we need to convert this using DOS-style short mode. If the path 20842 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20843 # take no chances and rewrite it. 20844 # Note: m4 eats our [], so we need to use [ and ] instead. 20845 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20846 if test "x$has_forbidden_chars" != x; then 20847 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20848 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20849 fi 20850 20851 20852 windows_path="$new_path" 20853 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20854 unix_path=`$CYGPATH -u "$windows_path"` 20855 new_path="$unix_path" 20856 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20857 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20858 new_path="$unix_path" 20859 fi 20860 20861 if test "x$path" != "x$new_path"; then 20862 BOOT_JDK="$new_path" 20863 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20864 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20865 fi 20866 20867 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20868 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20869 20870 else 20871 # We're on a posix platform. Hooray! :) 20872 path="$BOOT_JDK" 20873 has_space=`$ECHO "$path" | $GREP " "` 20874 if test "x$has_space" != x; then 20875 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20876 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20877 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20878 fi 20879 20880 # Use eval to expand a potential ~ 20881 eval path="$path" 20882 if test ! -f "$path" && test ! -d "$path"; then 20883 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20884 fi 20885 20886 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20887 fi 20888 20889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20890 $as_echo_n "checking for Boot JDK... " >&6; } 20891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20892 $as_echo "$BOOT_JDK" >&6; } 20893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20894 $as_echo_n "checking Boot JDK version... " >&6; } 20895 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20897 $as_echo "$BOOT_JDK_VERSION" >&6; } 20898 fi # end check jdk version 20899 fi # end check rt.jar 20900 fi # end check javac 20901 fi # end check java 20902 fi # end check boot jdk found 20903 fi 20904 20905 # If that did not work out (e.g. too old), try explicit versions instead 20906 20907 if test "x$BOOT_JDK_FOUND" = xno; then 20908 # Now execute the test 20909 20910 if test -x /usr/libexec/java_home; then 20911 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 20912 BOOT_JDK_FOUND=maybe 20913 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 20914 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 20915 fi 20916 20917 20918 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20919 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20920 # Do we have a bin/java? 20921 if test ! -x "$BOOT_JDK/bin/java"; then 20922 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20923 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20924 BOOT_JDK_FOUND=no 20925 else 20926 # Do we have a bin/javac? 20927 if test ! -x "$BOOT_JDK/bin/javac"; then 20928 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20929 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20930 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20931 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20932 BOOT_JDK_FOUND=no 20933 else 20934 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20935 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20936 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20937 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20938 BOOT_JDK_FOUND=no 20939 else 20940 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20941 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20942 20943 # Extra M4 quote needed to protect [] in grep expression. 20944 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20945 if test "x$FOUND_CORRECT_VERSION" = x; then 20946 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20947 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20948 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20949 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20950 BOOT_JDK_FOUND=no 20951 else 20952 # We're done! :-) 20953 BOOT_JDK_FOUND=yes 20954 20955 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20956 20957 # Input might be given as Windows format, start by converting to 20958 # unix format. 20959 path="$BOOT_JDK" 20960 new_path=`$CYGPATH -u "$path"` 20961 20962 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20963 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20964 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20965 # "foo.exe" is OK but "foo" is an error. 20966 # 20967 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20968 # It is also a way to make sure we got the proper file name for the real test later on. 20969 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20970 if test "x$test_shortpath" = x; then 20971 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20972 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20973 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20974 fi 20975 20976 # Call helper function which possibly converts this using DOS-style short mode. 20977 # If so, the updated path is stored in $new_path. 20978 20979 input_path="$new_path" 20980 # Check if we need to convert this using DOS-style short mode. If the path 20981 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20982 # take no chances and rewrite it. 20983 # Note: m4 eats our [], so we need to use [ and ] instead. 20984 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20985 if test "x$has_forbidden_chars" != x; then 20986 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20987 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20988 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20989 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20990 # Going to short mode and back again did indeed matter. Since short mode is 20991 # case insensitive, let's make it lowercase to improve readability. 20992 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20993 # Now convert it back to Unix-stile (cygpath) 20994 input_path=`$CYGPATH -u "$shortmode_path"` 20995 new_path="$input_path" 20996 fi 20997 fi 20998 20999 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21000 if test "x$test_cygdrive_prefix" = x; then 21001 # As a simple fix, exclude /usr/bin since it's not a real path. 21002 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21003 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21004 # a path prefixed by /cygdrive for fixpath to work. 21005 new_path="$CYGWIN_ROOT_PATH$input_path" 21006 fi 21007 fi 21008 21009 21010 if test "x$path" != "x$new_path"; then 21011 BOOT_JDK="$new_path" 21012 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21013 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21014 fi 21015 21016 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21017 21018 path="$BOOT_JDK" 21019 has_colon=`$ECHO $path | $GREP ^.:` 21020 new_path="$path" 21021 if test "x$has_colon" = x; then 21022 # Not in mixed or Windows style, start by that. 21023 new_path=`cmd //c echo $path` 21024 fi 21025 21026 21027 input_path="$new_path" 21028 # Check if we need to convert this using DOS-style short mode. If the path 21029 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21030 # take no chances and rewrite it. 21031 # Note: m4 eats our [], so we need to use [ and ] instead. 21032 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21033 if test "x$has_forbidden_chars" != x; then 21034 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21035 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21036 fi 21037 21038 21039 windows_path="$new_path" 21040 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21041 unix_path=`$CYGPATH -u "$windows_path"` 21042 new_path="$unix_path" 21043 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21044 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21045 new_path="$unix_path" 21046 fi 21047 21048 if test "x$path" != "x$new_path"; then 21049 BOOT_JDK="$new_path" 21050 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21051 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21052 fi 21053 21054 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21055 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21056 21057 else 21058 # We're on a posix platform. Hooray! :) 21059 path="$BOOT_JDK" 21060 has_space=`$ECHO "$path" | $GREP " "` 21061 if test "x$has_space" != x; then 21062 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21063 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21064 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21065 fi 21066 21067 # Use eval to expand a potential ~ 21068 eval path="$path" 21069 if test ! -f "$path" && test ! -d "$path"; then 21070 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21071 fi 21072 21073 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21074 fi 21075 21076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21077 $as_echo_n "checking for Boot JDK... " >&6; } 21078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21079 $as_echo "$BOOT_JDK" >&6; } 21080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21081 $as_echo_n "checking Boot JDK version... " >&6; } 21082 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21084 $as_echo "$BOOT_JDK_VERSION" >&6; } 21085 fi # end check jdk version 21086 fi # end check rt.jar 21087 fi # end check javac 21088 fi # end check java 21089 fi # end check boot jdk found 21090 fi 21091 21092 21093 if test "x$BOOT_JDK_FOUND" = xno; then 21094 # Now execute the test 21095 21096 if test -x /usr/libexec/java_home; then 21097 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 21098 BOOT_JDK_FOUND=maybe 21099 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 21100 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 21101 fi 21102 21103 21104 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21105 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21106 # Do we have a bin/java? 21107 if test ! -x "$BOOT_JDK/bin/java"; then 21108 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21109 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21110 BOOT_JDK_FOUND=no 21111 else 21112 # Do we have a bin/javac? 21113 if test ! -x "$BOOT_JDK/bin/javac"; then 21114 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21115 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21116 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21117 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21118 BOOT_JDK_FOUND=no 21119 else 21120 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21121 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21122 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21123 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21124 BOOT_JDK_FOUND=no 21125 else 21126 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21127 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21128 21129 # Extra M4 quote needed to protect [] in grep expression. 21130 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21131 if test "x$FOUND_CORRECT_VERSION" = x; then 21132 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21133 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21134 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21135 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21136 BOOT_JDK_FOUND=no 21137 else 21138 # We're done! :-) 21139 BOOT_JDK_FOUND=yes 21140 21141 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21142 21143 # Input might be given as Windows format, start by converting to 21144 # unix format. 21145 path="$BOOT_JDK" 21146 new_path=`$CYGPATH -u "$path"` 21147 21148 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21149 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21150 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21151 # "foo.exe" is OK but "foo" is an error. 21152 # 21153 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21154 # It is also a way to make sure we got the proper file name for the real test later on. 21155 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21156 if test "x$test_shortpath" = x; then 21157 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21158 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21159 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21160 fi 21161 21162 # Call helper function which possibly converts this using DOS-style short mode. 21163 # If so, the updated path is stored in $new_path. 21164 21165 input_path="$new_path" 21166 # Check if we need to convert this using DOS-style short mode. If the path 21167 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21168 # take no chances and rewrite it. 21169 # Note: m4 eats our [], so we need to use [ and ] instead. 21170 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21171 if test "x$has_forbidden_chars" != x; then 21172 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21173 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21174 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21175 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21176 # Going to short mode and back again did indeed matter. Since short mode is 21177 # case insensitive, let's make it lowercase to improve readability. 21178 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21179 # Now convert it back to Unix-stile (cygpath) 21180 input_path=`$CYGPATH -u "$shortmode_path"` 21181 new_path="$input_path" 21182 fi 21183 fi 21184 21185 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21186 if test "x$test_cygdrive_prefix" = x; then 21187 # As a simple fix, exclude /usr/bin since it's not a real path. 21188 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21189 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21190 # a path prefixed by /cygdrive for fixpath to work. 21191 new_path="$CYGWIN_ROOT_PATH$input_path" 21192 fi 21193 fi 21194 21195 21196 if test "x$path" != "x$new_path"; then 21197 BOOT_JDK="$new_path" 21198 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21199 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21200 fi 21201 21202 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21203 21204 path="$BOOT_JDK" 21205 has_colon=`$ECHO $path | $GREP ^.:` 21206 new_path="$path" 21207 if test "x$has_colon" = x; then 21208 # Not in mixed or Windows style, start by that. 21209 new_path=`cmd //c echo $path` 21210 fi 21211 21212 21213 input_path="$new_path" 21214 # Check if we need to convert this using DOS-style short mode. If the path 21215 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21216 # take no chances and rewrite it. 21217 # Note: m4 eats our [], so we need to use [ and ] instead. 21218 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21219 if test "x$has_forbidden_chars" != x; then 21220 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21221 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21222 fi 21223 21224 21225 windows_path="$new_path" 21226 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21227 unix_path=`$CYGPATH -u "$windows_path"` 21228 new_path="$unix_path" 21229 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21230 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21231 new_path="$unix_path" 21232 fi 21233 21234 if test "x$path" != "x$new_path"; then 21235 BOOT_JDK="$new_path" 21236 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21237 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21238 fi 21239 21240 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21241 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21242 21243 else 21244 # We're on a posix platform. Hooray! :) 21245 path="$BOOT_JDK" 21246 has_space=`$ECHO "$path" | $GREP " "` 21247 if test "x$has_space" != x; then 21248 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21249 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21250 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21251 fi 21252 21253 # Use eval to expand a potential ~ 21254 eval path="$path" 21255 if test ! -f "$path" && test ! -d "$path"; then 21256 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21257 fi 21258 21259 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21260 fi 21261 21262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21263 $as_echo_n "checking for Boot JDK... " >&6; } 21264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21265 $as_echo "$BOOT_JDK" >&6; } 21266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21267 $as_echo_n "checking Boot JDK version... " >&6; } 21268 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21270 $as_echo "$BOOT_JDK_VERSION" >&6; } 21271 fi # end check jdk version 21272 fi # end check rt.jar 21273 fi # end check javac 21274 fi # end check java 21275 fi # end check boot jdk found 21276 fi 21277 21278 21279 if test "x$BOOT_JDK_FOUND" = xno; then 21280 # Now execute the test 21281 21282 if test -x /usr/libexec/java_home; then 21283 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 21284 BOOT_JDK_FOUND=maybe 21285 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 21286 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 21287 fi 21288 21289 21290 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21291 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21292 # Do we have a bin/java? 21293 if test ! -x "$BOOT_JDK/bin/java"; then 21294 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21295 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21296 BOOT_JDK_FOUND=no 21297 else 21298 # Do we have a bin/javac? 21299 if test ! -x "$BOOT_JDK/bin/javac"; then 21300 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21301 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21302 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21303 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21304 BOOT_JDK_FOUND=no 21305 else 21306 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21307 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21308 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21309 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21310 BOOT_JDK_FOUND=no 21311 else 21312 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21313 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21314 21315 # Extra M4 quote needed to protect [] in grep expression. 21316 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21317 if test "x$FOUND_CORRECT_VERSION" = x; then 21318 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21319 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21320 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21321 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21322 BOOT_JDK_FOUND=no 21323 else 21324 # We're done! :-) 21325 BOOT_JDK_FOUND=yes 21326 21327 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21328 21329 # Input might be given as Windows format, start by converting to 21330 # unix format. 21331 path="$BOOT_JDK" 21332 new_path=`$CYGPATH -u "$path"` 21333 21334 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21335 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21336 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21337 # "foo.exe" is OK but "foo" is an error. 21338 # 21339 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21340 # It is also a way to make sure we got the proper file name for the real test later on. 21341 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21342 if test "x$test_shortpath" = x; then 21343 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21344 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21345 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21346 fi 21347 21348 # Call helper function which possibly converts this using DOS-style short mode. 21349 # If so, the updated path is stored in $new_path. 21350 21351 input_path="$new_path" 21352 # Check if we need to convert this using DOS-style short mode. If the path 21353 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21354 # take no chances and rewrite it. 21355 # Note: m4 eats our [], so we need to use [ and ] instead. 21356 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21357 if test "x$has_forbidden_chars" != x; then 21358 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21359 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21360 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21361 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21362 # Going to short mode and back again did indeed matter. Since short mode is 21363 # case insensitive, let's make it lowercase to improve readability. 21364 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21365 # Now convert it back to Unix-stile (cygpath) 21366 input_path=`$CYGPATH -u "$shortmode_path"` 21367 new_path="$input_path" 21368 fi 21369 fi 21370 21371 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21372 if test "x$test_cygdrive_prefix" = x; then 21373 # As a simple fix, exclude /usr/bin since it's not a real path. 21374 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21375 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21376 # a path prefixed by /cygdrive for fixpath to work. 21377 new_path="$CYGWIN_ROOT_PATH$input_path" 21378 fi 21379 fi 21380 21381 21382 if test "x$path" != "x$new_path"; then 21383 BOOT_JDK="$new_path" 21384 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21385 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21386 fi 21387 21388 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21389 21390 path="$BOOT_JDK" 21391 has_colon=`$ECHO $path | $GREP ^.:` 21392 new_path="$path" 21393 if test "x$has_colon" = x; then 21394 # Not in mixed or Windows style, start by that. 21395 new_path=`cmd //c echo $path` 21396 fi 21397 21398 21399 input_path="$new_path" 21400 # Check if we need to convert this using DOS-style short mode. If the path 21401 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21402 # take no chances and rewrite it. 21403 # Note: m4 eats our [], so we need to use [ and ] instead. 21404 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21405 if test "x$has_forbidden_chars" != x; then 21406 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21407 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21408 fi 21409 21410 21411 windows_path="$new_path" 21412 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21413 unix_path=`$CYGPATH -u "$windows_path"` 21414 new_path="$unix_path" 21415 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21416 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21417 new_path="$unix_path" 21418 fi 21419 21420 if test "x$path" != "x$new_path"; then 21421 BOOT_JDK="$new_path" 21422 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21423 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21424 fi 21425 21426 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21427 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21428 21429 else 21430 # We're on a posix platform. Hooray! :) 21431 path="$BOOT_JDK" 21432 has_space=`$ECHO "$path" | $GREP " "` 21433 if test "x$has_space" != x; then 21434 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21435 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21436 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21437 fi 21438 21439 # Use eval to expand a potential ~ 21440 eval path="$path" 21441 if test ! -f "$path" && test ! -d "$path"; then 21442 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21443 fi 21444 21445 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21446 fi 21447 21448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21449 $as_echo_n "checking for Boot JDK... " >&6; } 21450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21451 $as_echo "$BOOT_JDK" >&6; } 21452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21453 $as_echo_n "checking Boot JDK version... " >&6; } 21454 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21456 $as_echo "$BOOT_JDK_VERSION" >&6; } 21457 fi # end check jdk version 21458 fi # end check rt.jar 21459 fi # end check javac 21460 fi # end check java 21461 fi # end check boot jdk found 21462 fi 21463 21464 fi 21465 21466 21467 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21468 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21469 # Do we have a bin/java? 21470 if test ! -x "$BOOT_JDK/bin/java"; then 21471 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21472 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21473 BOOT_JDK_FOUND=no 21474 else 21475 # Do we have a bin/javac? 21476 if test ! -x "$BOOT_JDK/bin/javac"; then 21477 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21478 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21479 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21480 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21481 BOOT_JDK_FOUND=no 21482 else 21483 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21484 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21485 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21486 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21487 BOOT_JDK_FOUND=no 21488 else 21489 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21490 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21491 21492 # Extra M4 quote needed to protect [] in grep expression. 21493 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21494 if test "x$FOUND_CORRECT_VERSION" = x; then 21495 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21496 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21497 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21498 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21499 BOOT_JDK_FOUND=no 21500 else 21501 # We're done! :-) 21502 BOOT_JDK_FOUND=yes 21503 21504 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21505 21506 # Input might be given as Windows format, start by converting to 21507 # unix format. 21508 path="$BOOT_JDK" 21509 new_path=`$CYGPATH -u "$path"` 21510 21511 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21512 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21513 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21514 # "foo.exe" is OK but "foo" is an error. 21515 # 21516 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21517 # It is also a way to make sure we got the proper file name for the real test later on. 21518 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21519 if test "x$test_shortpath" = x; then 21520 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21521 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21522 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21523 fi 21524 21525 # Call helper function which possibly converts this using DOS-style short mode. 21526 # If so, the updated path is stored in $new_path. 21527 21528 input_path="$new_path" 21529 # Check if we need to convert this using DOS-style short mode. If the path 21530 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21531 # take no chances and rewrite it. 21532 # Note: m4 eats our [], so we need to use [ and ] instead. 21533 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21534 if test "x$has_forbidden_chars" != x; then 21535 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21536 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21537 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21538 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21539 # Going to short mode and back again did indeed matter. Since short mode is 21540 # case insensitive, let's make it lowercase to improve readability. 21541 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21542 # Now convert it back to Unix-stile (cygpath) 21543 input_path=`$CYGPATH -u "$shortmode_path"` 21544 new_path="$input_path" 21545 fi 21546 fi 21547 21548 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21549 if test "x$test_cygdrive_prefix" = x; then 21550 # As a simple fix, exclude /usr/bin since it's not a real path. 21551 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21552 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21553 # a path prefixed by /cygdrive for fixpath to work. 21554 new_path="$CYGWIN_ROOT_PATH$input_path" 21555 fi 21556 fi 21557 21558 21559 if test "x$path" != "x$new_path"; then 21560 BOOT_JDK="$new_path" 21561 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21562 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21563 fi 21564 21565 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21566 21567 path="$BOOT_JDK" 21568 has_colon=`$ECHO $path | $GREP ^.:` 21569 new_path="$path" 21570 if test "x$has_colon" = x; then 21571 # Not in mixed or Windows style, start by that. 21572 new_path=`cmd //c echo $path` 21573 fi 21574 21575 21576 input_path="$new_path" 21577 # Check if we need to convert this using DOS-style short mode. If the path 21578 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21579 # take no chances and rewrite it. 21580 # Note: m4 eats our [], so we need to use [ and ] instead. 21581 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21582 if test "x$has_forbidden_chars" != x; then 21583 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21584 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21585 fi 21586 21587 21588 windows_path="$new_path" 21589 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21590 unix_path=`$CYGPATH -u "$windows_path"` 21591 new_path="$unix_path" 21592 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21593 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21594 new_path="$unix_path" 21595 fi 21596 21597 if test "x$path" != "x$new_path"; then 21598 BOOT_JDK="$new_path" 21599 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21600 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21601 fi 21602 21603 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21604 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21605 21606 else 21607 # We're on a posix platform. Hooray! :) 21608 path="$BOOT_JDK" 21609 has_space=`$ECHO "$path" | $GREP " "` 21610 if test "x$has_space" != x; then 21611 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21612 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21613 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21614 fi 21615 21616 # Use eval to expand a potential ~ 21617 eval path="$path" 21618 if test ! -f "$path" && test ! -d "$path"; then 21619 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21620 fi 21621 21622 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21623 fi 21624 21625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21626 $as_echo_n "checking for Boot JDK... " >&6; } 21627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21628 $as_echo "$BOOT_JDK" >&6; } 21629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21630 $as_echo_n "checking Boot JDK version... " >&6; } 21631 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21633 $as_echo "$BOOT_JDK_VERSION" >&6; } 21634 fi # end check jdk version 21635 fi # end check rt.jar 21636 fi # end check javac 21637 fi # end check java 21638 fi # end check boot jdk found 21639 fi 21640 21641 21642 # Test: Is $JAVA_HOME set? 21643 21644 if test "x$BOOT_JDK_FOUND" = xno; then 21645 # Now execute the test 21646 21647 if test "x$JAVA_HOME" != x; then 21648 JAVA_HOME_PROCESSED="$JAVA_HOME" 21649 21650 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21651 21652 # Input might be given as Windows format, start by converting to 21653 # unix format. 21654 path="$JAVA_HOME_PROCESSED" 21655 new_path=`$CYGPATH -u "$path"` 21656 21657 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21658 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21659 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21660 # "foo.exe" is OK but "foo" is an error. 21661 # 21662 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21663 # It is also a way to make sure we got the proper file name for the real test later on. 21664 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21665 if test "x$test_shortpath" = x; then 21666 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21667 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21668 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 21669 fi 21670 21671 # Call helper function which possibly converts this using DOS-style short mode. 21672 # If so, the updated path is stored in $new_path. 21673 21674 input_path="$new_path" 21675 # Check if we need to convert this using DOS-style short mode. If the path 21676 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21677 # take no chances and rewrite it. 21678 # Note: m4 eats our [], so we need to use [ and ] instead. 21679 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21680 if test "x$has_forbidden_chars" != x; then 21681 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21682 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21683 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21684 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21685 # Going to short mode and back again did indeed matter. Since short mode is 21686 # case insensitive, let's make it lowercase to improve readability. 21687 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21688 # Now convert it back to Unix-stile (cygpath) 21689 input_path=`$CYGPATH -u "$shortmode_path"` 21690 new_path="$input_path" 21691 fi 21692 fi 21693 21694 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21695 if test "x$test_cygdrive_prefix" = x; then 21696 # As a simple fix, exclude /usr/bin since it's not a real path. 21697 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21698 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21699 # a path prefixed by /cygdrive for fixpath to work. 21700 new_path="$CYGWIN_ROOT_PATH$input_path" 21701 fi 21702 fi 21703 21704 21705 if test "x$path" != "x$new_path"; then 21706 JAVA_HOME_PROCESSED="$new_path" 21707 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21708 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21709 fi 21710 21711 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21712 21713 path="$JAVA_HOME_PROCESSED" 21714 has_colon=`$ECHO $path | $GREP ^.:` 21715 new_path="$path" 21716 if test "x$has_colon" = x; then 21717 # Not in mixed or Windows style, start by that. 21718 new_path=`cmd //c echo $path` 21719 fi 21720 21721 21722 input_path="$new_path" 21723 # Check if we need to convert this using DOS-style short mode. If the path 21724 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21725 # take no chances and rewrite it. 21726 # Note: m4 eats our [], so we need to use [ and ] instead. 21727 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21728 if test "x$has_forbidden_chars" != x; then 21729 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21730 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21731 fi 21732 21733 21734 windows_path="$new_path" 21735 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21736 unix_path=`$CYGPATH -u "$windows_path"` 21737 new_path="$unix_path" 21738 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21739 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21740 new_path="$unix_path" 21741 fi 21742 21743 if test "x$path" != "x$new_path"; then 21744 JAVA_HOME_PROCESSED="$new_path" 21745 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21746 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21747 fi 21748 21749 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21750 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21751 21752 else 21753 # We're on a posix platform. Hooray! :) 21754 path="$JAVA_HOME_PROCESSED" 21755 has_space=`$ECHO "$path" | $GREP " "` 21756 if test "x$has_space" != x; then 21757 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21758 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21759 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21760 fi 21761 21762 # Use eval to expand a potential ~ 21763 eval path="$path" 21764 if test ! -f "$path" && test ! -d "$path"; then 21765 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 21766 fi 21767 21768 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 21769 fi 21770 21771 if test ! -d "$JAVA_HOME_PROCESSED"; then 21772 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 21773 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 21774 else 21775 # Aha, the user has set a JAVA_HOME 21776 # let us use that as the Boot JDK. 21777 BOOT_JDK="$JAVA_HOME_PROCESSED" 21778 BOOT_JDK_FOUND=maybe 21779 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 21780 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 21781 fi 21782 fi 21783 21784 21785 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21786 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21787 # Do we have a bin/java? 21788 if test ! -x "$BOOT_JDK/bin/java"; then 21789 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21790 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21791 BOOT_JDK_FOUND=no 21792 else 21793 # Do we have a bin/javac? 21794 if test ! -x "$BOOT_JDK/bin/javac"; then 21795 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21796 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21797 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21798 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21799 BOOT_JDK_FOUND=no 21800 else 21801 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21802 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21803 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21804 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21805 BOOT_JDK_FOUND=no 21806 else 21807 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21808 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21809 21810 # Extra M4 quote needed to protect [] in grep expression. 21811 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21812 if test "x$FOUND_CORRECT_VERSION" = x; then 21813 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21814 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21815 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21816 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21817 BOOT_JDK_FOUND=no 21818 else 21819 # We're done! :-) 21820 BOOT_JDK_FOUND=yes 21821 21822 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21823 21824 # Input might be given as Windows format, start by converting to 21825 # unix format. 21826 path="$BOOT_JDK" 21827 new_path=`$CYGPATH -u "$path"` 21828 21829 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21830 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21831 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21832 # "foo.exe" is OK but "foo" is an error. 21833 # 21834 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21835 # It is also a way to make sure we got the proper file name for the real test later on. 21836 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21837 if test "x$test_shortpath" = x; then 21838 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21839 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21840 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21841 fi 21842 21843 # Call helper function which possibly converts this using DOS-style short mode. 21844 # If so, the updated path is stored in $new_path. 21845 21846 input_path="$new_path" 21847 # Check if we need to convert this using DOS-style short mode. If the path 21848 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21849 # take no chances and rewrite it. 21850 # Note: m4 eats our [], so we need to use [ and ] instead. 21851 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21852 if test "x$has_forbidden_chars" != x; then 21853 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21854 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21855 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21856 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21857 # Going to short mode and back again did indeed matter. Since short mode is 21858 # case insensitive, let's make it lowercase to improve readability. 21859 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21860 # Now convert it back to Unix-stile (cygpath) 21861 input_path=`$CYGPATH -u "$shortmode_path"` 21862 new_path="$input_path" 21863 fi 21864 fi 21865 21866 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21867 if test "x$test_cygdrive_prefix" = x; then 21868 # As a simple fix, exclude /usr/bin since it's not a real path. 21869 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21870 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21871 # a path prefixed by /cygdrive for fixpath to work. 21872 new_path="$CYGWIN_ROOT_PATH$input_path" 21873 fi 21874 fi 21875 21876 21877 if test "x$path" != "x$new_path"; then 21878 BOOT_JDK="$new_path" 21879 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21880 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21881 fi 21882 21883 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21884 21885 path="$BOOT_JDK" 21886 has_colon=`$ECHO $path | $GREP ^.:` 21887 new_path="$path" 21888 if test "x$has_colon" = x; then 21889 # Not in mixed or Windows style, start by that. 21890 new_path=`cmd //c echo $path` 21891 fi 21892 21893 21894 input_path="$new_path" 21895 # Check if we need to convert this using DOS-style short mode. If the path 21896 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21897 # take no chances and rewrite it. 21898 # Note: m4 eats our [], so we need to use [ and ] instead. 21899 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21900 if test "x$has_forbidden_chars" != x; then 21901 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21902 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21903 fi 21904 21905 21906 windows_path="$new_path" 21907 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21908 unix_path=`$CYGPATH -u "$windows_path"` 21909 new_path="$unix_path" 21910 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21911 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21912 new_path="$unix_path" 21913 fi 21914 21915 if test "x$path" != "x$new_path"; then 21916 BOOT_JDK="$new_path" 21917 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21918 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21919 fi 21920 21921 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21922 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21923 21924 else 21925 # We're on a posix platform. Hooray! :) 21926 path="$BOOT_JDK" 21927 has_space=`$ECHO "$path" | $GREP " "` 21928 if test "x$has_space" != x; then 21929 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21930 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21931 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21932 fi 21933 21934 # Use eval to expand a potential ~ 21935 eval path="$path" 21936 if test ! -f "$path" && test ! -d "$path"; then 21937 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21938 fi 21939 21940 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21941 fi 21942 21943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21944 $as_echo_n "checking for Boot JDK... " >&6; } 21945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21946 $as_echo "$BOOT_JDK" >&6; } 21947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21948 $as_echo_n "checking Boot JDK version... " >&6; } 21949 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21951 $as_echo "$BOOT_JDK_VERSION" >&6; } 21952 fi # end check jdk version 21953 fi # end check rt.jar 21954 fi # end check javac 21955 fi # end check java 21956 fi # end check boot jdk found 21957 fi 21958 21959 21960 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 21961 21962 if test "x$BOOT_JDK_FOUND" = xno; then 21963 # Now execute the test 21964 21965 # Extract the first word of "javac", so it can be a program name with args. 21966 set dummy javac; ac_word=$2 21967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21968 $as_echo_n "checking for $ac_word... " >&6; } 21969 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 21970 $as_echo_n "(cached) " >&6 21971 else 21972 case $JAVAC_CHECK in 21973 [\\/]* | ?:[\\/]*) 21974 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 21975 ;; 21976 *) 21977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21978 for as_dir in $PATH 21979 do 21980 IFS=$as_save_IFS 21981 test -z "$as_dir" && as_dir=. 21982 for ac_exec_ext in '' $ac_executable_extensions; do 21983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21984 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 21985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21986 break 2 21987 fi 21988 done 21989 done 21990 IFS=$as_save_IFS 21991 21992 ;; 21993 esac 21994 fi 21995 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 21996 if test -n "$JAVAC_CHECK"; then 21997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 21998 $as_echo "$JAVAC_CHECK" >&6; } 21999 else 22000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22001 $as_echo "no" >&6; } 22002 fi 22003 22004 22005 # Extract the first word of "java", so it can be a program name with args. 22006 set dummy java; ac_word=$2 22007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22008 $as_echo_n "checking for $ac_word... " >&6; } 22009 if ${ac_cv_path_JAVA_CHECK+:} false; then : 22010 $as_echo_n "(cached) " >&6 22011 else 22012 case $JAVA_CHECK in 22013 [\\/]* | ?:[\\/]*) 22014 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 22015 ;; 22016 *) 22017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22018 for as_dir in $PATH 22019 do 22020 IFS=$as_save_IFS 22021 test -z "$as_dir" && as_dir=. 22022 for ac_exec_ext in '' $ac_executable_extensions; do 22023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22024 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 22025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22026 break 2 22027 fi 22028 done 22029 done 22030 IFS=$as_save_IFS 22031 22032 ;; 22033 esac 22034 fi 22035 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 22036 if test -n "$JAVA_CHECK"; then 22037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 22038 $as_echo "$JAVA_CHECK" >&6; } 22039 else 22040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22041 $as_echo "no" >&6; } 22042 fi 22043 22044 22045 BINARY="$JAVAC_CHECK" 22046 if test "x$JAVAC_CHECK" = x; then 22047 BINARY="$JAVA_CHECK" 22048 fi 22049 if test "x$BINARY" != x; then 22050 # So there is a java(c) binary, it might be part of a JDK. 22051 # Lets find the JDK/JRE directory by following symbolic links. 22052 # Linux/GNU systems often have links from /usr/bin/java to 22053 # /etc/alternatives/java to the real JDK binary. 22054 22055 if test "x$OPENJDK_BUILD_OS" != xwindows; then 22056 # Follow a chain of symbolic links. Use readlink 22057 # where it exists, else fall back to horribly 22058 # complicated shell code. 22059 if test "x$READLINK_TESTED" != yes; then 22060 # On MacOSX there is a readlink tool with a different 22061 # purpose than the GNU readlink tool. Check the found readlink. 22062 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 22063 if test "x$ISGNU" = x; then 22064 # A readlink that we do not know how to use. 22065 # Are there other non-GNU readlinks out there? 22066 READLINK_TESTED=yes 22067 READLINK= 22068 fi 22069 fi 22070 22071 if test "x$READLINK" != x; then 22072 BINARY=`$READLINK -f $BINARY` 22073 else 22074 # Save the current directory for restoring afterwards 22075 STARTDIR=$PWD 22076 COUNTER=0 22077 sym_link_dir=`$DIRNAME $BINARY` 22078 sym_link_file=`$BASENAME $BINARY` 22079 cd $sym_link_dir 22080 # Use -P flag to resolve symlinks in directories. 22081 cd `$THEPWDCMD -P` 22082 sym_link_dir=`$THEPWDCMD -P` 22083 # Resolve file symlinks 22084 while test $COUNTER -lt 20; do 22085 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 22086 if test "x$ISLINK" == x; then 22087 # This is not a symbolic link! We are done! 22088 break 22089 fi 22090 # Again resolve directory symlinks since the target of the just found 22091 # link could be in a different directory 22092 cd `$DIRNAME $ISLINK` 22093 sym_link_dir=`$THEPWDCMD -P` 22094 sym_link_file=`$BASENAME $ISLINK` 22095 let COUNTER=COUNTER+1 22096 done 22097 cd $STARTDIR 22098 BINARY=$sym_link_dir/$sym_link_file 22099 fi 22100 fi 22101 22102 BOOT_JDK=`dirname "$BINARY"` 22103 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 22104 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 22105 # Looks like we found ourselves an JDK 22106 BOOT_JDK_FOUND=maybe 22107 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 22108 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 22109 fi 22110 fi 22111 22112 22113 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22114 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22115 # Do we have a bin/java? 22116 if test ! -x "$BOOT_JDK/bin/java"; then 22117 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22118 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22119 BOOT_JDK_FOUND=no 22120 else 22121 # Do we have a bin/javac? 22122 if test ! -x "$BOOT_JDK/bin/javac"; then 22123 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22124 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22125 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22126 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22127 BOOT_JDK_FOUND=no 22128 else 22129 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22130 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22131 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22132 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22133 BOOT_JDK_FOUND=no 22134 else 22135 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22136 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22137 22138 # Extra M4 quote needed to protect [] in grep expression. 22139 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22140 if test "x$FOUND_CORRECT_VERSION" = x; then 22141 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22142 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22143 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22144 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22145 BOOT_JDK_FOUND=no 22146 else 22147 # We're done! :-) 22148 BOOT_JDK_FOUND=yes 22149 22150 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22151 22152 # Input might be given as Windows format, start by converting to 22153 # unix format. 22154 path="$BOOT_JDK" 22155 new_path=`$CYGPATH -u "$path"` 22156 22157 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22158 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22159 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22160 # "foo.exe" is OK but "foo" is an error. 22161 # 22162 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22163 # It is also a way to make sure we got the proper file name for the real test later on. 22164 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22165 if test "x$test_shortpath" = x; then 22166 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22167 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22168 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22169 fi 22170 22171 # Call helper function which possibly converts this using DOS-style short mode. 22172 # If so, the updated path is stored in $new_path. 22173 22174 input_path="$new_path" 22175 # Check if we need to convert this using DOS-style short mode. If the path 22176 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22177 # take no chances and rewrite it. 22178 # Note: m4 eats our [], so we need to use [ and ] instead. 22179 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22180 if test "x$has_forbidden_chars" != x; then 22181 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22182 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22183 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22184 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22185 # Going to short mode and back again did indeed matter. Since short mode is 22186 # case insensitive, let's make it lowercase to improve readability. 22187 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22188 # Now convert it back to Unix-stile (cygpath) 22189 input_path=`$CYGPATH -u "$shortmode_path"` 22190 new_path="$input_path" 22191 fi 22192 fi 22193 22194 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22195 if test "x$test_cygdrive_prefix" = x; then 22196 # As a simple fix, exclude /usr/bin since it's not a real path. 22197 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22198 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22199 # a path prefixed by /cygdrive for fixpath to work. 22200 new_path="$CYGWIN_ROOT_PATH$input_path" 22201 fi 22202 fi 22203 22204 22205 if test "x$path" != "x$new_path"; then 22206 BOOT_JDK="$new_path" 22207 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22208 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22209 fi 22210 22211 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22212 22213 path="$BOOT_JDK" 22214 has_colon=`$ECHO $path | $GREP ^.:` 22215 new_path="$path" 22216 if test "x$has_colon" = x; then 22217 # Not in mixed or Windows style, start by that. 22218 new_path=`cmd //c echo $path` 22219 fi 22220 22221 22222 input_path="$new_path" 22223 # Check if we need to convert this using DOS-style short mode. If the path 22224 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22225 # take no chances and rewrite it. 22226 # Note: m4 eats our [], so we need to use [ and ] instead. 22227 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22228 if test "x$has_forbidden_chars" != x; then 22229 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22230 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22231 fi 22232 22233 22234 windows_path="$new_path" 22235 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22236 unix_path=`$CYGPATH -u "$windows_path"` 22237 new_path="$unix_path" 22238 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22239 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22240 new_path="$unix_path" 22241 fi 22242 22243 if test "x$path" != "x$new_path"; then 22244 BOOT_JDK="$new_path" 22245 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22246 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22247 fi 22248 22249 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22250 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22251 22252 else 22253 # We're on a posix platform. Hooray! :) 22254 path="$BOOT_JDK" 22255 has_space=`$ECHO "$path" | $GREP " "` 22256 if test "x$has_space" != x; then 22257 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22258 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22259 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22260 fi 22261 22262 # Use eval to expand a potential ~ 22263 eval path="$path" 22264 if test ! -f "$path" && test ! -d "$path"; then 22265 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22266 fi 22267 22268 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22269 fi 22270 22271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22272 $as_echo_n "checking for Boot JDK... " >&6; } 22273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22274 $as_echo "$BOOT_JDK" >&6; } 22275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22276 $as_echo_n "checking Boot JDK version... " >&6; } 22277 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22279 $as_echo "$BOOT_JDK_VERSION" >&6; } 22280 fi # end check jdk version 22281 fi # end check rt.jar 22282 fi # end check javac 22283 fi # end check java 22284 fi # end check boot jdk found 22285 fi 22286 22287 22288 # Test: Is there a JDK installed in default, well-known locations? 22289 22290 if test "x$BOOT_JDK_FOUND" = xno; then 22291 # Now execute the test 22292 22293 if test "x$OPENJDK_TARGET_OS" = xwindows; then 22294 22295 if test "x$BOOT_JDK_FOUND" = xno; then 22296 # Now execute the test 22297 22298 if test "x$ProgramW6432" != x; then 22299 VIRTUAL_DIR="$ProgramW6432/Java" 22300 22301 windows_path="$VIRTUAL_DIR" 22302 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22303 unix_path=`$CYGPATH -u "$windows_path"` 22304 VIRTUAL_DIR="$unix_path" 22305 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22306 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22307 VIRTUAL_DIR="$unix_path" 22308 fi 22309 22310 22311 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22312 BOOT_JDK_SUFFIX="" 22313 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22314 if test "x$ALL_JDKS_FOUND" != x; then 22315 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22316 22317 if test "x$BOOT_JDK_FOUND" = xno; then 22318 # Now execute the test 22319 22320 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22321 if test -d "$BOOT_JDK"; then 22322 BOOT_JDK_FOUND=maybe 22323 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22324 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22325 fi 22326 22327 22328 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22329 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22330 # Do we have a bin/java? 22331 if test ! -x "$BOOT_JDK/bin/java"; then 22332 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22333 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22334 BOOT_JDK_FOUND=no 22335 else 22336 # Do we have a bin/javac? 22337 if test ! -x "$BOOT_JDK/bin/javac"; then 22338 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22339 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22340 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22341 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22342 BOOT_JDK_FOUND=no 22343 else 22344 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22345 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22346 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22347 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22348 BOOT_JDK_FOUND=no 22349 else 22350 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22351 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22352 22353 # Extra M4 quote needed to protect [] in grep expression. 22354 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22355 if test "x$FOUND_CORRECT_VERSION" = x; then 22356 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22357 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22358 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22359 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22360 BOOT_JDK_FOUND=no 22361 else 22362 # We're done! :-) 22363 BOOT_JDK_FOUND=yes 22364 22365 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22366 22367 # Input might be given as Windows format, start by converting to 22368 # unix format. 22369 path="$BOOT_JDK" 22370 new_path=`$CYGPATH -u "$path"` 22371 22372 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22373 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22374 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22375 # "foo.exe" is OK but "foo" is an error. 22376 # 22377 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22378 # It is also a way to make sure we got the proper file name for the real test later on. 22379 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22380 if test "x$test_shortpath" = x; then 22381 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22382 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22383 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22384 fi 22385 22386 # Call helper function which possibly converts this using DOS-style short mode. 22387 # If so, the updated path is stored in $new_path. 22388 22389 input_path="$new_path" 22390 # Check if we need to convert this using DOS-style short mode. If the path 22391 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22392 # take no chances and rewrite it. 22393 # Note: m4 eats our [], so we need to use [ and ] instead. 22394 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22395 if test "x$has_forbidden_chars" != x; then 22396 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22397 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22398 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22399 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22400 # Going to short mode and back again did indeed matter. Since short mode is 22401 # case insensitive, let's make it lowercase to improve readability. 22402 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22403 # Now convert it back to Unix-stile (cygpath) 22404 input_path=`$CYGPATH -u "$shortmode_path"` 22405 new_path="$input_path" 22406 fi 22407 fi 22408 22409 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22410 if test "x$test_cygdrive_prefix" = x; then 22411 # As a simple fix, exclude /usr/bin since it's not a real path. 22412 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22413 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22414 # a path prefixed by /cygdrive for fixpath to work. 22415 new_path="$CYGWIN_ROOT_PATH$input_path" 22416 fi 22417 fi 22418 22419 22420 if test "x$path" != "x$new_path"; then 22421 BOOT_JDK="$new_path" 22422 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22423 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22424 fi 22425 22426 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22427 22428 path="$BOOT_JDK" 22429 has_colon=`$ECHO $path | $GREP ^.:` 22430 new_path="$path" 22431 if test "x$has_colon" = x; then 22432 # Not in mixed or Windows style, start by that. 22433 new_path=`cmd //c echo $path` 22434 fi 22435 22436 22437 input_path="$new_path" 22438 # Check if we need to convert this using DOS-style short mode. If the path 22439 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22440 # take no chances and rewrite it. 22441 # Note: m4 eats our [], so we need to use [ and ] instead. 22442 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22443 if test "x$has_forbidden_chars" != x; then 22444 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22445 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22446 fi 22447 22448 22449 windows_path="$new_path" 22450 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22451 unix_path=`$CYGPATH -u "$windows_path"` 22452 new_path="$unix_path" 22453 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22454 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22455 new_path="$unix_path" 22456 fi 22457 22458 if test "x$path" != "x$new_path"; then 22459 BOOT_JDK="$new_path" 22460 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22461 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22462 fi 22463 22464 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22465 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22466 22467 else 22468 # We're on a posix platform. Hooray! :) 22469 path="$BOOT_JDK" 22470 has_space=`$ECHO "$path" | $GREP " "` 22471 if test "x$has_space" != x; then 22472 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22473 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22474 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22475 fi 22476 22477 # Use eval to expand a potential ~ 22478 eval path="$path" 22479 if test ! -f "$path" && test ! -d "$path"; then 22480 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22481 fi 22482 22483 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22484 fi 22485 22486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22487 $as_echo_n "checking for Boot JDK... " >&6; } 22488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22489 $as_echo "$BOOT_JDK" >&6; } 22490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22491 $as_echo_n "checking Boot JDK version... " >&6; } 22492 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22494 $as_echo "$BOOT_JDK_VERSION" >&6; } 22495 fi # end check jdk version 22496 fi # end check rt.jar 22497 fi # end check javac 22498 fi # end check java 22499 fi # end check boot jdk found 22500 fi 22501 22502 done 22503 fi 22504 22505 fi 22506 22507 22508 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22509 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22510 # Do we have a bin/java? 22511 if test ! -x "$BOOT_JDK/bin/java"; then 22512 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22513 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22514 BOOT_JDK_FOUND=no 22515 else 22516 # Do we have a bin/javac? 22517 if test ! -x "$BOOT_JDK/bin/javac"; then 22518 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22519 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22520 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22521 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22522 BOOT_JDK_FOUND=no 22523 else 22524 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22525 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22526 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22527 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22528 BOOT_JDK_FOUND=no 22529 else 22530 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22531 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22532 22533 # Extra M4 quote needed to protect [] in grep expression. 22534 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22535 if test "x$FOUND_CORRECT_VERSION" = x; then 22536 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22537 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22538 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22539 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22540 BOOT_JDK_FOUND=no 22541 else 22542 # We're done! :-) 22543 BOOT_JDK_FOUND=yes 22544 22545 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22546 22547 # Input might be given as Windows format, start by converting to 22548 # unix format. 22549 path="$BOOT_JDK" 22550 new_path=`$CYGPATH -u "$path"` 22551 22552 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22553 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22554 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22555 # "foo.exe" is OK but "foo" is an error. 22556 # 22557 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22558 # It is also a way to make sure we got the proper file name for the real test later on. 22559 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22560 if test "x$test_shortpath" = x; then 22561 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22562 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22563 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22564 fi 22565 22566 # Call helper function which possibly converts this using DOS-style short mode. 22567 # If so, the updated path is stored in $new_path. 22568 22569 input_path="$new_path" 22570 # Check if we need to convert this using DOS-style short mode. If the path 22571 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22572 # take no chances and rewrite it. 22573 # Note: m4 eats our [], so we need to use [ and ] instead. 22574 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22575 if test "x$has_forbidden_chars" != x; then 22576 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22577 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22578 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22579 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22580 # Going to short mode and back again did indeed matter. Since short mode is 22581 # case insensitive, let's make it lowercase to improve readability. 22582 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22583 # Now convert it back to Unix-stile (cygpath) 22584 input_path=`$CYGPATH -u "$shortmode_path"` 22585 new_path="$input_path" 22586 fi 22587 fi 22588 22589 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22590 if test "x$test_cygdrive_prefix" = x; then 22591 # As a simple fix, exclude /usr/bin since it's not a real path. 22592 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22593 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22594 # a path prefixed by /cygdrive for fixpath to work. 22595 new_path="$CYGWIN_ROOT_PATH$input_path" 22596 fi 22597 fi 22598 22599 22600 if test "x$path" != "x$new_path"; then 22601 BOOT_JDK="$new_path" 22602 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22603 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22604 fi 22605 22606 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22607 22608 path="$BOOT_JDK" 22609 has_colon=`$ECHO $path | $GREP ^.:` 22610 new_path="$path" 22611 if test "x$has_colon" = x; then 22612 # Not in mixed or Windows style, start by that. 22613 new_path=`cmd //c echo $path` 22614 fi 22615 22616 22617 input_path="$new_path" 22618 # Check if we need to convert this using DOS-style short mode. If the path 22619 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22620 # take no chances and rewrite it. 22621 # Note: m4 eats our [], so we need to use [ and ] instead. 22622 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22623 if test "x$has_forbidden_chars" != x; then 22624 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22625 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22626 fi 22627 22628 22629 windows_path="$new_path" 22630 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22631 unix_path=`$CYGPATH -u "$windows_path"` 22632 new_path="$unix_path" 22633 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22634 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22635 new_path="$unix_path" 22636 fi 22637 22638 if test "x$path" != "x$new_path"; then 22639 BOOT_JDK="$new_path" 22640 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22641 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22642 fi 22643 22644 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22645 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22646 22647 else 22648 # We're on a posix platform. Hooray! :) 22649 path="$BOOT_JDK" 22650 has_space=`$ECHO "$path" | $GREP " "` 22651 if test "x$has_space" != x; then 22652 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22653 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22654 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22655 fi 22656 22657 # Use eval to expand a potential ~ 22658 eval path="$path" 22659 if test ! -f "$path" && test ! -d "$path"; then 22660 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22661 fi 22662 22663 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22664 fi 22665 22666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22667 $as_echo_n "checking for Boot JDK... " >&6; } 22668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22669 $as_echo "$BOOT_JDK" >&6; } 22670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22671 $as_echo_n "checking Boot JDK version... " >&6; } 22672 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22674 $as_echo "$BOOT_JDK_VERSION" >&6; } 22675 fi # end check jdk version 22676 fi # end check rt.jar 22677 fi # end check javac 22678 fi # end check java 22679 fi # end check boot jdk found 22680 fi 22681 22682 22683 if test "x$BOOT_JDK_FOUND" = xno; then 22684 # Now execute the test 22685 22686 if test "x$PROGRAMW6432" != x; then 22687 VIRTUAL_DIR="$PROGRAMW6432/Java" 22688 22689 windows_path="$VIRTUAL_DIR" 22690 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22691 unix_path=`$CYGPATH -u "$windows_path"` 22692 VIRTUAL_DIR="$unix_path" 22693 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22694 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22695 VIRTUAL_DIR="$unix_path" 22696 fi 22697 22698 22699 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22700 BOOT_JDK_SUFFIX="" 22701 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22702 if test "x$ALL_JDKS_FOUND" != x; then 22703 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22704 22705 if test "x$BOOT_JDK_FOUND" = xno; then 22706 # Now execute the test 22707 22708 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22709 if test -d "$BOOT_JDK"; then 22710 BOOT_JDK_FOUND=maybe 22711 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22712 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22713 fi 22714 22715 22716 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22717 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22718 # Do we have a bin/java? 22719 if test ! -x "$BOOT_JDK/bin/java"; then 22720 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22721 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22722 BOOT_JDK_FOUND=no 22723 else 22724 # Do we have a bin/javac? 22725 if test ! -x "$BOOT_JDK/bin/javac"; then 22726 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22727 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22728 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22729 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22730 BOOT_JDK_FOUND=no 22731 else 22732 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22733 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22734 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22735 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22736 BOOT_JDK_FOUND=no 22737 else 22738 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22739 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22740 22741 # Extra M4 quote needed to protect [] in grep expression. 22742 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22743 if test "x$FOUND_CORRECT_VERSION" = x; then 22744 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22745 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22746 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22747 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22748 BOOT_JDK_FOUND=no 22749 else 22750 # We're done! :-) 22751 BOOT_JDK_FOUND=yes 22752 22753 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22754 22755 # Input might be given as Windows format, start by converting to 22756 # unix format. 22757 path="$BOOT_JDK" 22758 new_path=`$CYGPATH -u "$path"` 22759 22760 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22761 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22762 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22763 # "foo.exe" is OK but "foo" is an error. 22764 # 22765 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22766 # It is also a way to make sure we got the proper file name for the real test later on. 22767 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22768 if test "x$test_shortpath" = x; then 22769 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22770 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22771 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22772 fi 22773 22774 # Call helper function which possibly converts this using DOS-style short mode. 22775 # If so, the updated path is stored in $new_path. 22776 22777 input_path="$new_path" 22778 # Check if we need to convert this using DOS-style short mode. If the path 22779 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22780 # take no chances and rewrite it. 22781 # Note: m4 eats our [], so we need to use [ and ] instead. 22782 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22783 if test "x$has_forbidden_chars" != x; then 22784 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22785 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22786 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22787 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22788 # Going to short mode and back again did indeed matter. Since short mode is 22789 # case insensitive, let's make it lowercase to improve readability. 22790 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22791 # Now convert it back to Unix-stile (cygpath) 22792 input_path=`$CYGPATH -u "$shortmode_path"` 22793 new_path="$input_path" 22794 fi 22795 fi 22796 22797 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22798 if test "x$test_cygdrive_prefix" = x; then 22799 # As a simple fix, exclude /usr/bin since it's not a real path. 22800 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22801 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22802 # a path prefixed by /cygdrive for fixpath to work. 22803 new_path="$CYGWIN_ROOT_PATH$input_path" 22804 fi 22805 fi 22806 22807 22808 if test "x$path" != "x$new_path"; then 22809 BOOT_JDK="$new_path" 22810 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22811 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22812 fi 22813 22814 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22815 22816 path="$BOOT_JDK" 22817 has_colon=`$ECHO $path | $GREP ^.:` 22818 new_path="$path" 22819 if test "x$has_colon" = x; then 22820 # Not in mixed or Windows style, start by that. 22821 new_path=`cmd //c echo $path` 22822 fi 22823 22824 22825 input_path="$new_path" 22826 # Check if we need to convert this using DOS-style short mode. If the path 22827 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22828 # take no chances and rewrite it. 22829 # Note: m4 eats our [], so we need to use [ and ] instead. 22830 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22831 if test "x$has_forbidden_chars" != x; then 22832 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22833 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22834 fi 22835 22836 22837 windows_path="$new_path" 22838 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22839 unix_path=`$CYGPATH -u "$windows_path"` 22840 new_path="$unix_path" 22841 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22842 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22843 new_path="$unix_path" 22844 fi 22845 22846 if test "x$path" != "x$new_path"; then 22847 BOOT_JDK="$new_path" 22848 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22849 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22850 fi 22851 22852 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22853 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22854 22855 else 22856 # We're on a posix platform. Hooray! :) 22857 path="$BOOT_JDK" 22858 has_space=`$ECHO "$path" | $GREP " "` 22859 if test "x$has_space" != x; then 22860 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22861 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22862 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22863 fi 22864 22865 # Use eval to expand a potential ~ 22866 eval path="$path" 22867 if test ! -f "$path" && test ! -d "$path"; then 22868 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22869 fi 22870 22871 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22872 fi 22873 22874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22875 $as_echo_n "checking for Boot JDK... " >&6; } 22876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22877 $as_echo "$BOOT_JDK" >&6; } 22878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22879 $as_echo_n "checking Boot JDK version... " >&6; } 22880 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22882 $as_echo "$BOOT_JDK_VERSION" >&6; } 22883 fi # end check jdk version 22884 fi # end check rt.jar 22885 fi # end check javac 22886 fi # end check java 22887 fi # end check boot jdk found 22888 fi 22889 22890 done 22891 fi 22892 22893 fi 22894 22895 22896 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22897 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22898 # Do we have a bin/java? 22899 if test ! -x "$BOOT_JDK/bin/java"; then 22900 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22901 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22902 BOOT_JDK_FOUND=no 22903 else 22904 # Do we have a bin/javac? 22905 if test ! -x "$BOOT_JDK/bin/javac"; then 22906 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22907 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22908 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22909 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22910 BOOT_JDK_FOUND=no 22911 else 22912 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22913 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22914 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22915 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22916 BOOT_JDK_FOUND=no 22917 else 22918 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22919 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22920 22921 # Extra M4 quote needed to protect [] in grep expression. 22922 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22923 if test "x$FOUND_CORRECT_VERSION" = x; then 22924 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22925 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22926 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22927 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22928 BOOT_JDK_FOUND=no 22929 else 22930 # We're done! :-) 22931 BOOT_JDK_FOUND=yes 22932 22933 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22934 22935 # Input might be given as Windows format, start by converting to 22936 # unix format. 22937 path="$BOOT_JDK" 22938 new_path=`$CYGPATH -u "$path"` 22939 22940 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22941 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22942 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22943 # "foo.exe" is OK but "foo" is an error. 22944 # 22945 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22946 # It is also a way to make sure we got the proper file name for the real test later on. 22947 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22948 if test "x$test_shortpath" = x; then 22949 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22950 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22951 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22952 fi 22953 22954 # Call helper function which possibly converts this using DOS-style short mode. 22955 # If so, the updated path is stored in $new_path. 22956 22957 input_path="$new_path" 22958 # Check if we need to convert this using DOS-style short mode. If the path 22959 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22960 # take no chances and rewrite it. 22961 # Note: m4 eats our [], so we need to use [ and ] instead. 22962 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22963 if test "x$has_forbidden_chars" != x; then 22964 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22965 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22966 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22967 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22968 # Going to short mode and back again did indeed matter. Since short mode is 22969 # case insensitive, let's make it lowercase to improve readability. 22970 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22971 # Now convert it back to Unix-stile (cygpath) 22972 input_path=`$CYGPATH -u "$shortmode_path"` 22973 new_path="$input_path" 22974 fi 22975 fi 22976 22977 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22978 if test "x$test_cygdrive_prefix" = x; then 22979 # As a simple fix, exclude /usr/bin since it's not a real path. 22980 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22981 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22982 # a path prefixed by /cygdrive for fixpath to work. 22983 new_path="$CYGWIN_ROOT_PATH$input_path" 22984 fi 22985 fi 22986 22987 22988 if test "x$path" != "x$new_path"; then 22989 BOOT_JDK="$new_path" 22990 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22991 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22992 fi 22993 22994 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22995 22996 path="$BOOT_JDK" 22997 has_colon=`$ECHO $path | $GREP ^.:` 22998 new_path="$path" 22999 if test "x$has_colon" = x; then 23000 # Not in mixed or Windows style, start by that. 23001 new_path=`cmd //c echo $path` 23002 fi 23003 23004 23005 input_path="$new_path" 23006 # Check if we need to convert this using DOS-style short mode. If the path 23007 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23008 # take no chances and rewrite it. 23009 # Note: m4 eats our [], so we need to use [ and ] instead. 23010 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23011 if test "x$has_forbidden_chars" != x; then 23012 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23013 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23014 fi 23015 23016 23017 windows_path="$new_path" 23018 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23019 unix_path=`$CYGPATH -u "$windows_path"` 23020 new_path="$unix_path" 23021 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23022 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23023 new_path="$unix_path" 23024 fi 23025 23026 if test "x$path" != "x$new_path"; then 23027 BOOT_JDK="$new_path" 23028 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23029 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23030 fi 23031 23032 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23033 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23034 23035 else 23036 # We're on a posix platform. Hooray! :) 23037 path="$BOOT_JDK" 23038 has_space=`$ECHO "$path" | $GREP " "` 23039 if test "x$has_space" != x; then 23040 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23041 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23042 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23043 fi 23044 23045 # Use eval to expand a potential ~ 23046 eval path="$path" 23047 if test ! -f "$path" && test ! -d "$path"; then 23048 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23049 fi 23050 23051 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23052 fi 23053 23054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23055 $as_echo_n "checking for Boot JDK... " >&6; } 23056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23057 $as_echo "$BOOT_JDK" >&6; } 23058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23059 $as_echo_n "checking Boot JDK version... " >&6; } 23060 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23062 $as_echo "$BOOT_JDK_VERSION" >&6; } 23063 fi # end check jdk version 23064 fi # end check rt.jar 23065 fi # end check javac 23066 fi # end check java 23067 fi # end check boot jdk found 23068 fi 23069 23070 23071 if test "x$BOOT_JDK_FOUND" = xno; then 23072 # Now execute the test 23073 23074 if test "x$PROGRAMFILES" != x; then 23075 VIRTUAL_DIR="$PROGRAMFILES/Java" 23076 23077 windows_path="$VIRTUAL_DIR" 23078 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23079 unix_path=`$CYGPATH -u "$windows_path"` 23080 VIRTUAL_DIR="$unix_path" 23081 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23082 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23083 VIRTUAL_DIR="$unix_path" 23084 fi 23085 23086 23087 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 23088 BOOT_JDK_SUFFIX="" 23089 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23090 if test "x$ALL_JDKS_FOUND" != x; then 23091 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23092 23093 if test "x$BOOT_JDK_FOUND" = xno; then 23094 # Now execute the test 23095 23096 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23097 if test -d "$BOOT_JDK"; then 23098 BOOT_JDK_FOUND=maybe 23099 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23100 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23101 fi 23102 23103 23104 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23105 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23106 # Do we have a bin/java? 23107 if test ! -x "$BOOT_JDK/bin/java"; then 23108 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23109 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23110 BOOT_JDK_FOUND=no 23111 else 23112 # Do we have a bin/javac? 23113 if test ! -x "$BOOT_JDK/bin/javac"; then 23114 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23115 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23116 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23117 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23118 BOOT_JDK_FOUND=no 23119 else 23120 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23121 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23122 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23123 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23124 BOOT_JDK_FOUND=no 23125 else 23126 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23127 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23128 23129 # Extra M4 quote needed to protect [] in grep expression. 23130 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23131 if test "x$FOUND_CORRECT_VERSION" = x; then 23132 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23133 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23134 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23135 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23136 BOOT_JDK_FOUND=no 23137 else 23138 # We're done! :-) 23139 BOOT_JDK_FOUND=yes 23140 23141 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23142 23143 # Input might be given as Windows format, start by converting to 23144 # unix format. 23145 path="$BOOT_JDK" 23146 new_path=`$CYGPATH -u "$path"` 23147 23148 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23149 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23150 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23151 # "foo.exe" is OK but "foo" is an error. 23152 # 23153 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23154 # It is also a way to make sure we got the proper file name for the real test later on. 23155 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23156 if test "x$test_shortpath" = x; then 23157 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23158 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23159 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23160 fi 23161 23162 # Call helper function which possibly converts this using DOS-style short mode. 23163 # If so, the updated path is stored in $new_path. 23164 23165 input_path="$new_path" 23166 # Check if we need to convert this using DOS-style short mode. If the path 23167 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23168 # take no chances and rewrite it. 23169 # Note: m4 eats our [], so we need to use [ and ] instead. 23170 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23171 if test "x$has_forbidden_chars" != x; then 23172 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23173 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23174 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23175 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23176 # Going to short mode and back again did indeed matter. Since short mode is 23177 # case insensitive, let's make it lowercase to improve readability. 23178 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23179 # Now convert it back to Unix-stile (cygpath) 23180 input_path=`$CYGPATH -u "$shortmode_path"` 23181 new_path="$input_path" 23182 fi 23183 fi 23184 23185 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23186 if test "x$test_cygdrive_prefix" = x; then 23187 # As a simple fix, exclude /usr/bin since it's not a real path. 23188 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23189 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23190 # a path prefixed by /cygdrive for fixpath to work. 23191 new_path="$CYGWIN_ROOT_PATH$input_path" 23192 fi 23193 fi 23194 23195 23196 if test "x$path" != "x$new_path"; then 23197 BOOT_JDK="$new_path" 23198 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23199 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23200 fi 23201 23202 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23203 23204 path="$BOOT_JDK" 23205 has_colon=`$ECHO $path | $GREP ^.:` 23206 new_path="$path" 23207 if test "x$has_colon" = x; then 23208 # Not in mixed or Windows style, start by that. 23209 new_path=`cmd //c echo $path` 23210 fi 23211 23212 23213 input_path="$new_path" 23214 # Check if we need to convert this using DOS-style short mode. If the path 23215 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23216 # take no chances and rewrite it. 23217 # Note: m4 eats our [], so we need to use [ and ] instead. 23218 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23219 if test "x$has_forbidden_chars" != x; then 23220 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23221 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23222 fi 23223 23224 23225 windows_path="$new_path" 23226 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23227 unix_path=`$CYGPATH -u "$windows_path"` 23228 new_path="$unix_path" 23229 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23230 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23231 new_path="$unix_path" 23232 fi 23233 23234 if test "x$path" != "x$new_path"; then 23235 BOOT_JDK="$new_path" 23236 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23237 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23238 fi 23239 23240 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23241 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23242 23243 else 23244 # We're on a posix platform. Hooray! :) 23245 path="$BOOT_JDK" 23246 has_space=`$ECHO "$path" | $GREP " "` 23247 if test "x$has_space" != x; then 23248 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23249 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23250 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23251 fi 23252 23253 # Use eval to expand a potential ~ 23254 eval path="$path" 23255 if test ! -f "$path" && test ! -d "$path"; then 23256 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23257 fi 23258 23259 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23260 fi 23261 23262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23263 $as_echo_n "checking for Boot JDK... " >&6; } 23264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23265 $as_echo "$BOOT_JDK" >&6; } 23266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23267 $as_echo_n "checking Boot JDK version... " >&6; } 23268 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23270 $as_echo "$BOOT_JDK_VERSION" >&6; } 23271 fi # end check jdk version 23272 fi # end check rt.jar 23273 fi # end check javac 23274 fi # end check java 23275 fi # end check boot jdk found 23276 fi 23277 23278 done 23279 fi 23280 23281 fi 23282 23283 23284 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23285 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23286 # Do we have a bin/java? 23287 if test ! -x "$BOOT_JDK/bin/java"; then 23288 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23289 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23290 BOOT_JDK_FOUND=no 23291 else 23292 # Do we have a bin/javac? 23293 if test ! -x "$BOOT_JDK/bin/javac"; then 23294 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23295 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23296 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23297 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23298 BOOT_JDK_FOUND=no 23299 else 23300 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23301 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23302 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23303 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23304 BOOT_JDK_FOUND=no 23305 else 23306 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23307 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23308 23309 # Extra M4 quote needed to protect [] in grep expression. 23310 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23311 if test "x$FOUND_CORRECT_VERSION" = x; then 23312 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23313 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23314 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23315 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23316 BOOT_JDK_FOUND=no 23317 else 23318 # We're done! :-) 23319 BOOT_JDK_FOUND=yes 23320 23321 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23322 23323 # Input might be given as Windows format, start by converting to 23324 # unix format. 23325 path="$BOOT_JDK" 23326 new_path=`$CYGPATH -u "$path"` 23327 23328 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23329 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23330 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23331 # "foo.exe" is OK but "foo" is an error. 23332 # 23333 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23334 # It is also a way to make sure we got the proper file name for the real test later on. 23335 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23336 if test "x$test_shortpath" = x; then 23337 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23338 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23339 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23340 fi 23341 23342 # Call helper function which possibly converts this using DOS-style short mode. 23343 # If so, the updated path is stored in $new_path. 23344 23345 input_path="$new_path" 23346 # Check if we need to convert this using DOS-style short mode. If the path 23347 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23348 # take no chances and rewrite it. 23349 # Note: m4 eats our [], so we need to use [ and ] instead. 23350 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23351 if test "x$has_forbidden_chars" != x; then 23352 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23353 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23354 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23355 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23356 # Going to short mode and back again did indeed matter. Since short mode is 23357 # case insensitive, let's make it lowercase to improve readability. 23358 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23359 # Now convert it back to Unix-stile (cygpath) 23360 input_path=`$CYGPATH -u "$shortmode_path"` 23361 new_path="$input_path" 23362 fi 23363 fi 23364 23365 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23366 if test "x$test_cygdrive_prefix" = x; then 23367 # As a simple fix, exclude /usr/bin since it's not a real path. 23368 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23369 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23370 # a path prefixed by /cygdrive for fixpath to work. 23371 new_path="$CYGWIN_ROOT_PATH$input_path" 23372 fi 23373 fi 23374 23375 23376 if test "x$path" != "x$new_path"; then 23377 BOOT_JDK="$new_path" 23378 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23379 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23380 fi 23381 23382 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23383 23384 path="$BOOT_JDK" 23385 has_colon=`$ECHO $path | $GREP ^.:` 23386 new_path="$path" 23387 if test "x$has_colon" = x; then 23388 # Not in mixed or Windows style, start by that. 23389 new_path=`cmd //c echo $path` 23390 fi 23391 23392 23393 input_path="$new_path" 23394 # Check if we need to convert this using DOS-style short mode. If the path 23395 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23396 # take no chances and rewrite it. 23397 # Note: m4 eats our [], so we need to use [ and ] instead. 23398 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23399 if test "x$has_forbidden_chars" != x; then 23400 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23401 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23402 fi 23403 23404 23405 windows_path="$new_path" 23406 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23407 unix_path=`$CYGPATH -u "$windows_path"` 23408 new_path="$unix_path" 23409 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23410 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23411 new_path="$unix_path" 23412 fi 23413 23414 if test "x$path" != "x$new_path"; then 23415 BOOT_JDK="$new_path" 23416 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23417 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23418 fi 23419 23420 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23421 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23422 23423 else 23424 # We're on a posix platform. Hooray! :) 23425 path="$BOOT_JDK" 23426 has_space=`$ECHO "$path" | $GREP " "` 23427 if test "x$has_space" != x; then 23428 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23429 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23430 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23431 fi 23432 23433 # Use eval to expand a potential ~ 23434 eval path="$path" 23435 if test ! -f "$path" && test ! -d "$path"; then 23436 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23437 fi 23438 23439 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23440 fi 23441 23442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23443 $as_echo_n "checking for Boot JDK... " >&6; } 23444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23445 $as_echo "$BOOT_JDK" >&6; } 23446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23447 $as_echo_n "checking Boot JDK version... " >&6; } 23448 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23450 $as_echo "$BOOT_JDK_VERSION" >&6; } 23451 fi # end check jdk version 23452 fi # end check rt.jar 23453 fi # end check javac 23454 fi # end check java 23455 fi # end check boot jdk found 23456 fi 23457 23458 23459 if test "x$BOOT_JDK_FOUND" = xno; then 23460 # Now execute the test 23461 23462 if test "x$ProgramFiles" != x; then 23463 VIRTUAL_DIR="$ProgramFiles/Java" 23464 23465 windows_path="$VIRTUAL_DIR" 23466 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23467 unix_path=`$CYGPATH -u "$windows_path"` 23468 VIRTUAL_DIR="$unix_path" 23469 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23470 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23471 VIRTUAL_DIR="$unix_path" 23472 fi 23473 23474 23475 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 23476 BOOT_JDK_SUFFIX="" 23477 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23478 if test "x$ALL_JDKS_FOUND" != x; then 23479 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23480 23481 if test "x$BOOT_JDK_FOUND" = xno; then 23482 # Now execute the test 23483 23484 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23485 if test -d "$BOOT_JDK"; then 23486 BOOT_JDK_FOUND=maybe 23487 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23488 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23489 fi 23490 23491 23492 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23493 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23494 # Do we have a bin/java? 23495 if test ! -x "$BOOT_JDK/bin/java"; then 23496 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23497 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23498 BOOT_JDK_FOUND=no 23499 else 23500 # Do we have a bin/javac? 23501 if test ! -x "$BOOT_JDK/bin/javac"; then 23502 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23503 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23504 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23505 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23506 BOOT_JDK_FOUND=no 23507 else 23508 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23509 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23510 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23511 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23512 BOOT_JDK_FOUND=no 23513 else 23514 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23515 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23516 23517 # Extra M4 quote needed to protect [] in grep expression. 23518 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23519 if test "x$FOUND_CORRECT_VERSION" = x; then 23520 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23521 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23522 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23523 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23524 BOOT_JDK_FOUND=no 23525 else 23526 # We're done! :-) 23527 BOOT_JDK_FOUND=yes 23528 23529 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23530 23531 # Input might be given as Windows format, start by converting to 23532 # unix format. 23533 path="$BOOT_JDK" 23534 new_path=`$CYGPATH -u "$path"` 23535 23536 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23537 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23538 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23539 # "foo.exe" is OK but "foo" is an error. 23540 # 23541 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23542 # It is also a way to make sure we got the proper file name for the real test later on. 23543 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23544 if test "x$test_shortpath" = x; then 23545 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23546 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23547 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23548 fi 23549 23550 # Call helper function which possibly converts this using DOS-style short mode. 23551 # If so, the updated path is stored in $new_path. 23552 23553 input_path="$new_path" 23554 # Check if we need to convert this using DOS-style short mode. If the path 23555 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23556 # take no chances and rewrite it. 23557 # Note: m4 eats our [], so we need to use [ and ] instead. 23558 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23559 if test "x$has_forbidden_chars" != x; then 23560 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23561 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23562 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23563 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23564 # Going to short mode and back again did indeed matter. Since short mode is 23565 # case insensitive, let's make it lowercase to improve readability. 23566 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23567 # Now convert it back to Unix-stile (cygpath) 23568 input_path=`$CYGPATH -u "$shortmode_path"` 23569 new_path="$input_path" 23570 fi 23571 fi 23572 23573 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23574 if test "x$test_cygdrive_prefix" = x; then 23575 # As a simple fix, exclude /usr/bin since it's not a real path. 23576 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23577 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23578 # a path prefixed by /cygdrive for fixpath to work. 23579 new_path="$CYGWIN_ROOT_PATH$input_path" 23580 fi 23581 fi 23582 23583 23584 if test "x$path" != "x$new_path"; then 23585 BOOT_JDK="$new_path" 23586 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23587 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23588 fi 23589 23590 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23591 23592 path="$BOOT_JDK" 23593 has_colon=`$ECHO $path | $GREP ^.:` 23594 new_path="$path" 23595 if test "x$has_colon" = x; then 23596 # Not in mixed or Windows style, start by that. 23597 new_path=`cmd //c echo $path` 23598 fi 23599 23600 23601 input_path="$new_path" 23602 # Check if we need to convert this using DOS-style short mode. If the path 23603 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23604 # take no chances and rewrite it. 23605 # Note: m4 eats our [], so we need to use [ and ] instead. 23606 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23607 if test "x$has_forbidden_chars" != x; then 23608 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23609 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23610 fi 23611 23612 23613 windows_path="$new_path" 23614 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23615 unix_path=`$CYGPATH -u "$windows_path"` 23616 new_path="$unix_path" 23617 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23618 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23619 new_path="$unix_path" 23620 fi 23621 23622 if test "x$path" != "x$new_path"; then 23623 BOOT_JDK="$new_path" 23624 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23625 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23626 fi 23627 23628 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23629 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23630 23631 else 23632 # We're on a posix platform. Hooray! :) 23633 path="$BOOT_JDK" 23634 has_space=`$ECHO "$path" | $GREP " "` 23635 if test "x$has_space" != x; then 23636 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23637 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23638 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23639 fi 23640 23641 # Use eval to expand a potential ~ 23642 eval path="$path" 23643 if test ! -f "$path" && test ! -d "$path"; then 23644 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23645 fi 23646 23647 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23648 fi 23649 23650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23651 $as_echo_n "checking for Boot JDK... " >&6; } 23652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23653 $as_echo "$BOOT_JDK" >&6; } 23654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23655 $as_echo_n "checking Boot JDK version... " >&6; } 23656 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23658 $as_echo "$BOOT_JDK_VERSION" >&6; } 23659 fi # end check jdk version 23660 fi # end check rt.jar 23661 fi # end check javac 23662 fi # end check java 23663 fi # end check boot jdk found 23664 fi 23665 23666 done 23667 fi 23668 23669 fi 23670 23671 23672 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23673 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23674 # Do we have a bin/java? 23675 if test ! -x "$BOOT_JDK/bin/java"; then 23676 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23677 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23678 BOOT_JDK_FOUND=no 23679 else 23680 # Do we have a bin/javac? 23681 if test ! -x "$BOOT_JDK/bin/javac"; then 23682 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23683 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23684 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23685 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23686 BOOT_JDK_FOUND=no 23687 else 23688 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23689 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23690 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23691 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23692 BOOT_JDK_FOUND=no 23693 else 23694 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23695 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23696 23697 # Extra M4 quote needed to protect [] in grep expression. 23698 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23699 if test "x$FOUND_CORRECT_VERSION" = x; then 23700 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23701 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23702 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23703 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23704 BOOT_JDK_FOUND=no 23705 else 23706 # We're done! :-) 23707 BOOT_JDK_FOUND=yes 23708 23709 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23710 23711 # Input might be given as Windows format, start by converting to 23712 # unix format. 23713 path="$BOOT_JDK" 23714 new_path=`$CYGPATH -u "$path"` 23715 23716 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23717 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23718 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23719 # "foo.exe" is OK but "foo" is an error. 23720 # 23721 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23722 # It is also a way to make sure we got the proper file name for the real test later on. 23723 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23724 if test "x$test_shortpath" = x; then 23725 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23726 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23727 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23728 fi 23729 23730 # Call helper function which possibly converts this using DOS-style short mode. 23731 # If so, the updated path is stored in $new_path. 23732 23733 input_path="$new_path" 23734 # Check if we need to convert this using DOS-style short mode. If the path 23735 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23736 # take no chances and rewrite it. 23737 # Note: m4 eats our [], so we need to use [ and ] instead. 23738 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23739 if test "x$has_forbidden_chars" != x; then 23740 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23741 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23742 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23743 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23744 # Going to short mode and back again did indeed matter. Since short mode is 23745 # case insensitive, let's make it lowercase to improve readability. 23746 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23747 # Now convert it back to Unix-stile (cygpath) 23748 input_path=`$CYGPATH -u "$shortmode_path"` 23749 new_path="$input_path" 23750 fi 23751 fi 23752 23753 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23754 if test "x$test_cygdrive_prefix" = x; then 23755 # As a simple fix, exclude /usr/bin since it's not a real path. 23756 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23757 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23758 # a path prefixed by /cygdrive for fixpath to work. 23759 new_path="$CYGWIN_ROOT_PATH$input_path" 23760 fi 23761 fi 23762 23763 23764 if test "x$path" != "x$new_path"; then 23765 BOOT_JDK="$new_path" 23766 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23767 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23768 fi 23769 23770 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23771 23772 path="$BOOT_JDK" 23773 has_colon=`$ECHO $path | $GREP ^.:` 23774 new_path="$path" 23775 if test "x$has_colon" = x; then 23776 # Not in mixed or Windows style, start by that. 23777 new_path=`cmd //c echo $path` 23778 fi 23779 23780 23781 input_path="$new_path" 23782 # Check if we need to convert this using DOS-style short mode. If the path 23783 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23784 # take no chances and rewrite it. 23785 # Note: m4 eats our [], so we need to use [ and ] instead. 23786 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23787 if test "x$has_forbidden_chars" != x; then 23788 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23789 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23790 fi 23791 23792 23793 windows_path="$new_path" 23794 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23795 unix_path=`$CYGPATH -u "$windows_path"` 23796 new_path="$unix_path" 23797 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23798 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23799 new_path="$unix_path" 23800 fi 23801 23802 if test "x$path" != "x$new_path"; then 23803 BOOT_JDK="$new_path" 23804 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23805 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23806 fi 23807 23808 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23809 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23810 23811 else 23812 # We're on a posix platform. Hooray! :) 23813 path="$BOOT_JDK" 23814 has_space=`$ECHO "$path" | $GREP " "` 23815 if test "x$has_space" != x; then 23816 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23817 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23818 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23819 fi 23820 23821 # Use eval to expand a potential ~ 23822 eval path="$path" 23823 if test ! -f "$path" && test ! -d "$path"; then 23824 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23825 fi 23826 23827 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23828 fi 23829 23830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23831 $as_echo_n "checking for Boot JDK... " >&6; } 23832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23833 $as_echo "$BOOT_JDK" >&6; } 23834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23835 $as_echo_n "checking Boot JDK version... " >&6; } 23836 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23838 $as_echo "$BOOT_JDK_VERSION" >&6; } 23839 fi # end check jdk version 23840 fi # end check rt.jar 23841 fi # end check javac 23842 fi # end check java 23843 fi # end check boot jdk found 23844 fi 23845 23846 23847 if test "x$BOOT_JDK_FOUND" = xno; then 23848 # Now execute the test 23849 23850 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 23851 BOOT_JDK_SUFFIX="" 23852 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23853 if test "x$ALL_JDKS_FOUND" != x; then 23854 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23855 23856 if test "x$BOOT_JDK_FOUND" = xno; then 23857 # Now execute the test 23858 23859 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23860 if test -d "$BOOT_JDK"; then 23861 BOOT_JDK_FOUND=maybe 23862 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23863 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23864 fi 23865 23866 23867 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23868 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23869 # Do we have a bin/java? 23870 if test ! -x "$BOOT_JDK/bin/java"; then 23871 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23872 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23873 BOOT_JDK_FOUND=no 23874 else 23875 # Do we have a bin/javac? 23876 if test ! -x "$BOOT_JDK/bin/javac"; then 23877 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23878 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23879 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23880 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23881 BOOT_JDK_FOUND=no 23882 else 23883 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23884 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23885 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23886 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23887 BOOT_JDK_FOUND=no 23888 else 23889 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23890 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23891 23892 # Extra M4 quote needed to protect [] in grep expression. 23893 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23894 if test "x$FOUND_CORRECT_VERSION" = x; then 23895 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23896 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23897 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23898 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23899 BOOT_JDK_FOUND=no 23900 else 23901 # We're done! :-) 23902 BOOT_JDK_FOUND=yes 23903 23904 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23905 23906 # Input might be given as Windows format, start by converting to 23907 # unix format. 23908 path="$BOOT_JDK" 23909 new_path=`$CYGPATH -u "$path"` 23910 23911 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23912 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23913 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23914 # "foo.exe" is OK but "foo" is an error. 23915 # 23916 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23917 # It is also a way to make sure we got the proper file name for the real test later on. 23918 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23919 if test "x$test_shortpath" = x; then 23920 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23921 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23922 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23923 fi 23924 23925 # Call helper function which possibly converts this using DOS-style short mode. 23926 # If so, the updated path is stored in $new_path. 23927 23928 input_path="$new_path" 23929 # Check if we need to convert this using DOS-style short mode. If the path 23930 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23931 # take no chances and rewrite it. 23932 # Note: m4 eats our [], so we need to use [ and ] instead. 23933 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23934 if test "x$has_forbidden_chars" != x; then 23935 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23936 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23937 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23938 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23939 # Going to short mode and back again did indeed matter. Since short mode is 23940 # case insensitive, let's make it lowercase to improve readability. 23941 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23942 # Now convert it back to Unix-stile (cygpath) 23943 input_path=`$CYGPATH -u "$shortmode_path"` 23944 new_path="$input_path" 23945 fi 23946 fi 23947 23948 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23949 if test "x$test_cygdrive_prefix" = x; then 23950 # As a simple fix, exclude /usr/bin since it's not a real path. 23951 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23952 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23953 # a path prefixed by /cygdrive for fixpath to work. 23954 new_path="$CYGWIN_ROOT_PATH$input_path" 23955 fi 23956 fi 23957 23958 23959 if test "x$path" != "x$new_path"; then 23960 BOOT_JDK="$new_path" 23961 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23962 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23963 fi 23964 23965 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23966 23967 path="$BOOT_JDK" 23968 has_colon=`$ECHO $path | $GREP ^.:` 23969 new_path="$path" 23970 if test "x$has_colon" = x; then 23971 # Not in mixed or Windows style, start by that. 23972 new_path=`cmd //c echo $path` 23973 fi 23974 23975 23976 input_path="$new_path" 23977 # Check if we need to convert this using DOS-style short mode. If the path 23978 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23979 # take no chances and rewrite it. 23980 # Note: m4 eats our [], so we need to use [ and ] instead. 23981 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23982 if test "x$has_forbidden_chars" != x; then 23983 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23984 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23985 fi 23986 23987 23988 windows_path="$new_path" 23989 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23990 unix_path=`$CYGPATH -u "$windows_path"` 23991 new_path="$unix_path" 23992 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23993 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23994 new_path="$unix_path" 23995 fi 23996 23997 if test "x$path" != "x$new_path"; then 23998 BOOT_JDK="$new_path" 23999 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24000 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24001 fi 24002 24003 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24004 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24005 24006 else 24007 # We're on a posix platform. Hooray! :) 24008 path="$BOOT_JDK" 24009 has_space=`$ECHO "$path" | $GREP " "` 24010 if test "x$has_space" != x; then 24011 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24012 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24013 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24014 fi 24015 24016 # Use eval to expand a potential ~ 24017 eval path="$path" 24018 if test ! -f "$path" && test ! -d "$path"; then 24019 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24020 fi 24021 24022 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24023 fi 24024 24025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24026 $as_echo_n "checking for Boot JDK... " >&6; } 24027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24028 $as_echo "$BOOT_JDK" >&6; } 24029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24030 $as_echo_n "checking Boot JDK version... " >&6; } 24031 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24033 $as_echo "$BOOT_JDK_VERSION" >&6; } 24034 fi # end check jdk version 24035 fi # end check rt.jar 24036 fi # end check javac 24037 fi # end check java 24038 fi # end check boot jdk found 24039 fi 24040 24041 done 24042 fi 24043 24044 24045 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24046 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24047 # Do we have a bin/java? 24048 if test ! -x "$BOOT_JDK/bin/java"; then 24049 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24050 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24051 BOOT_JDK_FOUND=no 24052 else 24053 # Do we have a bin/javac? 24054 if test ! -x "$BOOT_JDK/bin/javac"; then 24055 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24056 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24057 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24058 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24059 BOOT_JDK_FOUND=no 24060 else 24061 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24062 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24063 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24064 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24065 BOOT_JDK_FOUND=no 24066 else 24067 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24068 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24069 24070 # Extra M4 quote needed to protect [] in grep expression. 24071 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24072 if test "x$FOUND_CORRECT_VERSION" = x; then 24073 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24074 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24075 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24076 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24077 BOOT_JDK_FOUND=no 24078 else 24079 # We're done! :-) 24080 BOOT_JDK_FOUND=yes 24081 24082 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24083 24084 # Input might be given as Windows format, start by converting to 24085 # unix format. 24086 path="$BOOT_JDK" 24087 new_path=`$CYGPATH -u "$path"` 24088 24089 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24090 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24091 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24092 # "foo.exe" is OK but "foo" is an error. 24093 # 24094 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24095 # It is also a way to make sure we got the proper file name for the real test later on. 24096 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24097 if test "x$test_shortpath" = x; then 24098 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24099 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24100 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24101 fi 24102 24103 # Call helper function which possibly converts this using DOS-style short mode. 24104 # If so, the updated path is stored in $new_path. 24105 24106 input_path="$new_path" 24107 # Check if we need to convert this using DOS-style short mode. If the path 24108 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24109 # take no chances and rewrite it. 24110 # Note: m4 eats our [], so we need to use [ and ] instead. 24111 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24112 if test "x$has_forbidden_chars" != x; then 24113 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24114 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24115 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24116 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24117 # Going to short mode and back again did indeed matter. Since short mode is 24118 # case insensitive, let's make it lowercase to improve readability. 24119 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24120 # Now convert it back to Unix-stile (cygpath) 24121 input_path=`$CYGPATH -u "$shortmode_path"` 24122 new_path="$input_path" 24123 fi 24124 fi 24125 24126 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24127 if test "x$test_cygdrive_prefix" = x; then 24128 # As a simple fix, exclude /usr/bin since it's not a real path. 24129 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24130 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24131 # a path prefixed by /cygdrive for fixpath to work. 24132 new_path="$CYGWIN_ROOT_PATH$input_path" 24133 fi 24134 fi 24135 24136 24137 if test "x$path" != "x$new_path"; then 24138 BOOT_JDK="$new_path" 24139 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24140 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24141 fi 24142 24143 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24144 24145 path="$BOOT_JDK" 24146 has_colon=`$ECHO $path | $GREP ^.:` 24147 new_path="$path" 24148 if test "x$has_colon" = x; then 24149 # Not in mixed or Windows style, start by that. 24150 new_path=`cmd //c echo $path` 24151 fi 24152 24153 24154 input_path="$new_path" 24155 # Check if we need to convert this using DOS-style short mode. If the path 24156 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24157 # take no chances and rewrite it. 24158 # Note: m4 eats our [], so we need to use [ and ] instead. 24159 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24160 if test "x$has_forbidden_chars" != x; then 24161 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24162 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24163 fi 24164 24165 24166 windows_path="$new_path" 24167 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24168 unix_path=`$CYGPATH -u "$windows_path"` 24169 new_path="$unix_path" 24170 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24171 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24172 new_path="$unix_path" 24173 fi 24174 24175 if test "x$path" != "x$new_path"; then 24176 BOOT_JDK="$new_path" 24177 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24178 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24179 fi 24180 24181 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24182 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24183 24184 else 24185 # We're on a posix platform. Hooray! :) 24186 path="$BOOT_JDK" 24187 has_space=`$ECHO "$path" | $GREP " "` 24188 if test "x$has_space" != x; then 24189 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24190 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24191 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24192 fi 24193 24194 # Use eval to expand a potential ~ 24195 eval path="$path" 24196 if test ! -f "$path" && test ! -d "$path"; then 24197 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24198 fi 24199 24200 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24201 fi 24202 24203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24204 $as_echo_n "checking for Boot JDK... " >&6; } 24205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24206 $as_echo "$BOOT_JDK" >&6; } 24207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24208 $as_echo_n "checking Boot JDK version... " >&6; } 24209 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24211 $as_echo "$BOOT_JDK_VERSION" >&6; } 24212 fi # end check jdk version 24213 fi # end check rt.jar 24214 fi # end check javac 24215 fi # end check java 24216 fi # end check boot jdk found 24217 fi 24218 24219 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 24220 24221 if test "x$BOOT_JDK_FOUND" = xno; then 24222 # Now execute the test 24223 24224 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 24225 BOOT_JDK_SUFFIX="/Contents/Home" 24226 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24227 if test "x$ALL_JDKS_FOUND" != x; then 24228 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24229 24230 if test "x$BOOT_JDK_FOUND" = xno; then 24231 # Now execute the test 24232 24233 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24234 if test -d "$BOOT_JDK"; then 24235 BOOT_JDK_FOUND=maybe 24236 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24237 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24238 fi 24239 24240 24241 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24242 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24243 # Do we have a bin/java? 24244 if test ! -x "$BOOT_JDK/bin/java"; then 24245 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24246 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24247 BOOT_JDK_FOUND=no 24248 else 24249 # Do we have a bin/javac? 24250 if test ! -x "$BOOT_JDK/bin/javac"; then 24251 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24252 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24253 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24254 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24255 BOOT_JDK_FOUND=no 24256 else 24257 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24258 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24259 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24260 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24261 BOOT_JDK_FOUND=no 24262 else 24263 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24264 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24265 24266 # Extra M4 quote needed to protect [] in grep expression. 24267 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24268 if test "x$FOUND_CORRECT_VERSION" = x; then 24269 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24270 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24271 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24272 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24273 BOOT_JDK_FOUND=no 24274 else 24275 # We're done! :-) 24276 BOOT_JDK_FOUND=yes 24277 24278 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24279 24280 # Input might be given as Windows format, start by converting to 24281 # unix format. 24282 path="$BOOT_JDK" 24283 new_path=`$CYGPATH -u "$path"` 24284 24285 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24286 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24287 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24288 # "foo.exe" is OK but "foo" is an error. 24289 # 24290 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24291 # It is also a way to make sure we got the proper file name for the real test later on. 24292 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24293 if test "x$test_shortpath" = x; then 24294 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24295 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24296 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24297 fi 24298 24299 # Call helper function which possibly converts this using DOS-style short mode. 24300 # If so, the updated path is stored in $new_path. 24301 24302 input_path="$new_path" 24303 # Check if we need to convert this using DOS-style short mode. If the path 24304 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24305 # take no chances and rewrite it. 24306 # Note: m4 eats our [], so we need to use [ and ] instead. 24307 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24308 if test "x$has_forbidden_chars" != x; then 24309 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24310 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24311 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24312 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24313 # Going to short mode and back again did indeed matter. Since short mode is 24314 # case insensitive, let's make it lowercase to improve readability. 24315 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24316 # Now convert it back to Unix-stile (cygpath) 24317 input_path=`$CYGPATH -u "$shortmode_path"` 24318 new_path="$input_path" 24319 fi 24320 fi 24321 24322 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24323 if test "x$test_cygdrive_prefix" = x; then 24324 # As a simple fix, exclude /usr/bin since it's not a real path. 24325 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24326 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24327 # a path prefixed by /cygdrive for fixpath to work. 24328 new_path="$CYGWIN_ROOT_PATH$input_path" 24329 fi 24330 fi 24331 24332 24333 if test "x$path" != "x$new_path"; then 24334 BOOT_JDK="$new_path" 24335 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24336 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24337 fi 24338 24339 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24340 24341 path="$BOOT_JDK" 24342 has_colon=`$ECHO $path | $GREP ^.:` 24343 new_path="$path" 24344 if test "x$has_colon" = x; then 24345 # Not in mixed or Windows style, start by that. 24346 new_path=`cmd //c echo $path` 24347 fi 24348 24349 24350 input_path="$new_path" 24351 # Check if we need to convert this using DOS-style short mode. If the path 24352 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24353 # take no chances and rewrite it. 24354 # Note: m4 eats our [], so we need to use [ and ] instead. 24355 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24356 if test "x$has_forbidden_chars" != x; then 24357 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24358 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24359 fi 24360 24361 24362 windows_path="$new_path" 24363 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24364 unix_path=`$CYGPATH -u "$windows_path"` 24365 new_path="$unix_path" 24366 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24367 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24368 new_path="$unix_path" 24369 fi 24370 24371 if test "x$path" != "x$new_path"; then 24372 BOOT_JDK="$new_path" 24373 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24374 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24375 fi 24376 24377 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24378 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24379 24380 else 24381 # We're on a posix platform. Hooray! :) 24382 path="$BOOT_JDK" 24383 has_space=`$ECHO "$path" | $GREP " "` 24384 if test "x$has_space" != x; then 24385 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24386 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24387 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24388 fi 24389 24390 # Use eval to expand a potential ~ 24391 eval path="$path" 24392 if test ! -f "$path" && test ! -d "$path"; then 24393 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24394 fi 24395 24396 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24397 fi 24398 24399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24400 $as_echo_n "checking for Boot JDK... " >&6; } 24401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24402 $as_echo "$BOOT_JDK" >&6; } 24403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24404 $as_echo_n "checking Boot JDK version... " >&6; } 24405 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24407 $as_echo "$BOOT_JDK_VERSION" >&6; } 24408 fi # end check jdk version 24409 fi # end check rt.jar 24410 fi # end check javac 24411 fi # end check java 24412 fi # end check boot jdk found 24413 fi 24414 24415 done 24416 fi 24417 24418 24419 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24420 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24421 # Do we have a bin/java? 24422 if test ! -x "$BOOT_JDK/bin/java"; then 24423 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24424 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24425 BOOT_JDK_FOUND=no 24426 else 24427 # Do we have a bin/javac? 24428 if test ! -x "$BOOT_JDK/bin/javac"; then 24429 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24430 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24431 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24432 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24433 BOOT_JDK_FOUND=no 24434 else 24435 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24436 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24437 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24438 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24439 BOOT_JDK_FOUND=no 24440 else 24441 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24442 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24443 24444 # Extra M4 quote needed to protect [] in grep expression. 24445 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24446 if test "x$FOUND_CORRECT_VERSION" = x; then 24447 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24448 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24449 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24450 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24451 BOOT_JDK_FOUND=no 24452 else 24453 # We're done! :-) 24454 BOOT_JDK_FOUND=yes 24455 24456 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24457 24458 # Input might be given as Windows format, start by converting to 24459 # unix format. 24460 path="$BOOT_JDK" 24461 new_path=`$CYGPATH -u "$path"` 24462 24463 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24464 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24465 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24466 # "foo.exe" is OK but "foo" is an error. 24467 # 24468 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24469 # It is also a way to make sure we got the proper file name for the real test later on. 24470 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24471 if test "x$test_shortpath" = x; then 24472 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24473 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24474 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24475 fi 24476 24477 # Call helper function which possibly converts this using DOS-style short mode. 24478 # If so, the updated path is stored in $new_path. 24479 24480 input_path="$new_path" 24481 # Check if we need to convert this using DOS-style short mode. If the path 24482 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24483 # take no chances and rewrite it. 24484 # Note: m4 eats our [], so we need to use [ and ] instead. 24485 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24486 if test "x$has_forbidden_chars" != x; then 24487 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24488 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24489 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24490 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24491 # Going to short mode and back again did indeed matter. Since short mode is 24492 # case insensitive, let's make it lowercase to improve readability. 24493 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24494 # Now convert it back to Unix-stile (cygpath) 24495 input_path=`$CYGPATH -u "$shortmode_path"` 24496 new_path="$input_path" 24497 fi 24498 fi 24499 24500 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24501 if test "x$test_cygdrive_prefix" = x; then 24502 # As a simple fix, exclude /usr/bin since it's not a real path. 24503 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24504 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24505 # a path prefixed by /cygdrive for fixpath to work. 24506 new_path="$CYGWIN_ROOT_PATH$input_path" 24507 fi 24508 fi 24509 24510 24511 if test "x$path" != "x$new_path"; then 24512 BOOT_JDK="$new_path" 24513 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24514 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24515 fi 24516 24517 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24518 24519 path="$BOOT_JDK" 24520 has_colon=`$ECHO $path | $GREP ^.:` 24521 new_path="$path" 24522 if test "x$has_colon" = x; then 24523 # Not in mixed or Windows style, start by that. 24524 new_path=`cmd //c echo $path` 24525 fi 24526 24527 24528 input_path="$new_path" 24529 # Check if we need to convert this using DOS-style short mode. If the path 24530 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24531 # take no chances and rewrite it. 24532 # Note: m4 eats our [], so we need to use [ and ] instead. 24533 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24534 if test "x$has_forbidden_chars" != x; then 24535 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24536 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24537 fi 24538 24539 24540 windows_path="$new_path" 24541 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24542 unix_path=`$CYGPATH -u "$windows_path"` 24543 new_path="$unix_path" 24544 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24545 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24546 new_path="$unix_path" 24547 fi 24548 24549 if test "x$path" != "x$new_path"; then 24550 BOOT_JDK="$new_path" 24551 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24552 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24553 fi 24554 24555 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24556 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24557 24558 else 24559 # We're on a posix platform. Hooray! :) 24560 path="$BOOT_JDK" 24561 has_space=`$ECHO "$path" | $GREP " "` 24562 if test "x$has_space" != x; then 24563 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24564 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24565 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24566 fi 24567 24568 # Use eval to expand a potential ~ 24569 eval path="$path" 24570 if test ! -f "$path" && test ! -d "$path"; then 24571 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24572 fi 24573 24574 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24575 fi 24576 24577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24578 $as_echo_n "checking for Boot JDK... " >&6; } 24579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24580 $as_echo "$BOOT_JDK" >&6; } 24581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24582 $as_echo_n "checking Boot JDK version... " >&6; } 24583 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24585 $as_echo "$BOOT_JDK_VERSION" >&6; } 24586 fi # end check jdk version 24587 fi # end check rt.jar 24588 fi # end check javac 24589 fi # end check java 24590 fi # end check boot jdk found 24591 fi 24592 24593 24594 if test "x$BOOT_JDK_FOUND" = xno; then 24595 # Now execute the test 24596 24597 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 24598 BOOT_JDK_SUFFIX="/Contents/Home" 24599 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24600 if test "x$ALL_JDKS_FOUND" != x; then 24601 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24602 24603 if test "x$BOOT_JDK_FOUND" = xno; then 24604 # Now execute the test 24605 24606 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24607 if test -d "$BOOT_JDK"; then 24608 BOOT_JDK_FOUND=maybe 24609 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24610 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24611 fi 24612 24613 24614 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24615 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24616 # Do we have a bin/java? 24617 if test ! -x "$BOOT_JDK/bin/java"; then 24618 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24619 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24620 BOOT_JDK_FOUND=no 24621 else 24622 # Do we have a bin/javac? 24623 if test ! -x "$BOOT_JDK/bin/javac"; then 24624 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24625 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24626 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24627 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24628 BOOT_JDK_FOUND=no 24629 else 24630 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24631 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24632 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24633 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24634 BOOT_JDK_FOUND=no 24635 else 24636 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24637 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24638 24639 # Extra M4 quote needed to protect [] in grep expression. 24640 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24641 if test "x$FOUND_CORRECT_VERSION" = x; then 24642 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24643 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24644 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24645 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24646 BOOT_JDK_FOUND=no 24647 else 24648 # We're done! :-) 24649 BOOT_JDK_FOUND=yes 24650 24651 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24652 24653 # Input might be given as Windows format, start by converting to 24654 # unix format. 24655 path="$BOOT_JDK" 24656 new_path=`$CYGPATH -u "$path"` 24657 24658 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24659 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24660 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24661 # "foo.exe" is OK but "foo" is an error. 24662 # 24663 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24664 # It is also a way to make sure we got the proper file name for the real test later on. 24665 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24666 if test "x$test_shortpath" = x; then 24667 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24668 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24669 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24670 fi 24671 24672 # Call helper function which possibly converts this using DOS-style short mode. 24673 # If so, the updated path is stored in $new_path. 24674 24675 input_path="$new_path" 24676 # Check if we need to convert this using DOS-style short mode. If the path 24677 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24678 # take no chances and rewrite it. 24679 # Note: m4 eats our [], so we need to use [ and ] instead. 24680 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24681 if test "x$has_forbidden_chars" != x; then 24682 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24683 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24684 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24685 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24686 # Going to short mode and back again did indeed matter. Since short mode is 24687 # case insensitive, let's make it lowercase to improve readability. 24688 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24689 # Now convert it back to Unix-stile (cygpath) 24690 input_path=`$CYGPATH -u "$shortmode_path"` 24691 new_path="$input_path" 24692 fi 24693 fi 24694 24695 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24696 if test "x$test_cygdrive_prefix" = x; then 24697 # As a simple fix, exclude /usr/bin since it's not a real path. 24698 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24699 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24700 # a path prefixed by /cygdrive for fixpath to work. 24701 new_path="$CYGWIN_ROOT_PATH$input_path" 24702 fi 24703 fi 24704 24705 24706 if test "x$path" != "x$new_path"; then 24707 BOOT_JDK="$new_path" 24708 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24709 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24710 fi 24711 24712 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24713 24714 path="$BOOT_JDK" 24715 has_colon=`$ECHO $path | $GREP ^.:` 24716 new_path="$path" 24717 if test "x$has_colon" = x; then 24718 # Not in mixed or Windows style, start by that. 24719 new_path=`cmd //c echo $path` 24720 fi 24721 24722 24723 input_path="$new_path" 24724 # Check if we need to convert this using DOS-style short mode. If the path 24725 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24726 # take no chances and rewrite it. 24727 # Note: m4 eats our [], so we need to use [ and ] instead. 24728 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24729 if test "x$has_forbidden_chars" != x; then 24730 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24731 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24732 fi 24733 24734 24735 windows_path="$new_path" 24736 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24737 unix_path=`$CYGPATH -u "$windows_path"` 24738 new_path="$unix_path" 24739 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24740 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24741 new_path="$unix_path" 24742 fi 24743 24744 if test "x$path" != "x$new_path"; then 24745 BOOT_JDK="$new_path" 24746 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24747 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24748 fi 24749 24750 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24751 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24752 24753 else 24754 # We're on a posix platform. Hooray! :) 24755 path="$BOOT_JDK" 24756 has_space=`$ECHO "$path" | $GREP " "` 24757 if test "x$has_space" != x; then 24758 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24759 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24760 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24761 fi 24762 24763 # Use eval to expand a potential ~ 24764 eval path="$path" 24765 if test ! -f "$path" && test ! -d "$path"; then 24766 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24767 fi 24768 24769 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24770 fi 24771 24772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24773 $as_echo_n "checking for Boot JDK... " >&6; } 24774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24775 $as_echo "$BOOT_JDK" >&6; } 24776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24777 $as_echo_n "checking Boot JDK version... " >&6; } 24778 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24780 $as_echo "$BOOT_JDK_VERSION" >&6; } 24781 fi # end check jdk version 24782 fi # end check rt.jar 24783 fi # end check javac 24784 fi # end check java 24785 fi # end check boot jdk found 24786 fi 24787 24788 done 24789 fi 24790 24791 24792 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24793 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24794 # Do we have a bin/java? 24795 if test ! -x "$BOOT_JDK/bin/java"; then 24796 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24797 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24798 BOOT_JDK_FOUND=no 24799 else 24800 # Do we have a bin/javac? 24801 if test ! -x "$BOOT_JDK/bin/javac"; then 24802 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24803 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24804 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24805 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24806 BOOT_JDK_FOUND=no 24807 else 24808 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24809 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24810 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24811 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24812 BOOT_JDK_FOUND=no 24813 else 24814 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24815 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24816 24817 # Extra M4 quote needed to protect [] in grep expression. 24818 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24819 if test "x$FOUND_CORRECT_VERSION" = x; then 24820 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24821 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24822 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24823 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24824 BOOT_JDK_FOUND=no 24825 else 24826 # We're done! :-) 24827 BOOT_JDK_FOUND=yes 24828 24829 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24830 24831 # Input might be given as Windows format, start by converting to 24832 # unix format. 24833 path="$BOOT_JDK" 24834 new_path=`$CYGPATH -u "$path"` 24835 24836 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24837 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24838 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24839 # "foo.exe" is OK but "foo" is an error. 24840 # 24841 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24842 # It is also a way to make sure we got the proper file name for the real test later on. 24843 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24844 if test "x$test_shortpath" = x; then 24845 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24846 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24847 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24848 fi 24849 24850 # Call helper function which possibly converts this using DOS-style short mode. 24851 # If so, the updated path is stored in $new_path. 24852 24853 input_path="$new_path" 24854 # Check if we need to convert this using DOS-style short mode. If the path 24855 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24856 # take no chances and rewrite it. 24857 # Note: m4 eats our [], so we need to use [ and ] instead. 24858 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24859 if test "x$has_forbidden_chars" != x; then 24860 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24861 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24862 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24863 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24864 # Going to short mode and back again did indeed matter. Since short mode is 24865 # case insensitive, let's make it lowercase to improve readability. 24866 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24867 # Now convert it back to Unix-stile (cygpath) 24868 input_path=`$CYGPATH -u "$shortmode_path"` 24869 new_path="$input_path" 24870 fi 24871 fi 24872 24873 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24874 if test "x$test_cygdrive_prefix" = x; then 24875 # As a simple fix, exclude /usr/bin since it's not a real path. 24876 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24877 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24878 # a path prefixed by /cygdrive for fixpath to work. 24879 new_path="$CYGWIN_ROOT_PATH$input_path" 24880 fi 24881 fi 24882 24883 24884 if test "x$path" != "x$new_path"; then 24885 BOOT_JDK="$new_path" 24886 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24887 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24888 fi 24889 24890 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24891 24892 path="$BOOT_JDK" 24893 has_colon=`$ECHO $path | $GREP ^.:` 24894 new_path="$path" 24895 if test "x$has_colon" = x; then 24896 # Not in mixed or Windows style, start by that. 24897 new_path=`cmd //c echo $path` 24898 fi 24899 24900 24901 input_path="$new_path" 24902 # Check if we need to convert this using DOS-style short mode. If the path 24903 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24904 # take no chances and rewrite it. 24905 # Note: m4 eats our [], so we need to use [ and ] instead. 24906 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24907 if test "x$has_forbidden_chars" != x; then 24908 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24909 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24910 fi 24911 24912 24913 windows_path="$new_path" 24914 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24915 unix_path=`$CYGPATH -u "$windows_path"` 24916 new_path="$unix_path" 24917 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24918 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24919 new_path="$unix_path" 24920 fi 24921 24922 if test "x$path" != "x$new_path"; then 24923 BOOT_JDK="$new_path" 24924 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24925 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24926 fi 24927 24928 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24929 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24930 24931 else 24932 # We're on a posix platform. Hooray! :) 24933 path="$BOOT_JDK" 24934 has_space=`$ECHO "$path" | $GREP " "` 24935 if test "x$has_space" != x; then 24936 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24937 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24938 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24939 fi 24940 24941 # Use eval to expand a potential ~ 24942 eval path="$path" 24943 if test ! -f "$path" && test ! -d "$path"; then 24944 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24945 fi 24946 24947 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24948 fi 24949 24950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24951 $as_echo_n "checking for Boot JDK... " >&6; } 24952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24953 $as_echo "$BOOT_JDK" >&6; } 24954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24955 $as_echo_n "checking Boot JDK version... " >&6; } 24956 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24958 $as_echo "$BOOT_JDK_VERSION" >&6; } 24959 fi # end check jdk version 24960 fi # end check rt.jar 24961 fi # end check javac 24962 fi # end check java 24963 fi # end check boot jdk found 24964 fi 24965 24966 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 24967 24968 if test "x$BOOT_JDK_FOUND" = xno; then 24969 # Now execute the test 24970 24971 BOOT_JDK_PREFIX="/usr/lib/jvm" 24972 BOOT_JDK_SUFFIX="" 24973 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24974 if test "x$ALL_JDKS_FOUND" != x; then 24975 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24976 24977 if test "x$BOOT_JDK_FOUND" = xno; then 24978 # Now execute the test 24979 24980 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24981 if test -d "$BOOT_JDK"; then 24982 BOOT_JDK_FOUND=maybe 24983 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24984 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24985 fi 24986 24987 24988 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24989 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24990 # Do we have a bin/java? 24991 if test ! -x "$BOOT_JDK/bin/java"; then 24992 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24993 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24994 BOOT_JDK_FOUND=no 24995 else 24996 # Do we have a bin/javac? 24997 if test ! -x "$BOOT_JDK/bin/javac"; then 24998 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24999 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25000 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25001 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25002 BOOT_JDK_FOUND=no 25003 else 25004 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 25005 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 25006 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 25007 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 25008 BOOT_JDK_FOUND=no 25009 else 25010 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25011 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25012 25013 # Extra M4 quote needed to protect [] in grep expression. 25014 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25015 if test "x$FOUND_CORRECT_VERSION" = x; then 25016 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25017 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25018 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25019 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25020 BOOT_JDK_FOUND=no 25021 else 25022 # We're done! :-) 25023 BOOT_JDK_FOUND=yes 25024 25025 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25026 25027 # Input might be given as Windows format, start by converting to 25028 # unix format. 25029 path="$BOOT_JDK" 25030 new_path=`$CYGPATH -u "$path"` 25031 25032 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25033 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25034 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25035 # "foo.exe" is OK but "foo" is an error. 25036 # 25037 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25038 # It is also a way to make sure we got the proper file name for the real test later on. 25039 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25040 if test "x$test_shortpath" = x; then 25041 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25042 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25043 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25044 fi 25045 25046 # Call helper function which possibly converts this using DOS-style short mode. 25047 # If so, the updated path is stored in $new_path. 25048 25049 input_path="$new_path" 25050 # Check if we need to convert this using DOS-style short mode. If the path 25051 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25052 # take no chances and rewrite it. 25053 # Note: m4 eats our [], so we need to use [ and ] instead. 25054 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25055 if test "x$has_forbidden_chars" != x; then 25056 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25057 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25058 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25059 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25060 # Going to short mode and back again did indeed matter. Since short mode is 25061 # case insensitive, let's make it lowercase to improve readability. 25062 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25063 # Now convert it back to Unix-stile (cygpath) 25064 input_path=`$CYGPATH -u "$shortmode_path"` 25065 new_path="$input_path" 25066 fi 25067 fi 25068 25069 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25070 if test "x$test_cygdrive_prefix" = x; then 25071 # As a simple fix, exclude /usr/bin since it's not a real path. 25072 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25073 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25074 # a path prefixed by /cygdrive for fixpath to work. 25075 new_path="$CYGWIN_ROOT_PATH$input_path" 25076 fi 25077 fi 25078 25079 25080 if test "x$path" != "x$new_path"; then 25081 BOOT_JDK="$new_path" 25082 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25083 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25084 fi 25085 25086 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25087 25088 path="$BOOT_JDK" 25089 has_colon=`$ECHO $path | $GREP ^.:` 25090 new_path="$path" 25091 if test "x$has_colon" = x; then 25092 # Not in mixed or Windows style, start by that. 25093 new_path=`cmd //c echo $path` 25094 fi 25095 25096 25097 input_path="$new_path" 25098 # Check if we need to convert this using DOS-style short mode. If the path 25099 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25100 # take no chances and rewrite it. 25101 # Note: m4 eats our [], so we need to use [ and ] instead. 25102 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25103 if test "x$has_forbidden_chars" != x; then 25104 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25105 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25106 fi 25107 25108 25109 windows_path="$new_path" 25110 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25111 unix_path=`$CYGPATH -u "$windows_path"` 25112 new_path="$unix_path" 25113 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25114 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25115 new_path="$unix_path" 25116 fi 25117 25118 if test "x$path" != "x$new_path"; then 25119 BOOT_JDK="$new_path" 25120 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25121 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25122 fi 25123 25124 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25125 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25126 25127 else 25128 # We're on a posix platform. Hooray! :) 25129 path="$BOOT_JDK" 25130 has_space=`$ECHO "$path" | $GREP " "` 25131 if test "x$has_space" != x; then 25132 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25133 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25134 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25135 fi 25136 25137 # Use eval to expand a potential ~ 25138 eval path="$path" 25139 if test ! -f "$path" && test ! -d "$path"; then 25140 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25141 fi 25142 25143 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25144 fi 25145 25146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25147 $as_echo_n "checking for Boot JDK... " >&6; } 25148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25149 $as_echo "$BOOT_JDK" >&6; } 25150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25151 $as_echo_n "checking Boot JDK version... " >&6; } 25152 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25154 $as_echo "$BOOT_JDK_VERSION" >&6; } 25155 fi # end check jdk version 25156 fi # end check rt.jar 25157 fi # end check javac 25158 fi # end check java 25159 fi # end check boot jdk found 25160 fi 25161 25162 done 25163 fi 25164 25165 25166 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25167 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25168 # Do we have a bin/java? 25169 if test ! -x "$BOOT_JDK/bin/java"; then 25170 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25171 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25172 BOOT_JDK_FOUND=no 25173 else 25174 # Do we have a bin/javac? 25175 if test ! -x "$BOOT_JDK/bin/javac"; then 25176 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25177 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25178 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25179 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25180 BOOT_JDK_FOUND=no 25181 else 25182 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 25183 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 25184 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 25185 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 25186 BOOT_JDK_FOUND=no 25187 else 25188 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25189 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25190 25191 # Extra M4 quote needed to protect [] in grep expression. 25192 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25193 if test "x$FOUND_CORRECT_VERSION" = x; then 25194 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25195 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25196 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25197 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25198 BOOT_JDK_FOUND=no 25199 else 25200 # We're done! :-) 25201 BOOT_JDK_FOUND=yes 25202 25203 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25204 25205 # Input might be given as Windows format, start by converting to 25206 # unix format. 25207 path="$BOOT_JDK" 25208 new_path=`$CYGPATH -u "$path"` 25209 25210 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25211 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25212 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25213 # "foo.exe" is OK but "foo" is an error. 25214 # 25215 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25216 # It is also a way to make sure we got the proper file name for the real test later on. 25217 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25218 if test "x$test_shortpath" = x; then 25219 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25220 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25221 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25222 fi 25223 25224 # Call helper function which possibly converts this using DOS-style short mode. 25225 # If so, the updated path is stored in $new_path. 25226 25227 input_path="$new_path" 25228 # Check if we need to convert this using DOS-style short mode. If the path 25229 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25230 # take no chances and rewrite it. 25231 # Note: m4 eats our [], so we need to use [ and ] instead. 25232 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25233 if test "x$has_forbidden_chars" != x; then 25234 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25235 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25236 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25237 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25238 # Going to short mode and back again did indeed matter. Since short mode is 25239 # case insensitive, let's make it lowercase to improve readability. 25240 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25241 # Now convert it back to Unix-stile (cygpath) 25242 input_path=`$CYGPATH -u "$shortmode_path"` 25243 new_path="$input_path" 25244 fi 25245 fi 25246 25247 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25248 if test "x$test_cygdrive_prefix" = x; then 25249 # As a simple fix, exclude /usr/bin since it's not a real path. 25250 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25251 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25252 # a path prefixed by /cygdrive for fixpath to work. 25253 new_path="$CYGWIN_ROOT_PATH$input_path" 25254 fi 25255 fi 25256 25257 25258 if test "x$path" != "x$new_path"; then 25259 BOOT_JDK="$new_path" 25260 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25261 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25262 fi 25263 25264 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25265 25266 path="$BOOT_JDK" 25267 has_colon=`$ECHO $path | $GREP ^.:` 25268 new_path="$path" 25269 if test "x$has_colon" = x; then 25270 # Not in mixed or Windows style, start by that. 25271 new_path=`cmd //c echo $path` 25272 fi 25273 25274 25275 input_path="$new_path" 25276 # Check if we need to convert this using DOS-style short mode. If the path 25277 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25278 # take no chances and rewrite it. 25279 # Note: m4 eats our [], so we need to use [ and ] instead. 25280 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25281 if test "x$has_forbidden_chars" != x; then 25282 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25283 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25284 fi 25285 25286 25287 windows_path="$new_path" 25288 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25289 unix_path=`$CYGPATH -u "$windows_path"` 25290 new_path="$unix_path" 25291 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25292 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25293 new_path="$unix_path" 25294 fi 25295 25296 if test "x$path" != "x$new_path"; then 25297 BOOT_JDK="$new_path" 25298 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25299 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25300 fi 25301 25302 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25303 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25304 25305 else 25306 # We're on a posix platform. Hooray! :) 25307 path="$BOOT_JDK" 25308 has_space=`$ECHO "$path" | $GREP " "` 25309 if test "x$has_space" != x; then 25310 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25311 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25312 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25313 fi 25314 25315 # Use eval to expand a potential ~ 25316 eval path="$path" 25317 if test ! -f "$path" && test ! -d "$path"; then 25318 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25319 fi 25320 25321 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25322 fi 25323 25324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25325 $as_echo_n "checking for Boot JDK... " >&6; } 25326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25327 $as_echo "$BOOT_JDK" >&6; } 25328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25329 $as_echo_n "checking Boot JDK version... " >&6; } 25330 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25332 $as_echo "$BOOT_JDK_VERSION" >&6; } 25333 fi # end check jdk version 25334 fi # end check rt.jar 25335 fi # end check javac 25336 fi # end check java 25337 fi # end check boot jdk found 25338 fi 25339 25340 fi 25341 25342 25343 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25344 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25345 # Do we have a bin/java? 25346 if test ! -x "$BOOT_JDK/bin/java"; then 25347 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25348 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25349 BOOT_JDK_FOUND=no 25350 else 25351 # Do we have a bin/javac? 25352 if test ! -x "$BOOT_JDK/bin/javac"; then 25353 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25354 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25355 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25356 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25357 BOOT_JDK_FOUND=no 25358 else 25359 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 25360 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 25361 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 25362 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 25363 BOOT_JDK_FOUND=no 25364 else 25365 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25366 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25367 25368 # Extra M4 quote needed to protect [] in grep expression. 25369 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25370 if test "x$FOUND_CORRECT_VERSION" = x; then 25371 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25372 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25373 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25374 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25375 BOOT_JDK_FOUND=no 25376 else 25377 # We're done! :-) 25378 BOOT_JDK_FOUND=yes 25379 25380 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25381 25382 # Input might be given as Windows format, start by converting to 25383 # unix format. 25384 path="$BOOT_JDK" 25385 new_path=`$CYGPATH -u "$path"` 25386 25387 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25388 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25389 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25390 # "foo.exe" is OK but "foo" is an error. 25391 # 25392 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25393 # It is also a way to make sure we got the proper file name for the real test later on. 25394 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25395 if test "x$test_shortpath" = x; then 25396 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25397 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25398 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25399 fi 25400 25401 # Call helper function which possibly converts this using DOS-style short mode. 25402 # If so, the updated path is stored in $new_path. 25403 25404 input_path="$new_path" 25405 # Check if we need to convert this using DOS-style short mode. If the path 25406 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25407 # take no chances and rewrite it. 25408 # Note: m4 eats our [], so we need to use [ and ] instead. 25409 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25410 if test "x$has_forbidden_chars" != x; then 25411 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25412 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25413 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25414 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25415 # Going to short mode and back again did indeed matter. Since short mode is 25416 # case insensitive, let's make it lowercase to improve readability. 25417 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25418 # Now convert it back to Unix-stile (cygpath) 25419 input_path=`$CYGPATH -u "$shortmode_path"` 25420 new_path="$input_path" 25421 fi 25422 fi 25423 25424 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25425 if test "x$test_cygdrive_prefix" = x; then 25426 # As a simple fix, exclude /usr/bin since it's not a real path. 25427 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25428 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25429 # a path prefixed by /cygdrive for fixpath to work. 25430 new_path="$CYGWIN_ROOT_PATH$input_path" 25431 fi 25432 fi 25433 25434 25435 if test "x$path" != "x$new_path"; then 25436 BOOT_JDK="$new_path" 25437 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25438 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25439 fi 25440 25441 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25442 25443 path="$BOOT_JDK" 25444 has_colon=`$ECHO $path | $GREP ^.:` 25445 new_path="$path" 25446 if test "x$has_colon" = x; then 25447 # Not in mixed or Windows style, start by that. 25448 new_path=`cmd //c echo $path` 25449 fi 25450 25451 25452 input_path="$new_path" 25453 # Check if we need to convert this using DOS-style short mode. If the path 25454 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25455 # take no chances and rewrite it. 25456 # Note: m4 eats our [], so we need to use [ and ] instead. 25457 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25458 if test "x$has_forbidden_chars" != x; then 25459 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25460 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25461 fi 25462 25463 25464 windows_path="$new_path" 25465 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25466 unix_path=`$CYGPATH -u "$windows_path"` 25467 new_path="$unix_path" 25468 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25469 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25470 new_path="$unix_path" 25471 fi 25472 25473 if test "x$path" != "x$new_path"; then 25474 BOOT_JDK="$new_path" 25475 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25476 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25477 fi 25478 25479 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25480 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25481 25482 else 25483 # We're on a posix platform. Hooray! :) 25484 path="$BOOT_JDK" 25485 has_space=`$ECHO "$path" | $GREP " "` 25486 if test "x$has_space" != x; then 25487 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25488 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25489 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25490 fi 25491 25492 # Use eval to expand a potential ~ 25493 eval path="$path" 25494 if test ! -f "$path" && test ! -d "$path"; then 25495 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25496 fi 25497 25498 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25499 fi 25500 25501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25502 $as_echo_n "checking for Boot JDK... " >&6; } 25503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25504 $as_echo "$BOOT_JDK" >&6; } 25505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25506 $as_echo_n "checking Boot JDK version... " >&6; } 25507 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25509 $as_echo "$BOOT_JDK_VERSION" >&6; } 25510 fi # end check jdk version 25511 fi # end check rt.jar 25512 fi # end check javac 25513 fi # end check java 25514 fi # end check boot jdk found 25515 fi 25516 25517 25518 # If we haven't found anything yet, we've truly lost. Give up. 25519 if test "x$BOOT_JDK_FOUND" = xno; then 25520 25521 # Print a helpful message on how to acquire the necessary build dependency. 25522 # openjdk is the help tag: freetype, cups, pulse, alsa etc 25523 MISSING_DEPENDENCY=openjdk 25524 25525 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25526 cygwin_help $MISSING_DEPENDENCY 25527 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25528 msys_help $MISSING_DEPENDENCY 25529 else 25530 PKGHANDLER_COMMAND= 25531 25532 case $PKGHANDLER in 25533 apt-get) 25534 apt_help $MISSING_DEPENDENCY ;; 25535 yum) 25536 yum_help $MISSING_DEPENDENCY ;; 25537 port) 25538 port_help $MISSING_DEPENDENCY ;; 25539 pkgutil) 25540 pkgutil_help $MISSING_DEPENDENCY ;; 25541 pkgadd) 25542 pkgadd_help $MISSING_DEPENDENCY ;; 25543 esac 25544 25545 if test "x$PKGHANDLER_COMMAND" != x; then 25546 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 25547 fi 25548 fi 25549 25550 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 25551 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 25552 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 25553 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25554 as_fn_error $? "Cannot continue" "$LINENO" 5 25555 fi 25556 25557 # Setup proper paths for what we found 25558 BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar" 25559 if test ! -f "$BOOT_RTJAR"; then 25560 # On MacOSX it is called classes.jar 25561 BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar" 25562 if test -f "$BOOT_RTJAR"; then 25563 # Remove the .. 25564 BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}" 25565 fi 25566 fi 25567 BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar" 25568 BOOT_JDK="$BOOT_JDK" 25569 25570 25571 25572 25573 # Setup tools from the Boot JDK. 25574 25575 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25576 25577 # Publish this variable in the help. 25578 25579 25580 if test "x$JAVA" = x; then 25581 # The variable is not set by user, try to locate tool using the code snippet 25582 25583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25584 $as_echo_n "checking for java in Boot JDK... " >&6; } 25585 JAVA=$BOOT_JDK/bin/java 25586 if test ! -x $JAVA; then 25587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25588 $as_echo "not found" >&6; } 25589 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25590 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25591 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 25592 fi 25593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25594 $as_echo "ok" >&6; } 25595 25596 25597 else 25598 # The variable is set, but is it from the command line or the environment? 25599 25600 # Try to remove the string !JAVA! from our list. 25601 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 25602 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25603 # If it failed, the variable was not from the command line. Ignore it, 25604 # but warn the user (except for BASH, which is always set by the calling BASH). 25605 if test "xJAVA" != xBASH; then 25606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 25607 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 25608 fi 25609 # Try to locate tool using the code snippet 25610 25611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25612 $as_echo_n "checking for java in Boot JDK... " >&6; } 25613 JAVA=$BOOT_JDK/bin/java 25614 if test ! -x $JAVA; then 25615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25616 $as_echo "not found" >&6; } 25617 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25618 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25619 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 25620 fi 25621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25622 $as_echo "ok" >&6; } 25623 25624 25625 else 25626 # If it succeeded, then it was overridden by the user. We will use it 25627 # for the tool. 25628 25629 # First remove it from the list of overridden variables, so we can test 25630 # for unknown variables in the end. 25631 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25632 25633 # Check if the provided tool contains a complete path. 25634 tool_specified="$JAVA" 25635 tool_basename="${tool_specified##*/}" 25636 if test "x$tool_basename" = "x$tool_specified"; then 25637 # A command without a complete path is provided, search $PATH. 25638 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 25639 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 25640 # Extract the first word of "$tool_basename", so it can be a program name with args. 25641 set dummy $tool_basename; ac_word=$2 25642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25643 $as_echo_n "checking for $ac_word... " >&6; } 25644 if ${ac_cv_path_JAVA+:} false; then : 25645 $as_echo_n "(cached) " >&6 25646 else 25647 case $JAVA in 25648 [\\/]* | ?:[\\/]*) 25649 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 25650 ;; 25651 *) 25652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25653 for as_dir in $PATH 25654 do 25655 IFS=$as_save_IFS 25656 test -z "$as_dir" && as_dir=. 25657 for ac_exec_ext in '' $ac_executable_extensions; do 25658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25659 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 25660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25661 break 2 25662 fi 25663 done 25664 done 25665 IFS=$as_save_IFS 25666 25667 ;; 25668 esac 25669 fi 25670 JAVA=$ac_cv_path_JAVA 25671 if test -n "$JAVA"; then 25672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 25673 $as_echo "$JAVA" >&6; } 25674 else 25675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25676 $as_echo "no" >&6; } 25677 fi 25678 25679 25680 if test "x$JAVA" = x; then 25681 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25682 fi 25683 else 25684 # Otherwise we believe it is a complete path. Use it as it is. 25685 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 25686 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 25687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 25688 $as_echo_n "checking for JAVA... " >&6; } 25689 if test ! -x "$tool_specified"; then 25690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25691 $as_echo "not found" >&6; } 25692 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 25693 fi 25694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25695 $as_echo "$tool_specified" >&6; } 25696 fi 25697 fi 25698 fi 25699 25700 25701 25702 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25703 25704 # Publish this variable in the help. 25705 25706 25707 if test "x$JAVAC" = x; then 25708 # The variable is not set by user, try to locate tool using the code snippet 25709 25710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25711 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25712 JAVAC=$BOOT_JDK/bin/javac 25713 if test ! -x $JAVAC; then 25714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25715 $as_echo "not found" >&6; } 25716 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25717 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25718 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25719 fi 25720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25721 $as_echo "ok" >&6; } 25722 25723 25724 else 25725 # The variable is set, but is it from the command line or the environment? 25726 25727 # Try to remove the string !JAVAC! from our list. 25728 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 25729 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25730 # If it failed, the variable was not from the command line. Ignore it, 25731 # but warn the user (except for BASH, which is always set by the calling BASH). 25732 if test "xJAVAC" != xBASH; then 25733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 25734 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 25735 fi 25736 # Try to locate tool using the code snippet 25737 25738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25739 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25740 JAVAC=$BOOT_JDK/bin/javac 25741 if test ! -x $JAVAC; then 25742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25743 $as_echo "not found" >&6; } 25744 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25745 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25746 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25747 fi 25748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25749 $as_echo "ok" >&6; } 25750 25751 25752 else 25753 # If it succeeded, then it was overridden by the user. We will use it 25754 # for the tool. 25755 25756 # First remove it from the list of overridden variables, so we can test 25757 # for unknown variables in the end. 25758 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25759 25760 # Check if the provided tool contains a complete path. 25761 tool_specified="$JAVAC" 25762 tool_basename="${tool_specified##*/}" 25763 if test "x$tool_basename" = "x$tool_specified"; then 25764 # A command without a complete path is provided, search $PATH. 25765 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 25766 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 25767 # Extract the first word of "$tool_basename", so it can be a program name with args. 25768 set dummy $tool_basename; ac_word=$2 25769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25770 $as_echo_n "checking for $ac_word... " >&6; } 25771 if ${ac_cv_path_JAVAC+:} false; then : 25772 $as_echo_n "(cached) " >&6 25773 else 25774 case $JAVAC in 25775 [\\/]* | ?:[\\/]*) 25776 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 25777 ;; 25778 *) 25779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25780 for as_dir in $PATH 25781 do 25782 IFS=$as_save_IFS 25783 test -z "$as_dir" && as_dir=. 25784 for ac_exec_ext in '' $ac_executable_extensions; do 25785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25786 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 25787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25788 break 2 25789 fi 25790 done 25791 done 25792 IFS=$as_save_IFS 25793 25794 ;; 25795 esac 25796 fi 25797 JAVAC=$ac_cv_path_JAVAC 25798 if test -n "$JAVAC"; then 25799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 25800 $as_echo "$JAVAC" >&6; } 25801 else 25802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25803 $as_echo "no" >&6; } 25804 fi 25805 25806 25807 if test "x$JAVAC" = x; then 25808 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25809 fi 25810 else 25811 # Otherwise we believe it is a complete path. Use it as it is. 25812 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 25813 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 25814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 25815 $as_echo_n "checking for JAVAC... " >&6; } 25816 if test ! -x "$tool_specified"; then 25817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25818 $as_echo "not found" >&6; } 25819 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 25820 fi 25821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25822 $as_echo "$tool_specified" >&6; } 25823 fi 25824 fi 25825 fi 25826 25827 25828 25829 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25830 25831 # Publish this variable in the help. 25832 25833 25834 if test "x$JAVAH" = x; then 25835 # The variable is not set by user, try to locate tool using the code snippet 25836 25837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25838 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25839 JAVAH=$BOOT_JDK/bin/javah 25840 if test ! -x $JAVAH; then 25841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25842 $as_echo "not found" >&6; } 25843 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25844 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25845 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25846 fi 25847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25848 $as_echo "ok" >&6; } 25849 25850 25851 else 25852 # The variable is set, but is it from the command line or the environment? 25853 25854 # Try to remove the string !JAVAH! from our list. 25855 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 25856 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25857 # If it failed, the variable was not from the command line. Ignore it, 25858 # but warn the user (except for BASH, which is always set by the calling BASH). 25859 if test "xJAVAH" != xBASH; then 25860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 25861 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 25862 fi 25863 # Try to locate tool using the code snippet 25864 25865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25866 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25867 JAVAH=$BOOT_JDK/bin/javah 25868 if test ! -x $JAVAH; then 25869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25870 $as_echo "not found" >&6; } 25871 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25872 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25873 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25874 fi 25875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25876 $as_echo "ok" >&6; } 25877 25878 25879 else 25880 # If it succeeded, then it was overridden by the user. We will use it 25881 # for the tool. 25882 25883 # First remove it from the list of overridden variables, so we can test 25884 # for unknown variables in the end. 25885 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25886 25887 # Check if the provided tool contains a complete path. 25888 tool_specified="$JAVAH" 25889 tool_basename="${tool_specified##*/}" 25890 if test "x$tool_basename" = "x$tool_specified"; then 25891 # A command without a complete path is provided, search $PATH. 25892 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 25893 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 25894 # Extract the first word of "$tool_basename", so it can be a program name with args. 25895 set dummy $tool_basename; ac_word=$2 25896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25897 $as_echo_n "checking for $ac_word... " >&6; } 25898 if ${ac_cv_path_JAVAH+:} false; then : 25899 $as_echo_n "(cached) " >&6 25900 else 25901 case $JAVAH in 25902 [\\/]* | ?:[\\/]*) 25903 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 25904 ;; 25905 *) 25906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25907 for as_dir in $PATH 25908 do 25909 IFS=$as_save_IFS 25910 test -z "$as_dir" && as_dir=. 25911 for ac_exec_ext in '' $ac_executable_extensions; do 25912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25913 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 25914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25915 break 2 25916 fi 25917 done 25918 done 25919 IFS=$as_save_IFS 25920 25921 ;; 25922 esac 25923 fi 25924 JAVAH=$ac_cv_path_JAVAH 25925 if test -n "$JAVAH"; then 25926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 25927 $as_echo "$JAVAH" >&6; } 25928 else 25929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25930 $as_echo "no" >&6; } 25931 fi 25932 25933 25934 if test "x$JAVAH" = x; then 25935 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25936 fi 25937 else 25938 # Otherwise we believe it is a complete path. Use it as it is. 25939 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 25940 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 25941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 25942 $as_echo_n "checking for JAVAH... " >&6; } 25943 if test ! -x "$tool_specified"; then 25944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25945 $as_echo "not found" >&6; } 25946 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 25947 fi 25948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25949 $as_echo "$tool_specified" >&6; } 25950 fi 25951 fi 25952 fi 25953 25954 25955 25956 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25957 25958 # Publish this variable in the help. 25959 25960 25961 if test "x$JAR" = x; then 25962 # The variable is not set by user, try to locate tool using the code snippet 25963 25964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25965 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25966 JAR=$BOOT_JDK/bin/jar 25967 if test ! -x $JAR; then 25968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25969 $as_echo "not found" >&6; } 25970 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25971 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25972 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25973 fi 25974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25975 $as_echo "ok" >&6; } 25976 25977 25978 else 25979 # The variable is set, but is it from the command line or the environment? 25980 25981 # Try to remove the string !JAR! from our list. 25982 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 25983 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25984 # If it failed, the variable was not from the command line. Ignore it, 25985 # but warn the user (except for BASH, which is always set by the calling BASH). 25986 if test "xJAR" != xBASH; then 25987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 25988 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 25989 fi 25990 # Try to locate tool using the code snippet 25991 25992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25993 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25994 JAR=$BOOT_JDK/bin/jar 25995 if test ! -x $JAR; then 25996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25997 $as_echo "not found" >&6; } 25998 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25999 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26000 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 26001 fi 26002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26003 $as_echo "ok" >&6; } 26004 26005 26006 else 26007 # If it succeeded, then it was overridden by the user. We will use it 26008 # for the tool. 26009 26010 # First remove it from the list of overridden variables, so we can test 26011 # for unknown variables in the end. 26012 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26013 26014 # Check if the provided tool contains a complete path. 26015 tool_specified="$JAR" 26016 tool_basename="${tool_specified##*/}" 26017 if test "x$tool_basename" = "x$tool_specified"; then 26018 # A command without a complete path is provided, search $PATH. 26019 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 26020 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 26021 # Extract the first word of "$tool_basename", so it can be a program name with args. 26022 set dummy $tool_basename; ac_word=$2 26023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26024 $as_echo_n "checking for $ac_word... " >&6; } 26025 if ${ac_cv_path_JAR+:} false; then : 26026 $as_echo_n "(cached) " >&6 26027 else 26028 case $JAR in 26029 [\\/]* | ?:[\\/]*) 26030 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 26031 ;; 26032 *) 26033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26034 for as_dir in $PATH 26035 do 26036 IFS=$as_save_IFS 26037 test -z "$as_dir" && as_dir=. 26038 for ac_exec_ext in '' $ac_executable_extensions; do 26039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26040 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 26041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26042 break 2 26043 fi 26044 done 26045 done 26046 IFS=$as_save_IFS 26047 26048 ;; 26049 esac 26050 fi 26051 JAR=$ac_cv_path_JAR 26052 if test -n "$JAR"; then 26053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 26054 $as_echo "$JAR" >&6; } 26055 else 26056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26057 $as_echo "no" >&6; } 26058 fi 26059 26060 26061 if test "x$JAR" = x; then 26062 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26063 fi 26064 else 26065 # Otherwise we believe it is a complete path. Use it as it is. 26066 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 26067 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 26068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 26069 $as_echo_n "checking for JAR... " >&6; } 26070 if test ! -x "$tool_specified"; then 26071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26072 $as_echo "not found" >&6; } 26073 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 26074 fi 26075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26076 $as_echo "$tool_specified" >&6; } 26077 fi 26078 fi 26079 fi 26080 26081 26082 26083 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 26084 26085 # Publish this variable in the help. 26086 26087 26088 if test "x$NATIVE2ASCII" = x; then 26089 # The variable is not set by user, try to locate tool using the code snippet 26090 26091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 26092 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 26093 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 26094 if test ! -x $NATIVE2ASCII; then 26095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26096 $as_echo "not found" >&6; } 26097 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26098 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26099 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 26100 fi 26101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26102 $as_echo "ok" >&6; } 26103 26104 26105 else 26106 # The variable is set, but is it from the command line or the environment? 26107 26108 # Try to remove the string !NATIVE2ASCII! from our list. 26109 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NATIVE2ASCII!/} 26110 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 26111 # If it failed, the variable was not from the command line. Ignore it, 26112 # but warn the user (except for BASH, which is always set by the calling BASH). 26113 if test "xNATIVE2ASCII" != xBASH; then 26114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&5 26115 $as_echo "$as_me: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&2;} 26116 fi 26117 # Try to locate tool using the code snippet 26118 26119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 26120 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 26121 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 26122 if test ! -x $NATIVE2ASCII; then 26123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26124 $as_echo "not found" >&6; } 26125 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26126 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26127 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 26128 fi 26129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26130 $as_echo "ok" >&6; } 26131 26132 26133 else 26134 # If it succeeded, then it was overridden by the user. We will use it 26135 # for the tool. 26136 26137 # First remove it from the list of overridden variables, so we can test 26138 # for unknown variables in the end. 26139 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26140 26141 # Check if the provided tool contains a complete path. 26142 tool_specified="$NATIVE2ASCII" 26143 tool_basename="${tool_specified##*/}" 26144 if test "x$tool_basename" = "x$tool_specified"; then 26145 # A command without a complete path is provided, search $PATH. 26146 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&5 26147 $as_echo "$as_me: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&6;} 26148 # Extract the first word of "$tool_basename", so it can be a program name with args. 26149 set dummy $tool_basename; ac_word=$2 26150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26151 $as_echo_n "checking for $ac_word... " >&6; } 26152 if ${ac_cv_path_NATIVE2ASCII+:} false; then : 26153 $as_echo_n "(cached) " >&6 26154 else 26155 case $NATIVE2ASCII in 26156 [\\/]* | ?:[\\/]*) 26157 ac_cv_path_NATIVE2ASCII="$NATIVE2ASCII" # Let the user override the test with a path. 26158 ;; 26159 *) 26160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26161 for as_dir in $PATH 26162 do 26163 IFS=$as_save_IFS 26164 test -z "$as_dir" && as_dir=. 26165 for ac_exec_ext in '' $ac_executable_extensions; do 26166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26167 ac_cv_path_NATIVE2ASCII="$as_dir/$ac_word$ac_exec_ext" 26168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26169 break 2 26170 fi 26171 done 26172 done 26173 IFS=$as_save_IFS 26174 26175 ;; 26176 esac 26177 fi 26178 NATIVE2ASCII=$ac_cv_path_NATIVE2ASCII 26179 if test -n "$NATIVE2ASCII"; then 26180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE2ASCII" >&5 26181 $as_echo "$NATIVE2ASCII" >&6; } 26182 else 26183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26184 $as_echo "no" >&6; } 26185 fi 26186 26187 26188 if test "x$NATIVE2ASCII" = x; then 26189 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26190 fi 26191 else 26192 # Otherwise we believe it is a complete path. Use it as it is. 26193 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&5 26194 $as_echo "$as_me: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&6;} 26195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NATIVE2ASCII" >&5 26196 $as_echo_n "checking for NATIVE2ASCII... " >&6; } 26197 if test ! -x "$tool_specified"; then 26198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26199 $as_echo "not found" >&6; } 26200 as_fn_error $? "User supplied tool NATIVE2ASCII=$tool_specified does not exist or is not executable" "$LINENO" 5 26201 fi 26202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26203 $as_echo "$tool_specified" >&6; } 26204 fi 26205 fi 26206 fi 26207 26208 26209 26210 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 26211 26212 # Publish this variable in the help. 26213 26214 26215 if test "x$JARSIGNER" = x; then 26216 # The variable is not set by user, try to locate tool using the code snippet 26217 26218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 26219 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 26220 JARSIGNER=$BOOT_JDK/bin/jarsigner 26221 if test ! -x $JARSIGNER; then 26222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26223 $as_echo "not found" >&6; } 26224 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26225 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26226 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 26227 fi 26228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26229 $as_echo "ok" >&6; } 26230 26231 26232 else 26233 # The variable is set, but is it from the command line or the environment? 26234 26235 # Try to remove the string !JARSIGNER! from our list. 26236 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 26237 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 26238 # If it failed, the variable was not from the command line. Ignore it, 26239 # but warn the user (except for BASH, which is always set by the calling BASH). 26240 if test "xJARSIGNER" != xBASH; then 26241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 26242 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 26243 fi 26244 # Try to locate tool using the code snippet 26245 26246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 26247 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 26248 JARSIGNER=$BOOT_JDK/bin/jarsigner 26249 if test ! -x $JARSIGNER; then 26250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26251 $as_echo "not found" >&6; } 26252 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26253 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26254 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 26255 fi 26256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26257 $as_echo "ok" >&6; } 26258 26259 26260 else 26261 # If it succeeded, then it was overridden by the user. We will use it 26262 # for the tool. 26263 26264 # First remove it from the list of overridden variables, so we can test 26265 # for unknown variables in the end. 26266 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26267 26268 # Check if the provided tool contains a complete path. 26269 tool_specified="$JARSIGNER" 26270 tool_basename="${tool_specified##*/}" 26271 if test "x$tool_basename" = "x$tool_specified"; then 26272 # A command without a complete path is provided, search $PATH. 26273 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 26274 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 26275 # Extract the first word of "$tool_basename", so it can be a program name with args. 26276 set dummy $tool_basename; ac_word=$2 26277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26278 $as_echo_n "checking for $ac_word... " >&6; } 26279 if ${ac_cv_path_JARSIGNER+:} false; then : 26280 $as_echo_n "(cached) " >&6 26281 else 26282 case $JARSIGNER in 26283 [\\/]* | ?:[\\/]*) 26284 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 26285 ;; 26286 *) 26287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26288 for as_dir in $PATH 26289 do 26290 IFS=$as_save_IFS 26291 test -z "$as_dir" && as_dir=. 26292 for ac_exec_ext in '' $ac_executable_extensions; do 26293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26294 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 26295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26296 break 2 26297 fi 26298 done 26299 done 26300 IFS=$as_save_IFS 26301 26302 ;; 26303 esac 26304 fi 26305 JARSIGNER=$ac_cv_path_JARSIGNER 26306 if test -n "$JARSIGNER"; then 26307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 26308 $as_echo "$JARSIGNER" >&6; } 26309 else 26310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26311 $as_echo "no" >&6; } 26312 fi 26313 26314 26315 if test "x$JARSIGNER" = x; then 26316 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26317 fi 26318 else 26319 # Otherwise we believe it is a complete path. Use it as it is. 26320 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 26321 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 26322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 26323 $as_echo_n "checking for JARSIGNER... " >&6; } 26324 if test ! -x "$tool_specified"; then 26325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26326 $as_echo "not found" >&6; } 26327 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 26328 fi 26329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26330 $as_echo "$tool_specified" >&6; } 26331 fi 26332 fi 26333 fi 26334 26335 26336 26337 # Finally, set some other options... 26338 26339 # When compiling code to be executed by the Boot JDK, force jdk8 compatibility. 26340 BOOT_JDK_SOURCETARGET="-source 8 -target 8" 26341 26342 26343 26344 26345 ############################################################################### 26346 # 26347 # Configure the sources to use. We can add or override individual directories. 26348 # 26349 ############################################################################### 26350 26351 26352 # Where are the sources. Any of these can be overridden 26353 # using --with-override-corba and the likes. 26354 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 26355 CORBA_TOPDIR="$SRC_ROOT/corba" 26356 JAXP_TOPDIR="$SRC_ROOT/jaxp" 26357 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 26358 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 26359 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 26360 JDK_TOPDIR="$SRC_ROOT/jdk" 26361 26362 26363 26364 26365 26366 26367 26368 26369 26370 26371 ############################################################################### 26372 # 26373 # Pickup additional source for a component from outside of the source root 26374 # or override source for a component. 26375 # 26376 26377 # Check whether --with-add-source-root was given. 26378 if test "${with_add_source_root+set}" = set; then : 26379 withval=$with_add_source_root; 26380 fi 26381 26382 26383 26384 # Check whether --with-override-source-root was given. 26385 if test "${with_override_source_root+set}" = set; then : 26386 withval=$with_override_source_root; 26387 fi 26388 26389 26390 26391 # Check whether --with-adds-and-overrides was given. 26392 if test "${with_adds_and_overrides+set}" = set; then : 26393 withval=$with_adds_and_overrides; 26394 fi 26395 26396 26397 if test "x$with_adds_and_overrides" != x; then 26398 with_add_source_root="$with_adds_and_overrides/adds" 26399 with_override_source_root="$with_adds_and_overrides/overrides" 26400 fi 26401 26402 if test "x$with_add_source_root" != x; then 26403 if ! test -d $with_add_source_root; then 26404 as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5 26405 fi 26406 CURDIR="$PWD" 26407 cd "$with_add_source_root" 26408 ADD_SRC_ROOT="`pwd`" 26409 cd "$CURDIR" 26410 # Verify that the addon source root does not have any root makefiles. 26411 # If it does, then it is usually an error, prevent this. 26412 if test -f $with_add_source_root/langtools/make/Makefile; then 26413 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 26414 fi 26415 if test -f $with_add_source_root/corba/make/Makefile; then 26416 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 26417 fi 26418 if test -f $with_add_source_root/jaxp/make/Makefile; then 26419 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 26420 fi 26421 if test -f $with_add_source_root/jaxws/make/Makefile; then 26422 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 26423 fi 26424 if test -f $with_add_source_root/hotspot/make/Makefile; then 26425 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 26426 fi 26427 if test -f $with_add_source_root/nashorn/make/Makefile; then 26428 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 26429 fi 26430 if test -f $with_add_source_root/jdk/make/Makefile; then 26431 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 26432 fi 26433 fi 26434 26435 26436 if test "x$with_override_source_root" != x; then 26437 if ! test -d $with_override_source_root; then 26438 as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5 26439 fi 26440 CURDIR="$PWD" 26441 cd "$with_override_source_root" 26442 OVERRIDE_SRC_ROOT="`pwd`" 26443 cd "$CURDIR" 26444 if test -f $with_override_source_root/langtools/make/Makefile; then 26445 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 26446 fi 26447 if test -f $with_override_source_root/corba/make/Makefile; then 26448 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 26449 fi 26450 if test -f $with_override_source_root/jaxp/make/Makefile; then 26451 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 26452 fi 26453 if test -f $with_override_source_root/jaxws/make/Makefile; then 26454 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 26455 fi 26456 if test -f $with_override_source_root/hotspot/make/Makefile; then 26457 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 26458 fi 26459 if test -f $with_override_source_root/nashorn/make/Makefile; then 26460 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 26461 fi 26462 if test -f $with_override_source_root/jdk/make/Makefile; then 26463 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 26464 fi 26465 fi 26466 26467 26468 ############################################################################### 26469 # 26470 # Override a repo completely, this is used for example when you have 3 small 26471 # development sandboxes of the langtools sources and want to avoid having 3 full 26472 # OpenJDK sources checked out on disk. 26473 # 26474 # Assuming that the 3 langtools sandboxes are located here: 26475 # /home/fredrik/sandbox1/langtools 26476 # /home/fredrik/sandbox2/langtools 26477 # /home/fredrik/sandbox3/langtools 26478 # 26479 # From the source root you create build subdirs manually: 26480 # mkdir -p build1 build2 build3 26481 # in each build directory run: 26482 # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make) 26483 # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make) 26484 # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make) 26485 # 26486 26487 26488 # Check whether --with-override-langtools was given. 26489 if test "${with_override_langtools+set}" = set; then : 26490 withval=$with_override_langtools; 26491 fi 26492 26493 26494 26495 # Check whether --with-override-corba was given. 26496 if test "${with_override_corba+set}" = set; then : 26497 withval=$with_override_corba; 26498 fi 26499 26500 26501 26502 # Check whether --with-override-jaxp was given. 26503 if test "${with_override_jaxp+set}" = set; then : 26504 withval=$with_override_jaxp; 26505 fi 26506 26507 26508 26509 # Check whether --with-override-jaxws was given. 26510 if test "${with_override_jaxws+set}" = set; then : 26511 withval=$with_override_jaxws; 26512 fi 26513 26514 26515 26516 # Check whether --with-override-hotspot was given. 26517 if test "${with_override_hotspot+set}" = set; then : 26518 withval=$with_override_hotspot; 26519 fi 26520 26521 26522 26523 # Check whether --with-override-nashorn was given. 26524 if test "${with_override_nashorn+set}" = set; then : 26525 withval=$with_override_nashorn; 26526 fi 26527 26528 26529 26530 # Check whether --with-override-jdk was given. 26531 if test "${with_override_jdk+set}" = set; then : 26532 withval=$with_override_jdk; 26533 fi 26534 26535 26536 if test "x$with_override_langtools" != x; then 26537 CURDIR="$PWD" 26538 cd "$with_override_langtools" 26539 LANGTOOLS_TOPDIR="`pwd`" 26540 cd "$CURDIR" 26541 if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then 26542 as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5 26543 fi 26544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5 26545 $as_echo_n "checking if langtools should be overridden... " >&6; } 26546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5 26547 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; } 26548 fi 26549 if test "x$with_override_corba" != x; then 26550 CURDIR="$PWD" 26551 cd "$with_override_corba" 26552 CORBA_TOPDIR="`pwd`" 26553 cd "$CURDIR" 26554 if ! test -f $CORBA_TOPDIR/make/Makefile; then 26555 as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5 26556 fi 26557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5 26558 $as_echo_n "checking if corba should be overridden... " >&6; } 26559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5 26560 $as_echo "yes with $CORBA_TOPDIR" >&6; } 26561 fi 26562 if test "x$with_override_jaxp" != x; then 26563 CURDIR="$PWD" 26564 cd "$with_override_jaxp" 26565 JAXP_TOPDIR="`pwd`" 26566 cd "$CURDIR" 26567 if ! test -f $JAXP_TOPDIR/make/Makefile; then 26568 as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5 26569 fi 26570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5 26571 $as_echo_n "checking if jaxp should be overridden... " >&6; } 26572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5 26573 $as_echo "yes with $JAXP_TOPDIR" >&6; } 26574 fi 26575 if test "x$with_override_jaxws" != x; then 26576 CURDIR="$PWD" 26577 cd "$with_override_jaxws" 26578 JAXWS_TOPDIR="`pwd`" 26579 cd "$CURDIR" 26580 if ! test -f $JAXWS_TOPDIR/make/Makefile; then 26581 as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5 26582 fi 26583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5 26584 $as_echo_n "checking if jaxws should be overridden... " >&6; } 26585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5 26586 $as_echo "yes with $JAXWS_TOPDIR" >&6; } 26587 fi 26588 if test "x$with_override_hotspot" != x; then 26589 CURDIR="$PWD" 26590 cd "$with_override_hotspot" 26591 HOTSPOT_TOPDIR="`pwd`" 26592 cd "$CURDIR" 26593 if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then 26594 as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5 26595 fi 26596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5 26597 $as_echo_n "checking if hotspot should be overridden... " >&6; } 26598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5 26599 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; } 26600 fi 26601 if test "x$with_override_nashorn" != x; then 26602 CURDIR="$PWD" 26603 cd "$with_override_nashorn" 26604 NASHORN_TOPDIR="`pwd`" 26605 cd "$CURDIR" 26606 if ! test -f $NASHORN_TOPDIR/make/Makefile; then 26607 as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5 26608 fi 26609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5 26610 $as_echo_n "checking if nashorn should be overridden... " >&6; } 26611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5 26612 $as_echo "yes with $NASHORN_TOPDIR" >&6; } 26613 fi 26614 if test "x$with_override_jdk" != x; then 26615 CURDIR="$PWD" 26616 cd "$with_override_jdk" 26617 JDK_TOPDIR="`pwd`" 26618 cd "$CURDIR" 26619 if ! test -f $JDK_TOPDIR/make/Makefile; then 26620 as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5 26621 fi 26622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5 26623 $as_echo_n "checking if JDK should be overridden... " >&6; } 26624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5 26625 $as_echo "yes with $JDK_TOPDIR" >&6; } 26626 fi 26627 26628 26629 BUILD_OUTPUT="$OUTPUT_ROOT" 26630 26631 26632 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 26633 BUILD_HOTSPOT=true 26634 26635 26636 26637 # Check whether --with-import-hotspot was given. 26638 if test "${with_import_hotspot+set}" = set; then : 26639 withval=$with_import_hotspot; 26640 fi 26641 26642 if test "x$with_import_hotspot" != x; then 26643 CURDIR="$PWD" 26644 cd "$with_import_hotspot" 26645 HOTSPOT_DIST="`pwd`" 26646 cd "$CURDIR" 26647 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 26648 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 26649 fi 26650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 26651 $as_echo_n "checking if hotspot should be imported... " >&6; } 26652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 26653 $as_echo "yes from $HOTSPOT_DIST" >&6; } 26654 BUILD_HOTSPOT=false 26655 fi 26656 26657 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 26658 26659 26660 ############################################################################### 26661 # 26662 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 26663 # native code. 26664 # 26665 ############################################################################### 26666 26667 # First determine the toolchain type (compiler family) 26668 26669 26670 # Check whether --with-toolchain-type was given. 26671 if test "${with_toolchain_type+set}" = set; then : 26672 withval=$with_toolchain_type; 26673 fi 26674 26675 26676 # Use indirect variable referencing 26677 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 26678 VALID_TOOLCHAINS=${!toolchain_var_name} 26679 26680 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26681 if test -n "$XCODEBUILD"; then 26682 # On Mac OS X, default toolchain to clang after Xcode 5 26683 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 26684 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 26685 if test $? -ne 0; then 26686 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 26687 fi 26688 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 26689 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 26690 $CUT -f 1 -d .` 26691 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 26692 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 26693 if test $XCODE_MAJOR_VERSION -ge 5; then 26694 DEFAULT_TOOLCHAIN="clang" 26695 else 26696 DEFAULT_TOOLCHAIN="gcc" 26697 fi 26698 else 26699 # If Xcode is not installed, but the command line tools are 26700 # then we can't run xcodebuild. On these systems we should 26701 # default to clang 26702 DEFAULT_TOOLCHAIN="clang" 26703 fi 26704 else 26705 # First toolchain type in the list is the default 26706 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 26707 fi 26708 26709 if test "x$with_toolchain_type" = xlist; then 26710 # List all toolchains 26711 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 26712 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 26713 for toolchain in $VALID_TOOLCHAINS; do 26714 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 26715 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 26716 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 26717 done 26718 26719 exit 0 26720 elif test "x$with_toolchain_type" != x; then 26721 # User override; check that it is valid 26722 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 26723 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 26724 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 26725 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 26726 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 26727 as_fn_error $? "Cannot continue." "$LINENO" 5 26728 fi 26729 TOOLCHAIN_TYPE=$with_toolchain_type 26730 else 26731 # No flag given, use default 26732 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 26733 fi 26734 26735 26736 TOOLCHAIN_CC_BINARY_clang="clang" 26737 TOOLCHAIN_CC_BINARY_gcc="gcc" 26738 TOOLCHAIN_CC_BINARY_microsoft="cl" 26739 TOOLCHAIN_CC_BINARY_solstudio="cc" 26740 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 26741 26742 TOOLCHAIN_CXX_BINARY_clang="clang++" 26743 TOOLCHAIN_CXX_BINARY_gcc="g++" 26744 TOOLCHAIN_CXX_BINARY_microsoft="cl" 26745 TOOLCHAIN_CXX_BINARY_solstudio="CC" 26746 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 26747 26748 # Use indirect variable referencing 26749 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 26750 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 26751 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 26752 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 26753 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 26754 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 26755 26756 26757 # Define filename patterns 26758 if test "x$OPENJDK_TARGET_OS" = xwindows; then 26759 LIBRARY_PREFIX= 26760 SHARED_LIBRARY_SUFFIX='.dll' 26761 STATIC_LIBRARY_SUFFIX='.lib' 26762 SHARED_LIBRARY='$1.dll' 26763 STATIC_LIBRARY='$1.lib' 26764 OBJ_SUFFIX='.obj' 26765 EXE_SUFFIX='.exe' 26766 else 26767 LIBRARY_PREFIX=lib 26768 SHARED_LIBRARY_SUFFIX='.so' 26769 STATIC_LIBRARY_SUFFIX='.a' 26770 SHARED_LIBRARY='lib$1.so' 26771 STATIC_LIBRARY='lib$1.a' 26772 OBJ_SUFFIX='.o' 26773 EXE_SUFFIX='' 26774 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26775 SHARED_LIBRARY='lib$1.dylib' 26776 SHARED_LIBRARY_SUFFIX='.dylib' 26777 fi 26778 fi 26779 26780 26781 26782 26783 26784 26785 26786 26787 26788 26789 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 26790 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 26791 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 26792 else 26793 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 26794 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 26795 fi 26796 26797 26798 # Then detect the actual binaries needed 26799 26800 # FIXME: Is this needed? 26801 ac_ext=cpp 26802 ac_cpp='$CXXCPP $CPPFLAGS' 26803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26806 26807 26808 # Store the CFLAGS etc passed to the configure script. 26809 ORG_CFLAGS="$CFLAGS" 26810 ORG_CXXFLAGS="$CXXFLAGS" 26811 ORG_OBJCFLAGS="$OBJCFLAGS" 26812 26813 # On Windows, we need to detect the visual studio installation first. 26814 # This will change the PATH, but we need to keep that new PATH even 26815 # after toolchain detection is done, since the compiler (on x86) uses 26816 # it for DLL resolution in runtime. 26817 if test "x$OPENJDK_BUILD_OS" = "xwindows" && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 26818 26819 # Store path to cygwin link.exe to help excluding it when searching for 26820 # VS linker. This must be done before changing the PATH when looking for VS. 26821 # Extract the first word of "link", so it can be a program name with args. 26822 set dummy link; ac_word=$2 26823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26824 $as_echo_n "checking for $ac_word... " >&6; } 26825 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 26826 $as_echo_n "(cached) " >&6 26827 else 26828 case $CYGWIN_LINK in 26829 [\\/]* | ?:[\\/]*) 26830 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 26831 ;; 26832 *) 26833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26834 for as_dir in $PATH 26835 do 26836 IFS=$as_save_IFS 26837 test -z "$as_dir" && as_dir=. 26838 for ac_exec_ext in '' $ac_executable_extensions; do 26839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26840 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 26841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26842 break 2 26843 fi 26844 done 26845 done 26846 IFS=$as_save_IFS 26847 26848 ;; 26849 esac 26850 fi 26851 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 26852 if test -n "$CYGWIN_LINK"; then 26853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 26854 $as_echo "$CYGWIN_LINK" >&6; } 26855 else 26856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26857 $as_echo "no" >&6; } 26858 fi 26859 26860 26861 if test "x$CYGWIN_LINK" != x; then 26862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 26863 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 26864 "$CYGWIN_LINK" --version > /dev/null 26865 if test $? -eq 0 ; then 26866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26867 $as_echo "yes" >&6; } 26868 else 26869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26870 $as_echo "no" >&6; } 26871 # This might be the VS linker. Don't exclude it later on. 26872 CYGWIN_LINK="" 26873 fi 26874 fi 26875 26876 # First-hand choice is to locate and run the vsvars bat file. 26877 26878 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26879 VCVARSFILE="vc/bin/vcvars32.bat" 26880 else 26881 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26882 fi 26883 26884 VS_ENV_CMD="" 26885 VS_ENV_ARGS="" 26886 if test "x$with_toolsdir" != x; then 26887 26888 if test "x$VS_ENV_CMD" = x; then 26889 VS100BASE="$with_toolsdir/../.." 26890 METHOD="--with-tools-dir" 26891 26892 windows_path="$VS100BASE" 26893 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26894 unix_path=`$CYGPATH -u "$windows_path"` 26895 VS100BASE="$unix_path" 26896 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26897 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26898 VS100BASE="$unix_path" 26899 fi 26900 26901 if test -d "$VS100BASE"; then 26902 if test -f "$VS100BASE/$VCVARSFILE"; then 26903 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26904 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26905 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26906 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26907 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26908 # TODO: improve detection for other versions of VS 26909 PLATFORM_TOOLSET="v100" 26910 else 26911 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26912 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26913 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26914 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26915 fi 26916 fi 26917 fi 26918 26919 fi 26920 26921 if test "x$with_toolsdir" != x && test "x$VS_ENV_CMD" = x; then 26922 # Having specified an argument which is incorrect will produce an instant failure; 26923 # we should not go on looking 26924 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&5 26925 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&6;} 26926 { $as_echo "$as_me:${as_lineno-$LINENO}: Please point to the VC/bin directory within the Visual Studio installation" >&5 26927 $as_echo "$as_me: Please point to the VC/bin directory within the Visual Studio installation" >&6;} 26928 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 26929 fi 26930 26931 if test "x$VS100COMNTOOLS" != x; then 26932 26933 if test "x$VS_ENV_CMD" = x; then 26934 VS100BASE="$VS100COMNTOOLS/../.." 26935 METHOD="VS100COMNTOOLS variable" 26936 26937 windows_path="$VS100BASE" 26938 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26939 unix_path=`$CYGPATH -u "$windows_path"` 26940 VS100BASE="$unix_path" 26941 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26942 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26943 VS100BASE="$unix_path" 26944 fi 26945 26946 if test -d "$VS100BASE"; then 26947 if test -f "$VS100BASE/$VCVARSFILE"; then 26948 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26949 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26950 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26951 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26952 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26953 # TODO: improve detection for other versions of VS 26954 PLATFORM_TOOLSET="v100" 26955 else 26956 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26957 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26958 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26959 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26960 fi 26961 fi 26962 fi 26963 26964 fi 26965 if test "x$PROGRAMFILES" != x; then 26966 26967 if test "x$VS_ENV_CMD" = x; then 26968 VS100BASE="$PROGRAMFILES/Microsoft Visual Studio 10.0" 26969 METHOD="well-known name" 26970 26971 windows_path="$VS100BASE" 26972 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26973 unix_path=`$CYGPATH -u "$windows_path"` 26974 VS100BASE="$unix_path" 26975 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26976 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26977 VS100BASE="$unix_path" 26978 fi 26979 26980 if test -d "$VS100BASE"; then 26981 if test -f "$VS100BASE/$VCVARSFILE"; then 26982 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26983 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26984 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26985 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26986 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26987 # TODO: improve detection for other versions of VS 26988 PLATFORM_TOOLSET="v100" 26989 else 26990 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26991 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26992 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26993 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26994 fi 26995 fi 26996 fi 26997 26998 fi 26999 27000 if test "x$VS_ENV_CMD" = x; then 27001 VS100BASE="C:/Program Files/Microsoft Visual Studio 10.0" 27002 METHOD="well-known name" 27003 27004 windows_path="$VS100BASE" 27005 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27006 unix_path=`$CYGPATH -u "$windows_path"` 27007 VS100BASE="$unix_path" 27008 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27009 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27010 VS100BASE="$unix_path" 27011 fi 27012 27013 if test -d "$VS100BASE"; then 27014 if test -f "$VS100BASE/$VCVARSFILE"; then 27015 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 27016 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 27017 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 27018 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27019 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27020 # TODO: improve detection for other versions of VS 27021 PLATFORM_TOOLSET="v100" 27022 else 27023 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 27024 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 27025 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27026 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27027 fi 27028 fi 27029 fi 27030 27031 27032 if test "x$VS_ENV_CMD" = x; then 27033 VS100BASE="C:/Program Files (x86)/Microsoft Visual Studio 10.0" 27034 METHOD="well-known name" 27035 27036 windows_path="$VS100BASE" 27037 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27038 unix_path=`$CYGPATH -u "$windows_path"` 27039 VS100BASE="$unix_path" 27040 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27041 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27042 VS100BASE="$unix_path" 27043 fi 27044 27045 if test -d "$VS100BASE"; then 27046 if test -f "$VS100BASE/$VCVARSFILE"; then 27047 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 27048 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 27049 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 27050 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27051 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27052 # TODO: improve detection for other versions of VS 27053 PLATFORM_TOOLSET="v100" 27054 else 27055 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 27056 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 27057 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27058 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27059 fi 27060 fi 27061 fi 27062 27063 27064 if test "x$ProgramW6432" != x; then 27065 27066 if test "x$VS_ENV_CMD" = x; then 27067 WIN_SDK_BASE="$ProgramW6432/Microsoft SDKs/Windows/v7.1/Bin" 27068 METHOD="well-known name" 27069 27070 windows_path="$WIN_SDK_BASE" 27071 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27072 unix_path=`$CYGPATH -u "$windows_path"` 27073 WIN_SDK_BASE="$unix_path" 27074 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27075 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27076 WIN_SDK_BASE="$unix_path" 27077 fi 27078 27079 if test -d "$WIN_SDK_BASE"; then 27080 # There have been cases of partial or broken SDK installations. A missing 27081 # lib dir is not going to work. 27082 if test ! -d "$WIN_SDK_BASE/../lib"; then 27083 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27084 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27085 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27086 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27087 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 27088 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27089 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27090 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 27091 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27092 VS_ENV_ARGS="/x86" 27093 else 27094 VS_ENV_ARGS="/x64" 27095 fi 27096 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27097 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27098 # TODO: improve detection for other versions of SDK 27099 PLATFORM_TOOLSET="Windows7.1SDK" 27100 else 27101 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27102 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27103 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27104 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27105 fi 27106 fi 27107 fi 27108 27109 fi 27110 if test "x$PROGRAMW6432" != x; then 27111 27112 if test "x$VS_ENV_CMD" = x; then 27113 WIN_SDK_BASE="$PROGRAMW6432/Microsoft SDKs/Windows/v7.1/Bin" 27114 METHOD="well-known name" 27115 27116 windows_path="$WIN_SDK_BASE" 27117 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27118 unix_path=`$CYGPATH -u "$windows_path"` 27119 WIN_SDK_BASE="$unix_path" 27120 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27121 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27122 WIN_SDK_BASE="$unix_path" 27123 fi 27124 27125 if test -d "$WIN_SDK_BASE"; then 27126 # There have been cases of partial or broken SDK installations. A missing 27127 # lib dir is not going to work. 27128 if test ! -d "$WIN_SDK_BASE/../lib"; then 27129 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27130 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27131 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27132 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27133 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 27134 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27135 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27136 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 27137 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27138 VS_ENV_ARGS="/x86" 27139 else 27140 VS_ENV_ARGS="/x64" 27141 fi 27142 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27143 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27144 # TODO: improve detection for other versions of SDK 27145 PLATFORM_TOOLSET="Windows7.1SDK" 27146 else 27147 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27148 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27149 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27150 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27151 fi 27152 fi 27153 fi 27154 27155 fi 27156 if test "x$PROGRAMFILES" != x; then 27157 27158 if test "x$VS_ENV_CMD" = x; then 27159 WIN_SDK_BASE="$PROGRAMFILES/Microsoft SDKs/Windows/v7.1/Bin" 27160 METHOD="well-known name" 27161 27162 windows_path="$WIN_SDK_BASE" 27163 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27164 unix_path=`$CYGPATH -u "$windows_path"` 27165 WIN_SDK_BASE="$unix_path" 27166 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27167 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27168 WIN_SDK_BASE="$unix_path" 27169 fi 27170 27171 if test -d "$WIN_SDK_BASE"; then 27172 # There have been cases of partial or broken SDK installations. A missing 27173 # lib dir is not going to work. 27174 if test ! -d "$WIN_SDK_BASE/../lib"; then 27175 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27176 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27177 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27178 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27179 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 27180 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27181 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27182 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 27183 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27184 VS_ENV_ARGS="/x86" 27185 else 27186 VS_ENV_ARGS="/x64" 27187 fi 27188 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27189 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27190 # TODO: improve detection for other versions of SDK 27191 PLATFORM_TOOLSET="Windows7.1SDK" 27192 else 27193 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27194 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27195 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27196 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27197 fi 27198 fi 27199 fi 27200 27201 fi 27202 27203 if test "x$VS_ENV_CMD" = x; then 27204 WIN_SDK_BASE="C:/Program Files/Microsoft SDKs/Windows/v7.1/Bin" 27205 METHOD="well-known name" 27206 27207 windows_path="$WIN_SDK_BASE" 27208 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27209 unix_path=`$CYGPATH -u "$windows_path"` 27210 WIN_SDK_BASE="$unix_path" 27211 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27212 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27213 WIN_SDK_BASE="$unix_path" 27214 fi 27215 27216 if test -d "$WIN_SDK_BASE"; then 27217 # There have been cases of partial or broken SDK installations. A missing 27218 # lib dir is not going to work. 27219 if test ! -d "$WIN_SDK_BASE/../lib"; then 27220 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27221 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27222 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27223 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27224 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 27225 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27226 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27227 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 27228 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27229 VS_ENV_ARGS="/x86" 27230 else 27231 VS_ENV_ARGS="/x64" 27232 fi 27233 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27234 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27235 # TODO: improve detection for other versions of SDK 27236 PLATFORM_TOOLSET="Windows7.1SDK" 27237 else 27238 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27239 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27240 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27241 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27242 fi 27243 fi 27244 fi 27245 27246 27247 if test "x$VS_ENV_CMD" = x; then 27248 WIN_SDK_BASE="C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1/Bin" 27249 METHOD="well-known name" 27250 27251 windows_path="$WIN_SDK_BASE" 27252 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27253 unix_path=`$CYGPATH -u "$windows_path"` 27254 WIN_SDK_BASE="$unix_path" 27255 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27256 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27257 WIN_SDK_BASE="$unix_path" 27258 fi 27259 27260 if test -d "$WIN_SDK_BASE"; then 27261 # There have been cases of partial or broken SDK installations. A missing 27262 # lib dir is not going to work. 27263 if test ! -d "$WIN_SDK_BASE/../lib"; then 27264 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27265 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27266 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27267 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27268 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 27269 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27270 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27271 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 27272 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27273 VS_ENV_ARGS="/x86" 27274 else 27275 VS_ENV_ARGS="/x64" 27276 fi 27277 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27278 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27279 # TODO: improve detection for other versions of SDK 27280 PLATFORM_TOOLSET="Windows7.1SDK" 27281 else 27282 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27283 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27284 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27285 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27286 fi 27287 fi 27288 fi 27289 27290 27291 if test "x$VS_ENV_CMD" != x; then 27292 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 27293 27294 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27295 27296 # First separate the path from the arguments. This will split at the first 27297 # space. 27298 complete="$VS_ENV_CMD" 27299 path="${complete%% *}" 27300 tmp="$complete EOL" 27301 arguments="${tmp#* }" 27302 27303 # Input might be given as Windows format, start by converting to 27304 # unix format. 27305 new_path=`$CYGPATH -u "$path"` 27306 27307 # Now try to locate executable using which 27308 new_path=`$WHICH "$new_path" 2> /dev/null` 27309 # bat and cmd files are not always considered executable in cygwin causing which 27310 # to not find them 27311 if test "x$new_path" = x \ 27312 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27313 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27314 new_path=`$CYGPATH -u "$path"` 27315 fi 27316 if test "x$new_path" = x; then 27317 # Oops. Which didn't find the executable. 27318 # The splitting of arguments from the executable at a space might have been incorrect, 27319 # since paths with space are more likely in Windows. Give it another try with the whole 27320 # argument. 27321 path="$complete" 27322 arguments="EOL" 27323 new_path=`$CYGPATH -u "$path"` 27324 new_path=`$WHICH "$new_path" 2> /dev/null` 27325 # bat and cmd files are not always considered executable in cygwin causing which 27326 # to not find them 27327 if test "x$new_path" = x \ 27328 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27329 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27330 new_path=`$CYGPATH -u "$path"` 27331 fi 27332 if test "x$new_path" = x; then 27333 # It's still not found. Now this is an unrecoverable error. 27334 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27335 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27336 has_space=`$ECHO "$complete" | $GREP " "` 27337 if test "x$has_space" != x; then 27338 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27339 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27340 fi 27341 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27342 fi 27343 fi 27344 27345 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27346 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27347 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27348 # "foo.exe" is OK but "foo" is an error. 27349 # 27350 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27351 # It is also a way to make sure we got the proper file name for the real test later on. 27352 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27353 if test "x$test_shortpath" = x; then 27354 # Short path failed, file does not exist as specified. 27355 # Try adding .exe or .cmd 27356 if test -f "${new_path}.exe"; then 27357 input_to_shortpath="${new_path}.exe" 27358 elif test -f "${new_path}.cmd"; then 27359 input_to_shortpath="${new_path}.cmd" 27360 else 27361 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 27362 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 27363 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27364 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27365 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27366 fi 27367 else 27368 input_to_shortpath="$new_path" 27369 fi 27370 27371 # Call helper function which possibly converts this using DOS-style short mode. 27372 # If so, the updated path is stored in $new_path. 27373 new_path="$input_to_shortpath" 27374 27375 input_path="$input_to_shortpath" 27376 # Check if we need to convert this using DOS-style short mode. If the path 27377 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27378 # take no chances and rewrite it. 27379 # Note: m4 eats our [], so we need to use [ and ] instead. 27380 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27381 if test "x$has_forbidden_chars" != x; then 27382 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27383 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27384 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27385 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27386 # Going to short mode and back again did indeed matter. Since short mode is 27387 # case insensitive, let's make it lowercase to improve readability. 27388 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27389 # Now convert it back to Unix-stile (cygpath) 27390 input_path=`$CYGPATH -u "$shortmode_path"` 27391 new_path="$input_path" 27392 fi 27393 fi 27394 27395 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27396 if test "x$test_cygdrive_prefix" = x; then 27397 # As a simple fix, exclude /usr/bin since it's not a real path. 27398 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27399 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27400 # a path prefixed by /cygdrive for fixpath to work. 27401 new_path="$CYGWIN_ROOT_PATH$input_path" 27402 fi 27403 fi 27404 27405 # remove trailing .exe if any 27406 new_path="${new_path/%.exe/}" 27407 27408 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27409 27410 # First separate the path from the arguments. This will split at the first 27411 # space. 27412 complete="$VS_ENV_CMD" 27413 path="${complete%% *}" 27414 tmp="$complete EOL" 27415 arguments="${tmp#* }" 27416 27417 # Input might be given as Windows format, start by converting to 27418 # unix format. 27419 new_path="$path" 27420 27421 windows_path="$new_path" 27422 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27423 unix_path=`$CYGPATH -u "$windows_path"` 27424 new_path="$unix_path" 27425 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27426 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27427 new_path="$unix_path" 27428 fi 27429 27430 27431 # Now try to locate executable using which 27432 new_path=`$WHICH "$new_path" 2> /dev/null` 27433 27434 if test "x$new_path" = x; then 27435 # Oops. Which didn't find the executable. 27436 # The splitting of arguments from the executable at a space might have been incorrect, 27437 # since paths with space are more likely in Windows. Give it another try with the whole 27438 # argument. 27439 path="$complete" 27440 arguments="EOL" 27441 new_path="$path" 27442 27443 windows_path="$new_path" 27444 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27445 unix_path=`$CYGPATH -u "$windows_path"` 27446 new_path="$unix_path" 27447 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27448 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27449 new_path="$unix_path" 27450 fi 27451 27452 27453 new_path=`$WHICH "$new_path" 2> /dev/null` 27454 # bat and cmd files are not always considered executable in MSYS causing which 27455 # to not find them 27456 if test "x$new_path" = x \ 27457 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27458 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27459 new_path="$path" 27460 27461 windows_path="$new_path" 27462 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27463 unix_path=`$CYGPATH -u "$windows_path"` 27464 new_path="$unix_path" 27465 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27466 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27467 new_path="$unix_path" 27468 fi 27469 27470 fi 27471 27472 if test "x$new_path" = x; then 27473 # It's still not found. Now this is an unrecoverable error. 27474 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27475 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27476 has_space=`$ECHO "$complete" | $GREP " "` 27477 if test "x$has_space" != x; then 27478 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27479 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27480 fi 27481 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27482 fi 27483 fi 27484 27485 # Now new_path has a complete unix path to the binary 27486 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27487 # Keep paths in /bin as-is, but remove trailing .exe if any 27488 new_path="${new_path/%.exe/}" 27489 # Do not save /bin paths to all_fixpath_prefixes! 27490 else 27491 # Not in mixed or Windows style, start by that. 27492 new_path=`cmd //c echo $new_path` 27493 27494 input_path="$new_path" 27495 # Check if we need to convert this using DOS-style short mode. If the path 27496 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27497 # take no chances and rewrite it. 27498 # Note: m4 eats our [], so we need to use [ and ] instead. 27499 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27500 if test "x$has_forbidden_chars" != x; then 27501 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27502 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27503 fi 27504 27505 # Output is in $new_path 27506 27507 windows_path="$new_path" 27508 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27509 unix_path=`$CYGPATH -u "$windows_path"` 27510 new_path="$unix_path" 27511 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27512 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27513 new_path="$unix_path" 27514 fi 27515 27516 # remove trailing .exe if any 27517 new_path="${new_path/%.exe/}" 27518 27519 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27520 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27521 fi 27522 27523 else 27524 # We're on a posix platform. Hooray! :) 27525 # First separate the path from the arguments. This will split at the first 27526 # space. 27527 complete="$VS_ENV_CMD" 27528 path="${complete%% *}" 27529 tmp="$complete EOL" 27530 arguments="${tmp#* }" 27531 27532 # Cannot rely on the command "which" here since it doesn't always work. 27533 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27534 if test -z "$is_absolute_path"; then 27535 # Path to executable is not absolute. Find it. 27536 IFS_save="$IFS" 27537 IFS=: 27538 for p in $PATH; do 27539 if test -f "$p/$path" && test -x "$p/$path"; then 27540 new_path="$p/$path" 27541 break 27542 fi 27543 done 27544 IFS="$IFS_save" 27545 else 27546 # This is an absolute path, we can use it without further modifications. 27547 new_path="$path" 27548 fi 27549 27550 if test "x$new_path" = x; then 27551 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27552 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27553 has_space=`$ECHO "$complete" | $GREP " "` 27554 if test "x$has_space" != x; then 27555 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27556 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27557 fi 27558 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27559 fi 27560 fi 27561 27562 # Now join together the path and the arguments once again 27563 if test "x$arguments" != xEOL; then 27564 new_complete="$new_path ${arguments% *}" 27565 else 27566 new_complete="$new_path" 27567 fi 27568 27569 if test "x$complete" != "x$new_complete"; then 27570 VS_ENV_CMD="$new_complete" 27571 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 27572 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 27573 fi 27574 27575 27576 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 27577 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 27578 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 27579 27580 # We need to create a couple of temporary files. 27581 VS_ENV_TMP_DIR="$OUTPUT_ROOT/vs-env" 27582 $MKDIR -p $VS_ENV_TMP_DIR 27583 27584 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 27585 # Instead create a shell script which will set the relevant variables when run. 27586 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 27587 27588 unix_path="$WINPATH_VS_ENV_CMD" 27589 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27590 windows_path=`$CYGPATH -m "$unix_path"` 27591 WINPATH_VS_ENV_CMD="$windows_path" 27592 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27593 windows_path=`cmd //c echo $unix_path` 27594 WINPATH_VS_ENV_CMD="$windows_path" 27595 fi 27596 27597 WINPATH_BASH="$BASH" 27598 27599 unix_path="$WINPATH_BASH" 27600 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27601 windows_path=`$CYGPATH -m "$unix_path"` 27602 WINPATH_BASH="$windows_path" 27603 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27604 windows_path=`cmd //c echo $unix_path` 27605 WINPATH_BASH="$windows_path" 27606 fi 27607 27608 27609 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 27610 # script (executable by bash) that will setup the important variables. 27611 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 27612 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 27613 # This will end up something like: 27614 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 27615 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 27616 # These will end up something like: 27617 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 27618 # The trailing space for everyone except PATH is no typo, but is needed due 27619 # to trailing \ in the Windows paths. These will be stripped later. 27620 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27621 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27622 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27623 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27624 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27625 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27626 27627 # Now execute the newly created bat file. 27628 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 27629 # Change directory so we don't need to mess with Windows paths in redirects. 27630 cd $VS_ENV_TMP_DIR 27631 cmd /c extract-vs-env.bat | $CAT 27632 cd $CURDIR 27633 27634 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 27635 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 27636 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 27637 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 27638 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 27639 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 27640 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 27641 as_fn_error $? "Cannot continue" "$LINENO" 5 27642 fi 27643 27644 # Now set all paths and other env variables. This will allow the rest of 27645 # the configure script to find and run the compiler in the proper way. 27646 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 27647 $as_echo "$as_me: Setting extracted environment variables" >&6;} 27648 . $VS_ENV_TMP_DIR/set-vs-env.sh 27649 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 27650 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 27651 else 27652 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 27653 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 27654 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 27655 fi 27656 27657 # At this point, we should have correct variables in the environment, or we can't continue. 27658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 27659 $as_echo_n "checking for Visual Studio variables... " >&6; } 27660 27661 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x || test "x$WINDOWSSDKDIR" != x; then 27662 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 27663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 27664 $as_echo "present but broken" >&6; } 27665 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 27666 else 27667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 27668 $as_echo "ok" >&6; } 27669 # Remove any trailing "\" and " " from the variables. 27670 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED 's/\\\\* *$//'` 27671 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\* *$//'` 27672 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 27673 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 27674 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 27675 # Remove any paths containing # (typically F#) as that messes up make. This 27676 # is needed if visual studio was installed with F# support. 27677 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 27678 27679 27680 27681 27682 fi 27683 else 27684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 27685 $as_echo "not found" >&6; } 27686 27687 if test "x$VS_ENV_CMD" = x; then 27688 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 27689 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 27690 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 27691 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 27692 else 27693 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 27694 $as_echo "$as_me: Running the extraction script failed." >&6;} 27695 fi 27696 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 27697 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 27698 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 27699 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 27700 as_fn_error $? "Cannot continue" "$LINENO" 5 27701 fi 27702 27703 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 27704 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 27705 PATH="$VS_PATH" 27706 # The microsoft toolchain also requires INCLUDE and LIB to be set. 27707 export INCLUDE="$VS_INCLUDE" 27708 export LIB="$VS_LIB" 27709 fi 27710 27711 # autoconf magic only relies on PATH, so update it if tools dir is specified 27712 OLD_PATH="$PATH" 27713 27714 # For solaris we really need solaris tools, and not the GNU equivalent. 27715 # The build tools on Solaris reside in /usr/ccs (C Compilation System), 27716 # so add that to path before starting to probe. 27717 # FIXME: This was originally only done for AS,NM,GNM,STRIP,MCS,OBJCOPY,OBJDUMP. 27718 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 27719 PATH="/usr/ccs/bin:$PATH" 27720 fi 27721 27722 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 27723 # override all other locations. 27724 if test "x$TOOLCHAIN_PATH" != x; then 27725 PATH=$TOOLCHAIN_PATH:$PATH 27726 fi 27727 27728 27729 # 27730 # Setup the compilers (CC and CXX) 27731 # 27732 27733 COMPILER_NAME=C 27734 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 27735 27736 if test "x$CC" != x; then 27737 # User has supplied compiler name already, always let that override. 27738 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 27739 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 27740 if test "x`basename $CC`" = "x$CC"; then 27741 # A command without a complete path is provided, search $PATH. 27742 27743 for ac_prog in $CC 27744 do 27745 # Extract the first word of "$ac_prog", so it can be a program name with args. 27746 set dummy $ac_prog; ac_word=$2 27747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27748 $as_echo_n "checking for $ac_word... " >&6; } 27749 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 27750 $as_echo_n "(cached) " >&6 27751 else 27752 case $POTENTIAL_CC in 27753 [\\/]* | ?:[\\/]*) 27754 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 27755 ;; 27756 *) 27757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27758 for as_dir in $PATH 27759 do 27760 IFS=$as_save_IFS 27761 test -z "$as_dir" && as_dir=. 27762 for ac_exec_ext in '' $ac_executable_extensions; do 27763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27764 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 27765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27766 break 2 27767 fi 27768 done 27769 done 27770 IFS=$as_save_IFS 27771 27772 ;; 27773 esac 27774 fi 27775 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 27776 if test -n "$POTENTIAL_CC"; then 27777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 27778 $as_echo "$POTENTIAL_CC" >&6; } 27779 else 27780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27781 $as_echo "no" >&6; } 27782 fi 27783 27784 27785 test -n "$POTENTIAL_CC" && break 27786 done 27787 27788 if test "x$POTENTIAL_CC" != x; then 27789 CC=$POTENTIAL_CC 27790 else 27791 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 27792 fi 27793 else 27794 # Otherwise it might already be a complete path 27795 if test ! -x "$CC"; then 27796 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 27797 fi 27798 fi 27799 else 27800 # No user supplied value. Locate compiler ourselves. 27801 27802 # If we are cross compiling, assume cross compilation tools follows the 27803 # cross compilation standard where they are prefixed with the autoconf 27804 # standard name for the target. For example the binary 27805 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 27806 # If we are not cross compiling, then the default compiler name will be 27807 # used. 27808 27809 CC= 27810 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 27811 # before checking the rest of the PATH. 27812 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 27813 # step, this should not be necessary. 27814 if test -n "$TOOLCHAIN_PATH"; then 27815 PATH_save="$PATH" 27816 PATH="$TOOLCHAIN_PATH" 27817 for ac_prog in $SEARCH_LIST 27818 do 27819 # Extract the first word of "$ac_prog", so it can be a program name with args. 27820 set dummy $ac_prog; ac_word=$2 27821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27822 $as_echo_n "checking for $ac_word... " >&6; } 27823 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 27824 $as_echo_n "(cached) " >&6 27825 else 27826 case $TOOLCHAIN_PATH_CC in 27827 [\\/]* | ?:[\\/]*) 27828 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 27829 ;; 27830 *) 27831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27832 for as_dir in $PATH 27833 do 27834 IFS=$as_save_IFS 27835 test -z "$as_dir" && as_dir=. 27836 for ac_exec_ext in '' $ac_executable_extensions; do 27837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27838 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 27839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27840 break 2 27841 fi 27842 done 27843 done 27844 IFS=$as_save_IFS 27845 27846 ;; 27847 esac 27848 fi 27849 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 27850 if test -n "$TOOLCHAIN_PATH_CC"; then 27851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 27852 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 27853 else 27854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27855 $as_echo "no" >&6; } 27856 fi 27857 27858 27859 test -n "$TOOLCHAIN_PATH_CC" && break 27860 done 27861 27862 CC=$TOOLCHAIN_PATH_CC 27863 PATH="$PATH_save" 27864 fi 27865 27866 # AC_PATH_PROGS can't be run multiple times with the same variable, 27867 # so create a new name for this run. 27868 if test "x$CC" = x; then 27869 for ac_prog in $SEARCH_LIST 27870 do 27871 # Extract the first word of "$ac_prog", so it can be a program name with args. 27872 set dummy $ac_prog; ac_word=$2 27873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27874 $as_echo_n "checking for $ac_word... " >&6; } 27875 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 27876 $as_echo_n "(cached) " >&6 27877 else 27878 case $POTENTIAL_CC in 27879 [\\/]* | ?:[\\/]*) 27880 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 27881 ;; 27882 *) 27883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27884 for as_dir in $PATH 27885 do 27886 IFS=$as_save_IFS 27887 test -z "$as_dir" && as_dir=. 27888 for ac_exec_ext in '' $ac_executable_extensions; do 27889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27890 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 27891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27892 break 2 27893 fi 27894 done 27895 done 27896 IFS=$as_save_IFS 27897 27898 ;; 27899 esac 27900 fi 27901 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 27902 if test -n "$POTENTIAL_CC"; then 27903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 27904 $as_echo "$POTENTIAL_CC" >&6; } 27905 else 27906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27907 $as_echo "no" >&6; } 27908 fi 27909 27910 27911 test -n "$POTENTIAL_CC" && break 27912 done 27913 27914 CC=$POTENTIAL_CC 27915 fi 27916 27917 if test "x$CC" = x; then 27918 27919 # Print a helpful message on how to acquire the necessary build dependency. 27920 # devkit is the help tag: freetype, cups, pulse, alsa etc 27921 MISSING_DEPENDENCY=devkit 27922 27923 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27924 cygwin_help $MISSING_DEPENDENCY 27925 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27926 msys_help $MISSING_DEPENDENCY 27927 else 27928 PKGHANDLER_COMMAND= 27929 27930 case $PKGHANDLER in 27931 apt-get) 27932 apt_help $MISSING_DEPENDENCY ;; 27933 yum) 27934 yum_help $MISSING_DEPENDENCY ;; 27935 port) 27936 port_help $MISSING_DEPENDENCY ;; 27937 pkgutil) 27938 pkgutil_help $MISSING_DEPENDENCY ;; 27939 pkgadd) 27940 pkgadd_help $MISSING_DEPENDENCY ;; 27941 esac 27942 27943 if test "x$PKGHANDLER_COMMAND" != x; then 27944 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 27945 fi 27946 fi 27947 27948 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 27949 fi 27950 fi 27951 27952 # Now we have a compiler binary in CC. Make sure it's okay. 27953 27954 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27955 27956 # First separate the path from the arguments. This will split at the first 27957 # space. 27958 complete="$CC" 27959 path="${complete%% *}" 27960 tmp="$complete EOL" 27961 arguments="${tmp#* }" 27962 27963 # Input might be given as Windows format, start by converting to 27964 # unix format. 27965 new_path=`$CYGPATH -u "$path"` 27966 27967 # Now try to locate executable using which 27968 new_path=`$WHICH "$new_path" 2> /dev/null` 27969 # bat and cmd files are not always considered executable in cygwin causing which 27970 # to not find them 27971 if test "x$new_path" = x \ 27972 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27973 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27974 new_path=`$CYGPATH -u "$path"` 27975 fi 27976 if test "x$new_path" = x; then 27977 # Oops. Which didn't find the executable. 27978 # The splitting of arguments from the executable at a space might have been incorrect, 27979 # since paths with space are more likely in Windows. Give it another try with the whole 27980 # argument. 27981 path="$complete" 27982 arguments="EOL" 27983 new_path=`$CYGPATH -u "$path"` 27984 new_path=`$WHICH "$new_path" 2> /dev/null` 27985 # bat and cmd files are not always considered executable in cygwin causing which 27986 # to not find them 27987 if test "x$new_path" = x \ 27988 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27989 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27990 new_path=`$CYGPATH -u "$path"` 27991 fi 27992 if test "x$new_path" = x; then 27993 # It's still not found. Now this is an unrecoverable error. 27994 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27995 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27996 has_space=`$ECHO "$complete" | $GREP " "` 27997 if test "x$has_space" != x; then 27998 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27999 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28000 fi 28001 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28002 fi 28003 fi 28004 28005 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28006 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28007 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28008 # "foo.exe" is OK but "foo" is an error. 28009 # 28010 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28011 # It is also a way to make sure we got the proper file name for the real test later on. 28012 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28013 if test "x$test_shortpath" = x; then 28014 # Short path failed, file does not exist as specified. 28015 # Try adding .exe or .cmd 28016 if test -f "${new_path}.exe"; then 28017 input_to_shortpath="${new_path}.exe" 28018 elif test -f "${new_path}.cmd"; then 28019 input_to_shortpath="${new_path}.cmd" 28020 else 28021 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 28022 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 28023 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28024 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28025 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28026 fi 28027 else 28028 input_to_shortpath="$new_path" 28029 fi 28030 28031 # Call helper function which possibly converts this using DOS-style short mode. 28032 # If so, the updated path is stored in $new_path. 28033 new_path="$input_to_shortpath" 28034 28035 input_path="$input_to_shortpath" 28036 # Check if we need to convert this using DOS-style short mode. If the path 28037 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28038 # take no chances and rewrite it. 28039 # Note: m4 eats our [], so we need to use [ and ] instead. 28040 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28041 if test "x$has_forbidden_chars" != x; then 28042 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28043 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28044 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28045 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28046 # Going to short mode and back again did indeed matter. Since short mode is 28047 # case insensitive, let's make it lowercase to improve readability. 28048 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28049 # Now convert it back to Unix-stile (cygpath) 28050 input_path=`$CYGPATH -u "$shortmode_path"` 28051 new_path="$input_path" 28052 fi 28053 fi 28054 28055 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28056 if test "x$test_cygdrive_prefix" = x; then 28057 # As a simple fix, exclude /usr/bin since it's not a real path. 28058 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28059 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28060 # a path prefixed by /cygdrive for fixpath to work. 28061 new_path="$CYGWIN_ROOT_PATH$input_path" 28062 fi 28063 fi 28064 28065 # remove trailing .exe if any 28066 new_path="${new_path/%.exe/}" 28067 28068 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28069 28070 # First separate the path from the arguments. This will split at the first 28071 # space. 28072 complete="$CC" 28073 path="${complete%% *}" 28074 tmp="$complete EOL" 28075 arguments="${tmp#* }" 28076 28077 # Input might be given as Windows format, start by converting to 28078 # unix format. 28079 new_path="$path" 28080 28081 windows_path="$new_path" 28082 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28083 unix_path=`$CYGPATH -u "$windows_path"` 28084 new_path="$unix_path" 28085 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28086 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28087 new_path="$unix_path" 28088 fi 28089 28090 28091 # Now try to locate executable using which 28092 new_path=`$WHICH "$new_path" 2> /dev/null` 28093 28094 if test "x$new_path" = x; then 28095 # Oops. Which didn't find the executable. 28096 # The splitting of arguments from the executable at a space might have been incorrect, 28097 # since paths with space are more likely in Windows. Give it another try with the whole 28098 # argument. 28099 path="$complete" 28100 arguments="EOL" 28101 new_path="$path" 28102 28103 windows_path="$new_path" 28104 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28105 unix_path=`$CYGPATH -u "$windows_path"` 28106 new_path="$unix_path" 28107 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28108 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28109 new_path="$unix_path" 28110 fi 28111 28112 28113 new_path=`$WHICH "$new_path" 2> /dev/null` 28114 # bat and cmd files are not always considered executable in MSYS causing which 28115 # to not find them 28116 if test "x$new_path" = x \ 28117 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28118 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28119 new_path="$path" 28120 28121 windows_path="$new_path" 28122 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28123 unix_path=`$CYGPATH -u "$windows_path"` 28124 new_path="$unix_path" 28125 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28126 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28127 new_path="$unix_path" 28128 fi 28129 28130 fi 28131 28132 if test "x$new_path" = x; then 28133 # It's still not found. Now this is an unrecoverable error. 28134 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 28135 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 28136 has_space=`$ECHO "$complete" | $GREP " "` 28137 if test "x$has_space" != x; then 28138 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28139 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28140 fi 28141 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28142 fi 28143 fi 28144 28145 # Now new_path has a complete unix path to the binary 28146 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28147 # Keep paths in /bin as-is, but remove trailing .exe if any 28148 new_path="${new_path/%.exe/}" 28149 # Do not save /bin paths to all_fixpath_prefixes! 28150 else 28151 # Not in mixed or Windows style, start by that. 28152 new_path=`cmd //c echo $new_path` 28153 28154 input_path="$new_path" 28155 # Check if we need to convert this using DOS-style short mode. If the path 28156 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28157 # take no chances and rewrite it. 28158 # Note: m4 eats our [], so we need to use [ and ] instead. 28159 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28160 if test "x$has_forbidden_chars" != x; then 28161 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28162 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28163 fi 28164 28165 # Output is in $new_path 28166 28167 windows_path="$new_path" 28168 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28169 unix_path=`$CYGPATH -u "$windows_path"` 28170 new_path="$unix_path" 28171 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28172 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28173 new_path="$unix_path" 28174 fi 28175 28176 # remove trailing .exe if any 28177 new_path="${new_path/%.exe/}" 28178 28179 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28180 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28181 fi 28182 28183 else 28184 # We're on a posix platform. Hooray! :) 28185 # First separate the path from the arguments. This will split at the first 28186 # space. 28187 complete="$CC" 28188 path="${complete%% *}" 28189 tmp="$complete EOL" 28190 arguments="${tmp#* }" 28191 28192 # Cannot rely on the command "which" here since it doesn't always work. 28193 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28194 if test -z "$is_absolute_path"; then 28195 # Path to executable is not absolute. Find it. 28196 IFS_save="$IFS" 28197 IFS=: 28198 for p in $PATH; do 28199 if test -f "$p/$path" && test -x "$p/$path"; then 28200 new_path="$p/$path" 28201 break 28202 fi 28203 done 28204 IFS="$IFS_save" 28205 else 28206 # This is an absolute path, we can use it without further modifications. 28207 new_path="$path" 28208 fi 28209 28210 if test "x$new_path" = x; then 28211 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 28212 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 28213 has_space=`$ECHO "$complete" | $GREP " "` 28214 if test "x$has_space" != x; then 28215 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28216 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28217 fi 28218 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28219 fi 28220 fi 28221 28222 # Now join together the path and the arguments once again 28223 if test "x$arguments" != xEOL; then 28224 new_complete="$new_path ${arguments% *}" 28225 else 28226 new_complete="$new_path" 28227 fi 28228 28229 if test "x$complete" != "x$new_complete"; then 28230 CC="$new_complete" 28231 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 28232 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 28233 fi 28234 28235 TEST_COMPILER="$CC" 28236 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 28237 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 28238 if test "x$OPENJDK_BUILD_OS" != xaix; then 28239 # FIXME: This test should not be needed anymore; we don't do that for any platform. 28240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 28241 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 28242 28243 if test "x$OPENJDK_BUILD_OS" != xwindows; then 28244 # Follow a chain of symbolic links. Use readlink 28245 # where it exists, else fall back to horribly 28246 # complicated shell code. 28247 if test "x$READLINK_TESTED" != yes; then 28248 # On MacOSX there is a readlink tool with a different 28249 # purpose than the GNU readlink tool. Check the found readlink. 28250 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 28251 if test "x$ISGNU" = x; then 28252 # A readlink that we do not know how to use. 28253 # Are there other non-GNU readlinks out there? 28254 READLINK_TESTED=yes 28255 READLINK= 28256 fi 28257 fi 28258 28259 if test "x$READLINK" != x; then 28260 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 28261 else 28262 # Save the current directory for restoring afterwards 28263 STARTDIR=$PWD 28264 COUNTER=0 28265 sym_link_dir=`$DIRNAME $TEST_COMPILER` 28266 sym_link_file=`$BASENAME $TEST_COMPILER` 28267 cd $sym_link_dir 28268 # Use -P flag to resolve symlinks in directories. 28269 cd `$THEPWDCMD -P` 28270 sym_link_dir=`$THEPWDCMD -P` 28271 # Resolve file symlinks 28272 while test $COUNTER -lt 20; do 28273 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 28274 if test "x$ISLINK" == x; then 28275 # This is not a symbolic link! We are done! 28276 break 28277 fi 28278 # Again resolve directory symlinks since the target of the just found 28279 # link could be in a different directory 28280 cd `$DIRNAME $ISLINK` 28281 sym_link_dir=`$THEPWDCMD -P` 28282 sym_link_file=`$BASENAME $ISLINK` 28283 let COUNTER=COUNTER+1 28284 done 28285 cd $STARTDIR 28286 TEST_COMPILER=$sym_link_dir/$sym_link_file 28287 fi 28288 fi 28289 28290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 28291 $as_echo "$TEST_COMPILER" >&6; } 28292 fi 28293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5 28294 $as_echo_n "checking if CC is disguised ccache... " >&6; } 28295 28296 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 28297 if test "x$COMPILER_BASENAME" = "xccache"; then 28298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 28299 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 28300 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 28301 # We want to control ccache invocation ourselves, so ignore this cc and try 28302 # searching again. 28303 28304 # Remove the path to the fake ccache cc from the PATH 28305 RETRY_COMPILER_SAVED_PATH="$PATH" 28306 COMPILER_DIRNAME=`$DIRNAME $CC` 28307 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 28308 28309 # Try again looking for our compiler 28310 if test -n "$ac_tool_prefix"; then 28311 for ac_prog in $TOOLCHAIN_CC_BINARY 28312 do 28313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28314 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28316 $as_echo_n "checking for $ac_word... " >&6; } 28317 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then : 28318 $as_echo_n "(cached) " >&6 28319 else 28320 if test -n "$PROPER_COMPILER_CC"; then 28321 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test. 28322 else 28323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28324 for as_dir in $PATH 28325 do 28326 IFS=$as_save_IFS 28327 test -z "$as_dir" && as_dir=. 28328 for ac_exec_ext in '' $ac_executable_extensions; do 28329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28330 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog" 28331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28332 break 2 28333 fi 28334 done 28335 done 28336 IFS=$as_save_IFS 28337 28338 fi 28339 fi 28340 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC 28341 if test -n "$PROPER_COMPILER_CC"; then 28342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 28343 $as_echo "$PROPER_COMPILER_CC" >&6; } 28344 else 28345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28346 $as_echo "no" >&6; } 28347 fi 28348 28349 28350 test -n "$PROPER_COMPILER_CC" && break 28351 done 28352 fi 28353 if test -z "$PROPER_COMPILER_CC"; then 28354 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC 28355 for ac_prog in $TOOLCHAIN_CC_BINARY 28356 do 28357 # Extract the first word of "$ac_prog", so it can be a program name with args. 28358 set dummy $ac_prog; ac_word=$2 28359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28360 $as_echo_n "checking for $ac_word... " >&6; } 28361 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then : 28362 $as_echo_n "(cached) " >&6 28363 else 28364 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 28365 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test. 28366 else 28367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28368 for as_dir in $PATH 28369 do 28370 IFS=$as_save_IFS 28371 test -z "$as_dir" && as_dir=. 28372 for ac_exec_ext in '' $ac_executable_extensions; do 28373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28374 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog" 28375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28376 break 2 28377 fi 28378 done 28379 done 28380 IFS=$as_save_IFS 28381 28382 fi 28383 fi 28384 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC 28385 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 28386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5 28387 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; } 28388 else 28389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28390 $as_echo "no" >&6; } 28391 fi 28392 28393 28394 test -n "$ac_ct_PROPER_COMPILER_CC" && break 28395 done 28396 28397 if test "x$ac_ct_PROPER_COMPILER_CC" = x; then 28398 PROPER_COMPILER_CC="" 28399 else 28400 case $cross_compiling:$ac_tool_warned in 28401 yes:) 28402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28404 ac_tool_warned=yes ;; 28405 esac 28406 PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC 28407 fi 28408 fi 28409 28410 28411 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28412 28413 # First separate the path from the arguments. This will split at the first 28414 # space. 28415 complete="$PROPER_COMPILER_CC" 28416 path="${complete%% *}" 28417 tmp="$complete EOL" 28418 arguments="${tmp#* }" 28419 28420 # Input might be given as Windows format, start by converting to 28421 # unix format. 28422 new_path=`$CYGPATH -u "$path"` 28423 28424 # Now try to locate executable using which 28425 new_path=`$WHICH "$new_path" 2> /dev/null` 28426 # bat and cmd files are not always considered executable in cygwin causing which 28427 # to not find them 28428 if test "x$new_path" = x \ 28429 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28430 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28431 new_path=`$CYGPATH -u "$path"` 28432 fi 28433 if test "x$new_path" = x; then 28434 # Oops. Which didn't find the executable. 28435 # The splitting of arguments from the executable at a space might have been incorrect, 28436 # since paths with space are more likely in Windows. Give it another try with the whole 28437 # argument. 28438 path="$complete" 28439 arguments="EOL" 28440 new_path=`$CYGPATH -u "$path"` 28441 new_path=`$WHICH "$new_path" 2> /dev/null` 28442 # bat and cmd files are not always considered executable in cygwin causing which 28443 # to not find them 28444 if test "x$new_path" = x \ 28445 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28446 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28447 new_path=`$CYGPATH -u "$path"` 28448 fi 28449 if test "x$new_path" = x; then 28450 # It's still not found. Now this is an unrecoverable error. 28451 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28452 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28453 has_space=`$ECHO "$complete" | $GREP " "` 28454 if test "x$has_space" != x; then 28455 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28456 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28457 fi 28458 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28459 fi 28460 fi 28461 28462 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28463 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28464 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28465 # "foo.exe" is OK but "foo" is an error. 28466 # 28467 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28468 # It is also a way to make sure we got the proper file name for the real test later on. 28469 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28470 if test "x$test_shortpath" = x; then 28471 # Short path failed, file does not exist as specified. 28472 # Try adding .exe or .cmd 28473 if test -f "${new_path}.exe"; then 28474 input_to_shortpath="${new_path}.exe" 28475 elif test -f "${new_path}.cmd"; then 28476 input_to_shortpath="${new_path}.cmd" 28477 else 28478 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5 28479 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;} 28480 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28481 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28482 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28483 fi 28484 else 28485 input_to_shortpath="$new_path" 28486 fi 28487 28488 # Call helper function which possibly converts this using DOS-style short mode. 28489 # If so, the updated path is stored in $new_path. 28490 new_path="$input_to_shortpath" 28491 28492 input_path="$input_to_shortpath" 28493 # Check if we need to convert this using DOS-style short mode. If the path 28494 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28495 # take no chances and rewrite it. 28496 # Note: m4 eats our [], so we need to use [ and ] instead. 28497 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28498 if test "x$has_forbidden_chars" != x; then 28499 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28500 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28501 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28502 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28503 # Going to short mode and back again did indeed matter. Since short mode is 28504 # case insensitive, let's make it lowercase to improve readability. 28505 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28506 # Now convert it back to Unix-stile (cygpath) 28507 input_path=`$CYGPATH -u "$shortmode_path"` 28508 new_path="$input_path" 28509 fi 28510 fi 28511 28512 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28513 if test "x$test_cygdrive_prefix" = x; then 28514 # As a simple fix, exclude /usr/bin since it's not a real path. 28515 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28516 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28517 # a path prefixed by /cygdrive for fixpath to work. 28518 new_path="$CYGWIN_ROOT_PATH$input_path" 28519 fi 28520 fi 28521 28522 # remove trailing .exe if any 28523 new_path="${new_path/%.exe/}" 28524 28525 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28526 28527 # First separate the path from the arguments. This will split at the first 28528 # space. 28529 complete="$PROPER_COMPILER_CC" 28530 path="${complete%% *}" 28531 tmp="$complete EOL" 28532 arguments="${tmp#* }" 28533 28534 # Input might be given as Windows format, start by converting to 28535 # unix format. 28536 new_path="$path" 28537 28538 windows_path="$new_path" 28539 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28540 unix_path=`$CYGPATH -u "$windows_path"` 28541 new_path="$unix_path" 28542 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28543 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28544 new_path="$unix_path" 28545 fi 28546 28547 28548 # Now try to locate executable using which 28549 new_path=`$WHICH "$new_path" 2> /dev/null` 28550 28551 if test "x$new_path" = x; then 28552 # Oops. Which didn't find the executable. 28553 # The splitting of arguments from the executable at a space might have been incorrect, 28554 # since paths with space are more likely in Windows. Give it another try with the whole 28555 # argument. 28556 path="$complete" 28557 arguments="EOL" 28558 new_path="$path" 28559 28560 windows_path="$new_path" 28561 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28562 unix_path=`$CYGPATH -u "$windows_path"` 28563 new_path="$unix_path" 28564 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28565 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28566 new_path="$unix_path" 28567 fi 28568 28569 28570 new_path=`$WHICH "$new_path" 2> /dev/null` 28571 # bat and cmd files are not always considered executable in MSYS causing which 28572 # to not find them 28573 if test "x$new_path" = x \ 28574 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28575 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28576 new_path="$path" 28577 28578 windows_path="$new_path" 28579 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28580 unix_path=`$CYGPATH -u "$windows_path"` 28581 new_path="$unix_path" 28582 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28583 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28584 new_path="$unix_path" 28585 fi 28586 28587 fi 28588 28589 if test "x$new_path" = x; then 28590 # It's still not found. Now this is an unrecoverable error. 28591 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28592 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28593 has_space=`$ECHO "$complete" | $GREP " "` 28594 if test "x$has_space" != x; then 28595 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28596 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28597 fi 28598 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28599 fi 28600 fi 28601 28602 # Now new_path has a complete unix path to the binary 28603 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28604 # Keep paths in /bin as-is, but remove trailing .exe if any 28605 new_path="${new_path/%.exe/}" 28606 # Do not save /bin paths to all_fixpath_prefixes! 28607 else 28608 # Not in mixed or Windows style, start by that. 28609 new_path=`cmd //c echo $new_path` 28610 28611 input_path="$new_path" 28612 # Check if we need to convert this using DOS-style short mode. If the path 28613 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28614 # take no chances and rewrite it. 28615 # Note: m4 eats our [], so we need to use [ and ] instead. 28616 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28617 if test "x$has_forbidden_chars" != x; then 28618 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28619 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28620 fi 28621 28622 # Output is in $new_path 28623 28624 windows_path="$new_path" 28625 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28626 unix_path=`$CYGPATH -u "$windows_path"` 28627 new_path="$unix_path" 28628 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28629 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28630 new_path="$unix_path" 28631 fi 28632 28633 # remove trailing .exe if any 28634 new_path="${new_path/%.exe/}" 28635 28636 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28637 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28638 fi 28639 28640 else 28641 # We're on a posix platform. Hooray! :) 28642 # First separate the path from the arguments. This will split at the first 28643 # space. 28644 complete="$PROPER_COMPILER_CC" 28645 path="${complete%% *}" 28646 tmp="$complete EOL" 28647 arguments="${tmp#* }" 28648 28649 # Cannot rely on the command "which" here since it doesn't always work. 28650 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28651 if test -z "$is_absolute_path"; then 28652 # Path to executable is not absolute. Find it. 28653 IFS_save="$IFS" 28654 IFS=: 28655 for p in $PATH; do 28656 if test -f "$p/$path" && test -x "$p/$path"; then 28657 new_path="$p/$path" 28658 break 28659 fi 28660 done 28661 IFS="$IFS_save" 28662 else 28663 # This is an absolute path, we can use it without further modifications. 28664 new_path="$path" 28665 fi 28666 28667 if test "x$new_path" = x; then 28668 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28669 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28670 has_space=`$ECHO "$complete" | $GREP " "` 28671 if test "x$has_space" != x; then 28672 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28673 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28674 fi 28675 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28676 fi 28677 fi 28678 28679 # Now join together the path and the arguments once again 28680 if test "x$arguments" != xEOL; then 28681 new_complete="$new_path ${arguments% *}" 28682 else 28683 new_complete="$new_path" 28684 fi 28685 28686 if test "x$complete" != "x$new_complete"; then 28687 PROPER_COMPILER_CC="$new_complete" 28688 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5 28689 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;} 28690 fi 28691 28692 PATH="$RETRY_COMPILER_SAVED_PATH" 28693 28694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5 28695 $as_echo_n "checking for resolved symbolic links for CC... " >&6; } 28696 28697 if test "x$OPENJDK_BUILD_OS" != xwindows; then 28698 # Follow a chain of symbolic links. Use readlink 28699 # where it exists, else fall back to horribly 28700 # complicated shell code. 28701 if test "x$READLINK_TESTED" != yes; then 28702 # On MacOSX there is a readlink tool with a different 28703 # purpose than the GNU readlink tool. Check the found readlink. 28704 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 28705 if test "x$ISGNU" = x; then 28706 # A readlink that we do not know how to use. 28707 # Are there other non-GNU readlinks out there? 28708 READLINK_TESTED=yes 28709 READLINK= 28710 fi 28711 fi 28712 28713 if test "x$READLINK" != x; then 28714 PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC` 28715 else 28716 # Save the current directory for restoring afterwards 28717 STARTDIR=$PWD 28718 COUNTER=0 28719 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC` 28720 sym_link_file=`$BASENAME $PROPER_COMPILER_CC` 28721 cd $sym_link_dir 28722 # Use -P flag to resolve symlinks in directories. 28723 cd `$THEPWDCMD -P` 28724 sym_link_dir=`$THEPWDCMD -P` 28725 # Resolve file symlinks 28726 while test $COUNTER -lt 20; do 28727 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 28728 if test "x$ISLINK" == x; then 28729 # This is not a symbolic link! We are done! 28730 break 28731 fi 28732 # Again resolve directory symlinks since the target of the just found 28733 # link could be in a different directory 28734 cd `$DIRNAME $ISLINK` 28735 sym_link_dir=`$THEPWDCMD -P` 28736 sym_link_file=`$BASENAME $ISLINK` 28737 let COUNTER=COUNTER+1 28738 done 28739 cd $STARTDIR 28740 PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file 28741 fi 28742 fi 28743 28744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 28745 $as_echo "$PROPER_COMPILER_CC" >&6; } 28746 CC="$PROPER_COMPILER_CC" 28747 else 28748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5 28749 $as_echo "no, keeping CC" >&6; } 28750 fi 28751 28752 28753 COMPILER=$CC 28754 COMPILER_NAME=$COMPILER_NAME 28755 28756 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 28757 # cc -V output typically looks like 28758 # cc: Sun C 5.12 Linux_i386 2011/11/16 28759 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 28760 # Check that this is likely to be the Solaris Studio cc. 28761 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 28762 if test $? -ne 0; then 28763 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28764 { $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 28765 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28766 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28767 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28768 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 28769 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 28770 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28771 fi 28772 # Remove usage instructions (if present), and 28773 # collapse compiler output into a single line 28774 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28775 $SED -e 's/ *[Uu]sage:.*//'` 28776 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28777 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 28778 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 28779 # xlc -qversion output typically looks like 28780 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 28781 # Version: 11.01.0000.0015 28782 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 28783 # Check that this is likely to be the IBM XL C compiler. 28784 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 28785 if test $? -ne 0; then 28786 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28787 { $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 28788 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28789 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28790 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28791 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 28792 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 28793 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28794 fi 28795 # Collapse compiler output into a single line 28796 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28797 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28798 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 28799 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 28800 # There is no specific version flag, but all output starts with a version string. 28801 # First line typically looks something like: 28802 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 28803 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 28804 # Check that this is likely to be Microsoft CL.EXE. 28805 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 28806 if test $? -ne 0; then 28807 { $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 28808 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28809 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28810 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28811 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28812 fi 28813 # Collapse compiler output into a single line 28814 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28815 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28816 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 28817 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 28818 # gcc --version output typically looks like 28819 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 28820 # Copyright (C) 2013 Free Software Foundation, Inc. 28821 # This is free software; see the source for copying conditions. There is NO 28822 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 28823 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28824 # Check that this is likely to be GCC. 28825 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 28826 if test $? -ne 0; then 28827 { $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 28828 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28829 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 28830 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 28831 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28832 fi 28833 # Remove Copyright and legalese from version string, and 28834 # collapse into a single line 28835 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28836 $SED -e 's/ *Copyright .*//'` 28837 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28838 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 28839 elif test "x$TOOLCHAIN_TYPE" = xclang; then 28840 # clang --version output typically looks like 28841 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 28842 # clang version 3.3 (tags/RELEASE_33/final) 28843 # or 28844 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 28845 # Target: x86_64-pc-linux-gnu 28846 # Thread model: posix 28847 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28848 # Check that this is likely to be clang 28849 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 28850 if test $? -ne 0; then 28851 { $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 28852 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28853 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28854 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28855 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28856 fi 28857 # Collapse compiler output into a single line 28858 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28859 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28860 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 28861 else 28862 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 28863 fi 28864 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 28865 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 28866 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 28867 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 28868 28869 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 28870 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 28871 28872 28873 # Now that we have resolved CC ourself, let autoconf have its go at it 28874 ac_ext=c 28875 ac_cpp='$CPP $CPPFLAGS' 28876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28878 ac_compiler_gnu=$ac_cv_c_compiler_gnu 28879 if test -n "$ac_tool_prefix"; then 28880 for ac_prog in $CC 28881 do 28882 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28883 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28885 $as_echo_n "checking for $ac_word... " >&6; } 28886 if ${ac_cv_prog_CC+:} false; then : 28887 $as_echo_n "(cached) " >&6 28888 else 28889 if test -n "$CC"; then 28890 ac_cv_prog_CC="$CC" # Let the user override the test. 28891 else 28892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28893 for as_dir in $PATH 28894 do 28895 IFS=$as_save_IFS 28896 test -z "$as_dir" && as_dir=. 28897 for ac_exec_ext in '' $ac_executable_extensions; do 28898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28899 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 28900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28901 break 2 28902 fi 28903 done 28904 done 28905 IFS=$as_save_IFS 28906 28907 fi 28908 fi 28909 CC=$ac_cv_prog_CC 28910 if test -n "$CC"; then 28911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 28912 $as_echo "$CC" >&6; } 28913 else 28914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28915 $as_echo "no" >&6; } 28916 fi 28917 28918 28919 test -n "$CC" && break 28920 done 28921 fi 28922 if test -z "$CC"; then 28923 ac_ct_CC=$CC 28924 for ac_prog in $CC 28925 do 28926 # Extract the first word of "$ac_prog", so it can be a program name with args. 28927 set dummy $ac_prog; ac_word=$2 28928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28929 $as_echo_n "checking for $ac_word... " >&6; } 28930 if ${ac_cv_prog_ac_ct_CC+:} false; then : 28931 $as_echo_n "(cached) " >&6 28932 else 28933 if test -n "$ac_ct_CC"; then 28934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 28935 else 28936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28937 for as_dir in $PATH 28938 do 28939 IFS=$as_save_IFS 28940 test -z "$as_dir" && as_dir=. 28941 for ac_exec_ext in '' $ac_executable_extensions; do 28942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28943 ac_cv_prog_ac_ct_CC="$ac_prog" 28944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28945 break 2 28946 fi 28947 done 28948 done 28949 IFS=$as_save_IFS 28950 28951 fi 28952 fi 28953 ac_ct_CC=$ac_cv_prog_ac_ct_CC 28954 if test -n "$ac_ct_CC"; then 28955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 28956 $as_echo "$ac_ct_CC" >&6; } 28957 else 28958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28959 $as_echo "no" >&6; } 28960 fi 28961 28962 28963 test -n "$ac_ct_CC" && break 28964 done 28965 28966 if test "x$ac_ct_CC" = x; then 28967 CC="" 28968 else 28969 case $cross_compiling:$ac_tool_warned in 28970 yes:) 28971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28973 ac_tool_warned=yes ;; 28974 esac 28975 CC=$ac_ct_CC 28976 fi 28977 fi 28978 28979 28980 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28982 as_fn_error $? "no acceptable C compiler found in \$PATH 28983 See \`config.log' for more details" "$LINENO" 5; } 28984 28985 # Provide some information about the compiler. 28986 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 28987 set X $ac_compile 28988 ac_compiler=$2 28989 for ac_option in --version -v -V -qversion; do 28990 { { ac_try="$ac_compiler $ac_option >&5" 28991 case "(($ac_try" in 28992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28993 *) ac_try_echo=$ac_try;; 28994 esac 28995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28996 $as_echo "$ac_try_echo"; } >&5 28997 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 28998 ac_status=$? 28999 if test -s conftest.err; then 29000 sed '10a\ 29001 ... rest of stderr output deleted ... 29002 10q' conftest.err >conftest.er1 29003 cat conftest.er1 >&5 29004 fi 29005 rm -f conftest.er1 conftest.err 29006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29007 test $ac_status = 0; } 29008 done 29009 29010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29011 /* end confdefs.h. */ 29012 29013 int 29014 main () 29015 { 29016 29017 ; 29018 return 0; 29019 } 29020 _ACEOF 29021 ac_clean_files_save=$ac_clean_files 29022 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 29023 # Try to create an executable without -o first, disregard a.out. 29024 # It will help us diagnose broken compilers, and finding out an intuition 29025 # of exeext. 29026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 29027 $as_echo_n "checking whether the C compiler works... " >&6; } 29028 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 29029 29030 # The possible output files: 29031 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 29032 29033 ac_rmfiles= 29034 for ac_file in $ac_files 29035 do 29036 case $ac_file in 29037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 29038 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 29039 esac 29040 done 29041 rm -f $ac_rmfiles 29042 29043 if { { ac_try="$ac_link_default" 29044 case "(($ac_try" in 29045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29046 *) ac_try_echo=$ac_try;; 29047 esac 29048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29049 $as_echo "$ac_try_echo"; } >&5 29050 (eval "$ac_link_default") 2>&5 29051 ac_status=$? 29052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29053 test $ac_status = 0; }; then : 29054 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 29055 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 29056 # in a Makefile. We should not override ac_cv_exeext if it was cached, 29057 # so that the user can short-circuit this test for compilers unknown to 29058 # Autoconf. 29059 for ac_file in $ac_files '' 29060 do 29061 test -f "$ac_file" || continue 29062 case $ac_file in 29063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 29064 ;; 29065 [ab].out ) 29066 # We found the default executable, but exeext='' is most 29067 # certainly right. 29068 break;; 29069 *.* ) 29070 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 29071 then :; else 29072 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 29073 fi 29074 # We set ac_cv_exeext here because the later test for it is not 29075 # safe: cross compilers may not add the suffix if given an `-o' 29076 # argument, so we may need to know it at that point already. 29077 # Even if this section looks crufty: it has the advantage of 29078 # actually working. 29079 break;; 29080 * ) 29081 break;; 29082 esac 29083 done 29084 test "$ac_cv_exeext" = no && ac_cv_exeext= 29085 29086 else 29087 ac_file='' 29088 fi 29089 if test -z "$ac_file"; then : 29090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29091 $as_echo "no" >&6; } 29092 $as_echo "$as_me: failed program was:" >&5 29093 sed 's/^/| /' conftest.$ac_ext >&5 29094 29095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29097 as_fn_error 77 "C compiler cannot create executables 29098 See \`config.log' for more details" "$LINENO" 5; } 29099 else 29100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29101 $as_echo "yes" >&6; } 29102 fi 29103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 29104 $as_echo_n "checking for C compiler default output file name... " >&6; } 29105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 29106 $as_echo "$ac_file" >&6; } 29107 ac_exeext=$ac_cv_exeext 29108 29109 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 29110 ac_clean_files=$ac_clean_files_save 29111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 29112 $as_echo_n "checking for suffix of executables... " >&6; } 29113 if { { ac_try="$ac_link" 29114 case "(($ac_try" in 29115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29116 *) ac_try_echo=$ac_try;; 29117 esac 29118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29119 $as_echo "$ac_try_echo"; } >&5 29120 (eval "$ac_link") 2>&5 29121 ac_status=$? 29122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29123 test $ac_status = 0; }; then : 29124 # If both `conftest.exe' and `conftest' are `present' (well, observable) 29125 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 29126 # work properly (i.e., refer to `conftest.exe'), while it won't with 29127 # `rm'. 29128 for ac_file in conftest.exe conftest conftest.*; do 29129 test -f "$ac_file" || continue 29130 case $ac_file in 29131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 29132 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 29133 break;; 29134 * ) break;; 29135 esac 29136 done 29137 else 29138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29140 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 29141 See \`config.log' for more details" "$LINENO" 5; } 29142 fi 29143 rm -f conftest conftest$ac_cv_exeext 29144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 29145 $as_echo "$ac_cv_exeext" >&6; } 29146 29147 rm -f conftest.$ac_ext 29148 EXEEXT=$ac_cv_exeext 29149 ac_exeext=$EXEEXT 29150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29151 /* end confdefs.h. */ 29152 #include <stdio.h> 29153 int 29154 main () 29155 { 29156 FILE *f = fopen ("conftest.out", "w"); 29157 return ferror (f) || fclose (f) != 0; 29158 29159 ; 29160 return 0; 29161 } 29162 _ACEOF 29163 ac_clean_files="$ac_clean_files conftest.out" 29164 # Check that the compiler produces executables we can run. If not, either 29165 # the compiler is broken, or we cross compile. 29166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 29167 $as_echo_n "checking whether we are cross compiling... " >&6; } 29168 if test "$cross_compiling" != yes; then 29169 { { ac_try="$ac_link" 29170 case "(($ac_try" in 29171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29172 *) ac_try_echo=$ac_try;; 29173 esac 29174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29175 $as_echo "$ac_try_echo"; } >&5 29176 (eval "$ac_link") 2>&5 29177 ac_status=$? 29178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29179 test $ac_status = 0; } 29180 if { ac_try='./conftest$ac_cv_exeext' 29181 { { case "(($ac_try" in 29182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29183 *) ac_try_echo=$ac_try;; 29184 esac 29185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29186 $as_echo "$ac_try_echo"; } >&5 29187 (eval "$ac_try") 2>&5 29188 ac_status=$? 29189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29190 test $ac_status = 0; }; }; then 29191 cross_compiling=no 29192 else 29193 if test "$cross_compiling" = maybe; then 29194 cross_compiling=yes 29195 else 29196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29198 as_fn_error $? "cannot run C compiled programs. 29199 If you meant to cross compile, use \`--host'. 29200 See \`config.log' for more details" "$LINENO" 5; } 29201 fi 29202 fi 29203 fi 29204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 29205 $as_echo "$cross_compiling" >&6; } 29206 29207 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 29208 ac_clean_files=$ac_clean_files_save 29209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 29210 $as_echo_n "checking for suffix of object files... " >&6; } 29211 if ${ac_cv_objext+:} false; then : 29212 $as_echo_n "(cached) " >&6 29213 else 29214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29215 /* end confdefs.h. */ 29216 29217 int 29218 main () 29219 { 29220 29221 ; 29222 return 0; 29223 } 29224 _ACEOF 29225 rm -f conftest.o conftest.obj 29226 if { { ac_try="$ac_compile" 29227 case "(($ac_try" in 29228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29229 *) ac_try_echo=$ac_try;; 29230 esac 29231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29232 $as_echo "$ac_try_echo"; } >&5 29233 (eval "$ac_compile") 2>&5 29234 ac_status=$? 29235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29236 test $ac_status = 0; }; then : 29237 for ac_file in conftest.o conftest.obj conftest.*; do 29238 test -f "$ac_file" || continue; 29239 case $ac_file in 29240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 29241 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 29242 break;; 29243 esac 29244 done 29245 else 29246 $as_echo "$as_me: failed program was:" >&5 29247 sed 's/^/| /' conftest.$ac_ext >&5 29248 29249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29251 as_fn_error $? "cannot compute suffix of object files: cannot compile 29252 See \`config.log' for more details" "$LINENO" 5; } 29253 fi 29254 rm -f conftest.$ac_cv_objext conftest.$ac_ext 29255 fi 29256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 29257 $as_echo "$ac_cv_objext" >&6; } 29258 OBJEXT=$ac_cv_objext 29259 ac_objext=$OBJEXT 29260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 29261 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 29262 if ${ac_cv_c_compiler_gnu+:} false; then : 29263 $as_echo_n "(cached) " >&6 29264 else 29265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29266 /* end confdefs.h. */ 29267 29268 int 29269 main () 29270 { 29271 #ifndef __GNUC__ 29272 choke me 29273 #endif 29274 29275 ; 29276 return 0; 29277 } 29278 _ACEOF 29279 if ac_fn_c_try_compile "$LINENO"; then : 29280 ac_compiler_gnu=yes 29281 else 29282 ac_compiler_gnu=no 29283 fi 29284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29285 ac_cv_c_compiler_gnu=$ac_compiler_gnu 29286 29287 fi 29288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 29289 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 29290 if test $ac_compiler_gnu = yes; then 29291 GCC=yes 29292 else 29293 GCC= 29294 fi 29295 ac_test_CFLAGS=${CFLAGS+set} 29296 ac_save_CFLAGS=$CFLAGS 29297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 29298 $as_echo_n "checking whether $CC accepts -g... " >&6; } 29299 if ${ac_cv_prog_cc_g+:} false; then : 29300 $as_echo_n "(cached) " >&6 29301 else 29302 ac_save_c_werror_flag=$ac_c_werror_flag 29303 ac_c_werror_flag=yes 29304 ac_cv_prog_cc_g=no 29305 CFLAGS="-g" 29306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29307 /* end confdefs.h. */ 29308 29309 int 29310 main () 29311 { 29312 29313 ; 29314 return 0; 29315 } 29316 _ACEOF 29317 if ac_fn_c_try_compile "$LINENO"; then : 29318 ac_cv_prog_cc_g=yes 29319 else 29320 CFLAGS="" 29321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29322 /* end confdefs.h. */ 29323 29324 int 29325 main () 29326 { 29327 29328 ; 29329 return 0; 29330 } 29331 _ACEOF 29332 if ac_fn_c_try_compile "$LINENO"; then : 29333 29334 else 29335 ac_c_werror_flag=$ac_save_c_werror_flag 29336 CFLAGS="-g" 29337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29338 /* end confdefs.h. */ 29339 29340 int 29341 main () 29342 { 29343 29344 ; 29345 return 0; 29346 } 29347 _ACEOF 29348 if ac_fn_c_try_compile "$LINENO"; then : 29349 ac_cv_prog_cc_g=yes 29350 fi 29351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29352 fi 29353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29354 fi 29355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29356 ac_c_werror_flag=$ac_save_c_werror_flag 29357 fi 29358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 29359 $as_echo "$ac_cv_prog_cc_g" >&6; } 29360 if test "$ac_test_CFLAGS" = set; then 29361 CFLAGS=$ac_save_CFLAGS 29362 elif test $ac_cv_prog_cc_g = yes; then 29363 if test "$GCC" = yes; then 29364 CFLAGS="-g -O2" 29365 else 29366 CFLAGS="-g" 29367 fi 29368 else 29369 if test "$GCC" = yes; then 29370 CFLAGS="-O2" 29371 else 29372 CFLAGS= 29373 fi 29374 fi 29375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 29376 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 29377 if ${ac_cv_prog_cc_c89+:} false; then : 29378 $as_echo_n "(cached) " >&6 29379 else 29380 ac_cv_prog_cc_c89=no 29381 ac_save_CC=$CC 29382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29383 /* end confdefs.h. */ 29384 #include <stdarg.h> 29385 #include <stdio.h> 29386 struct stat; 29387 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 29388 struct buf { int x; }; 29389 FILE * (*rcsopen) (struct buf *, struct stat *, int); 29390 static char *e (p, i) 29391 char **p; 29392 int i; 29393 { 29394 return p[i]; 29395 } 29396 static char *f (char * (*g) (char **, int), char **p, ...) 29397 { 29398 char *s; 29399 va_list v; 29400 va_start (v,p); 29401 s = g (p, va_arg (v,int)); 29402 va_end (v); 29403 return s; 29404 } 29405 29406 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 29407 function prototypes and stuff, but not '\xHH' hex character constants. 29408 These don't provoke an error unfortunately, instead are silently treated 29409 as 'x'. The following induces an error, until -std is added to get 29410 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 29411 array size at least. It's necessary to write '\x00'==0 to get something 29412 that's true only with -std. */ 29413 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 29414 29415 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 29416 inside strings and character constants. */ 29417 #define FOO(x) 'x' 29418 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 29419 29420 int test (int i, double x); 29421 struct s1 {int (*f) (int a);}; 29422 struct s2 {int (*f) (double a);}; 29423 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 29424 int argc; 29425 char **argv; 29426 int 29427 main () 29428 { 29429 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 29430 ; 29431 return 0; 29432 } 29433 _ACEOF 29434 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 29435 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 29436 do 29437 CC="$ac_save_CC $ac_arg" 29438 if ac_fn_c_try_compile "$LINENO"; then : 29439 ac_cv_prog_cc_c89=$ac_arg 29440 fi 29441 rm -f core conftest.err conftest.$ac_objext 29442 test "x$ac_cv_prog_cc_c89" != "xno" && break 29443 done 29444 rm -f conftest.$ac_ext 29445 CC=$ac_save_CC 29446 29447 fi 29448 # AC_CACHE_VAL 29449 case "x$ac_cv_prog_cc_c89" in 29450 x) 29451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 29452 $as_echo "none needed" >&6; } ;; 29453 xno) 29454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 29455 $as_echo "unsupported" >&6; } ;; 29456 *) 29457 CC="$CC $ac_cv_prog_cc_c89" 29458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 29459 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 29460 esac 29461 if test "x$ac_cv_prog_cc_c89" != xno; then : 29462 29463 fi 29464 29465 ac_ext=cpp 29466 ac_cpp='$CXXCPP $CPPFLAGS' 29467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29470 29471 29472 29473 COMPILER_NAME=C++ 29474 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 29475 29476 if test "x$CXX" != x; then 29477 # User has supplied compiler name already, always let that override. 29478 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 29479 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 29480 if test "x`basename $CXX`" = "x$CXX"; then 29481 # A command without a complete path is provided, search $PATH. 29482 29483 for ac_prog in $CXX 29484 do 29485 # Extract the first word of "$ac_prog", so it can be a program name with args. 29486 set dummy $ac_prog; ac_word=$2 29487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29488 $as_echo_n "checking for $ac_word... " >&6; } 29489 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 29490 $as_echo_n "(cached) " >&6 29491 else 29492 case $POTENTIAL_CXX in 29493 [\\/]* | ?:[\\/]*) 29494 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 29495 ;; 29496 *) 29497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29498 for as_dir in $PATH 29499 do 29500 IFS=$as_save_IFS 29501 test -z "$as_dir" && as_dir=. 29502 for ac_exec_ext in '' $ac_executable_extensions; do 29503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29504 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 29505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29506 break 2 29507 fi 29508 done 29509 done 29510 IFS=$as_save_IFS 29511 29512 ;; 29513 esac 29514 fi 29515 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 29516 if test -n "$POTENTIAL_CXX"; then 29517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 29518 $as_echo "$POTENTIAL_CXX" >&6; } 29519 else 29520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29521 $as_echo "no" >&6; } 29522 fi 29523 29524 29525 test -n "$POTENTIAL_CXX" && break 29526 done 29527 29528 if test "x$POTENTIAL_CXX" != x; then 29529 CXX=$POTENTIAL_CXX 29530 else 29531 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 29532 fi 29533 else 29534 # Otherwise it might already be a complete path 29535 if test ! -x "$CXX"; then 29536 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 29537 fi 29538 fi 29539 else 29540 # No user supplied value. Locate compiler ourselves. 29541 29542 # If we are cross compiling, assume cross compilation tools follows the 29543 # cross compilation standard where they are prefixed with the autoconf 29544 # standard name for the target. For example the binary 29545 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 29546 # If we are not cross compiling, then the default compiler name will be 29547 # used. 29548 29549 CXX= 29550 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 29551 # before checking the rest of the PATH. 29552 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 29553 # step, this should not be necessary. 29554 if test -n "$TOOLCHAIN_PATH"; then 29555 PATH_save="$PATH" 29556 PATH="$TOOLCHAIN_PATH" 29557 for ac_prog in $SEARCH_LIST 29558 do 29559 # Extract the first word of "$ac_prog", so it can be a program name with args. 29560 set dummy $ac_prog; ac_word=$2 29561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29562 $as_echo_n "checking for $ac_word... " >&6; } 29563 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 29564 $as_echo_n "(cached) " >&6 29565 else 29566 case $TOOLCHAIN_PATH_CXX in 29567 [\\/]* | ?:[\\/]*) 29568 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 29569 ;; 29570 *) 29571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29572 for as_dir in $PATH 29573 do 29574 IFS=$as_save_IFS 29575 test -z "$as_dir" && as_dir=. 29576 for ac_exec_ext in '' $ac_executable_extensions; do 29577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29578 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 29579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29580 break 2 29581 fi 29582 done 29583 done 29584 IFS=$as_save_IFS 29585 29586 ;; 29587 esac 29588 fi 29589 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 29590 if test -n "$TOOLCHAIN_PATH_CXX"; then 29591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 29592 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 29593 else 29594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29595 $as_echo "no" >&6; } 29596 fi 29597 29598 29599 test -n "$TOOLCHAIN_PATH_CXX" && break 29600 done 29601 29602 CXX=$TOOLCHAIN_PATH_CXX 29603 PATH="$PATH_save" 29604 fi 29605 29606 # AC_PATH_PROGS can't be run multiple times with the same variable, 29607 # so create a new name for this run. 29608 if test "x$CXX" = x; then 29609 for ac_prog in $SEARCH_LIST 29610 do 29611 # Extract the first word of "$ac_prog", so it can be a program name with args. 29612 set dummy $ac_prog; ac_word=$2 29613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29614 $as_echo_n "checking for $ac_word... " >&6; } 29615 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 29616 $as_echo_n "(cached) " >&6 29617 else 29618 case $POTENTIAL_CXX in 29619 [\\/]* | ?:[\\/]*) 29620 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 29621 ;; 29622 *) 29623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29624 for as_dir in $PATH 29625 do 29626 IFS=$as_save_IFS 29627 test -z "$as_dir" && as_dir=. 29628 for ac_exec_ext in '' $ac_executable_extensions; do 29629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29630 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 29631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29632 break 2 29633 fi 29634 done 29635 done 29636 IFS=$as_save_IFS 29637 29638 ;; 29639 esac 29640 fi 29641 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 29642 if test -n "$POTENTIAL_CXX"; then 29643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 29644 $as_echo "$POTENTIAL_CXX" >&6; } 29645 else 29646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29647 $as_echo "no" >&6; } 29648 fi 29649 29650 29651 test -n "$POTENTIAL_CXX" && break 29652 done 29653 29654 CXX=$POTENTIAL_CXX 29655 fi 29656 29657 if test "x$CXX" = x; then 29658 29659 # Print a helpful message on how to acquire the necessary build dependency. 29660 # devkit is the help tag: freetype, cups, pulse, alsa etc 29661 MISSING_DEPENDENCY=devkit 29662 29663 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29664 cygwin_help $MISSING_DEPENDENCY 29665 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29666 msys_help $MISSING_DEPENDENCY 29667 else 29668 PKGHANDLER_COMMAND= 29669 29670 case $PKGHANDLER in 29671 apt-get) 29672 apt_help $MISSING_DEPENDENCY ;; 29673 yum) 29674 yum_help $MISSING_DEPENDENCY ;; 29675 port) 29676 port_help $MISSING_DEPENDENCY ;; 29677 pkgutil) 29678 pkgutil_help $MISSING_DEPENDENCY ;; 29679 pkgadd) 29680 pkgadd_help $MISSING_DEPENDENCY ;; 29681 esac 29682 29683 if test "x$PKGHANDLER_COMMAND" != x; then 29684 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 29685 fi 29686 fi 29687 29688 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 29689 fi 29690 fi 29691 29692 # Now we have a compiler binary in CXX. Make sure it's okay. 29693 29694 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29695 29696 # First separate the path from the arguments. This will split at the first 29697 # space. 29698 complete="$CXX" 29699 path="${complete%% *}" 29700 tmp="$complete EOL" 29701 arguments="${tmp#* }" 29702 29703 # Input might be given as Windows format, start by converting to 29704 # unix format. 29705 new_path=`$CYGPATH -u "$path"` 29706 29707 # Now try to locate executable using which 29708 new_path=`$WHICH "$new_path" 2> /dev/null` 29709 # bat and cmd files are not always considered executable in cygwin causing which 29710 # to not find them 29711 if test "x$new_path" = x \ 29712 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29713 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29714 new_path=`$CYGPATH -u "$path"` 29715 fi 29716 if test "x$new_path" = x; then 29717 # Oops. Which didn't find the executable. 29718 # The splitting of arguments from the executable at a space might have been incorrect, 29719 # since paths with space are more likely in Windows. Give it another try with the whole 29720 # argument. 29721 path="$complete" 29722 arguments="EOL" 29723 new_path=`$CYGPATH -u "$path"` 29724 new_path=`$WHICH "$new_path" 2> /dev/null` 29725 # bat and cmd files are not always considered executable in cygwin causing which 29726 # to not find them 29727 if test "x$new_path" = x \ 29728 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29729 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29730 new_path=`$CYGPATH -u "$path"` 29731 fi 29732 if test "x$new_path" = x; then 29733 # It's still not found. Now this is an unrecoverable error. 29734 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29735 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29736 has_space=`$ECHO "$complete" | $GREP " "` 29737 if test "x$has_space" != x; then 29738 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29739 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29740 fi 29741 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29742 fi 29743 fi 29744 29745 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29746 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29747 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29748 # "foo.exe" is OK but "foo" is an error. 29749 # 29750 # This test is therefore slightly more accurate than "test -f" to check for file presence. 29751 # It is also a way to make sure we got the proper file name for the real test later on. 29752 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29753 if test "x$test_shortpath" = x; then 29754 # Short path failed, file does not exist as specified. 29755 # Try adding .exe or .cmd 29756 if test -f "${new_path}.exe"; then 29757 input_to_shortpath="${new_path}.exe" 29758 elif test -f "${new_path}.cmd"; then 29759 input_to_shortpath="${new_path}.cmd" 29760 else 29761 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 29762 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 29763 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 29764 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 29765 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29766 fi 29767 else 29768 input_to_shortpath="$new_path" 29769 fi 29770 29771 # Call helper function which possibly converts this using DOS-style short mode. 29772 # If so, the updated path is stored in $new_path. 29773 new_path="$input_to_shortpath" 29774 29775 input_path="$input_to_shortpath" 29776 # Check if we need to convert this using DOS-style short mode. If the path 29777 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29778 # take no chances and rewrite it. 29779 # Note: m4 eats our [], so we need to use [ and ] instead. 29780 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29781 if test "x$has_forbidden_chars" != x; then 29782 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29783 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29784 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29785 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29786 # Going to short mode and back again did indeed matter. Since short mode is 29787 # case insensitive, let's make it lowercase to improve readability. 29788 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29789 # Now convert it back to Unix-stile (cygpath) 29790 input_path=`$CYGPATH -u "$shortmode_path"` 29791 new_path="$input_path" 29792 fi 29793 fi 29794 29795 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29796 if test "x$test_cygdrive_prefix" = x; then 29797 # As a simple fix, exclude /usr/bin since it's not a real path. 29798 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 29799 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29800 # a path prefixed by /cygdrive for fixpath to work. 29801 new_path="$CYGWIN_ROOT_PATH$input_path" 29802 fi 29803 fi 29804 29805 # remove trailing .exe if any 29806 new_path="${new_path/%.exe/}" 29807 29808 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29809 29810 # First separate the path from the arguments. This will split at the first 29811 # space. 29812 complete="$CXX" 29813 path="${complete%% *}" 29814 tmp="$complete EOL" 29815 arguments="${tmp#* }" 29816 29817 # Input might be given as Windows format, start by converting to 29818 # unix format. 29819 new_path="$path" 29820 29821 windows_path="$new_path" 29822 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29823 unix_path=`$CYGPATH -u "$windows_path"` 29824 new_path="$unix_path" 29825 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29826 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29827 new_path="$unix_path" 29828 fi 29829 29830 29831 # Now try to locate executable using which 29832 new_path=`$WHICH "$new_path" 2> /dev/null` 29833 29834 if test "x$new_path" = x; then 29835 # Oops. Which didn't find the executable. 29836 # The splitting of arguments from the executable at a space might have been incorrect, 29837 # since paths with space are more likely in Windows. Give it another try with the whole 29838 # argument. 29839 path="$complete" 29840 arguments="EOL" 29841 new_path="$path" 29842 29843 windows_path="$new_path" 29844 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29845 unix_path=`$CYGPATH -u "$windows_path"` 29846 new_path="$unix_path" 29847 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29848 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29849 new_path="$unix_path" 29850 fi 29851 29852 29853 new_path=`$WHICH "$new_path" 2> /dev/null` 29854 # bat and cmd files are not always considered executable in MSYS causing which 29855 # to not find them 29856 if test "x$new_path" = x \ 29857 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29858 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29859 new_path="$path" 29860 29861 windows_path="$new_path" 29862 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29863 unix_path=`$CYGPATH -u "$windows_path"` 29864 new_path="$unix_path" 29865 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29866 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29867 new_path="$unix_path" 29868 fi 29869 29870 fi 29871 29872 if test "x$new_path" = x; then 29873 # It's still not found. Now this is an unrecoverable error. 29874 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29875 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29876 has_space=`$ECHO "$complete" | $GREP " "` 29877 if test "x$has_space" != x; then 29878 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29879 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29880 fi 29881 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29882 fi 29883 fi 29884 29885 # Now new_path has a complete unix path to the binary 29886 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29887 # Keep paths in /bin as-is, but remove trailing .exe if any 29888 new_path="${new_path/%.exe/}" 29889 # Do not save /bin paths to all_fixpath_prefixes! 29890 else 29891 # Not in mixed or Windows style, start by that. 29892 new_path=`cmd //c echo $new_path` 29893 29894 input_path="$new_path" 29895 # Check if we need to convert this using DOS-style short mode. If the path 29896 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29897 # take no chances and rewrite it. 29898 # Note: m4 eats our [], so we need to use [ and ] instead. 29899 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29900 if test "x$has_forbidden_chars" != x; then 29901 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29902 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29903 fi 29904 29905 # Output is in $new_path 29906 29907 windows_path="$new_path" 29908 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29909 unix_path=`$CYGPATH -u "$windows_path"` 29910 new_path="$unix_path" 29911 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29912 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29913 new_path="$unix_path" 29914 fi 29915 29916 # remove trailing .exe if any 29917 new_path="${new_path/%.exe/}" 29918 29919 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29920 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29921 fi 29922 29923 else 29924 # We're on a posix platform. Hooray! :) 29925 # First separate the path from the arguments. This will split at the first 29926 # space. 29927 complete="$CXX" 29928 path="${complete%% *}" 29929 tmp="$complete EOL" 29930 arguments="${tmp#* }" 29931 29932 # Cannot rely on the command "which" here since it doesn't always work. 29933 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29934 if test -z "$is_absolute_path"; then 29935 # Path to executable is not absolute. Find it. 29936 IFS_save="$IFS" 29937 IFS=: 29938 for p in $PATH; do 29939 if test -f "$p/$path" && test -x "$p/$path"; then 29940 new_path="$p/$path" 29941 break 29942 fi 29943 done 29944 IFS="$IFS_save" 29945 else 29946 # This is an absolute path, we can use it without further modifications. 29947 new_path="$path" 29948 fi 29949 29950 if test "x$new_path" = x; then 29951 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29952 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29953 has_space=`$ECHO "$complete" | $GREP " "` 29954 if test "x$has_space" != x; then 29955 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29956 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29957 fi 29958 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29959 fi 29960 fi 29961 29962 # Now join together the path and the arguments once again 29963 if test "x$arguments" != xEOL; then 29964 new_complete="$new_path ${arguments% *}" 29965 else 29966 new_complete="$new_path" 29967 fi 29968 29969 if test "x$complete" != "x$new_complete"; then 29970 CXX="$new_complete" 29971 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 29972 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 29973 fi 29974 29975 TEST_COMPILER="$CXX" 29976 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 29977 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 29978 if test "x$OPENJDK_BUILD_OS" != xaix; then 29979 # FIXME: This test should not be needed anymore; we don't do that for any platform. 29980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 29981 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 29982 29983 if test "x$OPENJDK_BUILD_OS" != xwindows; then 29984 # Follow a chain of symbolic links. Use readlink 29985 # where it exists, else fall back to horribly 29986 # complicated shell code. 29987 if test "x$READLINK_TESTED" != yes; then 29988 # On MacOSX there is a readlink tool with a different 29989 # purpose than the GNU readlink tool. Check the found readlink. 29990 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 29991 if test "x$ISGNU" = x; then 29992 # A readlink that we do not know how to use. 29993 # Are there other non-GNU readlinks out there? 29994 READLINK_TESTED=yes 29995 READLINK= 29996 fi 29997 fi 29998 29999 if test "x$READLINK" != x; then 30000 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 30001 else 30002 # Save the current directory for restoring afterwards 30003 STARTDIR=$PWD 30004 COUNTER=0 30005 sym_link_dir=`$DIRNAME $TEST_COMPILER` 30006 sym_link_file=`$BASENAME $TEST_COMPILER` 30007 cd $sym_link_dir 30008 # Use -P flag to resolve symlinks in directories. 30009 cd `$THEPWDCMD -P` 30010 sym_link_dir=`$THEPWDCMD -P` 30011 # Resolve file symlinks 30012 while test $COUNTER -lt 20; do 30013 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 30014 if test "x$ISLINK" == x; then 30015 # This is not a symbolic link! We are done! 30016 break 30017 fi 30018 # Again resolve directory symlinks since the target of the just found 30019 # link could be in a different directory 30020 cd `$DIRNAME $ISLINK` 30021 sym_link_dir=`$THEPWDCMD -P` 30022 sym_link_file=`$BASENAME $ISLINK` 30023 let COUNTER=COUNTER+1 30024 done 30025 cd $STARTDIR 30026 TEST_COMPILER=$sym_link_dir/$sym_link_file 30027 fi 30028 fi 30029 30030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 30031 $as_echo "$TEST_COMPILER" >&6; } 30032 fi 30033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5 30034 $as_echo_n "checking if CXX is disguised ccache... " >&6; } 30035 30036 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 30037 if test "x$COMPILER_BASENAME" = "xccache"; then 30038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 30039 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 30040 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 30041 # We want to control ccache invocation ourselves, so ignore this cc and try 30042 # searching again. 30043 30044 # Remove the path to the fake ccache cc from the PATH 30045 RETRY_COMPILER_SAVED_PATH="$PATH" 30046 COMPILER_DIRNAME=`$DIRNAME $CXX` 30047 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 30048 30049 # Try again looking for our compiler 30050 if test -n "$ac_tool_prefix"; then 30051 for ac_prog in $TOOLCHAIN_CXX_BINARY 30052 do 30053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30056 $as_echo_n "checking for $ac_word... " >&6; } 30057 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then : 30058 $as_echo_n "(cached) " >&6 30059 else 30060 if test -n "$PROPER_COMPILER_CXX"; then 30061 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test. 30062 else 30063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30064 for as_dir in $PATH 30065 do 30066 IFS=$as_save_IFS 30067 test -z "$as_dir" && as_dir=. 30068 for ac_exec_ext in '' $ac_executable_extensions; do 30069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30070 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog" 30071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30072 break 2 30073 fi 30074 done 30075 done 30076 IFS=$as_save_IFS 30077 30078 fi 30079 fi 30080 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX 30081 if test -n "$PROPER_COMPILER_CXX"; then 30082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 30083 $as_echo "$PROPER_COMPILER_CXX" >&6; } 30084 else 30085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30086 $as_echo "no" >&6; } 30087 fi 30088 30089 30090 test -n "$PROPER_COMPILER_CXX" && break 30091 done 30092 fi 30093 if test -z "$PROPER_COMPILER_CXX"; then 30094 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX 30095 for ac_prog in $TOOLCHAIN_CXX_BINARY 30096 do 30097 # Extract the first word of "$ac_prog", so it can be a program name with args. 30098 set dummy $ac_prog; ac_word=$2 30099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30100 $as_echo_n "checking for $ac_word... " >&6; } 30101 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then : 30102 $as_echo_n "(cached) " >&6 30103 else 30104 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 30105 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test. 30106 else 30107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30108 for as_dir in $PATH 30109 do 30110 IFS=$as_save_IFS 30111 test -z "$as_dir" && as_dir=. 30112 for ac_exec_ext in '' $ac_executable_extensions; do 30113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30114 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog" 30115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30116 break 2 30117 fi 30118 done 30119 done 30120 IFS=$as_save_IFS 30121 30122 fi 30123 fi 30124 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX 30125 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 30126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5 30127 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; } 30128 else 30129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30130 $as_echo "no" >&6; } 30131 fi 30132 30133 30134 test -n "$ac_ct_PROPER_COMPILER_CXX" && break 30135 done 30136 30137 if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then 30138 PROPER_COMPILER_CXX="" 30139 else 30140 case $cross_compiling:$ac_tool_warned in 30141 yes:) 30142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30144 ac_tool_warned=yes ;; 30145 esac 30146 PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX 30147 fi 30148 fi 30149 30150 30151 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30152 30153 # First separate the path from the arguments. This will split at the first 30154 # space. 30155 complete="$PROPER_COMPILER_CXX" 30156 path="${complete%% *}" 30157 tmp="$complete EOL" 30158 arguments="${tmp#* }" 30159 30160 # Input might be given as Windows format, start by converting to 30161 # unix format. 30162 new_path=`$CYGPATH -u "$path"` 30163 30164 # Now try to locate executable using which 30165 new_path=`$WHICH "$new_path" 2> /dev/null` 30166 # bat and cmd files are not always considered executable in cygwin causing which 30167 # to not find them 30168 if test "x$new_path" = x \ 30169 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30170 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30171 new_path=`$CYGPATH -u "$path"` 30172 fi 30173 if test "x$new_path" = x; then 30174 # Oops. Which didn't find the executable. 30175 # The splitting of arguments from the executable at a space might have been incorrect, 30176 # since paths with space are more likely in Windows. Give it another try with the whole 30177 # argument. 30178 path="$complete" 30179 arguments="EOL" 30180 new_path=`$CYGPATH -u "$path"` 30181 new_path=`$WHICH "$new_path" 2> /dev/null` 30182 # bat and cmd files are not always considered executable in cygwin causing which 30183 # to not find them 30184 if test "x$new_path" = x \ 30185 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30186 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30187 new_path=`$CYGPATH -u "$path"` 30188 fi 30189 if test "x$new_path" = x; then 30190 # It's still not found. Now this is an unrecoverable error. 30191 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30192 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30193 has_space=`$ECHO "$complete" | $GREP " "` 30194 if test "x$has_space" != x; then 30195 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30196 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30197 fi 30198 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30199 fi 30200 fi 30201 30202 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30203 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30204 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30205 # "foo.exe" is OK but "foo" is an error. 30206 # 30207 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30208 # It is also a way to make sure we got the proper file name for the real test later on. 30209 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30210 if test "x$test_shortpath" = x; then 30211 # Short path failed, file does not exist as specified. 30212 # Try adding .exe or .cmd 30213 if test -f "${new_path}.exe"; then 30214 input_to_shortpath="${new_path}.exe" 30215 elif test -f "${new_path}.cmd"; then 30216 input_to_shortpath="${new_path}.cmd" 30217 else 30218 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5 30219 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;} 30220 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30221 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30222 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30223 fi 30224 else 30225 input_to_shortpath="$new_path" 30226 fi 30227 30228 # Call helper function which possibly converts this using DOS-style short mode. 30229 # If so, the updated path is stored in $new_path. 30230 new_path="$input_to_shortpath" 30231 30232 input_path="$input_to_shortpath" 30233 # Check if we need to convert this using DOS-style short mode. If the path 30234 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30235 # take no chances and rewrite it. 30236 # Note: m4 eats our [], so we need to use [ and ] instead. 30237 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30238 if test "x$has_forbidden_chars" != x; then 30239 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30240 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30241 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30242 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30243 # Going to short mode and back again did indeed matter. Since short mode is 30244 # case insensitive, let's make it lowercase to improve readability. 30245 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30246 # Now convert it back to Unix-stile (cygpath) 30247 input_path=`$CYGPATH -u "$shortmode_path"` 30248 new_path="$input_path" 30249 fi 30250 fi 30251 30252 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30253 if test "x$test_cygdrive_prefix" = x; then 30254 # As a simple fix, exclude /usr/bin since it's not a real path. 30255 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30256 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30257 # a path prefixed by /cygdrive for fixpath to work. 30258 new_path="$CYGWIN_ROOT_PATH$input_path" 30259 fi 30260 fi 30261 30262 # remove trailing .exe if any 30263 new_path="${new_path/%.exe/}" 30264 30265 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30266 30267 # First separate the path from the arguments. This will split at the first 30268 # space. 30269 complete="$PROPER_COMPILER_CXX" 30270 path="${complete%% *}" 30271 tmp="$complete EOL" 30272 arguments="${tmp#* }" 30273 30274 # Input might be given as Windows format, start by converting to 30275 # unix format. 30276 new_path="$path" 30277 30278 windows_path="$new_path" 30279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30280 unix_path=`$CYGPATH -u "$windows_path"` 30281 new_path="$unix_path" 30282 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30283 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30284 new_path="$unix_path" 30285 fi 30286 30287 30288 # Now try to locate executable using which 30289 new_path=`$WHICH "$new_path" 2> /dev/null` 30290 30291 if test "x$new_path" = x; then 30292 # Oops. Which didn't find the executable. 30293 # The splitting of arguments from the executable at a space might have been incorrect, 30294 # since paths with space are more likely in Windows. Give it another try with the whole 30295 # argument. 30296 path="$complete" 30297 arguments="EOL" 30298 new_path="$path" 30299 30300 windows_path="$new_path" 30301 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30302 unix_path=`$CYGPATH -u "$windows_path"` 30303 new_path="$unix_path" 30304 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30305 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30306 new_path="$unix_path" 30307 fi 30308 30309 30310 new_path=`$WHICH "$new_path" 2> /dev/null` 30311 # bat and cmd files are not always considered executable in MSYS causing which 30312 # to not find them 30313 if test "x$new_path" = x \ 30314 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30315 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30316 new_path="$path" 30317 30318 windows_path="$new_path" 30319 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30320 unix_path=`$CYGPATH -u "$windows_path"` 30321 new_path="$unix_path" 30322 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30323 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30324 new_path="$unix_path" 30325 fi 30326 30327 fi 30328 30329 if test "x$new_path" = x; then 30330 # It's still not found. Now this is an unrecoverable error. 30331 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30332 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30333 has_space=`$ECHO "$complete" | $GREP " "` 30334 if test "x$has_space" != x; then 30335 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30336 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30337 fi 30338 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30339 fi 30340 fi 30341 30342 # Now new_path has a complete unix path to the binary 30343 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30344 # Keep paths in /bin as-is, but remove trailing .exe if any 30345 new_path="${new_path/%.exe/}" 30346 # Do not save /bin paths to all_fixpath_prefixes! 30347 else 30348 # Not in mixed or Windows style, start by that. 30349 new_path=`cmd //c echo $new_path` 30350 30351 input_path="$new_path" 30352 # Check if we need to convert this using DOS-style short mode. If the path 30353 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30354 # take no chances and rewrite it. 30355 # Note: m4 eats our [], so we need to use [ and ] instead. 30356 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30357 if test "x$has_forbidden_chars" != x; then 30358 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30359 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30360 fi 30361 30362 # Output is in $new_path 30363 30364 windows_path="$new_path" 30365 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30366 unix_path=`$CYGPATH -u "$windows_path"` 30367 new_path="$unix_path" 30368 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30369 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30370 new_path="$unix_path" 30371 fi 30372 30373 # remove trailing .exe if any 30374 new_path="${new_path/%.exe/}" 30375 30376 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30377 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30378 fi 30379 30380 else 30381 # We're on a posix platform. Hooray! :) 30382 # First separate the path from the arguments. This will split at the first 30383 # space. 30384 complete="$PROPER_COMPILER_CXX" 30385 path="${complete%% *}" 30386 tmp="$complete EOL" 30387 arguments="${tmp#* }" 30388 30389 # Cannot rely on the command "which" here since it doesn't always work. 30390 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30391 if test -z "$is_absolute_path"; then 30392 # Path to executable is not absolute. Find it. 30393 IFS_save="$IFS" 30394 IFS=: 30395 for p in $PATH; do 30396 if test -f "$p/$path" && test -x "$p/$path"; then 30397 new_path="$p/$path" 30398 break 30399 fi 30400 done 30401 IFS="$IFS_save" 30402 else 30403 # This is an absolute path, we can use it without further modifications. 30404 new_path="$path" 30405 fi 30406 30407 if test "x$new_path" = x; then 30408 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30409 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30410 has_space=`$ECHO "$complete" | $GREP " "` 30411 if test "x$has_space" != x; then 30412 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30413 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30414 fi 30415 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30416 fi 30417 fi 30418 30419 # Now join together the path and the arguments once again 30420 if test "x$arguments" != xEOL; then 30421 new_complete="$new_path ${arguments% *}" 30422 else 30423 new_complete="$new_path" 30424 fi 30425 30426 if test "x$complete" != "x$new_complete"; then 30427 PROPER_COMPILER_CXX="$new_complete" 30428 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5 30429 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;} 30430 fi 30431 30432 PATH="$RETRY_COMPILER_SAVED_PATH" 30433 30434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5 30435 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; } 30436 30437 if test "x$OPENJDK_BUILD_OS" != xwindows; then 30438 # Follow a chain of symbolic links. Use readlink 30439 # where it exists, else fall back to horribly 30440 # complicated shell code. 30441 if test "x$READLINK_TESTED" != yes; then 30442 # On MacOSX there is a readlink tool with a different 30443 # purpose than the GNU readlink tool. Check the found readlink. 30444 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 30445 if test "x$ISGNU" = x; then 30446 # A readlink that we do not know how to use. 30447 # Are there other non-GNU readlinks out there? 30448 READLINK_TESTED=yes 30449 READLINK= 30450 fi 30451 fi 30452 30453 if test "x$READLINK" != x; then 30454 PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX` 30455 else 30456 # Save the current directory for restoring afterwards 30457 STARTDIR=$PWD 30458 COUNTER=0 30459 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX` 30460 sym_link_file=`$BASENAME $PROPER_COMPILER_CXX` 30461 cd $sym_link_dir 30462 # Use -P flag to resolve symlinks in directories. 30463 cd `$THEPWDCMD -P` 30464 sym_link_dir=`$THEPWDCMD -P` 30465 # Resolve file symlinks 30466 while test $COUNTER -lt 20; do 30467 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 30468 if test "x$ISLINK" == x; then 30469 # This is not a symbolic link! We are done! 30470 break 30471 fi 30472 # Again resolve directory symlinks since the target of the just found 30473 # link could be in a different directory 30474 cd `$DIRNAME $ISLINK` 30475 sym_link_dir=`$THEPWDCMD -P` 30476 sym_link_file=`$BASENAME $ISLINK` 30477 let COUNTER=COUNTER+1 30478 done 30479 cd $STARTDIR 30480 PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file 30481 fi 30482 fi 30483 30484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 30485 $as_echo "$PROPER_COMPILER_CXX" >&6; } 30486 CXX="$PROPER_COMPILER_CXX" 30487 else 30488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5 30489 $as_echo "no, keeping CXX" >&6; } 30490 fi 30491 30492 30493 COMPILER=$CXX 30494 COMPILER_NAME=$COMPILER_NAME 30495 30496 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 30497 # cc -V output typically looks like 30498 # cc: Sun C 5.12 Linux_i386 2011/11/16 30499 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 30500 # Check that this is likely to be the Solaris Studio cc. 30501 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 30502 if test $? -ne 0; then 30503 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30504 { $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 30505 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30506 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30507 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30508 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30509 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30510 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30511 fi 30512 # Remove usage instructions (if present), and 30513 # collapse compiler output into a single line 30514 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30515 $SED -e 's/ *[Uu]sage:.*//'` 30516 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30517 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 30518 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 30519 # xlc -qversion output typically looks like 30520 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 30521 # Version: 11.01.0000.0015 30522 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 30523 # Check that this is likely to be the IBM XL C compiler. 30524 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 30525 if test $? -ne 0; then 30526 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30527 { $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 30528 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30529 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30530 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30531 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30532 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30533 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30534 fi 30535 # Collapse compiler output into a single line 30536 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30537 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30538 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 30539 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 30540 # There is no specific version flag, but all output starts with a version string. 30541 # First line typically looks something like: 30542 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 30543 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 30544 # Check that this is likely to be Microsoft CL.EXE. 30545 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 30546 if test $? -ne 0; then 30547 { $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 30548 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30549 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30550 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30551 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30552 fi 30553 # Collapse compiler output into a single line 30554 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30555 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30556 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 30557 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 30558 # gcc --version output typically looks like 30559 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 30560 # Copyright (C) 2013 Free Software Foundation, Inc. 30561 # This is free software; see the source for copying conditions. There is NO 30562 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 30563 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30564 # Check that this is likely to be GCC. 30565 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 30566 if test $? -ne 0; then 30567 { $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 30568 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30569 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 30570 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 30571 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30572 fi 30573 # Remove Copyright and legalese from version string, and 30574 # collapse into a single line 30575 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30576 $SED -e 's/ *Copyright .*//'` 30577 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30578 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 30579 elif test "x$TOOLCHAIN_TYPE" = xclang; then 30580 # clang --version output typically looks like 30581 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 30582 # clang version 3.3 (tags/RELEASE_33/final) 30583 # or 30584 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 30585 # Target: x86_64-pc-linux-gnu 30586 # Thread model: posix 30587 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30588 # Check that this is likely to be clang 30589 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 30590 if test $? -ne 0; then 30591 { $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 30592 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30593 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30594 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30595 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30596 fi 30597 # Collapse compiler output into a single line 30598 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30599 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30600 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 30601 else 30602 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 30603 fi 30604 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 30605 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 30606 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 30607 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 30608 30609 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 30610 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 30611 30612 30613 # Now that we have resolved CXX ourself, let autoconf have its go at it 30614 ac_ext=cpp 30615 ac_cpp='$CXXCPP $CPPFLAGS' 30616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30619 if test -z "$CXX"; then 30620 if test -n "$CCC"; then 30621 CXX=$CCC 30622 else 30623 if test -n "$ac_tool_prefix"; then 30624 for ac_prog in $CXX 30625 do 30626 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30627 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30629 $as_echo_n "checking for $ac_word... " >&6; } 30630 if ${ac_cv_prog_CXX+:} false; then : 30631 $as_echo_n "(cached) " >&6 30632 else 30633 if test -n "$CXX"; then 30634 ac_cv_prog_CXX="$CXX" # Let the user override the test. 30635 else 30636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30637 for as_dir in $PATH 30638 do 30639 IFS=$as_save_IFS 30640 test -z "$as_dir" && as_dir=. 30641 for ac_exec_ext in '' $ac_executable_extensions; do 30642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30643 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 30644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30645 break 2 30646 fi 30647 done 30648 done 30649 IFS=$as_save_IFS 30650 30651 fi 30652 fi 30653 CXX=$ac_cv_prog_CXX 30654 if test -n "$CXX"; then 30655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 30656 $as_echo "$CXX" >&6; } 30657 else 30658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30659 $as_echo "no" >&6; } 30660 fi 30661 30662 30663 test -n "$CXX" && break 30664 done 30665 fi 30666 if test -z "$CXX"; then 30667 ac_ct_CXX=$CXX 30668 for ac_prog in $CXX 30669 do 30670 # Extract the first word of "$ac_prog", so it can be a program name with args. 30671 set dummy $ac_prog; ac_word=$2 30672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30673 $as_echo_n "checking for $ac_word... " >&6; } 30674 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 30675 $as_echo_n "(cached) " >&6 30676 else 30677 if test -n "$ac_ct_CXX"; then 30678 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 30679 else 30680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30681 for as_dir in $PATH 30682 do 30683 IFS=$as_save_IFS 30684 test -z "$as_dir" && as_dir=. 30685 for ac_exec_ext in '' $ac_executable_extensions; do 30686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30687 ac_cv_prog_ac_ct_CXX="$ac_prog" 30688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30689 break 2 30690 fi 30691 done 30692 done 30693 IFS=$as_save_IFS 30694 30695 fi 30696 fi 30697 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 30698 if test -n "$ac_ct_CXX"; then 30699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 30700 $as_echo "$ac_ct_CXX" >&6; } 30701 else 30702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30703 $as_echo "no" >&6; } 30704 fi 30705 30706 30707 test -n "$ac_ct_CXX" && break 30708 done 30709 30710 if test "x$ac_ct_CXX" = x; then 30711 CXX="g++" 30712 else 30713 case $cross_compiling:$ac_tool_warned in 30714 yes:) 30715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30717 ac_tool_warned=yes ;; 30718 esac 30719 CXX=$ac_ct_CXX 30720 fi 30721 fi 30722 30723 fi 30724 fi 30725 # Provide some information about the compiler. 30726 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 30727 set X $ac_compile 30728 ac_compiler=$2 30729 for ac_option in --version -v -V -qversion; do 30730 { { ac_try="$ac_compiler $ac_option >&5" 30731 case "(($ac_try" in 30732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30733 *) ac_try_echo=$ac_try;; 30734 esac 30735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30736 $as_echo "$ac_try_echo"; } >&5 30737 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 30738 ac_status=$? 30739 if test -s conftest.err; then 30740 sed '10a\ 30741 ... rest of stderr output deleted ... 30742 10q' conftest.err >conftest.er1 30743 cat conftest.er1 >&5 30744 fi 30745 rm -f conftest.er1 conftest.err 30746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30747 test $ac_status = 0; } 30748 done 30749 30750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 30751 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 30752 if ${ac_cv_cxx_compiler_gnu+:} false; then : 30753 $as_echo_n "(cached) " >&6 30754 else 30755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30756 /* end confdefs.h. */ 30757 30758 int 30759 main () 30760 { 30761 #ifndef __GNUC__ 30762 choke me 30763 #endif 30764 30765 ; 30766 return 0; 30767 } 30768 _ACEOF 30769 if ac_fn_cxx_try_compile "$LINENO"; then : 30770 ac_compiler_gnu=yes 30771 else 30772 ac_compiler_gnu=no 30773 fi 30774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30775 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 30776 30777 fi 30778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 30779 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 30780 if test $ac_compiler_gnu = yes; then 30781 GXX=yes 30782 else 30783 GXX= 30784 fi 30785 ac_test_CXXFLAGS=${CXXFLAGS+set} 30786 ac_save_CXXFLAGS=$CXXFLAGS 30787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 30788 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 30789 if ${ac_cv_prog_cxx_g+:} false; then : 30790 $as_echo_n "(cached) " >&6 30791 else 30792 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 30793 ac_cxx_werror_flag=yes 30794 ac_cv_prog_cxx_g=no 30795 CXXFLAGS="-g" 30796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30797 /* end confdefs.h. */ 30798 30799 int 30800 main () 30801 { 30802 30803 ; 30804 return 0; 30805 } 30806 _ACEOF 30807 if ac_fn_cxx_try_compile "$LINENO"; then : 30808 ac_cv_prog_cxx_g=yes 30809 else 30810 CXXFLAGS="" 30811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30812 /* end confdefs.h. */ 30813 30814 int 30815 main () 30816 { 30817 30818 ; 30819 return 0; 30820 } 30821 _ACEOF 30822 if ac_fn_cxx_try_compile "$LINENO"; then : 30823 30824 else 30825 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 30826 CXXFLAGS="-g" 30827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30828 /* end confdefs.h. */ 30829 30830 int 30831 main () 30832 { 30833 30834 ; 30835 return 0; 30836 } 30837 _ACEOF 30838 if ac_fn_cxx_try_compile "$LINENO"; then : 30839 ac_cv_prog_cxx_g=yes 30840 fi 30841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30842 fi 30843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30844 fi 30845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30846 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 30847 fi 30848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 30849 $as_echo "$ac_cv_prog_cxx_g" >&6; } 30850 if test "$ac_test_CXXFLAGS" = set; then 30851 CXXFLAGS=$ac_save_CXXFLAGS 30852 elif test $ac_cv_prog_cxx_g = yes; then 30853 if test "$GXX" = yes; then 30854 CXXFLAGS="-g -O2" 30855 else 30856 CXXFLAGS="-g" 30857 fi 30858 else 30859 if test "$GXX" = yes; then 30860 CXXFLAGS="-O2" 30861 else 30862 CXXFLAGS= 30863 fi 30864 fi 30865 ac_ext=cpp 30866 ac_cpp='$CXXCPP $CPPFLAGS' 30867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30870 30871 30872 # 30873 # Setup the preprocessor (CPP and CXXCPP) 30874 # 30875 ac_ext=c 30876 ac_cpp='$CPP $CPPFLAGS' 30877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30879 ac_compiler_gnu=$ac_cv_c_compiler_gnu 30880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 30881 $as_echo_n "checking how to run the C preprocessor... " >&6; } 30882 # On Suns, sometimes $CPP names a directory. 30883 if test -n "$CPP" && test -d "$CPP"; then 30884 CPP= 30885 fi 30886 if test -z "$CPP"; then 30887 if ${ac_cv_prog_CPP+:} false; then : 30888 $as_echo_n "(cached) " >&6 30889 else 30890 # Double quotes because CPP needs to be expanded 30891 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 30892 do 30893 ac_preproc_ok=false 30894 for ac_c_preproc_warn_flag in '' yes 30895 do 30896 # Use a header file that comes with gcc, so configuring glibc 30897 # with a fresh cross-compiler works. 30898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30899 # <limits.h> exists even on freestanding compilers. 30900 # On the NeXT, cc -E runs the code through the compiler's parser, 30901 # not just through cpp. "Syntax error" is here to catch this case. 30902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30903 /* end confdefs.h. */ 30904 #ifdef __STDC__ 30905 # include <limits.h> 30906 #else 30907 # include <assert.h> 30908 #endif 30909 Syntax error 30910 _ACEOF 30911 if ac_fn_c_try_cpp "$LINENO"; then : 30912 30913 else 30914 # Broken: fails on valid input. 30915 continue 30916 fi 30917 rm -f conftest.err conftest.i conftest.$ac_ext 30918 30919 # OK, works on sane cases. Now check whether nonexistent headers 30920 # can be detected and how. 30921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30922 /* end confdefs.h. */ 30923 #include <ac_nonexistent.h> 30924 _ACEOF 30925 if ac_fn_c_try_cpp "$LINENO"; then : 30926 # Broken: success on invalid input. 30927 continue 30928 else 30929 # Passes both tests. 30930 ac_preproc_ok=: 30931 break 30932 fi 30933 rm -f conftest.err conftest.i conftest.$ac_ext 30934 30935 done 30936 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30937 rm -f conftest.i conftest.err conftest.$ac_ext 30938 if $ac_preproc_ok; then : 30939 break 30940 fi 30941 30942 done 30943 ac_cv_prog_CPP=$CPP 30944 30945 fi 30946 CPP=$ac_cv_prog_CPP 30947 else 30948 ac_cv_prog_CPP=$CPP 30949 fi 30950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 30951 $as_echo "$CPP" >&6; } 30952 ac_preproc_ok=false 30953 for ac_c_preproc_warn_flag in '' yes 30954 do 30955 # Use a header file that comes with gcc, so configuring glibc 30956 # with a fresh cross-compiler works. 30957 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30958 # <limits.h> exists even on freestanding compilers. 30959 # On the NeXT, cc -E runs the code through the compiler's parser, 30960 # not just through cpp. "Syntax error" is here to catch this case. 30961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30962 /* end confdefs.h. */ 30963 #ifdef __STDC__ 30964 # include <limits.h> 30965 #else 30966 # include <assert.h> 30967 #endif 30968 Syntax error 30969 _ACEOF 30970 if ac_fn_c_try_cpp "$LINENO"; then : 30971 30972 else 30973 # Broken: fails on valid input. 30974 continue 30975 fi 30976 rm -f conftest.err conftest.i conftest.$ac_ext 30977 30978 # OK, works on sane cases. Now check whether nonexistent headers 30979 # can be detected and how. 30980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30981 /* end confdefs.h. */ 30982 #include <ac_nonexistent.h> 30983 _ACEOF 30984 if ac_fn_c_try_cpp "$LINENO"; then : 30985 # Broken: success on invalid input. 30986 continue 30987 else 30988 # Passes both tests. 30989 ac_preproc_ok=: 30990 break 30991 fi 30992 rm -f conftest.err conftest.i conftest.$ac_ext 30993 30994 done 30995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30996 rm -f conftest.i conftest.err conftest.$ac_ext 30997 if $ac_preproc_ok; then : 30998 30999 else 31000 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31002 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 31003 See \`config.log' for more details" "$LINENO" 5; } 31004 fi 31005 31006 ac_ext=cpp 31007 ac_cpp='$CXXCPP $CPPFLAGS' 31008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31011 31012 31013 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31014 31015 # First separate the path from the arguments. This will split at the first 31016 # space. 31017 complete="$CPP" 31018 path="${complete%% *}" 31019 tmp="$complete EOL" 31020 arguments="${tmp#* }" 31021 31022 # Input might be given as Windows format, start by converting to 31023 # unix format. 31024 new_path=`$CYGPATH -u "$path"` 31025 31026 # Now try to locate executable using which 31027 new_path=`$WHICH "$new_path" 2> /dev/null` 31028 # bat and cmd files are not always considered executable in cygwin causing which 31029 # to not find them 31030 if test "x$new_path" = x \ 31031 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31032 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31033 new_path=`$CYGPATH -u "$path"` 31034 fi 31035 if test "x$new_path" = x; then 31036 # Oops. Which didn't find the executable. 31037 # The splitting of arguments from the executable at a space might have been incorrect, 31038 # since paths with space are more likely in Windows. Give it another try with the whole 31039 # argument. 31040 path="$complete" 31041 arguments="EOL" 31042 new_path=`$CYGPATH -u "$path"` 31043 new_path=`$WHICH "$new_path" 2> /dev/null` 31044 # bat and cmd files are not always considered executable in cygwin causing which 31045 # to not find them 31046 if test "x$new_path" = x \ 31047 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31048 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31049 new_path=`$CYGPATH -u "$path"` 31050 fi 31051 if test "x$new_path" = x; then 31052 # It's still not found. Now this is an unrecoverable error. 31053 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31054 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31055 has_space=`$ECHO "$complete" | $GREP " "` 31056 if test "x$has_space" != x; then 31057 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31058 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31059 fi 31060 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31061 fi 31062 fi 31063 31064 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31065 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31066 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31067 # "foo.exe" is OK but "foo" is an error. 31068 # 31069 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31070 # It is also a way to make sure we got the proper file name for the real test later on. 31071 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31072 if test "x$test_shortpath" = x; then 31073 # Short path failed, file does not exist as specified. 31074 # Try adding .exe or .cmd 31075 if test -f "${new_path}.exe"; then 31076 input_to_shortpath="${new_path}.exe" 31077 elif test -f "${new_path}.cmd"; then 31078 input_to_shortpath="${new_path}.cmd" 31079 else 31080 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 31081 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 31082 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31083 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31084 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31085 fi 31086 else 31087 input_to_shortpath="$new_path" 31088 fi 31089 31090 # Call helper function which possibly converts this using DOS-style short mode. 31091 # If so, the updated path is stored in $new_path. 31092 new_path="$input_to_shortpath" 31093 31094 input_path="$input_to_shortpath" 31095 # Check if we need to convert this using DOS-style short mode. If the path 31096 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31097 # take no chances and rewrite it. 31098 # Note: m4 eats our [], so we need to use [ and ] instead. 31099 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31100 if test "x$has_forbidden_chars" != x; then 31101 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31102 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31103 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31104 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31105 # Going to short mode and back again did indeed matter. Since short mode is 31106 # case insensitive, let's make it lowercase to improve readability. 31107 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31108 # Now convert it back to Unix-stile (cygpath) 31109 input_path=`$CYGPATH -u "$shortmode_path"` 31110 new_path="$input_path" 31111 fi 31112 fi 31113 31114 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31115 if test "x$test_cygdrive_prefix" = x; then 31116 # As a simple fix, exclude /usr/bin since it's not a real path. 31117 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31118 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31119 # a path prefixed by /cygdrive for fixpath to work. 31120 new_path="$CYGWIN_ROOT_PATH$input_path" 31121 fi 31122 fi 31123 31124 # remove trailing .exe if any 31125 new_path="${new_path/%.exe/}" 31126 31127 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31128 31129 # First separate the path from the arguments. This will split at the first 31130 # space. 31131 complete="$CPP" 31132 path="${complete%% *}" 31133 tmp="$complete EOL" 31134 arguments="${tmp#* }" 31135 31136 # Input might be given as Windows format, start by converting to 31137 # unix format. 31138 new_path="$path" 31139 31140 windows_path="$new_path" 31141 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31142 unix_path=`$CYGPATH -u "$windows_path"` 31143 new_path="$unix_path" 31144 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31145 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31146 new_path="$unix_path" 31147 fi 31148 31149 31150 # Now try to locate executable using which 31151 new_path=`$WHICH "$new_path" 2> /dev/null` 31152 31153 if test "x$new_path" = x; then 31154 # Oops. Which didn't find the executable. 31155 # The splitting of arguments from the executable at a space might have been incorrect, 31156 # since paths with space are more likely in Windows. Give it another try with the whole 31157 # argument. 31158 path="$complete" 31159 arguments="EOL" 31160 new_path="$path" 31161 31162 windows_path="$new_path" 31163 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31164 unix_path=`$CYGPATH -u "$windows_path"` 31165 new_path="$unix_path" 31166 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31167 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31168 new_path="$unix_path" 31169 fi 31170 31171 31172 new_path=`$WHICH "$new_path" 2> /dev/null` 31173 # bat and cmd files are not always considered executable in MSYS causing which 31174 # to not find them 31175 if test "x$new_path" = x \ 31176 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31177 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31178 new_path="$path" 31179 31180 windows_path="$new_path" 31181 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31182 unix_path=`$CYGPATH -u "$windows_path"` 31183 new_path="$unix_path" 31184 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31185 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31186 new_path="$unix_path" 31187 fi 31188 31189 fi 31190 31191 if test "x$new_path" = x; then 31192 # It's still not found. Now this is an unrecoverable error. 31193 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31194 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31195 has_space=`$ECHO "$complete" | $GREP " "` 31196 if test "x$has_space" != x; then 31197 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31198 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31199 fi 31200 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31201 fi 31202 fi 31203 31204 # Now new_path has a complete unix path to the binary 31205 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31206 # Keep paths in /bin as-is, but remove trailing .exe if any 31207 new_path="${new_path/%.exe/}" 31208 # Do not save /bin paths to all_fixpath_prefixes! 31209 else 31210 # Not in mixed or Windows style, start by that. 31211 new_path=`cmd //c echo $new_path` 31212 31213 input_path="$new_path" 31214 # Check if we need to convert this using DOS-style short mode. If the path 31215 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31216 # take no chances and rewrite it. 31217 # Note: m4 eats our [], so we need to use [ and ] instead. 31218 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31219 if test "x$has_forbidden_chars" != x; then 31220 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31221 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31222 fi 31223 31224 # Output is in $new_path 31225 31226 windows_path="$new_path" 31227 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31228 unix_path=`$CYGPATH -u "$windows_path"` 31229 new_path="$unix_path" 31230 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31231 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31232 new_path="$unix_path" 31233 fi 31234 31235 # remove trailing .exe if any 31236 new_path="${new_path/%.exe/}" 31237 31238 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31239 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31240 fi 31241 31242 else 31243 # We're on a posix platform. Hooray! :) 31244 # First separate the path from the arguments. This will split at the first 31245 # space. 31246 complete="$CPP" 31247 path="${complete%% *}" 31248 tmp="$complete EOL" 31249 arguments="${tmp#* }" 31250 31251 # Cannot rely on the command "which" here since it doesn't always work. 31252 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31253 if test -z "$is_absolute_path"; then 31254 # Path to executable is not absolute. Find it. 31255 IFS_save="$IFS" 31256 IFS=: 31257 for p in $PATH; do 31258 if test -f "$p/$path" && test -x "$p/$path"; then 31259 new_path="$p/$path" 31260 break 31261 fi 31262 done 31263 IFS="$IFS_save" 31264 else 31265 # This is an absolute path, we can use it without further modifications. 31266 new_path="$path" 31267 fi 31268 31269 if test "x$new_path" = x; then 31270 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31271 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31272 has_space=`$ECHO "$complete" | $GREP " "` 31273 if test "x$has_space" != x; then 31274 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31275 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31276 fi 31277 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31278 fi 31279 fi 31280 31281 # Now join together the path and the arguments once again 31282 if test "x$arguments" != xEOL; then 31283 new_complete="$new_path ${arguments% *}" 31284 else 31285 new_complete="$new_path" 31286 fi 31287 31288 if test "x$complete" != "x$new_complete"; then 31289 CPP="$new_complete" 31290 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 31291 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 31292 fi 31293 31294 ac_ext=cpp 31295 ac_cpp='$CXXCPP $CPPFLAGS' 31296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 31300 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 31301 if test -z "$CXXCPP"; then 31302 if ${ac_cv_prog_CXXCPP+:} false; then : 31303 $as_echo_n "(cached) " >&6 31304 else 31305 # Double quotes because CXXCPP needs to be expanded 31306 for CXXCPP in "$CXX -E" "/lib/cpp" 31307 do 31308 ac_preproc_ok=false 31309 for ac_cxx_preproc_warn_flag in '' yes 31310 do 31311 # Use a header file that comes with gcc, so configuring glibc 31312 # with a fresh cross-compiler works. 31313 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31314 # <limits.h> exists even on freestanding compilers. 31315 # On the NeXT, cc -E runs the code through the compiler's parser, 31316 # not just through cpp. "Syntax error" is here to catch this case. 31317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31318 /* end confdefs.h. */ 31319 #ifdef __STDC__ 31320 # include <limits.h> 31321 #else 31322 # include <assert.h> 31323 #endif 31324 Syntax error 31325 _ACEOF 31326 if ac_fn_cxx_try_cpp "$LINENO"; then : 31327 31328 else 31329 # Broken: fails on valid input. 31330 continue 31331 fi 31332 rm -f conftest.err conftest.i conftest.$ac_ext 31333 31334 # OK, works on sane cases. Now check whether nonexistent headers 31335 # can be detected and how. 31336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31337 /* end confdefs.h. */ 31338 #include <ac_nonexistent.h> 31339 _ACEOF 31340 if ac_fn_cxx_try_cpp "$LINENO"; then : 31341 # Broken: success on invalid input. 31342 continue 31343 else 31344 # Passes both tests. 31345 ac_preproc_ok=: 31346 break 31347 fi 31348 rm -f conftest.err conftest.i conftest.$ac_ext 31349 31350 done 31351 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31352 rm -f conftest.i conftest.err conftest.$ac_ext 31353 if $ac_preproc_ok; then : 31354 break 31355 fi 31356 31357 done 31358 ac_cv_prog_CXXCPP=$CXXCPP 31359 31360 fi 31361 CXXCPP=$ac_cv_prog_CXXCPP 31362 else 31363 ac_cv_prog_CXXCPP=$CXXCPP 31364 fi 31365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 31366 $as_echo "$CXXCPP" >&6; } 31367 ac_preproc_ok=false 31368 for ac_cxx_preproc_warn_flag in '' yes 31369 do 31370 # Use a header file that comes with gcc, so configuring glibc 31371 # with a fresh cross-compiler works. 31372 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31373 # <limits.h> exists even on freestanding compilers. 31374 # On the NeXT, cc -E runs the code through the compiler's parser, 31375 # not just through cpp. "Syntax error" is here to catch this case. 31376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31377 /* end confdefs.h. */ 31378 #ifdef __STDC__ 31379 # include <limits.h> 31380 #else 31381 # include <assert.h> 31382 #endif 31383 Syntax error 31384 _ACEOF 31385 if ac_fn_cxx_try_cpp "$LINENO"; then : 31386 31387 else 31388 # Broken: fails on valid input. 31389 continue 31390 fi 31391 rm -f conftest.err conftest.i conftest.$ac_ext 31392 31393 # OK, works on sane cases. Now check whether nonexistent headers 31394 # can be detected and how. 31395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31396 /* end confdefs.h. */ 31397 #include <ac_nonexistent.h> 31398 _ACEOF 31399 if ac_fn_cxx_try_cpp "$LINENO"; then : 31400 # Broken: success on invalid input. 31401 continue 31402 else 31403 # Passes both tests. 31404 ac_preproc_ok=: 31405 break 31406 fi 31407 rm -f conftest.err conftest.i conftest.$ac_ext 31408 31409 done 31410 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31411 rm -f conftest.i conftest.err conftest.$ac_ext 31412 if $ac_preproc_ok; then : 31413 31414 else 31415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31417 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 31418 See \`config.log' for more details" "$LINENO" 5; } 31419 fi 31420 31421 ac_ext=cpp 31422 ac_cpp='$CXXCPP $CPPFLAGS' 31423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31426 31427 31428 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31429 31430 # First separate the path from the arguments. This will split at the first 31431 # space. 31432 complete="$CXXCPP" 31433 path="${complete%% *}" 31434 tmp="$complete EOL" 31435 arguments="${tmp#* }" 31436 31437 # Input might be given as Windows format, start by converting to 31438 # unix format. 31439 new_path=`$CYGPATH -u "$path"` 31440 31441 # Now try to locate executable using which 31442 new_path=`$WHICH "$new_path" 2> /dev/null` 31443 # bat and cmd files are not always considered executable in cygwin causing which 31444 # to not find them 31445 if test "x$new_path" = x \ 31446 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31447 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31448 new_path=`$CYGPATH -u "$path"` 31449 fi 31450 if test "x$new_path" = x; then 31451 # Oops. Which didn't find the executable. 31452 # The splitting of arguments from the executable at a space might have been incorrect, 31453 # since paths with space are more likely in Windows. Give it another try with the whole 31454 # argument. 31455 path="$complete" 31456 arguments="EOL" 31457 new_path=`$CYGPATH -u "$path"` 31458 new_path=`$WHICH "$new_path" 2> /dev/null` 31459 # bat and cmd files are not always considered executable in cygwin causing which 31460 # to not find them 31461 if test "x$new_path" = x \ 31462 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31463 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31464 new_path=`$CYGPATH -u "$path"` 31465 fi 31466 if test "x$new_path" = x; then 31467 # It's still not found. Now this is an unrecoverable error. 31468 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31469 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31470 has_space=`$ECHO "$complete" | $GREP " "` 31471 if test "x$has_space" != x; then 31472 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31473 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31474 fi 31475 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31476 fi 31477 fi 31478 31479 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31480 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31481 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31482 # "foo.exe" is OK but "foo" is an error. 31483 # 31484 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31485 # It is also a way to make sure we got the proper file name for the real test later on. 31486 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31487 if test "x$test_shortpath" = x; then 31488 # Short path failed, file does not exist as specified. 31489 # Try adding .exe or .cmd 31490 if test -f "${new_path}.exe"; then 31491 input_to_shortpath="${new_path}.exe" 31492 elif test -f "${new_path}.cmd"; then 31493 input_to_shortpath="${new_path}.cmd" 31494 else 31495 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 31496 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 31497 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31498 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31499 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31500 fi 31501 else 31502 input_to_shortpath="$new_path" 31503 fi 31504 31505 # Call helper function which possibly converts this using DOS-style short mode. 31506 # If so, the updated path is stored in $new_path. 31507 new_path="$input_to_shortpath" 31508 31509 input_path="$input_to_shortpath" 31510 # Check if we need to convert this using DOS-style short mode. If the path 31511 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31512 # take no chances and rewrite it. 31513 # Note: m4 eats our [], so we need to use [ and ] instead. 31514 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31515 if test "x$has_forbidden_chars" != x; then 31516 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31517 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31518 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31519 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31520 # Going to short mode and back again did indeed matter. Since short mode is 31521 # case insensitive, let's make it lowercase to improve readability. 31522 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31523 # Now convert it back to Unix-stile (cygpath) 31524 input_path=`$CYGPATH -u "$shortmode_path"` 31525 new_path="$input_path" 31526 fi 31527 fi 31528 31529 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31530 if test "x$test_cygdrive_prefix" = x; then 31531 # As a simple fix, exclude /usr/bin since it's not a real path. 31532 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31533 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31534 # a path prefixed by /cygdrive for fixpath to work. 31535 new_path="$CYGWIN_ROOT_PATH$input_path" 31536 fi 31537 fi 31538 31539 # remove trailing .exe if any 31540 new_path="${new_path/%.exe/}" 31541 31542 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31543 31544 # First separate the path from the arguments. This will split at the first 31545 # space. 31546 complete="$CXXCPP" 31547 path="${complete%% *}" 31548 tmp="$complete EOL" 31549 arguments="${tmp#* }" 31550 31551 # Input might be given as Windows format, start by converting to 31552 # unix format. 31553 new_path="$path" 31554 31555 windows_path="$new_path" 31556 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31557 unix_path=`$CYGPATH -u "$windows_path"` 31558 new_path="$unix_path" 31559 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31560 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31561 new_path="$unix_path" 31562 fi 31563 31564 31565 # Now try to locate executable using which 31566 new_path=`$WHICH "$new_path" 2> /dev/null` 31567 31568 if test "x$new_path" = x; then 31569 # Oops. Which didn't find the executable. 31570 # The splitting of arguments from the executable at a space might have been incorrect, 31571 # since paths with space are more likely in Windows. Give it another try with the whole 31572 # argument. 31573 path="$complete" 31574 arguments="EOL" 31575 new_path="$path" 31576 31577 windows_path="$new_path" 31578 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31579 unix_path=`$CYGPATH -u "$windows_path"` 31580 new_path="$unix_path" 31581 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31582 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31583 new_path="$unix_path" 31584 fi 31585 31586 31587 new_path=`$WHICH "$new_path" 2> /dev/null` 31588 # bat and cmd files are not always considered executable in MSYS causing which 31589 # to not find them 31590 if test "x$new_path" = x \ 31591 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31592 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31593 new_path="$path" 31594 31595 windows_path="$new_path" 31596 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31597 unix_path=`$CYGPATH -u "$windows_path"` 31598 new_path="$unix_path" 31599 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31600 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31601 new_path="$unix_path" 31602 fi 31603 31604 fi 31605 31606 if test "x$new_path" = x; then 31607 # It's still not found. Now this is an unrecoverable error. 31608 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31609 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31610 has_space=`$ECHO "$complete" | $GREP " "` 31611 if test "x$has_space" != x; then 31612 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31613 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31614 fi 31615 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31616 fi 31617 fi 31618 31619 # Now new_path has a complete unix path to the binary 31620 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31621 # Keep paths in /bin as-is, but remove trailing .exe if any 31622 new_path="${new_path/%.exe/}" 31623 # Do not save /bin paths to all_fixpath_prefixes! 31624 else 31625 # Not in mixed or Windows style, start by that. 31626 new_path=`cmd //c echo $new_path` 31627 31628 input_path="$new_path" 31629 # Check if we need to convert this using DOS-style short mode. If the path 31630 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31631 # take no chances and rewrite it. 31632 # Note: m4 eats our [], so we need to use [ and ] instead. 31633 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31634 if test "x$has_forbidden_chars" != x; then 31635 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31636 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31637 fi 31638 31639 # Output is in $new_path 31640 31641 windows_path="$new_path" 31642 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31643 unix_path=`$CYGPATH -u "$windows_path"` 31644 new_path="$unix_path" 31645 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31646 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31647 new_path="$unix_path" 31648 fi 31649 31650 # remove trailing .exe if any 31651 new_path="${new_path/%.exe/}" 31652 31653 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31654 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31655 fi 31656 31657 else 31658 # We're on a posix platform. Hooray! :) 31659 # First separate the path from the arguments. This will split at the first 31660 # space. 31661 complete="$CXXCPP" 31662 path="${complete%% *}" 31663 tmp="$complete EOL" 31664 arguments="${tmp#* }" 31665 31666 # Cannot rely on the command "which" here since it doesn't always work. 31667 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31668 if test -z "$is_absolute_path"; then 31669 # Path to executable is not absolute. Find it. 31670 IFS_save="$IFS" 31671 IFS=: 31672 for p in $PATH; do 31673 if test -f "$p/$path" && test -x "$p/$path"; then 31674 new_path="$p/$path" 31675 break 31676 fi 31677 done 31678 IFS="$IFS_save" 31679 else 31680 # This is an absolute path, we can use it without further modifications. 31681 new_path="$path" 31682 fi 31683 31684 if test "x$new_path" = x; then 31685 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31686 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31687 has_space=`$ECHO "$complete" | $GREP " "` 31688 if test "x$has_space" != x; then 31689 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31690 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31691 fi 31692 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31693 fi 31694 fi 31695 31696 # Now join together the path and the arguments once again 31697 if test "x$arguments" != xEOL; then 31698 new_complete="$new_path ${arguments% *}" 31699 else 31700 new_complete="$new_path" 31701 fi 31702 31703 if test "x$complete" != "x$new_complete"; then 31704 CXXCPP="$new_complete" 31705 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 31706 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 31707 fi 31708 31709 31710 # 31711 # Setup the linker (LD) 31712 # 31713 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 31714 # In the Microsoft toolchain we have a separate LD command "link". 31715 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 31716 # a cygwin program for something completely different. 31717 # Extract the first word of "link", so it can be a program name with args. 31718 set dummy link; ac_word=$2 31719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31720 $as_echo_n "checking for $ac_word... " >&6; } 31721 if ${ac_cv_prog_LD+:} false; then : 31722 $as_echo_n "(cached) " >&6 31723 else 31724 if test -n "$LD"; then 31725 ac_cv_prog_LD="$LD" # Let the user override the test. 31726 else 31727 ac_prog_rejected=no 31728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31729 for as_dir in $PATH 31730 do 31731 IFS=$as_save_IFS 31732 test -z "$as_dir" && as_dir=. 31733 for ac_exec_ext in '' $ac_executable_extensions; do 31734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31735 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 31736 ac_prog_rejected=yes 31737 continue 31738 fi 31739 ac_cv_prog_LD="link" 31740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31741 break 2 31742 fi 31743 done 31744 done 31745 IFS=$as_save_IFS 31746 31747 if test $ac_prog_rejected = yes; then 31748 # We found a bogon in the path, so make sure we never use it. 31749 set dummy $ac_cv_prog_LD 31750 shift 31751 if test $# != 0; then 31752 # We chose a different compiler from the bogus one. 31753 # However, it has the same basename, so the bogon will be chosen 31754 # first if we set LD to just the basename; use the full file name. 31755 shift 31756 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 31757 fi 31758 fi 31759 fi 31760 fi 31761 LD=$ac_cv_prog_LD 31762 if test -n "$LD"; then 31763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 31764 $as_echo "$LD" >&6; } 31765 else 31766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31767 $as_echo "no" >&6; } 31768 fi 31769 31770 31771 31772 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31773 31774 # First separate the path from the arguments. This will split at the first 31775 # space. 31776 complete="$LD" 31777 path="${complete%% *}" 31778 tmp="$complete EOL" 31779 arguments="${tmp#* }" 31780 31781 # Input might be given as Windows format, start by converting to 31782 # unix format. 31783 new_path=`$CYGPATH -u "$path"` 31784 31785 # Now try to locate executable using which 31786 new_path=`$WHICH "$new_path" 2> /dev/null` 31787 # bat and cmd files are not always considered executable in cygwin causing which 31788 # to not find them 31789 if test "x$new_path" = x \ 31790 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31791 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31792 new_path=`$CYGPATH -u "$path"` 31793 fi 31794 if test "x$new_path" = x; then 31795 # Oops. Which didn't find the executable. 31796 # The splitting of arguments from the executable at a space might have been incorrect, 31797 # since paths with space are more likely in Windows. Give it another try with the whole 31798 # argument. 31799 path="$complete" 31800 arguments="EOL" 31801 new_path=`$CYGPATH -u "$path"` 31802 new_path=`$WHICH "$new_path" 2> /dev/null` 31803 # bat and cmd files are not always considered executable in cygwin causing which 31804 # to not find them 31805 if test "x$new_path" = x \ 31806 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31807 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31808 new_path=`$CYGPATH -u "$path"` 31809 fi 31810 if test "x$new_path" = x; then 31811 # It's still not found. Now this is an unrecoverable error. 31812 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31813 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31814 has_space=`$ECHO "$complete" | $GREP " "` 31815 if test "x$has_space" != x; then 31816 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31817 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31818 fi 31819 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31820 fi 31821 fi 31822 31823 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31824 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31825 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31826 # "foo.exe" is OK but "foo" is an error. 31827 # 31828 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31829 # It is also a way to make sure we got the proper file name for the real test later on. 31830 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31831 if test "x$test_shortpath" = x; then 31832 # Short path failed, file does not exist as specified. 31833 # Try adding .exe or .cmd 31834 if test -f "${new_path}.exe"; then 31835 input_to_shortpath="${new_path}.exe" 31836 elif test -f "${new_path}.cmd"; then 31837 input_to_shortpath="${new_path}.cmd" 31838 else 31839 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 31840 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 31841 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31842 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31843 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31844 fi 31845 else 31846 input_to_shortpath="$new_path" 31847 fi 31848 31849 # Call helper function which possibly converts this using DOS-style short mode. 31850 # If so, the updated path is stored in $new_path. 31851 new_path="$input_to_shortpath" 31852 31853 input_path="$input_to_shortpath" 31854 # Check if we need to convert this using DOS-style short mode. If the path 31855 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31856 # take no chances and rewrite it. 31857 # Note: m4 eats our [], so we need to use [ and ] instead. 31858 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31859 if test "x$has_forbidden_chars" != x; then 31860 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31861 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31862 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31863 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31864 # Going to short mode and back again did indeed matter. Since short mode is 31865 # case insensitive, let's make it lowercase to improve readability. 31866 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31867 # Now convert it back to Unix-stile (cygpath) 31868 input_path=`$CYGPATH -u "$shortmode_path"` 31869 new_path="$input_path" 31870 fi 31871 fi 31872 31873 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31874 if test "x$test_cygdrive_prefix" = x; then 31875 # As a simple fix, exclude /usr/bin since it's not a real path. 31876 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31877 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31878 # a path prefixed by /cygdrive for fixpath to work. 31879 new_path="$CYGWIN_ROOT_PATH$input_path" 31880 fi 31881 fi 31882 31883 # remove trailing .exe if any 31884 new_path="${new_path/%.exe/}" 31885 31886 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31887 31888 # First separate the path from the arguments. This will split at the first 31889 # space. 31890 complete="$LD" 31891 path="${complete%% *}" 31892 tmp="$complete EOL" 31893 arguments="${tmp#* }" 31894 31895 # Input might be given as Windows format, start by converting to 31896 # unix format. 31897 new_path="$path" 31898 31899 windows_path="$new_path" 31900 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31901 unix_path=`$CYGPATH -u "$windows_path"` 31902 new_path="$unix_path" 31903 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31904 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31905 new_path="$unix_path" 31906 fi 31907 31908 31909 # Now try to locate executable using which 31910 new_path=`$WHICH "$new_path" 2> /dev/null` 31911 31912 if test "x$new_path" = x; then 31913 # Oops. Which didn't find the executable. 31914 # The splitting of arguments from the executable at a space might have been incorrect, 31915 # since paths with space are more likely in Windows. Give it another try with the whole 31916 # argument. 31917 path="$complete" 31918 arguments="EOL" 31919 new_path="$path" 31920 31921 windows_path="$new_path" 31922 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31923 unix_path=`$CYGPATH -u "$windows_path"` 31924 new_path="$unix_path" 31925 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31926 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31927 new_path="$unix_path" 31928 fi 31929 31930 31931 new_path=`$WHICH "$new_path" 2> /dev/null` 31932 # bat and cmd files are not always considered executable in MSYS causing which 31933 # to not find them 31934 if test "x$new_path" = x \ 31935 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31936 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31937 new_path="$path" 31938 31939 windows_path="$new_path" 31940 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31941 unix_path=`$CYGPATH -u "$windows_path"` 31942 new_path="$unix_path" 31943 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31944 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31945 new_path="$unix_path" 31946 fi 31947 31948 fi 31949 31950 if test "x$new_path" = x; then 31951 # It's still not found. Now this is an unrecoverable error. 31952 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31953 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31954 has_space=`$ECHO "$complete" | $GREP " "` 31955 if test "x$has_space" != x; then 31956 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31957 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31958 fi 31959 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31960 fi 31961 fi 31962 31963 # Now new_path has a complete unix path to the binary 31964 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31965 # Keep paths in /bin as-is, but remove trailing .exe if any 31966 new_path="${new_path/%.exe/}" 31967 # Do not save /bin paths to all_fixpath_prefixes! 31968 else 31969 # Not in mixed or Windows style, start by that. 31970 new_path=`cmd //c echo $new_path` 31971 31972 input_path="$new_path" 31973 # Check if we need to convert this using DOS-style short mode. If the path 31974 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31975 # take no chances and rewrite it. 31976 # Note: m4 eats our [], so we need to use [ and ] instead. 31977 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31978 if test "x$has_forbidden_chars" != x; then 31979 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31980 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31981 fi 31982 31983 # Output is in $new_path 31984 31985 windows_path="$new_path" 31986 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31987 unix_path=`$CYGPATH -u "$windows_path"` 31988 new_path="$unix_path" 31989 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31990 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31991 new_path="$unix_path" 31992 fi 31993 31994 # remove trailing .exe if any 31995 new_path="${new_path/%.exe/}" 31996 31997 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31998 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31999 fi 32000 32001 else 32002 # We're on a posix platform. Hooray! :) 32003 # First separate the path from the arguments. This will split at the first 32004 # space. 32005 complete="$LD" 32006 path="${complete%% *}" 32007 tmp="$complete EOL" 32008 arguments="${tmp#* }" 32009 32010 # Cannot rely on the command "which" here since it doesn't always work. 32011 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32012 if test -z "$is_absolute_path"; then 32013 # Path to executable is not absolute. Find it. 32014 IFS_save="$IFS" 32015 IFS=: 32016 for p in $PATH; do 32017 if test -f "$p/$path" && test -x "$p/$path"; then 32018 new_path="$p/$path" 32019 break 32020 fi 32021 done 32022 IFS="$IFS_save" 32023 else 32024 # This is an absolute path, we can use it without further modifications. 32025 new_path="$path" 32026 fi 32027 32028 if test "x$new_path" = x; then 32029 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 32030 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 32031 has_space=`$ECHO "$complete" | $GREP " "` 32032 if test "x$has_space" != x; then 32033 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32034 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32035 fi 32036 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32037 fi 32038 fi 32039 32040 # Now join together the path and the arguments once again 32041 if test "x$arguments" != xEOL; then 32042 new_complete="$new_path ${arguments% *}" 32043 else 32044 new_complete="$new_path" 32045 fi 32046 32047 if test "x$complete" != "x$new_complete"; then 32048 LD="$new_complete" 32049 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 32050 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 32051 fi 32052 32053 # Verify that we indeed succeeded with this trick. 32054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 32055 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 32056 "$LD" --version > /dev/null 32057 if test $? -eq 0 ; then 32058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32059 $as_echo "no" >&6; } 32060 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 32061 else 32062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32063 $as_echo "yes" >&6; } 32064 fi 32065 LDCXX="$LD" 32066 else 32067 # All other toolchains use the compiler to link. 32068 LD="$CC" 32069 LDCXX="$CXX" 32070 fi 32071 32072 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 32073 32074 32075 # 32076 # Setup the assembler (AS) 32077 # 32078 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 32079 # FIXME: should this really be solaris, or solstudio? 32080 32081 32082 # Publish this variable in the help. 32083 32084 32085 if test "x$AS" = x; then 32086 # The variable is not set by user, try to locate tool using the code snippet 32087 for ac_prog in as 32088 do 32089 # Extract the first word of "$ac_prog", so it can be a program name with args. 32090 set dummy $ac_prog; ac_word=$2 32091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32092 $as_echo_n "checking for $ac_word... " >&6; } 32093 if ${ac_cv_path_AS+:} false; then : 32094 $as_echo_n "(cached) " >&6 32095 else 32096 case $AS in 32097 [\\/]* | ?:[\\/]*) 32098 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32099 ;; 32100 *) 32101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32102 for as_dir in $PATH 32103 do 32104 IFS=$as_save_IFS 32105 test -z "$as_dir" && as_dir=. 32106 for ac_exec_ext in '' $ac_executable_extensions; do 32107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32108 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32110 break 2 32111 fi 32112 done 32113 done 32114 IFS=$as_save_IFS 32115 32116 ;; 32117 esac 32118 fi 32119 AS=$ac_cv_path_AS 32120 if test -n "$AS"; then 32121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32122 $as_echo "$AS" >&6; } 32123 else 32124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32125 $as_echo "no" >&6; } 32126 fi 32127 32128 32129 test -n "$AS" && break 32130 done 32131 32132 else 32133 # The variable is set, but is it from the command line or the environment? 32134 32135 # Try to remove the string !AS! from our list. 32136 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 32137 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 32138 # If it failed, the variable was not from the command line. Ignore it, 32139 # but warn the user (except for BASH, which is always set by the calling BASH). 32140 if test "xAS" != xBASH; then 32141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 32142 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 32143 fi 32144 # Try to locate tool using the code snippet 32145 for ac_prog in as 32146 do 32147 # Extract the first word of "$ac_prog", so it can be a program name with args. 32148 set dummy $ac_prog; ac_word=$2 32149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32150 $as_echo_n "checking for $ac_word... " >&6; } 32151 if ${ac_cv_path_AS+:} false; then : 32152 $as_echo_n "(cached) " >&6 32153 else 32154 case $AS in 32155 [\\/]* | ?:[\\/]*) 32156 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32157 ;; 32158 *) 32159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32160 for as_dir in $PATH 32161 do 32162 IFS=$as_save_IFS 32163 test -z "$as_dir" && as_dir=. 32164 for ac_exec_ext in '' $ac_executable_extensions; do 32165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32166 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32168 break 2 32169 fi 32170 done 32171 done 32172 IFS=$as_save_IFS 32173 32174 ;; 32175 esac 32176 fi 32177 AS=$ac_cv_path_AS 32178 if test -n "$AS"; then 32179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32180 $as_echo "$AS" >&6; } 32181 else 32182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32183 $as_echo "no" >&6; } 32184 fi 32185 32186 32187 test -n "$AS" && break 32188 done 32189 32190 else 32191 # If it succeeded, then it was overridden by the user. We will use it 32192 # for the tool. 32193 32194 # First remove it from the list of overridden variables, so we can test 32195 # for unknown variables in the end. 32196 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 32197 32198 # Check if the provided tool contains a complete path. 32199 tool_specified="$AS" 32200 tool_basename="${tool_specified##*/}" 32201 if test "x$tool_basename" = "x$tool_specified"; then 32202 # A command without a complete path is provided, search $PATH. 32203 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 32204 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 32205 # Extract the first word of "$tool_basename", so it can be a program name with args. 32206 set dummy $tool_basename; ac_word=$2 32207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32208 $as_echo_n "checking for $ac_word... " >&6; } 32209 if ${ac_cv_path_AS+:} false; then : 32210 $as_echo_n "(cached) " >&6 32211 else 32212 case $AS in 32213 [\\/]* | ?:[\\/]*) 32214 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32215 ;; 32216 *) 32217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32218 for as_dir in $PATH 32219 do 32220 IFS=$as_save_IFS 32221 test -z "$as_dir" && as_dir=. 32222 for ac_exec_ext in '' $ac_executable_extensions; do 32223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32224 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32226 break 2 32227 fi 32228 done 32229 done 32230 IFS=$as_save_IFS 32231 32232 ;; 32233 esac 32234 fi 32235 AS=$ac_cv_path_AS 32236 if test -n "$AS"; then 32237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32238 $as_echo "$AS" >&6; } 32239 else 32240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32241 $as_echo "no" >&6; } 32242 fi 32243 32244 32245 if test "x$AS" = x; then 32246 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 32247 fi 32248 else 32249 # Otherwise we believe it is a complete path. Use it as it is. 32250 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 32251 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 32252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 32253 $as_echo_n "checking for AS... " >&6; } 32254 if test ! -x "$tool_specified"; then 32255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32256 $as_echo "not found" >&6; } 32257 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 32258 fi 32259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 32260 $as_echo "$tool_specified" >&6; } 32261 fi 32262 fi 32263 fi 32264 32265 32266 32267 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32268 32269 # First separate the path from the arguments. This will split at the first 32270 # space. 32271 complete="$AS" 32272 path="${complete%% *}" 32273 tmp="$complete EOL" 32274 arguments="${tmp#* }" 32275 32276 # Input might be given as Windows format, start by converting to 32277 # unix format. 32278 new_path=`$CYGPATH -u "$path"` 32279 32280 # Now try to locate executable using which 32281 new_path=`$WHICH "$new_path" 2> /dev/null` 32282 # bat and cmd files are not always considered executable in cygwin causing which 32283 # to not find them 32284 if test "x$new_path" = x \ 32285 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32286 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32287 new_path=`$CYGPATH -u "$path"` 32288 fi 32289 if test "x$new_path" = x; then 32290 # Oops. Which didn't find the executable. 32291 # The splitting of arguments from the executable at a space might have been incorrect, 32292 # since paths with space are more likely in Windows. Give it another try with the whole 32293 # argument. 32294 path="$complete" 32295 arguments="EOL" 32296 new_path=`$CYGPATH -u "$path"` 32297 new_path=`$WHICH "$new_path" 2> /dev/null` 32298 # bat and cmd files are not always considered executable in cygwin causing which 32299 # to not find them 32300 if test "x$new_path" = x \ 32301 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32302 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32303 new_path=`$CYGPATH -u "$path"` 32304 fi 32305 if test "x$new_path" = x; then 32306 # It's still not found. Now this is an unrecoverable error. 32307 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32308 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32309 has_space=`$ECHO "$complete" | $GREP " "` 32310 if test "x$has_space" != x; then 32311 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32312 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32313 fi 32314 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32315 fi 32316 fi 32317 32318 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32319 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32320 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32321 # "foo.exe" is OK but "foo" is an error. 32322 # 32323 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32324 # It is also a way to make sure we got the proper file name for the real test later on. 32325 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32326 if test "x$test_shortpath" = x; then 32327 # Short path failed, file does not exist as specified. 32328 # Try adding .exe or .cmd 32329 if test -f "${new_path}.exe"; then 32330 input_to_shortpath="${new_path}.exe" 32331 elif test -f "${new_path}.cmd"; then 32332 input_to_shortpath="${new_path}.cmd" 32333 else 32334 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 32335 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 32336 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32337 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32338 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32339 fi 32340 else 32341 input_to_shortpath="$new_path" 32342 fi 32343 32344 # Call helper function which possibly converts this using DOS-style short mode. 32345 # If so, the updated path is stored in $new_path. 32346 new_path="$input_to_shortpath" 32347 32348 input_path="$input_to_shortpath" 32349 # Check if we need to convert this using DOS-style short mode. If the path 32350 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32351 # take no chances and rewrite it. 32352 # Note: m4 eats our [], so we need to use [ and ] instead. 32353 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32354 if test "x$has_forbidden_chars" != x; then 32355 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32356 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32357 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32358 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32359 # Going to short mode and back again did indeed matter. Since short mode is 32360 # case insensitive, let's make it lowercase to improve readability. 32361 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32362 # Now convert it back to Unix-stile (cygpath) 32363 input_path=`$CYGPATH -u "$shortmode_path"` 32364 new_path="$input_path" 32365 fi 32366 fi 32367 32368 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32369 if test "x$test_cygdrive_prefix" = x; then 32370 # As a simple fix, exclude /usr/bin since it's not a real path. 32371 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32372 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32373 # a path prefixed by /cygdrive for fixpath to work. 32374 new_path="$CYGWIN_ROOT_PATH$input_path" 32375 fi 32376 fi 32377 32378 # remove trailing .exe if any 32379 new_path="${new_path/%.exe/}" 32380 32381 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32382 32383 # First separate the path from the arguments. This will split at the first 32384 # space. 32385 complete="$AS" 32386 path="${complete%% *}" 32387 tmp="$complete EOL" 32388 arguments="${tmp#* }" 32389 32390 # Input might be given as Windows format, start by converting to 32391 # unix format. 32392 new_path="$path" 32393 32394 windows_path="$new_path" 32395 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32396 unix_path=`$CYGPATH -u "$windows_path"` 32397 new_path="$unix_path" 32398 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32399 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32400 new_path="$unix_path" 32401 fi 32402 32403 32404 # Now try to locate executable using which 32405 new_path=`$WHICH "$new_path" 2> /dev/null` 32406 32407 if test "x$new_path" = x; then 32408 # Oops. Which didn't find the executable. 32409 # The splitting of arguments from the executable at a space might have been incorrect, 32410 # since paths with space are more likely in Windows. Give it another try with the whole 32411 # argument. 32412 path="$complete" 32413 arguments="EOL" 32414 new_path="$path" 32415 32416 windows_path="$new_path" 32417 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32418 unix_path=`$CYGPATH -u "$windows_path"` 32419 new_path="$unix_path" 32420 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32421 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32422 new_path="$unix_path" 32423 fi 32424 32425 32426 new_path=`$WHICH "$new_path" 2> /dev/null` 32427 # bat and cmd files are not always considered executable in MSYS causing which 32428 # to not find them 32429 if test "x$new_path" = x \ 32430 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32431 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32432 new_path="$path" 32433 32434 windows_path="$new_path" 32435 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32436 unix_path=`$CYGPATH -u "$windows_path"` 32437 new_path="$unix_path" 32438 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32439 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32440 new_path="$unix_path" 32441 fi 32442 32443 fi 32444 32445 if test "x$new_path" = x; then 32446 # It's still not found. Now this is an unrecoverable error. 32447 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32448 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32449 has_space=`$ECHO "$complete" | $GREP " "` 32450 if test "x$has_space" != x; then 32451 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32452 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32453 fi 32454 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32455 fi 32456 fi 32457 32458 # Now new_path has a complete unix path to the binary 32459 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32460 # Keep paths in /bin as-is, but remove trailing .exe if any 32461 new_path="${new_path/%.exe/}" 32462 # Do not save /bin paths to all_fixpath_prefixes! 32463 else 32464 # Not in mixed or Windows style, start by that. 32465 new_path=`cmd //c echo $new_path` 32466 32467 input_path="$new_path" 32468 # Check if we need to convert this using DOS-style short mode. If the path 32469 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32470 # take no chances and rewrite it. 32471 # Note: m4 eats our [], so we need to use [ and ] instead. 32472 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32473 if test "x$has_forbidden_chars" != x; then 32474 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32475 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32476 fi 32477 32478 # Output is in $new_path 32479 32480 windows_path="$new_path" 32481 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32482 unix_path=`$CYGPATH -u "$windows_path"` 32483 new_path="$unix_path" 32484 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32485 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32486 new_path="$unix_path" 32487 fi 32488 32489 # remove trailing .exe if any 32490 new_path="${new_path/%.exe/}" 32491 32492 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32493 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32494 fi 32495 32496 else 32497 # We're on a posix platform. Hooray! :) 32498 # First separate the path from the arguments. This will split at the first 32499 # space. 32500 complete="$AS" 32501 path="${complete%% *}" 32502 tmp="$complete EOL" 32503 arguments="${tmp#* }" 32504 32505 # Cannot rely on the command "which" here since it doesn't always work. 32506 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32507 if test -z "$is_absolute_path"; then 32508 # Path to executable is not absolute. Find it. 32509 IFS_save="$IFS" 32510 IFS=: 32511 for p in $PATH; do 32512 if test -f "$p/$path" && test -x "$p/$path"; then 32513 new_path="$p/$path" 32514 break 32515 fi 32516 done 32517 IFS="$IFS_save" 32518 else 32519 # This is an absolute path, we can use it without further modifications. 32520 new_path="$path" 32521 fi 32522 32523 if test "x$new_path" = x; then 32524 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32525 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32526 has_space=`$ECHO "$complete" | $GREP " "` 32527 if test "x$has_space" != x; then 32528 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32529 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32530 fi 32531 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32532 fi 32533 fi 32534 32535 # Now join together the path and the arguments once again 32536 if test "x$arguments" != xEOL; then 32537 new_complete="$new_path ${arguments% *}" 32538 else 32539 new_complete="$new_path" 32540 fi 32541 32542 if test "x$complete" != "x$new_complete"; then 32543 AS="$new_complete" 32544 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 32545 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 32546 fi 32547 32548 else 32549 # FIXME: is this correct for microsoft? 32550 AS="$CC -c" 32551 fi 32552 32553 32554 # 32555 # Setup the archiver (AR) 32556 # 32557 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 32558 # The corresponding ar tool is lib.exe (used to create static libraries) 32559 # Extract the first word of "lib", so it can be a program name with args. 32560 set dummy lib; ac_word=$2 32561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32562 $as_echo_n "checking for $ac_word... " >&6; } 32563 if ${ac_cv_prog_AR+:} false; then : 32564 $as_echo_n "(cached) " >&6 32565 else 32566 if test -n "$AR"; then 32567 ac_cv_prog_AR="$AR" # Let the user override the test. 32568 else 32569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32570 for as_dir in $PATH 32571 do 32572 IFS=$as_save_IFS 32573 test -z "$as_dir" && as_dir=. 32574 for ac_exec_ext in '' $ac_executable_extensions; do 32575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32576 ac_cv_prog_AR="lib" 32577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32578 break 2 32579 fi 32580 done 32581 done 32582 IFS=$as_save_IFS 32583 32584 fi 32585 fi 32586 AR=$ac_cv_prog_AR 32587 if test -n "$AR"; then 32588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32589 $as_echo "$AR" >&6; } 32590 else 32591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32592 $as_echo "no" >&6; } 32593 fi 32594 32595 32596 else 32597 32598 32599 # Publish this variable in the help. 32600 32601 32602 if test "x$AR" = x; then 32603 # The variable is not set by user, try to locate tool using the code snippet 32604 if test -n "$ac_tool_prefix"; then 32605 for ac_prog in ar 32606 do 32607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32608 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32610 $as_echo_n "checking for $ac_word... " >&6; } 32611 if ${ac_cv_prog_AR+:} false; then : 32612 $as_echo_n "(cached) " >&6 32613 else 32614 if test -n "$AR"; then 32615 ac_cv_prog_AR="$AR" # Let the user override the test. 32616 else 32617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32618 for as_dir in $PATH 32619 do 32620 IFS=$as_save_IFS 32621 test -z "$as_dir" && as_dir=. 32622 for ac_exec_ext in '' $ac_executable_extensions; do 32623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32624 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 32625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32626 break 2 32627 fi 32628 done 32629 done 32630 IFS=$as_save_IFS 32631 32632 fi 32633 fi 32634 AR=$ac_cv_prog_AR 32635 if test -n "$AR"; then 32636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32637 $as_echo "$AR" >&6; } 32638 else 32639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32640 $as_echo "no" >&6; } 32641 fi 32642 32643 32644 test -n "$AR" && break 32645 done 32646 fi 32647 if test -z "$AR"; then 32648 ac_ct_AR=$AR 32649 for ac_prog in ar 32650 do 32651 # Extract the first word of "$ac_prog", so it can be a program name with args. 32652 set dummy $ac_prog; ac_word=$2 32653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32654 $as_echo_n "checking for $ac_word... " >&6; } 32655 if ${ac_cv_prog_ac_ct_AR+:} false; then : 32656 $as_echo_n "(cached) " >&6 32657 else 32658 if test -n "$ac_ct_AR"; then 32659 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 32660 else 32661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32662 for as_dir in $PATH 32663 do 32664 IFS=$as_save_IFS 32665 test -z "$as_dir" && as_dir=. 32666 for ac_exec_ext in '' $ac_executable_extensions; do 32667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32668 ac_cv_prog_ac_ct_AR="$ac_prog" 32669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32670 break 2 32671 fi 32672 done 32673 done 32674 IFS=$as_save_IFS 32675 32676 fi 32677 fi 32678 ac_ct_AR=$ac_cv_prog_ac_ct_AR 32679 if test -n "$ac_ct_AR"; then 32680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 32681 $as_echo "$ac_ct_AR" >&6; } 32682 else 32683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32684 $as_echo "no" >&6; } 32685 fi 32686 32687 32688 test -n "$ac_ct_AR" && break 32689 done 32690 32691 if test "x$ac_ct_AR" = x; then 32692 AR="" 32693 else 32694 case $cross_compiling:$ac_tool_warned in 32695 yes:) 32696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32698 ac_tool_warned=yes ;; 32699 esac 32700 AR=$ac_ct_AR 32701 fi 32702 fi 32703 32704 else 32705 # The variable is set, but is it from the command line or the environment? 32706 32707 # Try to remove the string !AR! from our list. 32708 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 32709 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 32710 # If it failed, the variable was not from the command line. Ignore it, 32711 # but warn the user (except for BASH, which is always set by the calling BASH). 32712 if test "xAR" != xBASH; then 32713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 32714 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 32715 fi 32716 # Try to locate tool using the code snippet 32717 if test -n "$ac_tool_prefix"; then 32718 for ac_prog in ar 32719 do 32720 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32721 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32723 $as_echo_n "checking for $ac_word... " >&6; } 32724 if ${ac_cv_prog_AR+:} false; then : 32725 $as_echo_n "(cached) " >&6 32726 else 32727 if test -n "$AR"; then 32728 ac_cv_prog_AR="$AR" # Let the user override the test. 32729 else 32730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32731 for as_dir in $PATH 32732 do 32733 IFS=$as_save_IFS 32734 test -z "$as_dir" && as_dir=. 32735 for ac_exec_ext in '' $ac_executable_extensions; do 32736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32737 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 32738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32739 break 2 32740 fi 32741 done 32742 done 32743 IFS=$as_save_IFS 32744 32745 fi 32746 fi 32747 AR=$ac_cv_prog_AR 32748 if test -n "$AR"; then 32749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32750 $as_echo "$AR" >&6; } 32751 else 32752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32753 $as_echo "no" >&6; } 32754 fi 32755 32756 32757 test -n "$AR" && break 32758 done 32759 fi 32760 if test -z "$AR"; then 32761 ac_ct_AR=$AR 32762 for ac_prog in ar 32763 do 32764 # Extract the first word of "$ac_prog", so it can be a program name with args. 32765 set dummy $ac_prog; ac_word=$2 32766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32767 $as_echo_n "checking for $ac_word... " >&6; } 32768 if ${ac_cv_prog_ac_ct_AR+:} false; then : 32769 $as_echo_n "(cached) " >&6 32770 else 32771 if test -n "$ac_ct_AR"; then 32772 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 32773 else 32774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32775 for as_dir in $PATH 32776 do 32777 IFS=$as_save_IFS 32778 test -z "$as_dir" && as_dir=. 32779 for ac_exec_ext in '' $ac_executable_extensions; do 32780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32781 ac_cv_prog_ac_ct_AR="$ac_prog" 32782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32783 break 2 32784 fi 32785 done 32786 done 32787 IFS=$as_save_IFS 32788 32789 fi 32790 fi 32791 ac_ct_AR=$ac_cv_prog_ac_ct_AR 32792 if test -n "$ac_ct_AR"; then 32793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 32794 $as_echo "$ac_ct_AR" >&6; } 32795 else 32796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32797 $as_echo "no" >&6; } 32798 fi 32799 32800 32801 test -n "$ac_ct_AR" && break 32802 done 32803 32804 if test "x$ac_ct_AR" = x; then 32805 AR="" 32806 else 32807 case $cross_compiling:$ac_tool_warned in 32808 yes:) 32809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32811 ac_tool_warned=yes ;; 32812 esac 32813 AR=$ac_ct_AR 32814 fi 32815 fi 32816 32817 else 32818 # If it succeeded, then it was overridden by the user. We will use it 32819 # for the tool. 32820 32821 # First remove it from the list of overridden variables, so we can test 32822 # for unknown variables in the end. 32823 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 32824 32825 # Check if the provided tool contains a complete path. 32826 tool_specified="$AR" 32827 tool_basename="${tool_specified##*/}" 32828 if test "x$tool_basename" = "x$tool_specified"; then 32829 # A command without a complete path is provided, search $PATH. 32830 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 32831 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 32832 # Extract the first word of "$tool_basename", so it can be a program name with args. 32833 set dummy $tool_basename; ac_word=$2 32834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32835 $as_echo_n "checking for $ac_word... " >&6; } 32836 if ${ac_cv_path_AR+:} false; then : 32837 $as_echo_n "(cached) " >&6 32838 else 32839 case $AR in 32840 [\\/]* | ?:[\\/]*) 32841 ac_cv_path_AR="$AR" # Let the user override the test with a path. 32842 ;; 32843 *) 32844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32845 for as_dir in $PATH 32846 do 32847 IFS=$as_save_IFS 32848 test -z "$as_dir" && as_dir=. 32849 for ac_exec_ext in '' $ac_executable_extensions; do 32850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32851 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 32852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32853 break 2 32854 fi 32855 done 32856 done 32857 IFS=$as_save_IFS 32858 32859 ;; 32860 esac 32861 fi 32862 AR=$ac_cv_path_AR 32863 if test -n "$AR"; then 32864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32865 $as_echo "$AR" >&6; } 32866 else 32867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32868 $as_echo "no" >&6; } 32869 fi 32870 32871 32872 if test "x$AR" = x; then 32873 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 32874 fi 32875 else 32876 # Otherwise we believe it is a complete path. Use it as it is. 32877 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 32878 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 32879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 32880 $as_echo_n "checking for AR... " >&6; } 32881 if test ! -x "$tool_specified"; then 32882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32883 $as_echo "not found" >&6; } 32884 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 32885 fi 32886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 32887 $as_echo "$tool_specified" >&6; } 32888 fi 32889 fi 32890 fi 32891 32892 32893 fi 32894 32895 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32896 32897 # First separate the path from the arguments. This will split at the first 32898 # space. 32899 complete="$AR" 32900 path="${complete%% *}" 32901 tmp="$complete EOL" 32902 arguments="${tmp#* }" 32903 32904 # Input might be given as Windows format, start by converting to 32905 # unix format. 32906 new_path=`$CYGPATH -u "$path"` 32907 32908 # Now try to locate executable using which 32909 new_path=`$WHICH "$new_path" 2> /dev/null` 32910 # bat and cmd files are not always considered executable in cygwin causing which 32911 # to not find them 32912 if test "x$new_path" = x \ 32913 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32914 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32915 new_path=`$CYGPATH -u "$path"` 32916 fi 32917 if test "x$new_path" = x; then 32918 # Oops. Which didn't find the executable. 32919 # The splitting of arguments from the executable at a space might have been incorrect, 32920 # since paths with space are more likely in Windows. Give it another try with the whole 32921 # argument. 32922 path="$complete" 32923 arguments="EOL" 32924 new_path=`$CYGPATH -u "$path"` 32925 new_path=`$WHICH "$new_path" 2> /dev/null` 32926 # bat and cmd files are not always considered executable in cygwin causing which 32927 # to not find them 32928 if test "x$new_path" = x \ 32929 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32930 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32931 new_path=`$CYGPATH -u "$path"` 32932 fi 32933 if test "x$new_path" = x; then 32934 # It's still not found. Now this is an unrecoverable error. 32935 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32936 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32937 has_space=`$ECHO "$complete" | $GREP " "` 32938 if test "x$has_space" != x; then 32939 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32940 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32941 fi 32942 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32943 fi 32944 fi 32945 32946 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32947 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32948 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32949 # "foo.exe" is OK but "foo" is an error. 32950 # 32951 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32952 # It is also a way to make sure we got the proper file name for the real test later on. 32953 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32954 if test "x$test_shortpath" = x; then 32955 # Short path failed, file does not exist as specified. 32956 # Try adding .exe or .cmd 32957 if test -f "${new_path}.exe"; then 32958 input_to_shortpath="${new_path}.exe" 32959 elif test -f "${new_path}.cmd"; then 32960 input_to_shortpath="${new_path}.cmd" 32961 else 32962 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 32963 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 32964 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32965 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32966 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32967 fi 32968 else 32969 input_to_shortpath="$new_path" 32970 fi 32971 32972 # Call helper function which possibly converts this using DOS-style short mode. 32973 # If so, the updated path is stored in $new_path. 32974 new_path="$input_to_shortpath" 32975 32976 input_path="$input_to_shortpath" 32977 # Check if we need to convert this using DOS-style short mode. If the path 32978 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32979 # take no chances and rewrite it. 32980 # Note: m4 eats our [], so we need to use [ and ] instead. 32981 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32982 if test "x$has_forbidden_chars" != x; then 32983 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32984 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32985 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32986 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32987 # Going to short mode and back again did indeed matter. Since short mode is 32988 # case insensitive, let's make it lowercase to improve readability. 32989 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32990 # Now convert it back to Unix-stile (cygpath) 32991 input_path=`$CYGPATH -u "$shortmode_path"` 32992 new_path="$input_path" 32993 fi 32994 fi 32995 32996 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32997 if test "x$test_cygdrive_prefix" = x; then 32998 # As a simple fix, exclude /usr/bin since it's not a real path. 32999 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33000 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33001 # a path prefixed by /cygdrive for fixpath to work. 33002 new_path="$CYGWIN_ROOT_PATH$input_path" 33003 fi 33004 fi 33005 33006 # remove trailing .exe if any 33007 new_path="${new_path/%.exe/}" 33008 33009 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33010 33011 # First separate the path from the arguments. This will split at the first 33012 # space. 33013 complete="$AR" 33014 path="${complete%% *}" 33015 tmp="$complete EOL" 33016 arguments="${tmp#* }" 33017 33018 # Input might be given as Windows format, start by converting to 33019 # unix format. 33020 new_path="$path" 33021 33022 windows_path="$new_path" 33023 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33024 unix_path=`$CYGPATH -u "$windows_path"` 33025 new_path="$unix_path" 33026 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33027 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33028 new_path="$unix_path" 33029 fi 33030 33031 33032 # Now try to locate executable using which 33033 new_path=`$WHICH "$new_path" 2> /dev/null` 33034 33035 if test "x$new_path" = x; then 33036 # Oops. Which didn't find the executable. 33037 # The splitting of arguments from the executable at a space might have been incorrect, 33038 # since paths with space are more likely in Windows. Give it another try with the whole 33039 # argument. 33040 path="$complete" 33041 arguments="EOL" 33042 new_path="$path" 33043 33044 windows_path="$new_path" 33045 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33046 unix_path=`$CYGPATH -u "$windows_path"` 33047 new_path="$unix_path" 33048 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33049 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33050 new_path="$unix_path" 33051 fi 33052 33053 33054 new_path=`$WHICH "$new_path" 2> /dev/null` 33055 # bat and cmd files are not always considered executable in MSYS causing which 33056 # to not find them 33057 if test "x$new_path" = x \ 33058 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33059 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33060 new_path="$path" 33061 33062 windows_path="$new_path" 33063 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33064 unix_path=`$CYGPATH -u "$windows_path"` 33065 new_path="$unix_path" 33066 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33067 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33068 new_path="$unix_path" 33069 fi 33070 33071 fi 33072 33073 if test "x$new_path" = x; then 33074 # It's still not found. Now this is an unrecoverable error. 33075 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33076 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33077 has_space=`$ECHO "$complete" | $GREP " "` 33078 if test "x$has_space" != x; then 33079 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33080 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33081 fi 33082 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33083 fi 33084 fi 33085 33086 # Now new_path has a complete unix path to the binary 33087 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33088 # Keep paths in /bin as-is, but remove trailing .exe if any 33089 new_path="${new_path/%.exe/}" 33090 # Do not save /bin paths to all_fixpath_prefixes! 33091 else 33092 # Not in mixed or Windows style, start by that. 33093 new_path=`cmd //c echo $new_path` 33094 33095 input_path="$new_path" 33096 # Check if we need to convert this using DOS-style short mode. If the path 33097 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33098 # take no chances and rewrite it. 33099 # Note: m4 eats our [], so we need to use [ and ] instead. 33100 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33101 if test "x$has_forbidden_chars" != x; then 33102 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33103 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33104 fi 33105 33106 # Output is in $new_path 33107 33108 windows_path="$new_path" 33109 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33110 unix_path=`$CYGPATH -u "$windows_path"` 33111 new_path="$unix_path" 33112 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33113 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33114 new_path="$unix_path" 33115 fi 33116 33117 # remove trailing .exe if any 33118 new_path="${new_path/%.exe/}" 33119 33120 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33121 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33122 fi 33123 33124 else 33125 # We're on a posix platform. Hooray! :) 33126 # First separate the path from the arguments. This will split at the first 33127 # space. 33128 complete="$AR" 33129 path="${complete%% *}" 33130 tmp="$complete EOL" 33131 arguments="${tmp#* }" 33132 33133 # Cannot rely on the command "which" here since it doesn't always work. 33134 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33135 if test -z "$is_absolute_path"; then 33136 # Path to executable is not absolute. Find it. 33137 IFS_save="$IFS" 33138 IFS=: 33139 for p in $PATH; do 33140 if test -f "$p/$path" && test -x "$p/$path"; then 33141 new_path="$p/$path" 33142 break 33143 fi 33144 done 33145 IFS="$IFS_save" 33146 else 33147 # This is an absolute path, we can use it without further modifications. 33148 new_path="$path" 33149 fi 33150 33151 if test "x$new_path" = x; then 33152 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33153 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33154 has_space=`$ECHO "$complete" | $GREP " "` 33155 if test "x$has_space" != x; then 33156 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33157 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33158 fi 33159 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33160 fi 33161 fi 33162 33163 # Now join together the path and the arguments once again 33164 if test "x$arguments" != xEOL; then 33165 new_complete="$new_path ${arguments% *}" 33166 else 33167 new_complete="$new_path" 33168 fi 33169 33170 if test "x$complete" != "x$new_complete"; then 33171 AR="$new_complete" 33172 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 33173 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 33174 fi 33175 33176 33177 33178 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 33179 ac_ext=m 33180 ac_cpp='$OBJCPP $CPPFLAGS' 33181 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33182 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33183 ac_compiler_gnu=$ac_cv_objc_compiler_gnu 33184 if test -n "$ac_tool_prefix"; then 33185 for ac_prog in gcc objcc objc cc CC 33186 do 33187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 33188 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 33189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33190 $as_echo_n "checking for $ac_word... " >&6; } 33191 if ${ac_cv_prog_OBJC+:} false; then : 33192 $as_echo_n "(cached) " >&6 33193 else 33194 if test -n "$OBJC"; then 33195 ac_cv_prog_OBJC="$OBJC" # Let the user override the test. 33196 else 33197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33198 for as_dir in $PATH 33199 do 33200 IFS=$as_save_IFS 33201 test -z "$as_dir" && as_dir=. 33202 for ac_exec_ext in '' $ac_executable_extensions; do 33203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33204 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" 33205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33206 break 2 33207 fi 33208 done 33209 done 33210 IFS=$as_save_IFS 33211 33212 fi 33213 fi 33214 OBJC=$ac_cv_prog_OBJC 33215 if test -n "$OBJC"; then 33216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 33217 $as_echo "$OBJC" >&6; } 33218 else 33219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33220 $as_echo "no" >&6; } 33221 fi 33222 33223 33224 test -n "$OBJC" && break 33225 done 33226 fi 33227 if test -z "$OBJC"; then 33228 ac_ct_OBJC=$OBJC 33229 for ac_prog in gcc objcc objc cc CC 33230 do 33231 # Extract the first word of "$ac_prog", so it can be a program name with args. 33232 set dummy $ac_prog; ac_word=$2 33233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33234 $as_echo_n "checking for $ac_word... " >&6; } 33235 if ${ac_cv_prog_ac_ct_OBJC+:} false; then : 33236 $as_echo_n "(cached) " >&6 33237 else 33238 if test -n "$ac_ct_OBJC"; then 33239 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. 33240 else 33241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33242 for as_dir in $PATH 33243 do 33244 IFS=$as_save_IFS 33245 test -z "$as_dir" && as_dir=. 33246 for ac_exec_ext in '' $ac_executable_extensions; do 33247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33248 ac_cv_prog_ac_ct_OBJC="$ac_prog" 33249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33250 break 2 33251 fi 33252 done 33253 done 33254 IFS=$as_save_IFS 33255 33256 fi 33257 fi 33258 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC 33259 if test -n "$ac_ct_OBJC"; then 33260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 33261 $as_echo "$ac_ct_OBJC" >&6; } 33262 else 33263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33264 $as_echo "no" >&6; } 33265 fi 33266 33267 33268 test -n "$ac_ct_OBJC" && break 33269 done 33270 33271 if test "x$ac_ct_OBJC" = x; then 33272 OBJC="gcc" 33273 else 33274 case $cross_compiling:$ac_tool_warned in 33275 yes:) 33276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33278 ac_tool_warned=yes ;; 33279 esac 33280 OBJC=$ac_ct_OBJC 33281 fi 33282 fi 33283 33284 # Provide some information about the compiler. 33285 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 33286 set X $ac_compile 33287 ac_compiler=$2 33288 for ac_option in --version -v -V -qversion; do 33289 { { ac_try="$ac_compiler $ac_option >&5" 33290 case "(($ac_try" in 33291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33292 *) ac_try_echo=$ac_try;; 33293 esac 33294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33295 $as_echo "$ac_try_echo"; } >&5 33296 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 33297 ac_status=$? 33298 if test -s conftest.err; then 33299 sed '10a\ 33300 ... rest of stderr output deleted ... 33301 10q' conftest.err >conftest.er1 33302 cat conftest.er1 >&5 33303 fi 33304 rm -f conftest.er1 conftest.err 33305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33306 test $ac_status = 0; } 33307 done 33308 33309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 33310 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } 33311 if ${ac_cv_objc_compiler_gnu+:} false; then : 33312 $as_echo_n "(cached) " >&6 33313 else 33314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33315 /* end confdefs.h. */ 33316 33317 int 33318 main () 33319 { 33320 #ifndef __GNUC__ 33321 choke me 33322 #endif 33323 33324 ; 33325 return 0; 33326 } 33327 _ACEOF 33328 if ac_fn_objc_try_compile "$LINENO"; then : 33329 ac_compiler_gnu=yes 33330 else 33331 ac_compiler_gnu=no 33332 fi 33333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33334 ac_cv_objc_compiler_gnu=$ac_compiler_gnu 33335 33336 fi 33337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 33338 $as_echo "$ac_cv_objc_compiler_gnu" >&6; } 33339 if test $ac_compiler_gnu = yes; then 33340 GOBJC=yes 33341 else 33342 GOBJC= 33343 fi 33344 ac_test_OBJCFLAGS=${OBJCFLAGS+set} 33345 ac_save_OBJCFLAGS=$OBJCFLAGS 33346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 33347 $as_echo_n "checking whether $OBJC accepts -g... " >&6; } 33348 if ${ac_cv_prog_objc_g+:} false; then : 33349 $as_echo_n "(cached) " >&6 33350 else 33351 ac_save_objc_werror_flag=$ac_objc_werror_flag 33352 ac_objc_werror_flag=yes 33353 ac_cv_prog_objc_g=no 33354 OBJCFLAGS="-g" 33355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33356 /* end confdefs.h. */ 33357 33358 int 33359 main () 33360 { 33361 33362 ; 33363 return 0; 33364 } 33365 _ACEOF 33366 if ac_fn_objc_try_compile "$LINENO"; then : 33367 ac_cv_prog_objc_g=yes 33368 else 33369 OBJCFLAGS="" 33370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33371 /* end confdefs.h. */ 33372 33373 int 33374 main () 33375 { 33376 33377 ; 33378 return 0; 33379 } 33380 _ACEOF 33381 if ac_fn_objc_try_compile "$LINENO"; then : 33382 33383 else 33384 ac_objc_werror_flag=$ac_save_objc_werror_flag 33385 OBJCFLAGS="-g" 33386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33387 /* end confdefs.h. */ 33388 33389 int 33390 main () 33391 { 33392 33393 ; 33394 return 0; 33395 } 33396 _ACEOF 33397 if ac_fn_objc_try_compile "$LINENO"; then : 33398 ac_cv_prog_objc_g=yes 33399 fi 33400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33401 fi 33402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33403 fi 33404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33405 ac_objc_werror_flag=$ac_save_objc_werror_flag 33406 fi 33407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 33408 $as_echo "$ac_cv_prog_objc_g" >&6; } 33409 if test "$ac_test_OBJCFLAGS" = set; then 33410 OBJCFLAGS=$ac_save_OBJCFLAGS 33411 elif test $ac_cv_prog_objc_g = yes; then 33412 if test "$GOBJC" = yes; then 33413 OBJCFLAGS="-g -O2" 33414 else 33415 OBJCFLAGS="-g" 33416 fi 33417 else 33418 if test "$GOBJC" = yes; then 33419 OBJCFLAGS="-O2" 33420 else 33421 OBJCFLAGS= 33422 fi 33423 fi 33424 ac_ext=cpp 33425 ac_cpp='$CXXCPP $CPPFLAGS' 33426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 33429 33430 33431 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33432 33433 # First separate the path from the arguments. This will split at the first 33434 # space. 33435 complete="$OBJC" 33436 path="${complete%% *}" 33437 tmp="$complete EOL" 33438 arguments="${tmp#* }" 33439 33440 # Input might be given as Windows format, start by converting to 33441 # unix format. 33442 new_path=`$CYGPATH -u "$path"` 33443 33444 # Now try to locate executable using which 33445 new_path=`$WHICH "$new_path" 2> /dev/null` 33446 # bat and cmd files are not always considered executable in cygwin causing which 33447 # to not find them 33448 if test "x$new_path" = x \ 33449 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33450 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33451 new_path=`$CYGPATH -u "$path"` 33452 fi 33453 if test "x$new_path" = x; then 33454 # Oops. Which didn't find the executable. 33455 # The splitting of arguments from the executable at a space might have been incorrect, 33456 # since paths with space are more likely in Windows. Give it another try with the whole 33457 # argument. 33458 path="$complete" 33459 arguments="EOL" 33460 new_path=`$CYGPATH -u "$path"` 33461 new_path=`$WHICH "$new_path" 2> /dev/null` 33462 # bat and cmd files are not always considered executable in cygwin causing which 33463 # to not find them 33464 if test "x$new_path" = x \ 33465 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33466 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33467 new_path=`$CYGPATH -u "$path"` 33468 fi 33469 if test "x$new_path" = x; then 33470 # It's still not found. Now this is an unrecoverable error. 33471 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33472 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33473 has_space=`$ECHO "$complete" | $GREP " "` 33474 if test "x$has_space" != x; then 33475 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33476 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33477 fi 33478 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33479 fi 33480 fi 33481 33482 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33483 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33484 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33485 # "foo.exe" is OK but "foo" is an error. 33486 # 33487 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33488 # It is also a way to make sure we got the proper file name for the real test later on. 33489 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33490 if test "x$test_shortpath" = x; then 33491 # Short path failed, file does not exist as specified. 33492 # Try adding .exe or .cmd 33493 if test -f "${new_path}.exe"; then 33494 input_to_shortpath="${new_path}.exe" 33495 elif test -f "${new_path}.cmd"; then 33496 input_to_shortpath="${new_path}.cmd" 33497 else 33498 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$new_path\", is invalid." >&5 33499 $as_echo "$as_me: The path of OBJC, which resolves as \"$new_path\", is invalid." >&6;} 33500 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33501 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33502 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33503 fi 33504 else 33505 input_to_shortpath="$new_path" 33506 fi 33507 33508 # Call helper function which possibly converts this using DOS-style short mode. 33509 # If so, the updated path is stored in $new_path. 33510 new_path="$input_to_shortpath" 33511 33512 input_path="$input_to_shortpath" 33513 # Check if we need to convert this using DOS-style short mode. If the path 33514 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33515 # take no chances and rewrite it. 33516 # Note: m4 eats our [], so we need to use [ and ] instead. 33517 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33518 if test "x$has_forbidden_chars" != x; then 33519 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33520 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33521 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33522 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33523 # Going to short mode and back again did indeed matter. Since short mode is 33524 # case insensitive, let's make it lowercase to improve readability. 33525 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33526 # Now convert it back to Unix-stile (cygpath) 33527 input_path=`$CYGPATH -u "$shortmode_path"` 33528 new_path="$input_path" 33529 fi 33530 fi 33531 33532 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33533 if test "x$test_cygdrive_prefix" = x; then 33534 # As a simple fix, exclude /usr/bin since it's not a real path. 33535 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33536 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33537 # a path prefixed by /cygdrive for fixpath to work. 33538 new_path="$CYGWIN_ROOT_PATH$input_path" 33539 fi 33540 fi 33541 33542 # remove trailing .exe if any 33543 new_path="${new_path/%.exe/}" 33544 33545 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33546 33547 # First separate the path from the arguments. This will split at the first 33548 # space. 33549 complete="$OBJC" 33550 path="${complete%% *}" 33551 tmp="$complete EOL" 33552 arguments="${tmp#* }" 33553 33554 # Input might be given as Windows format, start by converting to 33555 # unix format. 33556 new_path="$path" 33557 33558 windows_path="$new_path" 33559 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33560 unix_path=`$CYGPATH -u "$windows_path"` 33561 new_path="$unix_path" 33562 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33563 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33564 new_path="$unix_path" 33565 fi 33566 33567 33568 # Now try to locate executable using which 33569 new_path=`$WHICH "$new_path" 2> /dev/null` 33570 33571 if test "x$new_path" = x; then 33572 # Oops. Which didn't find the executable. 33573 # The splitting of arguments from the executable at a space might have been incorrect, 33574 # since paths with space are more likely in Windows. Give it another try with the whole 33575 # argument. 33576 path="$complete" 33577 arguments="EOL" 33578 new_path="$path" 33579 33580 windows_path="$new_path" 33581 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33582 unix_path=`$CYGPATH -u "$windows_path"` 33583 new_path="$unix_path" 33584 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33585 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33586 new_path="$unix_path" 33587 fi 33588 33589 33590 new_path=`$WHICH "$new_path" 2> /dev/null` 33591 # bat and cmd files are not always considered executable in MSYS causing which 33592 # to not find them 33593 if test "x$new_path" = x \ 33594 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33595 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33596 new_path="$path" 33597 33598 windows_path="$new_path" 33599 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33600 unix_path=`$CYGPATH -u "$windows_path"` 33601 new_path="$unix_path" 33602 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33603 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33604 new_path="$unix_path" 33605 fi 33606 33607 fi 33608 33609 if test "x$new_path" = x; then 33610 # It's still not found. Now this is an unrecoverable error. 33611 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33612 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33613 has_space=`$ECHO "$complete" | $GREP " "` 33614 if test "x$has_space" != x; then 33615 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33616 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33617 fi 33618 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33619 fi 33620 fi 33621 33622 # Now new_path has a complete unix path to the binary 33623 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33624 # Keep paths in /bin as-is, but remove trailing .exe if any 33625 new_path="${new_path/%.exe/}" 33626 # Do not save /bin paths to all_fixpath_prefixes! 33627 else 33628 # Not in mixed or Windows style, start by that. 33629 new_path=`cmd //c echo $new_path` 33630 33631 input_path="$new_path" 33632 # Check if we need to convert this using DOS-style short mode. If the path 33633 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33634 # take no chances and rewrite it. 33635 # Note: m4 eats our [], so we need to use [ and ] instead. 33636 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33637 if test "x$has_forbidden_chars" != x; then 33638 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33639 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33640 fi 33641 33642 # Output is in $new_path 33643 33644 windows_path="$new_path" 33645 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33646 unix_path=`$CYGPATH -u "$windows_path"` 33647 new_path="$unix_path" 33648 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33649 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33650 new_path="$unix_path" 33651 fi 33652 33653 # remove trailing .exe if any 33654 new_path="${new_path/%.exe/}" 33655 33656 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33657 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33658 fi 33659 33660 else 33661 # We're on a posix platform. Hooray! :) 33662 # First separate the path from the arguments. This will split at the first 33663 # space. 33664 complete="$OBJC" 33665 path="${complete%% *}" 33666 tmp="$complete EOL" 33667 arguments="${tmp#* }" 33668 33669 # Cannot rely on the command "which" here since it doesn't always work. 33670 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33671 if test -z "$is_absolute_path"; then 33672 # Path to executable is not absolute. Find it. 33673 IFS_save="$IFS" 33674 IFS=: 33675 for p in $PATH; do 33676 if test -f "$p/$path" && test -x "$p/$path"; then 33677 new_path="$p/$path" 33678 break 33679 fi 33680 done 33681 IFS="$IFS_save" 33682 else 33683 # This is an absolute path, we can use it without further modifications. 33684 new_path="$path" 33685 fi 33686 33687 if test "x$new_path" = x; then 33688 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33689 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33690 has_space=`$ECHO "$complete" | $GREP " "` 33691 if test "x$has_space" != x; then 33692 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33693 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33694 fi 33695 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33696 fi 33697 fi 33698 33699 # Now join together the path and the arguments once again 33700 if test "x$arguments" != xEOL; then 33701 new_complete="$new_path ${arguments% *}" 33702 else 33703 new_complete="$new_path" 33704 fi 33705 33706 if test "x$complete" != "x$new_complete"; then 33707 OBJC="$new_complete" 33708 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJC to \"$new_complete\"" >&5 33709 $as_echo "$as_me: Rewriting OBJC to \"$new_complete\"" >&6;} 33710 fi 33711 33712 33713 33714 # Publish this variable in the help. 33715 33716 33717 if test "x$LIPO" = x; then 33718 # The variable is not set by user, try to locate tool using the code snippet 33719 for ac_prog in lipo 33720 do 33721 # Extract the first word of "$ac_prog", so it can be a program name with args. 33722 set dummy $ac_prog; ac_word=$2 33723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33724 $as_echo_n "checking for $ac_word... " >&6; } 33725 if ${ac_cv_path_LIPO+:} false; then : 33726 $as_echo_n "(cached) " >&6 33727 else 33728 case $LIPO in 33729 [\\/]* | ?:[\\/]*) 33730 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33731 ;; 33732 *) 33733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33734 for as_dir in $PATH 33735 do 33736 IFS=$as_save_IFS 33737 test -z "$as_dir" && as_dir=. 33738 for ac_exec_ext in '' $ac_executable_extensions; do 33739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33740 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33742 break 2 33743 fi 33744 done 33745 done 33746 IFS=$as_save_IFS 33747 33748 ;; 33749 esac 33750 fi 33751 LIPO=$ac_cv_path_LIPO 33752 if test -n "$LIPO"; then 33753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33754 $as_echo "$LIPO" >&6; } 33755 else 33756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33757 $as_echo "no" >&6; } 33758 fi 33759 33760 33761 test -n "$LIPO" && break 33762 done 33763 33764 else 33765 # The variable is set, but is it from the command line or the environment? 33766 33767 # Try to remove the string !LIPO! from our list. 33768 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 33769 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 33770 # If it failed, the variable was not from the command line. Ignore it, 33771 # but warn the user (except for BASH, which is always set by the calling BASH). 33772 if test "xLIPO" != xBASH; then 33773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 33774 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 33775 fi 33776 # Try to locate tool using the code snippet 33777 for ac_prog in lipo 33778 do 33779 # Extract the first word of "$ac_prog", so it can be a program name with args. 33780 set dummy $ac_prog; ac_word=$2 33781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33782 $as_echo_n "checking for $ac_word... " >&6; } 33783 if ${ac_cv_path_LIPO+:} false; then : 33784 $as_echo_n "(cached) " >&6 33785 else 33786 case $LIPO in 33787 [\\/]* | ?:[\\/]*) 33788 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33789 ;; 33790 *) 33791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33792 for as_dir in $PATH 33793 do 33794 IFS=$as_save_IFS 33795 test -z "$as_dir" && as_dir=. 33796 for ac_exec_ext in '' $ac_executable_extensions; do 33797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33798 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33800 break 2 33801 fi 33802 done 33803 done 33804 IFS=$as_save_IFS 33805 33806 ;; 33807 esac 33808 fi 33809 LIPO=$ac_cv_path_LIPO 33810 if test -n "$LIPO"; then 33811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33812 $as_echo "$LIPO" >&6; } 33813 else 33814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33815 $as_echo "no" >&6; } 33816 fi 33817 33818 33819 test -n "$LIPO" && break 33820 done 33821 33822 else 33823 # If it succeeded, then it was overridden by the user. We will use it 33824 # for the tool. 33825 33826 # First remove it from the list of overridden variables, so we can test 33827 # for unknown variables in the end. 33828 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33829 33830 # Check if the provided tool contains a complete path. 33831 tool_specified="$LIPO" 33832 tool_basename="${tool_specified##*/}" 33833 if test "x$tool_basename" = "x$tool_specified"; then 33834 # A command without a complete path is provided, search $PATH. 33835 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 33836 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 33837 # Extract the first word of "$tool_basename", so it can be a program name with args. 33838 set dummy $tool_basename; ac_word=$2 33839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33840 $as_echo_n "checking for $ac_word... " >&6; } 33841 if ${ac_cv_path_LIPO+:} false; then : 33842 $as_echo_n "(cached) " >&6 33843 else 33844 case $LIPO in 33845 [\\/]* | ?:[\\/]*) 33846 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33847 ;; 33848 *) 33849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33850 for as_dir in $PATH 33851 do 33852 IFS=$as_save_IFS 33853 test -z "$as_dir" && as_dir=. 33854 for ac_exec_ext in '' $ac_executable_extensions; do 33855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33856 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33858 break 2 33859 fi 33860 done 33861 done 33862 IFS=$as_save_IFS 33863 33864 ;; 33865 esac 33866 fi 33867 LIPO=$ac_cv_path_LIPO 33868 if test -n "$LIPO"; then 33869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33870 $as_echo "$LIPO" >&6; } 33871 else 33872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33873 $as_echo "no" >&6; } 33874 fi 33875 33876 33877 if test "x$LIPO" = x; then 33878 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33879 fi 33880 else 33881 # Otherwise we believe it is a complete path. Use it as it is. 33882 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 33883 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 33884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 33885 $as_echo_n "checking for LIPO... " >&6; } 33886 if test ! -x "$tool_specified"; then 33887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33888 $as_echo "not found" >&6; } 33889 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 33890 fi 33891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33892 $as_echo "$tool_specified" >&6; } 33893 fi 33894 fi 33895 fi 33896 33897 33898 33899 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33900 33901 # First separate the path from the arguments. This will split at the first 33902 # space. 33903 complete="$LIPO" 33904 path="${complete%% *}" 33905 tmp="$complete EOL" 33906 arguments="${tmp#* }" 33907 33908 # Input might be given as Windows format, start by converting to 33909 # unix format. 33910 new_path=`$CYGPATH -u "$path"` 33911 33912 # Now try to locate executable using which 33913 new_path=`$WHICH "$new_path" 2> /dev/null` 33914 # bat and cmd files are not always considered executable in cygwin causing which 33915 # to not find them 33916 if test "x$new_path" = x \ 33917 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33918 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33919 new_path=`$CYGPATH -u "$path"` 33920 fi 33921 if test "x$new_path" = x; then 33922 # Oops. Which didn't find the executable. 33923 # The splitting of arguments from the executable at a space might have been incorrect, 33924 # since paths with space are more likely in Windows. Give it another try with the whole 33925 # argument. 33926 path="$complete" 33927 arguments="EOL" 33928 new_path=`$CYGPATH -u "$path"` 33929 new_path=`$WHICH "$new_path" 2> /dev/null` 33930 # bat and cmd files are not always considered executable in cygwin causing which 33931 # to not find them 33932 if test "x$new_path" = x \ 33933 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33934 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33935 new_path=`$CYGPATH -u "$path"` 33936 fi 33937 if test "x$new_path" = x; then 33938 # It's still not found. Now this is an unrecoverable error. 33939 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33940 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33941 has_space=`$ECHO "$complete" | $GREP " "` 33942 if test "x$has_space" != x; then 33943 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33944 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33945 fi 33946 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33947 fi 33948 fi 33949 33950 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33951 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33952 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33953 # "foo.exe" is OK but "foo" is an error. 33954 # 33955 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33956 # It is also a way to make sure we got the proper file name for the real test later on. 33957 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33958 if test "x$test_shortpath" = x; then 33959 # Short path failed, file does not exist as specified. 33960 # Try adding .exe or .cmd 33961 if test -f "${new_path}.exe"; then 33962 input_to_shortpath="${new_path}.exe" 33963 elif test -f "${new_path}.cmd"; then 33964 input_to_shortpath="${new_path}.cmd" 33965 else 33966 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 33967 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 33968 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33969 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33970 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33971 fi 33972 else 33973 input_to_shortpath="$new_path" 33974 fi 33975 33976 # Call helper function which possibly converts this using DOS-style short mode. 33977 # If so, the updated path is stored in $new_path. 33978 new_path="$input_to_shortpath" 33979 33980 input_path="$input_to_shortpath" 33981 # Check if we need to convert this using DOS-style short mode. If the path 33982 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33983 # take no chances and rewrite it. 33984 # Note: m4 eats our [], so we need to use [ and ] instead. 33985 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33986 if test "x$has_forbidden_chars" != x; then 33987 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33988 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33989 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33990 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33991 # Going to short mode and back again did indeed matter. Since short mode is 33992 # case insensitive, let's make it lowercase to improve readability. 33993 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33994 # Now convert it back to Unix-stile (cygpath) 33995 input_path=`$CYGPATH -u "$shortmode_path"` 33996 new_path="$input_path" 33997 fi 33998 fi 33999 34000 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34001 if test "x$test_cygdrive_prefix" = x; then 34002 # As a simple fix, exclude /usr/bin since it's not a real path. 34003 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34004 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34005 # a path prefixed by /cygdrive for fixpath to work. 34006 new_path="$CYGWIN_ROOT_PATH$input_path" 34007 fi 34008 fi 34009 34010 # remove trailing .exe if any 34011 new_path="${new_path/%.exe/}" 34012 34013 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34014 34015 # First separate the path from the arguments. This will split at the first 34016 # space. 34017 complete="$LIPO" 34018 path="${complete%% *}" 34019 tmp="$complete EOL" 34020 arguments="${tmp#* }" 34021 34022 # Input might be given as Windows format, start by converting to 34023 # unix format. 34024 new_path="$path" 34025 34026 windows_path="$new_path" 34027 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34028 unix_path=`$CYGPATH -u "$windows_path"` 34029 new_path="$unix_path" 34030 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34031 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34032 new_path="$unix_path" 34033 fi 34034 34035 34036 # Now try to locate executable using which 34037 new_path=`$WHICH "$new_path" 2> /dev/null` 34038 34039 if test "x$new_path" = x; then 34040 # Oops. Which didn't find the executable. 34041 # The splitting of arguments from the executable at a space might have been incorrect, 34042 # since paths with space are more likely in Windows. Give it another try with the whole 34043 # argument. 34044 path="$complete" 34045 arguments="EOL" 34046 new_path="$path" 34047 34048 windows_path="$new_path" 34049 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34050 unix_path=`$CYGPATH -u "$windows_path"` 34051 new_path="$unix_path" 34052 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34053 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34054 new_path="$unix_path" 34055 fi 34056 34057 34058 new_path=`$WHICH "$new_path" 2> /dev/null` 34059 # bat and cmd files are not always considered executable in MSYS causing which 34060 # to not find them 34061 if test "x$new_path" = x \ 34062 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34063 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34064 new_path="$path" 34065 34066 windows_path="$new_path" 34067 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34068 unix_path=`$CYGPATH -u "$windows_path"` 34069 new_path="$unix_path" 34070 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34071 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34072 new_path="$unix_path" 34073 fi 34074 34075 fi 34076 34077 if test "x$new_path" = x; then 34078 # It's still not found. Now this is an unrecoverable error. 34079 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 34080 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 34081 has_space=`$ECHO "$complete" | $GREP " "` 34082 if test "x$has_space" != x; then 34083 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34084 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34085 fi 34086 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 34087 fi 34088 fi 34089 34090 # Now new_path has a complete unix path to the binary 34091 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34092 # Keep paths in /bin as-is, but remove trailing .exe if any 34093 new_path="${new_path/%.exe/}" 34094 # Do not save /bin paths to all_fixpath_prefixes! 34095 else 34096 # Not in mixed or Windows style, start by that. 34097 new_path=`cmd //c echo $new_path` 34098 34099 input_path="$new_path" 34100 # Check if we need to convert this using DOS-style short mode. If the path 34101 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34102 # take no chances and rewrite it. 34103 # Note: m4 eats our [], so we need to use [ and ] instead. 34104 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34105 if test "x$has_forbidden_chars" != x; then 34106 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34107 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34108 fi 34109 34110 # Output is in $new_path 34111 34112 windows_path="$new_path" 34113 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34114 unix_path=`$CYGPATH -u "$windows_path"` 34115 new_path="$unix_path" 34116 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34117 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34118 new_path="$unix_path" 34119 fi 34120 34121 # remove trailing .exe if any 34122 new_path="${new_path/%.exe/}" 34123 34124 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34125 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34126 fi 34127 34128 else 34129 # We're on a posix platform. Hooray! :) 34130 # First separate the path from the arguments. This will split at the first 34131 # space. 34132 complete="$LIPO" 34133 path="${complete%% *}" 34134 tmp="$complete EOL" 34135 arguments="${tmp#* }" 34136 34137 # Cannot rely on the command "which" here since it doesn't always work. 34138 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34139 if test -z "$is_absolute_path"; then 34140 # Path to executable is not absolute. Find it. 34141 IFS_save="$IFS" 34142 IFS=: 34143 for p in $PATH; do 34144 if test -f "$p/$path" && test -x "$p/$path"; then 34145 new_path="$p/$path" 34146 break 34147 fi 34148 done 34149 IFS="$IFS_save" 34150 else 34151 # This is an absolute path, we can use it without further modifications. 34152 new_path="$path" 34153 fi 34154 34155 if test "x$new_path" = x; then 34156 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 34157 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 34158 has_space=`$ECHO "$complete" | $GREP " "` 34159 if test "x$has_space" != x; then 34160 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34161 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34162 fi 34163 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 34164 fi 34165 fi 34166 34167 # Now join together the path and the arguments once again 34168 if test "x$arguments" != xEOL; then 34169 new_complete="$new_path ${arguments% *}" 34170 else 34171 new_complete="$new_path" 34172 fi 34173 34174 if test "x$complete" != "x$new_complete"; then 34175 LIPO="$new_complete" 34176 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 34177 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 34178 fi 34179 34180 else 34181 OBJC= 34182 fi 34183 34184 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 34185 # Extract the first word of "mt", so it can be a program name with args. 34186 set dummy mt; ac_word=$2 34187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34188 $as_echo_n "checking for $ac_word... " >&6; } 34189 if ${ac_cv_prog_MT+:} false; then : 34190 $as_echo_n "(cached) " >&6 34191 else 34192 if test -n "$MT"; then 34193 ac_cv_prog_MT="$MT" # Let the user override the test. 34194 else 34195 ac_prog_rejected=no 34196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34197 for as_dir in $PATH 34198 do 34199 IFS=$as_save_IFS 34200 test -z "$as_dir" && as_dir=. 34201 for ac_exec_ext in '' $ac_executable_extensions; do 34202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34203 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 34204 ac_prog_rejected=yes 34205 continue 34206 fi 34207 ac_cv_prog_MT="mt" 34208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34209 break 2 34210 fi 34211 done 34212 done 34213 IFS=$as_save_IFS 34214 34215 if test $ac_prog_rejected = yes; then 34216 # We found a bogon in the path, so make sure we never use it. 34217 set dummy $ac_cv_prog_MT 34218 shift 34219 if test $# != 0; then 34220 # We chose a different compiler from the bogus one. 34221 # However, it has the same basename, so the bogon will be chosen 34222 # first if we set MT to just the basename; use the full file name. 34223 shift 34224 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 34225 fi 34226 fi 34227 fi 34228 fi 34229 MT=$ac_cv_prog_MT 34230 if test -n "$MT"; then 34231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 34232 $as_echo "$MT" >&6; } 34233 else 34234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34235 $as_echo "no" >&6; } 34236 fi 34237 34238 34239 34240 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34241 34242 # First separate the path from the arguments. This will split at the first 34243 # space. 34244 complete="$MT" 34245 path="${complete%% *}" 34246 tmp="$complete EOL" 34247 arguments="${tmp#* }" 34248 34249 # Input might be given as Windows format, start by converting to 34250 # unix format. 34251 new_path=`$CYGPATH -u "$path"` 34252 34253 # Now try to locate executable using which 34254 new_path=`$WHICH "$new_path" 2> /dev/null` 34255 # bat and cmd files are not always considered executable in cygwin causing which 34256 # to not find them 34257 if test "x$new_path" = x \ 34258 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34259 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34260 new_path=`$CYGPATH -u "$path"` 34261 fi 34262 if test "x$new_path" = x; then 34263 # Oops. Which didn't find the executable. 34264 # The splitting of arguments from the executable at a space might have been incorrect, 34265 # since paths with space are more likely in Windows. Give it another try with the whole 34266 # argument. 34267 path="$complete" 34268 arguments="EOL" 34269 new_path=`$CYGPATH -u "$path"` 34270 new_path=`$WHICH "$new_path" 2> /dev/null` 34271 # bat and cmd files are not always considered executable in cygwin causing which 34272 # to not find them 34273 if test "x$new_path" = x \ 34274 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34275 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34276 new_path=`$CYGPATH -u "$path"` 34277 fi 34278 if test "x$new_path" = x; then 34279 # It's still not found. Now this is an unrecoverable error. 34280 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34281 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34282 has_space=`$ECHO "$complete" | $GREP " "` 34283 if test "x$has_space" != x; then 34284 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34285 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34286 fi 34287 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34288 fi 34289 fi 34290 34291 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34292 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34293 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34294 # "foo.exe" is OK but "foo" is an error. 34295 # 34296 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34297 # It is also a way to make sure we got the proper file name for the real test later on. 34298 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34299 if test "x$test_shortpath" = x; then 34300 # Short path failed, file does not exist as specified. 34301 # Try adding .exe or .cmd 34302 if test -f "${new_path}.exe"; then 34303 input_to_shortpath="${new_path}.exe" 34304 elif test -f "${new_path}.cmd"; then 34305 input_to_shortpath="${new_path}.cmd" 34306 else 34307 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 34308 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 34309 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34310 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34311 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34312 fi 34313 else 34314 input_to_shortpath="$new_path" 34315 fi 34316 34317 # Call helper function which possibly converts this using DOS-style short mode. 34318 # If so, the updated path is stored in $new_path. 34319 new_path="$input_to_shortpath" 34320 34321 input_path="$input_to_shortpath" 34322 # Check if we need to convert this using DOS-style short mode. If the path 34323 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34324 # take no chances and rewrite it. 34325 # Note: m4 eats our [], so we need to use [ and ] instead. 34326 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34327 if test "x$has_forbidden_chars" != x; then 34328 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34329 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34330 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34331 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34332 # Going to short mode and back again did indeed matter. Since short mode is 34333 # case insensitive, let's make it lowercase to improve readability. 34334 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34335 # Now convert it back to Unix-stile (cygpath) 34336 input_path=`$CYGPATH -u "$shortmode_path"` 34337 new_path="$input_path" 34338 fi 34339 fi 34340 34341 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34342 if test "x$test_cygdrive_prefix" = x; then 34343 # As a simple fix, exclude /usr/bin since it's not a real path. 34344 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34345 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34346 # a path prefixed by /cygdrive for fixpath to work. 34347 new_path="$CYGWIN_ROOT_PATH$input_path" 34348 fi 34349 fi 34350 34351 # remove trailing .exe if any 34352 new_path="${new_path/%.exe/}" 34353 34354 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34355 34356 # First separate the path from the arguments. This will split at the first 34357 # space. 34358 complete="$MT" 34359 path="${complete%% *}" 34360 tmp="$complete EOL" 34361 arguments="${tmp#* }" 34362 34363 # Input might be given as Windows format, start by converting to 34364 # unix format. 34365 new_path="$path" 34366 34367 windows_path="$new_path" 34368 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34369 unix_path=`$CYGPATH -u "$windows_path"` 34370 new_path="$unix_path" 34371 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34372 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34373 new_path="$unix_path" 34374 fi 34375 34376 34377 # Now try to locate executable using which 34378 new_path=`$WHICH "$new_path" 2> /dev/null` 34379 34380 if test "x$new_path" = x; then 34381 # Oops. Which didn't find the executable. 34382 # The splitting of arguments from the executable at a space might have been incorrect, 34383 # since paths with space are more likely in Windows. Give it another try with the whole 34384 # argument. 34385 path="$complete" 34386 arguments="EOL" 34387 new_path="$path" 34388 34389 windows_path="$new_path" 34390 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34391 unix_path=`$CYGPATH -u "$windows_path"` 34392 new_path="$unix_path" 34393 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34394 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34395 new_path="$unix_path" 34396 fi 34397 34398 34399 new_path=`$WHICH "$new_path" 2> /dev/null` 34400 # bat and cmd files are not always considered executable in MSYS causing which 34401 # to not find them 34402 if test "x$new_path" = x \ 34403 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34404 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34405 new_path="$path" 34406 34407 windows_path="$new_path" 34408 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34409 unix_path=`$CYGPATH -u "$windows_path"` 34410 new_path="$unix_path" 34411 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34412 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34413 new_path="$unix_path" 34414 fi 34415 34416 fi 34417 34418 if test "x$new_path" = x; then 34419 # It's still not found. Now this is an unrecoverable error. 34420 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34421 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34422 has_space=`$ECHO "$complete" | $GREP " "` 34423 if test "x$has_space" != x; then 34424 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34425 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34426 fi 34427 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34428 fi 34429 fi 34430 34431 # Now new_path has a complete unix path to the binary 34432 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34433 # Keep paths in /bin as-is, but remove trailing .exe if any 34434 new_path="${new_path/%.exe/}" 34435 # Do not save /bin paths to all_fixpath_prefixes! 34436 else 34437 # Not in mixed or Windows style, start by that. 34438 new_path=`cmd //c echo $new_path` 34439 34440 input_path="$new_path" 34441 # Check if we need to convert this using DOS-style short mode. If the path 34442 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34443 # take no chances and rewrite it. 34444 # Note: m4 eats our [], so we need to use [ and ] instead. 34445 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34446 if test "x$has_forbidden_chars" != x; then 34447 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34448 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34449 fi 34450 34451 # Output is in $new_path 34452 34453 windows_path="$new_path" 34454 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34455 unix_path=`$CYGPATH -u "$windows_path"` 34456 new_path="$unix_path" 34457 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34458 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34459 new_path="$unix_path" 34460 fi 34461 34462 # remove trailing .exe if any 34463 new_path="${new_path/%.exe/}" 34464 34465 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34466 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34467 fi 34468 34469 else 34470 # We're on a posix platform. Hooray! :) 34471 # First separate the path from the arguments. This will split at the first 34472 # space. 34473 complete="$MT" 34474 path="${complete%% *}" 34475 tmp="$complete EOL" 34476 arguments="${tmp#* }" 34477 34478 # Cannot rely on the command "which" here since it doesn't always work. 34479 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34480 if test -z "$is_absolute_path"; then 34481 # Path to executable is not absolute. Find it. 34482 IFS_save="$IFS" 34483 IFS=: 34484 for p in $PATH; do 34485 if test -f "$p/$path" && test -x "$p/$path"; then 34486 new_path="$p/$path" 34487 break 34488 fi 34489 done 34490 IFS="$IFS_save" 34491 else 34492 # This is an absolute path, we can use it without further modifications. 34493 new_path="$path" 34494 fi 34495 34496 if test "x$new_path" = x; then 34497 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34498 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34499 has_space=`$ECHO "$complete" | $GREP " "` 34500 if test "x$has_space" != x; then 34501 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34502 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34503 fi 34504 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34505 fi 34506 fi 34507 34508 # Now join together the path and the arguments once again 34509 if test "x$arguments" != xEOL; then 34510 new_complete="$new_path ${arguments% *}" 34511 else 34512 new_complete="$new_path" 34513 fi 34514 34515 if test "x$complete" != "x$new_complete"; then 34516 MT="$new_complete" 34517 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 34518 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 34519 fi 34520 34521 # Setup the resource compiler (RC) 34522 # Extract the first word of "rc", so it can be a program name with args. 34523 set dummy rc; ac_word=$2 34524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34525 $as_echo_n "checking for $ac_word... " >&6; } 34526 if ${ac_cv_prog_RC+:} false; then : 34527 $as_echo_n "(cached) " >&6 34528 else 34529 if test -n "$RC"; then 34530 ac_cv_prog_RC="$RC" # Let the user override the test. 34531 else 34532 ac_prog_rejected=no 34533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34534 for as_dir in $PATH 34535 do 34536 IFS=$as_save_IFS 34537 test -z "$as_dir" && as_dir=. 34538 for ac_exec_ext in '' $ac_executable_extensions; do 34539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34540 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 34541 ac_prog_rejected=yes 34542 continue 34543 fi 34544 ac_cv_prog_RC="rc" 34545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34546 break 2 34547 fi 34548 done 34549 done 34550 IFS=$as_save_IFS 34551 34552 if test $ac_prog_rejected = yes; then 34553 # We found a bogon in the path, so make sure we never use it. 34554 set dummy $ac_cv_prog_RC 34555 shift 34556 if test $# != 0; then 34557 # We chose a different compiler from the bogus one. 34558 # However, it has the same basename, so the bogon will be chosen 34559 # first if we set RC to just the basename; use the full file name. 34560 shift 34561 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 34562 fi 34563 fi 34564 fi 34565 fi 34566 RC=$ac_cv_prog_RC 34567 if test -n "$RC"; then 34568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 34569 $as_echo "$RC" >&6; } 34570 else 34571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34572 $as_echo "no" >&6; } 34573 fi 34574 34575 34576 34577 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34578 34579 # First separate the path from the arguments. This will split at the first 34580 # space. 34581 complete="$RC" 34582 path="${complete%% *}" 34583 tmp="$complete EOL" 34584 arguments="${tmp#* }" 34585 34586 # Input might be given as Windows format, start by converting to 34587 # unix format. 34588 new_path=`$CYGPATH -u "$path"` 34589 34590 # Now try to locate executable using which 34591 new_path=`$WHICH "$new_path" 2> /dev/null` 34592 # bat and cmd files are not always considered executable in cygwin causing which 34593 # to not find them 34594 if test "x$new_path" = x \ 34595 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34596 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34597 new_path=`$CYGPATH -u "$path"` 34598 fi 34599 if test "x$new_path" = x; then 34600 # Oops. Which didn't find the executable. 34601 # The splitting of arguments from the executable at a space might have been incorrect, 34602 # since paths with space are more likely in Windows. Give it another try with the whole 34603 # argument. 34604 path="$complete" 34605 arguments="EOL" 34606 new_path=`$CYGPATH -u "$path"` 34607 new_path=`$WHICH "$new_path" 2> /dev/null` 34608 # bat and cmd files are not always considered executable in cygwin causing which 34609 # to not find them 34610 if test "x$new_path" = x \ 34611 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34612 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34613 new_path=`$CYGPATH -u "$path"` 34614 fi 34615 if test "x$new_path" = x; then 34616 # It's still not found. Now this is an unrecoverable error. 34617 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34618 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34619 has_space=`$ECHO "$complete" | $GREP " "` 34620 if test "x$has_space" != x; then 34621 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34622 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34623 fi 34624 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34625 fi 34626 fi 34627 34628 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34629 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34630 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34631 # "foo.exe" is OK but "foo" is an error. 34632 # 34633 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34634 # It is also a way to make sure we got the proper file name for the real test later on. 34635 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34636 if test "x$test_shortpath" = x; then 34637 # Short path failed, file does not exist as specified. 34638 # Try adding .exe or .cmd 34639 if test -f "${new_path}.exe"; then 34640 input_to_shortpath="${new_path}.exe" 34641 elif test -f "${new_path}.cmd"; then 34642 input_to_shortpath="${new_path}.cmd" 34643 else 34644 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 34645 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 34646 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34647 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34648 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34649 fi 34650 else 34651 input_to_shortpath="$new_path" 34652 fi 34653 34654 # Call helper function which possibly converts this using DOS-style short mode. 34655 # If so, the updated path is stored in $new_path. 34656 new_path="$input_to_shortpath" 34657 34658 input_path="$input_to_shortpath" 34659 # Check if we need to convert this using DOS-style short mode. If the path 34660 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34661 # take no chances and rewrite it. 34662 # Note: m4 eats our [], so we need to use [ and ] instead. 34663 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34664 if test "x$has_forbidden_chars" != x; then 34665 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34666 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34667 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34668 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34669 # Going to short mode and back again did indeed matter. Since short mode is 34670 # case insensitive, let's make it lowercase to improve readability. 34671 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34672 # Now convert it back to Unix-stile (cygpath) 34673 input_path=`$CYGPATH -u "$shortmode_path"` 34674 new_path="$input_path" 34675 fi 34676 fi 34677 34678 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34679 if test "x$test_cygdrive_prefix" = x; then 34680 # As a simple fix, exclude /usr/bin since it's not a real path. 34681 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34682 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34683 # a path prefixed by /cygdrive for fixpath to work. 34684 new_path="$CYGWIN_ROOT_PATH$input_path" 34685 fi 34686 fi 34687 34688 # remove trailing .exe if any 34689 new_path="${new_path/%.exe/}" 34690 34691 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34692 34693 # First separate the path from the arguments. This will split at the first 34694 # space. 34695 complete="$RC" 34696 path="${complete%% *}" 34697 tmp="$complete EOL" 34698 arguments="${tmp#* }" 34699 34700 # Input might be given as Windows format, start by converting to 34701 # unix format. 34702 new_path="$path" 34703 34704 windows_path="$new_path" 34705 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34706 unix_path=`$CYGPATH -u "$windows_path"` 34707 new_path="$unix_path" 34708 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34709 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34710 new_path="$unix_path" 34711 fi 34712 34713 34714 # Now try to locate executable using which 34715 new_path=`$WHICH "$new_path" 2> /dev/null` 34716 34717 if test "x$new_path" = x; then 34718 # Oops. Which didn't find the executable. 34719 # The splitting of arguments from the executable at a space might have been incorrect, 34720 # since paths with space are more likely in Windows. Give it another try with the whole 34721 # argument. 34722 path="$complete" 34723 arguments="EOL" 34724 new_path="$path" 34725 34726 windows_path="$new_path" 34727 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34728 unix_path=`$CYGPATH -u "$windows_path"` 34729 new_path="$unix_path" 34730 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34731 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34732 new_path="$unix_path" 34733 fi 34734 34735 34736 new_path=`$WHICH "$new_path" 2> /dev/null` 34737 # bat and cmd files are not always considered executable in MSYS causing which 34738 # to not find them 34739 if test "x$new_path" = x \ 34740 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34741 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34742 new_path="$path" 34743 34744 windows_path="$new_path" 34745 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34746 unix_path=`$CYGPATH -u "$windows_path"` 34747 new_path="$unix_path" 34748 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34749 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34750 new_path="$unix_path" 34751 fi 34752 34753 fi 34754 34755 if test "x$new_path" = x; then 34756 # It's still not found. Now this is an unrecoverable error. 34757 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34758 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34759 has_space=`$ECHO "$complete" | $GREP " "` 34760 if test "x$has_space" != x; then 34761 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34762 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34763 fi 34764 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34765 fi 34766 fi 34767 34768 # Now new_path has a complete unix path to the binary 34769 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34770 # Keep paths in /bin as-is, but remove trailing .exe if any 34771 new_path="${new_path/%.exe/}" 34772 # Do not save /bin paths to all_fixpath_prefixes! 34773 else 34774 # Not in mixed or Windows style, start by that. 34775 new_path=`cmd //c echo $new_path` 34776 34777 input_path="$new_path" 34778 # Check if we need to convert this using DOS-style short mode. If the path 34779 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34780 # take no chances and rewrite it. 34781 # Note: m4 eats our [], so we need to use [ and ] instead. 34782 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34783 if test "x$has_forbidden_chars" != x; then 34784 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34785 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34786 fi 34787 34788 # Output is in $new_path 34789 34790 windows_path="$new_path" 34791 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34792 unix_path=`$CYGPATH -u "$windows_path"` 34793 new_path="$unix_path" 34794 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34795 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34796 new_path="$unix_path" 34797 fi 34798 34799 # remove trailing .exe if any 34800 new_path="${new_path/%.exe/}" 34801 34802 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34803 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34804 fi 34805 34806 else 34807 # We're on a posix platform. Hooray! :) 34808 # First separate the path from the arguments. This will split at the first 34809 # space. 34810 complete="$RC" 34811 path="${complete%% *}" 34812 tmp="$complete EOL" 34813 arguments="${tmp#* }" 34814 34815 # Cannot rely on the command "which" here since it doesn't always work. 34816 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34817 if test -z "$is_absolute_path"; then 34818 # Path to executable is not absolute. Find it. 34819 IFS_save="$IFS" 34820 IFS=: 34821 for p in $PATH; do 34822 if test -f "$p/$path" && test -x "$p/$path"; then 34823 new_path="$p/$path" 34824 break 34825 fi 34826 done 34827 IFS="$IFS_save" 34828 else 34829 # This is an absolute path, we can use it without further modifications. 34830 new_path="$path" 34831 fi 34832 34833 if test "x$new_path" = x; then 34834 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34835 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34836 has_space=`$ECHO "$complete" | $GREP " "` 34837 if test "x$has_space" != x; then 34838 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34839 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34840 fi 34841 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34842 fi 34843 fi 34844 34845 # Now join together the path and the arguments once again 34846 if test "x$arguments" != xEOL; then 34847 new_complete="$new_path ${arguments% *}" 34848 else 34849 new_complete="$new_path" 34850 fi 34851 34852 if test "x$complete" != "x$new_complete"; then 34853 RC="$new_complete" 34854 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 34855 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 34856 fi 34857 34858 # Extract the first word of "dumpbin", so it can be a program name with args. 34859 set dummy dumpbin; ac_word=$2 34860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34861 $as_echo_n "checking for $ac_word... " >&6; } 34862 if ${ac_cv_prog_DUMPBIN+:} false; then : 34863 $as_echo_n "(cached) " >&6 34864 else 34865 if test -n "$DUMPBIN"; then 34866 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 34867 else 34868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34869 for as_dir in $PATH 34870 do 34871 IFS=$as_save_IFS 34872 test -z "$as_dir" && as_dir=. 34873 for ac_exec_ext in '' $ac_executable_extensions; do 34874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34875 ac_cv_prog_DUMPBIN="dumpbin" 34876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34877 break 2 34878 fi 34879 done 34880 done 34881 IFS=$as_save_IFS 34882 34883 fi 34884 fi 34885 DUMPBIN=$ac_cv_prog_DUMPBIN 34886 if test -n "$DUMPBIN"; then 34887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 34888 $as_echo "$DUMPBIN" >&6; } 34889 else 34890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34891 $as_echo "no" >&6; } 34892 fi 34893 34894 34895 34896 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34897 34898 # First separate the path from the arguments. This will split at the first 34899 # space. 34900 complete="$DUMPBIN" 34901 path="${complete%% *}" 34902 tmp="$complete EOL" 34903 arguments="${tmp#* }" 34904 34905 # Input might be given as Windows format, start by converting to 34906 # unix format. 34907 new_path=`$CYGPATH -u "$path"` 34908 34909 # Now try to locate executable using which 34910 new_path=`$WHICH "$new_path" 2> /dev/null` 34911 # bat and cmd files are not always considered executable in cygwin causing which 34912 # to not find them 34913 if test "x$new_path" = x \ 34914 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34915 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34916 new_path=`$CYGPATH -u "$path"` 34917 fi 34918 if test "x$new_path" = x; then 34919 # Oops. Which didn't find the executable. 34920 # The splitting of arguments from the executable at a space might have been incorrect, 34921 # since paths with space are more likely in Windows. Give it another try with the whole 34922 # argument. 34923 path="$complete" 34924 arguments="EOL" 34925 new_path=`$CYGPATH -u "$path"` 34926 new_path=`$WHICH "$new_path" 2> /dev/null` 34927 # bat and cmd files are not always considered executable in cygwin causing which 34928 # to not find them 34929 if test "x$new_path" = x \ 34930 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34931 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34932 new_path=`$CYGPATH -u "$path"` 34933 fi 34934 if test "x$new_path" = x; then 34935 # It's still not found. Now this is an unrecoverable error. 34936 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34937 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34938 has_space=`$ECHO "$complete" | $GREP " "` 34939 if test "x$has_space" != x; then 34940 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34941 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34942 fi 34943 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34944 fi 34945 fi 34946 34947 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34948 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34949 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34950 # "foo.exe" is OK but "foo" is an error. 34951 # 34952 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34953 # It is also a way to make sure we got the proper file name for the real test later on. 34954 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34955 if test "x$test_shortpath" = x; then 34956 # Short path failed, file does not exist as specified. 34957 # Try adding .exe or .cmd 34958 if test -f "${new_path}.exe"; then 34959 input_to_shortpath="${new_path}.exe" 34960 elif test -f "${new_path}.cmd"; then 34961 input_to_shortpath="${new_path}.cmd" 34962 else 34963 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 34964 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 34965 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34966 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34967 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34968 fi 34969 else 34970 input_to_shortpath="$new_path" 34971 fi 34972 34973 # Call helper function which possibly converts this using DOS-style short mode. 34974 # If so, the updated path is stored in $new_path. 34975 new_path="$input_to_shortpath" 34976 34977 input_path="$input_to_shortpath" 34978 # Check if we need to convert this using DOS-style short mode. If the path 34979 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34980 # take no chances and rewrite it. 34981 # Note: m4 eats our [], so we need to use [ and ] instead. 34982 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34983 if test "x$has_forbidden_chars" != x; then 34984 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34985 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34986 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34987 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34988 # Going to short mode and back again did indeed matter. Since short mode is 34989 # case insensitive, let's make it lowercase to improve readability. 34990 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34991 # Now convert it back to Unix-stile (cygpath) 34992 input_path=`$CYGPATH -u "$shortmode_path"` 34993 new_path="$input_path" 34994 fi 34995 fi 34996 34997 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34998 if test "x$test_cygdrive_prefix" = x; then 34999 # As a simple fix, exclude /usr/bin since it's not a real path. 35000 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35001 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35002 # a path prefixed by /cygdrive for fixpath to work. 35003 new_path="$CYGWIN_ROOT_PATH$input_path" 35004 fi 35005 fi 35006 35007 # remove trailing .exe if any 35008 new_path="${new_path/%.exe/}" 35009 35010 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35011 35012 # First separate the path from the arguments. This will split at the first 35013 # space. 35014 complete="$DUMPBIN" 35015 path="${complete%% *}" 35016 tmp="$complete EOL" 35017 arguments="${tmp#* }" 35018 35019 # Input might be given as Windows format, start by converting to 35020 # unix format. 35021 new_path="$path" 35022 35023 windows_path="$new_path" 35024 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35025 unix_path=`$CYGPATH -u "$windows_path"` 35026 new_path="$unix_path" 35027 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35028 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35029 new_path="$unix_path" 35030 fi 35031 35032 35033 # Now try to locate executable using which 35034 new_path=`$WHICH "$new_path" 2> /dev/null` 35035 35036 if test "x$new_path" = x; then 35037 # Oops. Which didn't find the executable. 35038 # The splitting of arguments from the executable at a space might have been incorrect, 35039 # since paths with space are more likely in Windows. Give it another try with the whole 35040 # argument. 35041 path="$complete" 35042 arguments="EOL" 35043 new_path="$path" 35044 35045 windows_path="$new_path" 35046 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35047 unix_path=`$CYGPATH -u "$windows_path"` 35048 new_path="$unix_path" 35049 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35050 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35051 new_path="$unix_path" 35052 fi 35053 35054 35055 new_path=`$WHICH "$new_path" 2> /dev/null` 35056 # bat and cmd files are not always considered executable in MSYS causing which 35057 # to not find them 35058 if test "x$new_path" = x \ 35059 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35060 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35061 new_path="$path" 35062 35063 windows_path="$new_path" 35064 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35065 unix_path=`$CYGPATH -u "$windows_path"` 35066 new_path="$unix_path" 35067 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35068 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35069 new_path="$unix_path" 35070 fi 35071 35072 fi 35073 35074 if test "x$new_path" = x; then 35075 # It's still not found. Now this is an unrecoverable error. 35076 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 35077 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 35078 has_space=`$ECHO "$complete" | $GREP " "` 35079 if test "x$has_space" != x; then 35080 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35081 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35082 fi 35083 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35084 fi 35085 fi 35086 35087 # Now new_path has a complete unix path to the binary 35088 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35089 # Keep paths in /bin as-is, but remove trailing .exe if any 35090 new_path="${new_path/%.exe/}" 35091 # Do not save /bin paths to all_fixpath_prefixes! 35092 else 35093 # Not in mixed or Windows style, start by that. 35094 new_path=`cmd //c echo $new_path` 35095 35096 input_path="$new_path" 35097 # Check if we need to convert this using DOS-style short mode. If the path 35098 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35099 # take no chances and rewrite it. 35100 # Note: m4 eats our [], so we need to use [ and ] instead. 35101 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35102 if test "x$has_forbidden_chars" != x; then 35103 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35104 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35105 fi 35106 35107 # Output is in $new_path 35108 35109 windows_path="$new_path" 35110 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35111 unix_path=`$CYGPATH -u "$windows_path"` 35112 new_path="$unix_path" 35113 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35114 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35115 new_path="$unix_path" 35116 fi 35117 35118 # remove trailing .exe if any 35119 new_path="${new_path/%.exe/}" 35120 35121 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35122 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35123 fi 35124 35125 else 35126 # We're on a posix platform. Hooray! :) 35127 # First separate the path from the arguments. This will split at the first 35128 # space. 35129 complete="$DUMPBIN" 35130 path="${complete%% *}" 35131 tmp="$complete EOL" 35132 arguments="${tmp#* }" 35133 35134 # Cannot rely on the command "which" here since it doesn't always work. 35135 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35136 if test -z "$is_absolute_path"; then 35137 # Path to executable is not absolute. Find it. 35138 IFS_save="$IFS" 35139 IFS=: 35140 for p in $PATH; do 35141 if test -f "$p/$path" && test -x "$p/$path"; then 35142 new_path="$p/$path" 35143 break 35144 fi 35145 done 35146 IFS="$IFS_save" 35147 else 35148 # This is an absolute path, we can use it without further modifications. 35149 new_path="$path" 35150 fi 35151 35152 if test "x$new_path" = x; then 35153 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 35154 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 35155 has_space=`$ECHO "$complete" | $GREP " "` 35156 if test "x$has_space" != x; then 35157 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35158 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35159 fi 35160 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35161 fi 35162 fi 35163 35164 # Now join together the path and the arguments once again 35165 if test "x$arguments" != xEOL; then 35166 new_complete="$new_path ${arguments% *}" 35167 else 35168 new_complete="$new_path" 35169 fi 35170 35171 if test "x$complete" != "x$new_complete"; then 35172 DUMPBIN="$new_complete" 35173 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 35174 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 35175 fi 35176 35177 # We need to check for 'msbuild.exe' because at the place where we expect to 35178 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 35179 # won't find the 'msbuild.exe' executable in that case (and the 35180 # 'ac_executable_extensions' is unusable due to performance reasons). 35181 # Notice that we intentionally don't fix up the path to MSBUILD because we 35182 # will call it in a DOS shell during freetype detection on Windows (see 35183 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 35184 # Extract the first word of "msbuild.exe", so it can be a program name with args. 35185 set dummy msbuild.exe; ac_word=$2 35186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35187 $as_echo_n "checking for $ac_word... " >&6; } 35188 if ${ac_cv_prog_MSBUILD+:} false; then : 35189 $as_echo_n "(cached) " >&6 35190 else 35191 if test -n "$MSBUILD"; then 35192 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 35193 else 35194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35195 for as_dir in $PATH 35196 do 35197 IFS=$as_save_IFS 35198 test -z "$as_dir" && as_dir=. 35199 for ac_exec_ext in '' $ac_executable_extensions; do 35200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35201 ac_cv_prog_MSBUILD="msbuild.exe" 35202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35203 break 2 35204 fi 35205 done 35206 done 35207 IFS=$as_save_IFS 35208 35209 fi 35210 fi 35211 MSBUILD=$ac_cv_prog_MSBUILD 35212 if test -n "$MSBUILD"; then 35213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 35214 $as_echo "$MSBUILD" >&6; } 35215 else 35216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35217 $as_echo "no" >&6; } 35218 fi 35219 35220 35221 fi 35222 35223 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 35224 35225 35226 # Publish this variable in the help. 35227 35228 35229 if test "x$STRIP" = x; then 35230 # The variable is not set by user, try to locate tool using the code snippet 35231 for ac_prog in strip 35232 do 35233 # Extract the first word of "$ac_prog", so it can be a program name with args. 35234 set dummy $ac_prog; ac_word=$2 35235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35236 $as_echo_n "checking for $ac_word... " >&6; } 35237 if ${ac_cv_path_STRIP+:} false; then : 35238 $as_echo_n "(cached) " >&6 35239 else 35240 case $STRIP in 35241 [\\/]* | ?:[\\/]*) 35242 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35243 ;; 35244 *) 35245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35246 for as_dir in $PATH 35247 do 35248 IFS=$as_save_IFS 35249 test -z "$as_dir" && as_dir=. 35250 for ac_exec_ext in '' $ac_executable_extensions; do 35251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35252 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35254 break 2 35255 fi 35256 done 35257 done 35258 IFS=$as_save_IFS 35259 35260 ;; 35261 esac 35262 fi 35263 STRIP=$ac_cv_path_STRIP 35264 if test -n "$STRIP"; then 35265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35266 $as_echo "$STRIP" >&6; } 35267 else 35268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35269 $as_echo "no" >&6; } 35270 fi 35271 35272 35273 test -n "$STRIP" && break 35274 done 35275 35276 else 35277 # The variable is set, but is it from the command line or the environment? 35278 35279 # Try to remove the string !STRIP! from our list. 35280 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 35281 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35282 # If it failed, the variable was not from the command line. Ignore it, 35283 # but warn the user (except for BASH, which is always set by the calling BASH). 35284 if test "xSTRIP" != xBASH; then 35285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 35286 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 35287 fi 35288 # Try to locate tool using the code snippet 35289 for ac_prog in strip 35290 do 35291 # Extract the first word of "$ac_prog", so it can be a program name with args. 35292 set dummy $ac_prog; ac_word=$2 35293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35294 $as_echo_n "checking for $ac_word... " >&6; } 35295 if ${ac_cv_path_STRIP+:} false; then : 35296 $as_echo_n "(cached) " >&6 35297 else 35298 case $STRIP in 35299 [\\/]* | ?:[\\/]*) 35300 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35301 ;; 35302 *) 35303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35304 for as_dir in $PATH 35305 do 35306 IFS=$as_save_IFS 35307 test -z "$as_dir" && as_dir=. 35308 for ac_exec_ext in '' $ac_executable_extensions; do 35309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35310 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35312 break 2 35313 fi 35314 done 35315 done 35316 IFS=$as_save_IFS 35317 35318 ;; 35319 esac 35320 fi 35321 STRIP=$ac_cv_path_STRIP 35322 if test -n "$STRIP"; then 35323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35324 $as_echo "$STRIP" >&6; } 35325 else 35326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35327 $as_echo "no" >&6; } 35328 fi 35329 35330 35331 test -n "$STRIP" && break 35332 done 35333 35334 else 35335 # If it succeeded, then it was overridden by the user. We will use it 35336 # for the tool. 35337 35338 # First remove it from the list of overridden variables, so we can test 35339 # for unknown variables in the end. 35340 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35341 35342 # Check if the provided tool contains a complete path. 35343 tool_specified="$STRIP" 35344 tool_basename="${tool_specified##*/}" 35345 if test "x$tool_basename" = "x$tool_specified"; then 35346 # A command without a complete path is provided, search $PATH. 35347 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 35348 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 35349 # Extract the first word of "$tool_basename", so it can be a program name with args. 35350 set dummy $tool_basename; ac_word=$2 35351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35352 $as_echo_n "checking for $ac_word... " >&6; } 35353 if ${ac_cv_path_STRIP+:} false; then : 35354 $as_echo_n "(cached) " >&6 35355 else 35356 case $STRIP in 35357 [\\/]* | ?:[\\/]*) 35358 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35359 ;; 35360 *) 35361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35362 for as_dir in $PATH 35363 do 35364 IFS=$as_save_IFS 35365 test -z "$as_dir" && as_dir=. 35366 for ac_exec_ext in '' $ac_executable_extensions; do 35367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35368 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35370 break 2 35371 fi 35372 done 35373 done 35374 IFS=$as_save_IFS 35375 35376 ;; 35377 esac 35378 fi 35379 STRIP=$ac_cv_path_STRIP 35380 if test -n "$STRIP"; then 35381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35382 $as_echo "$STRIP" >&6; } 35383 else 35384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35385 $as_echo "no" >&6; } 35386 fi 35387 35388 35389 if test "x$STRIP" = x; then 35390 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35391 fi 35392 else 35393 # Otherwise we believe it is a complete path. Use it as it is. 35394 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 35395 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 35396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 35397 $as_echo_n "checking for STRIP... " >&6; } 35398 if test ! -x "$tool_specified"; then 35399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35400 $as_echo "not found" >&6; } 35401 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 35402 fi 35403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35404 $as_echo "$tool_specified" >&6; } 35405 fi 35406 fi 35407 fi 35408 35409 35410 35411 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35412 35413 # First separate the path from the arguments. This will split at the first 35414 # space. 35415 complete="$STRIP" 35416 path="${complete%% *}" 35417 tmp="$complete EOL" 35418 arguments="${tmp#* }" 35419 35420 # Input might be given as Windows format, start by converting to 35421 # unix format. 35422 new_path=`$CYGPATH -u "$path"` 35423 35424 # Now try to locate executable using which 35425 new_path=`$WHICH "$new_path" 2> /dev/null` 35426 # bat and cmd files are not always considered executable in cygwin causing which 35427 # to not find them 35428 if test "x$new_path" = x \ 35429 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35430 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35431 new_path=`$CYGPATH -u "$path"` 35432 fi 35433 if test "x$new_path" = x; then 35434 # Oops. Which didn't find the executable. 35435 # The splitting of arguments from the executable at a space might have been incorrect, 35436 # since paths with space are more likely in Windows. Give it another try with the whole 35437 # argument. 35438 path="$complete" 35439 arguments="EOL" 35440 new_path=`$CYGPATH -u "$path"` 35441 new_path=`$WHICH "$new_path" 2> /dev/null` 35442 # bat and cmd files are not always considered executable in cygwin causing which 35443 # to not find them 35444 if test "x$new_path" = x \ 35445 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35446 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35447 new_path=`$CYGPATH -u "$path"` 35448 fi 35449 if test "x$new_path" = x; then 35450 # It's still not found. Now this is an unrecoverable error. 35451 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35452 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35453 has_space=`$ECHO "$complete" | $GREP " "` 35454 if test "x$has_space" != x; then 35455 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35456 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35457 fi 35458 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35459 fi 35460 fi 35461 35462 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35463 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35464 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35465 # "foo.exe" is OK but "foo" is an error. 35466 # 35467 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35468 # It is also a way to make sure we got the proper file name for the real test later on. 35469 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35470 if test "x$test_shortpath" = x; then 35471 # Short path failed, file does not exist as specified. 35472 # Try adding .exe or .cmd 35473 if test -f "${new_path}.exe"; then 35474 input_to_shortpath="${new_path}.exe" 35475 elif test -f "${new_path}.cmd"; then 35476 input_to_shortpath="${new_path}.cmd" 35477 else 35478 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 35479 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 35480 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35481 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35482 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35483 fi 35484 else 35485 input_to_shortpath="$new_path" 35486 fi 35487 35488 # Call helper function which possibly converts this using DOS-style short mode. 35489 # If so, the updated path is stored in $new_path. 35490 new_path="$input_to_shortpath" 35491 35492 input_path="$input_to_shortpath" 35493 # Check if we need to convert this using DOS-style short mode. If the path 35494 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35495 # take no chances and rewrite it. 35496 # Note: m4 eats our [], so we need to use [ and ] instead. 35497 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35498 if test "x$has_forbidden_chars" != x; then 35499 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35500 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35501 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35502 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35503 # Going to short mode and back again did indeed matter. Since short mode is 35504 # case insensitive, let's make it lowercase to improve readability. 35505 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35506 # Now convert it back to Unix-stile (cygpath) 35507 input_path=`$CYGPATH -u "$shortmode_path"` 35508 new_path="$input_path" 35509 fi 35510 fi 35511 35512 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35513 if test "x$test_cygdrive_prefix" = x; then 35514 # As a simple fix, exclude /usr/bin since it's not a real path. 35515 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35516 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35517 # a path prefixed by /cygdrive for fixpath to work. 35518 new_path="$CYGWIN_ROOT_PATH$input_path" 35519 fi 35520 fi 35521 35522 # remove trailing .exe if any 35523 new_path="${new_path/%.exe/}" 35524 35525 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35526 35527 # First separate the path from the arguments. This will split at the first 35528 # space. 35529 complete="$STRIP" 35530 path="${complete%% *}" 35531 tmp="$complete EOL" 35532 arguments="${tmp#* }" 35533 35534 # Input might be given as Windows format, start by converting to 35535 # unix format. 35536 new_path="$path" 35537 35538 windows_path="$new_path" 35539 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35540 unix_path=`$CYGPATH -u "$windows_path"` 35541 new_path="$unix_path" 35542 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35543 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35544 new_path="$unix_path" 35545 fi 35546 35547 35548 # Now try to locate executable using which 35549 new_path=`$WHICH "$new_path" 2> /dev/null` 35550 35551 if test "x$new_path" = x; then 35552 # Oops. Which didn't find the executable. 35553 # The splitting of arguments from the executable at a space might have been incorrect, 35554 # since paths with space are more likely in Windows. Give it another try with the whole 35555 # argument. 35556 path="$complete" 35557 arguments="EOL" 35558 new_path="$path" 35559 35560 windows_path="$new_path" 35561 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35562 unix_path=`$CYGPATH -u "$windows_path"` 35563 new_path="$unix_path" 35564 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35565 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35566 new_path="$unix_path" 35567 fi 35568 35569 35570 new_path=`$WHICH "$new_path" 2> /dev/null` 35571 # bat and cmd files are not always considered executable in MSYS causing which 35572 # to not find them 35573 if test "x$new_path" = x \ 35574 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35575 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35576 new_path="$path" 35577 35578 windows_path="$new_path" 35579 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35580 unix_path=`$CYGPATH -u "$windows_path"` 35581 new_path="$unix_path" 35582 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35583 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35584 new_path="$unix_path" 35585 fi 35586 35587 fi 35588 35589 if test "x$new_path" = x; then 35590 # It's still not found. Now this is an unrecoverable error. 35591 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35592 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35593 has_space=`$ECHO "$complete" | $GREP " "` 35594 if test "x$has_space" != x; then 35595 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35596 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35597 fi 35598 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35599 fi 35600 fi 35601 35602 # Now new_path has a complete unix path to the binary 35603 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35604 # Keep paths in /bin as-is, but remove trailing .exe if any 35605 new_path="${new_path/%.exe/}" 35606 # Do not save /bin paths to all_fixpath_prefixes! 35607 else 35608 # Not in mixed or Windows style, start by that. 35609 new_path=`cmd //c echo $new_path` 35610 35611 input_path="$new_path" 35612 # Check if we need to convert this using DOS-style short mode. If the path 35613 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35614 # take no chances and rewrite it. 35615 # Note: m4 eats our [], so we need to use [ and ] instead. 35616 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35617 if test "x$has_forbidden_chars" != x; then 35618 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35619 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35620 fi 35621 35622 # Output is in $new_path 35623 35624 windows_path="$new_path" 35625 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35626 unix_path=`$CYGPATH -u "$windows_path"` 35627 new_path="$unix_path" 35628 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35629 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35630 new_path="$unix_path" 35631 fi 35632 35633 # remove trailing .exe if any 35634 new_path="${new_path/%.exe/}" 35635 35636 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35637 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35638 fi 35639 35640 else 35641 # We're on a posix platform. Hooray! :) 35642 # First separate the path from the arguments. This will split at the first 35643 # space. 35644 complete="$STRIP" 35645 path="${complete%% *}" 35646 tmp="$complete EOL" 35647 arguments="${tmp#* }" 35648 35649 # Cannot rely on the command "which" here since it doesn't always work. 35650 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35651 if test -z "$is_absolute_path"; then 35652 # Path to executable is not absolute. Find it. 35653 IFS_save="$IFS" 35654 IFS=: 35655 for p in $PATH; do 35656 if test -f "$p/$path" && test -x "$p/$path"; then 35657 new_path="$p/$path" 35658 break 35659 fi 35660 done 35661 IFS="$IFS_save" 35662 else 35663 # This is an absolute path, we can use it without further modifications. 35664 new_path="$path" 35665 fi 35666 35667 if test "x$new_path" = x; then 35668 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35669 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35670 has_space=`$ECHO "$complete" | $GREP " "` 35671 if test "x$has_space" != x; then 35672 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35673 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35674 fi 35675 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35676 fi 35677 fi 35678 35679 # Now join together the path and the arguments once again 35680 if test "x$arguments" != xEOL; then 35681 new_complete="$new_path ${arguments% *}" 35682 else 35683 new_complete="$new_path" 35684 fi 35685 35686 if test "x$complete" != "x$new_complete"; then 35687 STRIP="$new_complete" 35688 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 35689 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 35690 fi 35691 35692 35693 35694 # Publish this variable in the help. 35695 35696 35697 if test "x$NM" = x; then 35698 # The variable is not set by user, try to locate tool using the code snippet 35699 for ac_prog in nm 35700 do 35701 # Extract the first word of "$ac_prog", so it can be a program name with args. 35702 set dummy $ac_prog; ac_word=$2 35703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35704 $as_echo_n "checking for $ac_word... " >&6; } 35705 if ${ac_cv_path_NM+:} false; then : 35706 $as_echo_n "(cached) " >&6 35707 else 35708 case $NM in 35709 [\\/]* | ?:[\\/]*) 35710 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35711 ;; 35712 *) 35713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35714 for as_dir in $PATH 35715 do 35716 IFS=$as_save_IFS 35717 test -z "$as_dir" && as_dir=. 35718 for ac_exec_ext in '' $ac_executable_extensions; do 35719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35720 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35722 break 2 35723 fi 35724 done 35725 done 35726 IFS=$as_save_IFS 35727 35728 ;; 35729 esac 35730 fi 35731 NM=$ac_cv_path_NM 35732 if test -n "$NM"; then 35733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35734 $as_echo "$NM" >&6; } 35735 else 35736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35737 $as_echo "no" >&6; } 35738 fi 35739 35740 35741 test -n "$NM" && break 35742 done 35743 35744 else 35745 # The variable is set, but is it from the command line or the environment? 35746 35747 # Try to remove the string !NM! from our list. 35748 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 35749 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35750 # If it failed, the variable was not from the command line. Ignore it, 35751 # but warn the user (except for BASH, which is always set by the calling BASH). 35752 if test "xNM" != xBASH; then 35753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 35754 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 35755 fi 35756 # Try to locate tool using the code snippet 35757 for ac_prog in nm 35758 do 35759 # Extract the first word of "$ac_prog", so it can be a program name with args. 35760 set dummy $ac_prog; ac_word=$2 35761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35762 $as_echo_n "checking for $ac_word... " >&6; } 35763 if ${ac_cv_path_NM+:} false; then : 35764 $as_echo_n "(cached) " >&6 35765 else 35766 case $NM in 35767 [\\/]* | ?:[\\/]*) 35768 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35769 ;; 35770 *) 35771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35772 for as_dir in $PATH 35773 do 35774 IFS=$as_save_IFS 35775 test -z "$as_dir" && as_dir=. 35776 for ac_exec_ext in '' $ac_executable_extensions; do 35777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35778 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35780 break 2 35781 fi 35782 done 35783 done 35784 IFS=$as_save_IFS 35785 35786 ;; 35787 esac 35788 fi 35789 NM=$ac_cv_path_NM 35790 if test -n "$NM"; then 35791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35792 $as_echo "$NM" >&6; } 35793 else 35794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35795 $as_echo "no" >&6; } 35796 fi 35797 35798 35799 test -n "$NM" && break 35800 done 35801 35802 else 35803 # If it succeeded, then it was overridden by the user. We will use it 35804 # for the tool. 35805 35806 # First remove it from the list of overridden variables, so we can test 35807 # for unknown variables in the end. 35808 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35809 35810 # Check if the provided tool contains a complete path. 35811 tool_specified="$NM" 35812 tool_basename="${tool_specified##*/}" 35813 if test "x$tool_basename" = "x$tool_specified"; then 35814 # A command without a complete path is provided, search $PATH. 35815 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 35816 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 35817 # Extract the first word of "$tool_basename", so it can be a program name with args. 35818 set dummy $tool_basename; ac_word=$2 35819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35820 $as_echo_n "checking for $ac_word... " >&6; } 35821 if ${ac_cv_path_NM+:} false; then : 35822 $as_echo_n "(cached) " >&6 35823 else 35824 case $NM in 35825 [\\/]* | ?:[\\/]*) 35826 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35827 ;; 35828 *) 35829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35830 for as_dir in $PATH 35831 do 35832 IFS=$as_save_IFS 35833 test -z "$as_dir" && as_dir=. 35834 for ac_exec_ext in '' $ac_executable_extensions; do 35835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35836 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35838 break 2 35839 fi 35840 done 35841 done 35842 IFS=$as_save_IFS 35843 35844 ;; 35845 esac 35846 fi 35847 NM=$ac_cv_path_NM 35848 if test -n "$NM"; then 35849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35850 $as_echo "$NM" >&6; } 35851 else 35852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35853 $as_echo "no" >&6; } 35854 fi 35855 35856 35857 if test "x$NM" = x; then 35858 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35859 fi 35860 else 35861 # Otherwise we believe it is a complete path. Use it as it is. 35862 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 35863 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 35864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 35865 $as_echo_n "checking for NM... " >&6; } 35866 if test ! -x "$tool_specified"; then 35867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35868 $as_echo "not found" >&6; } 35869 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 35870 fi 35871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35872 $as_echo "$tool_specified" >&6; } 35873 fi 35874 fi 35875 fi 35876 35877 35878 35879 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35880 35881 # First separate the path from the arguments. This will split at the first 35882 # space. 35883 complete="$NM" 35884 path="${complete%% *}" 35885 tmp="$complete EOL" 35886 arguments="${tmp#* }" 35887 35888 # Input might be given as Windows format, start by converting to 35889 # unix format. 35890 new_path=`$CYGPATH -u "$path"` 35891 35892 # Now try to locate executable using which 35893 new_path=`$WHICH "$new_path" 2> /dev/null` 35894 # bat and cmd files are not always considered executable in cygwin causing which 35895 # to not find them 35896 if test "x$new_path" = x \ 35897 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35898 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35899 new_path=`$CYGPATH -u "$path"` 35900 fi 35901 if test "x$new_path" = x; then 35902 # Oops. Which didn't find the executable. 35903 # The splitting of arguments from the executable at a space might have been incorrect, 35904 # since paths with space are more likely in Windows. Give it another try with the whole 35905 # argument. 35906 path="$complete" 35907 arguments="EOL" 35908 new_path=`$CYGPATH -u "$path"` 35909 new_path=`$WHICH "$new_path" 2> /dev/null` 35910 # bat and cmd files are not always considered executable in cygwin causing which 35911 # to not find them 35912 if test "x$new_path" = x \ 35913 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35914 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35915 new_path=`$CYGPATH -u "$path"` 35916 fi 35917 if test "x$new_path" = x; then 35918 # It's still not found. Now this is an unrecoverable error. 35919 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35920 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35921 has_space=`$ECHO "$complete" | $GREP " "` 35922 if test "x$has_space" != x; then 35923 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35924 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35925 fi 35926 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35927 fi 35928 fi 35929 35930 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35931 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35932 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35933 # "foo.exe" is OK but "foo" is an error. 35934 # 35935 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35936 # It is also a way to make sure we got the proper file name for the real test later on. 35937 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35938 if test "x$test_shortpath" = x; then 35939 # Short path failed, file does not exist as specified. 35940 # Try adding .exe or .cmd 35941 if test -f "${new_path}.exe"; then 35942 input_to_shortpath="${new_path}.exe" 35943 elif test -f "${new_path}.cmd"; then 35944 input_to_shortpath="${new_path}.cmd" 35945 else 35946 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 35947 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 35948 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35949 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35950 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35951 fi 35952 else 35953 input_to_shortpath="$new_path" 35954 fi 35955 35956 # Call helper function which possibly converts this using DOS-style short mode. 35957 # If so, the updated path is stored in $new_path. 35958 new_path="$input_to_shortpath" 35959 35960 input_path="$input_to_shortpath" 35961 # Check if we need to convert this using DOS-style short mode. If the path 35962 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35963 # take no chances and rewrite it. 35964 # Note: m4 eats our [], so we need to use [ and ] instead. 35965 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35966 if test "x$has_forbidden_chars" != x; then 35967 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35968 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35969 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35970 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35971 # Going to short mode and back again did indeed matter. Since short mode is 35972 # case insensitive, let's make it lowercase to improve readability. 35973 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35974 # Now convert it back to Unix-stile (cygpath) 35975 input_path=`$CYGPATH -u "$shortmode_path"` 35976 new_path="$input_path" 35977 fi 35978 fi 35979 35980 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35981 if test "x$test_cygdrive_prefix" = x; then 35982 # As a simple fix, exclude /usr/bin since it's not a real path. 35983 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35984 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35985 # a path prefixed by /cygdrive for fixpath to work. 35986 new_path="$CYGWIN_ROOT_PATH$input_path" 35987 fi 35988 fi 35989 35990 # remove trailing .exe if any 35991 new_path="${new_path/%.exe/}" 35992 35993 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35994 35995 # First separate the path from the arguments. This will split at the first 35996 # space. 35997 complete="$NM" 35998 path="${complete%% *}" 35999 tmp="$complete EOL" 36000 arguments="${tmp#* }" 36001 36002 # Input might be given as Windows format, start by converting to 36003 # unix format. 36004 new_path="$path" 36005 36006 windows_path="$new_path" 36007 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36008 unix_path=`$CYGPATH -u "$windows_path"` 36009 new_path="$unix_path" 36010 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36011 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36012 new_path="$unix_path" 36013 fi 36014 36015 36016 # Now try to locate executable using which 36017 new_path=`$WHICH "$new_path" 2> /dev/null` 36018 36019 if test "x$new_path" = x; then 36020 # Oops. Which didn't find the executable. 36021 # The splitting of arguments from the executable at a space might have been incorrect, 36022 # since paths with space are more likely in Windows. Give it another try with the whole 36023 # argument. 36024 path="$complete" 36025 arguments="EOL" 36026 new_path="$path" 36027 36028 windows_path="$new_path" 36029 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36030 unix_path=`$CYGPATH -u "$windows_path"` 36031 new_path="$unix_path" 36032 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36033 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36034 new_path="$unix_path" 36035 fi 36036 36037 36038 new_path=`$WHICH "$new_path" 2> /dev/null` 36039 # bat and cmd files are not always considered executable in MSYS causing which 36040 # to not find them 36041 if test "x$new_path" = x \ 36042 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36043 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36044 new_path="$path" 36045 36046 windows_path="$new_path" 36047 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36048 unix_path=`$CYGPATH -u "$windows_path"` 36049 new_path="$unix_path" 36050 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36051 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36052 new_path="$unix_path" 36053 fi 36054 36055 fi 36056 36057 if test "x$new_path" = x; then 36058 # It's still not found. Now this is an unrecoverable error. 36059 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36060 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36061 has_space=`$ECHO "$complete" | $GREP " "` 36062 if test "x$has_space" != x; then 36063 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36064 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36065 fi 36066 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36067 fi 36068 fi 36069 36070 # Now new_path has a complete unix path to the binary 36071 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36072 # Keep paths in /bin as-is, but remove trailing .exe if any 36073 new_path="${new_path/%.exe/}" 36074 # Do not save /bin paths to all_fixpath_prefixes! 36075 else 36076 # Not in mixed or Windows style, start by that. 36077 new_path=`cmd //c echo $new_path` 36078 36079 input_path="$new_path" 36080 # Check if we need to convert this using DOS-style short mode. If the path 36081 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36082 # take no chances and rewrite it. 36083 # Note: m4 eats our [], so we need to use [ and ] instead. 36084 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36085 if test "x$has_forbidden_chars" != x; then 36086 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36087 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36088 fi 36089 36090 # Output is in $new_path 36091 36092 windows_path="$new_path" 36093 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36094 unix_path=`$CYGPATH -u "$windows_path"` 36095 new_path="$unix_path" 36096 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36097 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36098 new_path="$unix_path" 36099 fi 36100 36101 # remove trailing .exe if any 36102 new_path="${new_path/%.exe/}" 36103 36104 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36105 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36106 fi 36107 36108 else 36109 # We're on a posix platform. Hooray! :) 36110 # First separate the path from the arguments. This will split at the first 36111 # space. 36112 complete="$NM" 36113 path="${complete%% *}" 36114 tmp="$complete EOL" 36115 arguments="${tmp#* }" 36116 36117 # Cannot rely on the command "which" here since it doesn't always work. 36118 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36119 if test -z "$is_absolute_path"; then 36120 # Path to executable is not absolute. Find it. 36121 IFS_save="$IFS" 36122 IFS=: 36123 for p in $PATH; do 36124 if test -f "$p/$path" && test -x "$p/$path"; then 36125 new_path="$p/$path" 36126 break 36127 fi 36128 done 36129 IFS="$IFS_save" 36130 else 36131 # This is an absolute path, we can use it without further modifications. 36132 new_path="$path" 36133 fi 36134 36135 if test "x$new_path" = x; then 36136 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36137 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36138 has_space=`$ECHO "$complete" | $GREP " "` 36139 if test "x$has_space" != x; then 36140 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36141 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36142 fi 36143 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36144 fi 36145 fi 36146 36147 # Now join together the path and the arguments once again 36148 if test "x$arguments" != xEOL; then 36149 new_complete="$new_path ${arguments% *}" 36150 else 36151 new_complete="$new_path" 36152 fi 36153 36154 if test "x$complete" != "x$new_complete"; then 36155 NM="$new_complete" 36156 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 36157 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 36158 fi 36159 36160 36161 36162 # Publish this variable in the help. 36163 36164 36165 if test "x$GNM" = x; then 36166 # The variable is not set by user, try to locate tool using the code snippet 36167 for ac_prog in gnm 36168 do 36169 # Extract the first word of "$ac_prog", so it can be a program name with args. 36170 set dummy $ac_prog; ac_word=$2 36171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36172 $as_echo_n "checking for $ac_word... " >&6; } 36173 if ${ac_cv_path_GNM+:} false; then : 36174 $as_echo_n "(cached) " >&6 36175 else 36176 case $GNM in 36177 [\\/]* | ?:[\\/]*) 36178 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36179 ;; 36180 *) 36181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36182 for as_dir in $PATH 36183 do 36184 IFS=$as_save_IFS 36185 test -z "$as_dir" && as_dir=. 36186 for ac_exec_ext in '' $ac_executable_extensions; do 36187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36188 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36190 break 2 36191 fi 36192 done 36193 done 36194 IFS=$as_save_IFS 36195 36196 ;; 36197 esac 36198 fi 36199 GNM=$ac_cv_path_GNM 36200 if test -n "$GNM"; then 36201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36202 $as_echo "$GNM" >&6; } 36203 else 36204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36205 $as_echo "no" >&6; } 36206 fi 36207 36208 36209 test -n "$GNM" && break 36210 done 36211 36212 else 36213 # The variable is set, but is it from the command line or the environment? 36214 36215 # Try to remove the string !GNM! from our list. 36216 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 36217 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36218 # If it failed, the variable was not from the command line. Ignore it, 36219 # but warn the user (except for BASH, which is always set by the calling BASH). 36220 if test "xGNM" != xBASH; then 36221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 36222 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 36223 fi 36224 # Try to locate tool using the code snippet 36225 for ac_prog in gnm 36226 do 36227 # Extract the first word of "$ac_prog", so it can be a program name with args. 36228 set dummy $ac_prog; ac_word=$2 36229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36230 $as_echo_n "checking for $ac_word... " >&6; } 36231 if ${ac_cv_path_GNM+:} false; then : 36232 $as_echo_n "(cached) " >&6 36233 else 36234 case $GNM in 36235 [\\/]* | ?:[\\/]*) 36236 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36237 ;; 36238 *) 36239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36240 for as_dir in $PATH 36241 do 36242 IFS=$as_save_IFS 36243 test -z "$as_dir" && as_dir=. 36244 for ac_exec_ext in '' $ac_executable_extensions; do 36245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36246 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36248 break 2 36249 fi 36250 done 36251 done 36252 IFS=$as_save_IFS 36253 36254 ;; 36255 esac 36256 fi 36257 GNM=$ac_cv_path_GNM 36258 if test -n "$GNM"; then 36259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36260 $as_echo "$GNM" >&6; } 36261 else 36262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36263 $as_echo "no" >&6; } 36264 fi 36265 36266 36267 test -n "$GNM" && break 36268 done 36269 36270 else 36271 # If it succeeded, then it was overridden by the user. We will use it 36272 # for the tool. 36273 36274 # First remove it from the list of overridden variables, so we can test 36275 # for unknown variables in the end. 36276 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36277 36278 # Check if the provided tool contains a complete path. 36279 tool_specified="$GNM" 36280 tool_basename="${tool_specified##*/}" 36281 if test "x$tool_basename" = "x$tool_specified"; then 36282 # A command without a complete path is provided, search $PATH. 36283 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 36284 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 36285 # Extract the first word of "$tool_basename", so it can be a program name with args. 36286 set dummy $tool_basename; ac_word=$2 36287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36288 $as_echo_n "checking for $ac_word... " >&6; } 36289 if ${ac_cv_path_GNM+:} false; then : 36290 $as_echo_n "(cached) " >&6 36291 else 36292 case $GNM in 36293 [\\/]* | ?:[\\/]*) 36294 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36295 ;; 36296 *) 36297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36298 for as_dir in $PATH 36299 do 36300 IFS=$as_save_IFS 36301 test -z "$as_dir" && as_dir=. 36302 for ac_exec_ext in '' $ac_executable_extensions; do 36303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36304 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36306 break 2 36307 fi 36308 done 36309 done 36310 IFS=$as_save_IFS 36311 36312 ;; 36313 esac 36314 fi 36315 GNM=$ac_cv_path_GNM 36316 if test -n "$GNM"; then 36317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36318 $as_echo "$GNM" >&6; } 36319 else 36320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36321 $as_echo "no" >&6; } 36322 fi 36323 36324 36325 if test "x$GNM" = x; then 36326 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36327 fi 36328 else 36329 # Otherwise we believe it is a complete path. Use it as it is. 36330 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 36331 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 36332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 36333 $as_echo_n "checking for GNM... " >&6; } 36334 if test ! -x "$tool_specified"; then 36335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36336 $as_echo "not found" >&6; } 36337 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 36338 fi 36339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36340 $as_echo "$tool_specified" >&6; } 36341 fi 36342 fi 36343 fi 36344 36345 36346 36347 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36348 36349 # First separate the path from the arguments. This will split at the first 36350 # space. 36351 complete="$GNM" 36352 path="${complete%% *}" 36353 tmp="$complete EOL" 36354 arguments="${tmp#* }" 36355 36356 # Input might be given as Windows format, start by converting to 36357 # unix format. 36358 new_path=`$CYGPATH -u "$path"` 36359 36360 # Now try to locate executable using which 36361 new_path=`$WHICH "$new_path" 2> /dev/null` 36362 # bat and cmd files are not always considered executable in cygwin causing which 36363 # to not find them 36364 if test "x$new_path" = x \ 36365 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36366 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36367 new_path=`$CYGPATH -u "$path"` 36368 fi 36369 if test "x$new_path" = x; then 36370 # Oops. Which didn't find the executable. 36371 # The splitting of arguments from the executable at a space might have been incorrect, 36372 # since paths with space are more likely in Windows. Give it another try with the whole 36373 # argument. 36374 path="$complete" 36375 arguments="EOL" 36376 new_path=`$CYGPATH -u "$path"` 36377 new_path=`$WHICH "$new_path" 2> /dev/null` 36378 # bat and cmd files are not always considered executable in cygwin causing which 36379 # to not find them 36380 if test "x$new_path" = x \ 36381 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36382 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36383 new_path=`$CYGPATH -u "$path"` 36384 fi 36385 if test "x$new_path" = x; then 36386 # It's still not found. Now this is an unrecoverable error. 36387 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36388 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36389 has_space=`$ECHO "$complete" | $GREP " "` 36390 if test "x$has_space" != x; then 36391 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36392 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36393 fi 36394 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36395 fi 36396 fi 36397 36398 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36399 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36400 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36401 # "foo.exe" is OK but "foo" is an error. 36402 # 36403 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36404 # It is also a way to make sure we got the proper file name for the real test later on. 36405 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36406 if test "x$test_shortpath" = x; then 36407 # Short path failed, file does not exist as specified. 36408 # Try adding .exe or .cmd 36409 if test -f "${new_path}.exe"; then 36410 input_to_shortpath="${new_path}.exe" 36411 elif test -f "${new_path}.cmd"; then 36412 input_to_shortpath="${new_path}.cmd" 36413 else 36414 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 36415 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 36416 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36417 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36418 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36419 fi 36420 else 36421 input_to_shortpath="$new_path" 36422 fi 36423 36424 # Call helper function which possibly converts this using DOS-style short mode. 36425 # If so, the updated path is stored in $new_path. 36426 new_path="$input_to_shortpath" 36427 36428 input_path="$input_to_shortpath" 36429 # Check if we need to convert this using DOS-style short mode. If the path 36430 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36431 # take no chances and rewrite it. 36432 # Note: m4 eats our [], so we need to use [ and ] instead. 36433 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36434 if test "x$has_forbidden_chars" != x; then 36435 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36436 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36437 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36438 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36439 # Going to short mode and back again did indeed matter. Since short mode is 36440 # case insensitive, let's make it lowercase to improve readability. 36441 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36442 # Now convert it back to Unix-stile (cygpath) 36443 input_path=`$CYGPATH -u "$shortmode_path"` 36444 new_path="$input_path" 36445 fi 36446 fi 36447 36448 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36449 if test "x$test_cygdrive_prefix" = x; then 36450 # As a simple fix, exclude /usr/bin since it's not a real path. 36451 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36452 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36453 # a path prefixed by /cygdrive for fixpath to work. 36454 new_path="$CYGWIN_ROOT_PATH$input_path" 36455 fi 36456 fi 36457 36458 # remove trailing .exe if any 36459 new_path="${new_path/%.exe/}" 36460 36461 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36462 36463 # First separate the path from the arguments. This will split at the first 36464 # space. 36465 complete="$GNM" 36466 path="${complete%% *}" 36467 tmp="$complete EOL" 36468 arguments="${tmp#* }" 36469 36470 # Input might be given as Windows format, start by converting to 36471 # unix format. 36472 new_path="$path" 36473 36474 windows_path="$new_path" 36475 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36476 unix_path=`$CYGPATH -u "$windows_path"` 36477 new_path="$unix_path" 36478 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36479 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36480 new_path="$unix_path" 36481 fi 36482 36483 36484 # Now try to locate executable using which 36485 new_path=`$WHICH "$new_path" 2> /dev/null` 36486 36487 if test "x$new_path" = x; then 36488 # Oops. Which didn't find the executable. 36489 # The splitting of arguments from the executable at a space might have been incorrect, 36490 # since paths with space are more likely in Windows. Give it another try with the whole 36491 # argument. 36492 path="$complete" 36493 arguments="EOL" 36494 new_path="$path" 36495 36496 windows_path="$new_path" 36497 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36498 unix_path=`$CYGPATH -u "$windows_path"` 36499 new_path="$unix_path" 36500 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36501 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36502 new_path="$unix_path" 36503 fi 36504 36505 36506 new_path=`$WHICH "$new_path" 2> /dev/null` 36507 # bat and cmd files are not always considered executable in MSYS causing which 36508 # to not find them 36509 if test "x$new_path" = x \ 36510 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36511 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36512 new_path="$path" 36513 36514 windows_path="$new_path" 36515 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36516 unix_path=`$CYGPATH -u "$windows_path"` 36517 new_path="$unix_path" 36518 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36519 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36520 new_path="$unix_path" 36521 fi 36522 36523 fi 36524 36525 if test "x$new_path" = x; then 36526 # It's still not found. Now this is an unrecoverable error. 36527 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36528 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36529 has_space=`$ECHO "$complete" | $GREP " "` 36530 if test "x$has_space" != x; then 36531 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36532 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36533 fi 36534 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36535 fi 36536 fi 36537 36538 # Now new_path has a complete unix path to the binary 36539 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36540 # Keep paths in /bin as-is, but remove trailing .exe if any 36541 new_path="${new_path/%.exe/}" 36542 # Do not save /bin paths to all_fixpath_prefixes! 36543 else 36544 # Not in mixed or Windows style, start by that. 36545 new_path=`cmd //c echo $new_path` 36546 36547 input_path="$new_path" 36548 # Check if we need to convert this using DOS-style short mode. If the path 36549 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36550 # take no chances and rewrite it. 36551 # Note: m4 eats our [], so we need to use [ and ] instead. 36552 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36553 if test "x$has_forbidden_chars" != x; then 36554 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36555 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36556 fi 36557 36558 # Output is in $new_path 36559 36560 windows_path="$new_path" 36561 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36562 unix_path=`$CYGPATH -u "$windows_path"` 36563 new_path="$unix_path" 36564 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36565 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36566 new_path="$unix_path" 36567 fi 36568 36569 # remove trailing .exe if any 36570 new_path="${new_path/%.exe/}" 36571 36572 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36573 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36574 fi 36575 36576 else 36577 # We're on a posix platform. Hooray! :) 36578 # First separate the path from the arguments. This will split at the first 36579 # space. 36580 complete="$GNM" 36581 path="${complete%% *}" 36582 tmp="$complete EOL" 36583 arguments="${tmp#* }" 36584 36585 # Cannot rely on the command "which" here since it doesn't always work. 36586 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36587 if test -z "$is_absolute_path"; then 36588 # Path to executable is not absolute. Find it. 36589 IFS_save="$IFS" 36590 IFS=: 36591 for p in $PATH; do 36592 if test -f "$p/$path" && test -x "$p/$path"; then 36593 new_path="$p/$path" 36594 break 36595 fi 36596 done 36597 IFS="$IFS_save" 36598 else 36599 # This is an absolute path, we can use it without further modifications. 36600 new_path="$path" 36601 fi 36602 36603 if test "x$new_path" = x; then 36604 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36605 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36606 has_space=`$ECHO "$complete" | $GREP " "` 36607 if test "x$has_space" != x; then 36608 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36609 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36610 fi 36611 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36612 fi 36613 fi 36614 36615 # Now join together the path and the arguments once again 36616 if test "x$arguments" != xEOL; then 36617 new_complete="$new_path ${arguments% *}" 36618 else 36619 new_complete="$new_path" 36620 fi 36621 36622 if test "x$complete" != "x$new_complete"; then 36623 GNM="$new_complete" 36624 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 36625 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 36626 fi 36627 36628 36629 36630 36631 # Publish this variable in the help. 36632 36633 36634 if test "x$MCS" = x; then 36635 # The variable is not set by user, try to locate tool using the code snippet 36636 for ac_prog in mcs 36637 do 36638 # Extract the first word of "$ac_prog", so it can be a program name with args. 36639 set dummy $ac_prog; ac_word=$2 36640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36641 $as_echo_n "checking for $ac_word... " >&6; } 36642 if ${ac_cv_path_MCS+:} false; then : 36643 $as_echo_n "(cached) " >&6 36644 else 36645 case $MCS in 36646 [\\/]* | ?:[\\/]*) 36647 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36648 ;; 36649 *) 36650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36651 for as_dir in $PATH 36652 do 36653 IFS=$as_save_IFS 36654 test -z "$as_dir" && as_dir=. 36655 for ac_exec_ext in '' $ac_executable_extensions; do 36656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36657 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36659 break 2 36660 fi 36661 done 36662 done 36663 IFS=$as_save_IFS 36664 36665 ;; 36666 esac 36667 fi 36668 MCS=$ac_cv_path_MCS 36669 if test -n "$MCS"; then 36670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36671 $as_echo "$MCS" >&6; } 36672 else 36673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36674 $as_echo "no" >&6; } 36675 fi 36676 36677 36678 test -n "$MCS" && break 36679 done 36680 36681 else 36682 # The variable is set, but is it from the command line or the environment? 36683 36684 # Try to remove the string !MCS! from our list. 36685 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MCS!/} 36686 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36687 # If it failed, the variable was not from the command line. Ignore it, 36688 # but warn the user (except for BASH, which is always set by the calling BASH). 36689 if test "xMCS" != xBASH; then 36690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&5 36691 $as_echo "$as_me: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&2;} 36692 fi 36693 # Try to locate tool using the code snippet 36694 for ac_prog in mcs 36695 do 36696 # Extract the first word of "$ac_prog", so it can be a program name with args. 36697 set dummy $ac_prog; ac_word=$2 36698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36699 $as_echo_n "checking for $ac_word... " >&6; } 36700 if ${ac_cv_path_MCS+:} false; then : 36701 $as_echo_n "(cached) " >&6 36702 else 36703 case $MCS in 36704 [\\/]* | ?:[\\/]*) 36705 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36706 ;; 36707 *) 36708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36709 for as_dir in $PATH 36710 do 36711 IFS=$as_save_IFS 36712 test -z "$as_dir" && as_dir=. 36713 for ac_exec_ext in '' $ac_executable_extensions; do 36714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36715 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36717 break 2 36718 fi 36719 done 36720 done 36721 IFS=$as_save_IFS 36722 36723 ;; 36724 esac 36725 fi 36726 MCS=$ac_cv_path_MCS 36727 if test -n "$MCS"; then 36728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36729 $as_echo "$MCS" >&6; } 36730 else 36731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36732 $as_echo "no" >&6; } 36733 fi 36734 36735 36736 test -n "$MCS" && break 36737 done 36738 36739 else 36740 # If it succeeded, then it was overridden by the user. We will use it 36741 # for the tool. 36742 36743 # First remove it from the list of overridden variables, so we can test 36744 # for unknown variables in the end. 36745 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36746 36747 # Check if the provided tool contains a complete path. 36748 tool_specified="$MCS" 36749 tool_basename="${tool_specified##*/}" 36750 if test "x$tool_basename" = "x$tool_specified"; then 36751 # A command without a complete path is provided, search $PATH. 36752 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MCS=$tool_basename" >&5 36753 $as_echo "$as_me: Will search for user supplied tool MCS=$tool_basename" >&6;} 36754 # Extract the first word of "$tool_basename", so it can be a program name with args. 36755 set dummy $tool_basename; ac_word=$2 36756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36757 $as_echo_n "checking for $ac_word... " >&6; } 36758 if ${ac_cv_path_MCS+:} false; then : 36759 $as_echo_n "(cached) " >&6 36760 else 36761 case $MCS in 36762 [\\/]* | ?:[\\/]*) 36763 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36764 ;; 36765 *) 36766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36767 for as_dir in $PATH 36768 do 36769 IFS=$as_save_IFS 36770 test -z "$as_dir" && as_dir=. 36771 for ac_exec_ext in '' $ac_executable_extensions; do 36772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36773 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36775 break 2 36776 fi 36777 done 36778 done 36779 IFS=$as_save_IFS 36780 36781 ;; 36782 esac 36783 fi 36784 MCS=$ac_cv_path_MCS 36785 if test -n "$MCS"; then 36786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36787 $as_echo "$MCS" >&6; } 36788 else 36789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36790 $as_echo "no" >&6; } 36791 fi 36792 36793 36794 if test "x$MCS" = x; then 36795 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36796 fi 36797 else 36798 # Otherwise we believe it is a complete path. Use it as it is. 36799 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MCS=$tool_specified" >&5 36800 $as_echo "$as_me: Will use user supplied tool MCS=$tool_specified" >&6;} 36801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCS" >&5 36802 $as_echo_n "checking for MCS... " >&6; } 36803 if test ! -x "$tool_specified"; then 36804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36805 $as_echo "not found" >&6; } 36806 as_fn_error $? "User supplied tool MCS=$tool_specified does not exist or is not executable" "$LINENO" 5 36807 fi 36808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36809 $as_echo "$tool_specified" >&6; } 36810 fi 36811 fi 36812 fi 36813 36814 36815 36816 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36817 36818 # First separate the path from the arguments. This will split at the first 36819 # space. 36820 complete="$MCS" 36821 path="${complete%% *}" 36822 tmp="$complete EOL" 36823 arguments="${tmp#* }" 36824 36825 # Input might be given as Windows format, start by converting to 36826 # unix format. 36827 new_path=`$CYGPATH -u "$path"` 36828 36829 # Now try to locate executable using which 36830 new_path=`$WHICH "$new_path" 2> /dev/null` 36831 # bat and cmd files are not always considered executable in cygwin causing which 36832 # to not find them 36833 if test "x$new_path" = x \ 36834 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36835 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36836 new_path=`$CYGPATH -u "$path"` 36837 fi 36838 if test "x$new_path" = x; then 36839 # Oops. Which didn't find the executable. 36840 # The splitting of arguments from the executable at a space might have been incorrect, 36841 # since paths with space are more likely in Windows. Give it another try with the whole 36842 # argument. 36843 path="$complete" 36844 arguments="EOL" 36845 new_path=`$CYGPATH -u "$path"` 36846 new_path=`$WHICH "$new_path" 2> /dev/null` 36847 # bat and cmd files are not always considered executable in cygwin causing which 36848 # to not find them 36849 if test "x$new_path" = x \ 36850 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36851 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36852 new_path=`$CYGPATH -u "$path"` 36853 fi 36854 if test "x$new_path" = x; then 36855 # It's still not found. Now this is an unrecoverable error. 36856 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36857 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36858 has_space=`$ECHO "$complete" | $GREP " "` 36859 if test "x$has_space" != x; then 36860 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36861 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36862 fi 36863 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36864 fi 36865 fi 36866 36867 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36868 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36869 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36870 # "foo.exe" is OK but "foo" is an error. 36871 # 36872 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36873 # It is also a way to make sure we got the proper file name for the real test later on. 36874 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36875 if test "x$test_shortpath" = x; then 36876 # Short path failed, file does not exist as specified. 36877 # Try adding .exe or .cmd 36878 if test -f "${new_path}.exe"; then 36879 input_to_shortpath="${new_path}.exe" 36880 elif test -f "${new_path}.cmd"; then 36881 input_to_shortpath="${new_path}.cmd" 36882 else 36883 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$new_path\", is invalid." >&5 36884 $as_echo "$as_me: The path of MCS, which resolves as \"$new_path\", is invalid." >&6;} 36885 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36886 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36887 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36888 fi 36889 else 36890 input_to_shortpath="$new_path" 36891 fi 36892 36893 # Call helper function which possibly converts this using DOS-style short mode. 36894 # If so, the updated path is stored in $new_path. 36895 new_path="$input_to_shortpath" 36896 36897 input_path="$input_to_shortpath" 36898 # Check if we need to convert this using DOS-style short mode. If the path 36899 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36900 # take no chances and rewrite it. 36901 # Note: m4 eats our [], so we need to use [ and ] instead. 36902 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36903 if test "x$has_forbidden_chars" != x; then 36904 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36905 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36906 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36907 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36908 # Going to short mode and back again did indeed matter. Since short mode is 36909 # case insensitive, let's make it lowercase to improve readability. 36910 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36911 # Now convert it back to Unix-stile (cygpath) 36912 input_path=`$CYGPATH -u "$shortmode_path"` 36913 new_path="$input_path" 36914 fi 36915 fi 36916 36917 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36918 if test "x$test_cygdrive_prefix" = x; then 36919 # As a simple fix, exclude /usr/bin since it's not a real path. 36920 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36921 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36922 # a path prefixed by /cygdrive for fixpath to work. 36923 new_path="$CYGWIN_ROOT_PATH$input_path" 36924 fi 36925 fi 36926 36927 # remove trailing .exe if any 36928 new_path="${new_path/%.exe/}" 36929 36930 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36931 36932 # First separate the path from the arguments. This will split at the first 36933 # space. 36934 complete="$MCS" 36935 path="${complete%% *}" 36936 tmp="$complete EOL" 36937 arguments="${tmp#* }" 36938 36939 # Input might be given as Windows format, start by converting to 36940 # unix format. 36941 new_path="$path" 36942 36943 windows_path="$new_path" 36944 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36945 unix_path=`$CYGPATH -u "$windows_path"` 36946 new_path="$unix_path" 36947 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36948 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36949 new_path="$unix_path" 36950 fi 36951 36952 36953 # Now try to locate executable using which 36954 new_path=`$WHICH "$new_path" 2> /dev/null` 36955 36956 if test "x$new_path" = x; then 36957 # Oops. Which didn't find the executable. 36958 # The splitting of arguments from the executable at a space might have been incorrect, 36959 # since paths with space are more likely in Windows. Give it another try with the whole 36960 # argument. 36961 path="$complete" 36962 arguments="EOL" 36963 new_path="$path" 36964 36965 windows_path="$new_path" 36966 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36967 unix_path=`$CYGPATH -u "$windows_path"` 36968 new_path="$unix_path" 36969 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36970 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36971 new_path="$unix_path" 36972 fi 36973 36974 36975 new_path=`$WHICH "$new_path" 2> /dev/null` 36976 # bat and cmd files are not always considered executable in MSYS causing which 36977 # to not find them 36978 if test "x$new_path" = x \ 36979 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36980 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36981 new_path="$path" 36982 36983 windows_path="$new_path" 36984 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36985 unix_path=`$CYGPATH -u "$windows_path"` 36986 new_path="$unix_path" 36987 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36988 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36989 new_path="$unix_path" 36990 fi 36991 36992 fi 36993 36994 if test "x$new_path" = x; then 36995 # It's still not found. Now this is an unrecoverable error. 36996 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36997 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36998 has_space=`$ECHO "$complete" | $GREP " "` 36999 if test "x$has_space" != x; then 37000 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37001 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37002 fi 37003 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 37004 fi 37005 fi 37006 37007 # Now new_path has a complete unix path to the binary 37008 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37009 # Keep paths in /bin as-is, but remove trailing .exe if any 37010 new_path="${new_path/%.exe/}" 37011 # Do not save /bin paths to all_fixpath_prefixes! 37012 else 37013 # Not in mixed or Windows style, start by that. 37014 new_path=`cmd //c echo $new_path` 37015 37016 input_path="$new_path" 37017 # Check if we need to convert this using DOS-style short mode. If the path 37018 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37019 # take no chances and rewrite it. 37020 # Note: m4 eats our [], so we need to use [ and ] instead. 37021 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37022 if test "x$has_forbidden_chars" != x; then 37023 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37024 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37025 fi 37026 37027 # Output is in $new_path 37028 37029 windows_path="$new_path" 37030 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37031 unix_path=`$CYGPATH -u "$windows_path"` 37032 new_path="$unix_path" 37033 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37034 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37035 new_path="$unix_path" 37036 fi 37037 37038 # remove trailing .exe if any 37039 new_path="${new_path/%.exe/}" 37040 37041 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37042 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37043 fi 37044 37045 else 37046 # We're on a posix platform. Hooray! :) 37047 # First separate the path from the arguments. This will split at the first 37048 # space. 37049 complete="$MCS" 37050 path="${complete%% *}" 37051 tmp="$complete EOL" 37052 arguments="${tmp#* }" 37053 37054 # Cannot rely on the command "which" here since it doesn't always work. 37055 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37056 if test -z "$is_absolute_path"; then 37057 # Path to executable is not absolute. Find it. 37058 IFS_save="$IFS" 37059 IFS=: 37060 for p in $PATH; do 37061 if test -f "$p/$path" && test -x "$p/$path"; then 37062 new_path="$p/$path" 37063 break 37064 fi 37065 done 37066 IFS="$IFS_save" 37067 else 37068 # This is an absolute path, we can use it without further modifications. 37069 new_path="$path" 37070 fi 37071 37072 if test "x$new_path" = x; then 37073 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 37074 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 37075 has_space=`$ECHO "$complete" | $GREP " "` 37076 if test "x$has_space" != x; then 37077 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37078 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37079 fi 37080 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 37081 fi 37082 fi 37083 37084 # Now join together the path and the arguments once again 37085 if test "x$arguments" != xEOL; then 37086 new_complete="$new_path ${arguments% *}" 37087 else 37088 new_complete="$new_path" 37089 fi 37090 37091 if test "x$complete" != "x$new_complete"; then 37092 MCS="$new_complete" 37093 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5 37094 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;} 37095 fi 37096 37097 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 37098 # FIXME: we should unify this with the solaris case above. 37099 37100 37101 # Publish this variable in the help. 37102 37103 37104 if test "x$STRIP" = x; then 37105 # The variable is not set by user, try to locate tool using the code snippet 37106 if test -n "$ac_tool_prefix"; then 37107 for ac_prog in strip 37108 do 37109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37110 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37112 $as_echo_n "checking for $ac_word... " >&6; } 37113 if ${ac_cv_prog_STRIP+:} false; then : 37114 $as_echo_n "(cached) " >&6 37115 else 37116 if test -n "$STRIP"; then 37117 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 37118 else 37119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37120 for as_dir in $PATH 37121 do 37122 IFS=$as_save_IFS 37123 test -z "$as_dir" && as_dir=. 37124 for ac_exec_ext in '' $ac_executable_extensions; do 37125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37126 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 37127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37128 break 2 37129 fi 37130 done 37131 done 37132 IFS=$as_save_IFS 37133 37134 fi 37135 fi 37136 STRIP=$ac_cv_prog_STRIP 37137 if test -n "$STRIP"; then 37138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37139 $as_echo "$STRIP" >&6; } 37140 else 37141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37142 $as_echo "no" >&6; } 37143 fi 37144 37145 37146 test -n "$STRIP" && break 37147 done 37148 fi 37149 if test -z "$STRIP"; then 37150 ac_ct_STRIP=$STRIP 37151 for ac_prog in strip 37152 do 37153 # Extract the first word of "$ac_prog", so it can be a program name with args. 37154 set dummy $ac_prog; ac_word=$2 37155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37156 $as_echo_n "checking for $ac_word... " >&6; } 37157 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 37158 $as_echo_n "(cached) " >&6 37159 else 37160 if test -n "$ac_ct_STRIP"; then 37161 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 37162 else 37163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37164 for as_dir in $PATH 37165 do 37166 IFS=$as_save_IFS 37167 test -z "$as_dir" && as_dir=. 37168 for ac_exec_ext in '' $ac_executable_extensions; do 37169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37170 ac_cv_prog_ac_ct_STRIP="$ac_prog" 37171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37172 break 2 37173 fi 37174 done 37175 done 37176 IFS=$as_save_IFS 37177 37178 fi 37179 fi 37180 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 37181 if test -n "$ac_ct_STRIP"; then 37182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 37183 $as_echo "$ac_ct_STRIP" >&6; } 37184 else 37185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37186 $as_echo "no" >&6; } 37187 fi 37188 37189 37190 test -n "$ac_ct_STRIP" && break 37191 done 37192 37193 if test "x$ac_ct_STRIP" = x; then 37194 STRIP="" 37195 else 37196 case $cross_compiling:$ac_tool_warned in 37197 yes:) 37198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37200 ac_tool_warned=yes ;; 37201 esac 37202 STRIP=$ac_ct_STRIP 37203 fi 37204 fi 37205 37206 else 37207 # The variable is set, but is it from the command line or the environment? 37208 37209 # Try to remove the string !STRIP! from our list. 37210 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 37211 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37212 # If it failed, the variable was not from the command line. Ignore it, 37213 # but warn the user (except for BASH, which is always set by the calling BASH). 37214 if test "xSTRIP" != xBASH; then 37215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 37216 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 37217 fi 37218 # Try to locate tool using the code snippet 37219 if test -n "$ac_tool_prefix"; then 37220 for ac_prog in strip 37221 do 37222 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37223 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37225 $as_echo_n "checking for $ac_word... " >&6; } 37226 if ${ac_cv_prog_STRIP+:} false; then : 37227 $as_echo_n "(cached) " >&6 37228 else 37229 if test -n "$STRIP"; then 37230 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 37231 else 37232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37233 for as_dir in $PATH 37234 do 37235 IFS=$as_save_IFS 37236 test -z "$as_dir" && as_dir=. 37237 for ac_exec_ext in '' $ac_executable_extensions; do 37238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37239 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 37240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37241 break 2 37242 fi 37243 done 37244 done 37245 IFS=$as_save_IFS 37246 37247 fi 37248 fi 37249 STRIP=$ac_cv_prog_STRIP 37250 if test -n "$STRIP"; then 37251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37252 $as_echo "$STRIP" >&6; } 37253 else 37254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37255 $as_echo "no" >&6; } 37256 fi 37257 37258 37259 test -n "$STRIP" && break 37260 done 37261 fi 37262 if test -z "$STRIP"; then 37263 ac_ct_STRIP=$STRIP 37264 for ac_prog in strip 37265 do 37266 # Extract the first word of "$ac_prog", so it can be a program name with args. 37267 set dummy $ac_prog; ac_word=$2 37268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37269 $as_echo_n "checking for $ac_word... " >&6; } 37270 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 37271 $as_echo_n "(cached) " >&6 37272 else 37273 if test -n "$ac_ct_STRIP"; then 37274 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 37275 else 37276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37277 for as_dir in $PATH 37278 do 37279 IFS=$as_save_IFS 37280 test -z "$as_dir" && as_dir=. 37281 for ac_exec_ext in '' $ac_executable_extensions; do 37282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37283 ac_cv_prog_ac_ct_STRIP="$ac_prog" 37284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37285 break 2 37286 fi 37287 done 37288 done 37289 IFS=$as_save_IFS 37290 37291 fi 37292 fi 37293 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 37294 if test -n "$ac_ct_STRIP"; then 37295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 37296 $as_echo "$ac_ct_STRIP" >&6; } 37297 else 37298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37299 $as_echo "no" >&6; } 37300 fi 37301 37302 37303 test -n "$ac_ct_STRIP" && break 37304 done 37305 37306 if test "x$ac_ct_STRIP" = x; then 37307 STRIP="" 37308 else 37309 case $cross_compiling:$ac_tool_warned in 37310 yes:) 37311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37313 ac_tool_warned=yes ;; 37314 esac 37315 STRIP=$ac_ct_STRIP 37316 fi 37317 fi 37318 37319 else 37320 # If it succeeded, then it was overridden by the user. We will use it 37321 # for the tool. 37322 37323 # First remove it from the list of overridden variables, so we can test 37324 # for unknown variables in the end. 37325 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37326 37327 # Check if the provided tool contains a complete path. 37328 tool_specified="$STRIP" 37329 tool_basename="${tool_specified##*/}" 37330 if test "x$tool_basename" = "x$tool_specified"; then 37331 # A command without a complete path is provided, search $PATH. 37332 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 37333 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 37334 # Extract the first word of "$tool_basename", so it can be a program name with args. 37335 set dummy $tool_basename; ac_word=$2 37336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37337 $as_echo_n "checking for $ac_word... " >&6; } 37338 if ${ac_cv_path_STRIP+:} false; then : 37339 $as_echo_n "(cached) " >&6 37340 else 37341 case $STRIP in 37342 [\\/]* | ?:[\\/]*) 37343 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 37344 ;; 37345 *) 37346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37347 for as_dir in $PATH 37348 do 37349 IFS=$as_save_IFS 37350 test -z "$as_dir" && as_dir=. 37351 for ac_exec_ext in '' $ac_executable_extensions; do 37352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37353 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 37354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37355 break 2 37356 fi 37357 done 37358 done 37359 IFS=$as_save_IFS 37360 37361 ;; 37362 esac 37363 fi 37364 STRIP=$ac_cv_path_STRIP 37365 if test -n "$STRIP"; then 37366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37367 $as_echo "$STRIP" >&6; } 37368 else 37369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37370 $as_echo "no" >&6; } 37371 fi 37372 37373 37374 if test "x$STRIP" = x; then 37375 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37376 fi 37377 else 37378 # Otherwise we believe it is a complete path. Use it as it is. 37379 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 37380 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 37381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 37382 $as_echo_n "checking for STRIP... " >&6; } 37383 if test ! -x "$tool_specified"; then 37384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37385 $as_echo "not found" >&6; } 37386 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 37387 fi 37388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37389 $as_echo "$tool_specified" >&6; } 37390 fi 37391 fi 37392 fi 37393 37394 37395 37396 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37397 37398 # First separate the path from the arguments. This will split at the first 37399 # space. 37400 complete="$STRIP" 37401 path="${complete%% *}" 37402 tmp="$complete EOL" 37403 arguments="${tmp#* }" 37404 37405 # Input might be given as Windows format, start by converting to 37406 # unix format. 37407 new_path=`$CYGPATH -u "$path"` 37408 37409 # Now try to locate executable using which 37410 new_path=`$WHICH "$new_path" 2> /dev/null` 37411 # bat and cmd files are not always considered executable in cygwin causing which 37412 # to not find them 37413 if test "x$new_path" = x \ 37414 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37415 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37416 new_path=`$CYGPATH -u "$path"` 37417 fi 37418 if test "x$new_path" = x; then 37419 # Oops. Which didn't find the executable. 37420 # The splitting of arguments from the executable at a space might have been incorrect, 37421 # since paths with space are more likely in Windows. Give it another try with the whole 37422 # argument. 37423 path="$complete" 37424 arguments="EOL" 37425 new_path=`$CYGPATH -u "$path"` 37426 new_path=`$WHICH "$new_path" 2> /dev/null` 37427 # bat and cmd files are not always considered executable in cygwin causing which 37428 # to not find them 37429 if test "x$new_path" = x \ 37430 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37431 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37432 new_path=`$CYGPATH -u "$path"` 37433 fi 37434 if test "x$new_path" = x; then 37435 # It's still not found. Now this is an unrecoverable error. 37436 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37437 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37438 has_space=`$ECHO "$complete" | $GREP " "` 37439 if test "x$has_space" != x; then 37440 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37441 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37442 fi 37443 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37444 fi 37445 fi 37446 37447 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37448 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37449 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37450 # "foo.exe" is OK but "foo" is an error. 37451 # 37452 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37453 # It is also a way to make sure we got the proper file name for the real test later on. 37454 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37455 if test "x$test_shortpath" = x; then 37456 # Short path failed, file does not exist as specified. 37457 # Try adding .exe or .cmd 37458 if test -f "${new_path}.exe"; then 37459 input_to_shortpath="${new_path}.exe" 37460 elif test -f "${new_path}.cmd"; then 37461 input_to_shortpath="${new_path}.cmd" 37462 else 37463 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 37464 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 37465 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37466 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37467 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37468 fi 37469 else 37470 input_to_shortpath="$new_path" 37471 fi 37472 37473 # Call helper function which possibly converts this using DOS-style short mode. 37474 # If so, the updated path is stored in $new_path. 37475 new_path="$input_to_shortpath" 37476 37477 input_path="$input_to_shortpath" 37478 # Check if we need to convert this using DOS-style short mode. If the path 37479 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37480 # take no chances and rewrite it. 37481 # Note: m4 eats our [], so we need to use [ and ] instead. 37482 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37483 if test "x$has_forbidden_chars" != x; then 37484 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37485 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37486 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37487 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37488 # Going to short mode and back again did indeed matter. Since short mode is 37489 # case insensitive, let's make it lowercase to improve readability. 37490 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37491 # Now convert it back to Unix-stile (cygpath) 37492 input_path=`$CYGPATH -u "$shortmode_path"` 37493 new_path="$input_path" 37494 fi 37495 fi 37496 37497 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37498 if test "x$test_cygdrive_prefix" = x; then 37499 # As a simple fix, exclude /usr/bin since it's not a real path. 37500 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37501 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37502 # a path prefixed by /cygdrive for fixpath to work. 37503 new_path="$CYGWIN_ROOT_PATH$input_path" 37504 fi 37505 fi 37506 37507 # remove trailing .exe if any 37508 new_path="${new_path/%.exe/}" 37509 37510 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37511 37512 # First separate the path from the arguments. This will split at the first 37513 # space. 37514 complete="$STRIP" 37515 path="${complete%% *}" 37516 tmp="$complete EOL" 37517 arguments="${tmp#* }" 37518 37519 # Input might be given as Windows format, start by converting to 37520 # unix format. 37521 new_path="$path" 37522 37523 windows_path="$new_path" 37524 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37525 unix_path=`$CYGPATH -u "$windows_path"` 37526 new_path="$unix_path" 37527 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37528 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37529 new_path="$unix_path" 37530 fi 37531 37532 37533 # Now try to locate executable using which 37534 new_path=`$WHICH "$new_path" 2> /dev/null` 37535 37536 if test "x$new_path" = x; then 37537 # Oops. Which didn't find the executable. 37538 # The splitting of arguments from the executable at a space might have been incorrect, 37539 # since paths with space are more likely in Windows. Give it another try with the whole 37540 # argument. 37541 path="$complete" 37542 arguments="EOL" 37543 new_path="$path" 37544 37545 windows_path="$new_path" 37546 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37547 unix_path=`$CYGPATH -u "$windows_path"` 37548 new_path="$unix_path" 37549 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37550 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37551 new_path="$unix_path" 37552 fi 37553 37554 37555 new_path=`$WHICH "$new_path" 2> /dev/null` 37556 # bat and cmd files are not always considered executable in MSYS causing which 37557 # to not find them 37558 if test "x$new_path" = x \ 37559 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37560 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37561 new_path="$path" 37562 37563 windows_path="$new_path" 37564 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37565 unix_path=`$CYGPATH -u "$windows_path"` 37566 new_path="$unix_path" 37567 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37568 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37569 new_path="$unix_path" 37570 fi 37571 37572 fi 37573 37574 if test "x$new_path" = x; then 37575 # It's still not found. Now this is an unrecoverable error. 37576 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37577 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37578 has_space=`$ECHO "$complete" | $GREP " "` 37579 if test "x$has_space" != x; then 37580 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37581 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37582 fi 37583 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37584 fi 37585 fi 37586 37587 # Now new_path has a complete unix path to the binary 37588 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37589 # Keep paths in /bin as-is, but remove trailing .exe if any 37590 new_path="${new_path/%.exe/}" 37591 # Do not save /bin paths to all_fixpath_prefixes! 37592 else 37593 # Not in mixed or Windows style, start by that. 37594 new_path=`cmd //c echo $new_path` 37595 37596 input_path="$new_path" 37597 # Check if we need to convert this using DOS-style short mode. If the path 37598 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37599 # take no chances and rewrite it. 37600 # Note: m4 eats our [], so we need to use [ and ] instead. 37601 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37602 if test "x$has_forbidden_chars" != x; then 37603 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37604 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37605 fi 37606 37607 # Output is in $new_path 37608 37609 windows_path="$new_path" 37610 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37611 unix_path=`$CYGPATH -u "$windows_path"` 37612 new_path="$unix_path" 37613 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37614 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37615 new_path="$unix_path" 37616 fi 37617 37618 # remove trailing .exe if any 37619 new_path="${new_path/%.exe/}" 37620 37621 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37622 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37623 fi 37624 37625 else 37626 # We're on a posix platform. Hooray! :) 37627 # First separate the path from the arguments. This will split at the first 37628 # space. 37629 complete="$STRIP" 37630 path="${complete%% *}" 37631 tmp="$complete EOL" 37632 arguments="${tmp#* }" 37633 37634 # Cannot rely on the command "which" here since it doesn't always work. 37635 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37636 if test -z "$is_absolute_path"; then 37637 # Path to executable is not absolute. Find it. 37638 IFS_save="$IFS" 37639 IFS=: 37640 for p in $PATH; do 37641 if test -f "$p/$path" && test -x "$p/$path"; then 37642 new_path="$p/$path" 37643 break 37644 fi 37645 done 37646 IFS="$IFS_save" 37647 else 37648 # This is an absolute path, we can use it without further modifications. 37649 new_path="$path" 37650 fi 37651 37652 if test "x$new_path" = x; then 37653 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37654 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37655 has_space=`$ECHO "$complete" | $GREP " "` 37656 if test "x$has_space" != x; then 37657 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37658 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37659 fi 37660 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37661 fi 37662 fi 37663 37664 # Now join together the path and the arguments once again 37665 if test "x$arguments" != xEOL; then 37666 new_complete="$new_path ${arguments% *}" 37667 else 37668 new_complete="$new_path" 37669 fi 37670 37671 if test "x$complete" != "x$new_complete"; then 37672 STRIP="$new_complete" 37673 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 37674 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 37675 fi 37676 37677 37678 37679 # Publish this variable in the help. 37680 37681 37682 if test "x$NM" = x; then 37683 # The variable is not set by user, try to locate tool using the code snippet 37684 if test -n "$ac_tool_prefix"; then 37685 for ac_prog in nm 37686 do 37687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37690 $as_echo_n "checking for $ac_word... " >&6; } 37691 if ${ac_cv_prog_NM+:} false; then : 37692 $as_echo_n "(cached) " >&6 37693 else 37694 if test -n "$NM"; then 37695 ac_cv_prog_NM="$NM" # Let the user override the test. 37696 else 37697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37698 for as_dir in $PATH 37699 do 37700 IFS=$as_save_IFS 37701 test -z "$as_dir" && as_dir=. 37702 for ac_exec_ext in '' $ac_executable_extensions; do 37703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37704 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37706 break 2 37707 fi 37708 done 37709 done 37710 IFS=$as_save_IFS 37711 37712 fi 37713 fi 37714 NM=$ac_cv_prog_NM 37715 if test -n "$NM"; then 37716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37717 $as_echo "$NM" >&6; } 37718 else 37719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37720 $as_echo "no" >&6; } 37721 fi 37722 37723 37724 test -n "$NM" && break 37725 done 37726 fi 37727 if test -z "$NM"; then 37728 ac_ct_NM=$NM 37729 for ac_prog in nm 37730 do 37731 # Extract the first word of "$ac_prog", so it can be a program name with args. 37732 set dummy $ac_prog; ac_word=$2 37733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37734 $as_echo_n "checking for $ac_word... " >&6; } 37735 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37736 $as_echo_n "(cached) " >&6 37737 else 37738 if test -n "$ac_ct_NM"; then 37739 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37740 else 37741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37742 for as_dir in $PATH 37743 do 37744 IFS=$as_save_IFS 37745 test -z "$as_dir" && as_dir=. 37746 for ac_exec_ext in '' $ac_executable_extensions; do 37747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37748 ac_cv_prog_ac_ct_NM="$ac_prog" 37749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37750 break 2 37751 fi 37752 done 37753 done 37754 IFS=$as_save_IFS 37755 37756 fi 37757 fi 37758 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37759 if test -n "$ac_ct_NM"; then 37760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37761 $as_echo "$ac_ct_NM" >&6; } 37762 else 37763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37764 $as_echo "no" >&6; } 37765 fi 37766 37767 37768 test -n "$ac_ct_NM" && break 37769 done 37770 37771 if test "x$ac_ct_NM" = x; then 37772 NM="" 37773 else 37774 case $cross_compiling:$ac_tool_warned in 37775 yes:) 37776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37778 ac_tool_warned=yes ;; 37779 esac 37780 NM=$ac_ct_NM 37781 fi 37782 fi 37783 37784 else 37785 # The variable is set, but is it from the command line or the environment? 37786 37787 # Try to remove the string !NM! from our list. 37788 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 37789 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37790 # If it failed, the variable was not from the command line. Ignore it, 37791 # but warn the user (except for BASH, which is always set by the calling BASH). 37792 if test "xNM" != xBASH; then 37793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 37794 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 37795 fi 37796 # Try to locate tool using the code snippet 37797 if test -n "$ac_tool_prefix"; then 37798 for ac_prog in nm 37799 do 37800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37803 $as_echo_n "checking for $ac_word... " >&6; } 37804 if ${ac_cv_prog_NM+:} false; then : 37805 $as_echo_n "(cached) " >&6 37806 else 37807 if test -n "$NM"; then 37808 ac_cv_prog_NM="$NM" # Let the user override the test. 37809 else 37810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37811 for as_dir in $PATH 37812 do 37813 IFS=$as_save_IFS 37814 test -z "$as_dir" && as_dir=. 37815 for ac_exec_ext in '' $ac_executable_extensions; do 37816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37817 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37819 break 2 37820 fi 37821 done 37822 done 37823 IFS=$as_save_IFS 37824 37825 fi 37826 fi 37827 NM=$ac_cv_prog_NM 37828 if test -n "$NM"; then 37829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37830 $as_echo "$NM" >&6; } 37831 else 37832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37833 $as_echo "no" >&6; } 37834 fi 37835 37836 37837 test -n "$NM" && break 37838 done 37839 fi 37840 if test -z "$NM"; then 37841 ac_ct_NM=$NM 37842 for ac_prog in nm 37843 do 37844 # Extract the first word of "$ac_prog", so it can be a program name with args. 37845 set dummy $ac_prog; ac_word=$2 37846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37847 $as_echo_n "checking for $ac_word... " >&6; } 37848 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37849 $as_echo_n "(cached) " >&6 37850 else 37851 if test -n "$ac_ct_NM"; then 37852 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37853 else 37854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37855 for as_dir in $PATH 37856 do 37857 IFS=$as_save_IFS 37858 test -z "$as_dir" && as_dir=. 37859 for ac_exec_ext in '' $ac_executable_extensions; do 37860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37861 ac_cv_prog_ac_ct_NM="$ac_prog" 37862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37863 break 2 37864 fi 37865 done 37866 done 37867 IFS=$as_save_IFS 37868 37869 fi 37870 fi 37871 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37872 if test -n "$ac_ct_NM"; then 37873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37874 $as_echo "$ac_ct_NM" >&6; } 37875 else 37876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37877 $as_echo "no" >&6; } 37878 fi 37879 37880 37881 test -n "$ac_ct_NM" && break 37882 done 37883 37884 if test "x$ac_ct_NM" = x; then 37885 NM="" 37886 else 37887 case $cross_compiling:$ac_tool_warned in 37888 yes:) 37889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37891 ac_tool_warned=yes ;; 37892 esac 37893 NM=$ac_ct_NM 37894 fi 37895 fi 37896 37897 else 37898 # If it succeeded, then it was overridden by the user. We will use it 37899 # for the tool. 37900 37901 # First remove it from the list of overridden variables, so we can test 37902 # for unknown variables in the end. 37903 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37904 37905 # Check if the provided tool contains a complete path. 37906 tool_specified="$NM" 37907 tool_basename="${tool_specified##*/}" 37908 if test "x$tool_basename" = "x$tool_specified"; then 37909 # A command without a complete path is provided, search $PATH. 37910 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 37911 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 37912 # Extract the first word of "$tool_basename", so it can be a program name with args. 37913 set dummy $tool_basename; ac_word=$2 37914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37915 $as_echo_n "checking for $ac_word... " >&6; } 37916 if ${ac_cv_path_NM+:} false; then : 37917 $as_echo_n "(cached) " >&6 37918 else 37919 case $NM in 37920 [\\/]* | ?:[\\/]*) 37921 ac_cv_path_NM="$NM" # Let the user override the test with a path. 37922 ;; 37923 *) 37924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37925 for as_dir in $PATH 37926 do 37927 IFS=$as_save_IFS 37928 test -z "$as_dir" && as_dir=. 37929 for ac_exec_ext in '' $ac_executable_extensions; do 37930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37931 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 37932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37933 break 2 37934 fi 37935 done 37936 done 37937 IFS=$as_save_IFS 37938 37939 ;; 37940 esac 37941 fi 37942 NM=$ac_cv_path_NM 37943 if test -n "$NM"; then 37944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37945 $as_echo "$NM" >&6; } 37946 else 37947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37948 $as_echo "no" >&6; } 37949 fi 37950 37951 37952 if test "x$NM" = x; then 37953 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37954 fi 37955 else 37956 # Otherwise we believe it is a complete path. Use it as it is. 37957 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 37958 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 37959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 37960 $as_echo_n "checking for NM... " >&6; } 37961 if test ! -x "$tool_specified"; then 37962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37963 $as_echo "not found" >&6; } 37964 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 37965 fi 37966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37967 $as_echo "$tool_specified" >&6; } 37968 fi 37969 fi 37970 fi 37971 37972 37973 37974 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37975 37976 # First separate the path from the arguments. This will split at the first 37977 # space. 37978 complete="$NM" 37979 path="${complete%% *}" 37980 tmp="$complete EOL" 37981 arguments="${tmp#* }" 37982 37983 # Input might be given as Windows format, start by converting to 37984 # unix format. 37985 new_path=`$CYGPATH -u "$path"` 37986 37987 # Now try to locate executable using which 37988 new_path=`$WHICH "$new_path" 2> /dev/null` 37989 # bat and cmd files are not always considered executable in cygwin causing which 37990 # to not find them 37991 if test "x$new_path" = x \ 37992 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37993 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37994 new_path=`$CYGPATH -u "$path"` 37995 fi 37996 if test "x$new_path" = x; then 37997 # Oops. Which didn't find the executable. 37998 # The splitting of arguments from the executable at a space might have been incorrect, 37999 # since paths with space are more likely in Windows. Give it another try with the whole 38000 # argument. 38001 path="$complete" 38002 arguments="EOL" 38003 new_path=`$CYGPATH -u "$path"` 38004 new_path=`$WHICH "$new_path" 2> /dev/null` 38005 # bat and cmd files are not always considered executable in cygwin causing which 38006 # to not find them 38007 if test "x$new_path" = x \ 38008 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38009 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38010 new_path=`$CYGPATH -u "$path"` 38011 fi 38012 if test "x$new_path" = x; then 38013 # It's still not found. Now this is an unrecoverable error. 38014 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38015 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38016 has_space=`$ECHO "$complete" | $GREP " "` 38017 if test "x$has_space" != x; then 38018 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38019 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38020 fi 38021 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38022 fi 38023 fi 38024 38025 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38026 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38027 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38028 # "foo.exe" is OK but "foo" is an error. 38029 # 38030 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38031 # It is also a way to make sure we got the proper file name for the real test later on. 38032 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38033 if test "x$test_shortpath" = x; then 38034 # Short path failed, file does not exist as specified. 38035 # Try adding .exe or .cmd 38036 if test -f "${new_path}.exe"; then 38037 input_to_shortpath="${new_path}.exe" 38038 elif test -f "${new_path}.cmd"; then 38039 input_to_shortpath="${new_path}.cmd" 38040 else 38041 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 38042 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 38043 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38044 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38045 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38046 fi 38047 else 38048 input_to_shortpath="$new_path" 38049 fi 38050 38051 # Call helper function which possibly converts this using DOS-style short mode. 38052 # If so, the updated path is stored in $new_path. 38053 new_path="$input_to_shortpath" 38054 38055 input_path="$input_to_shortpath" 38056 # Check if we need to convert this using DOS-style short mode. If the path 38057 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38058 # take no chances and rewrite it. 38059 # Note: m4 eats our [], so we need to use [ and ] instead. 38060 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38061 if test "x$has_forbidden_chars" != x; then 38062 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38063 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38064 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38065 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38066 # Going to short mode and back again did indeed matter. Since short mode is 38067 # case insensitive, let's make it lowercase to improve readability. 38068 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38069 # Now convert it back to Unix-stile (cygpath) 38070 input_path=`$CYGPATH -u "$shortmode_path"` 38071 new_path="$input_path" 38072 fi 38073 fi 38074 38075 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38076 if test "x$test_cygdrive_prefix" = x; then 38077 # As a simple fix, exclude /usr/bin since it's not a real path. 38078 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38079 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38080 # a path prefixed by /cygdrive for fixpath to work. 38081 new_path="$CYGWIN_ROOT_PATH$input_path" 38082 fi 38083 fi 38084 38085 # remove trailing .exe if any 38086 new_path="${new_path/%.exe/}" 38087 38088 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38089 38090 # First separate the path from the arguments. This will split at the first 38091 # space. 38092 complete="$NM" 38093 path="${complete%% *}" 38094 tmp="$complete EOL" 38095 arguments="${tmp#* }" 38096 38097 # Input might be given as Windows format, start by converting to 38098 # unix format. 38099 new_path="$path" 38100 38101 windows_path="$new_path" 38102 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38103 unix_path=`$CYGPATH -u "$windows_path"` 38104 new_path="$unix_path" 38105 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38106 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38107 new_path="$unix_path" 38108 fi 38109 38110 38111 # Now try to locate executable using which 38112 new_path=`$WHICH "$new_path" 2> /dev/null` 38113 38114 if test "x$new_path" = x; then 38115 # Oops. Which didn't find the executable. 38116 # The splitting of arguments from the executable at a space might have been incorrect, 38117 # since paths with space are more likely in Windows. Give it another try with the whole 38118 # argument. 38119 path="$complete" 38120 arguments="EOL" 38121 new_path="$path" 38122 38123 windows_path="$new_path" 38124 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38125 unix_path=`$CYGPATH -u "$windows_path"` 38126 new_path="$unix_path" 38127 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38128 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38129 new_path="$unix_path" 38130 fi 38131 38132 38133 new_path=`$WHICH "$new_path" 2> /dev/null` 38134 # bat and cmd files are not always considered executable in MSYS causing which 38135 # to not find them 38136 if test "x$new_path" = x \ 38137 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38138 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38139 new_path="$path" 38140 38141 windows_path="$new_path" 38142 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38143 unix_path=`$CYGPATH -u "$windows_path"` 38144 new_path="$unix_path" 38145 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38146 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38147 new_path="$unix_path" 38148 fi 38149 38150 fi 38151 38152 if test "x$new_path" = x; then 38153 # It's still not found. Now this is an unrecoverable error. 38154 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38155 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38156 has_space=`$ECHO "$complete" | $GREP " "` 38157 if test "x$has_space" != x; then 38158 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38159 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38160 fi 38161 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38162 fi 38163 fi 38164 38165 # Now new_path has a complete unix path to the binary 38166 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38167 # Keep paths in /bin as-is, but remove trailing .exe if any 38168 new_path="${new_path/%.exe/}" 38169 # Do not save /bin paths to all_fixpath_prefixes! 38170 else 38171 # Not in mixed or Windows style, start by that. 38172 new_path=`cmd //c echo $new_path` 38173 38174 input_path="$new_path" 38175 # Check if we need to convert this using DOS-style short mode. If the path 38176 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38177 # take no chances and rewrite it. 38178 # Note: m4 eats our [], so we need to use [ and ] instead. 38179 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38180 if test "x$has_forbidden_chars" != x; then 38181 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38182 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38183 fi 38184 38185 # Output is in $new_path 38186 38187 windows_path="$new_path" 38188 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38189 unix_path=`$CYGPATH -u "$windows_path"` 38190 new_path="$unix_path" 38191 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38192 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38193 new_path="$unix_path" 38194 fi 38195 38196 # remove trailing .exe if any 38197 new_path="${new_path/%.exe/}" 38198 38199 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38200 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38201 fi 38202 38203 else 38204 # We're on a posix platform. Hooray! :) 38205 # First separate the path from the arguments. This will split at the first 38206 # space. 38207 complete="$NM" 38208 path="${complete%% *}" 38209 tmp="$complete EOL" 38210 arguments="${tmp#* }" 38211 38212 # Cannot rely on the command "which" here since it doesn't always work. 38213 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38214 if test -z "$is_absolute_path"; then 38215 # Path to executable is not absolute. Find it. 38216 IFS_save="$IFS" 38217 IFS=: 38218 for p in $PATH; do 38219 if test -f "$p/$path" && test -x "$p/$path"; then 38220 new_path="$p/$path" 38221 break 38222 fi 38223 done 38224 IFS="$IFS_save" 38225 else 38226 # This is an absolute path, we can use it without further modifications. 38227 new_path="$path" 38228 fi 38229 38230 if test "x$new_path" = x; then 38231 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38232 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38233 has_space=`$ECHO "$complete" | $GREP " "` 38234 if test "x$has_space" != x; then 38235 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38236 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38237 fi 38238 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38239 fi 38240 fi 38241 38242 # Now join together the path and the arguments once again 38243 if test "x$arguments" != xEOL; then 38244 new_complete="$new_path ${arguments% *}" 38245 else 38246 new_complete="$new_path" 38247 fi 38248 38249 if test "x$complete" != "x$new_complete"; then 38250 NM="$new_complete" 38251 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 38252 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 38253 fi 38254 38255 GNM="$NM" 38256 38257 fi 38258 38259 # objcopy is used for moving debug symbols to separate files when 38260 # full debug symbols are enabled. 38261 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 38262 38263 38264 # Publish this variable in the help. 38265 38266 38267 if test "x$OBJCOPY" = x; then 38268 # The variable is not set by user, try to locate tool using the code snippet 38269 if test -n "$ac_tool_prefix"; then 38270 for ac_prog in gobjcopy objcopy 38271 do 38272 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38273 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38275 $as_echo_n "checking for $ac_word... " >&6; } 38276 if ${ac_cv_prog_OBJCOPY+:} false; then : 38277 $as_echo_n "(cached) " >&6 38278 else 38279 if test -n "$OBJCOPY"; then 38280 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 38281 else 38282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38283 for as_dir in $PATH 38284 do 38285 IFS=$as_save_IFS 38286 test -z "$as_dir" && as_dir=. 38287 for ac_exec_ext in '' $ac_executable_extensions; do 38288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38289 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 38290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38291 break 2 38292 fi 38293 done 38294 done 38295 IFS=$as_save_IFS 38296 38297 fi 38298 fi 38299 OBJCOPY=$ac_cv_prog_OBJCOPY 38300 if test -n "$OBJCOPY"; then 38301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38302 $as_echo "$OBJCOPY" >&6; } 38303 else 38304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38305 $as_echo "no" >&6; } 38306 fi 38307 38308 38309 test -n "$OBJCOPY" && break 38310 done 38311 fi 38312 if test -z "$OBJCOPY"; then 38313 ac_ct_OBJCOPY=$OBJCOPY 38314 for ac_prog in gobjcopy objcopy 38315 do 38316 # Extract the first word of "$ac_prog", so it can be a program name with args. 38317 set dummy $ac_prog; ac_word=$2 38318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38319 $as_echo_n "checking for $ac_word... " >&6; } 38320 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 38321 $as_echo_n "(cached) " >&6 38322 else 38323 if test -n "$ac_ct_OBJCOPY"; then 38324 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 38325 else 38326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38327 for as_dir in $PATH 38328 do 38329 IFS=$as_save_IFS 38330 test -z "$as_dir" && as_dir=. 38331 for ac_exec_ext in '' $ac_executable_extensions; do 38332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38333 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 38334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38335 break 2 38336 fi 38337 done 38338 done 38339 IFS=$as_save_IFS 38340 38341 fi 38342 fi 38343 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 38344 if test -n "$ac_ct_OBJCOPY"; then 38345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 38346 $as_echo "$ac_ct_OBJCOPY" >&6; } 38347 else 38348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38349 $as_echo "no" >&6; } 38350 fi 38351 38352 38353 test -n "$ac_ct_OBJCOPY" && break 38354 done 38355 38356 if test "x$ac_ct_OBJCOPY" = x; then 38357 OBJCOPY="" 38358 else 38359 case $cross_compiling:$ac_tool_warned in 38360 yes:) 38361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38363 ac_tool_warned=yes ;; 38364 esac 38365 OBJCOPY=$ac_ct_OBJCOPY 38366 fi 38367 fi 38368 38369 else 38370 # The variable is set, but is it from the command line or the environment? 38371 38372 # Try to remove the string !OBJCOPY! from our list. 38373 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 38374 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38375 # If it failed, the variable was not from the command line. Ignore it, 38376 # but warn the user (except for BASH, which is always set by the calling BASH). 38377 if test "xOBJCOPY" != xBASH; then 38378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 38379 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 38380 fi 38381 # Try to locate tool using the code snippet 38382 if test -n "$ac_tool_prefix"; then 38383 for ac_prog in gobjcopy objcopy 38384 do 38385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38388 $as_echo_n "checking for $ac_word... " >&6; } 38389 if ${ac_cv_prog_OBJCOPY+:} false; then : 38390 $as_echo_n "(cached) " >&6 38391 else 38392 if test -n "$OBJCOPY"; then 38393 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 38394 else 38395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38396 for as_dir in $PATH 38397 do 38398 IFS=$as_save_IFS 38399 test -z "$as_dir" && as_dir=. 38400 for ac_exec_ext in '' $ac_executable_extensions; do 38401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38402 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 38403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38404 break 2 38405 fi 38406 done 38407 done 38408 IFS=$as_save_IFS 38409 38410 fi 38411 fi 38412 OBJCOPY=$ac_cv_prog_OBJCOPY 38413 if test -n "$OBJCOPY"; then 38414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38415 $as_echo "$OBJCOPY" >&6; } 38416 else 38417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38418 $as_echo "no" >&6; } 38419 fi 38420 38421 38422 test -n "$OBJCOPY" && break 38423 done 38424 fi 38425 if test -z "$OBJCOPY"; then 38426 ac_ct_OBJCOPY=$OBJCOPY 38427 for ac_prog in gobjcopy objcopy 38428 do 38429 # Extract the first word of "$ac_prog", so it can be a program name with args. 38430 set dummy $ac_prog; ac_word=$2 38431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38432 $as_echo_n "checking for $ac_word... " >&6; } 38433 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 38434 $as_echo_n "(cached) " >&6 38435 else 38436 if test -n "$ac_ct_OBJCOPY"; then 38437 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 38438 else 38439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38440 for as_dir in $PATH 38441 do 38442 IFS=$as_save_IFS 38443 test -z "$as_dir" && as_dir=. 38444 for ac_exec_ext in '' $ac_executable_extensions; do 38445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38446 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 38447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38448 break 2 38449 fi 38450 done 38451 done 38452 IFS=$as_save_IFS 38453 38454 fi 38455 fi 38456 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 38457 if test -n "$ac_ct_OBJCOPY"; then 38458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 38459 $as_echo "$ac_ct_OBJCOPY" >&6; } 38460 else 38461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38462 $as_echo "no" >&6; } 38463 fi 38464 38465 38466 test -n "$ac_ct_OBJCOPY" && break 38467 done 38468 38469 if test "x$ac_ct_OBJCOPY" = x; then 38470 OBJCOPY="" 38471 else 38472 case $cross_compiling:$ac_tool_warned in 38473 yes:) 38474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38476 ac_tool_warned=yes ;; 38477 esac 38478 OBJCOPY=$ac_ct_OBJCOPY 38479 fi 38480 fi 38481 38482 else 38483 # If it succeeded, then it was overridden by the user. We will use it 38484 # for the tool. 38485 38486 # First remove it from the list of overridden variables, so we can test 38487 # for unknown variables in the end. 38488 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38489 38490 # Check if the provided tool contains a complete path. 38491 tool_specified="$OBJCOPY" 38492 tool_basename="${tool_specified##*/}" 38493 if test "x$tool_basename" = "x$tool_specified"; then 38494 # A command without a complete path is provided, search $PATH. 38495 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 38496 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 38497 # Extract the first word of "$tool_basename", so it can be a program name with args. 38498 set dummy $tool_basename; ac_word=$2 38499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38500 $as_echo_n "checking for $ac_word... " >&6; } 38501 if ${ac_cv_path_OBJCOPY+:} false; then : 38502 $as_echo_n "(cached) " >&6 38503 else 38504 case $OBJCOPY in 38505 [\\/]* | ?:[\\/]*) 38506 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 38507 ;; 38508 *) 38509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38510 for as_dir in $PATH 38511 do 38512 IFS=$as_save_IFS 38513 test -z "$as_dir" && as_dir=. 38514 for ac_exec_ext in '' $ac_executable_extensions; do 38515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38516 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 38517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38518 break 2 38519 fi 38520 done 38521 done 38522 IFS=$as_save_IFS 38523 38524 ;; 38525 esac 38526 fi 38527 OBJCOPY=$ac_cv_path_OBJCOPY 38528 if test -n "$OBJCOPY"; then 38529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38530 $as_echo "$OBJCOPY" >&6; } 38531 else 38532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38533 $as_echo "no" >&6; } 38534 fi 38535 38536 38537 if test "x$OBJCOPY" = x; then 38538 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38539 fi 38540 else 38541 # Otherwise we believe it is a complete path. Use it as it is. 38542 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 38543 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 38544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 38545 $as_echo_n "checking for OBJCOPY... " >&6; } 38546 if test ! -x "$tool_specified"; then 38547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38548 $as_echo "not found" >&6; } 38549 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 38550 fi 38551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38552 $as_echo "$tool_specified" >&6; } 38553 fi 38554 fi 38555 fi 38556 38557 38558 # Only call fixup if objcopy was found. 38559 if test -n "$OBJCOPY"; then 38560 38561 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38562 38563 # First separate the path from the arguments. This will split at the first 38564 # space. 38565 complete="$OBJCOPY" 38566 path="${complete%% *}" 38567 tmp="$complete EOL" 38568 arguments="${tmp#* }" 38569 38570 # Input might be given as Windows format, start by converting to 38571 # unix format. 38572 new_path=`$CYGPATH -u "$path"` 38573 38574 # Now try to locate executable using which 38575 new_path=`$WHICH "$new_path" 2> /dev/null` 38576 # bat and cmd files are not always considered executable in cygwin causing which 38577 # to not find them 38578 if test "x$new_path" = x \ 38579 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38580 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38581 new_path=`$CYGPATH -u "$path"` 38582 fi 38583 if test "x$new_path" = x; then 38584 # Oops. Which didn't find the executable. 38585 # The splitting of arguments from the executable at a space might have been incorrect, 38586 # since paths with space are more likely in Windows. Give it another try with the whole 38587 # argument. 38588 path="$complete" 38589 arguments="EOL" 38590 new_path=`$CYGPATH -u "$path"` 38591 new_path=`$WHICH "$new_path" 2> /dev/null` 38592 # bat and cmd files are not always considered executable in cygwin causing which 38593 # to not find them 38594 if test "x$new_path" = x \ 38595 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38596 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38597 new_path=`$CYGPATH -u "$path"` 38598 fi 38599 if test "x$new_path" = x; then 38600 # It's still not found. Now this is an unrecoverable error. 38601 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38602 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38603 has_space=`$ECHO "$complete" | $GREP " "` 38604 if test "x$has_space" != x; then 38605 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38606 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38607 fi 38608 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38609 fi 38610 fi 38611 38612 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38613 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38614 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38615 # "foo.exe" is OK but "foo" is an error. 38616 # 38617 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38618 # It is also a way to make sure we got the proper file name for the real test later on. 38619 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38620 if test "x$test_shortpath" = x; then 38621 # Short path failed, file does not exist as specified. 38622 # Try adding .exe or .cmd 38623 if test -f "${new_path}.exe"; then 38624 input_to_shortpath="${new_path}.exe" 38625 elif test -f "${new_path}.cmd"; then 38626 input_to_shortpath="${new_path}.cmd" 38627 else 38628 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 38629 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 38630 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38631 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38632 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38633 fi 38634 else 38635 input_to_shortpath="$new_path" 38636 fi 38637 38638 # Call helper function which possibly converts this using DOS-style short mode. 38639 # If so, the updated path is stored in $new_path. 38640 new_path="$input_to_shortpath" 38641 38642 input_path="$input_to_shortpath" 38643 # Check if we need to convert this using DOS-style short mode. If the path 38644 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38645 # take no chances and rewrite it. 38646 # Note: m4 eats our [], so we need to use [ and ] instead. 38647 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38648 if test "x$has_forbidden_chars" != x; then 38649 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38650 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38651 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38652 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38653 # Going to short mode and back again did indeed matter. Since short mode is 38654 # case insensitive, let's make it lowercase to improve readability. 38655 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38656 # Now convert it back to Unix-stile (cygpath) 38657 input_path=`$CYGPATH -u "$shortmode_path"` 38658 new_path="$input_path" 38659 fi 38660 fi 38661 38662 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38663 if test "x$test_cygdrive_prefix" = x; then 38664 # As a simple fix, exclude /usr/bin since it's not a real path. 38665 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38666 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38667 # a path prefixed by /cygdrive for fixpath to work. 38668 new_path="$CYGWIN_ROOT_PATH$input_path" 38669 fi 38670 fi 38671 38672 # remove trailing .exe if any 38673 new_path="${new_path/%.exe/}" 38674 38675 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38676 38677 # First separate the path from the arguments. This will split at the first 38678 # space. 38679 complete="$OBJCOPY" 38680 path="${complete%% *}" 38681 tmp="$complete EOL" 38682 arguments="${tmp#* }" 38683 38684 # Input might be given as Windows format, start by converting to 38685 # unix format. 38686 new_path="$path" 38687 38688 windows_path="$new_path" 38689 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38690 unix_path=`$CYGPATH -u "$windows_path"` 38691 new_path="$unix_path" 38692 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38693 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38694 new_path="$unix_path" 38695 fi 38696 38697 38698 # Now try to locate executable using which 38699 new_path=`$WHICH "$new_path" 2> /dev/null` 38700 38701 if test "x$new_path" = x; then 38702 # Oops. Which didn't find the executable. 38703 # The splitting of arguments from the executable at a space might have been incorrect, 38704 # since paths with space are more likely in Windows. Give it another try with the whole 38705 # argument. 38706 path="$complete" 38707 arguments="EOL" 38708 new_path="$path" 38709 38710 windows_path="$new_path" 38711 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38712 unix_path=`$CYGPATH -u "$windows_path"` 38713 new_path="$unix_path" 38714 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38715 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38716 new_path="$unix_path" 38717 fi 38718 38719 38720 new_path=`$WHICH "$new_path" 2> /dev/null` 38721 # bat and cmd files are not always considered executable in MSYS causing which 38722 # to not find them 38723 if test "x$new_path" = x \ 38724 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38725 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38726 new_path="$path" 38727 38728 windows_path="$new_path" 38729 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38730 unix_path=`$CYGPATH -u "$windows_path"` 38731 new_path="$unix_path" 38732 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38733 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38734 new_path="$unix_path" 38735 fi 38736 38737 fi 38738 38739 if test "x$new_path" = x; then 38740 # It's still not found. Now this is an unrecoverable error. 38741 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38742 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38743 has_space=`$ECHO "$complete" | $GREP " "` 38744 if test "x$has_space" != x; then 38745 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38746 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38747 fi 38748 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38749 fi 38750 fi 38751 38752 # Now new_path has a complete unix path to the binary 38753 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38754 # Keep paths in /bin as-is, but remove trailing .exe if any 38755 new_path="${new_path/%.exe/}" 38756 # Do not save /bin paths to all_fixpath_prefixes! 38757 else 38758 # Not in mixed or Windows style, start by that. 38759 new_path=`cmd //c echo $new_path` 38760 38761 input_path="$new_path" 38762 # Check if we need to convert this using DOS-style short mode. If the path 38763 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38764 # take no chances and rewrite it. 38765 # Note: m4 eats our [], so we need to use [ and ] instead. 38766 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38767 if test "x$has_forbidden_chars" != x; then 38768 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38769 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38770 fi 38771 38772 # Output is in $new_path 38773 38774 windows_path="$new_path" 38775 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38776 unix_path=`$CYGPATH -u "$windows_path"` 38777 new_path="$unix_path" 38778 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38779 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38780 new_path="$unix_path" 38781 fi 38782 38783 # remove trailing .exe if any 38784 new_path="${new_path/%.exe/}" 38785 38786 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38787 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38788 fi 38789 38790 else 38791 # We're on a posix platform. Hooray! :) 38792 # First separate the path from the arguments. This will split at the first 38793 # space. 38794 complete="$OBJCOPY" 38795 path="${complete%% *}" 38796 tmp="$complete EOL" 38797 arguments="${tmp#* }" 38798 38799 # Cannot rely on the command "which" here since it doesn't always work. 38800 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38801 if test -z "$is_absolute_path"; then 38802 # Path to executable is not absolute. Find it. 38803 IFS_save="$IFS" 38804 IFS=: 38805 for p in $PATH; do 38806 if test -f "$p/$path" && test -x "$p/$path"; then 38807 new_path="$p/$path" 38808 break 38809 fi 38810 done 38811 IFS="$IFS_save" 38812 else 38813 # This is an absolute path, we can use it without further modifications. 38814 new_path="$path" 38815 fi 38816 38817 if test "x$new_path" = x; then 38818 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38819 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38820 has_space=`$ECHO "$complete" | $GREP " "` 38821 if test "x$has_space" != x; then 38822 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38823 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38824 fi 38825 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38826 fi 38827 fi 38828 38829 # Now join together the path and the arguments once again 38830 if test "x$arguments" != xEOL; then 38831 new_complete="$new_path ${arguments% *}" 38832 else 38833 new_complete="$new_path" 38834 fi 38835 38836 if test "x$complete" != "x$new_complete"; then 38837 OBJCOPY="$new_complete" 38838 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 38839 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 38840 fi 38841 38842 fi 38843 fi 38844 38845 38846 38847 # Publish this variable in the help. 38848 38849 38850 if test "x$OBJDUMP" = x; then 38851 # The variable is not set by user, try to locate tool using the code snippet 38852 if test -n "$ac_tool_prefix"; then 38853 for ac_prog in gobjdump objdump 38854 do 38855 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38856 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38858 $as_echo_n "checking for $ac_word... " >&6; } 38859 if ${ac_cv_prog_OBJDUMP+:} false; then : 38860 $as_echo_n "(cached) " >&6 38861 else 38862 if test -n "$OBJDUMP"; then 38863 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38864 else 38865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38866 for as_dir in $PATH 38867 do 38868 IFS=$as_save_IFS 38869 test -z "$as_dir" && as_dir=. 38870 for ac_exec_ext in '' $ac_executable_extensions; do 38871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38872 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38874 break 2 38875 fi 38876 done 38877 done 38878 IFS=$as_save_IFS 38879 38880 fi 38881 fi 38882 OBJDUMP=$ac_cv_prog_OBJDUMP 38883 if test -n "$OBJDUMP"; then 38884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38885 $as_echo "$OBJDUMP" >&6; } 38886 else 38887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38888 $as_echo "no" >&6; } 38889 fi 38890 38891 38892 test -n "$OBJDUMP" && break 38893 done 38894 fi 38895 if test -z "$OBJDUMP"; then 38896 ac_ct_OBJDUMP=$OBJDUMP 38897 for ac_prog in gobjdump objdump 38898 do 38899 # Extract the first word of "$ac_prog", so it can be a program name with args. 38900 set dummy $ac_prog; ac_word=$2 38901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38902 $as_echo_n "checking for $ac_word... " >&6; } 38903 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38904 $as_echo_n "(cached) " >&6 38905 else 38906 if test -n "$ac_ct_OBJDUMP"; then 38907 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38908 else 38909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38910 for as_dir in $PATH 38911 do 38912 IFS=$as_save_IFS 38913 test -z "$as_dir" && as_dir=. 38914 for ac_exec_ext in '' $ac_executable_extensions; do 38915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38916 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38918 break 2 38919 fi 38920 done 38921 done 38922 IFS=$as_save_IFS 38923 38924 fi 38925 fi 38926 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38927 if test -n "$ac_ct_OBJDUMP"; then 38928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38929 $as_echo "$ac_ct_OBJDUMP" >&6; } 38930 else 38931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38932 $as_echo "no" >&6; } 38933 fi 38934 38935 38936 test -n "$ac_ct_OBJDUMP" && break 38937 done 38938 38939 if test "x$ac_ct_OBJDUMP" = x; then 38940 OBJDUMP="" 38941 else 38942 case $cross_compiling:$ac_tool_warned in 38943 yes:) 38944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38946 ac_tool_warned=yes ;; 38947 esac 38948 OBJDUMP=$ac_ct_OBJDUMP 38949 fi 38950 fi 38951 38952 else 38953 # The variable is set, but is it from the command line or the environment? 38954 38955 # Try to remove the string !OBJDUMP! from our list. 38956 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 38957 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38958 # If it failed, the variable was not from the command line. Ignore it, 38959 # but warn the user (except for BASH, which is always set by the calling BASH). 38960 if test "xOBJDUMP" != xBASH; then 38961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 38962 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 38963 fi 38964 # Try to locate tool using the code snippet 38965 if test -n "$ac_tool_prefix"; then 38966 for ac_prog in gobjdump objdump 38967 do 38968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38971 $as_echo_n "checking for $ac_word... " >&6; } 38972 if ${ac_cv_prog_OBJDUMP+:} false; then : 38973 $as_echo_n "(cached) " >&6 38974 else 38975 if test -n "$OBJDUMP"; then 38976 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38977 else 38978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38979 for as_dir in $PATH 38980 do 38981 IFS=$as_save_IFS 38982 test -z "$as_dir" && as_dir=. 38983 for ac_exec_ext in '' $ac_executable_extensions; do 38984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38985 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38987 break 2 38988 fi 38989 done 38990 done 38991 IFS=$as_save_IFS 38992 38993 fi 38994 fi 38995 OBJDUMP=$ac_cv_prog_OBJDUMP 38996 if test -n "$OBJDUMP"; then 38997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38998 $as_echo "$OBJDUMP" >&6; } 38999 else 39000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39001 $as_echo "no" >&6; } 39002 fi 39003 39004 39005 test -n "$OBJDUMP" && break 39006 done 39007 fi 39008 if test -z "$OBJDUMP"; then 39009 ac_ct_OBJDUMP=$OBJDUMP 39010 for ac_prog in gobjdump objdump 39011 do 39012 # Extract the first word of "$ac_prog", so it can be a program name with args. 39013 set dummy $ac_prog; ac_word=$2 39014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39015 $as_echo_n "checking for $ac_word... " >&6; } 39016 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 39017 $as_echo_n "(cached) " >&6 39018 else 39019 if test -n "$ac_ct_OBJDUMP"; then 39020 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 39021 else 39022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39023 for as_dir in $PATH 39024 do 39025 IFS=$as_save_IFS 39026 test -z "$as_dir" && as_dir=. 39027 for ac_exec_ext in '' $ac_executable_extensions; do 39028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39029 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 39030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39031 break 2 39032 fi 39033 done 39034 done 39035 IFS=$as_save_IFS 39036 39037 fi 39038 fi 39039 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 39040 if test -n "$ac_ct_OBJDUMP"; then 39041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 39042 $as_echo "$ac_ct_OBJDUMP" >&6; } 39043 else 39044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39045 $as_echo "no" >&6; } 39046 fi 39047 39048 39049 test -n "$ac_ct_OBJDUMP" && break 39050 done 39051 39052 if test "x$ac_ct_OBJDUMP" = x; then 39053 OBJDUMP="" 39054 else 39055 case $cross_compiling:$ac_tool_warned in 39056 yes:) 39057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 39058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 39059 ac_tool_warned=yes ;; 39060 esac 39061 OBJDUMP=$ac_ct_OBJDUMP 39062 fi 39063 fi 39064 39065 else 39066 # If it succeeded, then it was overridden by the user. We will use it 39067 # for the tool. 39068 39069 # First remove it from the list of overridden variables, so we can test 39070 # for unknown variables in the end. 39071 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39072 39073 # Check if the provided tool contains a complete path. 39074 tool_specified="$OBJDUMP" 39075 tool_basename="${tool_specified##*/}" 39076 if test "x$tool_basename" = "x$tool_specified"; then 39077 # A command without a complete path is provided, search $PATH. 39078 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 39079 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 39080 # Extract the first word of "$tool_basename", so it can be a program name with args. 39081 set dummy $tool_basename; ac_word=$2 39082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39083 $as_echo_n "checking for $ac_word... " >&6; } 39084 if ${ac_cv_path_OBJDUMP+:} false; then : 39085 $as_echo_n "(cached) " >&6 39086 else 39087 case $OBJDUMP in 39088 [\\/]* | ?:[\\/]*) 39089 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 39090 ;; 39091 *) 39092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39093 for as_dir in $PATH 39094 do 39095 IFS=$as_save_IFS 39096 test -z "$as_dir" && as_dir=. 39097 for ac_exec_ext in '' $ac_executable_extensions; do 39098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39099 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 39100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39101 break 2 39102 fi 39103 done 39104 done 39105 IFS=$as_save_IFS 39106 39107 ;; 39108 esac 39109 fi 39110 OBJDUMP=$ac_cv_path_OBJDUMP 39111 if test -n "$OBJDUMP"; then 39112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 39113 $as_echo "$OBJDUMP" >&6; } 39114 else 39115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39116 $as_echo "no" >&6; } 39117 fi 39118 39119 39120 if test "x$OBJDUMP" = x; then 39121 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39122 fi 39123 else 39124 # Otherwise we believe it is a complete path. Use it as it is. 39125 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 39126 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 39127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 39128 $as_echo_n "checking for OBJDUMP... " >&6; } 39129 if test ! -x "$tool_specified"; then 39130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39131 $as_echo "not found" >&6; } 39132 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 39133 fi 39134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39135 $as_echo "$tool_specified" >&6; } 39136 fi 39137 fi 39138 fi 39139 39140 39141 if test "x$OBJDUMP" != x; then 39142 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 39143 # bails if argument is missing. 39144 39145 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39146 39147 # First separate the path from the arguments. This will split at the first 39148 # space. 39149 complete="$OBJDUMP" 39150 path="${complete%% *}" 39151 tmp="$complete EOL" 39152 arguments="${tmp#* }" 39153 39154 # Input might be given as Windows format, start by converting to 39155 # unix format. 39156 new_path=`$CYGPATH -u "$path"` 39157 39158 # Now try to locate executable using which 39159 new_path=`$WHICH "$new_path" 2> /dev/null` 39160 # bat and cmd files are not always considered executable in cygwin causing which 39161 # to not find them 39162 if test "x$new_path" = x \ 39163 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39164 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39165 new_path=`$CYGPATH -u "$path"` 39166 fi 39167 if test "x$new_path" = x; then 39168 # Oops. Which didn't find the executable. 39169 # The splitting of arguments from the executable at a space might have been incorrect, 39170 # since paths with space are more likely in Windows. Give it another try with the whole 39171 # argument. 39172 path="$complete" 39173 arguments="EOL" 39174 new_path=`$CYGPATH -u "$path"` 39175 new_path=`$WHICH "$new_path" 2> /dev/null` 39176 # bat and cmd files are not always considered executable in cygwin causing which 39177 # to not find them 39178 if test "x$new_path" = x \ 39179 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39180 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39181 new_path=`$CYGPATH -u "$path"` 39182 fi 39183 if test "x$new_path" = x; then 39184 # It's still not found. Now this is an unrecoverable error. 39185 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39186 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39187 has_space=`$ECHO "$complete" | $GREP " "` 39188 if test "x$has_space" != x; then 39189 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39190 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39191 fi 39192 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39193 fi 39194 fi 39195 39196 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39197 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39198 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39199 # "foo.exe" is OK but "foo" is an error. 39200 # 39201 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39202 # It is also a way to make sure we got the proper file name for the real test later on. 39203 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39204 if test "x$test_shortpath" = x; then 39205 # Short path failed, file does not exist as specified. 39206 # Try adding .exe or .cmd 39207 if test -f "${new_path}.exe"; then 39208 input_to_shortpath="${new_path}.exe" 39209 elif test -f "${new_path}.cmd"; then 39210 input_to_shortpath="${new_path}.cmd" 39211 else 39212 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 39213 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 39214 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39215 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39216 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39217 fi 39218 else 39219 input_to_shortpath="$new_path" 39220 fi 39221 39222 # Call helper function which possibly converts this using DOS-style short mode. 39223 # If so, the updated path is stored in $new_path. 39224 new_path="$input_to_shortpath" 39225 39226 input_path="$input_to_shortpath" 39227 # Check if we need to convert this using DOS-style short mode. If the path 39228 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39229 # take no chances and rewrite it. 39230 # Note: m4 eats our [], so we need to use [ and ] instead. 39231 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39232 if test "x$has_forbidden_chars" != x; then 39233 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39234 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39235 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39236 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39237 # Going to short mode and back again did indeed matter. Since short mode is 39238 # case insensitive, let's make it lowercase to improve readability. 39239 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39240 # Now convert it back to Unix-stile (cygpath) 39241 input_path=`$CYGPATH -u "$shortmode_path"` 39242 new_path="$input_path" 39243 fi 39244 fi 39245 39246 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39247 if test "x$test_cygdrive_prefix" = x; then 39248 # As a simple fix, exclude /usr/bin since it's not a real path. 39249 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39250 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39251 # a path prefixed by /cygdrive for fixpath to work. 39252 new_path="$CYGWIN_ROOT_PATH$input_path" 39253 fi 39254 fi 39255 39256 # remove trailing .exe if any 39257 new_path="${new_path/%.exe/}" 39258 39259 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39260 39261 # First separate the path from the arguments. This will split at the first 39262 # space. 39263 complete="$OBJDUMP" 39264 path="${complete%% *}" 39265 tmp="$complete EOL" 39266 arguments="${tmp#* }" 39267 39268 # Input might be given as Windows format, start by converting to 39269 # unix format. 39270 new_path="$path" 39271 39272 windows_path="$new_path" 39273 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39274 unix_path=`$CYGPATH -u "$windows_path"` 39275 new_path="$unix_path" 39276 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39277 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39278 new_path="$unix_path" 39279 fi 39280 39281 39282 # Now try to locate executable using which 39283 new_path=`$WHICH "$new_path" 2> /dev/null` 39284 39285 if test "x$new_path" = x; then 39286 # Oops. Which didn't find the executable. 39287 # The splitting of arguments from the executable at a space might have been incorrect, 39288 # since paths with space are more likely in Windows. Give it another try with the whole 39289 # argument. 39290 path="$complete" 39291 arguments="EOL" 39292 new_path="$path" 39293 39294 windows_path="$new_path" 39295 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39296 unix_path=`$CYGPATH -u "$windows_path"` 39297 new_path="$unix_path" 39298 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39299 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39300 new_path="$unix_path" 39301 fi 39302 39303 39304 new_path=`$WHICH "$new_path" 2> /dev/null` 39305 # bat and cmd files are not always considered executable in MSYS causing which 39306 # to not find them 39307 if test "x$new_path" = x \ 39308 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39309 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39310 new_path="$path" 39311 39312 windows_path="$new_path" 39313 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39314 unix_path=`$CYGPATH -u "$windows_path"` 39315 new_path="$unix_path" 39316 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39317 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39318 new_path="$unix_path" 39319 fi 39320 39321 fi 39322 39323 if test "x$new_path" = x; then 39324 # It's still not found. Now this is an unrecoverable error. 39325 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39326 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39327 has_space=`$ECHO "$complete" | $GREP " "` 39328 if test "x$has_space" != x; then 39329 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39330 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39331 fi 39332 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39333 fi 39334 fi 39335 39336 # Now new_path has a complete unix path to the binary 39337 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39338 # Keep paths in /bin as-is, but remove trailing .exe if any 39339 new_path="${new_path/%.exe/}" 39340 # Do not save /bin paths to all_fixpath_prefixes! 39341 else 39342 # Not in mixed or Windows style, start by that. 39343 new_path=`cmd //c echo $new_path` 39344 39345 input_path="$new_path" 39346 # Check if we need to convert this using DOS-style short mode. If the path 39347 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39348 # take no chances and rewrite it. 39349 # Note: m4 eats our [], so we need to use [ and ] instead. 39350 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39351 if test "x$has_forbidden_chars" != x; then 39352 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39353 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39354 fi 39355 39356 # Output is in $new_path 39357 39358 windows_path="$new_path" 39359 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39360 unix_path=`$CYGPATH -u "$windows_path"` 39361 new_path="$unix_path" 39362 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39363 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39364 new_path="$unix_path" 39365 fi 39366 39367 # remove trailing .exe if any 39368 new_path="${new_path/%.exe/}" 39369 39370 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39371 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39372 fi 39373 39374 else 39375 # We're on a posix platform. Hooray! :) 39376 # First separate the path from the arguments. This will split at the first 39377 # space. 39378 complete="$OBJDUMP" 39379 path="${complete%% *}" 39380 tmp="$complete EOL" 39381 arguments="${tmp#* }" 39382 39383 # Cannot rely on the command "which" here since it doesn't always work. 39384 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39385 if test -z "$is_absolute_path"; then 39386 # Path to executable is not absolute. Find it. 39387 IFS_save="$IFS" 39388 IFS=: 39389 for p in $PATH; do 39390 if test -f "$p/$path" && test -x "$p/$path"; then 39391 new_path="$p/$path" 39392 break 39393 fi 39394 done 39395 IFS="$IFS_save" 39396 else 39397 # This is an absolute path, we can use it without further modifications. 39398 new_path="$path" 39399 fi 39400 39401 if test "x$new_path" = x; then 39402 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39403 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39404 has_space=`$ECHO "$complete" | $GREP " "` 39405 if test "x$has_space" != x; then 39406 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39407 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39408 fi 39409 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39410 fi 39411 fi 39412 39413 # Now join together the path and the arguments once again 39414 if test "x$arguments" != xEOL; then 39415 new_complete="$new_path ${arguments% *}" 39416 else 39417 new_complete="$new_path" 39418 fi 39419 39420 if test "x$complete" != "x$new_complete"; then 39421 OBJDUMP="$new_complete" 39422 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 39423 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 39424 fi 39425 39426 fi 39427 39428 39429 # Restore old path. 39430 PATH="$OLD_PATH" 39431 39432 # Restore the flags to the user specified values. 39433 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 39434 CFLAGS="$ORG_CFLAGS" 39435 CXXFLAGS="$ORG_CXXFLAGS" 39436 OBJCFLAGS="$ORG_OBJCFLAGS" 39437 39438 39439 # Finally do some processing after the detection phase 39440 39441 if test "x$COMPILE_TYPE" = "xcross"; then 39442 # Now we need to find a C/C++ compiler that can build executables for the 39443 # build platform. We can't use the AC_PROG_CC macro, since it can only be 39444 # used once. Also, we need to do this without adding a tools dir to the 39445 # path, otherwise we might pick up cross-compilers which don't use standard 39446 # naming. 39447 39448 # FIXME: we should list the discovered compilers as an exclude pattern! 39449 # If we do that, we can do this detection before POST_DETECTION, and still 39450 # find the build compilers in the tools dir, if needed. 39451 39452 39453 # Publish this variable in the help. 39454 39455 39456 if test "x$BUILD_CC" = x; then 39457 # The variable is not set by user, try to locate tool using the code snippet 39458 for ac_prog in cl cc gcc 39459 do 39460 # Extract the first word of "$ac_prog", so it can be a program name with args. 39461 set dummy $ac_prog; ac_word=$2 39462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39463 $as_echo_n "checking for $ac_word... " >&6; } 39464 if ${ac_cv_path_BUILD_CC+:} false; then : 39465 $as_echo_n "(cached) " >&6 39466 else 39467 case $BUILD_CC in 39468 [\\/]* | ?:[\\/]*) 39469 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39470 ;; 39471 *) 39472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39473 for as_dir in $PATH 39474 do 39475 IFS=$as_save_IFS 39476 test -z "$as_dir" && as_dir=. 39477 for ac_exec_ext in '' $ac_executable_extensions; do 39478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39479 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39481 break 2 39482 fi 39483 done 39484 done 39485 IFS=$as_save_IFS 39486 39487 ;; 39488 esac 39489 fi 39490 BUILD_CC=$ac_cv_path_BUILD_CC 39491 if test -n "$BUILD_CC"; then 39492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39493 $as_echo "$BUILD_CC" >&6; } 39494 else 39495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39496 $as_echo "no" >&6; } 39497 fi 39498 39499 39500 test -n "$BUILD_CC" && break 39501 done 39502 39503 else 39504 # The variable is set, but is it from the command line or the environment? 39505 39506 # Try to remove the string !BUILD_CC! from our list. 39507 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 39508 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39509 # If it failed, the variable was not from the command line. Ignore it, 39510 # but warn the user (except for BASH, which is always set by the calling BASH). 39511 if test "xBUILD_CC" != xBASH; then 39512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 39513 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 39514 fi 39515 # Try to locate tool using the code snippet 39516 for ac_prog in cl cc gcc 39517 do 39518 # Extract the first word of "$ac_prog", so it can be a program name with args. 39519 set dummy $ac_prog; ac_word=$2 39520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39521 $as_echo_n "checking for $ac_word... " >&6; } 39522 if ${ac_cv_path_BUILD_CC+:} false; then : 39523 $as_echo_n "(cached) " >&6 39524 else 39525 case $BUILD_CC in 39526 [\\/]* | ?:[\\/]*) 39527 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39528 ;; 39529 *) 39530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39531 for as_dir in $PATH 39532 do 39533 IFS=$as_save_IFS 39534 test -z "$as_dir" && as_dir=. 39535 for ac_exec_ext in '' $ac_executable_extensions; do 39536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39537 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39539 break 2 39540 fi 39541 done 39542 done 39543 IFS=$as_save_IFS 39544 39545 ;; 39546 esac 39547 fi 39548 BUILD_CC=$ac_cv_path_BUILD_CC 39549 if test -n "$BUILD_CC"; then 39550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39551 $as_echo "$BUILD_CC" >&6; } 39552 else 39553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39554 $as_echo "no" >&6; } 39555 fi 39556 39557 39558 test -n "$BUILD_CC" && break 39559 done 39560 39561 else 39562 # If it succeeded, then it was overridden by the user. We will use it 39563 # for the tool. 39564 39565 # First remove it from the list of overridden variables, so we can test 39566 # for unknown variables in the end. 39567 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39568 39569 # Check if the provided tool contains a complete path. 39570 tool_specified="$BUILD_CC" 39571 tool_basename="${tool_specified##*/}" 39572 if test "x$tool_basename" = "x$tool_specified"; then 39573 # A command without a complete path is provided, search $PATH. 39574 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 39575 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 39576 # Extract the first word of "$tool_basename", so it can be a program name with args. 39577 set dummy $tool_basename; ac_word=$2 39578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39579 $as_echo_n "checking for $ac_word... " >&6; } 39580 if ${ac_cv_path_BUILD_CC+:} false; then : 39581 $as_echo_n "(cached) " >&6 39582 else 39583 case $BUILD_CC in 39584 [\\/]* | ?:[\\/]*) 39585 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39586 ;; 39587 *) 39588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39589 for as_dir in $PATH 39590 do 39591 IFS=$as_save_IFS 39592 test -z "$as_dir" && as_dir=. 39593 for ac_exec_ext in '' $ac_executable_extensions; do 39594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39595 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39597 break 2 39598 fi 39599 done 39600 done 39601 IFS=$as_save_IFS 39602 39603 ;; 39604 esac 39605 fi 39606 BUILD_CC=$ac_cv_path_BUILD_CC 39607 if test -n "$BUILD_CC"; then 39608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39609 $as_echo "$BUILD_CC" >&6; } 39610 else 39611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39612 $as_echo "no" >&6; } 39613 fi 39614 39615 39616 if test "x$BUILD_CC" = x; then 39617 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39618 fi 39619 else 39620 # Otherwise we believe it is a complete path. Use it as it is. 39621 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 39622 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 39623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 39624 $as_echo_n "checking for BUILD_CC... " >&6; } 39625 if test ! -x "$tool_specified"; then 39626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39627 $as_echo "not found" >&6; } 39628 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 39629 fi 39630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39631 $as_echo "$tool_specified" >&6; } 39632 fi 39633 fi 39634 fi 39635 39636 39637 39638 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39639 39640 # First separate the path from the arguments. This will split at the first 39641 # space. 39642 complete="$BUILD_CC" 39643 path="${complete%% *}" 39644 tmp="$complete EOL" 39645 arguments="${tmp#* }" 39646 39647 # Input might be given as Windows format, start by converting to 39648 # unix format. 39649 new_path=`$CYGPATH -u "$path"` 39650 39651 # Now try to locate executable using which 39652 new_path=`$WHICH "$new_path" 2> /dev/null` 39653 # bat and cmd files are not always considered executable in cygwin causing which 39654 # to not find them 39655 if test "x$new_path" = x \ 39656 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39657 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39658 new_path=`$CYGPATH -u "$path"` 39659 fi 39660 if test "x$new_path" = x; then 39661 # Oops. Which didn't find the executable. 39662 # The splitting of arguments from the executable at a space might have been incorrect, 39663 # since paths with space are more likely in Windows. Give it another try with the whole 39664 # argument. 39665 path="$complete" 39666 arguments="EOL" 39667 new_path=`$CYGPATH -u "$path"` 39668 new_path=`$WHICH "$new_path" 2> /dev/null` 39669 # bat and cmd files are not always considered executable in cygwin causing which 39670 # to not find them 39671 if test "x$new_path" = x \ 39672 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39673 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39674 new_path=`$CYGPATH -u "$path"` 39675 fi 39676 if test "x$new_path" = x; then 39677 # It's still not found. Now this is an unrecoverable error. 39678 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39679 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39680 has_space=`$ECHO "$complete" | $GREP " "` 39681 if test "x$has_space" != x; then 39682 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39683 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39684 fi 39685 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39686 fi 39687 fi 39688 39689 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39690 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39691 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39692 # "foo.exe" is OK but "foo" is an error. 39693 # 39694 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39695 # It is also a way to make sure we got the proper file name for the real test later on. 39696 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39697 if test "x$test_shortpath" = x; then 39698 # Short path failed, file does not exist as specified. 39699 # Try adding .exe or .cmd 39700 if test -f "${new_path}.exe"; then 39701 input_to_shortpath="${new_path}.exe" 39702 elif test -f "${new_path}.cmd"; then 39703 input_to_shortpath="${new_path}.cmd" 39704 else 39705 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 39706 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 39707 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39708 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39709 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39710 fi 39711 else 39712 input_to_shortpath="$new_path" 39713 fi 39714 39715 # Call helper function which possibly converts this using DOS-style short mode. 39716 # If so, the updated path is stored in $new_path. 39717 new_path="$input_to_shortpath" 39718 39719 input_path="$input_to_shortpath" 39720 # Check if we need to convert this using DOS-style short mode. If the path 39721 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39722 # take no chances and rewrite it. 39723 # Note: m4 eats our [], so we need to use [ and ] instead. 39724 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39725 if test "x$has_forbidden_chars" != x; then 39726 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39727 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39728 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39729 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39730 # Going to short mode and back again did indeed matter. Since short mode is 39731 # case insensitive, let's make it lowercase to improve readability. 39732 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39733 # Now convert it back to Unix-stile (cygpath) 39734 input_path=`$CYGPATH -u "$shortmode_path"` 39735 new_path="$input_path" 39736 fi 39737 fi 39738 39739 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39740 if test "x$test_cygdrive_prefix" = x; then 39741 # As a simple fix, exclude /usr/bin since it's not a real path. 39742 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39743 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39744 # a path prefixed by /cygdrive for fixpath to work. 39745 new_path="$CYGWIN_ROOT_PATH$input_path" 39746 fi 39747 fi 39748 39749 # remove trailing .exe if any 39750 new_path="${new_path/%.exe/}" 39751 39752 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39753 39754 # First separate the path from the arguments. This will split at the first 39755 # space. 39756 complete="$BUILD_CC" 39757 path="${complete%% *}" 39758 tmp="$complete EOL" 39759 arguments="${tmp#* }" 39760 39761 # Input might be given as Windows format, start by converting to 39762 # unix format. 39763 new_path="$path" 39764 39765 windows_path="$new_path" 39766 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39767 unix_path=`$CYGPATH -u "$windows_path"` 39768 new_path="$unix_path" 39769 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39770 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39771 new_path="$unix_path" 39772 fi 39773 39774 39775 # Now try to locate executable using which 39776 new_path=`$WHICH "$new_path" 2> /dev/null` 39777 39778 if test "x$new_path" = x; then 39779 # Oops. Which didn't find the executable. 39780 # The splitting of arguments from the executable at a space might have been incorrect, 39781 # since paths with space are more likely in Windows. Give it another try with the whole 39782 # argument. 39783 path="$complete" 39784 arguments="EOL" 39785 new_path="$path" 39786 39787 windows_path="$new_path" 39788 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39789 unix_path=`$CYGPATH -u "$windows_path"` 39790 new_path="$unix_path" 39791 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39792 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39793 new_path="$unix_path" 39794 fi 39795 39796 39797 new_path=`$WHICH "$new_path" 2> /dev/null` 39798 # bat and cmd files are not always considered executable in MSYS causing which 39799 # to not find them 39800 if test "x$new_path" = x \ 39801 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39802 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39803 new_path="$path" 39804 39805 windows_path="$new_path" 39806 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39807 unix_path=`$CYGPATH -u "$windows_path"` 39808 new_path="$unix_path" 39809 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39810 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39811 new_path="$unix_path" 39812 fi 39813 39814 fi 39815 39816 if test "x$new_path" = x; then 39817 # It's still not found. Now this is an unrecoverable error. 39818 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39819 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39820 has_space=`$ECHO "$complete" | $GREP " "` 39821 if test "x$has_space" != x; then 39822 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39823 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39824 fi 39825 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39826 fi 39827 fi 39828 39829 # Now new_path has a complete unix path to the binary 39830 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39831 # Keep paths in /bin as-is, but remove trailing .exe if any 39832 new_path="${new_path/%.exe/}" 39833 # Do not save /bin paths to all_fixpath_prefixes! 39834 else 39835 # Not in mixed or Windows style, start by that. 39836 new_path=`cmd //c echo $new_path` 39837 39838 input_path="$new_path" 39839 # Check if we need to convert this using DOS-style short mode. If the path 39840 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39841 # take no chances and rewrite it. 39842 # Note: m4 eats our [], so we need to use [ and ] instead. 39843 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39844 if test "x$has_forbidden_chars" != x; then 39845 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39846 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39847 fi 39848 39849 # Output is in $new_path 39850 39851 windows_path="$new_path" 39852 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39853 unix_path=`$CYGPATH -u "$windows_path"` 39854 new_path="$unix_path" 39855 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39856 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39857 new_path="$unix_path" 39858 fi 39859 39860 # remove trailing .exe if any 39861 new_path="${new_path/%.exe/}" 39862 39863 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39864 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39865 fi 39866 39867 else 39868 # We're on a posix platform. Hooray! :) 39869 # First separate the path from the arguments. This will split at the first 39870 # space. 39871 complete="$BUILD_CC" 39872 path="${complete%% *}" 39873 tmp="$complete EOL" 39874 arguments="${tmp#* }" 39875 39876 # Cannot rely on the command "which" here since it doesn't always work. 39877 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39878 if test -z "$is_absolute_path"; then 39879 # Path to executable is not absolute. Find it. 39880 IFS_save="$IFS" 39881 IFS=: 39882 for p in $PATH; do 39883 if test -f "$p/$path" && test -x "$p/$path"; then 39884 new_path="$p/$path" 39885 break 39886 fi 39887 done 39888 IFS="$IFS_save" 39889 else 39890 # This is an absolute path, we can use it without further modifications. 39891 new_path="$path" 39892 fi 39893 39894 if test "x$new_path" = x; then 39895 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39896 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39897 has_space=`$ECHO "$complete" | $GREP " "` 39898 if test "x$has_space" != x; then 39899 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39900 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39901 fi 39902 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39903 fi 39904 fi 39905 39906 # Now join together the path and the arguments once again 39907 if test "x$arguments" != xEOL; then 39908 new_complete="$new_path ${arguments% *}" 39909 else 39910 new_complete="$new_path" 39911 fi 39912 39913 if test "x$complete" != "x$new_complete"; then 39914 BUILD_CC="$new_complete" 39915 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 39916 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 39917 fi 39918 39919 39920 39921 # Publish this variable in the help. 39922 39923 39924 if test "x$BUILD_CXX" = x; then 39925 # The variable is not set by user, try to locate tool using the code snippet 39926 for ac_prog in cl CC g++ 39927 do 39928 # Extract the first word of "$ac_prog", so it can be a program name with args. 39929 set dummy $ac_prog; ac_word=$2 39930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39931 $as_echo_n "checking for $ac_word... " >&6; } 39932 if ${ac_cv_path_BUILD_CXX+:} false; then : 39933 $as_echo_n "(cached) " >&6 39934 else 39935 case $BUILD_CXX in 39936 [\\/]* | ?:[\\/]*) 39937 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39938 ;; 39939 *) 39940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39941 for as_dir in $PATH 39942 do 39943 IFS=$as_save_IFS 39944 test -z "$as_dir" && as_dir=. 39945 for ac_exec_ext in '' $ac_executable_extensions; do 39946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39947 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39949 break 2 39950 fi 39951 done 39952 done 39953 IFS=$as_save_IFS 39954 39955 ;; 39956 esac 39957 fi 39958 BUILD_CXX=$ac_cv_path_BUILD_CXX 39959 if test -n "$BUILD_CXX"; then 39960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39961 $as_echo "$BUILD_CXX" >&6; } 39962 else 39963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39964 $as_echo "no" >&6; } 39965 fi 39966 39967 39968 test -n "$BUILD_CXX" && break 39969 done 39970 39971 else 39972 # The variable is set, but is it from the command line or the environment? 39973 39974 # Try to remove the string !BUILD_CXX! from our list. 39975 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 39976 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39977 # If it failed, the variable was not from the command line. Ignore it, 39978 # but warn the user (except for BASH, which is always set by the calling BASH). 39979 if test "xBUILD_CXX" != xBASH; then 39980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 39981 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 39982 fi 39983 # Try to locate tool using the code snippet 39984 for ac_prog in cl CC g++ 39985 do 39986 # Extract the first word of "$ac_prog", so it can be a program name with args. 39987 set dummy $ac_prog; ac_word=$2 39988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39989 $as_echo_n "checking for $ac_word... " >&6; } 39990 if ${ac_cv_path_BUILD_CXX+:} false; then : 39991 $as_echo_n "(cached) " >&6 39992 else 39993 case $BUILD_CXX in 39994 [\\/]* | ?:[\\/]*) 39995 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39996 ;; 39997 *) 39998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39999 for as_dir in $PATH 40000 do 40001 IFS=$as_save_IFS 40002 test -z "$as_dir" && as_dir=. 40003 for ac_exec_ext in '' $ac_executable_extensions; do 40004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40005 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 40006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40007 break 2 40008 fi 40009 done 40010 done 40011 IFS=$as_save_IFS 40012 40013 ;; 40014 esac 40015 fi 40016 BUILD_CXX=$ac_cv_path_BUILD_CXX 40017 if test -n "$BUILD_CXX"; then 40018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 40019 $as_echo "$BUILD_CXX" >&6; } 40020 else 40021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40022 $as_echo "no" >&6; } 40023 fi 40024 40025 40026 test -n "$BUILD_CXX" && break 40027 done 40028 40029 else 40030 # If it succeeded, then it was overridden by the user. We will use it 40031 # for the tool. 40032 40033 # First remove it from the list of overridden variables, so we can test 40034 # for unknown variables in the end. 40035 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40036 40037 # Check if the provided tool contains a complete path. 40038 tool_specified="$BUILD_CXX" 40039 tool_basename="${tool_specified##*/}" 40040 if test "x$tool_basename" = "x$tool_specified"; then 40041 # A command without a complete path is provided, search $PATH. 40042 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 40043 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 40044 # Extract the first word of "$tool_basename", so it can be a program name with args. 40045 set dummy $tool_basename; ac_word=$2 40046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40047 $as_echo_n "checking for $ac_word... " >&6; } 40048 if ${ac_cv_path_BUILD_CXX+:} false; then : 40049 $as_echo_n "(cached) " >&6 40050 else 40051 case $BUILD_CXX in 40052 [\\/]* | ?:[\\/]*) 40053 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 40054 ;; 40055 *) 40056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40057 for as_dir in $PATH 40058 do 40059 IFS=$as_save_IFS 40060 test -z "$as_dir" && as_dir=. 40061 for ac_exec_ext in '' $ac_executable_extensions; do 40062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40063 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 40064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40065 break 2 40066 fi 40067 done 40068 done 40069 IFS=$as_save_IFS 40070 40071 ;; 40072 esac 40073 fi 40074 BUILD_CXX=$ac_cv_path_BUILD_CXX 40075 if test -n "$BUILD_CXX"; then 40076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 40077 $as_echo "$BUILD_CXX" >&6; } 40078 else 40079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40080 $as_echo "no" >&6; } 40081 fi 40082 40083 40084 if test "x$BUILD_CXX" = x; then 40085 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40086 fi 40087 else 40088 # Otherwise we believe it is a complete path. Use it as it is. 40089 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 40090 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 40091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 40092 $as_echo_n "checking for BUILD_CXX... " >&6; } 40093 if test ! -x "$tool_specified"; then 40094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40095 $as_echo "not found" >&6; } 40096 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 40097 fi 40098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40099 $as_echo "$tool_specified" >&6; } 40100 fi 40101 fi 40102 fi 40103 40104 40105 40106 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40107 40108 # First separate the path from the arguments. This will split at the first 40109 # space. 40110 complete="$BUILD_CXX" 40111 path="${complete%% *}" 40112 tmp="$complete EOL" 40113 arguments="${tmp#* }" 40114 40115 # Input might be given as Windows format, start by converting to 40116 # unix format. 40117 new_path=`$CYGPATH -u "$path"` 40118 40119 # Now try to locate executable using which 40120 new_path=`$WHICH "$new_path" 2> /dev/null` 40121 # bat and cmd files are not always considered executable in cygwin causing which 40122 # to not find them 40123 if test "x$new_path" = x \ 40124 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40125 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40126 new_path=`$CYGPATH -u "$path"` 40127 fi 40128 if test "x$new_path" = x; then 40129 # Oops. Which didn't find the executable. 40130 # The splitting of arguments from the executable at a space might have been incorrect, 40131 # since paths with space are more likely in Windows. Give it another try with the whole 40132 # argument. 40133 path="$complete" 40134 arguments="EOL" 40135 new_path=`$CYGPATH -u "$path"` 40136 new_path=`$WHICH "$new_path" 2> /dev/null` 40137 # bat and cmd files are not always considered executable in cygwin causing which 40138 # to not find them 40139 if test "x$new_path" = x \ 40140 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40141 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40142 new_path=`$CYGPATH -u "$path"` 40143 fi 40144 if test "x$new_path" = x; then 40145 # It's still not found. Now this is an unrecoverable error. 40146 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40147 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40148 has_space=`$ECHO "$complete" | $GREP " "` 40149 if test "x$has_space" != x; then 40150 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40151 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40152 fi 40153 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40154 fi 40155 fi 40156 40157 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40158 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40159 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40160 # "foo.exe" is OK but "foo" is an error. 40161 # 40162 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40163 # It is also a way to make sure we got the proper file name for the real test later on. 40164 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40165 if test "x$test_shortpath" = x; then 40166 # Short path failed, file does not exist as specified. 40167 # Try adding .exe or .cmd 40168 if test -f "${new_path}.exe"; then 40169 input_to_shortpath="${new_path}.exe" 40170 elif test -f "${new_path}.cmd"; then 40171 input_to_shortpath="${new_path}.cmd" 40172 else 40173 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 40174 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 40175 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40176 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40177 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40178 fi 40179 else 40180 input_to_shortpath="$new_path" 40181 fi 40182 40183 # Call helper function which possibly converts this using DOS-style short mode. 40184 # If so, the updated path is stored in $new_path. 40185 new_path="$input_to_shortpath" 40186 40187 input_path="$input_to_shortpath" 40188 # Check if we need to convert this using DOS-style short mode. If the path 40189 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40190 # take no chances and rewrite it. 40191 # Note: m4 eats our [], so we need to use [ and ] instead. 40192 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40193 if test "x$has_forbidden_chars" != x; then 40194 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40195 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40196 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40197 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40198 # Going to short mode and back again did indeed matter. Since short mode is 40199 # case insensitive, let's make it lowercase to improve readability. 40200 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40201 # Now convert it back to Unix-stile (cygpath) 40202 input_path=`$CYGPATH -u "$shortmode_path"` 40203 new_path="$input_path" 40204 fi 40205 fi 40206 40207 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40208 if test "x$test_cygdrive_prefix" = x; then 40209 # As a simple fix, exclude /usr/bin since it's not a real path. 40210 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40211 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40212 # a path prefixed by /cygdrive for fixpath to work. 40213 new_path="$CYGWIN_ROOT_PATH$input_path" 40214 fi 40215 fi 40216 40217 # remove trailing .exe if any 40218 new_path="${new_path/%.exe/}" 40219 40220 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40221 40222 # First separate the path from the arguments. This will split at the first 40223 # space. 40224 complete="$BUILD_CXX" 40225 path="${complete%% *}" 40226 tmp="$complete EOL" 40227 arguments="${tmp#* }" 40228 40229 # Input might be given as Windows format, start by converting to 40230 # unix format. 40231 new_path="$path" 40232 40233 windows_path="$new_path" 40234 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40235 unix_path=`$CYGPATH -u "$windows_path"` 40236 new_path="$unix_path" 40237 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40238 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40239 new_path="$unix_path" 40240 fi 40241 40242 40243 # Now try to locate executable using which 40244 new_path=`$WHICH "$new_path" 2> /dev/null` 40245 40246 if test "x$new_path" = x; then 40247 # Oops. Which didn't find the executable. 40248 # The splitting of arguments from the executable at a space might have been incorrect, 40249 # since paths with space are more likely in Windows. Give it another try with the whole 40250 # argument. 40251 path="$complete" 40252 arguments="EOL" 40253 new_path="$path" 40254 40255 windows_path="$new_path" 40256 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40257 unix_path=`$CYGPATH -u "$windows_path"` 40258 new_path="$unix_path" 40259 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40260 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40261 new_path="$unix_path" 40262 fi 40263 40264 40265 new_path=`$WHICH "$new_path" 2> /dev/null` 40266 # bat and cmd files are not always considered executable in MSYS causing which 40267 # to not find them 40268 if test "x$new_path" = x \ 40269 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40270 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40271 new_path="$path" 40272 40273 windows_path="$new_path" 40274 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40275 unix_path=`$CYGPATH -u "$windows_path"` 40276 new_path="$unix_path" 40277 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40278 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40279 new_path="$unix_path" 40280 fi 40281 40282 fi 40283 40284 if test "x$new_path" = x; then 40285 # It's still not found. Now this is an unrecoverable error. 40286 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40287 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40288 has_space=`$ECHO "$complete" | $GREP " "` 40289 if test "x$has_space" != x; then 40290 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40291 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40292 fi 40293 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40294 fi 40295 fi 40296 40297 # Now new_path has a complete unix path to the binary 40298 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40299 # Keep paths in /bin as-is, but remove trailing .exe if any 40300 new_path="${new_path/%.exe/}" 40301 # Do not save /bin paths to all_fixpath_prefixes! 40302 else 40303 # Not in mixed or Windows style, start by that. 40304 new_path=`cmd //c echo $new_path` 40305 40306 input_path="$new_path" 40307 # Check if we need to convert this using DOS-style short mode. If the path 40308 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40309 # take no chances and rewrite it. 40310 # Note: m4 eats our [], so we need to use [ and ] instead. 40311 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40312 if test "x$has_forbidden_chars" != x; then 40313 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40314 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40315 fi 40316 40317 # Output is in $new_path 40318 40319 windows_path="$new_path" 40320 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40321 unix_path=`$CYGPATH -u "$windows_path"` 40322 new_path="$unix_path" 40323 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40324 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40325 new_path="$unix_path" 40326 fi 40327 40328 # remove trailing .exe if any 40329 new_path="${new_path/%.exe/}" 40330 40331 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40332 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40333 fi 40334 40335 else 40336 # We're on a posix platform. Hooray! :) 40337 # First separate the path from the arguments. This will split at the first 40338 # space. 40339 complete="$BUILD_CXX" 40340 path="${complete%% *}" 40341 tmp="$complete EOL" 40342 arguments="${tmp#* }" 40343 40344 # Cannot rely on the command "which" here since it doesn't always work. 40345 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40346 if test -z "$is_absolute_path"; then 40347 # Path to executable is not absolute. Find it. 40348 IFS_save="$IFS" 40349 IFS=: 40350 for p in $PATH; do 40351 if test -f "$p/$path" && test -x "$p/$path"; then 40352 new_path="$p/$path" 40353 break 40354 fi 40355 done 40356 IFS="$IFS_save" 40357 else 40358 # This is an absolute path, we can use it without further modifications. 40359 new_path="$path" 40360 fi 40361 40362 if test "x$new_path" = x; then 40363 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40364 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40365 has_space=`$ECHO "$complete" | $GREP " "` 40366 if test "x$has_space" != x; then 40367 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40368 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40369 fi 40370 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40371 fi 40372 fi 40373 40374 # Now join together the path and the arguments once again 40375 if test "x$arguments" != xEOL; then 40376 new_complete="$new_path ${arguments% *}" 40377 else 40378 new_complete="$new_path" 40379 fi 40380 40381 if test "x$complete" != "x$new_complete"; then 40382 BUILD_CXX="$new_complete" 40383 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 40384 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 40385 fi 40386 40387 40388 40389 # Publish this variable in the help. 40390 40391 40392 if test "x$BUILD_LD" = x; then 40393 # The variable is not set by user, try to locate tool using the code snippet 40394 for ac_prog in ld 40395 do 40396 # Extract the first word of "$ac_prog", so it can be a program name with args. 40397 set dummy $ac_prog; ac_word=$2 40398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40399 $as_echo_n "checking for $ac_word... " >&6; } 40400 if ${ac_cv_path_BUILD_LD+:} false; then : 40401 $as_echo_n "(cached) " >&6 40402 else 40403 case $BUILD_LD in 40404 [\\/]* | ?:[\\/]*) 40405 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40406 ;; 40407 *) 40408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40409 for as_dir in $PATH 40410 do 40411 IFS=$as_save_IFS 40412 test -z "$as_dir" && as_dir=. 40413 for ac_exec_ext in '' $ac_executable_extensions; do 40414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40415 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40417 break 2 40418 fi 40419 done 40420 done 40421 IFS=$as_save_IFS 40422 40423 ;; 40424 esac 40425 fi 40426 BUILD_LD=$ac_cv_path_BUILD_LD 40427 if test -n "$BUILD_LD"; then 40428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40429 $as_echo "$BUILD_LD" >&6; } 40430 else 40431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40432 $as_echo "no" >&6; } 40433 fi 40434 40435 40436 test -n "$BUILD_LD" && break 40437 done 40438 40439 else 40440 # The variable is set, but is it from the command line or the environment? 40441 40442 # Try to remove the string !BUILD_LD! from our list. 40443 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_LD!/} 40444 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40445 # If it failed, the variable was not from the command line. Ignore it, 40446 # but warn the user (except for BASH, which is always set by the calling BASH). 40447 if test "xBUILD_LD" != xBASH; then 40448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&5 40449 $as_echo "$as_me: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&2;} 40450 fi 40451 # Try to locate tool using the code snippet 40452 for ac_prog in ld 40453 do 40454 # Extract the first word of "$ac_prog", so it can be a program name with args. 40455 set dummy $ac_prog; ac_word=$2 40456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40457 $as_echo_n "checking for $ac_word... " >&6; } 40458 if ${ac_cv_path_BUILD_LD+:} false; then : 40459 $as_echo_n "(cached) " >&6 40460 else 40461 case $BUILD_LD in 40462 [\\/]* | ?:[\\/]*) 40463 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40464 ;; 40465 *) 40466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40467 for as_dir in $PATH 40468 do 40469 IFS=$as_save_IFS 40470 test -z "$as_dir" && as_dir=. 40471 for ac_exec_ext in '' $ac_executable_extensions; do 40472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40473 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40475 break 2 40476 fi 40477 done 40478 done 40479 IFS=$as_save_IFS 40480 40481 ;; 40482 esac 40483 fi 40484 BUILD_LD=$ac_cv_path_BUILD_LD 40485 if test -n "$BUILD_LD"; then 40486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40487 $as_echo "$BUILD_LD" >&6; } 40488 else 40489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40490 $as_echo "no" >&6; } 40491 fi 40492 40493 40494 test -n "$BUILD_LD" && break 40495 done 40496 40497 else 40498 # If it succeeded, then it was overridden by the user. We will use it 40499 # for the tool. 40500 40501 # First remove it from the list of overridden variables, so we can test 40502 # for unknown variables in the end. 40503 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40504 40505 # Check if the provided tool contains a complete path. 40506 tool_specified="$BUILD_LD" 40507 tool_basename="${tool_specified##*/}" 40508 if test "x$tool_basename" = "x$tool_specified"; then 40509 # A command without a complete path is provided, search $PATH. 40510 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_LD=$tool_basename" >&5 40511 $as_echo "$as_me: Will search for user supplied tool BUILD_LD=$tool_basename" >&6;} 40512 # Extract the first word of "$tool_basename", so it can be a program name with args. 40513 set dummy $tool_basename; ac_word=$2 40514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40515 $as_echo_n "checking for $ac_word... " >&6; } 40516 if ${ac_cv_path_BUILD_LD+:} false; then : 40517 $as_echo_n "(cached) " >&6 40518 else 40519 case $BUILD_LD in 40520 [\\/]* | ?:[\\/]*) 40521 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40522 ;; 40523 *) 40524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40525 for as_dir in $PATH 40526 do 40527 IFS=$as_save_IFS 40528 test -z "$as_dir" && as_dir=. 40529 for ac_exec_ext in '' $ac_executable_extensions; do 40530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40531 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40533 break 2 40534 fi 40535 done 40536 done 40537 IFS=$as_save_IFS 40538 40539 ;; 40540 esac 40541 fi 40542 BUILD_LD=$ac_cv_path_BUILD_LD 40543 if test -n "$BUILD_LD"; then 40544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40545 $as_echo "$BUILD_LD" >&6; } 40546 else 40547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40548 $as_echo "no" >&6; } 40549 fi 40550 40551 40552 if test "x$BUILD_LD" = x; then 40553 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40554 fi 40555 else 40556 # Otherwise we believe it is a complete path. Use it as it is. 40557 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_LD=$tool_specified" >&5 40558 $as_echo "$as_me: Will use user supplied tool BUILD_LD=$tool_specified" >&6;} 40559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5 40560 $as_echo_n "checking for BUILD_LD... " >&6; } 40561 if test ! -x "$tool_specified"; then 40562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40563 $as_echo "not found" >&6; } 40564 as_fn_error $? "User supplied tool BUILD_LD=$tool_specified does not exist or is not executable" "$LINENO" 5 40565 fi 40566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40567 $as_echo "$tool_specified" >&6; } 40568 fi 40569 fi 40570 fi 40571 40572 40573 40574 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40575 40576 # First separate the path from the arguments. This will split at the first 40577 # space. 40578 complete="$BUILD_LD" 40579 path="${complete%% *}" 40580 tmp="$complete EOL" 40581 arguments="${tmp#* }" 40582 40583 # Input might be given as Windows format, start by converting to 40584 # unix format. 40585 new_path=`$CYGPATH -u "$path"` 40586 40587 # Now try to locate executable using which 40588 new_path=`$WHICH "$new_path" 2> /dev/null` 40589 # bat and cmd files are not always considered executable in cygwin causing which 40590 # to not find them 40591 if test "x$new_path" = x \ 40592 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40593 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40594 new_path=`$CYGPATH -u "$path"` 40595 fi 40596 if test "x$new_path" = x; then 40597 # Oops. Which didn't find the executable. 40598 # The splitting of arguments from the executable at a space might have been incorrect, 40599 # since paths with space are more likely in Windows. Give it another try with the whole 40600 # argument. 40601 path="$complete" 40602 arguments="EOL" 40603 new_path=`$CYGPATH -u "$path"` 40604 new_path=`$WHICH "$new_path" 2> /dev/null` 40605 # bat and cmd files are not always considered executable in cygwin causing which 40606 # to not find them 40607 if test "x$new_path" = x \ 40608 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40609 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40610 new_path=`$CYGPATH -u "$path"` 40611 fi 40612 if test "x$new_path" = x; then 40613 # It's still not found. Now this is an unrecoverable error. 40614 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40615 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40616 has_space=`$ECHO "$complete" | $GREP " "` 40617 if test "x$has_space" != x; then 40618 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40619 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40620 fi 40621 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40622 fi 40623 fi 40624 40625 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40626 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40627 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40628 # "foo.exe" is OK but "foo" is an error. 40629 # 40630 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40631 # It is also a way to make sure we got the proper file name for the real test later on. 40632 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40633 if test "x$test_shortpath" = x; then 40634 # Short path failed, file does not exist as specified. 40635 # Try adding .exe or .cmd 40636 if test -f "${new_path}.exe"; then 40637 input_to_shortpath="${new_path}.exe" 40638 elif test -f "${new_path}.cmd"; then 40639 input_to_shortpath="${new_path}.cmd" 40640 else 40641 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5 40642 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;} 40643 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40644 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40645 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40646 fi 40647 else 40648 input_to_shortpath="$new_path" 40649 fi 40650 40651 # Call helper function which possibly converts this using DOS-style short mode. 40652 # If so, the updated path is stored in $new_path. 40653 new_path="$input_to_shortpath" 40654 40655 input_path="$input_to_shortpath" 40656 # Check if we need to convert this using DOS-style short mode. If the path 40657 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40658 # take no chances and rewrite it. 40659 # Note: m4 eats our [], so we need to use [ and ] instead. 40660 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40661 if test "x$has_forbidden_chars" != x; then 40662 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40663 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40664 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40665 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40666 # Going to short mode and back again did indeed matter. Since short mode is 40667 # case insensitive, let's make it lowercase to improve readability. 40668 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40669 # Now convert it back to Unix-stile (cygpath) 40670 input_path=`$CYGPATH -u "$shortmode_path"` 40671 new_path="$input_path" 40672 fi 40673 fi 40674 40675 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40676 if test "x$test_cygdrive_prefix" = x; then 40677 # As a simple fix, exclude /usr/bin since it's not a real path. 40678 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40679 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40680 # a path prefixed by /cygdrive for fixpath to work. 40681 new_path="$CYGWIN_ROOT_PATH$input_path" 40682 fi 40683 fi 40684 40685 # remove trailing .exe if any 40686 new_path="${new_path/%.exe/}" 40687 40688 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40689 40690 # First separate the path from the arguments. This will split at the first 40691 # space. 40692 complete="$BUILD_LD" 40693 path="${complete%% *}" 40694 tmp="$complete EOL" 40695 arguments="${tmp#* }" 40696 40697 # Input might be given as Windows format, start by converting to 40698 # unix format. 40699 new_path="$path" 40700 40701 windows_path="$new_path" 40702 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40703 unix_path=`$CYGPATH -u "$windows_path"` 40704 new_path="$unix_path" 40705 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40706 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40707 new_path="$unix_path" 40708 fi 40709 40710 40711 # Now try to locate executable using which 40712 new_path=`$WHICH "$new_path" 2> /dev/null` 40713 40714 if test "x$new_path" = x; then 40715 # Oops. Which didn't find the executable. 40716 # The splitting of arguments from the executable at a space might have been incorrect, 40717 # since paths with space are more likely in Windows. Give it another try with the whole 40718 # argument. 40719 path="$complete" 40720 arguments="EOL" 40721 new_path="$path" 40722 40723 windows_path="$new_path" 40724 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40725 unix_path=`$CYGPATH -u "$windows_path"` 40726 new_path="$unix_path" 40727 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40728 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40729 new_path="$unix_path" 40730 fi 40731 40732 40733 new_path=`$WHICH "$new_path" 2> /dev/null` 40734 # bat and cmd files are not always considered executable in MSYS causing which 40735 # to not find them 40736 if test "x$new_path" = x \ 40737 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40738 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40739 new_path="$path" 40740 40741 windows_path="$new_path" 40742 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40743 unix_path=`$CYGPATH -u "$windows_path"` 40744 new_path="$unix_path" 40745 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40746 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40747 new_path="$unix_path" 40748 fi 40749 40750 fi 40751 40752 if test "x$new_path" = x; then 40753 # It's still not found. Now this is an unrecoverable error. 40754 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40755 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40756 has_space=`$ECHO "$complete" | $GREP " "` 40757 if test "x$has_space" != x; then 40758 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40759 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40760 fi 40761 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40762 fi 40763 fi 40764 40765 # Now new_path has a complete unix path to the binary 40766 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40767 # Keep paths in /bin as-is, but remove trailing .exe if any 40768 new_path="${new_path/%.exe/}" 40769 # Do not save /bin paths to all_fixpath_prefixes! 40770 else 40771 # Not in mixed or Windows style, start by that. 40772 new_path=`cmd //c echo $new_path` 40773 40774 input_path="$new_path" 40775 # Check if we need to convert this using DOS-style short mode. If the path 40776 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40777 # take no chances and rewrite it. 40778 # Note: m4 eats our [], so we need to use [ and ] instead. 40779 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40780 if test "x$has_forbidden_chars" != x; then 40781 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40782 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40783 fi 40784 40785 # Output is in $new_path 40786 40787 windows_path="$new_path" 40788 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40789 unix_path=`$CYGPATH -u "$windows_path"` 40790 new_path="$unix_path" 40791 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40792 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40793 new_path="$unix_path" 40794 fi 40795 40796 # remove trailing .exe if any 40797 new_path="${new_path/%.exe/}" 40798 40799 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40800 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40801 fi 40802 40803 else 40804 # We're on a posix platform. Hooray! :) 40805 # First separate the path from the arguments. This will split at the first 40806 # space. 40807 complete="$BUILD_LD" 40808 path="${complete%% *}" 40809 tmp="$complete EOL" 40810 arguments="${tmp#* }" 40811 40812 # Cannot rely on the command "which" here since it doesn't always work. 40813 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40814 if test -z "$is_absolute_path"; then 40815 # Path to executable is not absolute. Find it. 40816 IFS_save="$IFS" 40817 IFS=: 40818 for p in $PATH; do 40819 if test -f "$p/$path" && test -x "$p/$path"; then 40820 new_path="$p/$path" 40821 break 40822 fi 40823 done 40824 IFS="$IFS_save" 40825 else 40826 # This is an absolute path, we can use it without further modifications. 40827 new_path="$path" 40828 fi 40829 40830 if test "x$new_path" = x; then 40831 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40832 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40833 has_space=`$ECHO "$complete" | $GREP " "` 40834 if test "x$has_space" != x; then 40835 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40836 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40837 fi 40838 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40839 fi 40840 fi 40841 40842 # Now join together the path and the arguments once again 40843 if test "x$arguments" != xEOL; then 40844 new_complete="$new_path ${arguments% *}" 40845 else 40846 new_complete="$new_path" 40847 fi 40848 40849 if test "x$complete" != "x$new_complete"; then 40850 BUILD_LD="$new_complete" 40851 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5 40852 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;} 40853 fi 40854 40855 else 40856 # If we are not cross compiling, use the normal target compilers for 40857 # building the build platform executables. 40858 BUILD_CC="$CC" 40859 BUILD_CXX="$CXX" 40860 BUILD_LD="$LD" 40861 fi 40862 40863 40864 40865 40866 40867 40868 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40869 # For hotspot, we need these in Windows mixed path, 40870 # so rewrite them all. Need added .exe suffix. 40871 HOTSPOT_CXX="$CXX.exe" 40872 HOTSPOT_LD="$LD.exe" 40873 HOTSPOT_MT="$MT.exe" 40874 HOTSPOT_RC="$RC.exe" 40875 40876 unix_path="$HOTSPOT_CXX" 40877 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40878 windows_path=`$CYGPATH -m "$unix_path"` 40879 HOTSPOT_CXX="$windows_path" 40880 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40881 windows_path=`cmd //c echo $unix_path` 40882 HOTSPOT_CXX="$windows_path" 40883 fi 40884 40885 40886 unix_path="$HOTSPOT_LD" 40887 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40888 windows_path=`$CYGPATH -m "$unix_path"` 40889 HOTSPOT_LD="$windows_path" 40890 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40891 windows_path=`cmd //c echo $unix_path` 40892 HOTSPOT_LD="$windows_path" 40893 fi 40894 40895 40896 unix_path="$HOTSPOT_MT" 40897 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40898 windows_path=`$CYGPATH -m "$unix_path"` 40899 HOTSPOT_MT="$windows_path" 40900 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40901 windows_path=`cmd //c echo $unix_path` 40902 HOTSPOT_MT="$windows_path" 40903 fi 40904 40905 40906 unix_path="$HOTSPOT_RC" 40907 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40908 windows_path=`$CYGPATH -m "$unix_path"` 40909 HOTSPOT_RC="$windows_path" 40910 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40911 windows_path=`cmd //c echo $unix_path` 40912 HOTSPOT_RC="$windows_path" 40913 fi 40914 40915 40916 40917 else 40918 HOTSPOT_CXX="$CXX" 40919 HOTSPOT_LD="$LD" 40920 fi 40921 40922 40923 40924 if test "x$TOOLCHAIN_TYPE" = xclang; then 40925 USE_CLANG=true 40926 fi 40927 40928 40929 # LDEXE is the linker to use, when creating executables. Not really used. 40930 # FIXME: These should just be removed! 40931 LDEXE="$LD" 40932 LDEXECXX="$LDCXX" 40933 40934 40935 40936 40937 40938 40939 # The package path is used only on macosx? 40940 # FIXME: clean this up, and/or move it elsewhere. 40941 PACKAGE_PATH=/opt/local 40942 40943 40944 # Check for extra potential brokenness. 40945 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40946 # On Windows, double-check that we got the right compiler. 40947 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 40948 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 40949 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 40950 if test "x$COMPILER_CPU_TEST" != "x80x86"; then 40951 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5 40952 fi 40953 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 40954 if test "x$COMPILER_CPU_TEST" != "xx64"; then 40955 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 40956 fi 40957 fi 40958 fi 40959 40960 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40961 # If this is a --hash-style=gnu system, use --hash-style=both, why? 40962 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 40963 # This is later checked when setting flags. 40964 40965 # "-Og" suppported for GCC 4.8 and later 40966 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 40967 40968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 40969 $as_echo_n "checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 40970 supports=yes 40971 40972 saved_cflags="$CFLAGS" 40973 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 40974 ac_ext=c 40975 ac_cpp='$CPP $CPPFLAGS' 40976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40978 ac_compiler_gnu=$ac_cv_c_compiler_gnu 40979 40980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40981 /* end confdefs.h. */ 40982 int i; 40983 _ACEOF 40984 if ac_fn_c_try_compile "$LINENO"; then : 40985 40986 else 40987 supports=no 40988 fi 40989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40990 ac_ext=cpp 40991 ac_cpp='$CXXCPP $CPPFLAGS' 40992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40995 40996 CFLAGS="$saved_cflags" 40997 40998 saved_cxxflags="$CXXFLAGS" 40999 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 41000 ac_ext=cpp 41001 ac_cpp='$CXXCPP $CPPFLAGS' 41002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41005 41006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41007 /* end confdefs.h. */ 41008 int i; 41009 _ACEOF 41010 if ac_fn_cxx_try_compile "$LINENO"; then : 41011 41012 else 41013 supports=no 41014 fi 41015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41016 ac_ext=cpp 41017 ac_cpp='$CXXCPP $CPPFLAGS' 41018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41021 41022 CXXFLAGS="$saved_cxxflags" 41023 41024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41025 $as_echo "$supports" >&6; } 41026 if test "x$supports" = "xyes" ; then 41027 HAS_CFLAG_OPTIMIZE_DEBUG=true 41028 else 41029 HAS_CFLAG_OPTIMIZE_DEBUG=false 41030 fi 41031 41032 41033 # "-fsanitize=undefined" supported for GCC 4.9 and later 41034 CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG="-fsanitize=undefined -fsanitize-recover" 41035 41036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG\"" >&5 41037 $as_echo_n "checking if compiler supports \"$CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG\"... " >&6; } 41038 supports=yes 41039 41040 saved_cflags="$CFLAGS" 41041 CFLAGS="$CFLAGS $CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG" 41042 ac_ext=c 41043 ac_cpp='$CPP $CPPFLAGS' 41044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41046 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41047 41048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41049 /* end confdefs.h. */ 41050 int i; 41051 _ACEOF 41052 if ac_fn_c_try_compile "$LINENO"; then : 41053 41054 else 41055 supports=no 41056 fi 41057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41058 ac_ext=cpp 41059 ac_cpp='$CXXCPP $CPPFLAGS' 41060 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41061 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41062 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41063 41064 CFLAGS="$saved_cflags" 41065 41066 saved_cxxflags="$CXXFLAGS" 41067 CXXFLAGS="$CXXFLAG $CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG" 41068 ac_ext=cpp 41069 ac_cpp='$CXXCPP $CPPFLAGS' 41070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41073 41074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41075 /* end confdefs.h. */ 41076 int i; 41077 _ACEOF 41078 if ac_fn_cxx_try_compile "$LINENO"; then : 41079 41080 else 41081 supports=no 41082 fi 41083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41084 ac_ext=cpp 41085 ac_cpp='$CXXCPP $CPPFLAGS' 41086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41089 41090 CXXFLAGS="$saved_cxxflags" 41091 41092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41093 $as_echo "$supports" >&6; } 41094 if test "x$supports" = "xyes" ; then 41095 HAS_CFLAG_DETECT_UNDEFINED_BEHAVIOR=true 41096 else 41097 HAS_CFLAG_DETECT_UNDEFINED_BEHAVIOR=false 41098 fi 41099 41100 41101 # "-z relro" supported in GNU binutils 2.17 and later 41102 LINKER_RELRO_FLAG="-Xlinker -z -Xlinker relro" 41103 41104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 41105 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 41106 supports=yes 41107 41108 saved_ldflags="$LDFLAGS" 41109 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 41110 ac_ext=c 41111 ac_cpp='$CPP $CPPFLAGS' 41112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41114 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41115 41116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41117 /* end confdefs.h. */ 41118 41119 int 41120 main () 41121 { 41122 41123 ; 41124 return 0; 41125 } 41126 _ACEOF 41127 if ac_fn_c_try_link "$LINENO"; then : 41128 41129 else 41130 supports=no 41131 fi 41132 rm -f core conftest.err conftest.$ac_objext \ 41133 conftest$ac_exeext conftest.$ac_ext 41134 ac_ext=cpp 41135 ac_cpp='$CXXCPP $CPPFLAGS' 41136 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41137 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41138 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41139 41140 LDFLAGS="$saved_ldflags" 41141 41142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41143 $as_echo "$supports" >&6; } 41144 if test "x$supports" = "xyes" ; then 41145 HAS_LINKER_RELRO=true 41146 else 41147 HAS_LINKER_RELRO=false 41148 fi 41149 41150 41151 # "-z now" supported in GNU binutils 2.11 and later 41152 LINKER_NOW_FLAG="-Xlinker -z -Xlinker now" 41153 41154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 41155 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 41156 supports=yes 41157 41158 saved_ldflags="$LDFLAGS" 41159 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 41160 ac_ext=c 41161 ac_cpp='$CPP $CPPFLAGS' 41162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41164 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41165 41166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41167 /* end confdefs.h. */ 41168 41169 int 41170 main () 41171 { 41172 41173 ; 41174 return 0; 41175 } 41176 _ACEOF 41177 if ac_fn_c_try_link "$LINENO"; then : 41178 41179 else 41180 supports=no 41181 fi 41182 rm -f core conftest.err conftest.$ac_objext \ 41183 conftest$ac_exeext conftest.$ac_ext 41184 ac_ext=cpp 41185 ac_cpp='$CXXCPP $CPPFLAGS' 41186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41189 41190 LDFLAGS="$saved_ldflags" 41191 41192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41193 $as_echo "$supports" >&6; } 41194 if test "x$supports" = "xyes" ; then 41195 HAS_LINKER_NOW=true 41196 else 41197 HAS_LINKER_NOW=false 41198 fi 41199 41200 fi 41201 41202 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 41203 # in executable.' 41204 USING_BROKEN_SUSE_LD=no 41205 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 41206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 41207 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 41208 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 41209 $ECHO "int main() { }" > main.c 41210 if $CXX -Xlinker -version-script=version-script.map main.c 2>&5 >&5; then 41211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41212 $as_echo "no" >&6; } 41213 USING_BROKEN_SUSE_LD=no 41214 else 41215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41216 $as_echo "yes" >&6; } 41217 USING_BROKEN_SUSE_LD=yes 41218 fi 41219 rm -rf version-script.map main.c a.out 41220 fi 41221 41222 41223 41224 # Setup the JTReg Regression Test Harness. 41225 41226 41227 # Check whether --with-jtreg was given. 41228 if test "${with_jtreg+set}" = set; then : 41229 withval=$with_jtreg; 41230 else 41231 with_jtreg=no 41232 fi 41233 41234 41235 if test "x$with_jtreg" = xno; then 41236 # jtreg disabled 41237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 41238 $as_echo_n "checking for jtreg... " >&6; } 41239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41240 $as_echo "no" >&6; } 41241 else 41242 if test "x$with_jtreg" != xyes; then 41243 # with path specified. 41244 JT_HOME="$with_jtreg" 41245 fi 41246 41247 if test "x$JT_HOME" != x; then 41248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 41249 $as_echo_n "checking for jtreg... " >&6; } 41250 41251 # use JT_HOME enviroment var. 41252 41253 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41254 41255 # Input might be given as Windows format, start by converting to 41256 # unix format. 41257 path="$JT_HOME" 41258 new_path=`$CYGPATH -u "$path"` 41259 41260 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41261 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41262 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41263 # "foo.exe" is OK but "foo" is an error. 41264 # 41265 # This test is therefore slightly more accurate than "test -f" to check for file precense. 41266 # It is also a way to make sure we got the proper file name for the real test later on. 41267 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41268 if test "x$test_shortpath" = x; then 41269 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 41270 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 41271 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 41272 fi 41273 41274 # Call helper function which possibly converts this using DOS-style short mode. 41275 # If so, the updated path is stored in $new_path. 41276 41277 input_path="$new_path" 41278 # Check if we need to convert this using DOS-style short mode. If the path 41279 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41280 # take no chances and rewrite it. 41281 # Note: m4 eats our [], so we need to use [ and ] instead. 41282 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41283 if test "x$has_forbidden_chars" != x; then 41284 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41285 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41286 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41287 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41288 # Going to short mode and back again did indeed matter. Since short mode is 41289 # case insensitive, let's make it lowercase to improve readability. 41290 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41291 # Now convert it back to Unix-stile (cygpath) 41292 input_path=`$CYGPATH -u "$shortmode_path"` 41293 new_path="$input_path" 41294 fi 41295 fi 41296 41297 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41298 if test "x$test_cygdrive_prefix" = x; then 41299 # As a simple fix, exclude /usr/bin since it's not a real path. 41300 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 41301 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41302 # a path prefixed by /cygdrive for fixpath to work. 41303 new_path="$CYGWIN_ROOT_PATH$input_path" 41304 fi 41305 fi 41306 41307 41308 if test "x$path" != "x$new_path"; then 41309 JT_HOME="$new_path" 41310 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 41311 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 41312 fi 41313 41314 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41315 41316 path="$JT_HOME" 41317 has_colon=`$ECHO $path | $GREP ^.:` 41318 new_path="$path" 41319 if test "x$has_colon" = x; then 41320 # Not in mixed or Windows style, start by that. 41321 new_path=`cmd //c echo $path` 41322 fi 41323 41324 41325 input_path="$new_path" 41326 # Check if we need to convert this using DOS-style short mode. If the path 41327 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41328 # take no chances and rewrite it. 41329 # Note: m4 eats our [], so we need to use [ and ] instead. 41330 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41331 if test "x$has_forbidden_chars" != x; then 41332 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41333 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41334 fi 41335 41336 41337 windows_path="$new_path" 41338 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41339 unix_path=`$CYGPATH -u "$windows_path"` 41340 new_path="$unix_path" 41341 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41342 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41343 new_path="$unix_path" 41344 fi 41345 41346 if test "x$path" != "x$new_path"; then 41347 JT_HOME="$new_path" 41348 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 41349 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 41350 fi 41351 41352 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41353 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41354 41355 else 41356 # We're on a posix platform. Hooray! :) 41357 path="$JT_HOME" 41358 has_space=`$ECHO "$path" | $GREP " "` 41359 if test "x$has_space" != x; then 41360 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 41361 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 41362 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 41363 fi 41364 41365 # Use eval to expand a potential ~ 41366 eval path="$path" 41367 if test ! -f "$path" && test ! -d "$path"; then 41368 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 41369 fi 41370 41371 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 41372 fi 41373 41374 41375 # jtreg win32 script works for everybody 41376 JTREGEXE="$JT_HOME/win32/bin/jtreg" 41377 41378 if test ! -f "$JTREGEXE"; then 41379 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 41380 fi 41381 41382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41383 $as_echo "$JTREGEXE" >&6; } 41384 else 41385 # try to find jtreg on path 41386 41387 41388 41389 # Publish this variable in the help. 41390 41391 41392 if test "x$JTREGEXE" = x; then 41393 # The variable is not set by user, try to locate tool using the code snippet 41394 for ac_prog in jtreg 41395 do 41396 # Extract the first word of "$ac_prog", so it can be a program name with args. 41397 set dummy $ac_prog; ac_word=$2 41398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41399 $as_echo_n "checking for $ac_word... " >&6; } 41400 if ${ac_cv_path_JTREGEXE+:} false; then : 41401 $as_echo_n "(cached) " >&6 41402 else 41403 case $JTREGEXE in 41404 [\\/]* | ?:[\\/]*) 41405 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41406 ;; 41407 *) 41408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41409 for as_dir in $PATH 41410 do 41411 IFS=$as_save_IFS 41412 test -z "$as_dir" && as_dir=. 41413 for ac_exec_ext in '' $ac_executable_extensions; do 41414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41415 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41417 break 2 41418 fi 41419 done 41420 done 41421 IFS=$as_save_IFS 41422 41423 ;; 41424 esac 41425 fi 41426 JTREGEXE=$ac_cv_path_JTREGEXE 41427 if test -n "$JTREGEXE"; then 41428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41429 $as_echo "$JTREGEXE" >&6; } 41430 else 41431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41432 $as_echo "no" >&6; } 41433 fi 41434 41435 41436 test -n "$JTREGEXE" && break 41437 done 41438 41439 else 41440 # The variable is set, but is it from the command line or the environment? 41441 41442 # Try to remove the string !JTREGEXE! from our list. 41443 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 41444 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41445 # If it failed, the variable was not from the command line. Ignore it, 41446 # but warn the user (except for BASH, which is always set by the calling BASH). 41447 if test "xJTREGEXE" != xBASH; then 41448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 41449 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 41450 fi 41451 # Try to locate tool using the code snippet 41452 for ac_prog in jtreg 41453 do 41454 # Extract the first word of "$ac_prog", so it can be a program name with args. 41455 set dummy $ac_prog; ac_word=$2 41456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41457 $as_echo_n "checking for $ac_word... " >&6; } 41458 if ${ac_cv_path_JTREGEXE+:} false; then : 41459 $as_echo_n "(cached) " >&6 41460 else 41461 case $JTREGEXE in 41462 [\\/]* | ?:[\\/]*) 41463 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41464 ;; 41465 *) 41466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41467 for as_dir in $PATH 41468 do 41469 IFS=$as_save_IFS 41470 test -z "$as_dir" && as_dir=. 41471 for ac_exec_ext in '' $ac_executable_extensions; do 41472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41473 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41475 break 2 41476 fi 41477 done 41478 done 41479 IFS=$as_save_IFS 41480 41481 ;; 41482 esac 41483 fi 41484 JTREGEXE=$ac_cv_path_JTREGEXE 41485 if test -n "$JTREGEXE"; then 41486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41487 $as_echo "$JTREGEXE" >&6; } 41488 else 41489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41490 $as_echo "no" >&6; } 41491 fi 41492 41493 41494 test -n "$JTREGEXE" && break 41495 done 41496 41497 else 41498 # If it succeeded, then it was overridden by the user. We will use it 41499 # for the tool. 41500 41501 # First remove it from the list of overridden variables, so we can test 41502 # for unknown variables in the end. 41503 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41504 41505 # Check if the provided tool contains a complete path. 41506 tool_specified="$JTREGEXE" 41507 tool_basename="${tool_specified##*/}" 41508 if test "x$tool_basename" = "x$tool_specified"; then 41509 # A command without a complete path is provided, search $PATH. 41510 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 41511 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 41512 # Extract the first word of "$tool_basename", so it can be a program name with args. 41513 set dummy $tool_basename; ac_word=$2 41514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41515 $as_echo_n "checking for $ac_word... " >&6; } 41516 if ${ac_cv_path_JTREGEXE+:} false; then : 41517 $as_echo_n "(cached) " >&6 41518 else 41519 case $JTREGEXE in 41520 [\\/]* | ?:[\\/]*) 41521 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41522 ;; 41523 *) 41524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41525 for as_dir in $PATH 41526 do 41527 IFS=$as_save_IFS 41528 test -z "$as_dir" && as_dir=. 41529 for ac_exec_ext in '' $ac_executable_extensions; do 41530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41531 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41533 break 2 41534 fi 41535 done 41536 done 41537 IFS=$as_save_IFS 41538 41539 ;; 41540 esac 41541 fi 41542 JTREGEXE=$ac_cv_path_JTREGEXE 41543 if test -n "$JTREGEXE"; then 41544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41545 $as_echo "$JTREGEXE" >&6; } 41546 else 41547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41548 $as_echo "no" >&6; } 41549 fi 41550 41551 41552 if test "x$JTREGEXE" = x; then 41553 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41554 fi 41555 else 41556 # Otherwise we believe it is a complete path. Use it as it is. 41557 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 41558 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 41559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 41560 $as_echo_n "checking for JTREGEXE... " >&6; } 41561 if test ! -x "$tool_specified"; then 41562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41563 $as_echo "not found" >&6; } 41564 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 41565 fi 41566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41567 $as_echo "$tool_specified" >&6; } 41568 fi 41569 fi 41570 fi 41571 41572 41573 41574 if test "x$JTREGEXE" = x; then 41575 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 41576 fi 41577 41578 41579 JT_HOME="`$DIRNAME $JTREGEXE`" 41580 fi 41581 fi 41582 41583 41584 41585 41586 41587 41588 # Option used to tell the compiler whether to create 32- or 64-bit executables 41589 if test "x$TOOLCHAIN_TYPE" = xxlc; then 41590 COMPILER_TARGET_BITS_FLAG="-q" 41591 else 41592 COMPILER_TARGET_BITS_FLAG="-m" 41593 fi 41594 41595 41596 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 41597 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41598 ARFLAGS="-r" 41599 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41600 ARFLAGS="-X64" 41601 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 41602 # lib.exe is used as AR to create static libraries. 41603 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 41604 else 41605 ARFLAGS="" 41606 fi 41607 41608 41609 ## Setup strip. 41610 # FIXME: should this really be per platform, or should it be per toolchain type? 41611 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 41612 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 41613 if test "x$OPENJDK_TARGET_OS" = xlinux; then 41614 STRIPFLAGS="-g" 41615 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 41616 STRIPFLAGS="-x" 41617 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 41618 STRIPFLAGS="-S" 41619 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41620 STRIPFLAGS="-X32_64" 41621 fi 41622 41623 if test "x$OPENJDK_TARGET_OS" != xwindows; then 41624 POST_STRIP_CMD="$STRIP $STRIPFLAGS" 41625 fi 41626 41627 41628 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41629 # FIXME: break out into MCSFLAGS 41630 POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\"" 41631 fi 41632 41633 41634 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41635 CC_OUT_OPTION=-Fo 41636 EXE_OUT_OPTION=-out: 41637 LD_OUT_OPTION=-out: 41638 AR_OUT_OPTION=-out: 41639 else 41640 # The option used to specify the target .o,.a or .so file. 41641 # When compiling, how to specify the to be created object file. 41642 CC_OUT_OPTION='-o$(SPACE)' 41643 # When linking, how to specify the to be created executable. 41644 EXE_OUT_OPTION='-o$(SPACE)' 41645 # When linking, how to specify the to be created dynamically linkable library. 41646 LD_OUT_OPTION='-o$(SPACE)' 41647 # When archiving, how to specify the to be create static archive for object files. 41648 AR_OUT_OPTION='rcs$(SPACE)' 41649 fi 41650 41651 41652 41653 41654 41655 # On Windows, we need to set RC flags. 41656 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41657 RC_FLAGS="-nologo -l 0x409 -r" 41658 if test "x$VARIANT" = xOPT; then 41659 RC_FLAGS="$RC_FLAGS -d NDEBUG" 41660 fi 41661 41662 # The version variables used to create RC_FLAGS may be overridden 41663 # in a custom configure script, or possibly the command line. 41664 # Let those variables be expanded at make time in spec.gmk. 41665 # The \$ are escaped to the shell, and the $(...) variables 41666 # are evaluated by make. 41667 RC_FLAGS="$RC_FLAGS \ 41668 -d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \ 41669 -d \"JDK_COMPANY=\$(COMPANY_NAME)\" \ 41670 -d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 41671 -d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \ 41672 -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 41673 -d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \ 41674 -d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\"" 41675 fi 41676 41677 41678 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41679 # silence copyright notice and other headers. 41680 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 41681 fi 41682 41683 if test "x$SYSROOT" != "x"; then 41684 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41685 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41686 # Solaris Studio does not have a concept of sysroot. Instead we must 41687 # make sure the default include and lib dirs are appended to each 41688 # compile and link command line. 41689 SYSROOT_CFLAGS="-I$SYSROOT/usr/include" 41690 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 41691 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 41692 -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 41693 fi 41694 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 41695 # Apple only wants -isysroot <path>, but we also need -iframework<path>/System/Library/Frameworks 41696 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\" -iframework\"$SYSROOT/System/Library/Frameworks\"" 41697 SYSROOT_LDFLAGS=$SYSROOT_CFLAGS 41698 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 41699 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 41700 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 41701 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41702 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\"" 41703 SYSROOT_LDFLAGS="-isysroot \"$SYSROOT\"" 41704 fi 41705 # Propagate the sysroot args to hotspot 41706 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS" 41707 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS" 41708 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS" 41709 fi 41710 41711 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 41712 # set this here so it doesn't have to be peppered throughout the forest 41713 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41714 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F\"$SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 41715 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F\"$SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 41716 fi 41717 41718 41719 41720 41721 41722 # FIXME: Currently we must test this after toolchain but before flags. Fix! 41723 41724 # Now we can test some aspects on the target using configure macros. 41725 41726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 41727 $as_echo_n "checking for ANSI C header files... " >&6; } 41728 if ${ac_cv_header_stdc+:} false; then : 41729 $as_echo_n "(cached) " >&6 41730 else 41731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41732 /* end confdefs.h. */ 41733 #include <stdlib.h> 41734 #include <stdarg.h> 41735 #include <string.h> 41736 #include <float.h> 41737 41738 int 41739 main () 41740 { 41741 41742 ; 41743 return 0; 41744 } 41745 _ACEOF 41746 if ac_fn_cxx_try_compile "$LINENO"; then : 41747 ac_cv_header_stdc=yes 41748 else 41749 ac_cv_header_stdc=no 41750 fi 41751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41752 41753 if test $ac_cv_header_stdc = yes; then 41754 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 41755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41756 /* end confdefs.h. */ 41757 #include <string.h> 41758 41759 _ACEOF 41760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41761 $EGREP "memchr" >/dev/null 2>&1; then : 41762 41763 else 41764 ac_cv_header_stdc=no 41765 fi 41766 rm -f conftest* 41767 41768 fi 41769 41770 if test $ac_cv_header_stdc = yes; then 41771 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 41772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41773 /* end confdefs.h. */ 41774 #include <stdlib.h> 41775 41776 _ACEOF 41777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41778 $EGREP "free" >/dev/null 2>&1; then : 41779 41780 else 41781 ac_cv_header_stdc=no 41782 fi 41783 rm -f conftest* 41784 41785 fi 41786 41787 if test $ac_cv_header_stdc = yes; then 41788 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 41789 if test "$cross_compiling" = yes; then : 41790 : 41791 else 41792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41793 /* end confdefs.h. */ 41794 #include <ctype.h> 41795 #include <stdlib.h> 41796 #if ((' ' & 0x0FF) == 0x020) 41797 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 41798 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 41799 #else 41800 # define ISLOWER(c) \ 41801 (('a' <= (c) && (c) <= 'i') \ 41802 || ('j' <= (c) && (c) <= 'r') \ 41803 || ('s' <= (c) && (c) <= 'z')) 41804 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 41805 #endif 41806 41807 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 41808 int 41809 main () 41810 { 41811 int i; 41812 for (i = 0; i < 256; i++) 41813 if (XOR (islower (i), ISLOWER (i)) 41814 || toupper (i) != TOUPPER (i)) 41815 return 2; 41816 return 0; 41817 } 41818 _ACEOF 41819 if ac_fn_cxx_try_run "$LINENO"; then : 41820 41821 else 41822 ac_cv_header_stdc=no 41823 fi 41824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41825 conftest.$ac_objext conftest.beam conftest.$ac_ext 41826 fi 41827 41828 fi 41829 fi 41830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 41831 $as_echo "$ac_cv_header_stdc" >&6; } 41832 if test $ac_cv_header_stdc = yes; then 41833 41834 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 41835 41836 fi 41837 41838 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 41839 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 41840 inttypes.h stdint.h unistd.h 41841 do : 41842 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 41843 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 41844 " 41845 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 41846 cat >>confdefs.h <<_ACEOF 41847 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 41848 _ACEOF 41849 41850 fi 41851 41852 done 41853 41854 41855 41856 ############################################################################### 41857 # 41858 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 41859 # (The JVM can use 32 or 64 bit Java pointers but that decision 41860 # is made at runtime.) 41861 # 41862 41863 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 41864 # Always specify -m flag on Solaris 41865 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 41866 41867 # When we add flags to the "official" CFLAGS etc, we need to 41868 # keep track of these additions in ADDED_CFLAGS etc. These 41869 # will later be checked to make sure only controlled additions 41870 # have been made to CFLAGS etc. 41871 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41872 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41873 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41874 41875 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41876 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41877 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41878 41879 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41880 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41881 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41882 41883 elif test "x$COMPILE_TYPE" = xreduced; then 41884 if test "x$OPENJDK_TARGET_OS" != xwindows; then 41885 # Specify -m if running reduced on other Posix platforms 41886 41887 # When we add flags to the "official" CFLAGS etc, we need to 41888 # keep track of these additions in ADDED_CFLAGS etc. These 41889 # will later be checked to make sure only controlled additions 41890 # have been made to CFLAGS etc. 41891 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41892 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41893 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41894 41895 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41896 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41897 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41898 41899 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41900 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41901 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41902 41903 fi 41904 fi 41905 41906 # Make compilation sanity check 41907 for ac_header in stdio.h 41908 do : 41909 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 41910 if test "x$ac_cv_header_stdio_h" = xyes; then : 41911 cat >>confdefs.h <<_ACEOF 41912 #define HAVE_STDIO_H 1 41913 _ACEOF 41914 41915 else 41916 41917 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 41918 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 41919 if test "x$COMPILE_TYPE" = xreduced; then 41920 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5 41921 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;} 41922 elif test "x$COMPILE_TYPE" = xcross; then 41923 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 41924 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 41925 fi 41926 as_fn_error $? "Cannot continue." "$LINENO" 5 41927 41928 fi 41929 41930 done 41931 41932 41933 # The cast to long int works around a bug in the HP C Compiler 41934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41936 # This bug is HP SR number 8606223364. 41937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41938 $as_echo_n "checking size of int *... " >&6; } 41939 if ${ac_cv_sizeof_int_p+:} false; then : 41940 $as_echo_n "(cached) " >&6 41941 else 41942 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41943 41944 else 41945 if test "$ac_cv_type_int_p" = yes; then 41946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41948 as_fn_error 77 "cannot compute sizeof (int *) 41949 See \`config.log' for more details" "$LINENO" 5; } 41950 else 41951 ac_cv_sizeof_int_p=0 41952 fi 41953 fi 41954 41955 fi 41956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 41957 $as_echo "$ac_cv_sizeof_int_p" >&6; } 41958 41959 41960 41961 cat >>confdefs.h <<_ACEOF 41962 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 41963 _ACEOF 41964 41965 41966 41967 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 41968 if test "x$ac_cv_sizeof_int_p" = x; then 41969 # The test failed, lets stick to the assumed value. 41970 { $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 41971 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 41972 else 41973 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41974 41975 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41976 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 41977 # Let's try to implicitely set the compilers target architecture and retry the test 41978 { $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 41979 $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;} 41980 { $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 41981 $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;} 41982 41983 # When we add flags to the "official" CFLAGS etc, we need to 41984 # keep track of these additions in ADDED_CFLAGS etc. These 41985 # will later be checked to make sure only controlled additions 41986 # have been made to CFLAGS etc. 41987 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41988 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41989 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41990 41991 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41992 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41993 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41994 41995 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41996 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41997 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41998 41999 42000 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 42001 unset ac_cv_sizeof_int_p 42002 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 42003 cat >>confdefs.h <<_ACEOF 42004 #undef SIZEOF_INT_P 42005 _ACEOF 42006 42007 # The cast to long int works around a bug in the HP C Compiler 42008 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 42009 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 42010 # This bug is HP SR number 8606223364. 42011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 42012 $as_echo_n "checking size of int *... " >&6; } 42013 if ${ac_cv_sizeof_int_p+:} false; then : 42014 $as_echo_n "(cached) " >&6 42015 else 42016 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 42017 42018 else 42019 if test "$ac_cv_type_int_p" = yes; then 42020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 42021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 42022 as_fn_error 77 "cannot compute sizeof (int *) 42023 See \`config.log' for more details" "$LINENO" 5; } 42024 else 42025 ac_cv_sizeof_int_p=0 42026 fi 42027 fi 42028 42029 fi 42030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 42031 $as_echo "$ac_cv_sizeof_int_p" >&6; } 42032 42033 42034 42035 cat >>confdefs.h <<_ACEOF 42036 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 42037 _ACEOF 42038 42039 42040 42041 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 42042 42043 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 42044 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 42045 fi 42046 fi 42047 fi 42048 42049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 42050 $as_echo_n "checking for target address size... " >&6; } 42051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 42052 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 42053 42054 42055 ############################################################################### 42056 # 42057 # Is the target little of big endian? 42058 # 42059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 42060 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 42061 if ${ac_cv_c_bigendian+:} false; then : 42062 $as_echo_n "(cached) " >&6 42063 else 42064 ac_cv_c_bigendian=unknown 42065 # See if we're dealing with a universal compiler. 42066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42067 /* end confdefs.h. */ 42068 #ifndef __APPLE_CC__ 42069 not a universal capable compiler 42070 #endif 42071 typedef int dummy; 42072 42073 _ACEOF 42074 if ac_fn_cxx_try_compile "$LINENO"; then : 42075 42076 # Check for potential -arch flags. It is not universal unless 42077 # there are at least two -arch flags with different values. 42078 ac_arch= 42079 ac_prev= 42080 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 42081 if test -n "$ac_prev"; then 42082 case $ac_word in 42083 i?86 | x86_64 | ppc | ppc64) 42084 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 42085 ac_arch=$ac_word 42086 else 42087 ac_cv_c_bigendian=universal 42088 break 42089 fi 42090 ;; 42091 esac 42092 ac_prev= 42093 elif test "x$ac_word" = "x-arch"; then 42094 ac_prev=arch 42095 fi 42096 done 42097 fi 42098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42099 if test $ac_cv_c_bigendian = unknown; then 42100 # See if sys/param.h defines the BYTE_ORDER macro. 42101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42102 /* end confdefs.h. */ 42103 #include <sys/types.h> 42104 #include <sys/param.h> 42105 42106 int 42107 main () 42108 { 42109 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 42110 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 42111 && LITTLE_ENDIAN) 42112 bogus endian macros 42113 #endif 42114 42115 ; 42116 return 0; 42117 } 42118 _ACEOF 42119 if ac_fn_cxx_try_compile "$LINENO"; then : 42120 # It does; now see whether it defined to BIG_ENDIAN or not. 42121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42122 /* end confdefs.h. */ 42123 #include <sys/types.h> 42124 #include <sys/param.h> 42125 42126 int 42127 main () 42128 { 42129 #if BYTE_ORDER != BIG_ENDIAN 42130 not big endian 42131 #endif 42132 42133 ; 42134 return 0; 42135 } 42136 _ACEOF 42137 if ac_fn_cxx_try_compile "$LINENO"; then : 42138 ac_cv_c_bigendian=yes 42139 else 42140 ac_cv_c_bigendian=no 42141 fi 42142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42143 fi 42144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42145 fi 42146 if test $ac_cv_c_bigendian = unknown; then 42147 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 42148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42149 /* end confdefs.h. */ 42150 #include <limits.h> 42151 42152 int 42153 main () 42154 { 42155 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 42156 bogus endian macros 42157 #endif 42158 42159 ; 42160 return 0; 42161 } 42162 _ACEOF 42163 if ac_fn_cxx_try_compile "$LINENO"; then : 42164 # It does; now see whether it defined to _BIG_ENDIAN or not. 42165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42166 /* end confdefs.h. */ 42167 #include <limits.h> 42168 42169 int 42170 main () 42171 { 42172 #ifndef _BIG_ENDIAN 42173 not big endian 42174 #endif 42175 42176 ; 42177 return 0; 42178 } 42179 _ACEOF 42180 if ac_fn_cxx_try_compile "$LINENO"; then : 42181 ac_cv_c_bigendian=yes 42182 else 42183 ac_cv_c_bigendian=no 42184 fi 42185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42186 fi 42187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42188 fi 42189 if test $ac_cv_c_bigendian = unknown; then 42190 # Compile a test program. 42191 if test "$cross_compiling" = yes; then : 42192 # Try to guess by grepping values from an object file. 42193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42194 /* end confdefs.h. */ 42195 short int ascii_mm[] = 42196 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 42197 short int ascii_ii[] = 42198 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 42199 int use_ascii (int i) { 42200 return ascii_mm[i] + ascii_ii[i]; 42201 } 42202 short int ebcdic_ii[] = 42203 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 42204 short int ebcdic_mm[] = 42205 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 42206 int use_ebcdic (int i) { 42207 return ebcdic_mm[i] + ebcdic_ii[i]; 42208 } 42209 extern int foo; 42210 42211 int 42212 main () 42213 { 42214 return use_ascii (foo) == use_ebcdic (foo); 42215 ; 42216 return 0; 42217 } 42218 _ACEOF 42219 if ac_fn_cxx_try_compile "$LINENO"; then : 42220 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 42221 ac_cv_c_bigendian=yes 42222 fi 42223 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 42224 if test "$ac_cv_c_bigendian" = unknown; then 42225 ac_cv_c_bigendian=no 42226 else 42227 # finding both strings is unlikely to happen, but who knows? 42228 ac_cv_c_bigendian=unknown 42229 fi 42230 fi 42231 fi 42232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42233 else 42234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42235 /* end confdefs.h. */ 42236 $ac_includes_default 42237 int 42238 main () 42239 { 42240 42241 /* Are we little or big endian? From Harbison&Steele. */ 42242 union 42243 { 42244 long int l; 42245 char c[sizeof (long int)]; 42246 } u; 42247 u.l = 1; 42248 return u.c[sizeof (long int) - 1] == 1; 42249 42250 ; 42251 return 0; 42252 } 42253 _ACEOF 42254 if ac_fn_cxx_try_run "$LINENO"; then : 42255 ac_cv_c_bigendian=no 42256 else 42257 ac_cv_c_bigendian=yes 42258 fi 42259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 42260 conftest.$ac_objext conftest.beam conftest.$ac_ext 42261 fi 42262 42263 fi 42264 fi 42265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 42266 $as_echo "$ac_cv_c_bigendian" >&6; } 42267 case $ac_cv_c_bigendian in #( 42268 yes) 42269 ENDIAN="big";; #( 42270 no) 42271 ENDIAN="little" ;; #( 42272 universal) 42273 ENDIAN="universal_endianness" 42274 ;; #( 42275 *) 42276 ENDIAN="unknown" ;; 42277 esac 42278 42279 42280 if test "x$ENDIAN" = xuniversal_endianness; then 42281 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 42282 fi 42283 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 42284 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 42285 fi 42286 42287 42288 # Configure flags for the tools 42289 42290 ############################################################################### 42291 # 42292 # How to compile shared libraries. 42293 # 42294 42295 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42296 PICFLAG="-fPIC" 42297 C_FLAG_REORDER='' 42298 CXX_FLAG_REORDER='' 42299 42300 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42301 # Linking is different on MacOSX 42302 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 42303 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 42304 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42305 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 42306 SET_SHARED_LIBRARY_MAPFILE='' 42307 else 42308 # Default works for linux, might work on other platforms as well. 42309 SHARED_LIBRARY_FLAGS='-shared' 42310 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 42311 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 42312 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 42313 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 42314 fi 42315 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42316 PICFLAG='' 42317 C_FLAG_REORDER='' 42318 CXX_FLAG_REORDER='' 42319 42320 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42321 # Linking is different on MacOSX 42322 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 42323 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 42324 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42325 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 42326 SET_SHARED_LIBRARY_MAPFILE='' 42327 else 42328 # Default works for linux, might work on other platforms as well. 42329 SHARED_LIBRARY_FLAGS='-shared' 42330 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 42331 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 42332 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 42333 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 42334 fi 42335 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42336 PICFLAG="-KPIC" 42337 C_FLAG_REORDER='-xF' 42338 CXX_FLAG_REORDER='-xF' 42339 SHARED_LIBRARY_FLAGS="-G" 42340 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 42341 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42342 SET_SHARED_LIBRARY_NAME='' 42343 SET_SHARED_LIBRARY_MAPFILE='-M$1' 42344 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42345 PICFLAG="-qpic=large" 42346 C_FLAG_REORDER='' 42347 CXX_FLAG_REORDER='' 42348 SHARED_LIBRARY_FLAGS="-qmkshrobj" 42349 SET_EXECUTABLE_ORIGIN="" 42350 SET_SHARED_LIBRARY_ORIGIN='' 42351 SET_SHARED_LIBRARY_NAME='' 42352 SET_SHARED_LIBRARY_MAPFILE='' 42353 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42354 PICFLAG="" 42355 C_FLAG_REORDER='' 42356 CXX_FLAG_REORDER='' 42357 SHARED_LIBRARY_FLAGS="-LD" 42358 SET_EXECUTABLE_ORIGIN='' 42359 SET_SHARED_LIBRARY_ORIGIN='' 42360 SET_SHARED_LIBRARY_NAME='' 42361 SET_SHARED_LIBRARY_MAPFILE='' 42362 fi 42363 42364 42365 42366 42367 42368 42369 42370 42371 42372 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42373 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 42374 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 42375 CFLAGS_JDKLIB_EXTRA='-xstrconst' 42376 fi 42377 # The (cross) compiler is now configured, we can now test capabilities 42378 # of the target platform. 42379 42380 42381 42382 ############################################################################### 42383 # 42384 # Setup the opt flags for different compilers 42385 # and different operating systems. 42386 # 42387 42388 # FIXME: this was indirectly the old default, but just inherited. 42389 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42390 # C_FLAG_DEPS="-MMD -MF" 42391 # fi 42392 42393 # Generate make dependency files 42394 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42395 C_FLAG_DEPS="-MMD -MF" 42396 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42397 C_FLAG_DEPS="-MMD -MF" 42398 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42399 C_FLAG_DEPS="-xMMD -xMF" 42400 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42401 C_FLAG_DEPS="-qmakedep=gcc -MF" 42402 fi 42403 CXX_FLAG_DEPS="$C_FLAG_DEPS" 42404 42405 42406 42407 # Debug symbols 42408 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42409 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 42410 # reduce from default "-g2" option to save space 42411 CFLAGS_DEBUG_SYMBOLS="-g1" 42412 CXXFLAGS_DEBUG_SYMBOLS="-g1" 42413 else 42414 CFLAGS_DEBUG_SYMBOLS="-g" 42415 CXXFLAGS_DEBUG_SYMBOLS="-g" 42416 fi 42417 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42418 CFLAGS_DEBUG_SYMBOLS="-g" 42419 CXXFLAGS_DEBUG_SYMBOLS="-g" 42420 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42421 CFLAGS_DEBUG_SYMBOLS="-g -xs" 42422 # FIXME: likely a bug, this disables debug symbols rather than enables them 42423 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 42424 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42425 CFLAGS_DEBUG_SYMBOLS="-g" 42426 CXXFLAGS_DEBUG_SYMBOLS="-g" 42427 fi 42428 42429 42430 42431 # bounds, memory and behavior checking options 42432 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42433 case $DEBUG_LEVEL in 42434 release ) 42435 # no adjustment 42436 ;; 42437 fastdebug ) 42438 # no adjustment 42439 ;; 42440 slowdebug ) 42441 # Add runtime stack smashing and undefined behavior checks 42442 CFLAGS_DEBUG_OPTIONS="-fstack-protector-all --param ssp-buffer-size=1" 42443 CXXFLAGS_DEBUG_OPTIONS="-fstack-protector-all --param ssp-buffer-size=1" 42444 if test "x$HAS_CFLAG_DETECT_UNDEFINED_BEHAVIOR" = "xtrue"; then 42445 CFLAGS_DEBUG_OPTIONS="$CFLAGS_DEBUG_OPTIONS $CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG" 42446 CXXFLAGS_DEBUG_OPTIONS="$CXXFLAGS_DEBUG_OPTIONS $CFLAG_DETECT_UNDEFINED_BEHAVIsOR_FLAG" 42447 fi 42448 ;; 42449 esac 42450 fi 42451 42452 42453 42454 # Optimization levels 42455 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42456 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 42457 42458 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 42459 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 42460 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 42461 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 42462 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 42463 C_O_FLAG_DEBUG="-xregs=no%frameptr" 42464 C_O_FLAG_NONE="-xregs=no%frameptr" 42465 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 42466 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 42467 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 42468 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 42469 CXX_O_FLAG_NONE="-xregs=no%frameptr" 42470 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 42471 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 42472 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 42473 fi 42474 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 42475 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 42476 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 42477 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 42478 C_O_FLAG_DEBUG="" 42479 C_O_FLAG_NONE="" 42480 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 42481 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 42482 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 42483 C_O_FLAG_DEBUG="" 42484 CXX_O_FLAG_NONE="" 42485 fi 42486 else 42487 # The remaining toolchains share opt flags between CC and CXX; 42488 # setup for C and duplicate afterwards. 42489 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42490 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42491 # On MacOSX we optimize for size, something 42492 # we should do for all platforms? 42493 C_O_FLAG_HIGHEST="-Os" 42494 C_O_FLAG_HI="-Os" 42495 C_O_FLAG_NORM="-Os" 42496 else 42497 C_O_FLAG_HIGHEST="-O3" 42498 C_O_FLAG_HI="-O3" 42499 C_O_FLAG_NORM="-O2" 42500 fi 42501 C_O_FLAG_DEBUG="-O0" 42502 C_O_FLAG_NONE="-O0" 42503 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42504 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42505 # On MacOSX we optimize for size, something 42506 # we should do for all platforms? 42507 C_O_FLAG_HIGHEST="-Os" 42508 C_O_FLAG_HI="-Os" 42509 C_O_FLAG_NORM="-Os" 42510 else 42511 C_O_FLAG_HIGHEST="-O3" 42512 C_O_FLAG_HI="-O3" 42513 C_O_FLAG_NORM="-O2" 42514 fi 42515 C_O_FLAG_DEBUG="-O0" 42516 C_O_FLAG_NONE="-O0" 42517 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42518 C_O_FLAG_HIGHEST="-O3" 42519 C_O_FLAG_HI="-O3 -qstrict" 42520 C_O_FLAG_NORM="-O2" 42521 C_O_FLAG_DEBUG="-qnoopt" 42522 C_O_FLAG_NONE="-qnoop" 42523 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42524 C_O_FLAG_HIGHEST="-O2" 42525 C_O_FLAG_HI="-O1" 42526 C_O_FLAG_NORM="-O1" 42527 C_O_FLAG_DEBUG="-Od" 42528 C_O_FLAG_NONE="-Od" 42529 fi 42530 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 42531 CXX_O_FLAG_HI="$C_O_FLAG_HI" 42532 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 42533 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 42534 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 42535 fi 42536 42537 # Adjust optimization flags according to debug level. 42538 case $DEBUG_LEVEL in 42539 release ) 42540 # no adjustment 42541 ;; 42542 fastdebug ) 42543 # Not quite so much optimization 42544 C_O_FLAG_HI="$C_O_FLAG_NORM" 42545 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 42546 ;; 42547 slowdebug ) 42548 # Disable optimization 42549 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 42550 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 42551 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 42552 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 42553 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 42554 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 42555 ;; 42556 esac 42557 42558 42559 42560 42561 42562 42563 42564 42565 42566 42567 42568 42569 42570 # Special extras... 42571 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42572 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 42573 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 42574 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 42575 fi 42576 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42577 LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall" 42578 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 42579 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 42580 fi 42581 42582 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 42583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 42584 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 42585 fi 42586 42587 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 42588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 42589 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 42590 fi 42591 42592 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 42593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 42594 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 42595 fi 42596 42597 42598 # Check whether --with-extra-cflags was given. 42599 if test "${with_extra_cflags+set}" = set; then : 42600 withval=$with_extra_cflags; 42601 fi 42602 42603 42604 42605 # Check whether --with-extra-cxxflags was given. 42606 if test "${with_extra_cxxflags+set}" = set; then : 42607 withval=$with_extra_cxxflags; 42608 fi 42609 42610 42611 42612 # Check whether --with-extra-ldflags was given. 42613 if test "${with_extra_ldflags+set}" = set; then : 42614 withval=$with_extra_ldflags; 42615 fi 42616 42617 42618 CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags" 42619 CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags" 42620 LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags" 42621 42622 # Hotspot needs these set in their legacy form 42623 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $with_extra_cflags" 42624 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $with_extra_cxxflags" 42625 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $with_extra_ldflags" 42626 42627 42628 42629 42630 42631 ############################################################################### 42632 # 42633 # Now setup the CFLAGS and LDFLAGS for the JDK build. 42634 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 42635 # 42636 42637 # Setup compiler/platform specific flags into 42638 # CFLAGS_JDK - C Compiler flags 42639 # CXXFLAGS_JDK - C++ Compiler flags 42640 # COMMON_CCXXFLAGS_JDK - common to C and C++ 42641 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42642 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wno-parentheses -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 42643 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 42644 case $OPENJDK_TARGET_CPU_ARCH in 42645 arm ) 42646 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 42647 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42648 ;; 42649 ppc ) 42650 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 42651 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42652 ;; 42653 * ) 42654 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 42655 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42656 ;; 42657 esac 42658 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42659 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 42660 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 42661 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 42662 CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE" 42663 fi 42664 42665 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 42666 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 42667 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42668 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42669 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42670 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42671 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 42672 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \ 42673 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 42674 -DWIN32 -DIAL" 42675 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 42676 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 42677 else 42678 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 42679 fi 42680 fi 42681 42682 ############################################################################### 42683 42684 # Adjust flags according to debug level. 42685 case $DEBUG_LEVEL in 42686 fastdebug | slowdebug ) 42687 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 42688 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 42689 JAVAC_FLAGS="$JAVAC_FLAGS -g" 42690 ;; 42691 release ) 42692 ;; 42693 * ) 42694 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 42695 ;; 42696 esac 42697 42698 # Setup LP64 42699 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $ADD_LP64" 42700 42701 # Set some common defines. These works for all compilers, but assume 42702 # -D is universally accepted. 42703 42704 # Setup endianness 42705 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 42706 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 42707 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 42708 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 42709 # Note: -Dmacro is the same as #define macro 1 42710 # -Dmacro= is the same as #define macro 42711 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42712 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 42713 else 42714 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 42715 fi 42716 else 42717 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 42718 # are defined in the system? 42719 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42720 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 42721 else 42722 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 42723 fi 42724 fi 42725 42726 # Setup target OS define. Use OS target name but in upper case. 42727 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 42728 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 42729 42730 # Setup target CPU 42731 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 42732 42733 # Setup debug/release defines 42734 if test "x$DEBUG_LEVEL" = xrelease; then 42735 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 42736 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42737 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 42738 fi 42739 else 42740 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 42741 fi 42742 42743 # Setup release name 42744 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'" 42745 42746 42747 # Set some additional per-OS defines. 42748 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42749 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 42750 elif test "x$OPENJDK_TARGET_OS" = xaix; then 42751 # FIXME: PPC64 should not be here. 42752 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DPPC64" 42753 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 42754 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 42755 fi 42756 42757 # Additional macosx handling 42758 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42759 # Setting these parameters makes it an error to link to macosx APIs that are 42760 # newer than the given OS version and makes the linked binaries compatible 42761 # even if built on a newer version of the OS. 42762 # The expected format is X.Y.Z 42763 MACOSX_VERSION_MIN=10.7.0 42764 42765 42766 # The macro takes the version with no dots, ex: 1070 42767 # Let the flags variables get resolved in make for easier override on make 42768 # command line. 42769 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42770 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42771 fi 42772 42773 # Setup some hard coded includes 42774 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 42775 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 42776 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS/native/include \ 42777 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_API_DIR/native/include" 42778 42779 # The shared libraries are compiled using the picflag. 42780 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 42781 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA " 42782 42783 # Executable flags 42784 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 42785 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 42786 42787 42788 42789 42790 42791 42792 # Setup LDFLAGS et al. 42793 # 42794 42795 # Now this is odd. The JDK native libraries have to link against libjvm.so 42796 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. 42797 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library 42798 # is identical for client and server? Yes. Which is picked at runtime (client or server)? 42799 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following 42800 # libraries will link to whatever is in memory. Yuck. 42801 # 42802 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh. 42803 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42804 LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no" 42805 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 42806 LDFLAGS_JDK="$LDFLAGS_JDK -safeseh" 42807 fi 42808 # TODO: make -debug optional "--disable-full-debug-symbols" 42809 LDFLAGS_JDK="$LDFLAGS_JDK -debug" 42810 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 42811 # If this is a --hash-style=gnu system, use --hash-style=both, why? 42812 # We have previously set HAS_GNU_HASH if this is the case 42813 if test -n "$HAS_GNU_HASH"; then 42814 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both" 42815 fi 42816 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42817 # And since we now know that the linker is gnu, then add -z defs, to forbid 42818 # undefined symbols in object files. 42819 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs" 42820 case $DEBUG_LEVEL in 42821 release ) 42822 # tell linker to optimize libraries. 42823 # Should this be supplied to the OSS linker as well? 42824 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" 42825 ;; 42826 slowdebug ) 42827 if test "x$HAS_LINKER_NOW" = "xtrue"; then 42828 # do relocations at load 42829 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 42830 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 42831 fi 42832 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 42833 # mark relocations read only 42834 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 42835 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 42836 fi 42837 ;; 42838 fastdebug ) 42839 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 42840 # mark relocations read only 42841 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 42842 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 42843 fi 42844 ;; 42845 * ) 42846 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 42847 ;; 42848 esac 42849 fi 42850 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42851 LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext" 42852 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib" 42853 fi 42854 42855 if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then 42856 # If undefined behaviour detection is enabled then we need to tell linker. 42857 case $DEBUG_LEVEL in 42858 release | fastdebug ) 42859 ;; 42860 slowdebug ) 42861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $HAS_CFLAG_DETECT_UNDEFINED_BEHAVIOR" >&5 42862 $as_echo "$as_me: WARNING: $HAS_CFLAG_DETECT_UNDEFINED_BEHAVIOR" >&2;} 42863 if test "x$HAS_CFLAG_DETECT_UNDEFINED_BEHAVIOR" = "xtrue"; then 42864 # enable undefined behaviour checking 42865 LDFLAGS_JDK="$LDFLAGS_JDK `$ECHO -n $CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG | sed -e "s/ *\(^ \+\)/ -Xlinker \1/g"`" 42866 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK `$ECHO -n $CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG | sed -e "s/ *\(^ \+\)/ -Xlinker \1/g"`" 42867 fi 42868 ;; 42869 * ) 42870 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 42871 ;; 42872 esac 42873 fi 42874 42875 # Customize LDFLAGS for executables 42876 42877 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 42878 42879 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42880 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 42881 LDFLAGS_STACK_SIZE=1048576 42882 else 42883 LDFLAGS_STACK_SIZE=327680 42884 fi 42885 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 42886 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 42887 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" 42888 fi 42889 42890 # Customize LDFLAGS for libs 42891 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 42892 42893 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42894 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -dll -libpath:${JDK_OUTPUTDIR}/lib" 42895 LDFLAGS_JDKLIB_SUFFIX="" 42896 else 42897 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS} \ 42898 -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}" 42899 42900 # On some platforms (mac) the linker warns about non existing -L dirs. 42901 # Add server first if available. Linking aginst client does not always produce the same results. 42902 # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1. 42903 # Default to server for other variants. 42904 if test "x$JVM_VARIANT_SERVER" = xtrue; then 42905 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 42906 elif test "x$JVM_VARIANT_CLIENT" = xtrue; then 42907 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/client" 42908 elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 42909 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/minimal" 42910 else 42911 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 42912 fi 42913 42914 LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm" 42915 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42916 LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc" 42917 fi 42918 fi 42919 42920 42921 42922 42923 42924 42925 42926 42927 # Some Zero and Shark settings. 42928 # ZERO_ARCHFLAG tells the compiler which mode to build for 42929 case "${OPENJDK_TARGET_CPU}" in 42930 s390) 42931 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 42932 ;; 42933 *) 42934 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42935 esac 42936 42937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5 42938 $as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 42939 supports=yes 42940 42941 saved_cflags="$CFLAGS" 42942 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 42943 ac_ext=c 42944 ac_cpp='$CPP $CPPFLAGS' 42945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42947 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42948 42949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42950 /* end confdefs.h. */ 42951 int i; 42952 _ACEOF 42953 if ac_fn_c_try_compile "$LINENO"; then : 42954 42955 else 42956 supports=no 42957 fi 42958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42959 ac_ext=cpp 42960 ac_cpp='$CXXCPP $CPPFLAGS' 42961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42964 42965 CFLAGS="$saved_cflags" 42966 42967 saved_cxxflags="$CXXFLAGS" 42968 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 42969 ac_ext=cpp 42970 ac_cpp='$CXXCPP $CPPFLAGS' 42971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42974 42975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42976 /* end confdefs.h. */ 42977 int i; 42978 _ACEOF 42979 if ac_fn_cxx_try_compile "$LINENO"; then : 42980 42981 else 42982 supports=no 42983 fi 42984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42985 ac_ext=cpp 42986 ac_cpp='$CXXCPP $CPPFLAGS' 42987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42990 42991 CXXFLAGS="$saved_cxxflags" 42992 42993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42994 $as_echo "$supports" >&6; } 42995 if test "x$supports" = "xyes" ; then 42996 : 42997 else 42998 ZERO_ARCHFLAG="" 42999 fi 43000 43001 43002 43003 # Check that the compiler supports -mX (or -qX on AIX) flags 43004 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 43005 43006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 43007 $as_echo_n "checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 43008 supports=yes 43009 43010 saved_cflags="$CFLAGS" 43011 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 43012 ac_ext=c 43013 ac_cpp='$CPP $CPPFLAGS' 43014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43016 ac_compiler_gnu=$ac_cv_c_compiler_gnu 43017 43018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43019 /* end confdefs.h. */ 43020 int i; 43021 _ACEOF 43022 if ac_fn_c_try_compile "$LINENO"; then : 43023 43024 else 43025 supports=no 43026 fi 43027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43028 ac_ext=cpp 43029 ac_cpp='$CXXCPP $CPPFLAGS' 43030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43033 43034 CFLAGS="$saved_cflags" 43035 43036 saved_cxxflags="$CXXFLAGS" 43037 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 43038 ac_ext=cpp 43039 ac_cpp='$CXXCPP $CPPFLAGS' 43040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43043 43044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43045 /* end confdefs.h. */ 43046 int i; 43047 _ACEOF 43048 if ac_fn_cxx_try_compile "$LINENO"; then : 43049 43050 else 43051 supports=no 43052 fi 43053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43054 ac_ext=cpp 43055 ac_cpp='$CXXCPP $CPPFLAGS' 43056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43059 43060 CXXFLAGS="$saved_cxxflags" 43061 43062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 43063 $as_echo "$supports" >&6; } 43064 if test "x$supports" = "xyes" ; then 43065 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 43066 else 43067 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 43068 fi 43069 43070 43071 43072 case "${TOOLCHAIN_TYPE}" in 43073 microsoft) 43074 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 43075 ;; 43076 solstudio) 43077 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 43078 ;; 43079 gcc) 43080 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 43081 ;; 43082 clang) 43083 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 43084 ;; 43085 esac 43086 43087 43088 43089 # Setup debug symbols (need objcopy from the toolchain for that) 43090 43091 # 43092 # ENABLE_DEBUG_SYMBOLS 43093 # This must be done after the toolchain is setup, since we're looking at objcopy. 43094 # 43095 # Check whether --enable-debug-symbols was given. 43096 if test "${enable_debug_symbols+set}" = set; then : 43097 enableval=$enable_debug_symbols; 43098 fi 43099 43100 43101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5 43102 $as_echo_n "checking if we should generate debug symbols... " >&6; } 43103 43104 if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then 43105 # explicit enabling of enable-debug-symbols and can't find objcopy 43106 # this is an error 43107 as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5 43108 fi 43109 43110 if test "x$enable_debug_symbols" = "xyes"; then 43111 ENABLE_DEBUG_SYMBOLS=true 43112 elif test "x$enable_debug_symbols" = "xno"; then 43113 ENABLE_DEBUG_SYMBOLS=false 43114 else 43115 # Default is on if objcopy is found 43116 if test "x$OBJCOPY" != x; then 43117 ENABLE_DEBUG_SYMBOLS=true 43118 # MacOS X and Windows don't use objcopy but default is on for those OSes 43119 elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then 43120 ENABLE_DEBUG_SYMBOLS=true 43121 else 43122 ENABLE_DEBUG_SYMBOLS=false 43123 fi 43124 fi 43125 43126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5 43127 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; } 43128 43129 # 43130 # ZIP_DEBUGINFO_FILES 43131 # 43132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5 43133 $as_echo_n "checking if we should zip debug-info files... " >&6; } 43134 # Check whether --enable-zip-debug-info was given. 43135 if test "${enable_zip_debug_info+set}" = set; then : 43136 enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}" 43137 else 43138 enable_zip_debug_info="yes" 43139 fi 43140 43141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5 43142 $as_echo "${enable_zip_debug_info}" >&6; } 43143 43144 if test "x${enable_zip_debug_info}" = "xno"; then 43145 ZIP_DEBUGINFO_FILES=false 43146 else 43147 ZIP_DEBUGINFO_FILES=true 43148 fi 43149 43150 43151 43152 43153 43154 ############################################################################### 43155 # 43156 # Check dependencies for external and internal libraries. 43157 # 43158 ############################################################################### 43159 43160 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 43161 43162 # When using cygwin or msys, we need a wrapper binary that renames 43163 # /cygdrive/c/ arguments into c:/ arguments and peeks into 43164 # @files and rewrites these too! This wrapper binary is 43165 # called fixpath. 43166 FIXPATH= 43167 if test "x$OPENJDK_BUILD_OS" = xwindows; then 43168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 43169 $as_echo_n "checking if fixpath can be created... " >&6; } 43170 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 43171 FIXPATH_BIN="$OUTPUT_ROOT/fixpath.exe" 43172 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 43173 FIXPATH_SRC=`$CYGPATH -m $FIXPATH_SRC` 43174 FIXPATH_BIN=`$CYGPATH -m $FIXPATH_BIN` 43175 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 43176 FIXPATH="$OUTPUT_ROOT/fixpath.exe -c" 43177 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 43178 FIXPATH_SRC=`cmd //c echo $FIXPATH_SRC` 43179 FIXPATH_BIN=`cmd //c echo $FIXPATH_BIN` 43180 43181 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 43182 # @ was chosen as separator to minimize risk of other tools messing around with it 43183 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" | tr ' ' '\n' | grep '^/./' | sort | uniq` 43184 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 43185 43186 FIXPATH="$OUTPUT_ROOT/fixpath -m$fixpath_argument_list" 43187 fi 43188 rm -f $OUTPUT_ROOT/fixpath* 43189 cd $OUTPUT_ROOT 43190 $CC $FIXPATH_SRC -Fe$FIXPATH_BIN > $OUTPUT_ROOT/fixpath1.log 2>&1 43191 cd $CURDIR 43192 43193 if test ! -x $OUTPUT_ROOT/fixpath.exe; then 43194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43195 $as_echo "no" >&6; } 43196 cat $OUTPUT_ROOT/fixpath1.log 43197 as_fn_error $? "Could not create $OUTPUT_ROOT/fixpath.exe" "$LINENO" 5 43198 fi 43199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43200 $as_echo "yes" >&6; } 43201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 43202 $as_echo_n "checking if fixpath.exe works... " >&6; } 43203 cd $OUTPUT_ROOT 43204 $FIXPATH $CC $SRC_ROOT/common/src/fixpath.c -Fe$OUTPUT_ROOT/fixpath2.exe > $OUTPUT_ROOT/fixpath2.log 2>&1 43205 cd $CURDIR 43206 if test ! -x $OUTPUT_ROOT/fixpath2.exe; then 43207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43208 $as_echo "no" >&6; } 43209 cat $OUTPUT_ROOT/fixpath2.log 43210 as_fn_error $? "fixpath did not work!" "$LINENO" 5 43211 fi 43212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43213 $as_echo "yes" >&6; } 43214 rm -f $OUTPUT_ROOT/fixpath?.??? $OUTPUT_ROOT/fixpath.obj 43215 fi 43216 43217 43218 43219 43220 43221 43222 ############################################################################### 43223 # 43224 # OS specific settings that we never will need to probe. 43225 # 43226 if test "x$OPENJDK_TARGET_OS" = xlinux; then 43227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5 43228 $as_echo_n "checking what is not needed on Linux?... " >&6; } 43229 PULSE_NOT_NEEDED=yes 43230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5 43231 $as_echo "pulse" >&6; } 43232 fi 43233 43234 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 43235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5 43236 $as_echo_n "checking what is not needed on Solaris?... " >&6; } 43237 ALSA_NOT_NEEDED=yes 43238 PULSE_NOT_NEEDED=yes 43239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 43240 $as_echo "alsa pulse" >&6; } 43241 fi 43242 43243 if test "x$OPENJDK_TARGET_OS" = xaix; then 43244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5 43245 $as_echo_n "checking what is not needed on AIX?... " >&6; } 43246 ALSA_NOT_NEEDED=yes 43247 PULSE_NOT_NEEDED=yes 43248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 43249 $as_echo "alsa pulse" >&6; } 43250 fi 43251 43252 43253 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5 43255 $as_echo_n "checking what is not needed on Windows?... " >&6; } 43256 CUPS_NOT_NEEDED=yes 43257 ALSA_NOT_NEEDED=yes 43258 PULSE_NOT_NEEDED=yes 43259 X11_NOT_NEEDED=yes 43260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5 43261 $as_echo "alsa cups pulse x11" >&6; } 43262 fi 43263 43264 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 43265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5 43266 $as_echo_n "checking what is not needed on MacOSX?... " >&6; } 43267 ALSA_NOT_NEEDED=yes 43268 PULSE_NOT_NEEDED=yes 43269 X11_NOT_NEEDED=yes 43270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5 43271 $as_echo "alsa pulse x11" >&6; } 43272 fi 43273 43274 if test "x$OPENJDK_TARGET_OS" = xbsd; then 43275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5 43276 $as_echo_n "checking what is not needed on bsd?... " >&6; } 43277 ALSA_NOT_NEEDED=yes 43278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5 43279 $as_echo "alsa" >&6; } 43280 fi 43281 43282 if test "x$OPENJDK" = "xfalse"; then 43283 FREETYPE_NOT_NEEDED=yes 43284 fi 43285 43286 if test "x$SUPPORT_HEADFUL" = xno; then 43287 X11_NOT_NEEDED=yes 43288 fi 43289 43290 43291 43292 ############################################################################### 43293 # 43294 # Check for X Windows 43295 # 43296 43297 # Check if the user has specified sysroot, but not --x-includes or --x-libraries. 43298 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 43299 # --x-libraries for the sysroot, if that seems to be correct. 43300 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 43301 if test "x$SYSROOT" != "x"; then 43302 if test "x$x_includes" = xNONE; then 43303 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 43304 x_includes="$SYSROOT/usr/X11R6/include" 43305 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 43306 x_includes="$SYSROOT/usr/include" 43307 fi 43308 fi 43309 if test "x$x_libraries" = xNONE; then 43310 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 43311 x_libraries="$SYSROOT/usr/X11R6/lib" 43312 elif test "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 43313 x_libraries="$SYSROOT/usr/lib64" 43314 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 43315 x_libraries="$SYSROOT/usr/lib" 43316 fi 43317 fi 43318 fi 43319 fi 43320 43321 # Now let autoconf do it's magic 43322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 43323 $as_echo_n "checking for X... " >&6; } 43324 43325 43326 # Check whether --with-x was given. 43327 if test "${with_x+set}" = set; then : 43328 withval=$with_x; 43329 fi 43330 43331 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 43332 if test "x$with_x" = xno; then 43333 # The user explicitly disabled X. 43334 have_x=disabled 43335 else 43336 case $x_includes,$x_libraries in #( 43337 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 43338 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 43339 $as_echo_n "(cached) " >&6 43340 else 43341 # One or both of the vars are not set, and there is no cached value. 43342 ac_x_includes=no ac_x_libraries=no 43343 rm -f -r conftest.dir 43344 if mkdir conftest.dir; then 43345 cd conftest.dir 43346 cat >Imakefile <<'_ACEOF' 43347 incroot: 43348 @echo incroot='${INCROOT}' 43349 usrlibdir: 43350 @echo usrlibdir='${USRLIBDIR}' 43351 libdir: 43352 @echo libdir='${LIBDIR}' 43353 _ACEOF 43354 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 43355 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 43356 for ac_var in incroot usrlibdir libdir; do 43357 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 43358 done 43359 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 43360 for ac_extension in a so sl dylib la dll; do 43361 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 43362 test -f "$ac_im_libdir/libX11.$ac_extension"; then 43363 ac_im_usrlibdir=$ac_im_libdir; break 43364 fi 43365 done 43366 # Screen out bogus values from the imake configuration. They are 43367 # bogus both because they are the default anyway, and because 43368 # using them would break gcc on systems where it needs fixed includes. 43369 case $ac_im_incroot in 43370 /usr/include) ac_x_includes= ;; 43371 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 43372 esac 43373 case $ac_im_usrlibdir in 43374 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 43375 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 43376 esac 43377 fi 43378 cd .. 43379 rm -f -r conftest.dir 43380 fi 43381 43382 # Standard set of common directories for X headers. 43383 # Check X11 before X11Rn because it is often a symlink to the current release. 43384 ac_x_header_dirs=' 43385 /usr/X11/include 43386 /usr/X11R7/include 43387 /usr/X11R6/include 43388 /usr/X11R5/include 43389 /usr/X11R4/include 43390 43391 /usr/include/X11 43392 /usr/include/X11R7 43393 /usr/include/X11R6 43394 /usr/include/X11R5 43395 /usr/include/X11R4 43396 43397 /usr/local/X11/include 43398 /usr/local/X11R7/include 43399 /usr/local/X11R6/include 43400 /usr/local/X11R5/include 43401 /usr/local/X11R4/include 43402 43403 /usr/local/include/X11 43404 /usr/local/include/X11R7 43405 /usr/local/include/X11R6 43406 /usr/local/include/X11R5 43407 /usr/local/include/X11R4 43408 43409 /usr/X386/include 43410 /usr/x386/include 43411 /usr/XFree86/include/X11 43412 43413 /usr/include 43414 /usr/local/include 43415 /usr/unsupported/include 43416 /usr/athena/include 43417 /usr/local/x11r5/include 43418 /usr/lpp/Xamples/include 43419 43420 /usr/openwin/include 43421 /usr/openwin/share/include' 43422 43423 if test "$ac_x_includes" = no; then 43424 # Guess where to find include files, by looking for Xlib.h. 43425 # First, try using that file with no special directory specified. 43426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43427 /* end confdefs.h. */ 43428 #include <X11/Xlib.h> 43429 _ACEOF 43430 if ac_fn_cxx_try_cpp "$LINENO"; then : 43431 # We can compile using X headers with no special include directory. 43432 ac_x_includes= 43433 else 43434 for ac_dir in $ac_x_header_dirs; do 43435 if test -r "$ac_dir/X11/Xlib.h"; then 43436 ac_x_includes=$ac_dir 43437 break 43438 fi 43439 done 43440 fi 43441 rm -f conftest.err conftest.i conftest.$ac_ext 43442 fi # $ac_x_includes = no 43443 43444 if test "$ac_x_libraries" = no; then 43445 # Check for the libraries. 43446 # See if we find them without any special options. 43447 # Don't add to $LIBS permanently. 43448 ac_save_LIBS=$LIBS 43449 LIBS="-lX11 $LIBS" 43450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43451 /* end confdefs.h. */ 43452 #include <X11/Xlib.h> 43453 int 43454 main () 43455 { 43456 XrmInitialize () 43457 ; 43458 return 0; 43459 } 43460 _ACEOF 43461 if ac_fn_cxx_try_link "$LINENO"; then : 43462 LIBS=$ac_save_LIBS 43463 # We can link X programs with no special library path. 43464 ac_x_libraries= 43465 else 43466 LIBS=$ac_save_LIBS 43467 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 43468 do 43469 # Don't even attempt the hair of trying to link an X program! 43470 for ac_extension in a so sl dylib la dll; do 43471 if test -r "$ac_dir/libX11.$ac_extension"; then 43472 ac_x_libraries=$ac_dir 43473 break 2 43474 fi 43475 done 43476 done 43477 fi 43478 rm -f core conftest.err conftest.$ac_objext \ 43479 conftest$ac_exeext conftest.$ac_ext 43480 fi # $ac_x_libraries = no 43481 43482 case $ac_x_includes,$ac_x_libraries in #( 43483 no,* | *,no | *\'*) 43484 # Didn't find X, or a directory has "'" in its name. 43485 ac_cv_have_x="have_x=no";; #( 43486 *) 43487 # Record where we found X for the cache. 43488 ac_cv_have_x="have_x=yes\ 43489 ac_x_includes='$ac_x_includes'\ 43490 ac_x_libraries='$ac_x_libraries'" 43491 esac 43492 fi 43493 ;; #( 43494 *) have_x=yes;; 43495 esac 43496 eval "$ac_cv_have_x" 43497 fi # $with_x != no 43498 43499 if test "$have_x" != yes; then 43500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 43501 $as_echo "$have_x" >&6; } 43502 no_x=yes 43503 else 43504 # If each of the values was on the command line, it overrides each guess. 43505 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 43506 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 43507 # Update the cache value to reflect the command line values. 43508 ac_cv_have_x="have_x=yes\ 43509 ac_x_includes='$x_includes'\ 43510 ac_x_libraries='$x_libraries'" 43511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 43512 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 43513 fi 43514 43515 if test "$no_x" = yes; then 43516 # Not all programs may use this symbol, but it does not hurt to define it. 43517 43518 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 43519 43520 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 43521 else 43522 if test -n "$x_includes"; then 43523 X_CFLAGS="$X_CFLAGS -I$x_includes" 43524 fi 43525 43526 # It would also be nice to do this for all -L options, not just this one. 43527 if test -n "$x_libraries"; then 43528 X_LIBS="$X_LIBS -L$x_libraries" 43529 # For Solaris; some versions of Sun CC require a space after -R and 43530 # others require no space. Words are not sufficient . . . . 43531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 43532 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 43533 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 43534 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 43535 ac_cxx_werror_flag=yes 43536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43537 /* end confdefs.h. */ 43538 43539 int 43540 main () 43541 { 43542 43543 ; 43544 return 0; 43545 } 43546 _ACEOF 43547 if ac_fn_cxx_try_link "$LINENO"; then : 43548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43549 $as_echo "no" >&6; } 43550 X_LIBS="$X_LIBS -R$x_libraries" 43551 else 43552 LIBS="$ac_xsave_LIBS -R $x_libraries" 43553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43554 /* end confdefs.h. */ 43555 43556 int 43557 main () 43558 { 43559 43560 ; 43561 return 0; 43562 } 43563 _ACEOF 43564 if ac_fn_cxx_try_link "$LINENO"; then : 43565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43566 $as_echo "yes" >&6; } 43567 X_LIBS="$X_LIBS -R $x_libraries" 43568 else 43569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 43570 $as_echo "neither works" >&6; } 43571 fi 43572 rm -f core conftest.err conftest.$ac_objext \ 43573 conftest$ac_exeext conftest.$ac_ext 43574 fi 43575 rm -f core conftest.err conftest.$ac_objext \ 43576 conftest$ac_exeext conftest.$ac_ext 43577 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 43578 LIBS=$ac_xsave_LIBS 43579 fi 43580 43581 # Check for system-dependent libraries X programs must link with. 43582 # Do this before checking for the system-independent R6 libraries 43583 # (-lICE), since we may need -lsocket or whatever for X linking. 43584 43585 if test "$ISC" = yes; then 43586 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 43587 else 43588 # Martyn Johnson says this is needed for Ultrix, if the X 43589 # libraries were built with DECnet support. And Karl Berry says 43590 # the Alpha needs dnet_stub (dnet does not exist). 43591 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 43592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43593 /* end confdefs.h. */ 43594 43595 /* Override any GCC internal prototype to avoid an error. 43596 Use char because int might match the return type of a GCC 43597 builtin and then its argument prototype would still apply. */ 43598 #ifdef __cplusplus 43599 extern "C" 43600 #endif 43601 char XOpenDisplay (); 43602 int 43603 main () 43604 { 43605 return XOpenDisplay (); 43606 ; 43607 return 0; 43608 } 43609 _ACEOF 43610 if ac_fn_cxx_try_link "$LINENO"; then : 43611 43612 else 43613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 43614 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 43615 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 43616 $as_echo_n "(cached) " >&6 43617 else 43618 ac_check_lib_save_LIBS=$LIBS 43619 LIBS="-ldnet $LIBS" 43620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43621 /* end confdefs.h. */ 43622 43623 /* Override any GCC internal prototype to avoid an error. 43624 Use char because int might match the return type of a GCC 43625 builtin and then its argument prototype would still apply. */ 43626 #ifdef __cplusplus 43627 extern "C" 43628 #endif 43629 char dnet_ntoa (); 43630 int 43631 main () 43632 { 43633 return dnet_ntoa (); 43634 ; 43635 return 0; 43636 } 43637 _ACEOF 43638 if ac_fn_cxx_try_link "$LINENO"; then : 43639 ac_cv_lib_dnet_dnet_ntoa=yes 43640 else 43641 ac_cv_lib_dnet_dnet_ntoa=no 43642 fi 43643 rm -f core conftest.err conftest.$ac_objext \ 43644 conftest$ac_exeext conftest.$ac_ext 43645 LIBS=$ac_check_lib_save_LIBS 43646 fi 43647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 43648 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 43649 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 43650 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 43651 fi 43652 43653 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 43654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 43655 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 43656 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 43657 $as_echo_n "(cached) " >&6 43658 else 43659 ac_check_lib_save_LIBS=$LIBS 43660 LIBS="-ldnet_stub $LIBS" 43661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43662 /* end confdefs.h. */ 43663 43664 /* Override any GCC internal prototype to avoid an error. 43665 Use char because int might match the return type of a GCC 43666 builtin and then its argument prototype would still apply. */ 43667 #ifdef __cplusplus 43668 extern "C" 43669 #endif 43670 char dnet_ntoa (); 43671 int 43672 main () 43673 { 43674 return dnet_ntoa (); 43675 ; 43676 return 0; 43677 } 43678 _ACEOF 43679 if ac_fn_cxx_try_link "$LINENO"; then : 43680 ac_cv_lib_dnet_stub_dnet_ntoa=yes 43681 else 43682 ac_cv_lib_dnet_stub_dnet_ntoa=no 43683 fi 43684 rm -f core conftest.err conftest.$ac_objext \ 43685 conftest$ac_exeext conftest.$ac_ext 43686 LIBS=$ac_check_lib_save_LIBS 43687 fi 43688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 43689 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 43690 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 43691 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 43692 fi 43693 43694 fi 43695 fi 43696 rm -f core conftest.err conftest.$ac_objext \ 43697 conftest$ac_exeext conftest.$ac_ext 43698 LIBS="$ac_xsave_LIBS" 43699 43700 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 43701 # to get the SysV transport functions. 43702 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 43703 # needs -lnsl. 43704 # The nsl library prevents programs from opening the X display 43705 # on Irix 5.2, according to T.E. Dickey. 43706 # The functions gethostbyname, getservbyname, and inet_addr are 43707 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 43708 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 43709 if test "x$ac_cv_func_gethostbyname" = xyes; then : 43710 43711 fi 43712 43713 if test $ac_cv_func_gethostbyname = no; then 43714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 43715 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 43716 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 43717 $as_echo_n "(cached) " >&6 43718 else 43719 ac_check_lib_save_LIBS=$LIBS 43720 LIBS="-lnsl $LIBS" 43721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43722 /* end confdefs.h. */ 43723 43724 /* Override any GCC internal prototype to avoid an error. 43725 Use char because int might match the return type of a GCC 43726 builtin and then its argument prototype would still apply. */ 43727 #ifdef __cplusplus 43728 extern "C" 43729 #endif 43730 char gethostbyname (); 43731 int 43732 main () 43733 { 43734 return gethostbyname (); 43735 ; 43736 return 0; 43737 } 43738 _ACEOF 43739 if ac_fn_cxx_try_link "$LINENO"; then : 43740 ac_cv_lib_nsl_gethostbyname=yes 43741 else 43742 ac_cv_lib_nsl_gethostbyname=no 43743 fi 43744 rm -f core conftest.err conftest.$ac_objext \ 43745 conftest$ac_exeext conftest.$ac_ext 43746 LIBS=$ac_check_lib_save_LIBS 43747 fi 43748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 43749 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 43750 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 43751 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 43752 fi 43753 43754 if test $ac_cv_lib_nsl_gethostbyname = no; then 43755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 43756 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 43757 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 43758 $as_echo_n "(cached) " >&6 43759 else 43760 ac_check_lib_save_LIBS=$LIBS 43761 LIBS="-lbsd $LIBS" 43762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43763 /* end confdefs.h. */ 43764 43765 /* Override any GCC internal prototype to avoid an error. 43766 Use char because int might match the return type of a GCC 43767 builtin and then its argument prototype would still apply. */ 43768 #ifdef __cplusplus 43769 extern "C" 43770 #endif 43771 char gethostbyname (); 43772 int 43773 main () 43774 { 43775 return gethostbyname (); 43776 ; 43777 return 0; 43778 } 43779 _ACEOF 43780 if ac_fn_cxx_try_link "$LINENO"; then : 43781 ac_cv_lib_bsd_gethostbyname=yes 43782 else 43783 ac_cv_lib_bsd_gethostbyname=no 43784 fi 43785 rm -f core conftest.err conftest.$ac_objext \ 43786 conftest$ac_exeext conftest.$ac_ext 43787 LIBS=$ac_check_lib_save_LIBS 43788 fi 43789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 43790 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 43791 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 43792 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 43793 fi 43794 43795 fi 43796 fi 43797 43798 # lieder@skyler.mavd.honeywell.com says without -lsocket, 43799 # socket/setsockopt and other routines are undefined under SCO ODT 43800 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 43801 # on later versions), says Simon Leinen: it contains gethostby* 43802 # variants that don't use the name server (or something). -lsocket 43803 # must be given before -lnsl if both are needed. We assume that 43804 # if connect needs -lnsl, so does gethostbyname. 43805 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 43806 if test "x$ac_cv_func_connect" = xyes; then : 43807 43808 fi 43809 43810 if test $ac_cv_func_connect = no; then 43811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 43812 $as_echo_n "checking for connect in -lsocket... " >&6; } 43813 if ${ac_cv_lib_socket_connect+:} false; then : 43814 $as_echo_n "(cached) " >&6 43815 else 43816 ac_check_lib_save_LIBS=$LIBS 43817 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 43818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43819 /* end confdefs.h. */ 43820 43821 /* Override any GCC internal prototype to avoid an error. 43822 Use char because int might match the return type of a GCC 43823 builtin and then its argument prototype would still apply. */ 43824 #ifdef __cplusplus 43825 extern "C" 43826 #endif 43827 char connect (); 43828 int 43829 main () 43830 { 43831 return connect (); 43832 ; 43833 return 0; 43834 } 43835 _ACEOF 43836 if ac_fn_cxx_try_link "$LINENO"; then : 43837 ac_cv_lib_socket_connect=yes 43838 else 43839 ac_cv_lib_socket_connect=no 43840 fi 43841 rm -f core conftest.err conftest.$ac_objext \ 43842 conftest$ac_exeext conftest.$ac_ext 43843 LIBS=$ac_check_lib_save_LIBS 43844 fi 43845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 43846 $as_echo "$ac_cv_lib_socket_connect" >&6; } 43847 if test "x$ac_cv_lib_socket_connect" = xyes; then : 43848 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 43849 fi 43850 43851 fi 43852 43853 # Guillermo Gomez says -lposix is necessary on A/UX. 43854 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 43855 if test "x$ac_cv_func_remove" = xyes; then : 43856 43857 fi 43858 43859 if test $ac_cv_func_remove = no; then 43860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 43861 $as_echo_n "checking for remove in -lposix... " >&6; } 43862 if ${ac_cv_lib_posix_remove+:} false; then : 43863 $as_echo_n "(cached) " >&6 43864 else 43865 ac_check_lib_save_LIBS=$LIBS 43866 LIBS="-lposix $LIBS" 43867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43868 /* end confdefs.h. */ 43869 43870 /* Override any GCC internal prototype to avoid an error. 43871 Use char because int might match the return type of a GCC 43872 builtin and then its argument prototype would still apply. */ 43873 #ifdef __cplusplus 43874 extern "C" 43875 #endif 43876 char remove (); 43877 int 43878 main () 43879 { 43880 return remove (); 43881 ; 43882 return 0; 43883 } 43884 _ACEOF 43885 if ac_fn_cxx_try_link "$LINENO"; then : 43886 ac_cv_lib_posix_remove=yes 43887 else 43888 ac_cv_lib_posix_remove=no 43889 fi 43890 rm -f core conftest.err conftest.$ac_objext \ 43891 conftest$ac_exeext conftest.$ac_ext 43892 LIBS=$ac_check_lib_save_LIBS 43893 fi 43894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 43895 $as_echo "$ac_cv_lib_posix_remove" >&6; } 43896 if test "x$ac_cv_lib_posix_remove" = xyes; then : 43897 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 43898 fi 43899 43900 fi 43901 43902 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 43903 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 43904 if test "x$ac_cv_func_shmat" = xyes; then : 43905 43906 fi 43907 43908 if test $ac_cv_func_shmat = no; then 43909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 43910 $as_echo_n "checking for shmat in -lipc... " >&6; } 43911 if ${ac_cv_lib_ipc_shmat+:} false; then : 43912 $as_echo_n "(cached) " >&6 43913 else 43914 ac_check_lib_save_LIBS=$LIBS 43915 LIBS="-lipc $LIBS" 43916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43917 /* end confdefs.h. */ 43918 43919 /* Override any GCC internal prototype to avoid an error. 43920 Use char because int might match the return type of a GCC 43921 builtin and then its argument prototype would still apply. */ 43922 #ifdef __cplusplus 43923 extern "C" 43924 #endif 43925 char shmat (); 43926 int 43927 main () 43928 { 43929 return shmat (); 43930 ; 43931 return 0; 43932 } 43933 _ACEOF 43934 if ac_fn_cxx_try_link "$LINENO"; then : 43935 ac_cv_lib_ipc_shmat=yes 43936 else 43937 ac_cv_lib_ipc_shmat=no 43938 fi 43939 rm -f core conftest.err conftest.$ac_objext \ 43940 conftest$ac_exeext conftest.$ac_ext 43941 LIBS=$ac_check_lib_save_LIBS 43942 fi 43943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 43944 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 43945 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 43946 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 43947 fi 43948 43949 fi 43950 fi 43951 43952 # Check for libraries that X11R6 Xt/Xaw programs need. 43953 ac_save_LDFLAGS=$LDFLAGS 43954 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 43955 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 43956 # check for ICE first), but we must link in the order -lSM -lICE or 43957 # we get undefined symbols. So assume we have SM if we have ICE. 43958 # These have to be linked with before -lX11, unlike the other 43959 # libraries we check for below, so use a different variable. 43960 # John Interrante, Karl Berry 43961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 43962 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 43963 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 43964 $as_echo_n "(cached) " >&6 43965 else 43966 ac_check_lib_save_LIBS=$LIBS 43967 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 43968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43969 /* end confdefs.h. */ 43970 43971 /* Override any GCC internal prototype to avoid an error. 43972 Use char because int might match the return type of a GCC 43973 builtin and then its argument prototype would still apply. */ 43974 #ifdef __cplusplus 43975 extern "C" 43976 #endif 43977 char IceConnectionNumber (); 43978 int 43979 main () 43980 { 43981 return IceConnectionNumber (); 43982 ; 43983 return 0; 43984 } 43985 _ACEOF 43986 if ac_fn_cxx_try_link "$LINENO"; then : 43987 ac_cv_lib_ICE_IceConnectionNumber=yes 43988 else 43989 ac_cv_lib_ICE_IceConnectionNumber=no 43990 fi 43991 rm -f core conftest.err conftest.$ac_objext \ 43992 conftest$ac_exeext conftest.$ac_ext 43993 LIBS=$ac_check_lib_save_LIBS 43994 fi 43995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 43996 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 43997 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 43998 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 43999 fi 44000 44001 LDFLAGS=$ac_save_LDFLAGS 44002 44003 fi 44004 44005 44006 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 44007 # this doesn't make sense so we remove it. 44008 if test "x$COMPILE_TYPE" = xcross; then 44009 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 44010 fi 44011 44012 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then 44013 44014 # Print a helpful message on how to acquire the necessary build dependency. 44015 # x11 is the help tag: freetype, cups, pulse, alsa etc 44016 MISSING_DEPENDENCY=x11 44017 44018 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44019 cygwin_help $MISSING_DEPENDENCY 44020 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44021 msys_help $MISSING_DEPENDENCY 44022 else 44023 PKGHANDLER_COMMAND= 44024 44025 case $PKGHANDLER in 44026 apt-get) 44027 apt_help $MISSING_DEPENDENCY ;; 44028 yum) 44029 yum_help $MISSING_DEPENDENCY ;; 44030 port) 44031 port_help $MISSING_DEPENDENCY ;; 44032 pkgutil) 44033 pkgutil_help $MISSING_DEPENDENCY ;; 44034 pkgadd) 44035 pkgadd_help $MISSING_DEPENDENCY ;; 44036 esac 44037 44038 if test "x$PKGHANDLER_COMMAND" != x; then 44039 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44040 fi 44041 fi 44042 44043 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 44044 fi 44045 44046 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 44047 OPENWIN_HOME="/usr/openwin" 44048 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 44049 X_LIBS="-L$SYSROOT$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 44050 -L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 44051 -R$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 44052 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 44053 fi 44054 44055 ac_ext=c 44056 ac_cpp='$CPP $CPPFLAGS' 44057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44059 ac_compiler_gnu=$ac_cv_c_compiler_gnu 44060 44061 OLD_CFLAGS="$CFLAGS" 44062 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 44063 44064 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 44065 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 44066 do : 44067 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 44068 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 44069 # include <X11/Xlib.h> 44070 # include <X11/Xutil.h> 44071 44072 44073 " 44074 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 44075 cat >>confdefs.h <<_ACEOF 44076 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 44077 _ACEOF 44078 X11_A_OK=yes 44079 else 44080 X11_A_OK=no; break 44081 fi 44082 44083 done 44084 44085 44086 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 44087 # defined in libawt_xawt. 44088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 44089 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 44090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44091 /* end confdefs.h. */ 44092 #include <X11/extensions/Xrender.h> 44093 int 44094 main () 44095 { 44096 XLinearGradient x; 44097 ; 44098 return 0; 44099 } 44100 _ACEOF 44101 if ac_fn_c_try_compile "$LINENO"; then : 44102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44103 $as_echo "yes" >&6; } 44104 else 44105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44106 $as_echo "no" >&6; } 44107 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 44108 fi 44109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 44110 44111 CFLAGS="$OLD_CFLAGS" 44112 ac_ext=cpp 44113 ac_cpp='$CXXCPP $CPPFLAGS' 44114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 44117 44118 44119 if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then 44120 44121 # Print a helpful message on how to acquire the necessary build dependency. 44122 # x11 is the help tag: freetype, cups, pulse, alsa etc 44123 MISSING_DEPENDENCY=x11 44124 44125 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44126 cygwin_help $MISSING_DEPENDENCY 44127 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44128 msys_help $MISSING_DEPENDENCY 44129 else 44130 PKGHANDLER_COMMAND= 44131 44132 case $PKGHANDLER in 44133 apt-get) 44134 apt_help $MISSING_DEPENDENCY ;; 44135 yum) 44136 yum_help $MISSING_DEPENDENCY ;; 44137 port) 44138 port_help $MISSING_DEPENDENCY ;; 44139 pkgutil) 44140 pkgutil_help $MISSING_DEPENDENCY ;; 44141 pkgadd) 44142 pkgadd_help $MISSING_DEPENDENCY ;; 44143 esac 44144 44145 if test "x$PKGHANDLER_COMMAND" != x; then 44146 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44147 fi 44148 fi 44149 44150 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 44151 fi 44152 44153 44154 44155 44156 44157 44158 ############################################################################### 44159 # 44160 # The common unix printing system cups is used to print from java. 44161 # 44162 44163 # Check whether --with-cups was given. 44164 if test "${with_cups+set}" = set; then : 44165 withval=$with_cups; 44166 fi 44167 44168 44169 # Check whether --with-cups-include was given. 44170 if test "${with_cups_include+set}" = set; then : 44171 withval=$with_cups_include; 44172 fi 44173 44174 44175 if test "x$CUPS_NOT_NEEDED" = xyes; then 44176 if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then 44177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5 44178 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;} 44179 fi 44180 CUPS_CFLAGS= 44181 else 44182 CUPS_FOUND=no 44183 44184 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 44185 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 44186 fi 44187 44188 if test "x${with_cups}" != x; then 44189 CUPS_CFLAGS="-I${with_cups}/include" 44190 CUPS_FOUND=yes 44191 fi 44192 if test "x${with_cups_include}" != x; then 44193 CUPS_CFLAGS="-I${with_cups_include}" 44194 CUPS_FOUND=yes 44195 fi 44196 if test "x$CUPS_FOUND" = xno; then 44197 44198 44199 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 44200 # Source the builddeps file again, to make sure it uses the latest variables! 44201 . $builddepsfile 44202 # Look for a target and build machine specific resource! 44203 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 44204 if test "x$resource" = x; then 44205 # Ok, lets instead look for a target specific resource 44206 eval resource=\${builddep_cups_TARGET_${rewritten_target_var}} 44207 fi 44208 if test "x$resource" = x; then 44209 # Ok, lets instead look for a build specific resource 44210 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}} 44211 fi 44212 if test "x$resource" = x; then 44213 # Ok, lets instead look for a generic resource 44214 # (The cups comes from M4 and not the shell, thus no need for eval here.) 44215 resource=${builddep_cups} 44216 fi 44217 if test "x$resource" != x; then 44218 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5 44219 $as_echo "$as_me: Using builddeps $resource for cups" >&6;} 44220 # If the resource in the builddeps.conf file is an existing directory, 44221 # for example /java/linux/cups 44222 if test -d ${resource}; then 44223 depdir=${resource} 44224 else 44225 44226 # cups is for example mymodule 44227 # $resource is for example libs/general/libmymod_1_2_3.zip 44228 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 44229 # $with_builddeps_dir is for example /localhome/builddeps 44230 # depdir is the name of the variable into which we store the depdir, eg MYMOD 44231 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 44232 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 44233 filename=`basename $resource` 44234 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 44235 filebase=${filename%%.*} 44236 extension=${filename#*.} 44237 installdir=$with_builddeps_dir/$filebase 44238 if test ! -f $installdir/$filename.unpacked; then 44239 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5 44240 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;} 44241 if test ! -d $installdir; then 44242 mkdir -p $installdir 44243 fi 44244 if test ! -d $installdir; then 44245 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 44246 fi 44247 tmpfile=`mktemp $installdir/cups.XXXXXXXXX` 44248 touch $tmpfile 44249 if test ! -f $tmpfile; then 44250 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 44251 fi 44252 44253 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 44254 # $tmpfile is the local file name for the downloaded file. 44255 VALID_TOOL=no 44256 if test "x$BDEPS_FTP" = xwget; then 44257 VALID_TOOL=yes 44258 wget -O $tmpfile $with_builddeps_server/$resource 44259 fi 44260 if test "x$BDEPS_FTP" = xlftp; then 44261 VALID_TOOL=yes 44262 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 44263 fi 44264 if test "x$BDEPS_FTP" = xftp; then 44265 VALID_TOOL=yes 44266 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 44267 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 44268 FTPUSERPWD=${FTPSERVER%%@*} 44269 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 44270 FTPUSER=${userpwd%%:*} 44271 FTPPWD=${userpwd#*@} 44272 FTPSERVER=${FTPSERVER#*@} 44273 else 44274 FTPUSER=ftp 44275 FTPPWD=ftp 44276 fi 44277 # the "pass" command does not work on some 44278 # ftp clients (read ftp.exe) but if it works, 44279 # passive mode is better! 44280 ( \ 44281 echo "user $FTPUSER $FTPPWD" ; \ 44282 echo "pass" ; \ 44283 echo "bin" ; \ 44284 echo "get $FTPPATH $tmpfile" ; \ 44285 ) | ftp -in $FTPSERVER 44286 fi 44287 if test "x$VALID_TOOL" != xyes; then 44288 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 44289 fi 44290 44291 mv $tmpfile $installdir/$filename 44292 if test ! -s $installdir/$filename; then 44293 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 44294 fi 44295 case "$extension" in 44296 zip) echo "Unzipping $installdir/$filename..." 44297 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 44298 ;; 44299 tar.gz) echo "Untaring $installdir/$filename..." 44300 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44301 ;; 44302 tgz) echo "Untaring $installdir/$filename..." 44303 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44304 ;; 44305 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 44306 ;; 44307 esac 44308 fi 44309 if test -f $installdir/$filename.unpacked; then 44310 depdir=$installdir 44311 fi 44312 44313 fi 44314 # Source the builddeps file again, because in the previous command, the depdir 44315 # was updated to point at the current build dependency install directory. 44316 . $builddepsfile 44317 # Now extract variables from the builddeps.conf files. 44318 theroot=${builddep_cups_ROOT} 44319 thecflags=${builddep_cups_CFLAGS} 44320 thelibs=${builddep_cups_LIBS} 44321 if test "x$depdir" = x; then 44322 as_fn_error $? "Could not download build dependency cups" "$LINENO" 5 44323 fi 44324 CUPS=$depdir 44325 if test "x$theroot" != x; then 44326 CUPS="$theroot" 44327 fi 44328 if test "x$thecflags" != x; then 44329 CUPS_CFLAGS="$thecflags" 44330 fi 44331 if test "x$thelibs" != x; then 44332 CUPS_LIBS="$thelibs" 44333 fi 44334 CUPS_FOUND=yes 44335 44336 fi 44337 44338 fi 44339 44340 fi 44341 if test "x$CUPS_FOUND" = xno; then 44342 # Are the cups headers installed in the default /usr/include location? 44343 for ac_header in cups/cups.h cups/ppd.h 44344 do : 44345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 44346 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 44347 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 44348 cat >>confdefs.h <<_ACEOF 44349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 44350 _ACEOF 44351 44352 CUPS_FOUND=yes 44353 CUPS_CFLAGS= 44354 DEFAULT_CUPS=yes 44355 44356 44357 fi 44358 44359 done 44360 44361 fi 44362 if test "x$CUPS_FOUND" = xno; then 44363 # Getting nervous now? Lets poke around for standard Solaris third-party 44364 # package installation locations. 44365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 44366 $as_echo_n "checking for cups headers... " >&6; } 44367 if test -s $SYSROOT/opt/sfw/cups/include/cups/cups.h; then 44368 # An SFW package seems to be installed! 44369 CUPS_FOUND=yes 44370 CUPS_CFLAGS="-I$SYSROOT/opt/sfw/cups/include" 44371 elif test -s $SYSROOT/opt/csw/include/cups/cups.h; then 44372 # A CSW package seems to be installed! 44373 CUPS_FOUND=yes 44374 CUPS_CFLAGS="-I$SYSROOT/opt/csw/include" 44375 fi 44376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 44377 $as_echo "$CUPS_FOUND" >&6; } 44378 fi 44379 if test "x$CUPS_FOUND" = xno; then 44380 44381 # Print a helpful message on how to acquire the necessary build dependency. 44382 # cups is the help tag: freetype, cups, pulse, alsa etc 44383 MISSING_DEPENDENCY=cups 44384 44385 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44386 cygwin_help $MISSING_DEPENDENCY 44387 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44388 msys_help $MISSING_DEPENDENCY 44389 else 44390 PKGHANDLER_COMMAND= 44391 44392 case $PKGHANDLER in 44393 apt-get) 44394 apt_help $MISSING_DEPENDENCY ;; 44395 yum) 44396 yum_help $MISSING_DEPENDENCY ;; 44397 port) 44398 port_help $MISSING_DEPENDENCY ;; 44399 pkgutil) 44400 pkgutil_help $MISSING_DEPENDENCY ;; 44401 pkgadd) 44402 pkgadd_help $MISSING_DEPENDENCY ;; 44403 esac 44404 44405 if test "x$PKGHANDLER_COMMAND" != x; then 44406 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44407 fi 44408 fi 44409 44410 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 44411 fi 44412 fi 44413 44414 44415 44416 44417 44418 44419 ############################################################################### 44420 # 44421 # The ubiquitous freetype library is used to render fonts. 44422 # 44423 44424 # Check whether --with-freetype was given. 44425 if test "${with_freetype+set}" = set; then : 44426 withval=$with_freetype; 44427 fi 44428 44429 44430 # Check whether --with-freetype-include was given. 44431 if test "${with_freetype_include+set}" = set; then : 44432 withval=$with_freetype_include; 44433 fi 44434 44435 44436 # Check whether --with-freetype-lib was given. 44437 if test "${with_freetype_lib+set}" = set; then : 44438 withval=$with_freetype_lib; 44439 fi 44440 44441 44442 # Check whether --with-freetype-src was given. 44443 if test "${with_freetype_src+set}" = set; then : 44444 withval=$with_freetype_src; 44445 fi 44446 44447 # Check whether --enable-freetype-bundling was given. 44448 if test "${enable_freetype_bundling+set}" = set; then : 44449 enableval=$enable_freetype_bundling; 44450 fi 44451 44452 44453 FREETYPE_CFLAGS= 44454 FREETYPE_LIBS= 44455 FREETYPE_BUNDLE_LIB_PATH= 44456 44457 if test "x$FREETYPE_NOT_NEEDED" = xyes; then 44458 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 44459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5 44460 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;} 44461 fi 44462 if test "x$enable_freetype_bundling" != x; then 44463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 44464 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 44465 fi 44466 else 44467 # freetype is needed to build; go get it! 44468 44469 BUNDLE_FREETYPE="$enable_freetype_bundling" 44470 44471 if test "x$with_freetype_src" != x; then 44472 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44473 # Try to build freetype if --with-freetype-src was given on Windows 44474 44475 FREETYPE_SRC_PATH="$with_freetype_src" 44476 BUILD_FREETYPE=yes 44477 44478 # Check if the freetype sources are acessible.. 44479 if ! test -d $FREETYPE_SRC_PATH; then 44480 { $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 44481 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can't find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 44482 BUILD_FREETYPE=no 44483 fi 44484 # ..and contain a vc2010 project file 44485 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 44486 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 44487 { $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 44488 $as_echo "$as_me: WARNING: Can't find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 44489 BUILD_FREETYPE=no 44490 fi 44491 # Now check if configure found a version of 'msbuild.exe' 44492 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 44493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find an msbuild.exe executable (you may try to install .NET 4.0) - ignoring --with-freetype-src" >&5 44494 $as_echo "$as_me: WARNING: Can't find an msbuild.exe executable (you may try to install .NET 4.0) - ignoring --with-freetype-src" >&2;} 44495 BUILD_FREETYPE=no 44496 fi 44497 44498 # Ready to go.. 44499 if test "x$BUILD_FREETYPE" = xyes; then 44500 44501 # msbuild requires trailing slashes for output directories 44502 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 44503 freetype_lib_path_unix="$freetype_lib_path" 44504 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 44505 44506 unix_path="$vcxproj_path" 44507 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44508 windows_path=`$CYGPATH -m "$unix_path"` 44509 vcxproj_path="$windows_path" 44510 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44511 windows_path=`cmd //c echo $unix_path` 44512 vcxproj_path="$windows_path" 44513 fi 44514 44515 44516 unix_path="$freetype_lib_path" 44517 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44518 windows_path=`$CYGPATH -m "$unix_path"` 44519 freetype_lib_path="$windows_path" 44520 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44521 windows_path=`cmd //c echo $unix_path` 44522 freetype_lib_path="$windows_path" 44523 fi 44524 44525 44526 unix_path="$freetype_obj_path" 44527 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44528 windows_path=`$CYGPATH -m "$unix_path"` 44529 freetype_obj_path="$windows_path" 44530 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44531 windows_path=`cmd //c echo $unix_path` 44532 freetype_obj_path="$windows_path" 44533 fi 44534 44535 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 44536 freetype_platform=x64 44537 else 44538 freetype_platform=win32 44539 fi 44540 44541 # The original freetype project file is for VS 2010 (i.e. 'v100'), 44542 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 44543 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 44544 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 44545 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 44546 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 44547 44548 # First we try to build the freetype.dll 44549 $ECHO -e "@echo off\n"\ 44550 "$MSBUILD $vcxproj_path "\ 44551 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 44552 "/p:Configuration=\"Release Multithreaded\" "\ 44553 "/p:Platform=$freetype_platform "\ 44554 "/p:ConfigurationType=DynamicLibrary "\ 44555 "/p:TargetName=freetype "\ 44556 "/p:OutDir=\"$freetype_lib_path\" "\ 44557 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 44558 cmd /c freetype.bat 44559 44560 if test -s "$freetype_lib_path_unix/freetype.dll"; then 44561 # If that succeeds we also build freetype.lib 44562 $ECHO -e "@echo off\n"\ 44563 "$MSBUILD $vcxproj_path "\ 44564 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 44565 "/p:Configuration=\"Release Multithreaded\" "\ 44566 "/p:Platform=$freetype_platform "\ 44567 "/p:ConfigurationType=StaticLibrary "\ 44568 "/p:TargetName=freetype "\ 44569 "/p:OutDir=\"$freetype_lib_path\" "\ 44570 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 44571 cmd /c freetype.bat 44572 44573 if test -s "$freetype_lib_path_unix/freetype.lib"; then 44574 # Once we build both, lib and dll, set freetype lib and include path appropriately 44575 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 44576 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 44577 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 44578 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 44579 else 44580 BUILD_FREETYPE=no 44581 fi 44582 else 44583 BUILD_FREETYPE=no 44584 fi 44585 fi 44586 44587 if test "x$BUILD_FREETYPE" = xyes; then 44588 # Okay, we built it. Check that it works. 44589 44590 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44591 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44592 METHOD="--with-freetype-src" 44593 44594 # First check if the files exists. 44595 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44596 # We found an arbitrary include file. That's a good sign. 44597 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44598 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44599 FOUND_FREETYPE=yes 44600 44601 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44602 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44603 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44604 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44605 FOUND_FREETYPE=no 44606 else 44607 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44608 # On Windows, we will need both .lib and .dll file. 44609 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44610 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44611 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44612 FOUND_FREETYPE=no 44613 fi 44614 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 44615 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 44616 # Found lib in isa dir, use that instead. 44617 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 44618 fi 44619 fi 44620 fi 44621 44622 if test "x$FOUND_FREETYPE" = xyes; then 44623 44624 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44625 44626 # Input might be given as Windows format, start by converting to 44627 # unix format. 44628 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44629 new_path=`$CYGPATH -u "$path"` 44630 44631 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44632 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44633 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44634 # "foo.exe" is OK but "foo" is an error. 44635 # 44636 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44637 # It is also a way to make sure we got the proper file name for the real test later on. 44638 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44639 if test "x$test_shortpath" = x; then 44640 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44641 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44642 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44643 fi 44644 44645 # Call helper function which possibly converts this using DOS-style short mode. 44646 # If so, the updated path is stored in $new_path. 44647 44648 input_path="$new_path" 44649 # Check if we need to convert this using DOS-style short mode. If the path 44650 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44651 # take no chances and rewrite it. 44652 # Note: m4 eats our [], so we need to use [ and ] instead. 44653 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44654 if test "x$has_forbidden_chars" != x; then 44655 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44656 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44657 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44658 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44659 # Going to short mode and back again did indeed matter. Since short mode is 44660 # case insensitive, let's make it lowercase to improve readability. 44661 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44662 # Now convert it back to Unix-stile (cygpath) 44663 input_path=`$CYGPATH -u "$shortmode_path"` 44664 new_path="$input_path" 44665 fi 44666 fi 44667 44668 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44669 if test "x$test_cygdrive_prefix" = x; then 44670 # As a simple fix, exclude /usr/bin since it's not a real path. 44671 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44672 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44673 # a path prefixed by /cygdrive for fixpath to work. 44674 new_path="$CYGWIN_ROOT_PATH$input_path" 44675 fi 44676 fi 44677 44678 44679 if test "x$path" != "x$new_path"; then 44680 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44681 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44682 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44683 fi 44684 44685 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44686 44687 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44688 has_colon=`$ECHO $path | $GREP ^.:` 44689 new_path="$path" 44690 if test "x$has_colon" = x; then 44691 # Not in mixed or Windows style, start by that. 44692 new_path=`cmd //c echo $path` 44693 fi 44694 44695 44696 input_path="$new_path" 44697 # Check if we need to convert this using DOS-style short mode. If the path 44698 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44699 # take no chances and rewrite it. 44700 # Note: m4 eats our [], so we need to use [ and ] instead. 44701 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44702 if test "x$has_forbidden_chars" != x; then 44703 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44704 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44705 fi 44706 44707 44708 windows_path="$new_path" 44709 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44710 unix_path=`$CYGPATH -u "$windows_path"` 44711 new_path="$unix_path" 44712 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44713 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44714 new_path="$unix_path" 44715 fi 44716 44717 if test "x$path" != "x$new_path"; then 44718 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44719 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44720 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44721 fi 44722 44723 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44724 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44725 44726 else 44727 # We're on a posix platform. Hooray! :) 44728 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44729 has_space=`$ECHO "$path" | $GREP " "` 44730 if test "x$has_space" != x; then 44731 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44732 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44733 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44734 fi 44735 44736 # Use eval to expand a potential ~ 44737 eval path="$path" 44738 if test ! -f "$path" && test ! -d "$path"; then 44739 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44740 fi 44741 44742 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44743 fi 44744 44745 44746 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44747 44748 # Input might be given as Windows format, start by converting to 44749 # unix format. 44750 path="$POTENTIAL_FREETYPE_LIB_PATH" 44751 new_path=`$CYGPATH -u "$path"` 44752 44753 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44754 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44755 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44756 # "foo.exe" is OK but "foo" is an error. 44757 # 44758 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44759 # It is also a way to make sure we got the proper file name for the real test later on. 44760 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44761 if test "x$test_shortpath" = x; then 44762 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44763 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44764 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44765 fi 44766 44767 # Call helper function which possibly converts this using DOS-style short mode. 44768 # If so, the updated path is stored in $new_path. 44769 44770 input_path="$new_path" 44771 # Check if we need to convert this using DOS-style short mode. If the path 44772 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44773 # take no chances and rewrite it. 44774 # Note: m4 eats our [], so we need to use [ and ] instead. 44775 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44776 if test "x$has_forbidden_chars" != x; then 44777 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44778 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44779 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44780 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44781 # Going to short mode and back again did indeed matter. Since short mode is 44782 # case insensitive, let's make it lowercase to improve readability. 44783 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44784 # Now convert it back to Unix-stile (cygpath) 44785 input_path=`$CYGPATH -u "$shortmode_path"` 44786 new_path="$input_path" 44787 fi 44788 fi 44789 44790 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44791 if test "x$test_cygdrive_prefix" = x; then 44792 # As a simple fix, exclude /usr/bin since it's not a real path. 44793 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44794 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44795 # a path prefixed by /cygdrive for fixpath to work. 44796 new_path="$CYGWIN_ROOT_PATH$input_path" 44797 fi 44798 fi 44799 44800 44801 if test "x$path" != "x$new_path"; then 44802 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44803 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44804 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44805 fi 44806 44807 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44808 44809 path="$POTENTIAL_FREETYPE_LIB_PATH" 44810 has_colon=`$ECHO $path | $GREP ^.:` 44811 new_path="$path" 44812 if test "x$has_colon" = x; then 44813 # Not in mixed or Windows style, start by that. 44814 new_path=`cmd //c echo $path` 44815 fi 44816 44817 44818 input_path="$new_path" 44819 # Check if we need to convert this using DOS-style short mode. If the path 44820 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44821 # take no chances and rewrite it. 44822 # Note: m4 eats our [], so we need to use [ and ] instead. 44823 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44824 if test "x$has_forbidden_chars" != x; then 44825 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44826 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44827 fi 44828 44829 44830 windows_path="$new_path" 44831 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44832 unix_path=`$CYGPATH -u "$windows_path"` 44833 new_path="$unix_path" 44834 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44835 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44836 new_path="$unix_path" 44837 fi 44838 44839 if test "x$path" != "x$new_path"; then 44840 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44841 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44842 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44843 fi 44844 44845 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44846 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44847 44848 else 44849 # We're on a posix platform. Hooray! :) 44850 path="$POTENTIAL_FREETYPE_LIB_PATH" 44851 has_space=`$ECHO "$path" | $GREP " "` 44852 if test "x$has_space" != x; then 44853 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44854 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44855 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44856 fi 44857 44858 # Use eval to expand a potential ~ 44859 eval path="$path" 44860 if test ! -f "$path" && test ! -d "$path"; then 44861 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44862 fi 44863 44864 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44865 fi 44866 44867 44868 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44870 $as_echo_n "checking for freetype includes... " >&6; } 44871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44872 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44873 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44875 $as_echo_n "checking for freetype libraries... " >&6; } 44876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44877 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44878 fi 44879 44880 if test "x$FOUND_FREETYPE" != xyes; then 44881 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 44882 fi 44883 else 44884 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 44885 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 44886 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 44887 fi 44888 else 44889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 44890 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 44891 fi 44892 fi 44893 44894 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 44895 # User has specified settings 44896 44897 if test "x$BUNDLE_FREETYPE" = x; then 44898 # If not specified, default is to bundle freetype 44899 BUNDLE_FREETYPE=yes 44900 fi 44901 44902 if test "x$with_freetype" != x; then 44903 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 44904 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 44905 fi 44906 44907 # Allow --with-freetype-lib and --with-freetype-include to override 44908 if test "x$with_freetype_include" != x; then 44909 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 44910 fi 44911 if test "x$with_freetype_lib" != x; then 44912 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 44913 fi 44914 44915 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 44916 # Okay, we got it. Check that it works. 44917 44918 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44919 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44920 METHOD="--with-freetype" 44921 44922 # First check if the files exists. 44923 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44924 # We found an arbitrary include file. That's a good sign. 44925 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44926 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44927 FOUND_FREETYPE=yes 44928 44929 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44930 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44931 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44932 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44933 FOUND_FREETYPE=no 44934 else 44935 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44936 # On Windows, we will need both .lib and .dll file. 44937 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44938 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44939 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44940 FOUND_FREETYPE=no 44941 fi 44942 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 44943 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 44944 # Found lib in isa dir, use that instead. 44945 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 44946 fi 44947 fi 44948 fi 44949 44950 if test "x$FOUND_FREETYPE" = xyes; then 44951 44952 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44953 44954 # Input might be given as Windows format, start by converting to 44955 # unix format. 44956 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44957 new_path=`$CYGPATH -u "$path"` 44958 44959 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44960 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44961 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44962 # "foo.exe" is OK but "foo" is an error. 44963 # 44964 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44965 # It is also a way to make sure we got the proper file name for the real test later on. 44966 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44967 if test "x$test_shortpath" = x; then 44968 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44969 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44970 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44971 fi 44972 44973 # Call helper function which possibly converts this using DOS-style short mode. 44974 # If so, the updated path is stored in $new_path. 44975 44976 input_path="$new_path" 44977 # Check if we need to convert this using DOS-style short mode. If the path 44978 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44979 # take no chances and rewrite it. 44980 # Note: m4 eats our [], so we need to use [ and ] instead. 44981 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44982 if test "x$has_forbidden_chars" != x; then 44983 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44984 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44985 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44986 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44987 # Going to short mode and back again did indeed matter. Since short mode is 44988 # case insensitive, let's make it lowercase to improve readability. 44989 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44990 # Now convert it back to Unix-stile (cygpath) 44991 input_path=`$CYGPATH -u "$shortmode_path"` 44992 new_path="$input_path" 44993 fi 44994 fi 44995 44996 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44997 if test "x$test_cygdrive_prefix" = x; then 44998 # As a simple fix, exclude /usr/bin since it's not a real path. 44999 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45000 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45001 # a path prefixed by /cygdrive for fixpath to work. 45002 new_path="$CYGWIN_ROOT_PATH$input_path" 45003 fi 45004 fi 45005 45006 45007 if test "x$path" != "x$new_path"; then 45008 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45009 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45010 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45011 fi 45012 45013 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45014 45015 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45016 has_colon=`$ECHO $path | $GREP ^.:` 45017 new_path="$path" 45018 if test "x$has_colon" = x; then 45019 # Not in mixed or Windows style, start by that. 45020 new_path=`cmd //c echo $path` 45021 fi 45022 45023 45024 input_path="$new_path" 45025 # Check if we need to convert this using DOS-style short mode. If the path 45026 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45027 # take no chances and rewrite it. 45028 # Note: m4 eats our [], so we need to use [ and ] instead. 45029 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45030 if test "x$has_forbidden_chars" != x; then 45031 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45032 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45033 fi 45034 45035 45036 windows_path="$new_path" 45037 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45038 unix_path=`$CYGPATH -u "$windows_path"` 45039 new_path="$unix_path" 45040 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45041 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45042 new_path="$unix_path" 45043 fi 45044 45045 if test "x$path" != "x$new_path"; then 45046 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45047 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45048 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45049 fi 45050 45051 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45052 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45053 45054 else 45055 # We're on a posix platform. Hooray! :) 45056 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45057 has_space=`$ECHO "$path" | $GREP " "` 45058 if test "x$has_space" != x; then 45059 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45060 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45061 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45062 fi 45063 45064 # Use eval to expand a potential ~ 45065 eval path="$path" 45066 if test ! -f "$path" && test ! -d "$path"; then 45067 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45068 fi 45069 45070 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45071 fi 45072 45073 45074 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45075 45076 # Input might be given as Windows format, start by converting to 45077 # unix format. 45078 path="$POTENTIAL_FREETYPE_LIB_PATH" 45079 new_path=`$CYGPATH -u "$path"` 45080 45081 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45082 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45083 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45084 # "foo.exe" is OK but "foo" is an error. 45085 # 45086 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45087 # It is also a way to make sure we got the proper file name for the real test later on. 45088 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45089 if test "x$test_shortpath" = x; then 45090 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45091 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45092 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45093 fi 45094 45095 # Call helper function which possibly converts this using DOS-style short mode. 45096 # If so, the updated path is stored in $new_path. 45097 45098 input_path="$new_path" 45099 # Check if we need to convert this using DOS-style short mode. If the path 45100 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45101 # take no chances and rewrite it. 45102 # Note: m4 eats our [], so we need to use [ and ] instead. 45103 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45104 if test "x$has_forbidden_chars" != x; then 45105 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45106 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45107 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45108 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45109 # Going to short mode and back again did indeed matter. Since short mode is 45110 # case insensitive, let's make it lowercase to improve readability. 45111 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45112 # Now convert it back to Unix-stile (cygpath) 45113 input_path=`$CYGPATH -u "$shortmode_path"` 45114 new_path="$input_path" 45115 fi 45116 fi 45117 45118 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45119 if test "x$test_cygdrive_prefix" = x; then 45120 # As a simple fix, exclude /usr/bin since it's not a real path. 45121 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45122 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45123 # a path prefixed by /cygdrive for fixpath to work. 45124 new_path="$CYGWIN_ROOT_PATH$input_path" 45125 fi 45126 fi 45127 45128 45129 if test "x$path" != "x$new_path"; then 45130 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45131 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45132 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45133 fi 45134 45135 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45136 45137 path="$POTENTIAL_FREETYPE_LIB_PATH" 45138 has_colon=`$ECHO $path | $GREP ^.:` 45139 new_path="$path" 45140 if test "x$has_colon" = x; then 45141 # Not in mixed or Windows style, start by that. 45142 new_path=`cmd //c echo $path` 45143 fi 45144 45145 45146 input_path="$new_path" 45147 # Check if we need to convert this using DOS-style short mode. If the path 45148 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45149 # take no chances and rewrite it. 45150 # Note: m4 eats our [], so we need to use [ and ] instead. 45151 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45152 if test "x$has_forbidden_chars" != x; then 45153 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45154 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45155 fi 45156 45157 45158 windows_path="$new_path" 45159 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45160 unix_path=`$CYGPATH -u "$windows_path"` 45161 new_path="$unix_path" 45162 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45163 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45164 new_path="$unix_path" 45165 fi 45166 45167 if test "x$path" != "x$new_path"; then 45168 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45169 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45170 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45171 fi 45172 45173 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45174 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45175 45176 else 45177 # We're on a posix platform. Hooray! :) 45178 path="$POTENTIAL_FREETYPE_LIB_PATH" 45179 has_space=`$ECHO "$path" | $GREP " "` 45180 if test "x$has_space" != x; then 45181 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45182 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45183 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45184 fi 45185 45186 # Use eval to expand a potential ~ 45187 eval path="$path" 45188 if test ! -f "$path" && test ! -d "$path"; then 45189 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45190 fi 45191 45192 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45193 fi 45194 45195 45196 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45198 $as_echo_n "checking for freetype includes... " >&6; } 45199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45200 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45201 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45203 $as_echo_n "checking for freetype libraries... " >&6; } 45204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45205 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45206 fi 45207 45208 if test "x$FOUND_FREETYPE" != xyes; then 45209 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 45210 fi 45211 else 45212 # User specified only one of lib or include. This is an error. 45213 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 45214 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 45215 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 45216 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 45217 else 45218 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 45219 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 45220 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 45221 fi 45222 fi 45223 else 45224 # User did not specify settings, but we need freetype. Try to locate it. 45225 45226 if test "x$BUNDLE_FREETYPE" = x; then 45227 # If not specified, default is to bundle freetype only on windows 45228 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45229 BUNDLE_FREETYPE=yes 45230 else 45231 BUNDLE_FREETYPE=no 45232 fi 45233 fi 45234 45235 if test "x$FOUND_FREETYPE" != xyes; then 45236 # Check builddeps 45237 45238 45239 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 45240 # Source the builddeps file again, to make sure it uses the latest variables! 45241 . $builddepsfile 45242 # Look for a target and build machine specific resource! 45243 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 45244 if test "x$resource" = x; then 45245 # Ok, lets instead look for a target specific resource 45246 eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}} 45247 fi 45248 if test "x$resource" = x; then 45249 # Ok, lets instead look for a build specific resource 45250 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}} 45251 fi 45252 if test "x$resource" = x; then 45253 # Ok, lets instead look for a generic resource 45254 # (The freetype2 comes from M4 and not the shell, thus no need for eval here.) 45255 resource=${builddep_freetype2} 45256 fi 45257 if test "x$resource" != x; then 45258 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5 45259 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;} 45260 # If the resource in the builddeps.conf file is an existing directory, 45261 # for example /java/linux/cups 45262 if test -d ${resource}; then 45263 depdir=${resource} 45264 else 45265 45266 # freetype2 is for example mymodule 45267 # $resource is for example libs/general/libmymod_1_2_3.zip 45268 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 45269 # $with_builddeps_dir is for example /localhome/builddeps 45270 # depdir is the name of the variable into which we store the depdir, eg MYMOD 45271 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 45272 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 45273 filename=`basename $resource` 45274 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 45275 filebase=${filename%%.*} 45276 extension=${filename#*.} 45277 installdir=$with_builddeps_dir/$filebase 45278 if test ! -f $installdir/$filename.unpacked; then 45279 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5 45280 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;} 45281 if test ! -d $installdir; then 45282 mkdir -p $installdir 45283 fi 45284 if test ! -d $installdir; then 45285 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 45286 fi 45287 tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX` 45288 touch $tmpfile 45289 if test ! -f $tmpfile; then 45290 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 45291 fi 45292 45293 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 45294 # $tmpfile is the local file name for the downloaded file. 45295 VALID_TOOL=no 45296 if test "x$BDEPS_FTP" = xwget; then 45297 VALID_TOOL=yes 45298 wget -O $tmpfile $with_builddeps_server/$resource 45299 fi 45300 if test "x$BDEPS_FTP" = xlftp; then 45301 VALID_TOOL=yes 45302 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 45303 fi 45304 if test "x$BDEPS_FTP" = xftp; then 45305 VALID_TOOL=yes 45306 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 45307 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 45308 FTPUSERPWD=${FTPSERVER%%@*} 45309 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 45310 FTPUSER=${userpwd%%:*} 45311 FTPPWD=${userpwd#*@} 45312 FTPSERVER=${FTPSERVER#*@} 45313 else 45314 FTPUSER=ftp 45315 FTPPWD=ftp 45316 fi 45317 # the "pass" command does not work on some 45318 # ftp clients (read ftp.exe) but if it works, 45319 # passive mode is better! 45320 ( \ 45321 echo "user $FTPUSER $FTPPWD" ; \ 45322 echo "pass" ; \ 45323 echo "bin" ; \ 45324 echo "get $FTPPATH $tmpfile" ; \ 45325 ) | ftp -in $FTPSERVER 45326 fi 45327 if test "x$VALID_TOOL" != xyes; then 45328 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 45329 fi 45330 45331 mv $tmpfile $installdir/$filename 45332 if test ! -s $installdir/$filename; then 45333 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 45334 fi 45335 case "$extension" in 45336 zip) echo "Unzipping $installdir/$filename..." 45337 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 45338 ;; 45339 tar.gz) echo "Untaring $installdir/$filename..." 45340 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 45341 ;; 45342 tgz) echo "Untaring $installdir/$filename..." 45343 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 45344 ;; 45345 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 45346 ;; 45347 esac 45348 fi 45349 if test -f $installdir/$filename.unpacked; then 45350 depdir=$installdir 45351 fi 45352 45353 fi 45354 # Source the builddeps file again, because in the previous command, the depdir 45355 # was updated to point at the current build dependency install directory. 45356 . $builddepsfile 45357 # Now extract variables from the builddeps.conf files. 45358 theroot=${builddep_freetype2_ROOT} 45359 thecflags=${builddep_freetype2_CFLAGS} 45360 thelibs=${builddep_freetype2_LIBS} 45361 if test "x$depdir" = x; then 45362 as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5 45363 fi 45364 FREETYPE=$depdir 45365 if test "x$theroot" != x; then 45366 FREETYPE="$theroot" 45367 fi 45368 if test "x$thecflags" != x; then 45369 FREETYPE_CFLAGS="$thecflags" 45370 fi 45371 if test "x$thelibs" != x; then 45372 FREETYPE_LIBS="$thelibs" 45373 fi 45374 FOUND_FREETYPE=yes 45375 else FOUND_FREETYPE=no 45376 45377 fi 45378 else FOUND_FREETYPE=no 45379 45380 fi 45381 45382 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 45383 if test "x$FOUND_FREETYPE" = xyes; then 45384 if test "x$BUNDLE_FREETYPE" = xyes; then 45385 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using builddeps, but ignoring since we can not bundle that" >&5 45386 $as_echo "$as_me: Found freetype using builddeps, but ignoring since we can not bundle that" >&6;} 45387 FOUND_FREETYPE=no 45388 else 45389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 45390 $as_echo_n "checking for freetype... " >&6; } 45391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using builddeps)" >&5 45392 $as_echo "yes (using builddeps)" >&6; } 45393 fi 45394 fi 45395 fi 45396 45397 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 45398 if test "x$SYSROOT" = x; then 45399 if test "x$FOUND_FREETYPE" != xyes; then 45400 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 45401 if test "x$PKG_CONFIG" != x; then 45402 45403 pkg_failed=no 45404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 45405 $as_echo_n "checking for FREETYPE... " >&6; } 45406 45407 if test -n "$FREETYPE_CFLAGS"; then 45408 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 45409 elif test -n "$PKG_CONFIG"; then 45410 if test -n "$PKG_CONFIG" && \ 45411 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 45412 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 45413 ac_status=$? 45414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45415 test $ac_status = 0; }; then 45416 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 45417 else 45418 pkg_failed=yes 45419 fi 45420 else 45421 pkg_failed=untried 45422 fi 45423 if test -n "$FREETYPE_LIBS"; then 45424 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 45425 elif test -n "$PKG_CONFIG"; then 45426 if test -n "$PKG_CONFIG" && \ 45427 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 45428 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 45429 ac_status=$? 45430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45431 test $ac_status = 0; }; then 45432 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 45433 else 45434 pkg_failed=yes 45435 fi 45436 else 45437 pkg_failed=untried 45438 fi 45439 45440 45441 45442 if test $pkg_failed = yes; then 45443 45444 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 45445 _pkg_short_errors_supported=yes 45446 else 45447 _pkg_short_errors_supported=no 45448 fi 45449 if test $_pkg_short_errors_supported = yes; then 45450 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 45451 else 45452 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 45453 fi 45454 # Put the nasty error message in config.log where it belongs 45455 echo "$FREETYPE_PKG_ERRORS" >&5 45456 45457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45458 $as_echo "no" >&6; } 45459 FOUND_FREETYPE=no 45460 elif test $pkg_failed = untried; then 45461 FOUND_FREETYPE=no 45462 else 45463 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 45464 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 45465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45466 $as_echo "yes" >&6; } 45467 FOUND_FREETYPE=yes 45468 fi 45469 if test "x$FOUND_FREETYPE" = xyes; then 45470 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 45471 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 45472 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 45473 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 45474 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 45475 fi 45476 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 45477 if test "x$BUNDLE_FREETYPE" = xyes; then 45478 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 45479 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 45480 FOUND_FREETYPE=no 45481 else 45482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 45483 $as_echo_n "checking for freetype... " >&6; } 45484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 45485 $as_echo "yes (using pkg-config)" >&6; } 45486 fi 45487 fi 45488 fi 45489 fi 45490 fi 45491 45492 if test "x$FOUND_FREETYPE" != xyes; then 45493 # Check in well-known locations 45494 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45495 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 45496 45497 windows_path="$FREETYPE_BASE_DIR" 45498 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45499 unix_path=`$CYGPATH -u "$windows_path"` 45500 FREETYPE_BASE_DIR="$unix_path" 45501 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45502 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45503 FREETYPE_BASE_DIR="$unix_path" 45504 fi 45505 45506 45507 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45508 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45509 METHOD="well-known location" 45510 45511 # First check if the files exists. 45512 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45513 # We found an arbitrary include file. That's a good sign. 45514 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45515 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45516 FOUND_FREETYPE=yes 45517 45518 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45519 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45520 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45521 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45522 FOUND_FREETYPE=no 45523 else 45524 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45525 # On Windows, we will need both .lib and .dll file. 45526 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45527 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45528 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45529 FOUND_FREETYPE=no 45530 fi 45531 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 45532 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 45533 # Found lib in isa dir, use that instead. 45534 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 45535 fi 45536 fi 45537 fi 45538 45539 if test "x$FOUND_FREETYPE" = xyes; then 45540 45541 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45542 45543 # Input might be given as Windows format, start by converting to 45544 # unix format. 45545 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45546 new_path=`$CYGPATH -u "$path"` 45547 45548 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45549 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45550 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45551 # "foo.exe" is OK but "foo" is an error. 45552 # 45553 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45554 # It is also a way to make sure we got the proper file name for the real test later on. 45555 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45556 if test "x$test_shortpath" = x; then 45557 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45558 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45559 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45560 fi 45561 45562 # Call helper function which possibly converts this using DOS-style short mode. 45563 # If so, the updated path is stored in $new_path. 45564 45565 input_path="$new_path" 45566 # Check if we need to convert this using DOS-style short mode. If the path 45567 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45568 # take no chances and rewrite it. 45569 # Note: m4 eats our [], so we need to use [ and ] instead. 45570 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45571 if test "x$has_forbidden_chars" != x; then 45572 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45573 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45574 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45575 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45576 # Going to short mode and back again did indeed matter. Since short mode is 45577 # case insensitive, let's make it lowercase to improve readability. 45578 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45579 # Now convert it back to Unix-stile (cygpath) 45580 input_path=`$CYGPATH -u "$shortmode_path"` 45581 new_path="$input_path" 45582 fi 45583 fi 45584 45585 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45586 if test "x$test_cygdrive_prefix" = x; then 45587 # As a simple fix, exclude /usr/bin since it's not a real path. 45588 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45589 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45590 # a path prefixed by /cygdrive for fixpath to work. 45591 new_path="$CYGWIN_ROOT_PATH$input_path" 45592 fi 45593 fi 45594 45595 45596 if test "x$path" != "x$new_path"; then 45597 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45598 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45599 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45600 fi 45601 45602 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45603 45604 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45605 has_colon=`$ECHO $path | $GREP ^.:` 45606 new_path="$path" 45607 if test "x$has_colon" = x; then 45608 # Not in mixed or Windows style, start by that. 45609 new_path=`cmd //c echo $path` 45610 fi 45611 45612 45613 input_path="$new_path" 45614 # Check if we need to convert this using DOS-style short mode. If the path 45615 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45616 # take no chances and rewrite it. 45617 # Note: m4 eats our [], so we need to use [ and ] instead. 45618 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45619 if test "x$has_forbidden_chars" != x; then 45620 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45621 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45622 fi 45623 45624 45625 windows_path="$new_path" 45626 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45627 unix_path=`$CYGPATH -u "$windows_path"` 45628 new_path="$unix_path" 45629 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45630 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45631 new_path="$unix_path" 45632 fi 45633 45634 if test "x$path" != "x$new_path"; then 45635 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45636 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45637 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45638 fi 45639 45640 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45641 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45642 45643 else 45644 # We're on a posix platform. Hooray! :) 45645 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45646 has_space=`$ECHO "$path" | $GREP " "` 45647 if test "x$has_space" != x; then 45648 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45649 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45650 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45651 fi 45652 45653 # Use eval to expand a potential ~ 45654 eval path="$path" 45655 if test ! -f "$path" && test ! -d "$path"; then 45656 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45657 fi 45658 45659 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45660 fi 45661 45662 45663 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45664 45665 # Input might be given as Windows format, start by converting to 45666 # unix format. 45667 path="$POTENTIAL_FREETYPE_LIB_PATH" 45668 new_path=`$CYGPATH -u "$path"` 45669 45670 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45671 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45672 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45673 # "foo.exe" is OK but "foo" is an error. 45674 # 45675 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45676 # It is also a way to make sure we got the proper file name for the real test later on. 45677 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45678 if test "x$test_shortpath" = x; then 45679 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45680 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45681 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45682 fi 45683 45684 # Call helper function which possibly converts this using DOS-style short mode. 45685 # If so, the updated path is stored in $new_path. 45686 45687 input_path="$new_path" 45688 # Check if we need to convert this using DOS-style short mode. If the path 45689 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45690 # take no chances and rewrite it. 45691 # Note: m4 eats our [], so we need to use [ and ] instead. 45692 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45693 if test "x$has_forbidden_chars" != x; then 45694 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45695 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45696 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45697 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45698 # Going to short mode and back again did indeed matter. Since short mode is 45699 # case insensitive, let's make it lowercase to improve readability. 45700 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45701 # Now convert it back to Unix-stile (cygpath) 45702 input_path=`$CYGPATH -u "$shortmode_path"` 45703 new_path="$input_path" 45704 fi 45705 fi 45706 45707 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45708 if test "x$test_cygdrive_prefix" = x; then 45709 # As a simple fix, exclude /usr/bin since it's not a real path. 45710 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45711 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45712 # a path prefixed by /cygdrive for fixpath to work. 45713 new_path="$CYGWIN_ROOT_PATH$input_path" 45714 fi 45715 fi 45716 45717 45718 if test "x$path" != "x$new_path"; then 45719 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45720 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45721 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45722 fi 45723 45724 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45725 45726 path="$POTENTIAL_FREETYPE_LIB_PATH" 45727 has_colon=`$ECHO $path | $GREP ^.:` 45728 new_path="$path" 45729 if test "x$has_colon" = x; then 45730 # Not in mixed or Windows style, start by that. 45731 new_path=`cmd //c echo $path` 45732 fi 45733 45734 45735 input_path="$new_path" 45736 # Check if we need to convert this using DOS-style short mode. If the path 45737 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45738 # take no chances and rewrite it. 45739 # Note: m4 eats our [], so we need to use [ and ] instead. 45740 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45741 if test "x$has_forbidden_chars" != x; then 45742 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45743 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45744 fi 45745 45746 45747 windows_path="$new_path" 45748 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45749 unix_path=`$CYGPATH -u "$windows_path"` 45750 new_path="$unix_path" 45751 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45752 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45753 new_path="$unix_path" 45754 fi 45755 45756 if test "x$path" != "x$new_path"; then 45757 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45758 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45759 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45760 fi 45761 45762 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45763 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45764 45765 else 45766 # We're on a posix platform. Hooray! :) 45767 path="$POTENTIAL_FREETYPE_LIB_PATH" 45768 has_space=`$ECHO "$path" | $GREP " "` 45769 if test "x$has_space" != x; then 45770 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45771 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45772 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45773 fi 45774 45775 # Use eval to expand a potential ~ 45776 eval path="$path" 45777 if test ! -f "$path" && test ! -d "$path"; then 45778 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45779 fi 45780 45781 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45782 fi 45783 45784 45785 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45787 $as_echo_n "checking for freetype includes... " >&6; } 45788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45789 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45790 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45792 $as_echo_n "checking for freetype libraries... " >&6; } 45793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45794 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45795 fi 45796 45797 if test "x$FOUND_FREETYPE" != xyes; then 45798 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 45799 45800 windows_path="$FREETYPE_BASE_DIR" 45801 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45802 unix_path=`$CYGPATH -u "$windows_path"` 45803 FREETYPE_BASE_DIR="$unix_path" 45804 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45805 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45806 FREETYPE_BASE_DIR="$unix_path" 45807 fi 45808 45809 45810 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45811 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45812 METHOD="well-known location" 45813 45814 # First check if the files exists. 45815 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45816 # We found an arbitrary include file. That's a good sign. 45817 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45818 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45819 FOUND_FREETYPE=yes 45820 45821 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45822 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45823 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45824 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45825 FOUND_FREETYPE=no 45826 else 45827 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45828 # On Windows, we will need both .lib and .dll file. 45829 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45830 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45831 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45832 FOUND_FREETYPE=no 45833 fi 45834 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 45835 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 45836 # Found lib in isa dir, use that instead. 45837 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 45838 fi 45839 fi 45840 fi 45841 45842 if test "x$FOUND_FREETYPE" = xyes; then 45843 45844 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45845 45846 # Input might be given as Windows format, start by converting to 45847 # unix format. 45848 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45849 new_path=`$CYGPATH -u "$path"` 45850 45851 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45852 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45853 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45854 # "foo.exe" is OK but "foo" is an error. 45855 # 45856 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45857 # It is also a way to make sure we got the proper file name for the real test later on. 45858 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45859 if test "x$test_shortpath" = x; then 45860 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45861 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45862 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45863 fi 45864 45865 # Call helper function which possibly converts this using DOS-style short mode. 45866 # If so, the updated path is stored in $new_path. 45867 45868 input_path="$new_path" 45869 # Check if we need to convert this using DOS-style short mode. If the path 45870 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45871 # take no chances and rewrite it. 45872 # Note: m4 eats our [], so we need to use [ and ] instead. 45873 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45874 if test "x$has_forbidden_chars" != x; then 45875 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45876 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45877 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45878 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45879 # Going to short mode and back again did indeed matter. Since short mode is 45880 # case insensitive, let's make it lowercase to improve readability. 45881 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45882 # Now convert it back to Unix-stile (cygpath) 45883 input_path=`$CYGPATH -u "$shortmode_path"` 45884 new_path="$input_path" 45885 fi 45886 fi 45887 45888 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45889 if test "x$test_cygdrive_prefix" = x; then 45890 # As a simple fix, exclude /usr/bin since it's not a real path. 45891 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45892 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45893 # a path prefixed by /cygdrive for fixpath to work. 45894 new_path="$CYGWIN_ROOT_PATH$input_path" 45895 fi 45896 fi 45897 45898 45899 if test "x$path" != "x$new_path"; then 45900 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45901 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45902 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45903 fi 45904 45905 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45906 45907 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45908 has_colon=`$ECHO $path | $GREP ^.:` 45909 new_path="$path" 45910 if test "x$has_colon" = x; then 45911 # Not in mixed or Windows style, start by that. 45912 new_path=`cmd //c echo $path` 45913 fi 45914 45915 45916 input_path="$new_path" 45917 # Check if we need to convert this using DOS-style short mode. If the path 45918 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45919 # take no chances and rewrite it. 45920 # Note: m4 eats our [], so we need to use [ and ] instead. 45921 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45922 if test "x$has_forbidden_chars" != x; then 45923 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45924 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45925 fi 45926 45927 45928 windows_path="$new_path" 45929 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45930 unix_path=`$CYGPATH -u "$windows_path"` 45931 new_path="$unix_path" 45932 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45933 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45934 new_path="$unix_path" 45935 fi 45936 45937 if test "x$path" != "x$new_path"; then 45938 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45939 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45940 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45941 fi 45942 45943 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45944 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45945 45946 else 45947 # We're on a posix platform. Hooray! :) 45948 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45949 has_space=`$ECHO "$path" | $GREP " "` 45950 if test "x$has_space" != x; then 45951 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45952 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45953 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45954 fi 45955 45956 # Use eval to expand a potential ~ 45957 eval path="$path" 45958 if test ! -f "$path" && test ! -d "$path"; then 45959 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45960 fi 45961 45962 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45963 fi 45964 45965 45966 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45967 45968 # Input might be given as Windows format, start by converting to 45969 # unix format. 45970 path="$POTENTIAL_FREETYPE_LIB_PATH" 45971 new_path=`$CYGPATH -u "$path"` 45972 45973 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45974 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45975 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45976 # "foo.exe" is OK but "foo" is an error. 45977 # 45978 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45979 # It is also a way to make sure we got the proper file name for the real test later on. 45980 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45981 if test "x$test_shortpath" = x; then 45982 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45983 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45984 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45985 fi 45986 45987 # Call helper function which possibly converts this using DOS-style short mode. 45988 # If so, the updated path is stored in $new_path. 45989 45990 input_path="$new_path" 45991 # Check if we need to convert this using DOS-style short mode. If the path 45992 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45993 # take no chances and rewrite it. 45994 # Note: m4 eats our [], so we need to use [ and ] instead. 45995 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45996 if test "x$has_forbidden_chars" != x; then 45997 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45998 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45999 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46000 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46001 # Going to short mode and back again did indeed matter. Since short mode is 46002 # case insensitive, let's make it lowercase to improve readability. 46003 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46004 # Now convert it back to Unix-stile (cygpath) 46005 input_path=`$CYGPATH -u "$shortmode_path"` 46006 new_path="$input_path" 46007 fi 46008 fi 46009 46010 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46011 if test "x$test_cygdrive_prefix" = x; then 46012 # As a simple fix, exclude /usr/bin since it's not a real path. 46013 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46014 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46015 # a path prefixed by /cygdrive for fixpath to work. 46016 new_path="$CYGWIN_ROOT_PATH$input_path" 46017 fi 46018 fi 46019 46020 46021 if test "x$path" != "x$new_path"; then 46022 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46023 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46024 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46025 fi 46026 46027 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46028 46029 path="$POTENTIAL_FREETYPE_LIB_PATH" 46030 has_colon=`$ECHO $path | $GREP ^.:` 46031 new_path="$path" 46032 if test "x$has_colon" = x; then 46033 # Not in mixed or Windows style, start by that. 46034 new_path=`cmd //c echo $path` 46035 fi 46036 46037 46038 input_path="$new_path" 46039 # Check if we need to convert this using DOS-style short mode. If the path 46040 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46041 # take no chances and rewrite it. 46042 # Note: m4 eats our [], so we need to use [ and ] instead. 46043 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46044 if test "x$has_forbidden_chars" != x; then 46045 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46046 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46047 fi 46048 46049 46050 windows_path="$new_path" 46051 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46052 unix_path=`$CYGPATH -u "$windows_path"` 46053 new_path="$unix_path" 46054 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46055 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46056 new_path="$unix_path" 46057 fi 46058 46059 if test "x$path" != "x$new_path"; then 46060 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46061 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46062 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46063 fi 46064 46065 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46066 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46067 46068 else 46069 # We're on a posix platform. Hooray! :) 46070 path="$POTENTIAL_FREETYPE_LIB_PATH" 46071 has_space=`$ECHO "$path" | $GREP " "` 46072 if test "x$has_space" != x; then 46073 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46074 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46075 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46076 fi 46077 46078 # Use eval to expand a potential ~ 46079 eval path="$path" 46080 if test ! -f "$path" && test ! -d "$path"; then 46081 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46082 fi 46083 46084 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46085 fi 46086 46087 46088 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46090 $as_echo_n "checking for freetype includes... " >&6; } 46091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46092 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46093 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46095 $as_echo_n "checking for freetype libraries... " >&6; } 46096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46097 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46098 fi 46099 46100 fi 46101 else 46102 FREETYPE_BASE_DIR="$SYSROOT/usr" 46103 46104 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46105 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46106 METHOD="well-known location" 46107 46108 # First check if the files exists. 46109 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46110 # We found an arbitrary include file. That's a good sign. 46111 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46112 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46113 FOUND_FREETYPE=yes 46114 46115 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 46116 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46117 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46118 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46119 FOUND_FREETYPE=no 46120 else 46121 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46122 # On Windows, we will need both .lib and .dll file. 46123 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 46124 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 46125 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 46126 FOUND_FREETYPE=no 46127 fi 46128 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46129 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46130 # Found lib in isa dir, use that instead. 46131 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46132 fi 46133 fi 46134 fi 46135 46136 if test "x$FOUND_FREETYPE" = xyes; then 46137 46138 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46139 46140 # Input might be given as Windows format, start by converting to 46141 # unix format. 46142 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46143 new_path=`$CYGPATH -u "$path"` 46144 46145 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46146 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46147 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46148 # "foo.exe" is OK but "foo" is an error. 46149 # 46150 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46151 # It is also a way to make sure we got the proper file name for the real test later on. 46152 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46153 if test "x$test_shortpath" = x; then 46154 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46155 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46156 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46157 fi 46158 46159 # Call helper function which possibly converts this using DOS-style short mode. 46160 # If so, the updated path is stored in $new_path. 46161 46162 input_path="$new_path" 46163 # Check if we need to convert this using DOS-style short mode. If the path 46164 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46165 # take no chances and rewrite it. 46166 # Note: m4 eats our [], so we need to use [ and ] instead. 46167 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46168 if test "x$has_forbidden_chars" != x; then 46169 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46170 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46171 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46172 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46173 # Going to short mode and back again did indeed matter. Since short mode is 46174 # case insensitive, let's make it lowercase to improve readability. 46175 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46176 # Now convert it back to Unix-stile (cygpath) 46177 input_path=`$CYGPATH -u "$shortmode_path"` 46178 new_path="$input_path" 46179 fi 46180 fi 46181 46182 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46183 if test "x$test_cygdrive_prefix" = x; then 46184 # As a simple fix, exclude /usr/bin since it's not a real path. 46185 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46186 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46187 # a path prefixed by /cygdrive for fixpath to work. 46188 new_path="$CYGWIN_ROOT_PATH$input_path" 46189 fi 46190 fi 46191 46192 46193 if test "x$path" != "x$new_path"; then 46194 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46195 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46196 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46197 fi 46198 46199 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46200 46201 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46202 has_colon=`$ECHO $path | $GREP ^.:` 46203 new_path="$path" 46204 if test "x$has_colon" = x; then 46205 # Not in mixed or Windows style, start by that. 46206 new_path=`cmd //c echo $path` 46207 fi 46208 46209 46210 input_path="$new_path" 46211 # Check if we need to convert this using DOS-style short mode. If the path 46212 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46213 # take no chances and rewrite it. 46214 # Note: m4 eats our [], so we need to use [ and ] instead. 46215 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46216 if test "x$has_forbidden_chars" != x; then 46217 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46218 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46219 fi 46220 46221 46222 windows_path="$new_path" 46223 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46224 unix_path=`$CYGPATH -u "$windows_path"` 46225 new_path="$unix_path" 46226 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46227 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46228 new_path="$unix_path" 46229 fi 46230 46231 if test "x$path" != "x$new_path"; then 46232 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46233 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46234 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46235 fi 46236 46237 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46238 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46239 46240 else 46241 # We're on a posix platform. Hooray! :) 46242 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46243 has_space=`$ECHO "$path" | $GREP " "` 46244 if test "x$has_space" != x; then 46245 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46246 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46247 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46248 fi 46249 46250 # Use eval to expand a potential ~ 46251 eval path="$path" 46252 if test ! -f "$path" && test ! -d "$path"; then 46253 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46254 fi 46255 46256 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46257 fi 46258 46259 46260 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46261 46262 # Input might be given as Windows format, start by converting to 46263 # unix format. 46264 path="$POTENTIAL_FREETYPE_LIB_PATH" 46265 new_path=`$CYGPATH -u "$path"` 46266 46267 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46268 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46269 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46270 # "foo.exe" is OK but "foo" is an error. 46271 # 46272 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46273 # It is also a way to make sure we got the proper file name for the real test later on. 46274 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46275 if test "x$test_shortpath" = x; then 46276 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46277 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46278 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46279 fi 46280 46281 # Call helper function which possibly converts this using DOS-style short mode. 46282 # If so, the updated path is stored in $new_path. 46283 46284 input_path="$new_path" 46285 # Check if we need to convert this using DOS-style short mode. If the path 46286 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46287 # take no chances and rewrite it. 46288 # Note: m4 eats our [], so we need to use [ and ] instead. 46289 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46290 if test "x$has_forbidden_chars" != x; then 46291 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46292 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46293 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46294 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46295 # Going to short mode and back again did indeed matter. Since short mode is 46296 # case insensitive, let's make it lowercase to improve readability. 46297 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46298 # Now convert it back to Unix-stile (cygpath) 46299 input_path=`$CYGPATH -u "$shortmode_path"` 46300 new_path="$input_path" 46301 fi 46302 fi 46303 46304 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46305 if test "x$test_cygdrive_prefix" = x; then 46306 # As a simple fix, exclude /usr/bin since it's not a real path. 46307 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46308 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46309 # a path prefixed by /cygdrive for fixpath to work. 46310 new_path="$CYGWIN_ROOT_PATH$input_path" 46311 fi 46312 fi 46313 46314 46315 if test "x$path" != "x$new_path"; then 46316 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46317 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46318 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46319 fi 46320 46321 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46322 46323 path="$POTENTIAL_FREETYPE_LIB_PATH" 46324 has_colon=`$ECHO $path | $GREP ^.:` 46325 new_path="$path" 46326 if test "x$has_colon" = x; then 46327 # Not in mixed or Windows style, start by that. 46328 new_path=`cmd //c echo $path` 46329 fi 46330 46331 46332 input_path="$new_path" 46333 # Check if we need to convert this using DOS-style short mode. If the path 46334 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46335 # take no chances and rewrite it. 46336 # Note: m4 eats our [], so we need to use [ and ] instead. 46337 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46338 if test "x$has_forbidden_chars" != x; then 46339 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46340 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46341 fi 46342 46343 46344 windows_path="$new_path" 46345 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46346 unix_path=`$CYGPATH -u "$windows_path"` 46347 new_path="$unix_path" 46348 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46349 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46350 new_path="$unix_path" 46351 fi 46352 46353 if test "x$path" != "x$new_path"; then 46354 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46355 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46356 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46357 fi 46358 46359 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46360 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46361 46362 else 46363 # We're on a posix platform. Hooray! :) 46364 path="$POTENTIAL_FREETYPE_LIB_PATH" 46365 has_space=`$ECHO "$path" | $GREP " "` 46366 if test "x$has_space" != x; then 46367 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46368 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46369 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46370 fi 46371 46372 # Use eval to expand a potential ~ 46373 eval path="$path" 46374 if test ! -f "$path" && test ! -d "$path"; then 46375 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46376 fi 46377 46378 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46379 fi 46380 46381 46382 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46384 $as_echo_n "checking for freetype includes... " >&6; } 46385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46386 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46387 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46389 $as_echo_n "checking for freetype libraries... " >&6; } 46390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46391 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46392 fi 46393 46394 46395 if test "x$FOUND_FREETYPE" != xyes; then 46396 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 46397 46398 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46399 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46400 METHOD="well-known location" 46401 46402 # First check if the files exists. 46403 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46404 # We found an arbitrary include file. That's a good sign. 46405 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46406 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46407 FOUND_FREETYPE=yes 46408 46409 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 46410 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46411 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46412 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46413 FOUND_FREETYPE=no 46414 else 46415 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46416 # On Windows, we will need both .lib and .dll file. 46417 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 46418 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 46419 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 46420 FOUND_FREETYPE=no 46421 fi 46422 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46423 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46424 # Found lib in isa dir, use that instead. 46425 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46426 fi 46427 fi 46428 fi 46429 46430 if test "x$FOUND_FREETYPE" = xyes; then 46431 46432 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46433 46434 # Input might be given as Windows format, start by converting to 46435 # unix format. 46436 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46437 new_path=`$CYGPATH -u "$path"` 46438 46439 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46440 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46441 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46442 # "foo.exe" is OK but "foo" is an error. 46443 # 46444 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46445 # It is also a way to make sure we got the proper file name for the real test later on. 46446 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46447 if test "x$test_shortpath" = x; then 46448 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46449 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46450 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46451 fi 46452 46453 # Call helper function which possibly converts this using DOS-style short mode. 46454 # If so, the updated path is stored in $new_path. 46455 46456 input_path="$new_path" 46457 # Check if we need to convert this using DOS-style short mode. If the path 46458 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46459 # take no chances and rewrite it. 46460 # Note: m4 eats our [], so we need to use [ and ] instead. 46461 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46462 if test "x$has_forbidden_chars" != x; then 46463 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46464 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46465 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46466 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46467 # Going to short mode and back again did indeed matter. Since short mode is 46468 # case insensitive, let's make it lowercase to improve readability. 46469 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46470 # Now convert it back to Unix-stile (cygpath) 46471 input_path=`$CYGPATH -u "$shortmode_path"` 46472 new_path="$input_path" 46473 fi 46474 fi 46475 46476 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46477 if test "x$test_cygdrive_prefix" = x; then 46478 # As a simple fix, exclude /usr/bin since it's not a real path. 46479 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46480 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46481 # a path prefixed by /cygdrive for fixpath to work. 46482 new_path="$CYGWIN_ROOT_PATH$input_path" 46483 fi 46484 fi 46485 46486 46487 if test "x$path" != "x$new_path"; then 46488 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46489 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46490 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46491 fi 46492 46493 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46494 46495 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46496 has_colon=`$ECHO $path | $GREP ^.:` 46497 new_path="$path" 46498 if test "x$has_colon" = x; then 46499 # Not in mixed or Windows style, start by that. 46500 new_path=`cmd //c echo $path` 46501 fi 46502 46503 46504 input_path="$new_path" 46505 # Check if we need to convert this using DOS-style short mode. If the path 46506 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46507 # take no chances and rewrite it. 46508 # Note: m4 eats our [], so we need to use [ and ] instead. 46509 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46510 if test "x$has_forbidden_chars" != x; then 46511 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46512 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46513 fi 46514 46515 46516 windows_path="$new_path" 46517 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46518 unix_path=`$CYGPATH -u "$windows_path"` 46519 new_path="$unix_path" 46520 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46521 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46522 new_path="$unix_path" 46523 fi 46524 46525 if test "x$path" != "x$new_path"; then 46526 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46527 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46528 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46529 fi 46530 46531 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46532 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46533 46534 else 46535 # We're on a posix platform. Hooray! :) 46536 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46537 has_space=`$ECHO "$path" | $GREP " "` 46538 if test "x$has_space" != x; then 46539 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46540 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46541 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46542 fi 46543 46544 # Use eval to expand a potential ~ 46545 eval path="$path" 46546 if test ! -f "$path" && test ! -d "$path"; then 46547 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46548 fi 46549 46550 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46551 fi 46552 46553 46554 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46555 46556 # Input might be given as Windows format, start by converting to 46557 # unix format. 46558 path="$POTENTIAL_FREETYPE_LIB_PATH" 46559 new_path=`$CYGPATH -u "$path"` 46560 46561 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46562 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46563 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46564 # "foo.exe" is OK but "foo" is an error. 46565 # 46566 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46567 # It is also a way to make sure we got the proper file name for the real test later on. 46568 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46569 if test "x$test_shortpath" = x; then 46570 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46571 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46572 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46573 fi 46574 46575 # Call helper function which possibly converts this using DOS-style short mode. 46576 # If so, the updated path is stored in $new_path. 46577 46578 input_path="$new_path" 46579 # Check if we need to convert this using DOS-style short mode. If the path 46580 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46581 # take no chances and rewrite it. 46582 # Note: m4 eats our [], so we need to use [ and ] instead. 46583 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46584 if test "x$has_forbidden_chars" != x; then 46585 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46586 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46587 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46588 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46589 # Going to short mode and back again did indeed matter. Since short mode is 46590 # case insensitive, let's make it lowercase to improve readability. 46591 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46592 # Now convert it back to Unix-stile (cygpath) 46593 input_path=`$CYGPATH -u "$shortmode_path"` 46594 new_path="$input_path" 46595 fi 46596 fi 46597 46598 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46599 if test "x$test_cygdrive_prefix" = x; then 46600 # As a simple fix, exclude /usr/bin since it's not a real path. 46601 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46602 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46603 # a path prefixed by /cygdrive for fixpath to work. 46604 new_path="$CYGWIN_ROOT_PATH$input_path" 46605 fi 46606 fi 46607 46608 46609 if test "x$path" != "x$new_path"; then 46610 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46611 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46612 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46613 fi 46614 46615 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46616 46617 path="$POTENTIAL_FREETYPE_LIB_PATH" 46618 has_colon=`$ECHO $path | $GREP ^.:` 46619 new_path="$path" 46620 if test "x$has_colon" = x; then 46621 # Not in mixed or Windows style, start by that. 46622 new_path=`cmd //c echo $path` 46623 fi 46624 46625 46626 input_path="$new_path" 46627 # Check if we need to convert this using DOS-style short mode. If the path 46628 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46629 # take no chances and rewrite it. 46630 # Note: m4 eats our [], so we need to use [ and ] instead. 46631 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46632 if test "x$has_forbidden_chars" != x; then 46633 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46634 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46635 fi 46636 46637 46638 windows_path="$new_path" 46639 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46640 unix_path=`$CYGPATH -u "$windows_path"` 46641 new_path="$unix_path" 46642 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46643 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46644 new_path="$unix_path" 46645 fi 46646 46647 if test "x$path" != "x$new_path"; then 46648 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46649 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46650 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46651 fi 46652 46653 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46654 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46655 46656 else 46657 # We're on a posix platform. Hooray! :) 46658 path="$POTENTIAL_FREETYPE_LIB_PATH" 46659 has_space=`$ECHO "$path" | $GREP " "` 46660 if test "x$has_space" != x; then 46661 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46662 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46663 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46664 fi 46665 46666 # Use eval to expand a potential ~ 46667 eval path="$path" 46668 if test ! -f "$path" && test ! -d "$path"; then 46669 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46670 fi 46671 46672 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46673 fi 46674 46675 46676 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46678 $as_echo_n "checking for freetype includes... " >&6; } 46679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46680 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46681 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46683 $as_echo_n "checking for freetype libraries... " >&6; } 46684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46685 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46686 fi 46687 46688 fi 46689 46690 if test "x$FOUND_FREETYPE" != xyes; then 46691 FREETYPE_BASE_DIR="$SYSROOT/usr/sfw" 46692 46693 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46694 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46695 METHOD="well-known location" 46696 46697 # First check if the files exists. 46698 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46699 # We found an arbitrary include file. That's a good sign. 46700 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46701 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46702 FOUND_FREETYPE=yes 46703 46704 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 46705 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46706 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46707 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46708 FOUND_FREETYPE=no 46709 else 46710 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46711 # On Windows, we will need both .lib and .dll file. 46712 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 46713 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 46714 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 46715 FOUND_FREETYPE=no 46716 fi 46717 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46718 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46719 # Found lib in isa dir, use that instead. 46720 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46721 fi 46722 fi 46723 fi 46724 46725 if test "x$FOUND_FREETYPE" = xyes; then 46726 46727 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46728 46729 # Input might be given as Windows format, start by converting to 46730 # unix format. 46731 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46732 new_path=`$CYGPATH -u "$path"` 46733 46734 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46735 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46736 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46737 # "foo.exe" is OK but "foo" is an error. 46738 # 46739 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46740 # It is also a way to make sure we got the proper file name for the real test later on. 46741 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46742 if test "x$test_shortpath" = x; then 46743 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46744 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46745 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46746 fi 46747 46748 # Call helper function which possibly converts this using DOS-style short mode. 46749 # If so, the updated path is stored in $new_path. 46750 46751 input_path="$new_path" 46752 # Check if we need to convert this using DOS-style short mode. If the path 46753 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46754 # take no chances and rewrite it. 46755 # Note: m4 eats our [], so we need to use [ and ] instead. 46756 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46757 if test "x$has_forbidden_chars" != x; then 46758 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46759 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46760 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46761 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46762 # Going to short mode and back again did indeed matter. Since short mode is 46763 # case insensitive, let's make it lowercase to improve readability. 46764 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46765 # Now convert it back to Unix-stile (cygpath) 46766 input_path=`$CYGPATH -u "$shortmode_path"` 46767 new_path="$input_path" 46768 fi 46769 fi 46770 46771 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46772 if test "x$test_cygdrive_prefix" = x; then 46773 # As a simple fix, exclude /usr/bin since it's not a real path. 46774 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46775 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46776 # a path prefixed by /cygdrive for fixpath to work. 46777 new_path="$CYGWIN_ROOT_PATH$input_path" 46778 fi 46779 fi 46780 46781 46782 if test "x$path" != "x$new_path"; then 46783 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46784 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46785 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46786 fi 46787 46788 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46789 46790 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46791 has_colon=`$ECHO $path | $GREP ^.:` 46792 new_path="$path" 46793 if test "x$has_colon" = x; then 46794 # Not in mixed or Windows style, start by that. 46795 new_path=`cmd //c echo $path` 46796 fi 46797 46798 46799 input_path="$new_path" 46800 # Check if we need to convert this using DOS-style short mode. If the path 46801 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46802 # take no chances and rewrite it. 46803 # Note: m4 eats our [], so we need to use [ and ] instead. 46804 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46805 if test "x$has_forbidden_chars" != x; then 46806 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46807 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46808 fi 46809 46810 46811 windows_path="$new_path" 46812 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46813 unix_path=`$CYGPATH -u "$windows_path"` 46814 new_path="$unix_path" 46815 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46816 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46817 new_path="$unix_path" 46818 fi 46819 46820 if test "x$path" != "x$new_path"; then 46821 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46822 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46823 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46824 fi 46825 46826 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46827 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46828 46829 else 46830 # We're on a posix platform. Hooray! :) 46831 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46832 has_space=`$ECHO "$path" | $GREP " "` 46833 if test "x$has_space" != x; then 46834 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46835 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46836 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46837 fi 46838 46839 # Use eval to expand a potential ~ 46840 eval path="$path" 46841 if test ! -f "$path" && test ! -d "$path"; then 46842 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46843 fi 46844 46845 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46846 fi 46847 46848 46849 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46850 46851 # Input might be given as Windows format, start by converting to 46852 # unix format. 46853 path="$POTENTIAL_FREETYPE_LIB_PATH" 46854 new_path=`$CYGPATH -u "$path"` 46855 46856 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46857 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46858 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46859 # "foo.exe" is OK but "foo" is an error. 46860 # 46861 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46862 # It is also a way to make sure we got the proper file name for the real test later on. 46863 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46864 if test "x$test_shortpath" = x; then 46865 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46866 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46867 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46868 fi 46869 46870 # Call helper function which possibly converts this using DOS-style short mode. 46871 # If so, the updated path is stored in $new_path. 46872 46873 input_path="$new_path" 46874 # Check if we need to convert this using DOS-style short mode. If the path 46875 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46876 # take no chances and rewrite it. 46877 # Note: m4 eats our [], so we need to use [ and ] instead. 46878 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46879 if test "x$has_forbidden_chars" != x; then 46880 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46881 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46882 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46883 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46884 # Going to short mode and back again did indeed matter. Since short mode is 46885 # case insensitive, let's make it lowercase to improve readability. 46886 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46887 # Now convert it back to Unix-stile (cygpath) 46888 input_path=`$CYGPATH -u "$shortmode_path"` 46889 new_path="$input_path" 46890 fi 46891 fi 46892 46893 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46894 if test "x$test_cygdrive_prefix" = x; then 46895 # As a simple fix, exclude /usr/bin since it's not a real path. 46896 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46897 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46898 # a path prefixed by /cygdrive for fixpath to work. 46899 new_path="$CYGWIN_ROOT_PATH$input_path" 46900 fi 46901 fi 46902 46903 46904 if test "x$path" != "x$new_path"; then 46905 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46906 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46907 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46908 fi 46909 46910 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46911 46912 path="$POTENTIAL_FREETYPE_LIB_PATH" 46913 has_colon=`$ECHO $path | $GREP ^.:` 46914 new_path="$path" 46915 if test "x$has_colon" = x; then 46916 # Not in mixed or Windows style, start by that. 46917 new_path=`cmd //c echo $path` 46918 fi 46919 46920 46921 input_path="$new_path" 46922 # Check if we need to convert this using DOS-style short mode. If the path 46923 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46924 # take no chances and rewrite it. 46925 # Note: m4 eats our [], so we need to use [ and ] instead. 46926 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46927 if test "x$has_forbidden_chars" != x; then 46928 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46929 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46930 fi 46931 46932 46933 windows_path="$new_path" 46934 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46935 unix_path=`$CYGPATH -u "$windows_path"` 46936 new_path="$unix_path" 46937 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46938 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46939 new_path="$unix_path" 46940 fi 46941 46942 if test "x$path" != "x$new_path"; then 46943 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46944 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46945 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46946 fi 46947 46948 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46949 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46950 46951 else 46952 # We're on a posix platform. Hooray! :) 46953 path="$POTENTIAL_FREETYPE_LIB_PATH" 46954 has_space=`$ECHO "$path" | $GREP " "` 46955 if test "x$has_space" != x; then 46956 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46957 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46958 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46959 fi 46960 46961 # Use eval to expand a potential ~ 46962 eval path="$path" 46963 if test ! -f "$path" && test ! -d "$path"; then 46964 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46965 fi 46966 46967 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46968 fi 46969 46970 46971 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46973 $as_echo_n "checking for freetype includes... " >&6; } 46974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46975 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46976 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46978 $as_echo_n "checking for freetype libraries... " >&6; } 46979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46980 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46981 fi 46982 46983 fi 46984 46985 if test "x$FOUND_FREETYPE" != xyes; then 46986 FREETYPE_BASE_DIR="$SYSROOT/usr" 46987 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 46988 46989 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46990 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 46991 METHOD="well-known location" 46992 46993 # First check if the files exists. 46994 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46995 # We found an arbitrary include file. That's a good sign. 46996 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46997 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46998 FOUND_FREETYPE=yes 46999 47000 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 47001 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47002 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47003 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47004 FOUND_FREETYPE=no 47005 else 47006 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47007 # On Windows, we will need both .lib and .dll file. 47008 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 47009 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 47010 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 47011 FOUND_FREETYPE=no 47012 fi 47013 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47014 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47015 # Found lib in isa dir, use that instead. 47016 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47017 fi 47018 fi 47019 fi 47020 47021 if test "x$FOUND_FREETYPE" = xyes; then 47022 47023 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47024 47025 # Input might be given as Windows format, start by converting to 47026 # unix format. 47027 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47028 new_path=`$CYGPATH -u "$path"` 47029 47030 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47031 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47032 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47033 # "foo.exe" is OK but "foo" is an error. 47034 # 47035 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47036 # It is also a way to make sure we got the proper file name for the real test later on. 47037 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47038 if test "x$test_shortpath" = x; then 47039 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47040 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47041 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47042 fi 47043 47044 # Call helper function which possibly converts this using DOS-style short mode. 47045 # If so, the updated path is stored in $new_path. 47046 47047 input_path="$new_path" 47048 # Check if we need to convert this using DOS-style short mode. If the path 47049 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47050 # take no chances and rewrite it. 47051 # Note: m4 eats our [], so we need to use [ and ] instead. 47052 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47053 if test "x$has_forbidden_chars" != x; then 47054 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47055 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47056 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47057 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47058 # Going to short mode and back again did indeed matter. Since short mode is 47059 # case insensitive, let's make it lowercase to improve readability. 47060 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47061 # Now convert it back to Unix-stile (cygpath) 47062 input_path=`$CYGPATH -u "$shortmode_path"` 47063 new_path="$input_path" 47064 fi 47065 fi 47066 47067 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47068 if test "x$test_cygdrive_prefix" = x; then 47069 # As a simple fix, exclude /usr/bin since it's not a real path. 47070 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47071 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47072 # a path prefixed by /cygdrive for fixpath to work. 47073 new_path="$CYGWIN_ROOT_PATH$input_path" 47074 fi 47075 fi 47076 47077 47078 if test "x$path" != "x$new_path"; then 47079 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47080 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47081 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47082 fi 47083 47084 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47085 47086 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47087 has_colon=`$ECHO $path | $GREP ^.:` 47088 new_path="$path" 47089 if test "x$has_colon" = x; then 47090 # Not in mixed or Windows style, start by that. 47091 new_path=`cmd //c echo $path` 47092 fi 47093 47094 47095 input_path="$new_path" 47096 # Check if we need to convert this using DOS-style short mode. If the path 47097 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47098 # take no chances and rewrite it. 47099 # Note: m4 eats our [], so we need to use [ and ] instead. 47100 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47101 if test "x$has_forbidden_chars" != x; then 47102 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47103 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47104 fi 47105 47106 47107 windows_path="$new_path" 47108 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47109 unix_path=`$CYGPATH -u "$windows_path"` 47110 new_path="$unix_path" 47111 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47112 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47113 new_path="$unix_path" 47114 fi 47115 47116 if test "x$path" != "x$new_path"; then 47117 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47118 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47119 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47120 fi 47121 47122 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47123 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47124 47125 else 47126 # We're on a posix platform. Hooray! :) 47127 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47128 has_space=`$ECHO "$path" | $GREP " "` 47129 if test "x$has_space" != x; then 47130 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47131 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47132 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47133 fi 47134 47135 # Use eval to expand a potential ~ 47136 eval path="$path" 47137 if test ! -f "$path" && test ! -d "$path"; then 47138 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47139 fi 47140 47141 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47142 fi 47143 47144 47145 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47146 47147 # Input might be given as Windows format, start by converting to 47148 # unix format. 47149 path="$POTENTIAL_FREETYPE_LIB_PATH" 47150 new_path=`$CYGPATH -u "$path"` 47151 47152 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47153 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47154 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47155 # "foo.exe" is OK but "foo" is an error. 47156 # 47157 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47158 # It is also a way to make sure we got the proper file name for the real test later on. 47159 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47160 if test "x$test_shortpath" = x; then 47161 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47162 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47163 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47164 fi 47165 47166 # Call helper function which possibly converts this using DOS-style short mode. 47167 # If so, the updated path is stored in $new_path. 47168 47169 input_path="$new_path" 47170 # Check if we need to convert this using DOS-style short mode. If the path 47171 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47172 # take no chances and rewrite it. 47173 # Note: m4 eats our [], so we need to use [ and ] instead. 47174 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47175 if test "x$has_forbidden_chars" != x; then 47176 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47177 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47178 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47179 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47180 # Going to short mode and back again did indeed matter. Since short mode is 47181 # case insensitive, let's make it lowercase to improve readability. 47182 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47183 # Now convert it back to Unix-stile (cygpath) 47184 input_path=`$CYGPATH -u "$shortmode_path"` 47185 new_path="$input_path" 47186 fi 47187 fi 47188 47189 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47190 if test "x$test_cygdrive_prefix" = x; then 47191 # As a simple fix, exclude /usr/bin since it's not a real path. 47192 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47193 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47194 # a path prefixed by /cygdrive for fixpath to work. 47195 new_path="$CYGWIN_ROOT_PATH$input_path" 47196 fi 47197 fi 47198 47199 47200 if test "x$path" != "x$new_path"; then 47201 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47202 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47203 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47204 fi 47205 47206 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47207 47208 path="$POTENTIAL_FREETYPE_LIB_PATH" 47209 has_colon=`$ECHO $path | $GREP ^.:` 47210 new_path="$path" 47211 if test "x$has_colon" = x; then 47212 # Not in mixed or Windows style, start by that. 47213 new_path=`cmd //c echo $path` 47214 fi 47215 47216 47217 input_path="$new_path" 47218 # Check if we need to convert this using DOS-style short mode. If the path 47219 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47220 # take no chances and rewrite it. 47221 # Note: m4 eats our [], so we need to use [ and ] instead. 47222 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47223 if test "x$has_forbidden_chars" != x; then 47224 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47225 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47226 fi 47227 47228 47229 windows_path="$new_path" 47230 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47231 unix_path=`$CYGPATH -u "$windows_path"` 47232 new_path="$unix_path" 47233 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47234 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47235 new_path="$unix_path" 47236 fi 47237 47238 if test "x$path" != "x$new_path"; then 47239 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47240 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47241 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47242 fi 47243 47244 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47245 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47246 47247 else 47248 # We're on a posix platform. Hooray! :) 47249 path="$POTENTIAL_FREETYPE_LIB_PATH" 47250 has_space=`$ECHO "$path" | $GREP " "` 47251 if test "x$has_space" != x; then 47252 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47253 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47254 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47255 fi 47256 47257 # Use eval to expand a potential ~ 47258 eval path="$path" 47259 if test ! -f "$path" && test ! -d "$path"; then 47260 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47261 fi 47262 47263 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47264 fi 47265 47266 47267 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47269 $as_echo_n "checking for freetype includes... " >&6; } 47270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47271 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47272 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47274 $as_echo_n "checking for freetype libraries... " >&6; } 47275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47276 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47277 fi 47278 47279 else 47280 47281 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47282 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 47283 METHOD="well-known location" 47284 47285 # First check if the files exists. 47286 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47287 # We found an arbitrary include file. That's a good sign. 47288 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47289 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47290 FOUND_FREETYPE=yes 47291 47292 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 47293 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47294 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47295 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47296 FOUND_FREETYPE=no 47297 else 47298 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47299 # On Windows, we will need both .lib and .dll file. 47300 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 47301 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 47302 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 47303 FOUND_FREETYPE=no 47304 fi 47305 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47306 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47307 # Found lib in isa dir, use that instead. 47308 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47309 fi 47310 fi 47311 fi 47312 47313 if test "x$FOUND_FREETYPE" = xyes; then 47314 47315 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47316 47317 # Input might be given as Windows format, start by converting to 47318 # unix format. 47319 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47320 new_path=`$CYGPATH -u "$path"` 47321 47322 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47323 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47324 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47325 # "foo.exe" is OK but "foo" is an error. 47326 # 47327 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47328 # It is also a way to make sure we got the proper file name for the real test later on. 47329 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47330 if test "x$test_shortpath" = x; then 47331 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47332 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47333 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47334 fi 47335 47336 # Call helper function which possibly converts this using DOS-style short mode. 47337 # If so, the updated path is stored in $new_path. 47338 47339 input_path="$new_path" 47340 # Check if we need to convert this using DOS-style short mode. If the path 47341 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47342 # take no chances and rewrite it. 47343 # Note: m4 eats our [], so we need to use [ and ] instead. 47344 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47345 if test "x$has_forbidden_chars" != x; then 47346 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47347 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47348 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47349 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47350 # Going to short mode and back again did indeed matter. Since short mode is 47351 # case insensitive, let's make it lowercase to improve readability. 47352 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47353 # Now convert it back to Unix-stile (cygpath) 47354 input_path=`$CYGPATH -u "$shortmode_path"` 47355 new_path="$input_path" 47356 fi 47357 fi 47358 47359 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47360 if test "x$test_cygdrive_prefix" = x; then 47361 # As a simple fix, exclude /usr/bin since it's not a real path. 47362 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47363 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47364 # a path prefixed by /cygdrive for fixpath to work. 47365 new_path="$CYGWIN_ROOT_PATH$input_path" 47366 fi 47367 fi 47368 47369 47370 if test "x$path" != "x$new_path"; then 47371 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47372 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47373 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47374 fi 47375 47376 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47377 47378 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47379 has_colon=`$ECHO $path | $GREP ^.:` 47380 new_path="$path" 47381 if test "x$has_colon" = x; then 47382 # Not in mixed or Windows style, start by that. 47383 new_path=`cmd //c echo $path` 47384 fi 47385 47386 47387 input_path="$new_path" 47388 # Check if we need to convert this using DOS-style short mode. If the path 47389 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47390 # take no chances and rewrite it. 47391 # Note: m4 eats our [], so we need to use [ and ] instead. 47392 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47393 if test "x$has_forbidden_chars" != x; then 47394 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47395 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47396 fi 47397 47398 47399 windows_path="$new_path" 47400 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47401 unix_path=`$CYGPATH -u "$windows_path"` 47402 new_path="$unix_path" 47403 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47404 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47405 new_path="$unix_path" 47406 fi 47407 47408 if test "x$path" != "x$new_path"; then 47409 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47410 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47411 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47412 fi 47413 47414 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47415 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47416 47417 else 47418 # We're on a posix platform. Hooray! :) 47419 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47420 has_space=`$ECHO "$path" | $GREP " "` 47421 if test "x$has_space" != x; then 47422 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47423 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47424 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47425 fi 47426 47427 # Use eval to expand a potential ~ 47428 eval path="$path" 47429 if test ! -f "$path" && test ! -d "$path"; then 47430 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47431 fi 47432 47433 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47434 fi 47435 47436 47437 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47438 47439 # Input might be given as Windows format, start by converting to 47440 # unix format. 47441 path="$POTENTIAL_FREETYPE_LIB_PATH" 47442 new_path=`$CYGPATH -u "$path"` 47443 47444 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47445 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47446 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47447 # "foo.exe" is OK but "foo" is an error. 47448 # 47449 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47450 # It is also a way to make sure we got the proper file name for the real test later on. 47451 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47452 if test "x$test_shortpath" = x; then 47453 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47454 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47455 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47456 fi 47457 47458 # Call helper function which possibly converts this using DOS-style short mode. 47459 # If so, the updated path is stored in $new_path. 47460 47461 input_path="$new_path" 47462 # Check if we need to convert this using DOS-style short mode. If the path 47463 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47464 # take no chances and rewrite it. 47465 # Note: m4 eats our [], so we need to use [ and ] instead. 47466 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47467 if test "x$has_forbidden_chars" != x; then 47468 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47469 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47470 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47471 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47472 # Going to short mode and back again did indeed matter. Since short mode is 47473 # case insensitive, let's make it lowercase to improve readability. 47474 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47475 # Now convert it back to Unix-stile (cygpath) 47476 input_path=`$CYGPATH -u "$shortmode_path"` 47477 new_path="$input_path" 47478 fi 47479 fi 47480 47481 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47482 if test "x$test_cygdrive_prefix" = x; then 47483 # As a simple fix, exclude /usr/bin since it's not a real path. 47484 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47485 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47486 # a path prefixed by /cygdrive for fixpath to work. 47487 new_path="$CYGWIN_ROOT_PATH$input_path" 47488 fi 47489 fi 47490 47491 47492 if test "x$path" != "x$new_path"; then 47493 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47494 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47495 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47496 fi 47497 47498 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47499 47500 path="$POTENTIAL_FREETYPE_LIB_PATH" 47501 has_colon=`$ECHO $path | $GREP ^.:` 47502 new_path="$path" 47503 if test "x$has_colon" = x; then 47504 # Not in mixed or Windows style, start by that. 47505 new_path=`cmd //c echo $path` 47506 fi 47507 47508 47509 input_path="$new_path" 47510 # Check if we need to convert this using DOS-style short mode. If the path 47511 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47512 # take no chances and rewrite it. 47513 # Note: m4 eats our [], so we need to use [ and ] instead. 47514 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47515 if test "x$has_forbidden_chars" != x; then 47516 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47517 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47518 fi 47519 47520 47521 windows_path="$new_path" 47522 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47523 unix_path=`$CYGPATH -u "$windows_path"` 47524 new_path="$unix_path" 47525 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47526 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47527 new_path="$unix_path" 47528 fi 47529 47530 if test "x$path" != "x$new_path"; then 47531 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47532 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47533 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47534 fi 47535 47536 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47537 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47538 47539 else 47540 # We're on a posix platform. Hooray! :) 47541 path="$POTENTIAL_FREETYPE_LIB_PATH" 47542 has_space=`$ECHO "$path" | $GREP " "` 47543 if test "x$has_space" != x; then 47544 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47545 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47546 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47547 fi 47548 47549 # Use eval to expand a potential ~ 47550 eval path="$path" 47551 if test ! -f "$path" && test ! -d "$path"; then 47552 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47553 fi 47554 47555 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47556 fi 47557 47558 47559 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47561 $as_echo_n "checking for freetype includes... " >&6; } 47562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47563 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47564 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47566 $as_echo_n "checking for freetype libraries... " >&6; } 47567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47568 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47569 fi 47570 47571 if test "x$FOUND_FREETYPE" != xyes; then 47572 47573 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47574 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 47575 METHOD="well-known location" 47576 47577 # First check if the files exists. 47578 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47579 # We found an arbitrary include file. That's a good sign. 47580 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47581 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47582 FOUND_FREETYPE=yes 47583 47584 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 47585 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47586 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47587 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47588 FOUND_FREETYPE=no 47589 else 47590 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47591 # On Windows, we will need both .lib and .dll file. 47592 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 47593 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 47594 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 47595 FOUND_FREETYPE=no 47596 fi 47597 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47598 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47599 # Found lib in isa dir, use that instead. 47600 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47601 fi 47602 fi 47603 fi 47604 47605 if test "x$FOUND_FREETYPE" = xyes; then 47606 47607 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47608 47609 # Input might be given as Windows format, start by converting to 47610 # unix format. 47611 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47612 new_path=`$CYGPATH -u "$path"` 47613 47614 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47615 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47616 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47617 # "foo.exe" is OK but "foo" is an error. 47618 # 47619 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47620 # It is also a way to make sure we got the proper file name for the real test later on. 47621 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47622 if test "x$test_shortpath" = x; then 47623 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47624 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47625 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47626 fi 47627 47628 # Call helper function which possibly converts this using DOS-style short mode. 47629 # If so, the updated path is stored in $new_path. 47630 47631 input_path="$new_path" 47632 # Check if we need to convert this using DOS-style short mode. If the path 47633 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47634 # take no chances and rewrite it. 47635 # Note: m4 eats our [], so we need to use [ and ] instead. 47636 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47637 if test "x$has_forbidden_chars" != x; then 47638 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47639 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47640 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47641 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47642 # Going to short mode and back again did indeed matter. Since short mode is 47643 # case insensitive, let's make it lowercase to improve readability. 47644 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47645 # Now convert it back to Unix-stile (cygpath) 47646 input_path=`$CYGPATH -u "$shortmode_path"` 47647 new_path="$input_path" 47648 fi 47649 fi 47650 47651 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47652 if test "x$test_cygdrive_prefix" = x; then 47653 # As a simple fix, exclude /usr/bin since it's not a real path. 47654 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47655 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47656 # a path prefixed by /cygdrive for fixpath to work. 47657 new_path="$CYGWIN_ROOT_PATH$input_path" 47658 fi 47659 fi 47660 47661 47662 if test "x$path" != "x$new_path"; then 47663 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47664 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47665 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47666 fi 47667 47668 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47669 47670 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47671 has_colon=`$ECHO $path | $GREP ^.:` 47672 new_path="$path" 47673 if test "x$has_colon" = x; then 47674 # Not in mixed or Windows style, start by that. 47675 new_path=`cmd //c echo $path` 47676 fi 47677 47678 47679 input_path="$new_path" 47680 # Check if we need to convert this using DOS-style short mode. If the path 47681 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47682 # take no chances and rewrite it. 47683 # Note: m4 eats our [], so we need to use [ and ] instead. 47684 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47685 if test "x$has_forbidden_chars" != x; then 47686 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47687 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47688 fi 47689 47690 47691 windows_path="$new_path" 47692 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47693 unix_path=`$CYGPATH -u "$windows_path"` 47694 new_path="$unix_path" 47695 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47696 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47697 new_path="$unix_path" 47698 fi 47699 47700 if test "x$path" != "x$new_path"; then 47701 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47702 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47703 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47704 fi 47705 47706 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47707 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47708 47709 else 47710 # We're on a posix platform. Hooray! :) 47711 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47712 has_space=`$ECHO "$path" | $GREP " "` 47713 if test "x$has_space" != x; then 47714 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47715 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47716 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47717 fi 47718 47719 # Use eval to expand a potential ~ 47720 eval path="$path" 47721 if test ! -f "$path" && test ! -d "$path"; then 47722 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47723 fi 47724 47725 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47726 fi 47727 47728 47729 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47730 47731 # Input might be given as Windows format, start by converting to 47732 # unix format. 47733 path="$POTENTIAL_FREETYPE_LIB_PATH" 47734 new_path=`$CYGPATH -u "$path"` 47735 47736 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47737 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47738 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47739 # "foo.exe" is OK but "foo" is an error. 47740 # 47741 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47742 # It is also a way to make sure we got the proper file name for the real test later on. 47743 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47744 if test "x$test_shortpath" = x; then 47745 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47746 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47747 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47748 fi 47749 47750 # Call helper function which possibly converts this using DOS-style short mode. 47751 # If so, the updated path is stored in $new_path. 47752 47753 input_path="$new_path" 47754 # Check if we need to convert this using DOS-style short mode. If the path 47755 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47756 # take no chances and rewrite it. 47757 # Note: m4 eats our [], so we need to use [ and ] instead. 47758 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47759 if test "x$has_forbidden_chars" != x; then 47760 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47761 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47762 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47763 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47764 # Going to short mode and back again did indeed matter. Since short mode is 47765 # case insensitive, let's make it lowercase to improve readability. 47766 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47767 # Now convert it back to Unix-stile (cygpath) 47768 input_path=`$CYGPATH -u "$shortmode_path"` 47769 new_path="$input_path" 47770 fi 47771 fi 47772 47773 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47774 if test "x$test_cygdrive_prefix" = x; then 47775 # As a simple fix, exclude /usr/bin since it's not a real path. 47776 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47777 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47778 # a path prefixed by /cygdrive for fixpath to work. 47779 new_path="$CYGWIN_ROOT_PATH$input_path" 47780 fi 47781 fi 47782 47783 47784 if test "x$path" != "x$new_path"; then 47785 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47786 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47787 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47788 fi 47789 47790 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47791 47792 path="$POTENTIAL_FREETYPE_LIB_PATH" 47793 has_colon=`$ECHO $path | $GREP ^.:` 47794 new_path="$path" 47795 if test "x$has_colon" = x; then 47796 # Not in mixed or Windows style, start by that. 47797 new_path=`cmd //c echo $path` 47798 fi 47799 47800 47801 input_path="$new_path" 47802 # Check if we need to convert this using DOS-style short mode. If the path 47803 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47804 # take no chances and rewrite it. 47805 # Note: m4 eats our [], so we need to use [ and ] instead. 47806 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47807 if test "x$has_forbidden_chars" != x; then 47808 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47809 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47810 fi 47811 47812 47813 windows_path="$new_path" 47814 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47815 unix_path=`$CYGPATH -u "$windows_path"` 47816 new_path="$unix_path" 47817 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47818 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47819 new_path="$unix_path" 47820 fi 47821 47822 if test "x$path" != "x$new_path"; then 47823 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47824 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47825 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47826 fi 47827 47828 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47829 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47830 47831 else 47832 # We're on a posix platform. Hooray! :) 47833 path="$POTENTIAL_FREETYPE_LIB_PATH" 47834 has_space=`$ECHO "$path" | $GREP " "` 47835 if test "x$has_space" != x; then 47836 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47837 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47838 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47839 fi 47840 47841 # Use eval to expand a potential ~ 47842 eval path="$path" 47843 if test ! -f "$path" && test ! -d "$path"; then 47844 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47845 fi 47846 47847 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47848 fi 47849 47850 47851 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47853 $as_echo_n "checking for freetype includes... " >&6; } 47854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47855 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47856 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47858 $as_echo_n "checking for freetype libraries... " >&6; } 47859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47860 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47861 fi 47862 47863 fi 47864 fi 47865 fi 47866 fi 47867 fi # end check in well-known locations 47868 47869 if test "x$FOUND_FREETYPE" != xyes; then 47870 47871 # Print a helpful message on how to acquire the necessary build dependency. 47872 # freetype is the help tag: freetype, cups, pulse, alsa etc 47873 MISSING_DEPENDENCY=freetype 47874 47875 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47876 cygwin_help $MISSING_DEPENDENCY 47877 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47878 msys_help $MISSING_DEPENDENCY 47879 else 47880 PKGHANDLER_COMMAND= 47881 47882 case $PKGHANDLER in 47883 apt-get) 47884 apt_help $MISSING_DEPENDENCY ;; 47885 yum) 47886 yum_help $MISSING_DEPENDENCY ;; 47887 port) 47888 port_help $MISSING_DEPENDENCY ;; 47889 pkgutil) 47890 pkgutil_help $MISSING_DEPENDENCY ;; 47891 pkgadd) 47892 pkgadd_help $MISSING_DEPENDENCY ;; 47893 esac 47894 47895 if test "x$PKGHANDLER_COMMAND" != x; then 47896 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 47897 fi 47898 fi 47899 47900 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 47901 fi 47902 fi # end user specified settings 47903 47904 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 47905 if test "x$FREETYPE_CFLAGS" = x; then 47906 47907 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47908 47909 # Input might be given as Windows format, start by converting to 47910 # unix format. 47911 path="$FREETYPE_INCLUDE_PATH" 47912 new_path=`$CYGPATH -u "$path"` 47913 47914 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47915 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47916 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47917 # "foo.exe" is OK but "foo" is an error. 47918 # 47919 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47920 # It is also a way to make sure we got the proper file name for the real test later on. 47921 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47922 if test "x$test_shortpath" = x; then 47923 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47924 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47925 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 47926 fi 47927 47928 # Call helper function which possibly converts this using DOS-style short mode. 47929 # If so, the updated path is stored in $new_path. 47930 47931 input_path="$new_path" 47932 # Check if we need to convert this using DOS-style short mode. If the path 47933 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47934 # take no chances and rewrite it. 47935 # Note: m4 eats our [], so we need to use [ and ] instead. 47936 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47937 if test "x$has_forbidden_chars" != x; then 47938 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47939 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47940 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47941 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47942 # Going to short mode and back again did indeed matter. Since short mode is 47943 # case insensitive, let's make it lowercase to improve readability. 47944 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47945 # Now convert it back to Unix-stile (cygpath) 47946 input_path=`$CYGPATH -u "$shortmode_path"` 47947 new_path="$input_path" 47948 fi 47949 fi 47950 47951 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47952 if test "x$test_cygdrive_prefix" = x; then 47953 # As a simple fix, exclude /usr/bin since it's not a real path. 47954 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47955 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47956 # a path prefixed by /cygdrive for fixpath to work. 47957 new_path="$CYGWIN_ROOT_PATH$input_path" 47958 fi 47959 fi 47960 47961 47962 if test "x$path" != "x$new_path"; then 47963 FREETYPE_INCLUDE_PATH="$new_path" 47964 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47965 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47966 fi 47967 47968 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47969 47970 path="$FREETYPE_INCLUDE_PATH" 47971 has_colon=`$ECHO $path | $GREP ^.:` 47972 new_path="$path" 47973 if test "x$has_colon" = x; then 47974 # Not in mixed or Windows style, start by that. 47975 new_path=`cmd //c echo $path` 47976 fi 47977 47978 47979 input_path="$new_path" 47980 # Check if we need to convert this using DOS-style short mode. If the path 47981 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47982 # take no chances and rewrite it. 47983 # Note: m4 eats our [], so we need to use [ and ] instead. 47984 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47985 if test "x$has_forbidden_chars" != x; then 47986 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47987 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47988 fi 47989 47990 47991 windows_path="$new_path" 47992 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47993 unix_path=`$CYGPATH -u "$windows_path"` 47994 new_path="$unix_path" 47995 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47996 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47997 new_path="$unix_path" 47998 fi 47999 48000 if test "x$path" != "x$new_path"; then 48001 FREETYPE_INCLUDE_PATH="$new_path" 48002 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 48003 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 48004 fi 48005 48006 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48007 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48008 48009 else 48010 # We're on a posix platform. Hooray! :) 48011 path="$FREETYPE_INCLUDE_PATH" 48012 has_space=`$ECHO "$path" | $GREP " "` 48013 if test "x$has_space" != x; then 48014 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 48015 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 48016 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48017 fi 48018 48019 # Use eval to expand a potential ~ 48020 eval path="$path" 48021 if test ! -f "$path" && test ! -d "$path"; then 48022 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48023 fi 48024 48025 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 48026 fi 48027 48028 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 48029 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 48030 else 48031 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 48032 fi 48033 fi 48034 48035 if test "x$FREETYPE_LIBS" = x; then 48036 48037 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48038 48039 # Input might be given as Windows format, start by converting to 48040 # unix format. 48041 path="$FREETYPE_LIB_PATH" 48042 new_path=`$CYGPATH -u "$path"` 48043 48044 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48045 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48046 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48047 # "foo.exe" is OK but "foo" is an error. 48048 # 48049 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48050 # It is also a way to make sure we got the proper file name for the real test later on. 48051 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48052 if test "x$test_shortpath" = x; then 48053 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48054 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48055 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 48056 fi 48057 48058 # Call helper function which possibly converts this using DOS-style short mode. 48059 # If so, the updated path is stored in $new_path. 48060 48061 input_path="$new_path" 48062 # Check if we need to convert this using DOS-style short mode. If the path 48063 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48064 # take no chances and rewrite it. 48065 # Note: m4 eats our [], so we need to use [ and ] instead. 48066 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48067 if test "x$has_forbidden_chars" != x; then 48068 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48069 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48070 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48071 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48072 # Going to short mode and back again did indeed matter. Since short mode is 48073 # case insensitive, let's make it lowercase to improve readability. 48074 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48075 # Now convert it back to Unix-stile (cygpath) 48076 input_path=`$CYGPATH -u "$shortmode_path"` 48077 new_path="$input_path" 48078 fi 48079 fi 48080 48081 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48082 if test "x$test_cygdrive_prefix" = x; then 48083 # As a simple fix, exclude /usr/bin since it's not a real path. 48084 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48085 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48086 # a path prefixed by /cygdrive for fixpath to work. 48087 new_path="$CYGWIN_ROOT_PATH$input_path" 48088 fi 48089 fi 48090 48091 48092 if test "x$path" != "x$new_path"; then 48093 FREETYPE_LIB_PATH="$new_path" 48094 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 48095 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48096 fi 48097 48098 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48099 48100 path="$FREETYPE_LIB_PATH" 48101 has_colon=`$ECHO $path | $GREP ^.:` 48102 new_path="$path" 48103 if test "x$has_colon" = x; then 48104 # Not in mixed or Windows style, start by that. 48105 new_path=`cmd //c echo $path` 48106 fi 48107 48108 48109 input_path="$new_path" 48110 # Check if we need to convert this using DOS-style short mode. If the path 48111 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48112 # take no chances and rewrite it. 48113 # Note: m4 eats our [], so we need to use [ and ] instead. 48114 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48115 if test "x$has_forbidden_chars" != x; then 48116 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48117 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48118 fi 48119 48120 48121 windows_path="$new_path" 48122 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48123 unix_path=`$CYGPATH -u "$windows_path"` 48124 new_path="$unix_path" 48125 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48126 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48127 new_path="$unix_path" 48128 fi 48129 48130 if test "x$path" != "x$new_path"; then 48131 FREETYPE_LIB_PATH="$new_path" 48132 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 48133 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48134 fi 48135 48136 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48137 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48138 48139 else 48140 # We're on a posix platform. Hooray! :) 48141 path="$FREETYPE_LIB_PATH" 48142 has_space=`$ECHO "$path" | $GREP " "` 48143 if test "x$has_space" != x; then 48144 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48145 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48146 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48147 fi 48148 48149 # Use eval to expand a potential ~ 48150 eval path="$path" 48151 if test ! -f "$path" && test ! -d "$path"; then 48152 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48153 fi 48154 48155 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 48156 fi 48157 48158 if test "x$OPENJDK_TARGET_OS" = xwindows; then 48159 FREETYPE_LIBS="$FREETYPE_LIB_PATH/freetype.lib" 48160 else 48161 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -lfreetype" 48162 fi 48163 fi 48164 48165 # Try to compile it 48166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 48167 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 48168 ac_ext=cpp 48169 ac_cpp='$CXXCPP $CPPFLAGS' 48170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48173 48174 PREV_CXXCFLAGS="$CXXFLAGS" 48175 PREV_LIBS="$LIBS" 48176 PREV_CXX="$CXX" 48177 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 48178 LIBS="$LIBS $FREETYPE_LIBS" 48179 CXX="$FIXPATH $CXX" 48180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48181 /* end confdefs.h. */ 48182 48183 #include<ft2build.h> 48184 #include FT_FREETYPE_H 48185 int main () { 48186 FT_Init_FreeType(NULL); 48187 return 0; 48188 } 48189 48190 _ACEOF 48191 if ac_fn_cxx_try_link "$LINENO"; then : 48192 48193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48194 $as_echo "yes" >&6; } 48195 48196 else 48197 48198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48199 $as_echo "no" >&6; } 48200 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 48201 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 48202 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 48203 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 48204 48205 48206 # Print a helpful message on how to acquire the necessary build dependency. 48207 # freetype is the help tag: freetype, cups, pulse, alsa etc 48208 MISSING_DEPENDENCY=freetype 48209 48210 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48211 cygwin_help $MISSING_DEPENDENCY 48212 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48213 msys_help $MISSING_DEPENDENCY 48214 else 48215 PKGHANDLER_COMMAND= 48216 48217 case $PKGHANDLER in 48218 apt-get) 48219 apt_help $MISSING_DEPENDENCY ;; 48220 yum) 48221 yum_help $MISSING_DEPENDENCY ;; 48222 port) 48223 port_help $MISSING_DEPENDENCY ;; 48224 pkgutil) 48225 pkgutil_help $MISSING_DEPENDENCY ;; 48226 pkgadd) 48227 pkgadd_help $MISSING_DEPENDENCY ;; 48228 esac 48229 48230 if test "x$PKGHANDLER_COMMAND" != x; then 48231 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48232 fi 48233 fi 48234 48235 48236 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 48237 48238 48239 fi 48240 rm -f core conftest.err conftest.$ac_objext \ 48241 conftest$ac_exeext conftest.$ac_ext 48242 CXXCFLAGS="$PREV_CXXFLAGS" 48243 LIBS="$PREV_LIBS" 48244 CXX="$PREV_CXX" 48245 ac_ext=cpp 48246 ac_cpp='$CXXCPP $CPPFLAGS' 48247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48250 48251 48252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 48253 $as_echo_n "checking if we should bundle freetype... " >&6; } 48254 if test "x$BUNDLE_FREETYPE" = xyes; then 48255 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 48256 fi 48257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 48258 $as_echo "$BUNDLE_FREETYPE" >&6; } 48259 48260 fi # end freetype needed 48261 48262 48263 48264 48265 48266 48267 48268 ############################################################################### 48269 # 48270 # Check for alsa headers and libraries. Used on Linux/GNU systems. 48271 # 48272 48273 # Check whether --with-alsa was given. 48274 if test "${with_alsa+set}" = set; then : 48275 withval=$with_alsa; 48276 fi 48277 48278 48279 # Check whether --with-alsa-include was given. 48280 if test "${with_alsa_include+set}" = set; then : 48281 withval=$with_alsa_include; 48282 fi 48283 48284 48285 # Check whether --with-alsa-lib was given. 48286 if test "${with_alsa_lib+set}" = set; then : 48287 withval=$with_alsa_lib; 48288 fi 48289 48290 48291 if test "x$ALSA_NOT_NEEDED" = xyes; then 48292 if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then 48293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5 48294 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;} 48295 fi 48296 ALSA_CFLAGS= 48297 ALSA_LIBS= 48298 else 48299 ALSA_FOUND=no 48300 48301 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 48302 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 48303 fi 48304 48305 if test "x${with_alsa}" != x; then 48306 ALSA_LIBS="-L${with_alsa}/lib -lasound" 48307 ALSA_CFLAGS="-I${with_alsa}/include" 48308 ALSA_FOUND=yes 48309 fi 48310 if test "x${with_alsa_include}" != x; then 48311 ALSA_CFLAGS="-I${with_alsa_include}" 48312 ALSA_FOUND=yes 48313 fi 48314 if test "x${with_alsa_lib}" != x; then 48315 ALSA_LIBS="-L${with_alsa_lib} -lasound" 48316 ALSA_FOUND=yes 48317 fi 48318 if test "x$ALSA_FOUND" = xno; then 48319 48320 48321 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 48322 # Source the builddeps file again, to make sure it uses the latest variables! 48323 . $builddepsfile 48324 # Look for a target and build machine specific resource! 48325 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 48326 if test "x$resource" = x; then 48327 # Ok, lets instead look for a target specific resource 48328 eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}} 48329 fi 48330 if test "x$resource" = x; then 48331 # Ok, lets instead look for a build specific resource 48332 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}} 48333 fi 48334 if test "x$resource" = x; then 48335 # Ok, lets instead look for a generic resource 48336 # (The alsa comes from M4 and not the shell, thus no need for eval here.) 48337 resource=${builddep_alsa} 48338 fi 48339 if test "x$resource" != x; then 48340 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5 48341 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;} 48342 # If the resource in the builddeps.conf file is an existing directory, 48343 # for example /java/linux/cups 48344 if test -d ${resource}; then 48345 depdir=${resource} 48346 else 48347 48348 # alsa is for example mymodule 48349 # $resource is for example libs/general/libmymod_1_2_3.zip 48350 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 48351 # $with_builddeps_dir is for example /localhome/builddeps 48352 # depdir is the name of the variable into which we store the depdir, eg MYMOD 48353 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 48354 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 48355 filename=`basename $resource` 48356 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 48357 filebase=${filename%%.*} 48358 extension=${filename#*.} 48359 installdir=$with_builddeps_dir/$filebase 48360 if test ! -f $installdir/$filename.unpacked; then 48361 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5 48362 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;} 48363 if test ! -d $installdir; then 48364 mkdir -p $installdir 48365 fi 48366 if test ! -d $installdir; then 48367 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 48368 fi 48369 tmpfile=`mktemp $installdir/alsa.XXXXXXXXX` 48370 touch $tmpfile 48371 if test ! -f $tmpfile; then 48372 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 48373 fi 48374 48375 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 48376 # $tmpfile is the local file name for the downloaded file. 48377 VALID_TOOL=no 48378 if test "x$BDEPS_FTP" = xwget; then 48379 VALID_TOOL=yes 48380 wget -O $tmpfile $with_builddeps_server/$resource 48381 fi 48382 if test "x$BDEPS_FTP" = xlftp; then 48383 VALID_TOOL=yes 48384 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 48385 fi 48386 if test "x$BDEPS_FTP" = xftp; then 48387 VALID_TOOL=yes 48388 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 48389 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 48390 FTPUSERPWD=${FTPSERVER%%@*} 48391 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 48392 FTPUSER=${userpwd%%:*} 48393 FTPPWD=${userpwd#*@} 48394 FTPSERVER=${FTPSERVER#*@} 48395 else 48396 FTPUSER=ftp 48397 FTPPWD=ftp 48398 fi 48399 # the "pass" command does not work on some 48400 # ftp clients (read ftp.exe) but if it works, 48401 # passive mode is better! 48402 ( \ 48403 echo "user $FTPUSER $FTPPWD" ; \ 48404 echo "pass" ; \ 48405 echo "bin" ; \ 48406 echo "get $FTPPATH $tmpfile" ; \ 48407 ) | ftp -in $FTPSERVER 48408 fi 48409 if test "x$VALID_TOOL" != xyes; then 48410 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 48411 fi 48412 48413 mv $tmpfile $installdir/$filename 48414 if test ! -s $installdir/$filename; then 48415 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 48416 fi 48417 case "$extension" in 48418 zip) echo "Unzipping $installdir/$filename..." 48419 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 48420 ;; 48421 tar.gz) echo "Untaring $installdir/$filename..." 48422 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 48423 ;; 48424 tgz) echo "Untaring $installdir/$filename..." 48425 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 48426 ;; 48427 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 48428 ;; 48429 esac 48430 fi 48431 if test -f $installdir/$filename.unpacked; then 48432 depdir=$installdir 48433 fi 48434 48435 fi 48436 # Source the builddeps file again, because in the previous command, the depdir 48437 # was updated to point at the current build dependency install directory. 48438 . $builddepsfile 48439 # Now extract variables from the builddeps.conf files. 48440 theroot=${builddep_alsa_ROOT} 48441 thecflags=${builddep_alsa_CFLAGS} 48442 thelibs=${builddep_alsa_LIBS} 48443 if test "x$depdir" = x; then 48444 as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5 48445 fi 48446 ALSA=$depdir 48447 if test "x$theroot" != x; then 48448 ALSA="$theroot" 48449 fi 48450 if test "x$thecflags" != x; then 48451 ALSA_CFLAGS="$thecflags" 48452 fi 48453 if test "x$thelibs" != x; then 48454 ALSA_LIBS="$thelibs" 48455 fi 48456 ALSA_FOUND=yes 48457 else ALSA_FOUND=no 48458 48459 fi 48460 else ALSA_FOUND=no 48461 48462 fi 48463 48464 fi 48465 # Do not try pkg-config if we have a sysroot set. 48466 if test "x$SYSROOT" = x; then 48467 if test "x$ALSA_FOUND" = xno; then 48468 48469 pkg_failed=no 48470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 48471 $as_echo_n "checking for ALSA... " >&6; } 48472 48473 if test -n "$ALSA_CFLAGS"; then 48474 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 48475 elif test -n "$PKG_CONFIG"; then 48476 if test -n "$PKG_CONFIG" && \ 48477 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 48478 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 48479 ac_status=$? 48480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48481 test $ac_status = 0; }; then 48482 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 48483 else 48484 pkg_failed=yes 48485 fi 48486 else 48487 pkg_failed=untried 48488 fi 48489 if test -n "$ALSA_LIBS"; then 48490 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 48491 elif test -n "$PKG_CONFIG"; then 48492 if test -n "$PKG_CONFIG" && \ 48493 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 48494 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 48495 ac_status=$? 48496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48497 test $ac_status = 0; }; then 48498 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 48499 else 48500 pkg_failed=yes 48501 fi 48502 else 48503 pkg_failed=untried 48504 fi 48505 48506 48507 48508 if test $pkg_failed = yes; then 48509 48510 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 48511 _pkg_short_errors_supported=yes 48512 else 48513 _pkg_short_errors_supported=no 48514 fi 48515 if test $_pkg_short_errors_supported = yes; then 48516 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 48517 else 48518 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 48519 fi 48520 # Put the nasty error message in config.log where it belongs 48521 echo "$ALSA_PKG_ERRORS" >&5 48522 48523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48524 $as_echo "no" >&6; } 48525 ALSA_FOUND=no 48526 elif test $pkg_failed = untried; then 48527 ALSA_FOUND=no 48528 else 48529 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 48530 ALSA_LIBS=$pkg_cv_ALSA_LIBS 48531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48532 $as_echo "yes" >&6; } 48533 ALSA_FOUND=yes 48534 fi 48535 fi 48536 fi 48537 if test "x$ALSA_FOUND" = xno; then 48538 for ac_header in alsa/asoundlib.h 48539 do : 48540 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 48541 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 48542 cat >>confdefs.h <<_ACEOF 48543 #define HAVE_ALSA_ASOUNDLIB_H 1 48544 _ACEOF 48545 48546 ALSA_FOUND=yes 48547 ALSA_CFLAGS=-Iignoreme 48548 ALSA_LIBS=-lasound 48549 DEFAULT_ALSA=yes 48550 48551 else 48552 ALSA_FOUND=no 48553 fi 48554 48555 done 48556 48557 fi 48558 if test "x$ALSA_FOUND" = xno; then 48559 48560 # Print a helpful message on how to acquire the necessary build dependency. 48561 # alsa is the help tag: freetype, cups, pulse, alsa etc 48562 MISSING_DEPENDENCY=alsa 48563 48564 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48565 cygwin_help $MISSING_DEPENDENCY 48566 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48567 msys_help $MISSING_DEPENDENCY 48568 else 48569 PKGHANDLER_COMMAND= 48570 48571 case $PKGHANDLER in 48572 apt-get) 48573 apt_help $MISSING_DEPENDENCY ;; 48574 yum) 48575 yum_help $MISSING_DEPENDENCY ;; 48576 port) 48577 port_help $MISSING_DEPENDENCY ;; 48578 pkgutil) 48579 pkgutil_help $MISSING_DEPENDENCY ;; 48580 pkgadd) 48581 pkgadd_help $MISSING_DEPENDENCY ;; 48582 esac 48583 48584 if test "x$PKGHANDLER_COMMAND" != x; then 48585 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48586 fi 48587 fi 48588 48589 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5 48590 fi 48591 fi 48592 48593 48594 48595 48596 48597 48598 ############################################################################### 48599 # 48600 # Check for the jpeg library 48601 # 48602 48603 48604 # Check whether --with-libjpeg was given. 48605 if test "${with_libjpeg+set}" = set; then : 48606 withval=$with_libjpeg; 48607 fi 48608 48609 48610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 48611 $as_echo_n "checking for which libjpeg to use... " >&6; } 48612 48613 # default is bundled 48614 DEFAULT_LIBJPEG=bundled 48615 48616 # 48617 # if user didn't specify, use DEFAULT_LIBJPEG 48618 # 48619 if test "x${with_libjpeg}" = "x"; then 48620 with_libjpeg=${DEFAULT_LIBJPEG} 48621 fi 48622 48623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 48624 $as_echo "${with_libjpeg}" >&6; } 48625 48626 if test "x${with_libjpeg}" = "xbundled"; then 48627 USE_EXTERNAL_LIBJPEG=false 48628 elif test "x${with_libjpeg}" = "xsystem"; then 48629 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 48630 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 48631 48632 else 48633 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 48634 fi 48635 48636 48637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 48638 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 48639 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 48640 $as_echo_n "(cached) " >&6 48641 else 48642 ac_check_lib_save_LIBS=$LIBS 48643 LIBS="-ljpeg $LIBS" 48644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48645 /* end confdefs.h. */ 48646 48647 /* Override any GCC internal prototype to avoid an error. 48648 Use char because int might match the return type of a GCC 48649 builtin and then its argument prototype would still apply. */ 48650 #ifdef __cplusplus 48651 extern "C" 48652 #endif 48653 char jpeg_CreateDecompress (); 48654 int 48655 main () 48656 { 48657 return jpeg_CreateDecompress (); 48658 ; 48659 return 0; 48660 } 48661 _ACEOF 48662 if ac_fn_cxx_try_link "$LINENO"; then : 48663 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 48664 else 48665 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 48666 fi 48667 rm -f core conftest.err conftest.$ac_objext \ 48668 conftest$ac_exeext conftest.$ac_ext 48669 LIBS=$ac_check_lib_save_LIBS 48670 fi 48671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 48672 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 48673 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 48674 cat >>confdefs.h <<_ACEOF 48675 #define HAVE_LIBJPEG 1 48676 _ACEOF 48677 48678 LIBS="-ljpeg $LIBS" 48679 48680 else 48681 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 48682 fi 48683 48684 48685 USE_EXTERNAL_LIBJPEG=true 48686 else 48687 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 48688 fi 48689 48690 48691 48692 ############################################################################### 48693 # 48694 # Check for the gif library 48695 # 48696 48697 48698 # Check whether --with-giflib was given. 48699 if test "${with_giflib+set}" = set; then : 48700 withval=$with_giflib; 48701 fi 48702 48703 48704 48705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 48706 $as_echo_n "checking for which giflib to use... " >&6; } 48707 48708 # default is bundled 48709 DEFAULT_GIFLIB=bundled 48710 48711 # 48712 # if user didn't specify, use DEFAULT_GIFLIB 48713 # 48714 if test "x${with_giflib}" = "x"; then 48715 with_giflib=${DEFAULT_GIFLIB} 48716 fi 48717 48718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 48719 $as_echo "${with_giflib}" >&6; } 48720 48721 if test "x${with_giflib}" = "xbundled"; then 48722 USE_EXTERNAL_LIBGIF=false 48723 elif test "x${with_giflib}" = "xsystem"; then 48724 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 48725 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 48726 48727 else 48728 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 48729 fi 48730 48731 48732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 48733 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 48734 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 48735 $as_echo_n "(cached) " >&6 48736 else 48737 ac_check_lib_save_LIBS=$LIBS 48738 LIBS="-lgif $LIBS" 48739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48740 /* end confdefs.h. */ 48741 48742 /* Override any GCC internal prototype to avoid an error. 48743 Use char because int might match the return type of a GCC 48744 builtin and then its argument prototype would still apply. */ 48745 #ifdef __cplusplus 48746 extern "C" 48747 #endif 48748 char DGifGetCode (); 48749 int 48750 main () 48751 { 48752 return DGifGetCode (); 48753 ; 48754 return 0; 48755 } 48756 _ACEOF 48757 if ac_fn_cxx_try_link "$LINENO"; then : 48758 ac_cv_lib_gif_DGifGetCode=yes 48759 else 48760 ac_cv_lib_gif_DGifGetCode=no 48761 fi 48762 rm -f core conftest.err conftest.$ac_objext \ 48763 conftest$ac_exeext conftest.$ac_ext 48764 LIBS=$ac_check_lib_save_LIBS 48765 fi 48766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 48767 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 48768 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 48769 cat >>confdefs.h <<_ACEOF 48770 #define HAVE_LIBGIF 1 48771 _ACEOF 48772 48773 LIBS="-lgif $LIBS" 48774 48775 else 48776 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 48777 fi 48778 48779 48780 USE_EXTERNAL_LIBGIF=true 48781 else 48782 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 48783 fi 48784 48785 48786 ############################################################################### 48787 # 48788 # Check for the lcms2 library 48789 # 48790 48791 48792 # Check whether --with-lcms was given. 48793 if test "${with_lcms+set}" = set; then : 48794 withval=$with_lcms; 48795 fi 48796 48797 48798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 48799 $as_echo_n "checking for which lcms to use... " >&6; } 48800 48801 DEFAULT_LCMS=bundled 48802 48803 # 48804 # If user didn't specify, use DEFAULT_LCMS 48805 # 48806 if test "x${with_lcms}" = "x"; then 48807 with_lcms=${DEFAULT_LCMS} 48808 fi 48809 48810 if test "x${with_lcms}" = "xbundled"; then 48811 USE_EXTERNAL_LCMS=false 48812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 48813 $as_echo "bundled" >&6; } 48814 elif test "x${with_lcms}" = "xsystem"; then 48815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 48816 $as_echo "system" >&6; } 48817 48818 pkg_failed=no 48819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 48820 $as_echo_n "checking for LCMS... " >&6; } 48821 48822 if test -n "$LCMS_CFLAGS"; then 48823 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 48824 elif test -n "$PKG_CONFIG"; then 48825 if test -n "$PKG_CONFIG" && \ 48826 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 48827 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 48828 ac_status=$? 48829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48830 test $ac_status = 0; }; then 48831 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 48832 else 48833 pkg_failed=yes 48834 fi 48835 else 48836 pkg_failed=untried 48837 fi 48838 if test -n "$LCMS_LIBS"; then 48839 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 48840 elif test -n "$PKG_CONFIG"; then 48841 if test -n "$PKG_CONFIG" && \ 48842 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 48843 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 48844 ac_status=$? 48845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48846 test $ac_status = 0; }; then 48847 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 48848 else 48849 pkg_failed=yes 48850 fi 48851 else 48852 pkg_failed=untried 48853 fi 48854 48855 48856 48857 if test $pkg_failed = yes; then 48858 48859 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 48860 _pkg_short_errors_supported=yes 48861 else 48862 _pkg_short_errors_supported=no 48863 fi 48864 if test $_pkg_short_errors_supported = yes; then 48865 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 48866 else 48867 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 48868 fi 48869 # Put the nasty error message in config.log where it belongs 48870 echo "$LCMS_PKG_ERRORS" >&5 48871 48872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48873 $as_echo "no" >&6; } 48874 LCMS_FOUND=no 48875 elif test $pkg_failed = untried; then 48876 LCMS_FOUND=no 48877 else 48878 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 48879 LCMS_LIBS=$pkg_cv_LCMS_LIBS 48880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48881 $as_echo "yes" >&6; } 48882 LCMS_FOUND=yes 48883 fi 48884 if test "x${LCMS_FOUND}" = "xyes"; then 48885 USE_EXTERNAL_LCMS=true 48886 else 48887 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 48888 fi 48889 else 48890 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 48891 fi 48892 48893 48894 48895 ############################################################################### 48896 # 48897 # Check for the png library 48898 # 48899 48900 48901 # Check whether --with-libpng was given. 48902 if test "${with_libpng+set}" = set; then : 48903 withval=$with_libpng; 48904 fi 48905 48906 48907 48908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 48909 $as_echo_n "checking for which libpng to use... " >&6; } 48910 48911 # default is bundled 48912 DEFAULT_LIBPNG=bundled 48913 48914 # 48915 # if user didn't specify, use DEFAULT_LIBPNG 48916 # 48917 if test "x${with_libpng}" = "x"; then 48918 with_libpng=${DEFAULT_LIBPNG} 48919 fi 48920 48921 if test "x${with_libpng}" = "xbundled"; then 48922 USE_EXTERNAL_LIBPNG=false 48923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 48924 $as_echo "bundled" >&6; } 48925 elif test "x${with_libpng}" = "xsystem"; then 48926 48927 pkg_failed=no 48928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 48929 $as_echo_n "checking for PNG... " >&6; } 48930 48931 if test -n "$PNG_CFLAGS"; then 48932 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 48933 elif test -n "$PKG_CONFIG"; then 48934 if test -n "$PKG_CONFIG" && \ 48935 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 48936 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 48937 ac_status=$? 48938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48939 test $ac_status = 0; }; then 48940 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 48941 else 48942 pkg_failed=yes 48943 fi 48944 else 48945 pkg_failed=untried 48946 fi 48947 if test -n "$PNG_LIBS"; then 48948 pkg_cv_PNG_LIBS="$PNG_LIBS" 48949 elif test -n "$PKG_CONFIG"; then 48950 if test -n "$PKG_CONFIG" && \ 48951 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 48952 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 48953 ac_status=$? 48954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48955 test $ac_status = 0; }; then 48956 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 48957 else 48958 pkg_failed=yes 48959 fi 48960 else 48961 pkg_failed=untried 48962 fi 48963 48964 48965 48966 if test $pkg_failed = yes; then 48967 48968 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 48969 _pkg_short_errors_supported=yes 48970 else 48971 _pkg_short_errors_supported=no 48972 fi 48973 if test $_pkg_short_errors_supported = yes; then 48974 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 48975 else 48976 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 48977 fi 48978 # Put the nasty error message in config.log where it belongs 48979 echo "$PNG_PKG_ERRORS" >&5 48980 48981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48982 $as_echo "no" >&6; } 48983 LIBPNG_FOUND=no 48984 elif test $pkg_failed = untried; then 48985 LIBPNG_FOUND=no 48986 else 48987 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 48988 PNG_LIBS=$pkg_cv_PNG_LIBS 48989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48990 $as_echo "yes" >&6; } 48991 LIBPNG_FOUND=yes 48992 fi 48993 if test "x${LIBPNG_FOUND}" = "xyes"; then 48994 USE_EXTERNAL_LIBPNG=true 48995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 48996 $as_echo "system" >&6; } 48997 else 48998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 48999 $as_echo "system not found" >&6; } 49000 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 49001 fi 49002 else 49003 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 49004 fi 49005 49006 49007 ############################################################################### 49008 # 49009 # Check for the zlib library 49010 # 49011 49012 49013 # Check whether --with-zlib was given. 49014 if test "${with_zlib+set}" = set; then : 49015 withval=$with_zlib; 49016 fi 49017 49018 49019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 49020 $as_echo_n "checking for compress in -lz... " >&6; } 49021 if ${ac_cv_lib_z_compress+:} false; then : 49022 $as_echo_n "(cached) " >&6 49023 else 49024 ac_check_lib_save_LIBS=$LIBS 49025 LIBS="-lz $LIBS" 49026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49027 /* end confdefs.h. */ 49028 49029 /* Override any GCC internal prototype to avoid an error. 49030 Use char because int might match the return type of a GCC 49031 builtin and then its argument prototype would still apply. */ 49032 #ifdef __cplusplus 49033 extern "C" 49034 #endif 49035 char compress (); 49036 int 49037 main () 49038 { 49039 return compress (); 49040 ; 49041 return 0; 49042 } 49043 _ACEOF 49044 if ac_fn_cxx_try_link "$LINENO"; then : 49045 ac_cv_lib_z_compress=yes 49046 else 49047 ac_cv_lib_z_compress=no 49048 fi 49049 rm -f core conftest.err conftest.$ac_objext \ 49050 conftest$ac_exeext conftest.$ac_ext 49051 LIBS=$ac_check_lib_save_LIBS 49052 fi 49053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 49054 $as_echo "$ac_cv_lib_z_compress" >&6; } 49055 if test "x$ac_cv_lib_z_compress" = xyes; then : 49056 ZLIB_FOUND=yes 49057 else 49058 ZLIB_FOUND=no 49059 fi 49060 49061 49062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 49063 $as_echo_n "checking for which zlib to use... " >&6; } 49064 49065 DEFAULT_ZLIB=bundled 49066 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49067 # 49068 # On macosx default is system...on others default is 49069 # 49070 DEFAULT_ZLIB=system 49071 fi 49072 49073 if test "x${ZLIB_FOUND}" != "xyes"; then 49074 # 49075 # If we don't find any system...set default to bundled 49076 # 49077 DEFAULT_ZLIB=bundled 49078 fi 49079 49080 # 49081 # If user didn't specify, use DEFAULT_ZLIB 49082 # 49083 if test "x${with_zlib}" = "x"; then 49084 with_zlib=${DEFAULT_ZLIB} 49085 fi 49086 49087 if test "x${with_zlib}" = "xbundled"; then 49088 USE_EXTERNAL_LIBZ=false 49089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 49090 $as_echo "bundled" >&6; } 49091 elif test "x${with_zlib}" = "xsystem"; then 49092 if test "x${ZLIB_FOUND}" = "xyes"; then 49093 USE_EXTERNAL_LIBZ=true 49094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 49095 $as_echo "system" >&6; } 49096 else 49097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 49098 $as_echo "system not found" >&6; } 49099 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 49100 fi 49101 else 49102 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 49103 fi 49104 49105 49106 49107 ############################################################################### 49108 LIBZIP_CAN_USE_MMAP=true 49109 49110 49111 49112 ############################################################################### 49113 # 49114 # Check if altzone exists in time.h 49115 # 49116 49117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49118 /* end confdefs.h. */ 49119 #include <time.h> 49120 int 49121 main () 49122 { 49123 return (int)altzone; 49124 ; 49125 return 0; 49126 } 49127 _ACEOF 49128 if ac_fn_cxx_try_link "$LINENO"; then : 49129 has_altzone=yes 49130 else 49131 has_altzone=no 49132 fi 49133 rm -f core conftest.err conftest.$ac_objext \ 49134 conftest$ac_exeext conftest.$ac_ext 49135 if test "x$has_altzone" = xyes; then 49136 49137 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 49138 49139 fi 49140 49141 ############################################################################### 49142 # 49143 # Check the maths library 49144 # 49145 49146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 49147 $as_echo_n "checking for cos in -lm... " >&6; } 49148 if ${ac_cv_lib_m_cos+:} false; then : 49149 $as_echo_n "(cached) " >&6 49150 else 49151 ac_check_lib_save_LIBS=$LIBS 49152 LIBS="-lm $LIBS" 49153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49154 /* end confdefs.h. */ 49155 49156 /* Override any GCC internal prototype to avoid an error. 49157 Use char because int might match the return type of a GCC 49158 builtin and then its argument prototype would still apply. */ 49159 #ifdef __cplusplus 49160 extern "C" 49161 #endif 49162 char cos (); 49163 int 49164 main () 49165 { 49166 return cos (); 49167 ; 49168 return 0; 49169 } 49170 _ACEOF 49171 if ac_fn_cxx_try_link "$LINENO"; then : 49172 ac_cv_lib_m_cos=yes 49173 else 49174 ac_cv_lib_m_cos=no 49175 fi 49176 rm -f core conftest.err conftest.$ac_objext \ 49177 conftest$ac_exeext conftest.$ac_ext 49178 LIBS=$ac_check_lib_save_LIBS 49179 fi 49180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 49181 $as_echo "$ac_cv_lib_m_cos" >&6; } 49182 if test "x$ac_cv_lib_m_cos" = xyes; then : 49183 cat >>confdefs.h <<_ACEOF 49184 #define HAVE_LIBM 1 49185 _ACEOF 49186 49187 LIBS="-lm $LIBS" 49188 49189 else 49190 49191 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 49192 $as_echo "$as_me: Maths library was not found" >&6;} 49193 49194 49195 fi 49196 49197 49198 49199 ############################################################################### 49200 # 49201 # Check for libdl.so 49202 49203 save_LIBS="$LIBS" 49204 LIBS="" 49205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 49206 $as_echo_n "checking for dlopen in -ldl... " >&6; } 49207 if ${ac_cv_lib_dl_dlopen+:} false; then : 49208 $as_echo_n "(cached) " >&6 49209 else 49210 ac_check_lib_save_LIBS=$LIBS 49211 LIBS="-ldl $LIBS" 49212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49213 /* end confdefs.h. */ 49214 49215 /* Override any GCC internal prototype to avoid an error. 49216 Use char because int might match the return type of a GCC 49217 builtin and then its argument prototype would still apply. */ 49218 #ifdef __cplusplus 49219 extern "C" 49220 #endif 49221 char dlopen (); 49222 int 49223 main () 49224 { 49225 return dlopen (); 49226 ; 49227 return 0; 49228 } 49229 _ACEOF 49230 if ac_fn_cxx_try_link "$LINENO"; then : 49231 ac_cv_lib_dl_dlopen=yes 49232 else 49233 ac_cv_lib_dl_dlopen=no 49234 fi 49235 rm -f core conftest.err conftest.$ac_objext \ 49236 conftest$ac_exeext conftest.$ac_ext 49237 LIBS=$ac_check_lib_save_LIBS 49238 fi 49239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 49240 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 49241 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 49242 cat >>confdefs.h <<_ACEOF 49243 #define HAVE_LIBDL 1 49244 _ACEOF 49245 49246 LIBS="-ldl $LIBS" 49247 49248 fi 49249 49250 LIBDL="$LIBS" 49251 49252 LIBS="$save_LIBS" 49253 49254 49255 ############################################################################### 49256 # 49257 # statically link libstdc++ before C++ ABI is stablized on Linux unless 49258 # dynamic build is configured on command line. 49259 # 49260 49261 # Check whether --with-stdc++lib was given. 49262 if test "${with_stdc__lib+set}" = set; then : 49263 withval=$with_stdc__lib; 49264 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 49265 && test "x$with_stdc__lib" != xdefault; then 49266 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 49267 fi 49268 49269 else 49270 with_stdc__lib=default 49271 49272 fi 49273 49274 49275 if test "x$OPENJDK_TARGET_OS" = xlinux; then 49276 # Test if -lstdc++ works. 49277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 49278 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 49279 ac_ext=cpp 49280 ac_cpp='$CXXCPP $CPPFLAGS' 49281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49284 49285 OLD_CXXFLAGS="$CXXFLAGS" 49286 CXXFLAGS="$CXXFLAGS -lstdc++" 49287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49288 /* end confdefs.h. */ 49289 49290 int 49291 main () 49292 { 49293 return 0; 49294 ; 49295 return 0; 49296 } 49297 _ACEOF 49298 if ac_fn_cxx_try_link "$LINENO"; then : 49299 has_dynamic_libstdcxx=yes 49300 else 49301 has_dynamic_libstdcxx=no 49302 fi 49303 rm -f core conftest.err conftest.$ac_objext \ 49304 conftest$ac_exeext conftest.$ac_ext 49305 CXXFLAGS="$OLD_CXXFLAGS" 49306 ac_ext=cpp 49307 ac_cpp='$CXXCPP $CPPFLAGS' 49308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49311 49312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 49313 $as_echo "$has_dynamic_libstdcxx" >&6; } 49314 49315 # Test if stdc++ can be linked statically. 49316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 49317 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 49318 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 49319 ac_ext=cpp 49320 ac_cpp='$CXXCPP $CPPFLAGS' 49321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49324 49325 OLD_LIBS="$LIBS" 49326 OLD_CXX="$CXX" 49327 LIBS="$STATIC_STDCXX_FLAGS" 49328 CXX="$CC" 49329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49330 /* end confdefs.h. */ 49331 49332 int 49333 main () 49334 { 49335 return 0; 49336 ; 49337 return 0; 49338 } 49339 _ACEOF 49340 if ac_fn_cxx_try_link "$LINENO"; then : 49341 has_static_libstdcxx=yes 49342 else 49343 has_static_libstdcxx=no 49344 fi 49345 rm -f core conftest.err conftest.$ac_objext \ 49346 conftest$ac_exeext conftest.$ac_ext 49347 LIBS="$OLD_LIBS" 49348 CXX="$OLD_CXX" 49349 ac_ext=cpp 49350 ac_cpp='$CXXCPP $CPPFLAGS' 49351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49354 49355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 49356 $as_echo "$has_static_libstdcxx" >&6; } 49357 49358 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 49359 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 49360 fi 49361 49362 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 49363 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 49364 fi 49365 49366 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 49367 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 49368 fi 49369 49370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 49371 $as_echo_n "checking how to link with libstdc++... " >&6; } 49372 # If dynamic was requested, it's available since it would fail above otherwise. 49373 # If dynamic wasn't requested, go with static unless it isn't available. 49374 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49375 LIBCXX="$LIBCXX -lstdc++" 49376 LDCXX="$CXX" 49377 STATIC_CXX_SETTING="STATIC_CXX=false" 49378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 49379 $as_echo "dynamic" >&6; } 49380 else 49381 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 49382 LDCXX="$CC" 49383 STATIC_CXX_SETTING="STATIC_CXX=true" 49384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 49385 $as_echo "static" >&6; } 49386 fi 49387 fi 49388 49389 49390 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49391 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 49392 49393 pkg_failed=no 49394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 49395 $as_echo_n "checking for LIBFFI... " >&6; } 49396 49397 if test -n "$LIBFFI_CFLAGS"; then 49398 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 49399 elif test -n "$PKG_CONFIG"; then 49400 if test -n "$PKG_CONFIG" && \ 49401 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 49402 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 49403 ac_status=$? 49404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49405 test $ac_status = 0; }; then 49406 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 49407 else 49408 pkg_failed=yes 49409 fi 49410 else 49411 pkg_failed=untried 49412 fi 49413 if test -n "$LIBFFI_LIBS"; then 49414 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 49415 elif test -n "$PKG_CONFIG"; then 49416 if test -n "$PKG_CONFIG" && \ 49417 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 49418 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 49419 ac_status=$? 49420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49421 test $ac_status = 0; }; then 49422 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 49423 else 49424 pkg_failed=yes 49425 fi 49426 else 49427 pkg_failed=untried 49428 fi 49429 49430 49431 49432 if test $pkg_failed = yes; then 49433 49434 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 49435 _pkg_short_errors_supported=yes 49436 else 49437 _pkg_short_errors_supported=no 49438 fi 49439 if test $_pkg_short_errors_supported = yes; then 49440 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 49441 else 49442 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 49443 fi 49444 # Put the nasty error message in config.log where it belongs 49445 echo "$LIBFFI_PKG_ERRORS" >&5 49446 49447 as_fn_error $? "Package requirements (libffi) were not met: 49448 49449 $LIBFFI_PKG_ERRORS 49450 49451 Consider adjusting the PKG_CONFIG_PATH environment variable if you 49452 installed software in a non-standard prefix. 49453 49454 Alternatively, you may set the environment variables LIBFFI_CFLAGS 49455 and LIBFFI_LIBS to avoid the need to call pkg-config. 49456 See the pkg-config man page for more details. 49457 " "$LINENO" 5 49458 elif test $pkg_failed = untried; then 49459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 49460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 49461 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 49462 is in your PATH or set the PKG_CONFIG environment variable to the full 49463 path to pkg-config. 49464 49465 Alternatively, you may set the environment variables LIBFFI_CFLAGS 49466 and LIBFFI_LIBS to avoid the need to call pkg-config. 49467 See the pkg-config man page for more details. 49468 49469 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 49470 See \`config.log' for more details" "$LINENO" 5; } 49471 else 49472 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 49473 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 49474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49475 $as_echo "yes" >&6; } 49476 : 49477 fi 49478 49479 fi 49480 49481 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49482 # Extract the first word of "llvm-config", so it can be a program name with args. 49483 set dummy llvm-config; ac_word=$2 49484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49485 $as_echo_n "checking for $ac_word... " >&6; } 49486 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 49487 $as_echo_n "(cached) " >&6 49488 else 49489 if test -n "$LLVM_CONFIG"; then 49490 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 49491 else 49492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49493 for as_dir in $PATH 49494 do 49495 IFS=$as_save_IFS 49496 test -z "$as_dir" && as_dir=. 49497 for ac_exec_ext in '' $ac_executable_extensions; do 49498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49499 ac_cv_prog_LLVM_CONFIG="llvm-config" 49500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49501 break 2 49502 fi 49503 done 49504 done 49505 IFS=$as_save_IFS 49506 49507 fi 49508 fi 49509 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 49510 if test -n "$LLVM_CONFIG"; then 49511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 49512 $as_echo "$LLVM_CONFIG" >&6; } 49513 else 49514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49515 $as_echo "no" >&6; } 49516 fi 49517 49518 49519 49520 if test "x$LLVM_CONFIG" != xllvm-config; then 49521 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 49522 fi 49523 49524 llvm_components="jit mcjit engine nativecodegen native" 49525 unset LLVM_CFLAGS 49526 for flag in $("$LLVM_CONFIG" --cxxflags); do 49527 if echo "${flag}" | grep -q '^-[ID]'; then 49528 if test "${flag}" != "-D_DEBUG" ; then 49529 if test "${LLVM_CFLAGS}" != "" ; then 49530 LLVM_CFLAGS="${LLVM_CFLAGS} " 49531 fi 49532 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 49533 fi 49534 fi 49535 done 49536 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') 49537 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 49538 49539 unset LLVM_LDFLAGS 49540 for flag in $("${LLVM_CONFIG}" --ldflags); do 49541 if echo "${flag}" | grep -q '^-L'; then 49542 if test "${LLVM_LDFLAGS}" != ""; then 49543 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 49544 fi 49545 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 49546 fi 49547 done 49548 49549 unset LLVM_LIBS 49550 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 49551 if echo "${flag}" | grep -q '^-l'; then 49552 if test "${LLVM_LIBS}" != ""; then 49553 LLVM_LIBS="${LLVM_LIBS} " 49554 fi 49555 LLVM_LIBS="${LLVM_LIBS}${flag}" 49556 fi 49557 done 49558 49559 49560 49561 49562 fi 49563 49564 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 49565 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 49566 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 49567 fi 49568 49569 # TODO better (platform agnostic) test 49570 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then 49571 LIBCXX="-lstdc++" 49572 fi 49573 49574 49575 49576 49577 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 49578 49579 49580 # Check whether --with-msvcr-dll was given. 49581 if test "${with_msvcr_dll+set}" = set; then : 49582 withval=$with_msvcr_dll; 49583 fi 49584 49585 49586 if test "x$with_msvcr_dll" != x; then 49587 # If given explicitely by user, do not probe. If not present, fail directly. 49588 49589 POSSIBLE_MSVCR_DLL="$with_msvcr_dll" 49590 METHOD="--with-msvcr-dll" 49591 if test -e "$POSSIBLE_MSVCR_DLL"; then 49592 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49593 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49594 49595 # Need to check if the found msvcr is correct architecture 49596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49597 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49598 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49599 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49600 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49601 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49602 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49603 CORRECT_MSVCR_ARCH="PE32 executable" 49604 else 49605 CORRECT_MSVCR_ARCH="PE32+ executable" 49606 fi 49607 else 49608 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49609 CORRECT_MSVCR_ARCH=386 49610 else 49611 CORRECT_MSVCR_ARCH=x86-64 49612 fi 49613 fi 49614 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49616 $as_echo "ok" >&6; } 49617 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49619 $as_echo_n "checking for msvcr100.dll... " >&6; } 49620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49621 $as_echo "$MSVCR_DLL" >&6; } 49622 else 49623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49624 $as_echo "incorrect, ignoring" >&6; } 49625 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49626 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49627 fi 49628 fi 49629 49630 if test "x$MSVCR_DLL" = x; then 49631 as_fn_error $? "Could not find a proper msvcr100.dll as specified by --with-msvcr-dll" "$LINENO" 5 49632 fi 49633 fi 49634 49635 if test "x$MSVCR_DLL" = x; then 49636 # Probe: Using well-known location from Visual Studio 10.0 49637 if test "x$VCINSTALLDIR" != x; then 49638 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 49639 49640 windows_path="$CYGWIN_VC_INSTALL_DIR" 49641 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49642 unix_path=`$CYGPATH -u "$windows_path"` 49643 CYGWIN_VC_INSTALL_DIR="$unix_path" 49644 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49645 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49646 CYGWIN_VC_INSTALL_DIR="$unix_path" 49647 fi 49648 49649 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49650 POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC100.CRT/msvcr100.dll" 49651 else 49652 POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC100.CRT/msvcr100.dll" 49653 fi 49654 49655 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49656 METHOD="well-known location in VCINSTALLDIR" 49657 if test -e "$POSSIBLE_MSVCR_DLL"; then 49658 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49659 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49660 49661 # Need to check if the found msvcr is correct architecture 49662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49663 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49664 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49665 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49666 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49667 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49668 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49669 CORRECT_MSVCR_ARCH="PE32 executable" 49670 else 49671 CORRECT_MSVCR_ARCH="PE32+ executable" 49672 fi 49673 else 49674 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49675 CORRECT_MSVCR_ARCH=386 49676 else 49677 CORRECT_MSVCR_ARCH=x86-64 49678 fi 49679 fi 49680 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49682 $as_echo "ok" >&6; } 49683 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49685 $as_echo_n "checking for msvcr100.dll... " >&6; } 49686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49687 $as_echo "$MSVCR_DLL" >&6; } 49688 else 49689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49690 $as_echo "incorrect, ignoring" >&6; } 49691 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49692 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49693 fi 49694 fi 49695 49696 fi 49697 fi 49698 49699 if test "x$MSVCR_DLL" = x; then 49700 # Probe: Check in the Boot JDK directory. 49701 POSSIBLE_MSVCR_DLL="$BOOT_JDK/bin/msvcr100.dll" 49702 49703 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49704 METHOD="well-known location in Boot JDK" 49705 if test -e "$POSSIBLE_MSVCR_DLL"; then 49706 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49707 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49708 49709 # Need to check if the found msvcr is correct architecture 49710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49711 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49712 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49713 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49714 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49715 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49716 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49717 CORRECT_MSVCR_ARCH="PE32 executable" 49718 else 49719 CORRECT_MSVCR_ARCH="PE32+ executable" 49720 fi 49721 else 49722 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49723 CORRECT_MSVCR_ARCH=386 49724 else 49725 CORRECT_MSVCR_ARCH=x86-64 49726 fi 49727 fi 49728 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49730 $as_echo "ok" >&6; } 49731 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49733 $as_echo_n "checking for msvcr100.dll... " >&6; } 49734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49735 $as_echo "$MSVCR_DLL" >&6; } 49736 else 49737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49738 $as_echo "incorrect, ignoring" >&6; } 49739 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49740 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49741 fi 49742 fi 49743 49744 fi 49745 49746 if test "x$MSVCR_DLL" = x; then 49747 # Probe: Look in the Windows system32 directory 49748 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 49749 49750 windows_path="$CYGWIN_SYSTEMROOT" 49751 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49752 unix_path=`$CYGPATH -u "$windows_path"` 49753 CYGWIN_SYSTEMROOT="$unix_path" 49754 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49755 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49756 CYGWIN_SYSTEMROOT="$unix_path" 49757 fi 49758 49759 POSSIBLE_MSVCR_DLL="$CYGWIN_SYSTEMROOT/system32/msvcr100.dll" 49760 49761 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49762 METHOD="well-known location in SYSTEMROOT" 49763 if test -e "$POSSIBLE_MSVCR_DLL"; then 49764 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49765 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49766 49767 # Need to check if the found msvcr is correct architecture 49768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49769 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49770 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49771 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49772 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49773 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49774 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49775 CORRECT_MSVCR_ARCH="PE32 executable" 49776 else 49777 CORRECT_MSVCR_ARCH="PE32+ executable" 49778 fi 49779 else 49780 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49781 CORRECT_MSVCR_ARCH=386 49782 else 49783 CORRECT_MSVCR_ARCH=x86-64 49784 fi 49785 fi 49786 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49788 $as_echo "ok" >&6; } 49789 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49791 $as_echo_n "checking for msvcr100.dll... " >&6; } 49792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49793 $as_echo "$MSVCR_DLL" >&6; } 49794 else 49795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49796 $as_echo "incorrect, ignoring" >&6; } 49797 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49798 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49799 fi 49800 fi 49801 49802 fi 49803 49804 if test "x$MSVCR_DLL" = x; then 49805 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 49806 if test "x$VS100COMNTOOLS" != x; then 49807 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 49808 49809 windows_path="$CYGWIN_VS_TOOLS_DIR" 49810 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49811 unix_path=`$CYGPATH -u "$windows_path"` 49812 CYGWIN_VS_TOOLS_DIR="$unix_path" 49813 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49814 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49815 CYGWIN_VS_TOOLS_DIR="$unix_path" 49816 fi 49817 49818 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49819 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x64/ | $HEAD --lines 1` 49820 else 49821 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x86/ | $HEAD --lines 1` 49822 fi 49823 49824 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49825 METHOD="search of VS100COMNTOOLS" 49826 if test -e "$POSSIBLE_MSVCR_DLL"; then 49827 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49828 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49829 49830 # Need to check if the found msvcr is correct architecture 49831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49832 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49833 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49834 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49835 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49836 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49837 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49838 CORRECT_MSVCR_ARCH="PE32 executable" 49839 else 49840 CORRECT_MSVCR_ARCH="PE32+ executable" 49841 fi 49842 else 49843 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49844 CORRECT_MSVCR_ARCH=386 49845 else 49846 CORRECT_MSVCR_ARCH=x86-64 49847 fi 49848 fi 49849 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49851 $as_echo "ok" >&6; } 49852 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49854 $as_echo_n "checking for msvcr100.dll... " >&6; } 49855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49856 $as_echo "$MSVCR_DLL" >&6; } 49857 else 49858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49859 $as_echo "incorrect, ignoring" >&6; } 49860 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49861 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49862 fi 49863 fi 49864 49865 fi 49866 fi 49867 49868 if test "x$MSVCR_DLL" = x; then 49869 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 49870 # (This was the original behaviour; kept since it might turn up something) 49871 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 49872 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49873 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x64 | $HEAD --lines 1` 49874 else 49875 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 49876 if test "x$POSSIBLE_MSVCR_DLL" = x; then 49877 # We're grasping at straws now... 49878 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $HEAD --lines 1` 49879 fi 49880 fi 49881 49882 49883 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49884 METHOD="search of VCINSTALLDIR" 49885 if test -e "$POSSIBLE_MSVCR_DLL"; then 49886 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49887 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49888 49889 # Need to check if the found msvcr is correct architecture 49890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49891 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49892 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49893 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49894 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49895 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49896 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49897 CORRECT_MSVCR_ARCH="PE32 executable" 49898 else 49899 CORRECT_MSVCR_ARCH="PE32+ executable" 49900 fi 49901 else 49902 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49903 CORRECT_MSVCR_ARCH=386 49904 else 49905 CORRECT_MSVCR_ARCH=x86-64 49906 fi 49907 fi 49908 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49910 $as_echo "ok" >&6; } 49911 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49913 $as_echo_n "checking for msvcr100.dll... " >&6; } 49914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49915 $as_echo "$MSVCR_DLL" >&6; } 49916 else 49917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49918 $as_echo "incorrect, ignoring" >&6; } 49919 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49920 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49921 fi 49922 fi 49923 49924 fi 49925 fi 49926 49927 if test "x$MSVCR_DLL" = x; then 49928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49929 $as_echo_n "checking for msvcr100.dll... " >&6; } 49930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49931 $as_echo "no" >&6; } 49932 as_fn_error $? "Could not find msvcr100.dll. Please specify using --with-msvcr-dll." "$LINENO" 5 49933 fi 49934 49935 49936 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49937 49938 # Input might be given as Windows format, start by converting to 49939 # unix format. 49940 path="$MSVCR_DLL" 49941 new_path=`$CYGPATH -u "$path"` 49942 49943 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49944 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49945 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49946 # "foo.exe" is OK but "foo" is an error. 49947 # 49948 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49949 # It is also a way to make sure we got the proper file name for the real test later on. 49950 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49951 if test "x$test_shortpath" = x; then 49952 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 49953 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 49954 as_fn_error $? "Cannot locate the the path of MSVCR_DLL" "$LINENO" 5 49955 fi 49956 49957 # Call helper function which possibly converts this using DOS-style short mode. 49958 # If so, the updated path is stored in $new_path. 49959 49960 input_path="$new_path" 49961 # Check if we need to convert this using DOS-style short mode. If the path 49962 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49963 # take no chances and rewrite it. 49964 # Note: m4 eats our [], so we need to use [ and ] instead. 49965 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49966 if test "x$has_forbidden_chars" != x; then 49967 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49968 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49969 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49970 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49971 # Going to short mode and back again did indeed matter. Since short mode is 49972 # case insensitive, let's make it lowercase to improve readability. 49973 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49974 # Now convert it back to Unix-stile (cygpath) 49975 input_path=`$CYGPATH -u "$shortmode_path"` 49976 new_path="$input_path" 49977 fi 49978 fi 49979 49980 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49981 if test "x$test_cygdrive_prefix" = x; then 49982 # As a simple fix, exclude /usr/bin since it's not a real path. 49983 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49984 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49985 # a path prefixed by /cygdrive for fixpath to work. 49986 new_path="$CYGWIN_ROOT_PATH$input_path" 49987 fi 49988 fi 49989 49990 49991 if test "x$path" != "x$new_path"; then 49992 MSVCR_DLL="$new_path" 49993 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 49994 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 49995 fi 49996 49997 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49998 49999 path="$MSVCR_DLL" 50000 has_colon=`$ECHO $path | $GREP ^.:` 50001 new_path="$path" 50002 if test "x$has_colon" = x; then 50003 # Not in mixed or Windows style, start by that. 50004 new_path=`cmd //c echo $path` 50005 fi 50006 50007 50008 input_path="$new_path" 50009 # Check if we need to convert this using DOS-style short mode. If the path 50010 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50011 # take no chances and rewrite it. 50012 # Note: m4 eats our [], so we need to use [ and ] instead. 50013 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50014 if test "x$has_forbidden_chars" != x; then 50015 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50016 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50017 fi 50018 50019 50020 windows_path="$new_path" 50021 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50022 unix_path=`$CYGPATH -u "$windows_path"` 50023 new_path="$unix_path" 50024 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50025 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50026 new_path="$unix_path" 50027 fi 50028 50029 if test "x$path" != "x$new_path"; then 50030 MSVCR_DLL="$new_path" 50031 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 50032 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 50033 fi 50034 50035 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50036 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50037 50038 else 50039 # We're on a posix platform. Hooray! :) 50040 path="$MSVCR_DLL" 50041 has_space=`$ECHO "$path" | $GREP " "` 50042 if test "x$has_space" != x; then 50043 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 50044 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 50045 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50046 fi 50047 50048 # Use eval to expand a potential ~ 50049 eval path="$path" 50050 if test ! -f "$path" && test ! -d "$path"; then 50051 as_fn_error $? "The path of MSVCR_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50052 fi 50053 50054 MSVCR_DLL="`cd "$path"; $THEPWDCMD -L`" 50055 fi 50056 50057 50058 50059 50060 # Check whether --with-dxsdk was given. 50061 if test "${with_dxsdk+set}" = set; then : 50062 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 50063 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 50064 fi 50065 50066 50067 50068 50069 # Check whether --with-dxsdk-lib was given. 50070 if test "${with_dxsdk_lib+set}" = set; then : 50071 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 50072 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 50073 fi 50074 50075 50076 50077 50078 # Check whether --with-dxsdk-include was given. 50079 if test "${with_dxsdk_include+set}" = set; then : 50080 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 50081 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 50082 fi 50083 50084 50085 fi 50086 50087 50088 50089 ############################################################################### 50090 # 50091 # We need to do some final tweaking, when everything else is done. 50092 # 50093 ############################################################################### 50094 50095 50096 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 50097 50098 50099 # The name of the Service Agent jar. 50100 SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}" 50101 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 50102 SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}" 50103 fi 50104 50105 50106 50107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 50108 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 50109 50110 if test -d "${SRC_ROOT}/jdk/src/jdk.crypto.ec/share/native/libsunec/impl"; then 50111 ENABLE_INTREE_EC=yes 50112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50113 $as_echo "yes" >&6; } 50114 else 50115 ENABLE_INTREE_EC=no 50116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50117 $as_echo "no" >&6; } 50118 fi 50119 50120 50121 50122 50123 ############################################################################### 50124 # 50125 # Configure parts of the build that only affect the build performance, 50126 # not the result. 50127 # 50128 ############################################################################### 50129 50130 50131 # How many cores do we have on this build system? 50132 50133 # Check whether --with-num-cores was given. 50134 if test "${with_num_cores+set}" = set; then : 50135 withval=$with_num_cores; 50136 fi 50137 50138 if test "x$with_num_cores" = x; then 50139 # The number of cores were not specified, try to probe them. 50140 50141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 50142 $as_echo_n "checking for number of cores... " >&6; } 50143 NUM_CORES=1 50144 FOUND_CORES=no 50145 50146 if test -f /proc/cpuinfo; then 50147 # Looks like a Linux (or cygwin) system 50148 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 50149 FOUND_CORES=yes 50150 elif test -x /usr/sbin/psrinfo; then 50151 # Looks like a Solaris system 50152 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 50153 FOUND_CORES=yes 50154 elif test -x /usr/sbin/system_profiler; then 50155 # Looks like a MacOSX system 50156 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` 50157 FOUND_CORES=yes 50158 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 50159 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 50160 FOUND_CORES=yes 50161 elif test -n "$NUMBER_OF_PROCESSORS"; then 50162 # On windows, look in the env 50163 NUM_CORES=$NUMBER_OF_PROCESSORS 50164 FOUND_CORES=yes 50165 fi 50166 50167 if test "x$FOUND_CORES" = xyes; then 50168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 50169 $as_echo "$NUM_CORES" >&6; } 50170 else 50171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 50172 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 50173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 50174 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 50175 fi 50176 50177 else 50178 NUM_CORES=$with_num_cores 50179 fi 50180 50181 50182 50183 # How much memory do we have on this build system? 50184 50185 # Check whether --with-memory-size was given. 50186 if test "${with_memory_size+set}" = set; then : 50187 withval=$with_memory_size; 50188 fi 50189 50190 if test "x$with_memory_size" = x; then 50191 # The memory size was not specified, try to probe it. 50192 50193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 50194 $as_echo_n "checking for memory size... " >&6; } 50195 # Default to 1024 MB 50196 MEMORY_SIZE=1024 50197 FOUND_MEM=no 50198 50199 if test -f /proc/meminfo; then 50200 # Looks like a Linux (or cygwin) system 50201 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 50202 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 50203 FOUND_MEM=yes 50204 elif test -x /usr/sbin/prtconf; then 50205 # Looks like a Solaris or AIX system 50206 MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 50207 FOUND_MEM=yes 50208 elif test -x /usr/sbin/system_profiler; then 50209 # Looks like a MacOSX system 50210 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'` 50211 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` 50212 FOUND_MEM=yes 50213 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 50214 # Windows, but without cygwin 50215 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 50216 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 50217 FOUND_MEM=yes 50218 fi 50219 50220 if test "x$FOUND_MEM" = xyes; then 50221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 50222 $as_echo "$MEMORY_SIZE MB" >&6; } 50223 else 50224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 50225 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 50226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 50227 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 50228 fi 50229 50230 else 50231 MEMORY_SIZE=$with_memory_size 50232 fi 50233 50234 50235 50236 # Provide a decent default number of parallel jobs for make depending on 50237 # number of cores, amount of memory and machine architecture. 50238 50239 # Check whether --with-jobs was given. 50240 if test "${with_jobs+set}" = set; then : 50241 withval=$with_jobs; 50242 fi 50243 50244 if test "x$with_jobs" = x; then 50245 # Number of jobs was not specified, calculate. 50246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 50247 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 50248 # Approximate memory in GB. 50249 memory_gb=`expr $MEMORY_SIZE / 1024` 50250 # Pick the lowest of memory in gb and number of cores. 50251 if test "$memory_gb" -lt "$NUM_CORES"; then 50252 JOBS="$memory_gb" 50253 else 50254 JOBS="$NUM_CORES" 50255 # On bigger machines, leave some room for other processes to run 50256 if test "$JOBS" -gt "4"; then 50257 JOBS=`expr $JOBS '*' 90 / 100` 50258 fi 50259 fi 50260 # Cap number of jobs to 16 50261 if test "$JOBS" -gt "16"; then 50262 JOBS=16 50263 fi 50264 if test "$JOBS" -eq "0"; then 50265 JOBS=1 50266 fi 50267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 50268 $as_echo "$JOBS" >&6; } 50269 else 50270 JOBS=$with_jobs 50271 fi 50272 50273 50274 50275 # Setup arguments for the boot jdk (after cores and memory have been setup) 50276 50277 ############################################################################## 50278 # 50279 # Specify jvm options for anything that is run with the Boot JDK. 50280 # Not all JVM:s accept the same arguments on the command line. 50281 # 50282 50283 # Check whether --with-boot-jdk-jvmargs was given. 50284 if test "${with_boot_jdk_jvmargs+set}" = set; then : 50285 withval=$with_boot_jdk_jvmargs; 50286 fi 50287 50288 50289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 50290 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 50291 50292 # Disable special log output when a debug build is used as Boot JDK... 50293 50294 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 50295 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 50296 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 50297 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50298 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50299 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50300 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 50301 JVM_ARG_OK=true 50302 else 50303 $ECHO "Arg failed:" >&5 50304 $ECHO "$OUTPUT" >&5 50305 JVM_ARG_OK=false 50306 fi 50307 50308 50309 # Apply user provided options. 50310 50311 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 50312 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 50313 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 50314 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50315 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50316 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50317 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 50318 JVM_ARG_OK=true 50319 else 50320 $ECHO "Arg failed:" >&5 50321 $ECHO "$OUTPUT" >&5 50322 JVM_ARG_OK=false 50323 fi 50324 50325 50326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 50327 $as_echo "$boot_jdk_jvmargs" >&6; } 50328 50329 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 50330 JAVA_FLAGS=$boot_jdk_jvmargs 50331 50332 50333 50334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 50335 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 50336 50337 # Starting amount of heap memory. 50338 50339 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 50340 $ECHO "Command: $JAVA -Xms64M -version" >&5 50341 OUTPUT=`$JAVA -Xms64M -version 2>&1` 50342 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50343 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50344 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50345 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 50346 JVM_ARG_OK=true 50347 else 50348 $ECHO "Arg failed:" >&5 50349 $ECHO "$OUTPUT" >&5 50350 JVM_ARG_OK=false 50351 fi 50352 50353 50354 # Maximum amount of heap memory. 50355 # Maximum stack size. 50356 JVM_MAX_HEAP=`expr $MEMORY_SIZE / 2` 50357 if test "x$BUILD_NUM_BITS" = x32; then 50358 if test "$JVM_MAX_HEAP" -gt "1100"; then 50359 JVM_MAX_HEAP=1100 50360 elif test "$JVM_MAX_HEAP" -lt "512"; then 50361 JVM_MAX_HEAP=512 50362 fi 50363 STACK_SIZE=768 50364 else 50365 # Running Javac on a JVM on a 64-bit machine, takes more space since 64-bit 50366 # pointers are used. Apparently, we need to increase the heap and stack 50367 # space for the jvm. More specifically, when running javac to build huge 50368 # jdk batch 50369 if test "$JVM_MAX_HEAP" -gt "1600"; then 50370 JVM_MAX_HEAP=1600 50371 elif test "$JVM_MAX_HEAP" -lt "512"; then 50372 JVM_MAX_HEAP=512 50373 fi 50374 STACK_SIZE=1536 50375 fi 50376 50377 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 50378 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 50379 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 50380 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50381 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50382 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50383 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 50384 JVM_ARG_OK=true 50385 else 50386 $ECHO "Arg failed:" >&5 50387 $ECHO "$OUTPUT" >&5 50388 JVM_ARG_OK=false 50389 fi 50390 50391 50392 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 50393 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 50394 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 50395 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50396 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50397 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50398 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 50399 JVM_ARG_OK=true 50400 else 50401 $ECHO "Arg failed:" >&5 50402 $ECHO "$OUTPUT" >&5 50403 JVM_ARG_OK=false 50404 fi 50405 50406 50407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 50408 $as_echo "$boot_jdk_jvmargs_big" >&6; } 50409 50410 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 50411 50412 50413 50414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 50415 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 50416 50417 # Use serial gc for small short lived tools if possible 50418 50419 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 50420 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 50421 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 50422 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50423 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50424 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50425 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 50426 JVM_ARG_OK=true 50427 else 50428 $ECHO "Arg failed:" >&5 50429 $ECHO "$OUTPUT" >&5 50430 JVM_ARG_OK=false 50431 fi 50432 50433 50434 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 50435 $ECHO "Command: $JAVA -Xms32M -version" >&5 50436 OUTPUT=`$JAVA -Xms32M -version 2>&1` 50437 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50438 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50439 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50440 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 50441 JVM_ARG_OK=true 50442 else 50443 $ECHO "Arg failed:" >&5 50444 $ECHO "$OUTPUT" >&5 50445 JVM_ARG_OK=false 50446 fi 50447 50448 50449 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 50450 $ECHO "Command: $JAVA -Xmx512M -version" >&5 50451 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 50452 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50453 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50454 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50455 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 50456 JVM_ARG_OK=true 50457 else 50458 $ECHO "Arg failed:" >&5 50459 $ECHO "$OUTPUT" >&5 50460 JVM_ARG_OK=false 50461 fi 50462 50463 50464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 50465 $as_echo "$boot_jdk_jvmargs_small" >&6; } 50466 50467 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 50468 50469 50470 JAVA_TOOL_FLAGS_SMALL="" 50471 for f in $JAVA_FLAGS_SMALL; do 50472 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 50473 done 50474 50475 50476 50477 # Setup smart javac (after cores and memory have been setup) 50478 50479 50480 # Check whether --with-sjavac-server-java was given. 50481 if test "${with_sjavac_server_java+set}" = set; then : 50482 withval=$with_sjavac_server_java; 50483 fi 50484 50485 50486 if test "x$with_sjavac_server_java" != x; then 50487 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 50488 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 50489 if test "x$FOUND_VERSION" = x; then 50490 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 50491 fi 50492 else 50493 SJAVAC_SERVER_JAVA="$JAVA" 50494 fi 50495 50496 50497 if test "$MEMORY_SIZE" -gt "3000"; then 50498 50499 $ECHO "Check if jvm arg is ok: -d64" >&5 50500 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 50501 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 50502 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50503 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50504 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50505 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -d64" 50506 JVM_ARG_OK=true 50507 else 50508 $ECHO "Arg failed:" >&5 50509 $ECHO "$OUTPUT" >&5 50510 JVM_ARG_OK=false 50511 fi 50512 50513 if test "$JVM_ARG_OK" = true; then 50514 JVM_64BIT=true 50515 JVM_ARG_OK=false 50516 fi 50517 fi 50518 50519 MX_VALUE=`expr $MEMORY_SIZE / 2` 50520 if test "$JVM_64BIT" = true; then 50521 # Set ms lower than mx since more than one instance of the server might 50522 # get launched at the same time before they figure out which instance won. 50523 MS_VALUE=512 50524 if test "$MX_VALUE" -gt "2048"; then 50525 MX_VALUE=2048 50526 fi 50527 else 50528 MS_VALUE=256 50529 if test "$MX_VALUE" -gt "1500"; then 50530 MX_VALUE=1500 50531 fi 50532 fi 50533 if test "$MX_VALUE" -lt "512"; then 50534 MX_VALUE=512 50535 fi 50536 50537 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 50538 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 50539 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 50540 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50541 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50542 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50543 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 50544 JVM_ARG_OK=true 50545 else 50546 $ECHO "Arg failed:" >&5 50547 $ECHO "$OUTPUT" >&5 50548 JVM_ARG_OK=false 50549 fi 50550 50551 50552 50553 # Check whether --enable-sjavac was given. 50554 if test "${enable_sjavac+set}" = set; then : 50555 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 50556 else 50557 ENABLE_SJAVAC='no' 50558 fi 50559 50560 if test "x$JVM_ARG_OK" = "xfalse"; then 50561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 50562 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 50563 ENABLE_SJAVAC=no; 50564 fi 50565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 50566 $as_echo_n "checking whether to use sjavac... " >&6; } 50567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 50568 $as_echo "$ENABLE_SJAVAC" >&6; } 50569 50570 50571 if test "x$ENABLE_SJAVAC" = xyes; then 50572 SJAVAC_SERVER_DIR="$OUTPUT_ROOT/javacservers" 50573 else 50574 SJAVAC_SERVER_DIR= 50575 fi 50576 50577 50578 50579 # Can the C/C++ compiler use precompiled headers? 50580 50581 50582 ############################################################################### 50583 # 50584 # Can the C/C++ compiler use precompiled headers? 50585 # 50586 # Check whether --enable-precompiled-headers was given. 50587 if test "${enable_precompiled_headers+set}" = set; then : 50588 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 50589 else 50590 ENABLE_PRECOMPH=yes 50591 fi 50592 50593 50594 USE_PRECOMPILED_HEADER=1 50595 if test "x$ENABLE_PRECOMPH" = xno; then 50596 USE_PRECOMPILED_HEADER=0 50597 fi 50598 50599 if test "x$ENABLE_PRECOMPH" = xyes; then 50600 # Check that the compiler actually supports precomp headers. 50601 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 50603 $as_echo_n "checking that precompiled headers work... " >&6; } 50604 echo "int alfa();" > conftest.h 50605 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 50606 if test ! -f conftest.hpp.gch; then 50607 USE_PRECOMPILED_HEADER=0 50608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50609 $as_echo "no" >&6; } 50610 else 50611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50612 $as_echo "yes" >&6; } 50613 fi 50614 rm -f conftest.h conftest.hpp.gch 50615 fi 50616 fi 50617 50618 50619 50620 50621 # Setup use of ccache, if available 50622 50623 # Check whether --enable-ccache was given. 50624 if test "${enable_ccache+set}" = set; then : 50625 enableval=$enable_ccache; 50626 fi 50627 50628 50629 CCACHE= 50630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 50631 $as_echo_n "checking is ccache enabled... " >&6; } 50632 ENABLE_CCACHE=$enable_ccache 50633 if test "x$enable_ccache" = xyes; then 50634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50635 $as_echo "yes" >&6; } 50636 OLD_PATH="$PATH" 50637 if test "x$TOOLCHAIN_PATH" != x; then 50638 PATH=$TOOLCHAIN_PATH:$PATH 50639 fi 50640 50641 50642 50643 # Publish this variable in the help. 50644 50645 50646 if test "x$CCACHE" = x; then 50647 # The variable is not set by user, try to locate tool using the code snippet 50648 for ac_prog in ccache 50649 do 50650 # Extract the first word of "$ac_prog", so it can be a program name with args. 50651 set dummy $ac_prog; ac_word=$2 50652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 50653 $as_echo_n "checking for $ac_word... " >&6; } 50654 if ${ac_cv_path_CCACHE+:} false; then : 50655 $as_echo_n "(cached) " >&6 50656 else 50657 case $CCACHE in 50658 [\\/]* | ?:[\\/]*) 50659 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 50660 ;; 50661 *) 50662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 50663 for as_dir in $PATH 50664 do 50665 IFS=$as_save_IFS 50666 test -z "$as_dir" && as_dir=. 50667 for ac_exec_ext in '' $ac_executable_extensions; do 50668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 50669 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 50670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 50671 break 2 50672 fi 50673 done 50674 done 50675 IFS=$as_save_IFS 50676 50677 ;; 50678 esac 50679 fi 50680 CCACHE=$ac_cv_path_CCACHE 50681 if test -n "$CCACHE"; then 50682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 50683 $as_echo "$CCACHE" >&6; } 50684 else 50685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50686 $as_echo "no" >&6; } 50687 fi 50688 50689 50690 test -n "$CCACHE" && break 50691 done 50692 50693 else 50694 # The variable is set, but is it from the command line or the environment? 50695 50696 # Try to remove the string !CCACHE! from our list. 50697 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 50698 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 50699 # If it failed, the variable was not from the command line. Ignore it, 50700 # but warn the user (except for BASH, which is always set by the calling BASH). 50701 if test "xCCACHE" != xBASH; then 50702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 50703 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 50704 fi 50705 # Try to locate tool using the code snippet 50706 for ac_prog in ccache 50707 do 50708 # Extract the first word of "$ac_prog", so it can be a program name with args. 50709 set dummy $ac_prog; ac_word=$2 50710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 50711 $as_echo_n "checking for $ac_word... " >&6; } 50712 if ${ac_cv_path_CCACHE+:} false; then : 50713 $as_echo_n "(cached) " >&6 50714 else 50715 case $CCACHE in 50716 [\\/]* | ?:[\\/]*) 50717 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 50718 ;; 50719 *) 50720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 50721 for as_dir in $PATH 50722 do 50723 IFS=$as_save_IFS 50724 test -z "$as_dir" && as_dir=. 50725 for ac_exec_ext in '' $ac_executable_extensions; do 50726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 50727 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 50728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 50729 break 2 50730 fi 50731 done 50732 done 50733 IFS=$as_save_IFS 50734 50735 ;; 50736 esac 50737 fi 50738 CCACHE=$ac_cv_path_CCACHE 50739 if test -n "$CCACHE"; then 50740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 50741 $as_echo "$CCACHE" >&6; } 50742 else 50743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50744 $as_echo "no" >&6; } 50745 fi 50746 50747 50748 test -n "$CCACHE" && break 50749 done 50750 50751 else 50752 # If it succeeded, then it was overridden by the user. We will use it 50753 # for the tool. 50754 50755 # First remove it from the list of overridden variables, so we can test 50756 # for unknown variables in the end. 50757 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 50758 50759 # Check if the provided tool contains a complete path. 50760 tool_specified="$CCACHE" 50761 tool_basename="${tool_specified##*/}" 50762 if test "x$tool_basename" = "x$tool_specified"; then 50763 # A command without a complete path is provided, search $PATH. 50764 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 50765 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 50766 # Extract the first word of "$tool_basename", so it can be a program name with args. 50767 set dummy $tool_basename; ac_word=$2 50768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 50769 $as_echo_n "checking for $ac_word... " >&6; } 50770 if ${ac_cv_path_CCACHE+:} false; then : 50771 $as_echo_n "(cached) " >&6 50772 else 50773 case $CCACHE in 50774 [\\/]* | ?:[\\/]*) 50775 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 50776 ;; 50777 *) 50778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 50779 for as_dir in $PATH 50780 do 50781 IFS=$as_save_IFS 50782 test -z "$as_dir" && as_dir=. 50783 for ac_exec_ext in '' $ac_executable_extensions; do 50784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 50785 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 50786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 50787 break 2 50788 fi 50789 done 50790 done 50791 IFS=$as_save_IFS 50792 50793 ;; 50794 esac 50795 fi 50796 CCACHE=$ac_cv_path_CCACHE 50797 if test -n "$CCACHE"; then 50798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 50799 $as_echo "$CCACHE" >&6; } 50800 else 50801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50802 $as_echo "no" >&6; } 50803 fi 50804 50805 50806 if test "x$CCACHE" = x; then 50807 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 50808 fi 50809 else 50810 # Otherwise we believe it is a complete path. Use it as it is. 50811 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 50812 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 50813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 50814 $as_echo_n "checking for CCACHE... " >&6; } 50815 if test ! -x "$tool_specified"; then 50816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 50817 $as_echo "not found" >&6; } 50818 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 50819 fi 50820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 50821 $as_echo "$tool_specified" >&6; } 50822 fi 50823 fi 50824 fi 50825 50826 50827 50828 if test "x$CCACHE" = x; then 50829 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 50830 fi 50831 50832 50833 CCACHE_STATUS="enabled" 50834 PATH="$OLD_PATH" 50835 elif test "x$enable_ccache" = xno; then 50836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 50837 $as_echo "no, explicitly disabled" >&6; } 50838 elif test "x$enable_ccache" = x; then 50839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50840 $as_echo "no" >&6; } 50841 else 50842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 50843 $as_echo "unknown" >&6; } 50844 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 50845 fi 50846 50847 50848 50849 # Check whether --with-ccache-dir was given. 50850 if test "${with_ccache_dir+set}" = set; then : 50851 withval=$with_ccache_dir; 50852 fi 50853 50854 50855 if test "x$with_ccache_dir" != x; then 50856 # When using a non home ccache directory, assume the use is to share ccache files 50857 # with other users. Thus change the umask. 50858 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 50859 if test "x$CCACHE" = x; then 50860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 50861 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 50862 fi 50863 fi 50864 50865 if test "x$CCACHE" != x; then 50866 50867 if test "x$CCACHE" != x; then 50868 # Only use ccache if it is 3.1.4 or later, which supports 50869 # precompiled headers. 50870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5 50871 $as_echo_n "checking if ccache supports precompiled headers... " >&6; } 50872 HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null` 50873 if test "x$HAS_GOOD_CCACHE" = x; then 50874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5 50875 $as_echo "no, disabling ccache" >&6; } 50876 CCACHE= 50877 CCACHE_STATUS="disabled" 50878 else 50879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50880 $as_echo "yes" >&6; } 50881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 50882 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 50883 PUSHED_FLAGS="$CXXFLAGS" 50884 CXXFLAGS="-fpch-preprocess $CXXFLAGS" 50885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50886 /* end confdefs.h. */ 50887 50888 int 50889 main () 50890 { 50891 50892 ; 50893 return 0; 50894 } 50895 _ACEOF 50896 if ac_fn_cxx_try_compile "$LINENO"; then : 50897 CC_KNOWS_CCACHE_TRICK=yes 50898 else 50899 CC_KNOWS_CCACHE_TRICK=no 50900 fi 50901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50902 CXXFLAGS="$PUSHED_FLAGS" 50903 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 50904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50905 $as_echo "yes" >&6; } 50906 else 50907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5 50908 $as_echo "no, disabling ccaching of precompiled headers" >&6; } 50909 CCACHE= 50910 CCACHE_STATUS="disabled" 50911 fi 50912 fi 50913 fi 50914 50915 if test "x$CCACHE" != x; then 50916 CCACHE_SLOPPINESS=time_macros 50917 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE" 50918 CCACHE_FLAGS=-fpch-preprocess 50919 50920 if test "x$SET_CCACHE_DIR" != x; then 50921 mkdir -p $CCACHE_DIR > /dev/null 2>&1 50922 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 50923 fi 50924 fi 50925 50926 fi 50927 50928 50929 ############################################################################### 50930 # 50931 # And now the finish... 50932 # 50933 ############################################################################### 50934 50935 # Check for some common pitfalls 50936 50937 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50938 file_to_test="$SRC_ROOT/LICENSE" 50939 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 50940 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 50941 fi 50942 fi 50943 50944 50945 # Did user specify any unknown variables? 50946 50947 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 50948 # Replace the separating ! with spaces before presenting for end user. 50949 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 50950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 50951 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 50952 fi 50953 50954 50955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 50956 $as_echo_n "checking if build directory is on local disk... " >&6; } 50957 50958 # df -l lists only local disks; if the given directory is not found then 50959 # a non-zero exit code is given 50960 if test "x$DF" = x; then 50961 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50962 # msys does not have df; use Windows "net use" instead. 50963 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 50964 if test "x$IS_NETWORK_DISK" = x; then 50965 OUTPUT_DIR_IS_LOCAL="yes" 50966 else 50967 OUTPUT_DIR_IS_LOCAL="no" 50968 fi 50969 else 50970 # No df here, say it's local 50971 OUTPUT_DIR_IS_LOCAL="yes" 50972 fi 50973 else 50974 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 50975 OUTPUT_DIR_IS_LOCAL="yes" 50976 else 50977 OUTPUT_DIR_IS_LOCAL="no" 50978 fi 50979 fi 50980 50981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 50982 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 50983 50984 50985 50986 # Check if the user has any old-style ALT_ variables set. 50987 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 50988 50989 # Before generating output files, test if they exist. If they do, this is a reconfigure. 50990 # Since we can't properly handle the dependencies for this, warn the user about the situation 50991 if test -e $OUTPUT_ROOT/spec.gmk; then 50992 IS_RECONFIGURE=yes 50993 else 50994 IS_RECONFIGURE=no 50995 fi 50996 50997 50998 # At the end, call the custom hook. (Dummy macro if no custom sources available) 50999 51000 51001 # We're messing a bit with internal autoconf variables to put the config.status 51002 # in the output directory instead of the current directory. 51003 CONFIG_STATUS="$OUTPUT_ROOT/config.status" 51004 51005 # Create the actual output files. Now the main work of configure is done. 51006 cat >confcache <<\_ACEOF 51007 # This file is a shell script that caches the results of configure 51008 # tests run on this system so they can be shared between configure 51009 # scripts and configure runs, see configure's option --config-cache. 51010 # It is not useful on other systems. If it contains results you don't 51011 # want to keep, you may remove or edit it. 51012 # 51013 # config.status only pays attention to the cache file if you give it 51014 # the --recheck option to rerun configure. 51015 # 51016 # `ac_cv_env_foo' variables (set or unset) will be overridden when 51017 # loading this file, other *unset* `ac_cv_foo' will be assigned the 51018 # following values. 51019 51020 _ACEOF 51021 51022 # The following way of writing the cache mishandles newlines in values, 51023 # but we know of no workaround that is simple, portable, and efficient. 51024 # So, we kill variables containing newlines. 51025 # Ultrix sh set writes to stderr and can't be redirected directly, 51026 # and sets the high bit in the cache file unless we assign to the vars. 51027 ( 51028 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 51029 eval ac_val=\$$ac_var 51030 case $ac_val in #( 51031 *${as_nl}*) 51032 case $ac_var in #( 51033 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 51034 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 51035 esac 51036 case $ac_var in #( 51037 _ | IFS | as_nl) ;; #( 51038 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 51039 *) { eval $ac_var=; unset $ac_var;} ;; 51040 esac ;; 51041 esac 51042 done 51043 51044 (set) 2>&1 | 51045 case $as_nl`(ac_space=' '; set) 2>&1` in #( 51046 *${as_nl}ac_space=\ *) 51047 # `set' does not quote correctly, so add quotes: double-quote 51048 # substitution turns \\\\ into \\, and sed turns \\ into \. 51049 sed -n \ 51050 "s/'/'\\\\''/g; 51051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 51052 ;; #( 51053 *) 51054 # `set' quotes correctly as required by POSIX, so do not add quotes. 51055 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 51056 ;; 51057 esac | 51058 sort 51059 ) | 51060 sed ' 51061 /^ac_cv_env_/b end 51062 t clear 51063 :clear 51064 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 51065 t end 51066 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 51067 :end' >>confcache 51068 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 51069 if test -w "$cache_file"; then 51070 if test "x$cache_file" != "x/dev/null"; then 51071 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 51072 $as_echo "$as_me: updating cache $cache_file" >&6;} 51073 if test ! -f "$cache_file" || test -h "$cache_file"; then 51074 cat confcache >"$cache_file" 51075 else 51076 case $cache_file in #( 51077 */* | ?:*) 51078 mv -f confcache "$cache_file"$$ && 51079 mv -f "$cache_file"$$ "$cache_file" ;; #( 51080 *) 51081 mv -f confcache "$cache_file" ;; 51082 esac 51083 fi 51084 fi 51085 else 51086 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 51087 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 51088 fi 51089 fi 51090 rm -f confcache 51091 51092 test "x$prefix" = xNONE && prefix=$ac_default_prefix 51093 # Let make expand exec_prefix. 51094 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 51095 51096 DEFS=-DHAVE_CONFIG_H 51097 51098 ac_libobjs= 51099 ac_ltlibobjs= 51100 U= 51101 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 51102 # 1. Remove the extension, and $U if already installed. 51103 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 51104 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 51105 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 51106 # will be set to the directory where LIBOBJS objects are built. 51107 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 51108 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 51109 done 51110 LIBOBJS=$ac_libobjs 51111 51112 LTLIBOBJS=$ac_ltlibobjs 51113 51114 51115 51116 : "${CONFIG_STATUS=./config.status}" 51117 ac_write_fail=0 51118 ac_clean_files_save=$ac_clean_files 51119 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 51120 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 51121 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 51122 as_write_fail=0 51123 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 51124 #! $SHELL 51125 # Generated by $as_me. 51126 # Run this file to recreate the current configuration. 51127 # Compiler output produced by configure, useful for debugging 51128 # configure, is in config.log if it exists. 51129 51130 debug=false 51131 ac_cs_recheck=false 51132 ac_cs_silent=false 51133 51134 SHELL=\${CONFIG_SHELL-$SHELL} 51135 export SHELL 51136 _ASEOF 51137 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 51138 ## -------------------- ## 51139 ## M4sh Initialization. ## 51140 ## -------------------- ## 51141 51142 # Be more Bourne compatible 51143 DUALCASE=1; export DUALCASE # for MKS sh 51144 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 51145 emulate sh 51146 NULLCMD=: 51147 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 51148 # is contrary to our usage. Disable this feature. 51149 alias -g '${1+"$@"}'='"$@"' 51150 setopt NO_GLOB_SUBST 51151 else 51152 case `(set -o) 2>/dev/null` in #( 51153 *posix*) : 51154 set -o posix ;; #( 51155 *) : 51156 ;; 51157 esac 51158 fi 51159 51160 51161 as_nl=' 51162 ' 51163 export as_nl 51164 # Printing a long string crashes Solaris 7 /usr/bin/printf. 51165 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 51166 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 51167 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 51168 # Prefer a ksh shell builtin over an external printf program on Solaris, 51169 # but without wasting forks for bash or zsh. 51170 if test -z "$BASH_VERSION$ZSH_VERSION" \ 51171 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 51172 as_echo='print -r --' 51173 as_echo_n='print -rn --' 51174 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 51175 as_echo='printf %s\n' 51176 as_echo_n='printf %s' 51177 else 51178 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 51179 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 51180 as_echo_n='/usr/ucb/echo -n' 51181 else 51182 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 51183 as_echo_n_body='eval 51184 arg=$1; 51185 case $arg in #( 51186 *"$as_nl"*) 51187 expr "X$arg" : "X\\(.*\\)$as_nl"; 51188 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 51189 esac; 51190 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 51191 ' 51192 export as_echo_n_body 51193 as_echo_n='sh -c $as_echo_n_body as_echo' 51194 fi 51195 export as_echo_body 51196 as_echo='sh -c $as_echo_body as_echo' 51197 fi 51198 51199 # The user is always right. 51200 if test "${PATH_SEPARATOR+set}" != set; then 51201 PATH_SEPARATOR=: 51202 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 51203 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 51204 PATH_SEPARATOR=';' 51205 } 51206 fi 51207 51208 51209 # IFS 51210 # We need space, tab and new line, in precisely that order. Quoting is 51211 # there to prevent editors from complaining about space-tab. 51212 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 51213 # splitting by setting IFS to empty value.) 51214 IFS=" "" $as_nl" 51215 51216 # Find who we are. Look in the path if we contain no directory separator. 51217 as_myself= 51218 case $0 in #(( 51219 *[\\/]* ) as_myself=$0 ;; 51220 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 51221 for as_dir in $PATH 51222 do 51223 IFS=$as_save_IFS 51224 test -z "$as_dir" && as_dir=. 51225 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 51226 done 51227 IFS=$as_save_IFS 51228 51229 ;; 51230 esac 51231 # We did not find ourselves, most probably we were run as `sh COMMAND' 51232 # in which case we are not to be found in the path. 51233 if test "x$as_myself" = x; then 51234 as_myself=$0 51235 fi 51236 if test ! -f "$as_myself"; then 51237 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 51238 exit 1 51239 fi 51240 51241 # Unset variables that we do not need and which cause bugs (e.g. in 51242 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 51243 # suppresses any "Segmentation fault" message there. '((' could 51244 # trigger a bug in pdksh 5.2.14. 51245 for as_var in BASH_ENV ENV MAIL MAILPATH 51246 do eval test x\${$as_var+set} = xset \ 51247 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 51248 done 51249 PS1='$ ' 51250 PS2='> ' 51251 PS4='+ ' 51252 51253 # NLS nuisances. 51254 LC_ALL=C 51255 export LC_ALL 51256 LANGUAGE=C 51257 export LANGUAGE 51258 51259 # CDPATH. 51260 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 51261 51262 51263 # as_fn_error STATUS ERROR [LINENO LOG_FD] 51264 # ---------------------------------------- 51265 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 51266 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 51267 # script with STATUS, using 1 if that was 0. 51268 as_fn_error () 51269 { 51270 as_status=$1; test $as_status -eq 0 && as_status=1 51271 if test "$4"; then 51272 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 51273 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 51274 fi 51275 $as_echo "$as_me: error: $2" >&2 51276 as_fn_exit $as_status 51277 } # as_fn_error 51278 51279 51280 # as_fn_set_status STATUS 51281 # ----------------------- 51282 # Set $? to STATUS, without forking. 51283 as_fn_set_status () 51284 { 51285 return $1 51286 } # as_fn_set_status 51287 51288 # as_fn_exit STATUS 51289 # ----------------- 51290 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 51291 as_fn_exit () 51292 { 51293 set +e 51294 as_fn_set_status $1 51295 exit $1 51296 } # as_fn_exit 51297 51298 # as_fn_unset VAR 51299 # --------------- 51300 # Portably unset VAR. 51301 as_fn_unset () 51302 { 51303 { eval $1=; unset $1;} 51304 } 51305 as_unset=as_fn_unset 51306 # as_fn_append VAR VALUE 51307 # ---------------------- 51308 # Append the text in VALUE to the end of the definition contained in VAR. Take 51309 # advantage of any shell optimizations that allow amortized linear growth over 51310 # repeated appends, instead of the typical quadratic growth present in naive 51311 # implementations. 51312 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 51313 eval 'as_fn_append () 51314 { 51315 eval $1+=\$2 51316 }' 51317 else 51318 as_fn_append () 51319 { 51320 eval $1=\$$1\$2 51321 } 51322 fi # as_fn_append 51323 51324 # as_fn_arith ARG... 51325 # ------------------ 51326 # Perform arithmetic evaluation on the ARGs, and store the result in the 51327 # global $as_val. Take advantage of shells that can avoid forks. The arguments 51328 # must be portable across $(()) and expr. 51329 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 51330 eval 'as_fn_arith () 51331 { 51332 as_val=$(( $* )) 51333 }' 51334 else 51335 as_fn_arith () 51336 { 51337 as_val=`expr "$@" || test $? -eq 1` 51338 } 51339 fi # as_fn_arith 51340 51341 51342 if expr a : '\(a\)' >/dev/null 2>&1 && 51343 test "X`expr 00001 : '.*\(...\)'`" = X001; then 51344 as_expr=expr 51345 else 51346 as_expr=false 51347 fi 51348 51349 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 51350 as_basename=basename 51351 else 51352 as_basename=false 51353 fi 51354 51355 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 51356 as_dirname=dirname 51357 else 51358 as_dirname=false 51359 fi 51360 51361 as_me=`$as_basename -- "$0" || 51362 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 51363 X"$0" : 'X\(//\)$' \| \ 51364 X"$0" : 'X\(/\)' \| . 2>/dev/null || 51365 $as_echo X/"$0" | 51366 sed '/^.*\/\([^/][^/]*\)\/*$/{ 51367 s//\1/ 51368 q 51369 } 51370 /^X\/\(\/\/\)$/{ 51371 s//\1/ 51372 q 51373 } 51374 /^X\/\(\/\).*/{ 51375 s//\1/ 51376 q 51377 } 51378 s/.*/./; q'` 51379 51380 # Avoid depending upon Character Ranges. 51381 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 51382 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 51383 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 51384 as_cr_digits='0123456789' 51385 as_cr_alnum=$as_cr_Letters$as_cr_digits 51386 51387 ECHO_C= ECHO_N= ECHO_T= 51388 case `echo -n x` in #((((( 51389 -n*) 51390 case `echo 'xy\c'` in 51391 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 51392 xy) ECHO_C='\c';; 51393 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 51394 ECHO_T=' ';; 51395 esac;; 51396 *) 51397 ECHO_N='-n';; 51398 esac 51399 51400 rm -f conf$$ conf$$.exe conf$$.file 51401 if test -d conf$$.dir; then 51402 rm -f conf$$.dir/conf$$.file 51403 else 51404 rm -f conf$$.dir 51405 mkdir conf$$.dir 2>/dev/null 51406 fi 51407 if (echo >conf$$.file) 2>/dev/null; then 51408 if ln -s conf$$.file conf$$ 2>/dev/null; then 51409 as_ln_s='ln -s' 51410 # ... but there are two gotchas: 51411 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 51412 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 51413 # In both cases, we have to default to `cp -pR'. 51414 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 51415 as_ln_s='cp -pR' 51416 elif ln conf$$.file conf$$ 2>/dev/null; then 51417 as_ln_s=ln 51418 else 51419 as_ln_s='cp -pR' 51420 fi 51421 else 51422 as_ln_s='cp -pR' 51423 fi 51424 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 51425 rmdir conf$$.dir 2>/dev/null 51426 51427 51428 # as_fn_mkdir_p 51429 # ------------- 51430 # Create "$as_dir" as a directory, including parents if necessary. 51431 as_fn_mkdir_p () 51432 { 51433 51434 case $as_dir in #( 51435 -*) as_dir=./$as_dir;; 51436 esac 51437 test -d "$as_dir" || eval $as_mkdir_p || { 51438 as_dirs= 51439 while :; do 51440 case $as_dir in #( 51441 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 51442 *) as_qdir=$as_dir;; 51443 esac 51444 as_dirs="'$as_qdir' $as_dirs" 51445 as_dir=`$as_dirname -- "$as_dir" || 51446 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 51447 X"$as_dir" : 'X\(//\)[^/]' \| \ 51448 X"$as_dir" : 'X\(//\)$' \| \ 51449 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 51450 $as_echo X"$as_dir" | 51451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 51452 s//\1/ 51453 q 51454 } 51455 /^X\(\/\/\)[^/].*/{ 51456 s//\1/ 51457 q 51458 } 51459 /^X\(\/\/\)$/{ 51460 s//\1/ 51461 q 51462 } 51463 /^X\(\/\).*/{ 51464 s//\1/ 51465 q 51466 } 51467 s/.*/./; q'` 51468 test -d "$as_dir" && break 51469 done 51470 test -z "$as_dirs" || eval "mkdir $as_dirs" 51471 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 51472 51473 51474 } # as_fn_mkdir_p 51475 if mkdir -p . 2>/dev/null; then 51476 as_mkdir_p='mkdir -p "$as_dir"' 51477 else 51478 test -d ./-p && rmdir ./-p 51479 as_mkdir_p=false 51480 fi 51481 51482 51483 # as_fn_executable_p FILE 51484 # ----------------------- 51485 # Test if FILE is an executable regular file. 51486 as_fn_executable_p () 51487 { 51488 test -f "$1" && test -x "$1" 51489 } # as_fn_executable_p 51490 as_test_x='test -x' 51491 as_executable_p=as_fn_executable_p 51492 51493 # Sed expression to map a string onto a valid CPP name. 51494 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 51495 51496 # Sed expression to map a string onto a valid variable name. 51497 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 51498 51499 51500 exec 6>&1 51501 ## ----------------------------------- ## 51502 ## Main body of $CONFIG_STATUS script. ## 51503 ## ----------------------------------- ## 51504 _ASEOF 51505 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 51506 51507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51508 # Save the log message, to keep $0 and so on meaningful, and to 51509 # report actual input values of CONFIG_FILES etc. instead of their 51510 # values after options handling. 51511 ac_log=" 51512 This file was extended by OpenJDK $as_me jdk9, which was 51513 generated by GNU Autoconf 2.69. Invocation command line was 51514 51515 CONFIG_FILES = $CONFIG_FILES 51516 CONFIG_HEADERS = $CONFIG_HEADERS 51517 CONFIG_LINKS = $CONFIG_LINKS 51518 CONFIG_COMMANDS = $CONFIG_COMMANDS 51519 $ $0 $@ 51520 51521 on `(hostname || uname -n) 2>/dev/null | sed 1q` 51522 " 51523 51524 _ACEOF 51525 51526 case $ac_config_files in *" 51527 "*) set x $ac_config_files; shift; ac_config_files=$*;; 51528 esac 51529 51530 case $ac_config_headers in *" 51531 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 51532 esac 51533 51534 51535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51536 # Files that config.status was made for. 51537 config_files="$ac_config_files" 51538 config_headers="$ac_config_headers" 51539 51540 _ACEOF 51541 51542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51543 ac_cs_usage="\ 51544 \`$as_me' instantiates files and other configuration actions 51545 from templates according to the current configuration. Unless the files 51546 and actions are specified as TAGs, all are instantiated by default. 51547 51548 Usage: $0 [OPTION]... [TAG]... 51549 51550 -h, --help print this help, then exit 51551 -V, --version print version number and configuration settings, then exit 51552 --config print configuration, then exit 51553 -q, --quiet, --silent 51554 do not print progress messages 51555 -d, --debug don't remove temporary files 51556 --recheck update $as_me by reconfiguring in the same conditions 51557 --file=FILE[:TEMPLATE] 51558 instantiate the configuration file FILE 51559 --header=FILE[:TEMPLATE] 51560 instantiate the configuration header FILE 51561 51562 Configuration files: 51563 $config_files 51564 51565 Configuration headers: 51566 $config_headers 51567 51568 Report bugs to <build-dev@openjdk.java.net>. 51569 OpenJDK home page: <http://openjdk.java.net>." 51570 51571 _ACEOF 51572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51573 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 51574 ac_cs_version="\\ 51575 OpenJDK config.status jdk9 51576 configured by $0, generated by GNU Autoconf 2.69, 51577 with options \\"\$ac_cs_config\\" 51578 51579 Copyright (C) 2012 Free Software Foundation, Inc. 51580 This config.status script is free software; the Free Software Foundation 51581 gives unlimited permission to copy, distribute and modify it." 51582 51583 ac_pwd='$ac_pwd' 51584 srcdir='$srcdir' 51585 AWK='$AWK' 51586 test -n "\$AWK" || AWK=awk 51587 _ACEOF 51588 51589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51590 # The default lists apply if the user does not specify any file. 51591 ac_need_defaults=: 51592 while test $# != 0 51593 do 51594 case $1 in 51595 --*=?*) 51596 ac_option=`expr "X$1" : 'X\([^=]*\)='` 51597 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 51598 ac_shift=: 51599 ;; 51600 --*=) 51601 ac_option=`expr "X$1" : 'X\([^=]*\)='` 51602 ac_optarg= 51603 ac_shift=: 51604 ;; 51605 *) 51606 ac_option=$1 51607 ac_optarg=$2 51608 ac_shift=shift 51609 ;; 51610 esac 51611 51612 case $ac_option in 51613 # Handling of the options. 51614 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 51615 ac_cs_recheck=: ;; 51616 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 51617 $as_echo "$ac_cs_version"; exit ;; 51618 --config | --confi | --conf | --con | --co | --c ) 51619 $as_echo "$ac_cs_config"; exit ;; 51620 --debug | --debu | --deb | --de | --d | -d ) 51621 debug=: ;; 51622 --file | --fil | --fi | --f ) 51623 $ac_shift 51624 case $ac_optarg in 51625 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 51626 '') as_fn_error $? "missing file argument" ;; 51627 esac 51628 as_fn_append CONFIG_FILES " '$ac_optarg'" 51629 ac_need_defaults=false;; 51630 --header | --heade | --head | --hea ) 51631 $ac_shift 51632 case $ac_optarg in 51633 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 51634 esac 51635 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 51636 ac_need_defaults=false;; 51637 --he | --h) 51638 # Conflict between --help and --header 51639 as_fn_error $? "ambiguous option: \`$1' 51640 Try \`$0 --help' for more information.";; 51641 --help | --hel | -h ) 51642 $as_echo "$ac_cs_usage"; exit ;; 51643 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 51644 | -silent | --silent | --silen | --sile | --sil | --si | --s) 51645 ac_cs_silent=: ;; 51646 51647 # This is an error. 51648 -*) as_fn_error $? "unrecognized option: \`$1' 51649 Try \`$0 --help' for more information." ;; 51650 51651 *) as_fn_append ac_config_targets " $1" 51652 ac_need_defaults=false ;; 51653 51654 esac 51655 shift 51656 done 51657 51658 ac_configure_extra_args= 51659 51660 if $ac_cs_silent; then 51661 exec 6>/dev/null 51662 ac_configure_extra_args="$ac_configure_extra_args --silent" 51663 fi 51664 51665 _ACEOF 51666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51667 if \$ac_cs_recheck; then 51668 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 51669 shift 51670 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 51671 CONFIG_SHELL='$SHELL' 51672 export CONFIG_SHELL 51673 exec "\$@" 51674 fi 51675 51676 _ACEOF 51677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51678 exec 5>>config.log 51679 { 51680 echo 51681 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 51682 ## Running $as_me. ## 51683 _ASBOX 51684 $as_echo "$ac_log" 51685 } >&5 51686 51687 _ACEOF 51688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51689 _ACEOF 51690 51691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51692 51693 # Handling of arguments. 51694 for ac_config_target in $ac_config_targets 51695 do 51696 case $ac_config_target in 51697 "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;; 51698 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 51699 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 51700 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 51701 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 51702 "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;; 51703 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 51704 51705 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 51706 esac 51707 done 51708 51709 51710 # If the user did not use the arguments to specify the items to instantiate, 51711 # then the envvar interface is used. Set only those that are not. 51712 # We use the long form for the default assignment because of an extremely 51713 # bizarre bug on SunOS 4.1.3. 51714 if $ac_need_defaults; then 51715 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 51716 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 51717 fi 51718 51719 # Have a temporary directory for convenience. Make it in the build tree 51720 # simply because there is no reason against having it here, and in addition, 51721 # creating and moving files from /tmp can sometimes cause problems. 51722 # Hook for its removal unless debugging. 51723 # Note that there is a small window in which the directory will not be cleaned: 51724 # after its creation but before its name has been assigned to `$tmp'. 51725 $debug || 51726 { 51727 tmp= ac_tmp= 51728 trap 'exit_status=$? 51729 : "${ac_tmp:=$tmp}" 51730 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 51731 ' 0 51732 trap 'as_fn_exit 1' 1 2 13 15 51733 } 51734 # Create a (secure) tmp directory for tmp files. 51735 51736 { 51737 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 51738 test -d "$tmp" 51739 } || 51740 { 51741 tmp=./conf$$-$RANDOM 51742 (umask 077 && mkdir "$tmp") 51743 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 51744 ac_tmp=$tmp 51745 51746 # Set up the scripts for CONFIG_FILES section. 51747 # No need to generate them if there are no CONFIG_FILES. 51748 # This happens for instance with `./config.status config.h'. 51749 if test -n "$CONFIG_FILES"; then 51750 51751 51752 ac_cr=`echo X | tr X '\015'` 51753 # On cygwin, bash can eat \r inside `` if the user requested igncr. 51754 # But we know of no other shell where ac_cr would be empty at this 51755 # point, so we can use a bashism as a fallback. 51756 if test "x$ac_cr" = x; then 51757 eval ac_cr=\$\'\\r\' 51758 fi 51759 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 51760 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 51761 ac_cs_awk_cr='\\r' 51762 else 51763 ac_cs_awk_cr=$ac_cr 51764 fi 51765 51766 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 51767 _ACEOF 51768 51769 51770 { 51771 echo "cat >conf$$subs.awk <<_ACEOF" && 51772 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 51773 echo "_ACEOF" 51774 } >conf$$subs.sh || 51775 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 51776 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 51777 ac_delim='%!_!# ' 51778 for ac_last_try in false false false false false :; do 51779 . ./conf$$subs.sh || 51780 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 51781 51782 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 51783 if test $ac_delim_n = $ac_delim_num; then 51784 break 51785 elif $ac_last_try; then 51786 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 51787 else 51788 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 51789 fi 51790 done 51791 rm -f conf$$subs.sh 51792 51793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51794 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 51795 _ACEOF 51796 sed -n ' 51797 h 51798 s/^/S["/; s/!.*/"]=/ 51799 p 51800 g 51801 s/^[^!]*!// 51802 :repl 51803 t repl 51804 s/'"$ac_delim"'$// 51805 t delim 51806 :nl 51807 h 51808 s/\(.\{148\}\)..*/\1/ 51809 t more1 51810 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 51811 p 51812 n 51813 b repl 51814 :more1 51815 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 51816 p 51817 g 51818 s/.\{148\}// 51819 t nl 51820 :delim 51821 h 51822 s/\(.\{148\}\)..*/\1/ 51823 t more2 51824 s/["\\]/\\&/g; s/^/"/; s/$/"/ 51825 p 51826 b 51827 :more2 51828 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 51829 p 51830 g 51831 s/.\{148\}// 51832 t delim 51833 ' <conf$$subs.awk | sed ' 51834 /^[^""]/{ 51835 N 51836 s/\n// 51837 } 51838 ' >>$CONFIG_STATUS || ac_write_fail=1 51839 rm -f conf$$subs.awk 51840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51841 _ACAWK 51842 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 51843 for (key in S) S_is_set[key] = 1 51844 FS = "" 51845 51846 } 51847 { 51848 line = $ 0 51849 nfields = split(line, field, "@") 51850 substed = 0 51851 len = length(field[1]) 51852 for (i = 2; i < nfields; i++) { 51853 key = field[i] 51854 keylen = length(key) 51855 if (S_is_set[key]) { 51856 value = S[key] 51857 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 51858 len += length(value) + length(field[++i]) 51859 substed = 1 51860 } else 51861 len += 1 + keylen 51862 } 51863 51864 print line 51865 } 51866 51867 _ACAWK 51868 _ACEOF 51869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51870 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 51871 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 51872 else 51873 cat 51874 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 51875 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 51876 _ACEOF 51877 51878 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 51879 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 51880 # trailing colons and then remove the whole line if VPATH becomes empty 51881 # (actually we leave an empty line to preserve line numbers). 51882 if test "x$srcdir" = x.; then 51883 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 51884 h 51885 s/// 51886 s/^/:/ 51887 s/[ ]*$/:/ 51888 s/:\$(srcdir):/:/g 51889 s/:\${srcdir}:/:/g 51890 s/:@srcdir@:/:/g 51891 s/^:*// 51892 s/:*$// 51893 x 51894 s/\(=[ ]*\).*/\1/ 51895 G 51896 s/\n// 51897 s/^[^=]*=[ ]*$// 51898 }' 51899 fi 51900 51901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51902 fi # test -n "$CONFIG_FILES" 51903 51904 # Set up the scripts for CONFIG_HEADERS section. 51905 # No need to generate them if there are no CONFIG_HEADERS. 51906 # This happens for instance with `./config.status Makefile'. 51907 if test -n "$CONFIG_HEADERS"; then 51908 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 51909 BEGIN { 51910 _ACEOF 51911 51912 # Transform confdefs.h into an awk script `defines.awk', embedded as 51913 # here-document in config.status, that substitutes the proper values into 51914 # config.h.in to produce config.h. 51915 51916 # Create a delimiter string that does not exist in confdefs.h, to ease 51917 # handling of long lines. 51918 ac_delim='%!_!# ' 51919 for ac_last_try in false false :; do 51920 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 51921 if test -z "$ac_tt"; then 51922 break 51923 elif $ac_last_try; then 51924 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 51925 else 51926 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 51927 fi 51928 done 51929 51930 # For the awk script, D is an array of macro values keyed by name, 51931 # likewise P contains macro parameters if any. Preserve backslash 51932 # newline sequences. 51933 51934 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 51935 sed -n ' 51936 s/.\{148\}/&'"$ac_delim"'/g 51937 t rset 51938 :rset 51939 s/^[ ]*#[ ]*define[ ][ ]*/ / 51940 t def 51941 d 51942 :def 51943 s/\\$// 51944 t bsnl 51945 s/["\\]/\\&/g 51946 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 51947 D["\1"]=" \3"/p 51948 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 51949 d 51950 :bsnl 51951 s/["\\]/\\&/g 51952 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 51953 D["\1"]=" \3\\\\\\n"\\/p 51954 t cont 51955 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 51956 t cont 51957 d 51958 :cont 51959 n 51960 s/.\{148\}/&'"$ac_delim"'/g 51961 t clear 51962 :clear 51963 s/\\$// 51964 t bsnlc 51965 s/["\\]/\\&/g; s/^/"/; s/$/"/p 51966 d 51967 :bsnlc 51968 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 51969 b cont 51970 ' <confdefs.h | sed ' 51971 s/'"$ac_delim"'/"\\\ 51972 "/g' >>$CONFIG_STATUS || ac_write_fail=1 51973 51974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51975 for (key in D) D_is_set[key] = 1 51976 FS = "" 51977 } 51978 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 51979 line = \$ 0 51980 split(line, arg, " ") 51981 if (arg[1] == "#") { 51982 defundef = arg[2] 51983 mac1 = arg[3] 51984 } else { 51985 defundef = substr(arg[1], 2) 51986 mac1 = arg[2] 51987 } 51988 split(mac1, mac2, "(") #) 51989 macro = mac2[1] 51990 prefix = substr(line, 1, index(line, defundef) - 1) 51991 if (D_is_set[macro]) { 51992 # Preserve the white space surrounding the "#". 51993 print prefix "define", macro P[macro] D[macro] 51994 next 51995 } else { 51996 # Replace #undef with comments. This is necessary, for example, 51997 # in the case of _POSIX_SOURCE, which is predefined and required 51998 # on some systems where configure will not decide to define it. 51999 if (defundef == "undef") { 52000 print "/*", prefix defundef, macro, "*/" 52001 next 52002 } 52003 } 52004 } 52005 { print } 52006 _ACAWK 52007 _ACEOF 52008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52009 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 52010 fi # test -n "$CONFIG_HEADERS" 52011 52012 52013 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 52014 shift 52015 for ac_tag 52016 do 52017 case $ac_tag in 52018 :[FHLC]) ac_mode=$ac_tag; continue;; 52019 esac 52020 case $ac_mode$ac_tag in 52021 :[FHL]*:*);; 52022 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 52023 :[FH]-) ac_tag=-:-;; 52024 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 52025 esac 52026 ac_save_IFS=$IFS 52027 IFS=: 52028 set x $ac_tag 52029 IFS=$ac_save_IFS 52030 shift 52031 ac_file=$1 52032 shift 52033 52034 case $ac_mode in 52035 :L) ac_source=$1;; 52036 :[FH]) 52037 ac_file_inputs= 52038 for ac_f 52039 do 52040 case $ac_f in 52041 -) ac_f="$ac_tmp/stdin";; 52042 *) # Look for the file first in the build tree, then in the source tree 52043 # (if the path is not absolute). The absolute path cannot be DOS-style, 52044 # because $ac_f cannot contain `:'. 52045 test -f "$ac_f" || 52046 case $ac_f in 52047 [\\/$]*) false;; 52048 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 52049 esac || 52050 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 52051 esac 52052 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 52053 as_fn_append ac_file_inputs " '$ac_f'" 52054 done 52055 52056 # Let's still pretend it is `configure' which instantiates (i.e., don't 52057 # use $as_me), people would be surprised to read: 52058 # /* config.h. Generated by config.status. */ 52059 configure_input='Generated from '` 52060 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 52061 `' by configure.' 52062 if test x"$ac_file" != x-; then 52063 configure_input="$ac_file. $configure_input" 52064 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 52065 $as_echo "$as_me: creating $ac_file" >&6;} 52066 fi 52067 # Neutralize special characters interpreted by sed in replacement strings. 52068 case $configure_input in #( 52069 *\&* | *\|* | *\\* ) 52070 ac_sed_conf_input=`$as_echo "$configure_input" | 52071 sed 's/[\\\\&|]/\\\\&/g'`;; #( 52072 *) ac_sed_conf_input=$configure_input;; 52073 esac 52074 52075 case $ac_tag in 52076 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 52077 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 52078 esac 52079 ;; 52080 esac 52081 52082 ac_dir=`$as_dirname -- "$ac_file" || 52083 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 52084 X"$ac_file" : 'X\(//\)[^/]' \| \ 52085 X"$ac_file" : 'X\(//\)$' \| \ 52086 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 52087 $as_echo X"$ac_file" | 52088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 52089 s//\1/ 52090 q 52091 } 52092 /^X\(\/\/\)[^/].*/{ 52093 s//\1/ 52094 q 52095 } 52096 /^X\(\/\/\)$/{ 52097 s//\1/ 52098 q 52099 } 52100 /^X\(\/\).*/{ 52101 s//\1/ 52102 q 52103 } 52104 s/.*/./; q'` 52105 as_dir="$ac_dir"; as_fn_mkdir_p 52106 ac_builddir=. 52107 52108 case "$ac_dir" in 52109 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 52110 *) 52111 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 52112 # A ".." for each directory in $ac_dir_suffix. 52113 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 52114 case $ac_top_builddir_sub in 52115 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 52116 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 52117 esac ;; 52118 esac 52119 ac_abs_top_builddir=$ac_pwd 52120 ac_abs_builddir=$ac_pwd$ac_dir_suffix 52121 # for backward compatibility: 52122 ac_top_builddir=$ac_top_build_prefix 52123 52124 case $srcdir in 52125 .) # We are building in place. 52126 ac_srcdir=. 52127 ac_top_srcdir=$ac_top_builddir_sub 52128 ac_abs_top_srcdir=$ac_pwd ;; 52129 [\\/]* | ?:[\\/]* ) # Absolute name. 52130 ac_srcdir=$srcdir$ac_dir_suffix; 52131 ac_top_srcdir=$srcdir 52132 ac_abs_top_srcdir=$srcdir ;; 52133 *) # Relative name. 52134 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 52135 ac_top_srcdir=$ac_top_build_prefix$srcdir 52136 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 52137 esac 52138 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 52139 52140 52141 case $ac_mode in 52142 :F) 52143 # 52144 # CONFIG_FILE 52145 # 52146 52147 _ACEOF 52148 52149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52150 # If the template does not know about datarootdir, expand it. 52151 # FIXME: This hack should be removed a few years after 2.60. 52152 ac_datarootdir_hack=; ac_datarootdir_seen= 52153 ac_sed_dataroot=' 52154 /datarootdir/ { 52155 p 52156 q 52157 } 52158 /@datadir@/p 52159 /@docdir@/p 52160 /@infodir@/p 52161 /@localedir@/p 52162 /@mandir@/p' 52163 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 52164 *datarootdir*) ac_datarootdir_seen=yes;; 52165 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 52166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 52167 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 52168 _ACEOF 52169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52170 ac_datarootdir_hack=' 52171 s&@datadir@&$datadir&g 52172 s&@docdir@&$docdir&g 52173 s&@infodir@&$infodir&g 52174 s&@localedir@&$localedir&g 52175 s&@mandir@&$mandir&g 52176 s&\\\${datarootdir}&$datarootdir&g' ;; 52177 esac 52178 _ACEOF 52179 52180 # Neutralize VPATH when `$srcdir' = `.'. 52181 # Shell code in configure.ac might set extrasub. 52182 # FIXME: do we really want to maintain this feature? 52183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52184 ac_sed_extra="$ac_vpsub 52185 $extrasub 52186 _ACEOF 52187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52188 :t 52189 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 52190 s|@configure_input@|$ac_sed_conf_input|;t t 52191 s&@top_builddir@&$ac_top_builddir_sub&;t t 52192 s&@top_build_prefix@&$ac_top_build_prefix&;t t 52193 s&@srcdir@&$ac_srcdir&;t t 52194 s&@abs_srcdir@&$ac_abs_srcdir&;t t 52195 s&@top_srcdir@&$ac_top_srcdir&;t t 52196 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 52197 s&@builddir@&$ac_builddir&;t t 52198 s&@abs_builddir@&$ac_abs_builddir&;t t 52199 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 52200 $ac_datarootdir_hack 52201 " 52202 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 52203 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 52204 52205 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 52206 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 52207 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 52208 "$ac_tmp/out"`; test -z "$ac_out"; } && 52209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 52210 which seems to be undefined. Please make sure it is defined" >&5 52211 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 52212 which seems to be undefined. Please make sure it is defined" >&2;} 52213 52214 rm -f "$ac_tmp/stdin" 52215 case $ac_file in 52216 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 52217 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 52218 esac \ 52219 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 52220 ;; 52221 :H) 52222 # 52223 # CONFIG_HEADER 52224 # 52225 if test x"$ac_file" != x-; then 52226 { 52227 $as_echo "/* $configure_input */" \ 52228 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 52229 } >"$ac_tmp/config.h" \ 52230 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 52231 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 52232 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 52233 $as_echo "$as_me: $ac_file is unchanged" >&6;} 52234 else 52235 rm -f "$ac_file" 52236 mv "$ac_tmp/config.h" "$ac_file" \ 52237 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 52238 fi 52239 else 52240 $as_echo "/* $configure_input */" \ 52241 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 52242 || as_fn_error $? "could not create -" "$LINENO" 5 52243 fi 52244 ;; 52245 52246 52247 esac 52248 52249 done # for ac_tag 52250 52251 52252 as_fn_exit 0 52253 _ACEOF 52254 ac_clean_files=$ac_clean_files_save 52255 52256 test $ac_write_fail = 0 || 52257 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 52258 52259 52260 # configure is writing to config.log, and then calls config.status. 52261 # config.status does its own redirection, appending to config.log. 52262 # Unfortunately, on DOS this fails, as config.log is still kept open 52263 # by configure, so config.status won't be able to write to it; its 52264 # output is simply discarded. So we exec the FD to /dev/null, 52265 # effectively closing config.log, so it can be properly (re)opened and 52266 # appended to by config.status. When coming back to configure, we 52267 # need to make the FD available again. 52268 if test "$no_create" != yes; then 52269 ac_cs_success=: 52270 ac_config_status_args= 52271 test "$silent" = yes && 52272 ac_config_status_args="$ac_config_status_args --quiet" 52273 exec 5>/dev/null 52274 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 52275 exec 5>>config.log 52276 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 52277 # would make configure fail if this is the last instruction. 52278 $ac_cs_success || as_fn_exit 1 52279 fi 52280 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 52281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 52282 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 52283 fi 52284 52285 52286 # Try to move the config.log file to the output directory. 52287 if test -e ./config.log; then 52288 $MV -f ./config.log "$OUTPUT_ROOT/config.log" 2> /dev/null 52289 fi 52290 52291 # Make the compare script executable 52292 $CHMOD +x $OUTPUT_ROOT/compare.sh 52293 52294 # Finally output some useful information to the user 52295 52296 # Finally output some useful information to the user 52297 52298 printf "\n" 52299 printf "====================================================\n" 52300 if test "x$no_create" != "xyes"; then 52301 if test "x$IS_RECONFIGURE" != "xyes"; then 52302 printf "A new configuration has been successfully created in\n %s\n" "$OUTPUT_ROOT" 52303 else 52304 printf "The existing configuration has been successfully updated in\n %s\n" "$OUTPUT_ROOT" 52305 fi 52306 else 52307 if test "x$IS_RECONFIGURE" != "xyes"; then 52308 printf "A configuration has been successfully checked but not created\n" 52309 else 52310 printf "The existing configuration has been successfully checked in\n %s\n" "$OUTPUT_ROOT" 52311 fi 52312 fi 52313 if test "x$CONFIGURE_COMMAND_LINE" != x; then 52314 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 52315 else 52316 printf "using default settings.\n" 52317 fi 52318 52319 printf "\n" 52320 printf "Configuration summary:\n" 52321 printf "* Debug level: $DEBUG_LEVEL\n" 52322 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 52323 printf "* JDK variant: $JDK_VARIANT\n" 52324 printf "* JVM variants: $with_jvm_variants\n" 52325 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 52326 52327 printf "\n" 52328 printf "Tools summary:\n" 52329 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 52330 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 52331 fi 52332 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 52333 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)\n" 52334 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 52335 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 52336 52337 printf "\n" 52338 printf "Build performance summary:\n" 52339 printf "* Cores to use: $JOBS\n" 52340 printf "* Memory limit: $MEMORY_SIZE MB\n" 52341 if test "x$CCACHE_STATUS" != "x"; then 52342 printf "* ccache status: $CCACHE_STATUS\n" 52343 fi 52344 printf "\n" 52345 52346 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 52347 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 52348 printf "will result in longer build times.\n" 52349 printf "\n" 52350 fi 52351 52352 if test "x$FOUND_ALT_VARIABLES" != "x"; then 52353 printf "WARNING: You have old-style ALT_ environment variables set.\n" 52354 printf "These are not respected, and will be ignored. It is recommended\n" 52355 printf "that you clean your environment. The following variables are set:\n" 52356 printf "$FOUND_ALT_VARIABLES\n" 52357 printf "\n" 52358 fi 52359 52360 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 52361 printf "WARNING: Your build output directory is not on a local disk.\n" 52362 printf "This will severely degrade build performance!\n" 52363 printf "It is recommended that you create an output directory on a local disk,\n" 52364 printf "and run the configure script again from that directory.\n" 52365 printf "\n" 52366 fi 52367 52368 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 52369 printf "WARNING: The result of this configuration has overridden an older\n" 52370 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 52371 printf "proper build. Failure to do so might result in strange build problems.\n" 52372 printf "\n" 52373 fi 52374 52375 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 52376 printf "WARNING: The result of this configuration was not saved.\n" 52377 printf "You should run without '--no-create | -n' to create the configuration.\n" 52378 printf "\n" 52379 fi 52380 52381