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 CFLAGS_CCACHE 633 CCACHE 634 USE_PRECOMPILED_HEADER 635 BUILD_ICECC 636 ICECC 637 ICECC_WRAPPER 638 ICECC_CREATE_ENV 639 ICECC_CMD 640 ENABLE_JAVAC_SERVER 641 ENABLE_SJAVAC 642 SJAVAC_SERVER_JAVA_FLAGS 643 SJAVAC_SERVER_JAVA 644 JAVA_TOOL_FLAGS_SMALL 645 JAVA_FLAGS_SMALL 646 JAVA_FLAGS_JAVAC 647 JAVA_FLAGS_BIG 648 JAVA_FLAGS 649 TEST_JOBS 650 JOBS 651 MEMORY_SIZE 652 NUM_CORES 653 ENABLE_INTREE_EC 654 HOTSPOT_MAKE_ARGS 655 LIBZIP_CAN_USE_MMAP 656 LIBDL 657 LIBM 658 USE_EXTERNAL_LCMS 659 LCMS_LIBS 660 LCMS_CFLAGS 661 USE_EXTERNAL_LIBZ 662 USE_EXTERNAL_LIBPNG 663 PNG_LIBS 664 PNG_CFLAGS 665 USE_EXTERNAL_LIBGIF 666 USE_EXTERNAL_LIBJPEG 667 LLVM_LIBS 668 LLVM_LDFLAGS 669 LLVM_CFLAGS 670 LLVM_CONFIG 671 LIBFFI_LIBS 672 LIBFFI_CFLAGS 673 ALSA_LIBS 674 ALSA_CFLAGS 675 FREETYPE_BUNDLE_LIB_PATH 676 FREETYPE_LIBS 677 FREETYPE_CFLAGS 678 CUPS_CFLAGS 679 X_EXTRA_LIBS 680 X_LIBS 681 X_PRE_LIBS 682 X_CFLAGS 683 XMKMF 684 MSVCP_DLL 685 MSVCR_DLL 686 LIBCXX 687 STATIC_CXX_SETTING 688 FIXPATH_DETACH_FLAG 689 FIXPATH 690 GCOV_ENABLED 691 ZIP_DEBUGINFO_FILES 692 ENABLE_DEBUG_SYMBOLS 693 STRIP_POLICY 694 DEBUG_BINARIES 695 NATIVE_DEBUG_SYMBOLS 696 CFLAGS_WARNINGS_ARE_ERRORS 697 DISABLE_WARNING_PREFIX 698 HOTSPOT_SET_WARNINGS_AS_ERRORS 699 WARNINGS_AS_ERRORS 700 COMPILER_SUPPORTS_TARGET_BITS_FLAG 701 ZERO_ARCHFLAG 702 LDFLAGS_TESTEXE 703 LDFLAGS_TESTLIB 704 LDFLAGS_CXX_JDK 705 JDKEXE_LIBS 706 JDKLIB_LIBS 707 LDFLAGS_JDKEXE 708 LDFLAGS_JDKLIB 709 CXXFLAGS_TESTEXE 710 CXXFLAGS_TESTLIB 711 CFLAGS_TESTEXE 712 CFLAGS_TESTLIB 713 CXXFLAGS_JDKEXE 714 CXXFLAGS_JDKLIB 715 CFLAGS_JDKEXE 716 CFLAGS_JDKLIB 717 MACOSX_VERSION_MIN 718 CXX_O_FLAG_NONE 719 CXX_O_FLAG_DEBUG 720 CXX_O_FLAG_NORM 721 CXX_O_FLAG_HI 722 CXX_O_FLAG_HIGHEST 723 C_O_FLAG_NONE 724 C_O_FLAG_DEBUG 725 C_O_FLAG_NORM 726 C_O_FLAG_HI 727 C_O_FLAG_HIGHEST 728 CXXFLAGS_DEBUG_SYMBOLS 729 CFLAGS_DEBUG_SYMBOLS 730 CXX_FLAG_DEPS 731 C_FLAG_DEPS 732 SHARED_LIBRARY_FLAGS 733 SET_SHARED_LIBRARY_MAPFILE 734 SET_SHARED_LIBRARY_NAME 735 SET_SHARED_LIBRARY_ORIGIN 736 SET_EXECUTABLE_ORIGIN 737 CXX_FLAG_REORDER 738 C_FLAG_REORDER 739 RC_FLAGS 740 AR_OUT_OPTION 741 LD_OUT_OPTION 742 EXE_OUT_OPTION 743 CC_OUT_OPTION 744 STRIPFLAGS 745 ARFLAGS 746 COMPILER_COMMAND_FILE_FLAG 747 COMPILER_TARGET_BITS_FLAG 748 JT_HOME 749 JTREGEXE 750 USING_BROKEN_SUSE_LD 751 PACKAGE_PATH 752 USE_CLANG 753 HOTSPOT_LD 754 HOTSPOT_CXX 755 HOTSPOT_RC 756 HOTSPOT_MT 757 BUILD_AS 758 BUILD_LDCXX 759 BUILD_LD 760 BUILD_AR 761 BUILD_NM 762 BUILD_CXX 763 BUILD_CC 764 BUILD_SYSROOT_LDFLAGS 765 BUILD_SYSROOT_CFLAGS 766 ac_ct_OBJDUMP 767 OBJDUMP 768 ac_ct_OBJCOPY 769 OBJCOPY 770 ac_ct_NM 771 ac_ct_STRIP 772 GNM 773 NM 774 STRIP 775 MSBUILD 776 DUMPBIN 777 RC 778 MT 779 LIPO 780 ac_ct_AR 781 AR 782 AS 783 LDCXX 784 LD 785 CXXCPP 786 CPP 787 ac_ct_CXX 788 CXXFLAGS 789 CXX 790 ac_ct_PROPER_COMPILER_CXX 791 PROPER_COMPILER_CXX 792 TOOLCHAIN_PATH_CXX 793 POTENTIAL_CXX 794 OBJEXT 795 EXEEXT 796 ac_ct_CC 797 CPPFLAGS 798 LDFLAGS 799 CFLAGS 800 CC 801 ac_ct_PROPER_COMPILER_CC 802 PROPER_COMPILER_CC 803 TOOLCHAIN_PATH_CC 804 POTENTIAL_CC 805 TOOLCHAIN_VERSION 806 VS_LIB 807 VS_INCLUDE 808 VS_PATH 809 CYGWIN_LINK 810 SYSROOT_LDFLAGS 811 SYSROOT_CFLAGS 812 LEGACY_EXTRA_LDFLAGS 813 LEGACY_EXTRA_CXXFLAGS 814 LEGACY_EXTRA_CFLAGS 815 EXE_SUFFIX 816 OBJ_SUFFIX 817 STATIC_LIBRARY 818 SHARED_LIBRARY 819 STATIC_LIBRARY_SUFFIX 820 SHARED_LIBRARY_SUFFIX 821 LIBRARY_PREFIX 822 TOOLCHAIN_TYPE 823 STATIC_BUILD 824 BUILD_HOTSPOT 825 HOTSPOT_DIST 826 BUILD_OUTPUT 827 JDK_TOPDIR 828 NASHORN_TOPDIR 829 HOTSPOT_TOPDIR 830 JAXWS_TOPDIR 831 JAXP_TOPDIR 832 CORBA_TOPDIR 833 LANGTOOLS_TOPDIR 834 BOOT_JDK_BITS 835 JAVAC_FLAGS 836 BOOT_JDK_SOURCETARGET 837 JARSIGNER 838 JAR 839 JAVAH 840 JAVAC 841 JAVA 842 BOOT_JDK 843 JAVA_CHECK 844 JAVAC_CHECK 845 VERSION_IS_GA 846 VERSION_SHORT 847 VERSION_STRING 848 VERSION_NUMBER_FOUR_POSITIONS 849 VERSION_NUMBER 850 VERSION_OPT 851 VERSION_BUILD 852 VERSION_PRE 853 VERSION_PATCH 854 VERSION_SECURITY 855 VERSION_MINOR 856 VERSION_MAJOR 857 MACOSX_BUNDLE_ID_BASE 858 MACOSX_BUNDLE_NAME_BASE 859 COMPANY_NAME 860 JDK_RC_PLATFORM_NAME 861 PRODUCT_SUFFIX 862 PRODUCT_NAME 863 LAUNCHER_NAME 864 TEST_IN_BUILD 865 COPYRIGHT_YEAR 866 COMPRESS_JARS 867 UNLIMITED_CRYPTO 868 CACERTS_FILE 869 BUILD_HEADLESS 870 SUPPORT_HEADFUL 871 SUPPORT_HEADLESS 872 DEFAULT_MAKE_TARGET 873 OS_VERSION_MICRO 874 OS_VERSION_MINOR 875 OS_VERSION_MAJOR 876 PKG_CONFIG 877 BASH_ARGS 878 SETFILE 879 CODESIGN 880 XATTR 881 DSYMUTIL 882 IS_GNU_TIME 883 PATCH 884 TIME 885 STAT 886 HG 887 READELF 888 OTOOL 889 LDD 890 ZIP 891 UNZIP 892 FIND_DELETE 893 OUTPUT_SYNC 894 OUTPUT_SYNC_SUPPORTED 895 CHECK_TOOLSDIR_MAKE 896 CHECK_TOOLSDIR_GMAKE 897 CHECK_MAKE 898 CHECK_GMAKE 899 MAKE 900 PKGHANDLER 901 CONFIGURESUPPORT_OUTPUTDIR 902 OUTPUT_ROOT 903 CONF_NAME 904 SPEC 905 SDKROOT 906 XCODEBUILD 907 BUILD_VARIANT_RELEASE 908 DEBUG_CLASSFILES 909 FASTDEBUG 910 VARIANT 911 DEBUG_LEVEL 912 MACOSX_UNIVERSAL 913 INCLUDE_SA 914 JVM_VARIANT_CORE 915 JVM_VARIANT_ZEROSHARK 916 JVM_VARIANT_ZERO 917 JVM_VARIANT_MINIMAL1 918 JVM_VARIANT_CLIENT 919 JVM_VARIANT_SERVER 920 JVM_VARIANTS 921 JVM_INTERPRETER 922 JDK_VARIANT 923 SET_OPENJDK 924 CANONICAL_TOPDIR 925 ORIGINAL_TOPDIR 926 TOPDIR 927 PATH_SEP 928 ZERO_ARCHDEF 929 DEFINE_CROSS_COMPILE_ARCH 930 LP64 931 OPENJDK_TARGET_OS_EXPORT_DIR 932 OPENJDK_TARGET_CPU_JLI_CFLAGS 933 OPENJDK_TARGET_CPU_OSARCH 934 OPENJDK_TARGET_CPU_ISADIR 935 OPENJDK_TARGET_CPU_LIBDIR 936 OPENJDK_TARGET_CPU_LEGACY_LIB 937 OPENJDK_TARGET_CPU_LEGACY 938 REQUIRED_OS_VERSION 939 REQUIRED_OS_NAME 940 COMPILE_TYPE 941 OPENJDK_TARGET_CPU_ENDIAN 942 OPENJDK_TARGET_CPU_BITS 943 OPENJDK_TARGET_CPU_ARCH 944 OPENJDK_TARGET_CPU 945 OPENJDK_TARGET_OS_ENV 946 OPENJDK_TARGET_OS_TYPE 947 OPENJDK_TARGET_OS 948 OPENJDK_BUILD_CPU_ENDIAN 949 OPENJDK_BUILD_CPU_BITS 950 OPENJDK_BUILD_CPU_ARCH 951 OPENJDK_BUILD_CPU 952 OPENJDK_BUILD_OS_ENV 953 OPENJDK_BUILD_OS_TYPE 954 OPENJDK_BUILD_OS 955 OPENJDK_BUILD_AUTOCONF_NAME 956 OPENJDK_TARGET_AUTOCONF_NAME 957 target_os 958 target_vendor 959 target_cpu 960 target 961 host_os 962 host_vendor 963 host_cpu 964 host 965 build_os 966 build_vendor 967 build_cpu 968 build 969 NICE 970 CPIO 971 DF 972 READLINK 973 CYGPATH 974 SED 975 FGREP 976 EGREP 977 GREP 978 AWK 979 XARGS 980 WHICH 981 WC 982 UNIQ 983 UNAME 984 TR 985 TOUCH 986 TEE 987 TAR 988 TAIL 989 SORT 990 SH 991 RMDIR 992 RM 993 PRINTF 994 NAWK 995 MV 996 MKTEMP 997 MKDIR 998 LS 999 LN 1000 HEAD 1001 FIND 1002 FILE 1003 EXPR 1004 ECHO 1005 DIRNAME 1006 DIFF 1007 DATE 1008 CUT 1009 CP 1010 COMM 1011 CMP 1012 CHMOD 1013 CAT 1014 BASH 1015 BASENAME 1016 DATE_WHEN_CONFIGURED 1017 ORIGINAL_PATH 1018 CONFIGURE_COMMAND_LINE 1019 target_alias 1020 host_alias 1021 build_alias 1022 LIBS 1023 ECHO_T 1024 ECHO_N 1025 ECHO_C 1026 DEFS 1027 mandir 1028 localedir 1029 libdir 1030 psdir 1031 pdfdir 1032 dvidir 1033 htmldir 1034 infodir 1035 docdir 1036 oldincludedir 1037 includedir 1038 localstatedir 1039 sharedstatedir 1040 sysconfdir 1041 datadir 1042 datarootdir 1043 libexecdir 1044 sbindir 1045 bindir 1046 program_transform_name 1047 prefix 1048 exec_prefix 1049 PACKAGE_URL 1050 PACKAGE_BUGREPORT 1051 PACKAGE_STRING 1052 PACKAGE_VERSION 1053 PACKAGE_TARNAME 1054 PACKAGE_NAME 1055 PATH_SEPARATOR 1056 SHELL' 1057 ac_subst_files='' 1058 ac_user_opts=' 1059 enable_option_checking 1060 with_target_bits 1061 enable_openjdk_only 1062 with_custom_make_dir 1063 with_jdk_variant 1064 with_jvm_interpreter 1065 with_jvm_variants 1066 enable_debug 1067 with_debug_level 1068 with_devkit 1069 with_sys_root 1070 with_sysroot 1071 with_tools_dir 1072 with_toolchain_path 1073 with_extra_path 1074 with_sdk_name 1075 with_conf_name 1076 with_output_sync 1077 with_default_make_target 1078 enable_headful 1079 with_cacerts_file 1080 enable_unlimited_crypto 1081 with_copyright_year 1082 enable_hotspot_test_in_build 1083 with_milestone 1084 with_update_version 1085 with_user_release_suffix 1086 with_build_number 1087 with_version_string 1088 with_version_pre 1089 with_version_opt 1090 with_version_build 1091 with_version_major 1092 with_version_minor 1093 with_version_security 1094 with_version_patch 1095 with_boot_jdk 1096 with_add_source_root 1097 with_override_source_root 1098 with_adds_and_overrides 1099 with_override_langtools 1100 with_override_corba 1101 with_override_jaxp 1102 with_override_jaxws 1103 with_override_hotspot 1104 with_override_nashorn 1105 with_override_jdk 1106 with_import_hotspot 1107 enable_static_build 1108 with_toolchain_type 1109 with_extra_cflags 1110 with_extra_cxxflags 1111 with_extra_ldflags 1112 with_toolchain_version 1113 with_build_devkit 1114 with_jtreg 1115 enable_warnings_as_errors 1116 with_native_debug_symbols 1117 enable_debug_symbols 1118 enable_zip_debug_info 1119 enable_native_coverage 1120 with_stdc__lib 1121 with_msvcr_dll 1122 with_msvcp_dll 1123 with_x 1124 with_cups 1125 with_cups_include 1126 with_freetype 1127 with_freetype_include 1128 with_freetype_lib 1129 with_freetype_src 1130 enable_freetype_bundling 1131 with_alsa 1132 with_alsa_include 1133 with_alsa_lib 1134 with_libffi 1135 with_libffi_include 1136 with_libffi_lib 1137 with_libjpeg 1138 with_giflib 1139 with_libpng 1140 with_zlib 1141 with_lcms 1142 with_dxsdk 1143 with_dxsdk_lib 1144 with_dxsdk_include 1145 with_num_cores 1146 with_memory_size 1147 with_jobs 1148 with_test_jobs 1149 with_boot_jdk_jvmargs 1150 with_sjavac_server_java 1151 enable_sjavac 1152 enable_javac_server 1153 enable_icecc 1154 enable_precompiled_headers 1155 enable_ccache 1156 with_ccache_dir 1157 ' 1158 ac_precious_vars='build_alias 1159 host_alias 1160 target_alias 1161 BASENAME 1162 BASH 1163 CAT 1164 CHMOD 1165 CMP 1166 COMM 1167 CP 1168 CUT 1169 DATE 1170 DIFF 1171 DIRNAME 1172 ECHO 1173 EXPR 1174 FILE 1175 FIND 1176 HEAD 1177 LN 1178 LS 1179 MKDIR 1180 MKTEMP 1181 MV 1182 NAWK 1183 PRINTF 1184 RM 1185 RMDIR 1186 SH 1187 SORT 1188 TAIL 1189 TAR 1190 TEE 1191 TOUCH 1192 TR 1193 UNAME 1194 UNIQ 1195 WC 1196 WHICH 1197 XARGS 1198 AWK 1199 GREP 1200 EGREP 1201 FGREP 1202 SED 1203 CYGPATH 1204 READLINK 1205 DF 1206 CPIO 1207 NICE 1208 MAKE 1209 UNZIP 1210 ZIP 1211 LDD 1212 OTOOL 1213 READELF 1214 HG 1215 STAT 1216 TIME 1217 PATCH 1218 DSYMUTIL 1219 XATTR 1220 CODESIGN 1221 SETFILE 1222 PKG_CONFIG 1223 JAVA 1224 JAVAC 1225 JAVAH 1226 JAR 1227 JARSIGNER 1228 CC 1229 CFLAGS 1230 LDFLAGS 1231 LIBS 1232 CPPFLAGS 1233 CXX 1234 CXXFLAGS 1235 CCC 1236 CPP 1237 CXXCPP 1238 AS 1239 AR 1240 LIPO 1241 STRIP 1242 NM 1243 GNM 1244 OBJCOPY 1245 OBJDUMP 1246 BUILD_CC 1247 BUILD_CXX 1248 BUILD_NM 1249 BUILD_AR 1250 JTREGEXE 1251 XMKMF 1252 FREETYPE_CFLAGS 1253 FREETYPE_LIBS 1254 ALSA_CFLAGS 1255 ALSA_LIBS 1256 LIBFFI_CFLAGS 1257 LIBFFI_LIBS 1258 PNG_CFLAGS 1259 PNG_LIBS 1260 LCMS_CFLAGS 1261 LCMS_LIBS 1262 ICECC_CMD 1263 ICECC_CREATE_ENV 1264 ICECC_WRAPPER 1265 CCACHE' 1266 1267 1268 # Initialize some variables set by options. 1269 ac_init_help= 1270 ac_init_version=false 1271 ac_unrecognized_opts= 1272 ac_unrecognized_sep= 1273 # The variables have the same names as the options, with 1274 # dashes changed to underlines. 1275 cache_file=/dev/null 1276 exec_prefix=NONE 1277 no_create= 1278 no_recursion= 1279 prefix=NONE 1280 program_prefix=NONE 1281 program_suffix=NONE 1282 program_transform_name=s,x,x, 1283 silent= 1284 site= 1285 srcdir= 1286 verbose= 1287 x_includes=NONE 1288 x_libraries=NONE 1289 1290 # Installation directory options. 1291 # These are left unexpanded so users can "make install exec_prefix=/foo" 1292 # and all the variables that are supposed to be based on exec_prefix 1293 # by default will actually change. 1294 # Use braces instead of parens because sh, perl, etc. also accept them. 1295 # (The list follows the same order as the GNU Coding Standards.) 1296 bindir='${exec_prefix}/bin' 1297 sbindir='${exec_prefix}/sbin' 1298 libexecdir='${exec_prefix}/libexec' 1299 datarootdir='${prefix}/share' 1300 datadir='${datarootdir}' 1301 sysconfdir='${prefix}/etc' 1302 sharedstatedir='${prefix}/com' 1303 localstatedir='${prefix}/var' 1304 includedir='${prefix}/include' 1305 oldincludedir='/usr/include' 1306 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1307 infodir='${datarootdir}/info' 1308 htmldir='${docdir}' 1309 dvidir='${docdir}' 1310 pdfdir='${docdir}' 1311 psdir='${docdir}' 1312 libdir='${exec_prefix}/lib' 1313 localedir='${datarootdir}/locale' 1314 mandir='${datarootdir}/man' 1315 1316 ac_prev= 1317 ac_dashdash= 1318 for ac_option 1319 do 1320 # If the previous option needs an argument, assign it. 1321 if test -n "$ac_prev"; then 1322 eval $ac_prev=\$ac_option 1323 ac_prev= 1324 continue 1325 fi 1326 1327 case $ac_option in 1328 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1329 *=) ac_optarg= ;; 1330 *) ac_optarg=yes ;; 1331 esac 1332 1333 # Accept the important Cygnus configure options, so we can diagnose typos. 1334 1335 case $ac_dashdash$ac_option in 1336 --) 1337 ac_dashdash=yes ;; 1338 1339 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1340 ac_prev=bindir ;; 1341 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1342 bindir=$ac_optarg ;; 1343 1344 -build | --build | --buil | --bui | --bu) 1345 ac_prev=build_alias ;; 1346 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1347 build_alias=$ac_optarg ;; 1348 1349 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1350 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1351 ac_prev=cache_file ;; 1352 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1353 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1354 cache_file=$ac_optarg ;; 1355 1356 --config-cache | -C) 1357 cache_file=config.cache ;; 1358 1359 -datadir | --datadir | --datadi | --datad) 1360 ac_prev=datadir ;; 1361 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1362 datadir=$ac_optarg ;; 1363 1364 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1365 | --dataroo | --dataro | --datar) 1366 ac_prev=datarootdir ;; 1367 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1368 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1369 datarootdir=$ac_optarg ;; 1370 1371 -disable-* | --disable-*) 1372 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1373 # Reject names that are not valid shell variable names. 1374 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1375 as_fn_error $? "invalid feature name: $ac_useropt" 1376 ac_useropt_orig=$ac_useropt 1377 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1378 case $ac_user_opts in 1379 *" 1380 "enable_$ac_useropt" 1381 "*) ;; 1382 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1383 ac_unrecognized_sep=', ';; 1384 esac 1385 eval enable_$ac_useropt=no ;; 1386 1387 -docdir | --docdir | --docdi | --doc | --do) 1388 ac_prev=docdir ;; 1389 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1390 docdir=$ac_optarg ;; 1391 1392 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1393 ac_prev=dvidir ;; 1394 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1395 dvidir=$ac_optarg ;; 1396 1397 -enable-* | --enable-*) 1398 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1399 # Reject names that are not valid shell variable names. 1400 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1401 as_fn_error $? "invalid feature name: $ac_useropt" 1402 ac_useropt_orig=$ac_useropt 1403 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1404 case $ac_user_opts in 1405 *" 1406 "enable_$ac_useropt" 1407 "*) ;; 1408 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1409 ac_unrecognized_sep=', ';; 1410 esac 1411 eval enable_$ac_useropt=\$ac_optarg ;; 1412 1413 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1414 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1415 | --exec | --exe | --ex) 1416 ac_prev=exec_prefix ;; 1417 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1418 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1419 | --exec=* | --exe=* | --ex=*) 1420 exec_prefix=$ac_optarg ;; 1421 1422 -gas | --gas | --ga | --g) 1423 # Obsolete; use --with-gas. 1424 with_gas=yes ;; 1425 1426 -help | --help | --hel | --he | -h) 1427 ac_init_help=long ;; 1428 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1429 ac_init_help=recursive ;; 1430 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1431 ac_init_help=short ;; 1432 1433 -host | --host | --hos | --ho) 1434 ac_prev=host_alias ;; 1435 -host=* | --host=* | --hos=* | --ho=*) 1436 host_alias=$ac_optarg ;; 1437 1438 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1439 ac_prev=htmldir ;; 1440 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1441 | --ht=*) 1442 htmldir=$ac_optarg ;; 1443 1444 -includedir | --includedir | --includedi | --included | --include \ 1445 | --includ | --inclu | --incl | --inc) 1446 ac_prev=includedir ;; 1447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1448 | --includ=* | --inclu=* | --incl=* | --inc=*) 1449 includedir=$ac_optarg ;; 1450 1451 -infodir | --infodir | --infodi | --infod | --info | --inf) 1452 ac_prev=infodir ;; 1453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1454 infodir=$ac_optarg ;; 1455 1456 -libdir | --libdir | --libdi | --libd) 1457 ac_prev=libdir ;; 1458 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1459 libdir=$ac_optarg ;; 1460 1461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1462 | --libexe | --libex | --libe) 1463 ac_prev=libexecdir ;; 1464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1465 | --libexe=* | --libex=* | --libe=*) 1466 libexecdir=$ac_optarg ;; 1467 1468 -localedir | --localedir | --localedi | --localed | --locale) 1469 ac_prev=localedir ;; 1470 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1471 localedir=$ac_optarg ;; 1472 1473 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1474 | --localstate | --localstat | --localsta | --localst | --locals) 1475 ac_prev=localstatedir ;; 1476 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1477 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1478 localstatedir=$ac_optarg ;; 1479 1480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1481 ac_prev=mandir ;; 1482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1483 mandir=$ac_optarg ;; 1484 1485 -nfp | --nfp | --nf) 1486 # Obsolete; use --without-fp. 1487 with_fp=no ;; 1488 1489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1490 | --no-cr | --no-c | -n) 1491 no_create=yes ;; 1492 1493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1495 no_recursion=yes ;; 1496 1497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1499 | --oldin | --oldi | --old | --ol | --o) 1500 ac_prev=oldincludedir ;; 1501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1504 oldincludedir=$ac_optarg ;; 1505 1506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1507 ac_prev=prefix ;; 1508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1509 prefix=$ac_optarg ;; 1510 1511 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1512 | --program-pre | --program-pr | --program-p) 1513 ac_prev=program_prefix ;; 1514 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1516 program_prefix=$ac_optarg ;; 1517 1518 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1519 | --program-suf | --program-su | --program-s) 1520 ac_prev=program_suffix ;; 1521 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1523 program_suffix=$ac_optarg ;; 1524 1525 -program-transform-name | --program-transform-name \ 1526 | --program-transform-nam | --program-transform-na \ 1527 | --program-transform-n | --program-transform- \ 1528 | --program-transform | --program-transfor \ 1529 | --program-transfo | --program-transf \ 1530 | --program-trans | --program-tran \ 1531 | --progr-tra | --program-tr | --program-t) 1532 ac_prev=program_transform_name ;; 1533 -program-transform-name=* | --program-transform-name=* \ 1534 | --program-transform-nam=* | --program-transform-na=* \ 1535 | --program-transform-n=* | --program-transform-=* \ 1536 | --program-transform=* | --program-transfor=* \ 1537 | --program-transfo=* | --program-transf=* \ 1538 | --program-trans=* | --program-tran=* \ 1539 | --progr-tra=* | --program-tr=* | --program-t=*) 1540 program_transform_name=$ac_optarg ;; 1541 1542 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1543 ac_prev=pdfdir ;; 1544 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1545 pdfdir=$ac_optarg ;; 1546 1547 -psdir | --psdir | --psdi | --psd | --ps) 1548 ac_prev=psdir ;; 1549 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1550 psdir=$ac_optarg ;; 1551 1552 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1553 | -silent | --silent | --silen | --sile | --sil) 1554 silent=yes ;; 1555 1556 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1557 ac_prev=sbindir ;; 1558 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1559 | --sbi=* | --sb=*) 1560 sbindir=$ac_optarg ;; 1561 1562 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1563 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1564 | --sharedst | --shareds | --shared | --share | --shar \ 1565 | --sha | --sh) 1566 ac_prev=sharedstatedir ;; 1567 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1568 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1569 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1570 | --sha=* | --sh=*) 1571 sharedstatedir=$ac_optarg ;; 1572 1573 -site | --site | --sit) 1574 ac_prev=site ;; 1575 -site=* | --site=* | --sit=*) 1576 site=$ac_optarg ;; 1577 1578 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1579 ac_prev=srcdir ;; 1580 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1581 srcdir=$ac_optarg ;; 1582 1583 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1584 | --syscon | --sysco | --sysc | --sys | --sy) 1585 ac_prev=sysconfdir ;; 1586 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1587 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1588 sysconfdir=$ac_optarg ;; 1589 1590 -target | --target | --targe | --targ | --tar | --ta | --t) 1591 ac_prev=target_alias ;; 1592 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1593 target_alias=$ac_optarg ;; 1594 1595 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1596 verbose=yes ;; 1597 1598 -version | --version | --versio | --versi | --vers | -V) 1599 ac_init_version=: ;; 1600 1601 -with-* | --with-*) 1602 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1603 # Reject names that are not valid shell variable names. 1604 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1605 as_fn_error $? "invalid package name: $ac_useropt" 1606 ac_useropt_orig=$ac_useropt 1607 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1608 case $ac_user_opts in 1609 *" 1610 "with_$ac_useropt" 1611 "*) ;; 1612 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1613 ac_unrecognized_sep=', ';; 1614 esac 1615 eval with_$ac_useropt=\$ac_optarg ;; 1616 1617 -without-* | --without-*) 1618 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1619 # Reject names that are not valid shell variable names. 1620 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1621 as_fn_error $? "invalid package name: $ac_useropt" 1622 ac_useropt_orig=$ac_useropt 1623 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1624 case $ac_user_opts in 1625 *" 1626 "with_$ac_useropt" 1627 "*) ;; 1628 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1629 ac_unrecognized_sep=', ';; 1630 esac 1631 eval with_$ac_useropt=no ;; 1632 1633 --x) 1634 # Obsolete; use --with-x. 1635 with_x=yes ;; 1636 1637 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1638 | --x-incl | --x-inc | --x-in | --x-i) 1639 ac_prev=x_includes ;; 1640 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1641 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1642 x_includes=$ac_optarg ;; 1643 1644 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1645 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1646 ac_prev=x_libraries ;; 1647 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1648 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1649 x_libraries=$ac_optarg ;; 1650 1651 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1652 Try \`$0 --help' for more information" 1653 ;; 1654 1655 *=*) 1656 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1657 # Reject names that are not valid shell variable names. 1658 case $ac_envvar in #( 1659 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1660 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1661 esac 1662 eval $ac_envvar=\$ac_optarg 1663 export $ac_envvar ;; 1664 1665 *) 1666 # FIXME: should be removed in autoconf 3.0. 1667 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1668 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1669 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1670 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1671 ;; 1672 1673 esac 1674 done 1675 1676 if test -n "$ac_prev"; then 1677 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1678 as_fn_error $? "missing argument to $ac_option" 1679 fi 1680 1681 if test -n "$ac_unrecognized_opts"; then 1682 case $enable_option_checking in 1683 no) ;; 1684 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1685 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1686 esac 1687 fi 1688 1689 # Check all directory arguments for consistency. 1690 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1691 datadir sysconfdir sharedstatedir localstatedir includedir \ 1692 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1693 libdir localedir mandir 1694 do 1695 eval ac_val=\$$ac_var 1696 # Remove trailing slashes. 1697 case $ac_val in 1698 */ ) 1699 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1700 eval $ac_var=\$ac_val;; 1701 esac 1702 # Be sure to have absolute directory names. 1703 case $ac_val in 1704 [\\/$]* | ?:[\\/]* ) continue;; 1705 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1706 esac 1707 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1708 done 1709 1710 # There might be people who depend on the old broken behavior: `$host' 1711 # used to hold the argument of --host etc. 1712 # FIXME: To remove some day. 1713 build=$build_alias 1714 host=$host_alias 1715 target=$target_alias 1716 1717 # FIXME: To remove some day. 1718 if test "x$host_alias" != x; then 1719 if test "x$build_alias" = x; then 1720 cross_compiling=maybe 1721 elif test "x$build_alias" != "x$host_alias"; then 1722 cross_compiling=yes 1723 fi 1724 fi 1725 1726 ac_tool_prefix= 1727 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1728 1729 test "$silent" = yes && exec 6>/dev/null 1730 1731 1732 ac_pwd=`pwd` && test -n "$ac_pwd" && 1733 ac_ls_di=`ls -di .` && 1734 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1735 as_fn_error $? "working directory cannot be determined" 1736 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1737 as_fn_error $? "pwd does not report name of working directory" 1738 1739 1740 # Find the source files, if location was not specified. 1741 if test -z "$srcdir"; then 1742 ac_srcdir_defaulted=yes 1743 # Try the directory containing this script, then the parent directory. 1744 ac_confdir=`$as_dirname -- "$as_myself" || 1745 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1746 X"$as_myself" : 'X\(//\)[^/]' \| \ 1747 X"$as_myself" : 'X\(//\)$' \| \ 1748 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1749 $as_echo X"$as_myself" | 1750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1751 s//\1/ 1752 q 1753 } 1754 /^X\(\/\/\)[^/].*/{ 1755 s//\1/ 1756 q 1757 } 1758 /^X\(\/\/\)$/{ 1759 s//\1/ 1760 q 1761 } 1762 /^X\(\/\).*/{ 1763 s//\1/ 1764 q 1765 } 1766 s/.*/./; q'` 1767 srcdir=$ac_confdir 1768 if test ! -r "$srcdir/$ac_unique_file"; then 1769 srcdir=.. 1770 fi 1771 else 1772 ac_srcdir_defaulted=no 1773 fi 1774 if test ! -r "$srcdir/$ac_unique_file"; then 1775 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1776 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1777 fi 1778 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1779 ac_abs_confdir=`( 1780 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1781 pwd)` 1782 # When building in place, set srcdir=. 1783 if test "$ac_abs_confdir" = "$ac_pwd"; then 1784 srcdir=. 1785 fi 1786 # Remove unnecessary trailing slashes from srcdir. 1787 # Double slashes in file names in object file debugging info 1788 # mess up M-x gdb in Emacs. 1789 case $srcdir in 1790 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1791 esac 1792 for ac_var in $ac_precious_vars; do 1793 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1794 eval ac_env_${ac_var}_value=\$${ac_var} 1795 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1796 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1797 done 1798 1799 # 1800 # Report the --help message. 1801 # 1802 if test "$ac_init_help" = "long"; then 1803 # Omit some internal or obsolete options to make the list less imposing. 1804 # This message is too long to be a string in the A/UX 3.1 sh. 1805 cat <<_ACEOF 1806 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1807 1808 Usage: $0 [OPTION]... [VAR=VALUE]... 1809 1810 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1811 VAR=VALUE. See below for descriptions of some of the useful variables. 1812 1813 Defaults for the options are specified in brackets. 1814 1815 Configuration: 1816 -h, --help display this help and exit 1817 --help=short display options specific to this package 1818 --help=recursive display the short help of all the included packages 1819 -V, --version display version information and exit 1820 -q, --quiet, --silent do not print \`checking ...' messages 1821 --cache-file=FILE cache test results in FILE [disabled] 1822 -C, --config-cache alias for \`--cache-file=config.cache' 1823 -n, --no-create do not create output files 1824 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1825 1826 Installation directories: 1827 --prefix=PREFIX install architecture-independent files in PREFIX 1828 [$ac_default_prefix] 1829 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1830 [PREFIX] 1831 1832 By default, \`make install' will install all the files in 1833 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1834 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1835 for instance \`--prefix=\$HOME'. 1836 1837 For better control, use the options below. 1838 1839 Fine tuning of the installation directories: 1840 --bindir=DIR user executables [EPREFIX/bin] 1841 --sbindir=DIR system admin executables [EPREFIX/sbin] 1842 --libexecdir=DIR program executables [EPREFIX/libexec] 1843 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1844 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1845 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1846 --libdir=DIR object code libraries [EPREFIX/lib] 1847 --includedir=DIR C header files [PREFIX/include] 1848 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1849 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1850 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1851 --infodir=DIR info documentation [DATAROOTDIR/info] 1852 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1853 --mandir=DIR man documentation [DATAROOTDIR/man] 1854 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1855 --htmldir=DIR html documentation [DOCDIR] 1856 --dvidir=DIR dvi documentation [DOCDIR] 1857 --pdfdir=DIR pdf documentation [DOCDIR] 1858 --psdir=DIR ps documentation [DOCDIR] 1859 _ACEOF 1860 1861 cat <<\_ACEOF 1862 1863 X features: 1864 --x-includes=DIR X include files are in DIR 1865 --x-libraries=DIR X library files are in DIR 1866 1867 System types: 1868 --build=BUILD configure for building on BUILD [guessed] 1869 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1870 --target=TARGET configure for building compilers for TARGET [HOST] 1871 _ACEOF 1872 fi 1873 1874 if test -n "$ac_init_help"; then 1875 case $ac_init_help in 1876 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1877 esac 1878 cat <<\_ACEOF 1879 1880 Optional Features: 1881 --disable-option-checking ignore unrecognized --enable/--with options 1882 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1883 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1884 --enable-openjdk-only suppress building custom source even if present 1885 [disabled] 1886 --enable-debug set the debug level to fastdebug (shorthand for 1887 --with-debug-level=fastdebug) [disabled] 1888 --disable-headful disable building headful support (graphical UI 1889 support) [enabled] 1890 --enable-unlimited-crypto 1891 Enable unlimited crypto policy [disabled] 1892 --enable-hotspot-test-in-build 1893 run the Queens test after Hotspot build [disabled] 1894 --enable-static-build enable static library build [disabled] 1895 --disable-warnings-as-errors 1896 do not consider native warnings to be an error 1897 [enabled] 1898 --enable-debug-symbols Deprecated. Option is kept for backwards 1899 compatibility and is ignored 1900 --enable-zip-debug-info Deprecated. Option is kept for backwards 1901 compatibility and is ignored 1902 --enable-native-coverage 1903 enable native compilation with code coverage 1904 data[disabled] 1905 --disable-freetype-bundling 1906 disable bundling of the freetype library with the 1907 build result [enabled on Windows or when using 1908 --with-freetype, disabled otherwise] 1909 --enable-sjavac use sjavac to do fast incremental compiles 1910 [disabled] 1911 --disable-javac-server disable javac server [enabled] 1912 --enable-icecc enable distribted compilation of native code using 1913 icecc/icecream [disabled] 1914 --disable-precompiled-headers 1915 disable using precompiled headers when compiling C++ 1916 [enabled] 1917 --enable-ccache enable using ccache to speed up recompilations 1918 [disabled] 1919 1920 Optional Packages: 1921 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1922 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1923 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 1924 support it), e.g. --with-target-bits=32 [guessed] 1925 --with-custom-make-dir Deprecated. Option is kept for backwards 1926 compatibility and is ignored 1927 --with-jdk-variant JDK variant to build (normal) [normal] 1928 --with-jvm-interpreter JVM interpreter to build (template, cpp) [template] 1929 --with-jvm-variants JVM variants (separated by commas) to build (server, 1930 client, minimal1, zero, zeroshark, core) [server] 1931 --with-debug-level set the debug level (release, fastdebug, slowdebug, 1932 optimized (HotSpot build only)) [release] 1933 --with-devkit use this devkit for compilers, tools and resources 1934 --with-sys-root alias for --with-sysroot for backwards compatability 1935 --with-sysroot use this directory as sysroot 1936 --with-tools-dir alias for --with-toolchain-path for backwards 1937 compatibility 1938 --with-toolchain-path prepend these directories when searching for 1939 toolchain binaries (compilers etc) 1940 --with-extra-path prepend these directories to the default path 1941 --with-sdk-name use the platform SDK of the given name. [macosx] 1942 --with-conf-name use this as the name of the configuration [generated 1943 from important configuration options] 1944 --with-output-sync set make output sync type if supported by make. 1945 [recurse] 1946 --with-default-make-target 1947 set the default make target [exploded-image] 1948 --with-cacerts-file specify alternative cacerts file 1949 --with-copyright-year Set copyright year value for build [current year] 1950 --with-milestone Deprecated. Option is kept for backwards 1951 compatibility and is ignored 1952 --with-update-version Deprecated. Option is kept for backwards 1953 compatibility and is ignored 1954 --with-user-release-suffix 1955 Deprecated. Option is kept for backwards 1956 compatibility and is ignored 1957 --with-build-number Deprecated. Option is kept for backwards 1958 compatibility and is ignored 1959 --with-version-string Set version string [calculated] 1960 --with-version-pre Set the base part of the version 'PRE' field 1961 (pre-release identifier) ['internal'] 1962 --with-version-opt Set version 'OPT' field (build metadata) 1963 [<timestamp>.<user>.<dirname>] 1964 --with-version-build Set version 'BUILD' field (build number) [not 1965 specified] 1966 --with-version-major Set version 'MAJOR' field (first number) [current 1967 source value] 1968 --with-version-minor Set version 'MINOR' field (second number) [current 1969 source value] 1970 --with-version-security Set version 'SECURITY' field (third number) [current 1971 source value] 1972 --with-version-patch Set version 'PATCH' field (fourth number) [not 1973 specified] 1974 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1975 --with-add-source-root Deprecated. Option is kept for backwards 1976 compatibility and is ignored 1977 --with-override-source-root 1978 Deprecated. Option is kept for backwards 1979 compatibility and is ignored 1980 --with-adds-and-overrides 1981 Deprecated. Option is kept for backwards 1982 compatibility and is ignored 1983 --with-override-langtools 1984 Deprecated. Option is kept for backwards 1985 compatibility and is ignored 1986 --with-override-corba Deprecated. Option is kept for backwards 1987 compatibility and is ignored 1988 --with-override-jaxp Deprecated. Option is kept for backwards 1989 compatibility and is ignored 1990 --with-override-jaxws Deprecated. Option is kept for backwards 1991 compatibility and is ignored 1992 --with-override-hotspot Deprecated. Option is kept for backwards 1993 compatibility and is ignored 1994 --with-override-nashorn Deprecated. Option is kept for backwards 1995 compatibility and is ignored 1996 --with-override-jdk Deprecated. Option is kept for backwards 1997 compatibility and is ignored 1998 --with-import-hotspot import hotspot binaries from this jdk image or 1999 hotspot build dist dir instead of building from 2000 source 2001 --with-toolchain-type the toolchain type (or family) to use, use '--help' 2002 to show possible values [platform dependent] 2003 --with-extra-cflags extra flags to be used when compiling jdk c-files 2004 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 2005 --with-extra-ldflags extra flags to be used when linking jdk 2006 --with-toolchain-version 2007 the version of the toolchain to look for, use 2008 '--help' to show possible values [platform 2009 dependent] 2010 --with-build-devkit Devkit to use for the build platform toolchain 2011 --with-jtreg Regression Test Harness [probed] 2012 --with-native-debug-symbols 2013 set the native debug symbol configuration (none, 2014 internal, external, zipped) [zipped] 2015 --with-stdc++lib=<static>,<dynamic>,<default> 2016 force linking of the C++ runtime on Linux to either 2017 static or dynamic, default is static with dynamic as 2018 fallback 2019 --with-msvcr-dll path to microsoft C runtime dll (msvcr*.dll) 2020 (Windows only) [probed] 2021 --with-msvcp-dll path to microsoft C++ runtime dll (msvcp*.dll) 2022 (Windows only) [probed] 2023 --with-x use the X Window System 2024 --with-cups specify prefix directory for the cups package 2025 (expecting the headers under PATH/include) 2026 --with-cups-include specify directory for the cups include files 2027 --with-freetype specify prefix directory for the freetype package 2028 (expecting the libraries under PATH/lib and the 2029 headers under PATH/include) 2030 --with-freetype-include specify directory for the freetype include files 2031 --with-freetype-lib specify directory for the freetype library 2032 --with-freetype-src specify directory with freetype sources to 2033 automatically build the library (experimental, 2034 Windows-only) 2035 --with-alsa specify prefix directory for the alsa package 2036 (expecting the libraries under PATH/lib and the 2037 headers under PATH/include) 2038 --with-alsa-include specify directory for the alsa include files 2039 --with-alsa-lib specify directory for the alsa library 2040 --with-libffi specify prefix directory for the libffi package 2041 (expecting the libraries under PATH/lib and the 2042 headers under PATH/include) 2043 --with-libffi-include specify directory for the libffi include files 2044 --with-libffi-lib specify directory for the libffi library 2045 --with-libjpeg use libjpeg from build system or OpenJDK source 2046 (system, bundled) [bundled] 2047 --with-giflib use giflib from build system or OpenJDK source 2048 (system, bundled) [bundled] 2049 --with-libpng use libpng from build system or OpenJDK source 2050 (system, bundled) [bundled] 2051 --with-zlib use zlib from build system or OpenJDK source 2052 (system, bundled) [bundled] 2053 --with-lcms use lcms2 from build system or OpenJDK source 2054 (system, bundled) [bundled] 2055 --with-dxsdk Deprecated. Option is kept for backwards 2056 compatibility and is ignored 2057 --with-dxsdk-lib Deprecated. Option is kept for backwards 2058 compatibility and is ignored 2059 --with-dxsdk-include Deprecated. Option is kept for backwards 2060 compatibility and is ignored 2061 --with-num-cores number of cores in the build system, e.g. 2062 --with-num-cores=8 [probed] 2063 --with-memory-size memory (in MB) available in the build system, e.g. 2064 --with-memory-size=1024 [probed] 2065 --with-jobs number of parallel jobs to let make run [calculated 2066 based on cores and memory] 2067 --with-test-jobs number of parallel tests jobs to run [based on build 2068 jobs] 2069 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 2070 invocations of boot JDK, overriding the default 2071 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 2072 -enableassertions" 2073 --with-sjavac-server-java 2074 use this java binary for running the sjavac 2075 background server [Boot JDK java] 2076 --with-ccache-dir where to store ccache files [~/.ccache] 2077 2078 Some influential environment variables: 2079 BASENAME Override default value for BASENAME 2080 BASH Override default value for BASH 2081 CAT Override default value for CAT 2082 CHMOD Override default value for CHMOD 2083 CMP Override default value for CMP 2084 COMM Override default value for COMM 2085 CP Override default value for CP 2086 CUT Override default value for CUT 2087 DATE Override default value for DATE 2088 DIFF Override default value for DIFF 2089 DIRNAME Override default value for DIRNAME 2090 ECHO Override default value for ECHO 2091 EXPR Override default value for EXPR 2092 FILE Override default value for FILE 2093 FIND Override default value for FIND 2094 HEAD Override default value for HEAD 2095 LN Override default value for LN 2096 LS Override default value for LS 2097 MKDIR Override default value for MKDIR 2098 MKTEMP Override default value for MKTEMP 2099 MV Override default value for MV 2100 NAWK Override default value for NAWK 2101 PRINTF Override default value for PRINTF 2102 RM Override default value for RM 2103 RMDIR Override default value for RMDIR 2104 SH Override default value for SH 2105 SORT Override default value for SORT 2106 TAIL Override default value for TAIL 2107 TAR Override default value for TAR 2108 TEE Override default value for TEE 2109 TOUCH Override default value for TOUCH 2110 TR Override default value for TR 2111 UNAME Override default value for UNAME 2112 UNIQ Override default value for UNIQ 2113 WC Override default value for WC 2114 WHICH Override default value for WHICH 2115 XARGS Override default value for XARGS 2116 AWK Override default value for AWK 2117 GREP Override default value for GREP 2118 EGREP Override default value for EGREP 2119 FGREP Override default value for FGREP 2120 SED Override default value for SED 2121 CYGPATH Override default value for CYGPATH 2122 READLINK Override default value for READLINK 2123 DF Override default value for DF 2124 CPIO Override default value for CPIO 2125 NICE Override default value for NICE 2126 MAKE Override default value for MAKE 2127 UNZIP Override default value for UNZIP 2128 ZIP Override default value for ZIP 2129 LDD Override default value for LDD 2130 OTOOL Override default value for OTOOL 2131 READELF Override default value for READELF 2132 HG Override default value for HG 2133 STAT Override default value for STAT 2134 TIME Override default value for TIME 2135 PATCH Override default value for PATCH 2136 DSYMUTIL Override default value for DSYMUTIL 2137 XATTR Override default value for XATTR 2138 CODESIGN Override default value for CODESIGN 2139 SETFILE Override default value for SETFILE 2140 PKG_CONFIG path to pkg-config utility 2141 JAVA Override default value for JAVA 2142 JAVAC Override default value for JAVAC 2143 JAVAH Override default value for JAVAH 2144 JAR Override default value for JAR 2145 JARSIGNER Override default value for JARSIGNER 2146 CC C compiler command 2147 CFLAGS C compiler flags 2148 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2149 nonstandard directory <lib dir> 2150 LIBS libraries to pass to the linker, e.g. -l<library> 2151 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2152 you have headers in a nonstandard directory <include dir> 2153 CXX C++ compiler command 2154 CXXFLAGS C++ compiler flags 2155 CPP C preprocessor 2156 CXXCPP C++ preprocessor 2157 AS Override default value for AS 2158 AR Override default value for AR 2159 LIPO Override default value for LIPO 2160 STRIP Override default value for STRIP 2161 NM Override default value for NM 2162 GNM Override default value for GNM 2163 OBJCOPY Override default value for OBJCOPY 2164 OBJDUMP Override default value for OBJDUMP 2165 BUILD_CC Override default value for BUILD_CC 2166 BUILD_CXX Override default value for BUILD_CXX 2167 BUILD_NM Override default value for BUILD_NM 2168 BUILD_AR Override default value for BUILD_AR 2169 JTREGEXE Override default value for JTREGEXE 2170 XMKMF Path to xmkmf, Makefile generator for X Window System 2171 FREETYPE_CFLAGS 2172 C compiler flags for FREETYPE, overriding pkg-config 2173 FREETYPE_LIBS 2174 linker flags for FREETYPE, overriding pkg-config 2175 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2176 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2177 LIBFFI_CFLAGS 2178 C compiler flags for LIBFFI, overriding pkg-config 2179 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2180 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2181 PNG_LIBS linker flags for PNG, overriding pkg-config 2182 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2183 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2184 ICECC_CMD Override default value for ICECC_CMD 2185 ICECC_CREATE_ENV 2186 Override default value for ICECC_CREATE_ENV 2187 ICECC_WRAPPER 2188 Override default value for ICECC_WRAPPER 2189 CCACHE Override default value for CCACHE 2190 2191 Use these variables to override the choices made by `configure' or to help 2192 it to find libraries and programs with nonstandard names/locations. 2193 2194 Report bugs to <build-dev@openjdk.java.net>. 2195 OpenJDK home page: <http://openjdk.java.net>. 2196 _ACEOF 2197 ac_status=$? 2198 fi 2199 2200 if test "$ac_init_help" = "recursive"; then 2201 # If there are subdirs, report their specific --help. 2202 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2203 test -d "$ac_dir" || 2204 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2205 continue 2206 ac_builddir=. 2207 2208 case "$ac_dir" in 2209 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2210 *) 2211 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2212 # A ".." for each directory in $ac_dir_suffix. 2213 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2214 case $ac_top_builddir_sub in 2215 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2216 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2217 esac ;; 2218 esac 2219 ac_abs_top_builddir=$ac_pwd 2220 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2221 # for backward compatibility: 2222 ac_top_builddir=$ac_top_build_prefix 2223 2224 case $srcdir in 2225 .) # We are building in place. 2226 ac_srcdir=. 2227 ac_top_srcdir=$ac_top_builddir_sub 2228 ac_abs_top_srcdir=$ac_pwd ;; 2229 [\\/]* | ?:[\\/]* ) # Absolute name. 2230 ac_srcdir=$srcdir$ac_dir_suffix; 2231 ac_top_srcdir=$srcdir 2232 ac_abs_top_srcdir=$srcdir ;; 2233 *) # Relative name. 2234 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2235 ac_top_srcdir=$ac_top_build_prefix$srcdir 2236 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2237 esac 2238 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2239 2240 cd "$ac_dir" || { ac_status=$?; continue; } 2241 # Check for guested configure. 2242 if test -f "$ac_srcdir/configure.gnu"; then 2243 echo && 2244 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2245 elif test -f "$ac_srcdir/configure"; then 2246 echo && 2247 $SHELL "$ac_srcdir/configure" --help=recursive 2248 else 2249 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2250 fi || ac_status=$? 2251 cd "$ac_pwd" || { ac_status=$?; break; } 2252 done 2253 fi 2254 2255 test -n "$ac_init_help" && exit $ac_status 2256 if $ac_init_version; then 2257 cat <<\_ACEOF 2258 OpenJDK configure jdk9 2259 generated by GNU Autoconf 2.69 2260 2261 Copyright (C) 2012 Free Software Foundation, Inc. 2262 This configure script is free software; the Free Software Foundation 2263 gives unlimited permission to copy, distribute and modify it. 2264 _ACEOF 2265 exit 2266 fi 2267 2268 ## ------------------------ ## 2269 ## Autoconf initialization. ## 2270 ## ------------------------ ## 2271 2272 # ac_fn_c_try_compile LINENO 2273 # -------------------------- 2274 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2275 ac_fn_c_try_compile () 2276 { 2277 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2278 rm -f conftest.$ac_objext 2279 if { { ac_try="$ac_compile" 2280 case "(($ac_try" in 2281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2282 *) ac_try_echo=$ac_try;; 2283 esac 2284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2285 $as_echo "$ac_try_echo"; } >&5 2286 (eval "$ac_compile") 2>conftest.err 2287 ac_status=$? 2288 if test -s conftest.err; then 2289 grep -v '^ *+' conftest.err >conftest.er1 2290 cat conftest.er1 >&5 2291 mv -f conftest.er1 conftest.err 2292 fi 2293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2294 test $ac_status = 0; } && { 2295 test -z "$ac_c_werror_flag" || 2296 test ! -s conftest.err 2297 } && test -s conftest.$ac_objext; then : 2298 ac_retval=0 2299 else 2300 $as_echo "$as_me: failed program was:" >&5 2301 sed 's/^/| /' conftest.$ac_ext >&5 2302 2303 ac_retval=1 2304 fi 2305 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2306 as_fn_set_status $ac_retval 2307 2308 } # ac_fn_c_try_compile 2309 2310 # ac_fn_cxx_try_compile LINENO 2311 # ---------------------------- 2312 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2313 ac_fn_cxx_try_compile () 2314 { 2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2316 rm -f conftest.$ac_objext 2317 if { { ac_try="$ac_compile" 2318 case "(($ac_try" in 2319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2320 *) ac_try_echo=$ac_try;; 2321 esac 2322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2323 $as_echo "$ac_try_echo"; } >&5 2324 (eval "$ac_compile") 2>conftest.err 2325 ac_status=$? 2326 if test -s conftest.err; then 2327 grep -v '^ *+' conftest.err >conftest.er1 2328 cat conftest.er1 >&5 2329 mv -f conftest.er1 conftest.err 2330 fi 2331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2332 test $ac_status = 0; } && { 2333 test -z "$ac_cxx_werror_flag" || 2334 test ! -s conftest.err 2335 } && test -s conftest.$ac_objext; then : 2336 ac_retval=0 2337 else 2338 $as_echo "$as_me: failed program was:" >&5 2339 sed 's/^/| /' conftest.$ac_ext >&5 2340 2341 ac_retval=1 2342 fi 2343 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2344 as_fn_set_status $ac_retval 2345 2346 } # ac_fn_cxx_try_compile 2347 2348 # ac_fn_c_try_cpp LINENO 2349 # ---------------------- 2350 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2351 ac_fn_c_try_cpp () 2352 { 2353 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2354 if { { ac_try="$ac_cpp conftest.$ac_ext" 2355 case "(($ac_try" in 2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2357 *) ac_try_echo=$ac_try;; 2358 esac 2359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2360 $as_echo "$ac_try_echo"; } >&5 2361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2362 ac_status=$? 2363 if test -s conftest.err; then 2364 grep -v '^ *+' conftest.err >conftest.er1 2365 cat conftest.er1 >&5 2366 mv -f conftest.er1 conftest.err 2367 fi 2368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2369 test $ac_status = 0; } > conftest.i && { 2370 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2371 test ! -s conftest.err 2372 }; then : 2373 ac_retval=0 2374 else 2375 $as_echo "$as_me: failed program was:" >&5 2376 sed 's/^/| /' conftest.$ac_ext >&5 2377 2378 ac_retval=1 2379 fi 2380 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2381 as_fn_set_status $ac_retval 2382 2383 } # ac_fn_c_try_cpp 2384 2385 # ac_fn_cxx_try_cpp LINENO 2386 # ------------------------ 2387 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2388 ac_fn_cxx_try_cpp () 2389 { 2390 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2391 if { { ac_try="$ac_cpp conftest.$ac_ext" 2392 case "(($ac_try" in 2393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2394 *) ac_try_echo=$ac_try;; 2395 esac 2396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2397 $as_echo "$ac_try_echo"; } >&5 2398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2399 ac_status=$? 2400 if test -s conftest.err; then 2401 grep -v '^ *+' conftest.err >conftest.er1 2402 cat conftest.er1 >&5 2403 mv -f conftest.er1 conftest.err 2404 fi 2405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2406 test $ac_status = 0; } > conftest.i && { 2407 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2408 test ! -s conftest.err 2409 }; then : 2410 ac_retval=0 2411 else 2412 $as_echo "$as_me: failed program was:" >&5 2413 sed 's/^/| /' conftest.$ac_ext >&5 2414 2415 ac_retval=1 2416 fi 2417 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2418 as_fn_set_status $ac_retval 2419 2420 } # ac_fn_cxx_try_cpp 2421 2422 # ac_fn_c_try_link LINENO 2423 # ----------------------- 2424 # Try to link conftest.$ac_ext, and return whether this succeeded. 2425 ac_fn_c_try_link () 2426 { 2427 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2428 rm -f conftest.$ac_objext conftest$ac_exeext 2429 if { { ac_try="$ac_link" 2430 case "(($ac_try" in 2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2432 *) ac_try_echo=$ac_try;; 2433 esac 2434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2435 $as_echo "$ac_try_echo"; } >&5 2436 (eval "$ac_link") 2>conftest.err 2437 ac_status=$? 2438 if test -s conftest.err; then 2439 grep -v '^ *+' conftest.err >conftest.er1 2440 cat conftest.er1 >&5 2441 mv -f conftest.er1 conftest.err 2442 fi 2443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2444 test $ac_status = 0; } && { 2445 test -z "$ac_c_werror_flag" || 2446 test ! -s conftest.err 2447 } && test -s conftest$ac_exeext && { 2448 test "$cross_compiling" = yes || 2449 test -x conftest$ac_exeext 2450 }; then : 2451 ac_retval=0 2452 else 2453 $as_echo "$as_me: failed program was:" >&5 2454 sed 's/^/| /' conftest.$ac_ext >&5 2455 2456 ac_retval=1 2457 fi 2458 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2459 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2460 # interfere with the next link command; also delete a directory that is 2461 # left behind by Apple's compiler. We do this before executing the actions. 2462 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2463 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2464 as_fn_set_status $ac_retval 2465 2466 } # ac_fn_c_try_link 2467 2468 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2469 # --------------------------------------------------------- 2470 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2471 # the include files in INCLUDES and setting the cache variable VAR 2472 # accordingly. 2473 ac_fn_cxx_check_header_mongrel () 2474 { 2475 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2476 if eval \${$3+:} false; then : 2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2478 $as_echo_n "checking for $2... " >&6; } 2479 if eval \${$3+:} false; then : 2480 $as_echo_n "(cached) " >&6 2481 fi 2482 eval ac_res=\$$3 2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2484 $as_echo "$ac_res" >&6; } 2485 else 2486 # Is the header compilable? 2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2488 $as_echo_n "checking $2 usability... " >&6; } 2489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2490 /* end confdefs.h. */ 2491 $4 2492 #include <$2> 2493 _ACEOF 2494 if ac_fn_cxx_try_compile "$LINENO"; then : 2495 ac_header_compiler=yes 2496 else 2497 ac_header_compiler=no 2498 fi 2499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2501 $as_echo "$ac_header_compiler" >&6; } 2502 2503 # Is the header present? 2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2505 $as_echo_n "checking $2 presence... " >&6; } 2506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2507 /* end confdefs.h. */ 2508 #include <$2> 2509 _ACEOF 2510 if ac_fn_cxx_try_cpp "$LINENO"; then : 2511 ac_header_preproc=yes 2512 else 2513 ac_header_preproc=no 2514 fi 2515 rm -f conftest.err conftest.i conftest.$ac_ext 2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2517 $as_echo "$ac_header_preproc" >&6; } 2518 2519 # So? What about this header? 2520 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2521 yes:no: ) 2522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2523 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2525 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2526 ;; 2527 no:yes:* ) 2528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2529 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2531 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2533 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2535 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2537 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2538 ( $as_echo "## ----------------------------------------- ## 2539 ## Report this to build-dev@openjdk.java.net ## 2540 ## ----------------------------------------- ##" 2541 ) | sed "s/^/$as_me: WARNING: /" >&2 2542 ;; 2543 esac 2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2545 $as_echo_n "checking for $2... " >&6; } 2546 if eval \${$3+:} false; then : 2547 $as_echo_n "(cached) " >&6 2548 else 2549 eval "$3=\$ac_header_compiler" 2550 fi 2551 eval ac_res=\$$3 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2553 $as_echo "$ac_res" >&6; } 2554 fi 2555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2556 2557 } # ac_fn_cxx_check_header_mongrel 2558 2559 # ac_fn_cxx_try_run LINENO 2560 # ------------------------ 2561 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2562 # that executables *can* be run. 2563 ac_fn_cxx_try_run () 2564 { 2565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2566 if { { ac_try="$ac_link" 2567 case "(($ac_try" in 2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2569 *) ac_try_echo=$ac_try;; 2570 esac 2571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2572 $as_echo "$ac_try_echo"; } >&5 2573 (eval "$ac_link") 2>&5 2574 ac_status=$? 2575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2576 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2577 { { case "(($ac_try" in 2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2579 *) ac_try_echo=$ac_try;; 2580 esac 2581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2582 $as_echo "$ac_try_echo"; } >&5 2583 (eval "$ac_try") 2>&5 2584 ac_status=$? 2585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2586 test $ac_status = 0; }; }; then : 2587 ac_retval=0 2588 else 2589 $as_echo "$as_me: program exited with status $ac_status" >&5 2590 $as_echo "$as_me: failed program was:" >&5 2591 sed 's/^/| /' conftest.$ac_ext >&5 2592 2593 ac_retval=$ac_status 2594 fi 2595 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2597 as_fn_set_status $ac_retval 2598 2599 } # ac_fn_cxx_try_run 2600 2601 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2602 # --------------------------------------------------------- 2603 # Tests whether HEADER exists and can be compiled using the include files in 2604 # INCLUDES, setting the cache variable VAR accordingly. 2605 ac_fn_cxx_check_header_compile () 2606 { 2607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2609 $as_echo_n "checking for $2... " >&6; } 2610 if eval \${$3+:} false; then : 2611 $as_echo_n "(cached) " >&6 2612 else 2613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2614 /* end confdefs.h. */ 2615 $4 2616 #include <$2> 2617 _ACEOF 2618 if ac_fn_cxx_try_compile "$LINENO"; then : 2619 eval "$3=yes" 2620 else 2621 eval "$3=no" 2622 fi 2623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2624 fi 2625 eval ac_res=\$$3 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2627 $as_echo "$ac_res" >&6; } 2628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2629 2630 } # ac_fn_cxx_check_header_compile 2631 2632 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2633 # ---------------------------------------------- 2634 # Tries to find the compile-time value of EXPR in a program that includes 2635 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2636 # computed 2637 ac_fn_cxx_compute_int () 2638 { 2639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2640 if test "$cross_compiling" = yes; then 2641 # Depending upon the size, compute the lo and hi bounds. 2642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2643 /* end confdefs.h. */ 2644 $4 2645 int 2646 main () 2647 { 2648 static int test_array [1 - 2 * !(($2) >= 0)]; 2649 test_array [0] = 0; 2650 return test_array [0]; 2651 2652 ; 2653 return 0; 2654 } 2655 _ACEOF 2656 if ac_fn_cxx_try_compile "$LINENO"; then : 2657 ac_lo=0 ac_mid=0 2658 while :; do 2659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2660 /* end confdefs.h. */ 2661 $4 2662 int 2663 main () 2664 { 2665 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2666 test_array [0] = 0; 2667 return test_array [0]; 2668 2669 ; 2670 return 0; 2671 } 2672 _ACEOF 2673 if ac_fn_cxx_try_compile "$LINENO"; then : 2674 ac_hi=$ac_mid; break 2675 else 2676 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2677 if test $ac_lo -le $ac_mid; then 2678 ac_lo= ac_hi= 2679 break 2680 fi 2681 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2682 fi 2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2684 done 2685 else 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) < 0)]; 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=-1 ac_mid=-1 2702 while :; do 2703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2704 /* end confdefs.h. */ 2705 $4 2706 int 2707 main () 2708 { 2709 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2710 test_array [0] = 0; 2711 return test_array [0]; 2712 2713 ; 2714 return 0; 2715 } 2716 _ACEOF 2717 if ac_fn_cxx_try_compile "$LINENO"; then : 2718 ac_lo=$ac_mid; break 2719 else 2720 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2721 if test $ac_mid -le $ac_hi; then 2722 ac_lo= ac_hi= 2723 break 2724 fi 2725 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2726 fi 2727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2728 done 2729 else 2730 ac_lo= ac_hi= 2731 fi 2732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2733 fi 2734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2735 # Binary search between lo and hi bounds. 2736 while test "x$ac_lo" != "x$ac_hi"; do 2737 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2739 /* end confdefs.h. */ 2740 $4 2741 int 2742 main () 2743 { 2744 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2745 test_array [0] = 0; 2746 return test_array [0]; 2747 2748 ; 2749 return 0; 2750 } 2751 _ACEOF 2752 if ac_fn_cxx_try_compile "$LINENO"; then : 2753 ac_hi=$ac_mid 2754 else 2755 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2756 fi 2757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2758 done 2759 case $ac_lo in #(( 2760 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2761 '') ac_retval=1 ;; 2762 esac 2763 else 2764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2765 /* end confdefs.h. */ 2766 $4 2767 static long int longval () { return $2; } 2768 static unsigned long int ulongval () { return $2; } 2769 #include <stdio.h> 2770 #include <stdlib.h> 2771 int 2772 main () 2773 { 2774 2775 FILE *f = fopen ("conftest.val", "w"); 2776 if (! f) 2777 return 1; 2778 if (($2) < 0) 2779 { 2780 long int i = longval (); 2781 if (i != ($2)) 2782 return 1; 2783 fprintf (f, "%ld", i); 2784 } 2785 else 2786 { 2787 unsigned long int i = ulongval (); 2788 if (i != ($2)) 2789 return 1; 2790 fprintf (f, "%lu", i); 2791 } 2792 /* Do not output a trailing newline, as this causes \r\n confusion 2793 on some platforms. */ 2794 return ferror (f) || fclose (f) != 0; 2795 2796 ; 2797 return 0; 2798 } 2799 _ACEOF 2800 if ac_fn_cxx_try_run "$LINENO"; then : 2801 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2802 else 2803 ac_retval=1 2804 fi 2805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2806 conftest.$ac_objext conftest.beam conftest.$ac_ext 2807 rm -f conftest.val 2808 2809 fi 2810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2811 as_fn_set_status $ac_retval 2812 2813 } # ac_fn_cxx_compute_int 2814 2815 # ac_fn_cxx_try_link LINENO 2816 # ------------------------- 2817 # Try to link conftest.$ac_ext, and return whether this succeeded. 2818 ac_fn_cxx_try_link () 2819 { 2820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2821 rm -f conftest.$ac_objext conftest$ac_exeext 2822 if { { ac_try="$ac_link" 2823 case "(($ac_try" in 2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2825 *) ac_try_echo=$ac_try;; 2826 esac 2827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2828 $as_echo "$ac_try_echo"; } >&5 2829 (eval "$ac_link") 2>conftest.err 2830 ac_status=$? 2831 if test -s conftest.err; then 2832 grep -v '^ *+' conftest.err >conftest.er1 2833 cat conftest.er1 >&5 2834 mv -f conftest.er1 conftest.err 2835 fi 2836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2837 test $ac_status = 0; } && { 2838 test -z "$ac_cxx_werror_flag" || 2839 test ! -s conftest.err 2840 } && test -s conftest$ac_exeext && { 2841 test "$cross_compiling" = yes || 2842 test -x conftest$ac_exeext 2843 }; then : 2844 ac_retval=0 2845 else 2846 $as_echo "$as_me: failed program was:" >&5 2847 sed 's/^/| /' conftest.$ac_ext >&5 2848 2849 ac_retval=1 2850 fi 2851 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2852 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2853 # interfere with the next link command; also delete a directory that is 2854 # left behind by Apple's compiler. We do this before executing the actions. 2855 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2857 as_fn_set_status $ac_retval 2858 2859 } # ac_fn_cxx_try_link 2860 2861 # ac_fn_cxx_check_func LINENO FUNC VAR 2862 # ------------------------------------ 2863 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2864 ac_fn_cxx_check_func () 2865 { 2866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2868 $as_echo_n "checking for $2... " >&6; } 2869 if eval \${$3+:} false; then : 2870 $as_echo_n "(cached) " >&6 2871 else 2872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2873 /* end confdefs.h. */ 2874 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2875 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2876 #define $2 innocuous_$2 2877 2878 /* System header to define __stub macros and hopefully few prototypes, 2879 which can conflict with char $2 (); below. 2880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2881 <limits.h> exists even on freestanding compilers. */ 2882 2883 #ifdef __STDC__ 2884 # include <limits.h> 2885 #else 2886 # include <assert.h> 2887 #endif 2888 2889 #undef $2 2890 2891 /* Override any GCC internal prototype to avoid an error. 2892 Use char because int might match the return type of a GCC 2893 builtin and then its argument prototype would still apply. */ 2894 #ifdef __cplusplus 2895 extern "C" 2896 #endif 2897 char $2 (); 2898 /* The GNU C library defines this for functions which it implements 2899 to always fail with ENOSYS. Some functions are actually named 2900 something starting with __ and the normal name is an alias. */ 2901 #if defined __stub_$2 || defined __stub___$2 2902 choke me 2903 #endif 2904 2905 int 2906 main () 2907 { 2908 return $2 (); 2909 ; 2910 return 0; 2911 } 2912 _ACEOF 2913 if ac_fn_cxx_try_link "$LINENO"; then : 2914 eval "$3=yes" 2915 else 2916 eval "$3=no" 2917 fi 2918 rm -f core conftest.err conftest.$ac_objext \ 2919 conftest$ac_exeext conftest.$ac_ext 2920 fi 2921 eval ac_res=\$$3 2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2923 $as_echo "$ac_res" >&6; } 2924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2925 2926 } # ac_fn_cxx_check_func 2927 2928 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2929 # ------------------------------------------------------- 2930 # Tests whether HEADER exists and can be compiled using the include files in 2931 # INCLUDES, setting the cache variable VAR accordingly. 2932 ac_fn_c_check_header_compile () 2933 { 2934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2936 $as_echo_n "checking for $2... " >&6; } 2937 if eval \${$3+:} false; then : 2938 $as_echo_n "(cached) " >&6 2939 else 2940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2941 /* end confdefs.h. */ 2942 $4 2943 #include <$2> 2944 _ACEOF 2945 if ac_fn_c_try_compile "$LINENO"; then : 2946 eval "$3=yes" 2947 else 2948 eval "$3=no" 2949 fi 2950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2951 fi 2952 eval ac_res=\$$3 2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2954 $as_echo "$ac_res" >&6; } 2955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2956 2957 } # ac_fn_c_check_header_compile 2958 cat >config.log <<_ACEOF 2959 This file contains any messages produced by compilers while 2960 running configure, to aid debugging if configure makes a mistake. 2961 2962 It was created by OpenJDK $as_me jdk9, which was 2963 generated by GNU Autoconf 2.69. Invocation command line was 2964 2965 $ $0 $@ 2966 2967 _ACEOF 2968 exec 5>>config.log 2969 { 2970 cat <<_ASUNAME 2971 ## --------- ## 2972 ## Platform. ## 2973 ## --------- ## 2974 2975 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2976 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2977 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2978 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2979 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2980 2981 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2982 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2983 2984 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2985 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2986 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2987 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2988 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2989 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2990 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2991 2992 _ASUNAME 2993 2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2995 for as_dir in $PATH 2996 do 2997 IFS=$as_save_IFS 2998 test -z "$as_dir" && as_dir=. 2999 $as_echo "PATH: $as_dir" 3000 done 3001 IFS=$as_save_IFS 3002 3003 } >&5 3004 3005 cat >&5 <<_ACEOF 3006 3007 3008 ## ----------- ## 3009 ## Core tests. ## 3010 ## ----------- ## 3011 3012 _ACEOF 3013 3014 3015 # Keep a trace of the command line. 3016 # Strip out --no-create and --no-recursion so they do not pile up. 3017 # Strip out --silent because we don't want to record it for future runs. 3018 # Also quote any args containing shell meta-characters. 3019 # Make two passes to allow for proper duplicate-argument suppression. 3020 ac_configure_args= 3021 ac_configure_args0= 3022 ac_configure_args1= 3023 ac_must_keep_next=false 3024 for ac_pass in 1 2 3025 do 3026 for ac_arg 3027 do 3028 case $ac_arg in 3029 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3031 | -silent | --silent | --silen | --sile | --sil) 3032 continue ;; 3033 *\'*) 3034 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3035 esac 3036 case $ac_pass in 3037 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3038 2) 3039 as_fn_append ac_configure_args1 " '$ac_arg'" 3040 if test $ac_must_keep_next = true; then 3041 ac_must_keep_next=false # Got value, back to normal. 3042 else 3043 case $ac_arg in 3044 *=* | --config-cache | -C | -disable-* | --disable-* \ 3045 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3046 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3047 | -with-* | --with-* | -without-* | --without-* | --x) 3048 case "$ac_configure_args0 " in 3049 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3050 esac 3051 ;; 3052 -* ) ac_must_keep_next=true ;; 3053 esac 3054 fi 3055 as_fn_append ac_configure_args " '$ac_arg'" 3056 ;; 3057 esac 3058 done 3059 done 3060 { ac_configure_args0=; unset ac_configure_args0;} 3061 { ac_configure_args1=; unset ac_configure_args1;} 3062 3063 # When interrupted or exit'd, cleanup temporary files, and complete 3064 # config.log. We remove comments because anyway the quotes in there 3065 # would cause problems or look ugly. 3066 # WARNING: Use '\'' to represent an apostrophe within the trap. 3067 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3068 trap 'exit_status=$? 3069 # Save into config.log some information that might help in debugging. 3070 { 3071 echo 3072 3073 $as_echo "## ---------------- ## 3074 ## Cache variables. ## 3075 ## ---------------- ##" 3076 echo 3077 # The following way of writing the cache mishandles newlines in values, 3078 ( 3079 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3080 eval ac_val=\$$ac_var 3081 case $ac_val in #( 3082 *${as_nl}*) 3083 case $ac_var in #( 3084 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3085 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3086 esac 3087 case $ac_var in #( 3088 _ | IFS | as_nl) ;; #( 3089 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3090 *) { eval $ac_var=; unset $ac_var;} ;; 3091 esac ;; 3092 esac 3093 done 3094 (set) 2>&1 | 3095 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3096 *${as_nl}ac_space=\ *) 3097 sed -n \ 3098 "s/'\''/'\''\\\\'\'''\''/g; 3099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3100 ;; #( 3101 *) 3102 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3103 ;; 3104 esac | 3105 sort 3106 ) 3107 echo 3108 3109 $as_echo "## ----------------- ## 3110 ## Output variables. ## 3111 ## ----------------- ##" 3112 echo 3113 for ac_var in $ac_subst_vars 3114 do 3115 eval ac_val=\$$ac_var 3116 case $ac_val in 3117 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3118 esac 3119 $as_echo "$ac_var='\''$ac_val'\''" 3120 done | sort 3121 echo 3122 3123 if test -n "$ac_subst_files"; then 3124 $as_echo "## ------------------- ## 3125 ## File substitutions. ## 3126 ## ------------------- ##" 3127 echo 3128 for ac_var in $ac_subst_files 3129 do 3130 eval ac_val=\$$ac_var 3131 case $ac_val in 3132 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3133 esac 3134 $as_echo "$ac_var='\''$ac_val'\''" 3135 done | sort 3136 echo 3137 fi 3138 3139 if test -s confdefs.h; then 3140 $as_echo "## ----------- ## 3141 ## confdefs.h. ## 3142 ## ----------- ##" 3143 echo 3144 cat confdefs.h 3145 echo 3146 fi 3147 test "$ac_signal" != 0 && 3148 $as_echo "$as_me: caught signal $ac_signal" 3149 $as_echo "$as_me: exit $exit_status" 3150 } >&5 3151 rm -f core *.core core.conftest.* && 3152 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3153 exit $exit_status 3154 ' 0 3155 for ac_signal in 1 2 13 15; do 3156 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3157 done 3158 ac_signal=0 3159 3160 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3161 rm -f -r conftest* confdefs.h 3162 3163 $as_echo "/* confdefs.h */" > confdefs.h 3164 3165 # Predefined preprocessor variables. 3166 3167 cat >>confdefs.h <<_ACEOF 3168 #define PACKAGE_NAME "$PACKAGE_NAME" 3169 _ACEOF 3170 3171 cat >>confdefs.h <<_ACEOF 3172 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3173 _ACEOF 3174 3175 cat >>confdefs.h <<_ACEOF 3176 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3177 _ACEOF 3178 3179 cat >>confdefs.h <<_ACEOF 3180 #define PACKAGE_STRING "$PACKAGE_STRING" 3181 _ACEOF 3182 3183 cat >>confdefs.h <<_ACEOF 3184 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3185 _ACEOF 3186 3187 cat >>confdefs.h <<_ACEOF 3188 #define PACKAGE_URL "$PACKAGE_URL" 3189 _ACEOF 3190 3191 3192 # Let the site file select an alternate cache file if it wants to. 3193 # Prefer an explicitly selected file to automatically selected ones. 3194 ac_site_file1=NONE 3195 ac_site_file2=NONE 3196 if test -n "$CONFIG_SITE"; then 3197 # We do not want a PATH search for config.site. 3198 case $CONFIG_SITE in #(( 3199 -*) ac_site_file1=./$CONFIG_SITE;; 3200 */*) ac_site_file1=$CONFIG_SITE;; 3201 *) ac_site_file1=./$CONFIG_SITE;; 3202 esac 3203 elif test "x$prefix" != xNONE; then 3204 ac_site_file1=$prefix/share/config.site 3205 ac_site_file2=$prefix/etc/config.site 3206 else 3207 ac_site_file1=$ac_default_prefix/share/config.site 3208 ac_site_file2=$ac_default_prefix/etc/config.site 3209 fi 3210 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3211 do 3212 test "x$ac_site_file" = xNONE && continue 3213 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3214 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3215 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3216 sed 's/^/| /' "$ac_site_file" >&5 3217 . "$ac_site_file" \ 3218 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3220 as_fn_error $? "failed to load site script $ac_site_file 3221 See \`config.log' for more details" "$LINENO" 5; } 3222 fi 3223 done 3224 3225 if test -r "$cache_file"; then 3226 # Some versions of bash will fail to source /dev/null (special files 3227 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3228 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3229 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3230 $as_echo "$as_me: loading cache $cache_file" >&6;} 3231 case $cache_file in 3232 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3233 *) . "./$cache_file";; 3234 esac 3235 fi 3236 else 3237 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3238 $as_echo "$as_me: creating cache $cache_file" >&6;} 3239 >$cache_file 3240 fi 3241 3242 # Check that the precious variables saved in the cache have kept the same 3243 # value. 3244 ac_cache_corrupted=false 3245 for ac_var in $ac_precious_vars; do 3246 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3247 eval ac_new_set=\$ac_env_${ac_var}_set 3248 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3249 eval ac_new_val=\$ac_env_${ac_var}_value 3250 case $ac_old_set,$ac_new_set in 3251 set,) 3252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3253 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3254 ac_cache_corrupted=: ;; 3255 ,set) 3256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3257 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3258 ac_cache_corrupted=: ;; 3259 ,);; 3260 *) 3261 if test "x$ac_old_val" != "x$ac_new_val"; then 3262 # differences in whitespace do not lead to failure. 3263 ac_old_val_w=`echo x $ac_old_val` 3264 ac_new_val_w=`echo x $ac_new_val` 3265 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3267 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3268 ac_cache_corrupted=: 3269 else 3270 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3271 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3272 eval $ac_var=\$ac_old_val 3273 fi 3274 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3275 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3276 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3277 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3278 fi;; 3279 esac 3280 # Pass precious variables to config.status. 3281 if test "$ac_new_set" = set; then 3282 case $ac_new_val in 3283 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3284 *) ac_arg=$ac_var=$ac_new_val ;; 3285 esac 3286 case " $ac_configure_args " in 3287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3288 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3289 esac 3290 fi 3291 done 3292 if $ac_cache_corrupted; then 3293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3296 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3297 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3298 fi 3299 ## -------------------- ## 3300 ## Main body of script. ## 3301 ## -------------------- ## 3302 3303 ac_ext=c 3304 ac_cpp='$CPP $CPPFLAGS' 3305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3307 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3308 3309 3310 3311 ac_aux_dir= 3312 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3313 if test -f "$ac_dir/install-sh"; then 3314 ac_aux_dir=$ac_dir 3315 ac_install_sh="$ac_aux_dir/install-sh -c" 3316 break 3317 elif test -f "$ac_dir/install.sh"; then 3318 ac_aux_dir=$ac_dir 3319 ac_install_sh="$ac_aux_dir/install.sh -c" 3320 break 3321 elif test -f "$ac_dir/shtool"; then 3322 ac_aux_dir=$ac_dir 3323 ac_install_sh="$ac_aux_dir/shtool install -c" 3324 break 3325 fi 3326 done 3327 if test -z "$ac_aux_dir"; then 3328 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 3329 fi 3330 3331 # These three variables are undocumented and unsupported, 3332 # and are intended to be withdrawn in a future Autoconf release. 3333 # They can cause serious problems if a builder's source tree is in a directory 3334 # whose full name contains unusual characters. 3335 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3336 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3337 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3338 3339 3340 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3341 3342 # 3343 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3344 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3345 # 3346 # This code is free software; you can redistribute it and/or modify it 3347 # under the terms of the GNU General Public License version 2 only, as 3348 # published by the Free Software Foundation. Oracle designates this 3349 # particular file as subject to the "Classpath" exception as provided 3350 # by Oracle in the LICENSE file that accompanied this code. 3351 # 3352 # This code is distributed in the hope that it will be useful, but WITHOUT 3353 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3354 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3355 # version 2 for more details (a copy is included in the LICENSE file that 3356 # accompanied this code). 3357 # 3358 # You should have received a copy of the GNU General Public License version 3359 # 2 along with this work; if not, write to the Free Software Foundation, 3360 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3361 # 3362 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3363 # or visit www.oracle.com if you need additional information or have any 3364 # questions. 3365 # 3366 3367 # 3368 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3369 # 3370 # This program is free software; you can redistribute it and/or modify 3371 # it under the terms of the GNU General Public License as published by 3372 # the Free Software Foundation; either version 2 of the License, or 3373 # (at your option) any later version. 3374 # 3375 # This program is distributed in the hope that it will be useful, but 3376 # WITHOUT ANY WARRANTY; without even the implied warranty of 3377 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3378 # General Public License for more details. 3379 # 3380 # You should have received a copy of the GNU General Public License 3381 # along with this program; if not, write to the Free Software 3382 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3383 # 3384 # As a special exception to the GNU General Public License, if you 3385 # distribute this file as part of a program that contains a 3386 # configuration script generated by Autoconf, you may include it under 3387 # the same distribution terms that you use for the rest of that program. 3388 3389 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3390 # ---------------------------------- 3391 # PKG_PROG_PKG_CONFIG 3392 3393 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3394 # 3395 # Check to see whether a particular set of modules exists. Similar 3396 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3397 # 3398 # 3399 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3400 # this or PKG_CHECK_MODULES is called, or make sure to call 3401 # PKG_CHECK_EXISTS manually 3402 # -------------------------------------------------------------- 3403 3404 3405 3406 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3407 # --------------------------------------------- 3408 # _PKG_CONFIG 3409 3410 # _PKG_SHORT_ERRORS_SUPPORTED 3411 # ----------------------------- 3412 # _PKG_SHORT_ERRORS_SUPPORTED 3413 3414 3415 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3416 # [ACTION-IF-NOT-FOUND]) 3417 # 3418 # 3419 # Note that if there is a possibility the first call to 3420 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3421 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3422 # 3423 # 3424 # -------------------------------------------------------------- 3425 # PKG_CHECK_MODULES 3426 3427 3428 # Include these first... 3429 # 3430 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3431 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3432 # 3433 # This code is free software; you can redistribute it and/or modify it 3434 # under the terms of the GNU General Public License version 2 only, as 3435 # published by the Free Software Foundation. Oracle designates this 3436 # particular file as subject to the "Classpath" exception as provided 3437 # by Oracle in the LICENSE file that accompanied this code. 3438 # 3439 # This code is distributed in the hope that it will be useful, but WITHOUT 3440 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3441 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3442 # version 2 for more details (a copy is included in the LICENSE file that 3443 # accompanied this code). 3444 # 3445 # You should have received a copy of the GNU General Public License version 3446 # 2 along with this work; if not, write to the Free Software Foundation, 3447 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3448 # 3449 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3450 # or visit www.oracle.com if you need additional information or have any 3451 # questions. 3452 # 3453 3454 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3455 # If so, then append $1 to $2 \ 3456 # Also set JVM_ARG_OK to true/false depending on outcome. 3457 3458 3459 # Appends a string to a path variable, only adding the : when needed. 3460 3461 3462 # Prepends a string to a path variable, only adding the : when needed. 3463 3464 3465 # This will make sure the given variable points to a full and proper 3466 # path. This means: 3467 # 1) There will be no spaces in the path. On unix platforms, 3468 # spaces in the path will result in an error. On Windows, 3469 # the path will be rewritten using short-style to be space-free. 3470 # 2) The path will be absolute, and it will be in unix-style (on 3471 # cygwin). 3472 # $1: The name of the variable to fix 3473 3474 3475 # This will make sure the given variable points to a executable 3476 # with a full and proper path. This means: 3477 # 1) There will be no spaces in the path. On unix platforms, 3478 # spaces in the path will result in an error. On Windows, 3479 # the path will be rewritten using short-style to be space-free. 3480 # 2) The path will be absolute, and it will be in unix-style (on 3481 # cygwin). 3482 # Any arguments given to the executable is preserved. 3483 # If the input variable does not have a directory specification, then 3484 # it need to be in the PATH. 3485 # $1: The name of the variable to fix 3486 3487 3488 3489 3490 # Register a --with argument but mark it as deprecated 3491 # $1: The name of the with argument to deprecate, not including --with- 3492 3493 3494 # Register a --enable argument but mark it as deprecated 3495 # $1: The name of the with argument to deprecate, not including --enable- 3496 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3497 # $3: Messages to user. 3498 3499 3500 3501 3502 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3503 # $1: variable to check 3504 3505 3506 # Check that there are no unprocessed overridden variables left. 3507 # If so, they are an incorrect argument and we will exit with an error. 3508 3509 3510 # Setup a tool for the given variable. If correctly specified by the user, 3511 # use that value, otherwise search for the tool using the supplied code snippet. 3512 # $1: variable to set 3513 # $2: code snippet to call to look for the tool 3514 # $3: code snippet to call if variable was used to find tool 3515 3516 3517 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3518 # $1: variable to set 3519 # $2: executable name (or list of names) to look for 3520 3521 3522 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3523 # $1: variable to set 3524 # $2: executable name (or list of names) to look for 3525 3526 3527 # Like BASIC_PATH_PROGS but fails if no tool was found. 3528 # $1: variable to set 3529 # $2: executable name (or list of names) to look for 3530 3531 3532 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3533 # $1: variable to set 3534 # $2: autoconf macro to call to look for the special tool 3535 3536 3537 # Setup the most fundamental tools that relies on not much else to set up, 3538 # but is used by much of the early bootstrap code. 3539 3540 3541 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3542 3543 3544 # Evaluates platform specific overrides for devkit variables. 3545 # $1: Name of variable 3546 3547 3548 3549 3550 3551 3552 #%%% Simple tools %%% 3553 3554 # Check if we have found a usable version of make 3555 # $1: the path to a potential make binary (or empty) 3556 # $2: the description on how we found this 3557 3558 3559 3560 3561 # Goes looking for a usable version of GNU make. 3562 3563 3564 3565 3566 3567 3568 # Check if build directory is on local disk. If not possible to determine, 3569 # we prefer to claim it's local. 3570 # Argument 1: directory to test 3571 # Argument 2: what to do if it is on local disk 3572 # Argument 3: what to do otherwise (remote disk or failure) 3573 3574 3575 # Check that source files have basic read permissions set. This might 3576 # not be the case in cygwin in certain conditions. 3577 3578 3579 3580 3581 # Check for support for specific options in bash 3582 3583 3584 ################################################################################ 3585 # 3586 # Default make target 3587 # 3588 3589 3590 # Code to run after AC_OUTPUT 3591 3592 3593 # 3594 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3595 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3596 # 3597 # This code is free software; you can redistribute it and/or modify it 3598 # under the terms of the GNU General Public License version 2 only, as 3599 # published by the Free Software Foundation. Oracle designates this 3600 # particular file as subject to the "Classpath" exception as provided 3601 # by Oracle in the LICENSE file that accompanied this code. 3602 # 3603 # This code is distributed in the hope that it will be useful, but WITHOUT 3604 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3605 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3606 # version 2 for more details (a copy is included in the LICENSE file that 3607 # accompanied this code). 3608 # 3609 # You should have received a copy of the GNU General Public License version 3610 # 2 along with this work; if not, write to the Free Software Foundation, 3611 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3612 # 3613 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3614 # or visit www.oracle.com if you need additional information or have any 3615 # questions. 3616 # 3617 3618 3619 3620 3621 3622 # Helper function which possibly converts a path using DOS-style short mode. 3623 # If so, the updated path is stored in $new_path. 3624 # $1: The path to check 3625 3626 3627 # Helper function which possibly converts a path using DOS-style short mode. 3628 # If so, the updated path is stored in $new_path. 3629 # $1: The path to check 3630 3631 3632 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3633 # and could probably be heavily simplified. However, all changes in this 3634 # area tend to need lot of testing in different scenarios, and in lack of 3635 # proper unit testing, cleaning this up has not been deemed worth the effort 3636 # at the moment. 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3647 3648 3649 3650 3651 # ... then the rest 3652 # 3653 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3654 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3655 # 3656 # This code is free software; you can redistribute it and/or modify it 3657 # under the terms of the GNU General Public License version 2 only, as 3658 # published by the Free Software Foundation. Oracle designates this 3659 # particular file as subject to the "Classpath" exception as provided 3660 # by Oracle in the LICENSE file that accompanied this code. 3661 # 3662 # This code is distributed in the hope that it will be useful, but WITHOUT 3663 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3664 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3665 # version 2 for more details (a copy is included in the LICENSE file that 3666 # accompanied this code). 3667 # 3668 # You should have received a copy of the GNU General Public License version 3669 # 2 along with this work; if not, write to the Free Software Foundation, 3670 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3671 # 3672 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3673 # or visit www.oracle.com if you need additional information or have any 3674 # questions. 3675 # 3676 3677 ######################################################################## 3678 # This file handles detection of the Boot JDK. The Boot JDK detection 3679 # process has been developed as a response to solve a complex real-world 3680 # problem. Initially, it was simple, but it has grown as platform after 3681 # platform, idiosyncracy after idiosyncracy has been supported. 3682 # 3683 # The basic idea is this: 3684 # 1) You need an acceptable *) JDK to use as a Boot JDK 3685 # 2) There are several ways to locate a JDK, that are mostly platform 3686 # dependent **) 3687 # 3) You can have multiple JDKs installed 3688 # 4) If possible, configure should try to dig out an acceptable JDK 3689 # automatically, without having to resort to command-line options 3690 # 3691 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3692 # javac) and not a JRE, etc. 3693 # 3694 # **) On Windows we typically use a well-known path. 3695 # On MacOSX we typically use the tool java_home. 3696 # On Linux we typically find javac in the $PATH, and then follow a 3697 # chain of symlinks that often ends up in a real JDK. 3698 # 3699 # This leads to the code where we check in different ways to locate a 3700 # JDK, and if one is found, check if it is acceptable. If not, we print 3701 # our reasons for rejecting it (useful when debugging non-working 3702 # configure situations) and continue checking the next one. 3703 ######################################################################## 3704 3705 # Execute the check given as argument, and verify the result 3706 # If the Boot JDK was previously found, do nothing 3707 # $1 A command line (typically autoconf macro) to execute 3708 3709 3710 # Test: Is bootjdk explicitely set by command line arguments? 3711 3712 3713 # Test: Is $JAVA_HOME set? 3714 3715 3716 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3717 3718 3719 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3720 # $1: Argument to the java_home binary (optional) 3721 3722 3723 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3724 3725 3726 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3727 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3728 # $1 = Path to directory containing jdk installations. 3729 # $2 = String to append to the found JDK directory to get the proper JDK home 3730 3731 3732 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3733 # environmental variable as base for where to look. 3734 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3735 3736 3737 # Test: Is there a JDK installed in default, well-known locations? 3738 3739 3740 # Check that a command-line tool in the Boot JDK is correct 3741 # $1 = name of variable to assign 3742 # $2 = name of binary 3743 3744 3745 ############################################################################### 3746 # 3747 # We need a Boot JDK to bootstrap the build. 3748 # 3749 3750 3751 3752 3753 3754 # 3755 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3756 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3757 # 3758 # This code is free software; you can redistribute it and/or modify it 3759 # under the terms of the GNU General Public License version 2 only, as 3760 # published by the Free Software Foundation. Oracle designates this 3761 # particular file as subject to the "Classpath" exception as provided 3762 # by Oracle in the LICENSE file that accompanied this code. 3763 # 3764 # This code is distributed in the hope that it will be useful, but WITHOUT 3765 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3766 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3767 # version 2 for more details (a copy is included in the LICENSE file that 3768 # accompanied this code). 3769 # 3770 # You should have received a copy of the GNU General Public License version 3771 # 2 along with this work; if not, write to the Free Software Foundation, 3772 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3773 # 3774 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3775 # or visit www.oracle.com if you need additional information or have any 3776 # questions. 3777 # 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 ################################################################################ 3796 # 3797 # Optionally enable distributed compilation of native code using icecc/icecream 3798 # 3799 3800 3801 3802 3803 3804 3805 3806 # 3807 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3808 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3809 # 3810 # This code is free software; you can redistribute it and/or modify it 3811 # under the terms of the GNU General Public License version 2 only, as 3812 # published by the Free Software Foundation. Oracle designates this 3813 # particular file as subject to the "Classpath" exception as provided 3814 # by Oracle in the LICENSE file that accompanied this code. 3815 # 3816 # This code is distributed in the hope that it will be useful, but WITHOUT 3817 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3818 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3819 # version 2 for more details (a copy is included in the LICENSE file that 3820 # accompanied this code). 3821 # 3822 # You should have received a copy of the GNU General Public License version 3823 # 2 along with this work; if not, write to the Free Software Foundation, 3824 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3825 # 3826 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3827 # or visit www.oracle.com if you need additional information or have any 3828 # questions. 3829 # 3830 3831 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the 3832 # corresponding configure arguments instead 3833 3834 3835 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so 3836 # that configure can use them while detecting compilers. 3837 # TOOLCHAIN_TYPE is available here. 3838 # Param 1 - Optional prefix to all variables. (e.g BUILD_) 3839 3840 3841 3842 3843 3844 3845 # Documentation on common flags used for solstudio in HIGHEST. 3846 # 3847 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 3848 # done with care, there are some assumptions below that need to 3849 # be understood about the use of pointers, and IEEE behavior. 3850 # 3851 # -fns: Use non-standard floating point mode (not IEEE 754) 3852 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 3853 # -fsingle: Use single precision floating point with 'float' 3854 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 3855 # (Source with excessing pointer casting and data access with mixed 3856 # pointer types are not recommended) 3857 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 3858 # (If you expect perfect errno behavior, do not use this) 3859 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 3860 # -xrestrict: Pointer parameters to functions do not overlap 3861 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 3862 # If you pass in multiple pointers to the same data, do not use this) 3863 # -xlibmil: Inline some library routines 3864 # (If you expect perfect errno behavior, do not use this) 3865 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 3866 # (If you expect perfect errno behavior, do not use this) 3867 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 3868 3869 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 3870 # Bug? 3871 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 3872 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 3873 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 3874 #fi 3875 3876 3877 3878 3879 3880 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3881 # [RUN-IF-FALSE]) 3882 # ------------------------------------------------------------ 3883 # Check that the c and c++ compilers support an argument 3884 3885 3886 # FLAGS_LINKER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3887 # [RUN-IF-FALSE]) 3888 # ------------------------------------------------------------ 3889 # Check that the linker support an argument 3890 3891 3892 3893 3894 # 3895 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3896 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3897 # 3898 # This code is free software; you can redistribute it and/or modify it 3899 # under the terms of the GNU General Public License version 2 only, as 3900 # published by the Free Software Foundation. Oracle designates this 3901 # particular file as subject to the "Classpath" exception as provided 3902 # by Oracle in the LICENSE file that accompanied this code. 3903 # 3904 # This code is distributed in the hope that it will be useful, but WITHOUT 3905 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3906 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3907 # version 2 for more details (a copy is included in the LICENSE file that 3908 # accompanied this code). 3909 # 3910 # You should have received a copy of the GNU General Public License version 3911 # 2 along with this work; if not, write to the Free Software Foundation, 3912 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3913 # 3914 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3915 # or visit www.oracle.com if you need additional information or have any 3916 # questions. 3917 # 3918 3919 3920 3921 3922 3923 cygwin_help() { 3924 case $1 in 3925 unzip) 3926 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 3927 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3928 ;; 3929 zip) 3930 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 3931 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3932 ;; 3933 make) 3934 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 3935 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3936 ;; 3937 freetype) 3938 HELP_MSG=" 3939 The freetype library can now be build during the configure process. 3940 Download the freetype sources and unpack them into an arbitrary directory: 3941 3942 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 3943 tar -xzf freetype-2.5.3.tar.gz 3944 3945 Then run configure with '--with-freetype-src=<freetype_src>'. This will 3946 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 3947 builds or into '<freetype_src>/lib32' for 32-bit builds. 3948 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 3949 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds." 3950 ;; 3951 esac 3952 } 3953 3954 msys_help() { 3955 PKGHANDLER_COMMAND="" 3956 } 3957 3958 apt_help() { 3959 case $1 in 3960 reduced) 3961 PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;; 3962 devkit) 3963 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3964 openjdk) 3965 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3966 alsa) 3967 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3968 cups) 3969 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3970 freetype) 3971 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3972 ffi) 3973 PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;; 3974 x11) 3975 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 3976 ccache) 3977 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3978 esac 3979 } 3980 3981 yum_help() { 3982 case $1 in 3983 devkit) 3984 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3985 openjdk) 3986 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3987 alsa) 3988 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3989 cups) 3990 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3991 freetype) 3992 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 3993 x11) 3994 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;; 3995 ccache) 3996 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3997 esac 3998 } 3999 4000 port_help() { 4001 PKGHANDLER_COMMAND="" 4002 } 4003 4004 pkgutil_help() { 4005 PKGHANDLER_COMMAND="" 4006 } 4007 4008 pkgadd_help() { 4009 PKGHANDLER_COMMAND="" 4010 } 4011 4012 # This function will check if we're called from the "configure" wrapper while 4013 # printing --help. If so, we will print out additional information that can 4014 # only be extracted within the autoconf script, and then exit. This must be 4015 # called at the very beginning in configure.ac. 4016 4017 4018 4019 4020 4021 4022 # 4023 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4024 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4025 # 4026 # This code is free software; you can redistribute it and/or modify it 4027 # under the terms of the GNU General Public License version 2 only, as 4028 # published by the Free Software Foundation. Oracle designates this 4029 # particular file as subject to the "Classpath" exception as provided 4030 # by Oracle in the LICENSE file that accompanied this code. 4031 # 4032 # This code is distributed in the hope that it will be useful, but WITHOUT 4033 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4034 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4035 # version 2 for more details (a copy is included in the LICENSE file that 4036 # accompanied this code). 4037 # 4038 # You should have received a copy of the GNU General Public License version 4039 # 2 along with this work; if not, write to the Free Software Foundation, 4040 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4041 # 4042 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4043 # or visit www.oracle.com if you need additional information or have any 4044 # questions. 4045 # 4046 4047 ############################################################################### 4048 # Check which interpreter of the JVM we want to build. 4049 # Currently we have: 4050 # template: Template interpreter (the default) 4051 # cpp : C++ interpreter 4052 4053 4054 ############################################################################### 4055 # Check which variants of the JVM that we want to build. 4056 # Currently we have: 4057 # server: normal interpreter and a C2 or tiered C1/C2 compiler 4058 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 4059 # minimal1: reduced form of client with optional VM services and features stripped out 4060 # zero: no machine code interpreter, no compiler 4061 # zeroshark: zero interpreter and shark/llvm compiler backend 4062 # core: interpreter only, no compiler (only works on some platforms) 4063 4064 4065 4066 ############################################################################### 4067 # Setup legacy vars/targets and new vars to deal with different debug levels. 4068 # 4069 # release: no debug information, all optimizations, no asserts. 4070 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 4071 # fastdebug: debug information (-g), all optimizations, all asserts 4072 # slowdebug: debug information (-g), no optimizations, all asserts 4073 # 4074 4075 4076 4077 4078 4079 4080 # 4081 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4082 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4083 # 4084 # This code is free software; you can redistribute it and/or modify it 4085 # under the terms of the GNU General Public License version 2 only, as 4086 # published by the Free Software Foundation. Oracle designates this 4087 # particular file as subject to the "Classpath" exception as provided 4088 # by Oracle in the LICENSE file that accompanied this code. 4089 # 4090 # This code is distributed in the hope that it will be useful, but WITHOUT 4091 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4092 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4093 # version 2 for more details (a copy is included in the LICENSE file that 4094 # accompanied this code). 4095 # 4096 # You should have received a copy of the GNU General Public License version 4097 # 2 along with this work; if not, write to the Free Software Foundation, 4098 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4099 # 4100 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4101 # or visit www.oracle.com if you need additional information or have any 4102 # questions. 4103 # 4104 4105 ############################################################################### 4106 # Check which variant of the JDK that we want to build. 4107 # Currently we have: 4108 # normal: standard edition 4109 # but the custom make system may add other variants 4110 # 4111 # Effectively the JDK variant gives a name to a specific set of 4112 # modules to compile into the JDK. 4113 4114 4115 ############################################################################### 4116 # Set the debug level 4117 # release: no debug information, all optimizations, no asserts. 4118 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 4119 # fastdebug: debug information (-g), all optimizations, all asserts 4120 # slowdebug: debug information (-g), no optimizations, all asserts 4121 4122 4123 ############################################################################### 4124 # 4125 # Should we build only OpenJDK even if closed sources are present? 4126 # 4127 4128 4129 4130 4131 ############################################################################### 4132 # 4133 # Enable or disable the elliptic curve crypto implementation 4134 # 4135 4136 4137 4138 4139 ################################################################################ 4140 # 4141 # Gcov coverage data for hotspot 4142 # 4143 4144 4145 ################################################################################ 4146 # 4147 # Static build support. When enabled will generate static 4148 # libraries instead of shared libraries for all JDK libs. 4149 # 4150 4151 4152 # 4153 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 4154 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4155 # 4156 # This code is free software; you can redistribute it and/or modify it 4157 # under the terms of the GNU General Public License version 2 only, as 4158 # published by the Free Software Foundation. Oracle designates this 4159 # particular file as subject to the "Classpath" exception as provided 4160 # by Oracle in the LICENSE file that accompanied this code. 4161 # 4162 # This code is distributed in the hope that it will be useful, but WITHOUT 4163 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4164 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4165 # version 2 for more details (a copy is included in the LICENSE file that 4166 # accompanied this code). 4167 # 4168 # You should have received a copy of the GNU General Public License version 4169 # 2 along with this work; if not, write to the Free Software Foundation, 4170 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4171 # 4172 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4173 # or visit www.oracle.com if you need additional information or have any 4174 # questions. 4175 # 4176 4177 ############################################################################### 4178 # 4179 # Setup version numbers 4180 # 4181 4182 # Verify that a given string represents a valid version number, and assign it 4183 # to a variable. 4184 4185 # Argument 1: the variable to assign to 4186 # Argument 2: the value given by the user 4187 4188 4189 4190 4191 # 4192 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4193 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4194 # 4195 # This code is free software; you can redistribute it and/or modify it 4196 # under the terms of the GNU General Public License version 2 only, as 4197 # published by the Free Software Foundation. Oracle designates this 4198 # particular file as subject to the "Classpath" exception as provided 4199 # by Oracle in the LICENSE file that accompanied this code. 4200 # 4201 # This code is distributed in the hope that it will be useful, but WITHOUT 4202 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4203 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4204 # version 2 for more details (a copy is included in the LICENSE file that 4205 # accompanied this code). 4206 # 4207 # You should have received a copy of the GNU General Public License version 4208 # 2 along with this work; if not, write to the Free Software Foundation, 4209 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4210 # 4211 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4212 # or visit www.oracle.com if you need additional information or have any 4213 # questions. 4214 # 4215 4216 # Major library component reside in separate files. 4217 # 4218 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4219 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4220 # 4221 # This code is free software; you can redistribute it and/or modify it 4222 # under the terms of the GNU General Public License version 2 only, as 4223 # published by the Free Software Foundation. Oracle designates this 4224 # particular file as subject to the "Classpath" exception as provided 4225 # by Oracle in the LICENSE file that accompanied this code. 4226 # 4227 # This code is distributed in the hope that it will be useful, but WITHOUT 4228 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4229 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4230 # version 2 for more details (a copy is included in the LICENSE file that 4231 # accompanied this code). 4232 # 4233 # You should have received a copy of the GNU General Public License version 4234 # 2 along with this work; if not, write to the Free Software Foundation, 4235 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4236 # 4237 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4238 # or visit www.oracle.com if you need additional information or have any 4239 # questions. 4240 # 4241 4242 ################################################################################ 4243 # Setup alsa (Advanced Linux Sound Architecture) 4244 ################################################################################ 4245 4246 4247 # 4248 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4249 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4250 # 4251 # This code is free software; you can redistribute it and/or modify it 4252 # under the terms of the GNU General Public License version 2 only, as 4253 # published by the Free Software Foundation. Oracle designates this 4254 # particular file as subject to the "Classpath" exception as provided 4255 # by Oracle in the LICENSE file that accompanied this code. 4256 # 4257 # This code is distributed in the hope that it will be useful, but WITHOUT 4258 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4259 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4260 # version 2 for more details (a copy is included in the LICENSE file that 4261 # accompanied this code). 4262 # 4263 # You should have received a copy of the GNU General Public License version 4264 # 2 along with this work; if not, write to the Free Software Foundation, 4265 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4266 # 4267 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4268 # or visit www.oracle.com if you need additional information or have any 4269 # questions. 4270 # 4271 4272 ################################################################################ 4273 # Setup bundled libraries. 4274 # 4275 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the 4276 # OpenJDK repository. Default is to use these libraries as bundled, but they 4277 # might be replaced by en external version by the user. 4278 ################################################################################ 4279 4280 4281 ################################################################################ 4282 # Setup libjpeg 4283 ################################################################################ 4284 4285 4286 ################################################################################ 4287 # Setup giflib 4288 ################################################################################ 4289 4290 4291 ################################################################################ 4292 # Setup libpng 4293 ################################################################################ 4294 4295 4296 ################################################################################ 4297 # Setup zlib 4298 ################################################################################ 4299 4300 4301 ################################################################################ 4302 # Setup lcms (Little CMS) 4303 ################################################################################ 4304 4305 4306 # 4307 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4308 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4309 # 4310 # This code is free software; you can redistribute it and/or modify it 4311 # under the terms of the GNU General Public License version 2 only, as 4312 # published by the Free Software Foundation. Oracle designates this 4313 # particular file as subject to the "Classpath" exception as provided 4314 # by Oracle in the LICENSE file that accompanied this code. 4315 # 4316 # This code is distributed in the hope that it will be useful, but WITHOUT 4317 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4318 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4319 # version 2 for more details (a copy is included in the LICENSE file that 4320 # accompanied this code). 4321 # 4322 # You should have received a copy of the GNU General Public License version 4323 # 2 along with this work; if not, write to the Free Software Foundation, 4324 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4325 # 4326 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4327 # or visit www.oracle.com if you need additional information or have any 4328 # questions. 4329 # 4330 4331 ################################################################################ 4332 # Setup cups (Common Unix Printing System) 4333 ################################################################################ 4334 4335 4336 # 4337 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 4338 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4339 # 4340 # This code is free software; you can redistribute it and/or modify it 4341 # under the terms of the GNU General Public License version 2 only, as 4342 # published by the Free Software Foundation. Oracle designates this 4343 # particular file as subject to the "Classpath" exception as provided 4344 # by Oracle in the LICENSE file that accompanied this code. 4345 # 4346 # This code is distributed in the hope that it will be useful, but WITHOUT 4347 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4348 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4349 # version 2 for more details (a copy is included in the LICENSE file that 4350 # accompanied this code). 4351 # 4352 # You should have received a copy of the GNU General Public License version 4353 # 2 along with this work; if not, write to the Free Software Foundation, 4354 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4355 # 4356 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4357 # or visit www.oracle.com if you need additional information or have any 4358 # questions. 4359 # 4360 4361 ################################################################################ 4362 # Setup libffi (Foreign Function Interface) 4363 ################################################################################ 4364 4365 4366 # 4367 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4368 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4369 # 4370 # This code is free software; you can redistribute it and/or modify it 4371 # under the terms of the GNU General Public License version 2 only, as 4372 # published by the Free Software Foundation. Oracle designates this 4373 # particular file as subject to the "Classpath" exception as provided 4374 # by Oracle in the LICENSE file that accompanied this code. 4375 # 4376 # This code is distributed in the hope that it will be useful, but WITHOUT 4377 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4378 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4379 # version 2 for more details (a copy is included in the LICENSE file that 4380 # accompanied this code). 4381 # 4382 # You should have received a copy of the GNU General Public License version 4383 # 2 along with this work; if not, write to the Free Software Foundation, 4384 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4385 # 4386 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4387 # or visit www.oracle.com if you need additional information or have any 4388 # questions. 4389 # 4390 4391 ################################################################################ 4392 # Build the freetype lib from source 4393 ################################################################################ 4394 4395 4396 ################################################################################ 4397 # Check if a potential freeype library match is correct and usable 4398 ################################################################################ 4399 4400 4401 ################################################################################ 4402 # Setup freetype (The FreeType2 font rendering library) 4403 ################################################################################ 4404 4405 4406 # 4407 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4408 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4409 # 4410 # This code is free software; you can redistribute it and/or modify it 4411 # under the terms of the GNU General Public License version 2 only, as 4412 # published by the Free Software Foundation. Oracle designates this 4413 # particular file as subject to the "Classpath" exception as provided 4414 # by Oracle in the LICENSE file that accompanied this code. 4415 # 4416 # This code is distributed in the hope that it will be useful, but WITHOUT 4417 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4418 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4419 # version 2 for more details (a copy is included in the LICENSE file that 4420 # accompanied this code). 4421 # 4422 # You should have received a copy of the GNU General Public License version 4423 # 2 along with this work; if not, write to the Free Software Foundation, 4424 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4425 # 4426 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4427 # or visit www.oracle.com if you need additional information or have any 4428 # questions. 4429 # 4430 4431 ################################################################################ 4432 # Setup the standard C/C++ runtime libraries. 4433 # 4434 # Most importantly, determine if stdc++ should be linked statically or 4435 # dynamically. 4436 ################################################################################ 4437 4438 4439 # 4440 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4441 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4442 # 4443 # This code is free software; you can redistribute it and/or modify it 4444 # under the terms of the GNU General Public License version 2 only, as 4445 # published by the Free Software Foundation. Oracle designates this 4446 # particular file as subject to the "Classpath" exception as provided 4447 # by Oracle in the LICENSE file that accompanied this code. 4448 # 4449 # This code is distributed in the hope that it will be useful, but WITHOUT 4450 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4451 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4452 # version 2 for more details (a copy is included in the LICENSE file that 4453 # accompanied this code). 4454 # 4455 # You should have received a copy of the GNU General Public License version 4456 # 2 along with this work; if not, write to the Free Software Foundation, 4457 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4458 # 4459 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4460 # or visit www.oracle.com if you need additional information or have any 4461 # questions. 4462 # 4463 4464 ################################################################################ 4465 # Setup X11 Windows system 4466 ################################################################################ 4467 4468 4469 4470 ################################################################################ 4471 # Determine which libraries are needed for this configuration 4472 ################################################################################ 4473 4474 4475 ################################################################################ 4476 # Parse library options, and setup needed libraries 4477 ################################################################################ 4478 4479 4480 ################################################################################ 4481 # Setup llvm (Low-Level VM) 4482 ################################################################################ 4483 4484 4485 ################################################################################ 4486 # Setup various libraries, typically small system libraries 4487 ################################################################################ 4488 4489 4490 # 4491 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4492 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4493 # 4494 # This code is free software; you can redistribute it and/or modify it 4495 # under the terms of the GNU General Public License version 2 only, as 4496 # published by the Free Software Foundation. Oracle designates this 4497 # particular file as subject to the "Classpath" exception as provided 4498 # by Oracle in the LICENSE file that accompanied this code. 4499 # 4500 # This code is distributed in the hope that it will be useful, but WITHOUT 4501 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4502 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4503 # version 2 for more details (a copy is included in the LICENSE file that 4504 # accompanied this code). 4505 # 4506 # You should have received a copy of the GNU General Public License version 4507 # 2 along with this work; if not, write to the Free Software Foundation, 4508 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4509 # 4510 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4511 # or visit www.oracle.com if you need additional information or have any 4512 # questions. 4513 # 4514 4515 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4516 # Converts autoconf style CPU name to OpenJDK style, into 4517 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4518 4519 4520 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4521 # Converts autoconf style OS name to OpenJDK style, into 4522 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV. 4523 4524 4525 # Expects $host_os $host_cpu $build_os and $build_cpu 4526 # and $with_target_bits to have been setup! 4527 # 4528 # Translate the standard triplet(quadruplet) definition 4529 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4530 # OPENJDK_BUILD_OS, etc. 4531 4532 4533 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4534 # accordingly. Must be done after setting up build and target system, but before 4535 # doing anything else with these values. 4536 4537 4538 # Setup the legacy variables, for controlling the old makefiles. 4539 # 4540 4541 4542 4543 4544 #%%% Build and target systems %%% 4545 4546 4547 4548 4549 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4550 # Add -mX to various FLAGS variables. 4551 4552 4553 4554 4555 4556 4557 # 4558 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4559 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4560 # 4561 # This code is free software; you can redistribute it and/or modify it 4562 # under the terms of the GNU General Public License version 2 only, as 4563 # published by the Free Software Foundation. Oracle designates this 4564 # particular file as subject to the "Classpath" exception as provided 4565 # by Oracle in the LICENSE file that accompanied this code. 4566 # 4567 # This code is distributed in the hope that it will be useful, but WITHOUT 4568 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4569 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4570 # version 2 for more details (a copy is included in the LICENSE file that 4571 # accompanied this code). 4572 # 4573 # You should have received a copy of the GNU General Public License version 4574 # 2 along with this work; if not, write to the Free Software Foundation, 4575 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4576 # 4577 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4578 # or visit www.oracle.com if you need additional information or have any 4579 # questions. 4580 # 4581 4582 4583 4584 4585 4586 4587 4588 # 4589 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4590 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4591 # 4592 # This code is free software; you can redistribute it and/or modify it 4593 # under the terms of the GNU General Public License version 2 only, as 4594 # published by the Free Software Foundation. Oracle designates this 4595 # particular file as subject to the "Classpath" exception as provided 4596 # by Oracle in the LICENSE file that accompanied this code. 4597 # 4598 # This code is distributed in the hope that it will be useful, but WITHOUT 4599 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4600 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4601 # version 2 for more details (a copy is included in the LICENSE file that 4602 # accompanied this code). 4603 # 4604 # You should have received a copy of the GNU General Public License version 4605 # 2 along with this work; if not, write to the Free Software Foundation, 4606 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4607 # 4608 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4609 # or visit www.oracle.com if you need additional information or have any 4610 # questions. 4611 # 4612 4613 ######################################################################## 4614 # This file is responsible for detecting, verifying and setting up the 4615 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4616 # proper paths to the binaries, but it will not setup any flags. 4617 # 4618 # The binaries used is determined by the toolchain type, which is the family of 4619 # compilers and related tools that are used. 4620 ######################################################################## 4621 4622 4623 # All valid toolchains, regardless of platform (used by help.m4) 4624 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4625 4626 # These toolchains are valid on different platforms 4627 VALID_TOOLCHAINS_linux="gcc clang" 4628 VALID_TOOLCHAINS_solaris="solstudio" 4629 VALID_TOOLCHAINS_macosx="gcc clang" 4630 VALID_TOOLCHAINS_aix="xlc" 4631 VALID_TOOLCHAINS_windows="microsoft" 4632 4633 # Toolchain descriptions 4634 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4635 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4636 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4637 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4638 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4639 4640 # Setup a number of variables describing how native output files are 4641 # named on this platform/toolchain. 4642 4643 4644 # Determine which toolchain type to use, and make sure it is valid for this 4645 # platform. Setup various information about the selected toolchain. 4646 4647 4648 # Before we start detecting the toolchain executables, we might need some 4649 # special setup, e.g. additional paths etc. 4650 4651 4652 # Restore path, etc 4653 4654 4655 # Check if a compiler is of the toolchain type we expect, and save the version 4656 # information from it. If the compiler does not match the expected type, 4657 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4658 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4659 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4660 # 4661 # $1 = compiler to test (CC or CXX) 4662 # $2 = human readable name of compiler (C or C++) 4663 4664 4665 # Try to locate the given C or C++ compiler in the path, or otherwise. 4666 # 4667 # $1 = compiler to test (CC or CXX) 4668 # $2 = human readable name of compiler (C or C++) 4669 # $3 = list of compiler names to search for 4670 4671 4672 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4673 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4674 # archiver (AR). Verify that the compilers are correct according to the 4675 # toolchain type. 4676 4677 4678 # Setup additional tools that is considered a part of the toolchain, but not the 4679 # core part. Many of these are highly platform-specific and do not exist, 4680 # and/or are not needed on all platforms. 4681 4682 4683 # Setup the build tools (i.e, the compiler and linker used to build programs 4684 # that should be run on the build platform, not the target platform, as a build 4685 # helper). Since the non-cross-compile case uses the normal, target compilers 4686 # for this, we can only do this after these have been setup. 4687 4688 4689 # Setup legacy variables that are still needed as alternative ways to refer to 4690 # parts of the toolchain. 4691 4692 4693 # Do some additional checks on the detected tools. 4694 4695 4696 # Setup the JTReg Regression Test Harness. 4697 4698 4699 # 4700 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4701 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4702 # 4703 # This code is free software; you can redistribute it and/or modify it 4704 # under the terms of the GNU General Public License version 2 only, as 4705 # published by the Free Software Foundation. Oracle designates this 4706 # particular file as subject to the "Classpath" exception as provided 4707 # by Oracle in the LICENSE file that accompanied this code. 4708 # 4709 # This code is distributed in the hope that it will be useful, but WITHOUT 4710 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4711 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4712 # version 2 for more details (a copy is included in the LICENSE file that 4713 # accompanied this code). 4714 # 4715 # You should have received a copy of the GNU General Public License version 4716 # 2 along with this work; if not, write to the Free Software Foundation, 4717 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4718 # 4719 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4720 # or visit www.oracle.com if you need additional information or have any 4721 # questions. 4722 # 4723 4724 ################################################################################ 4725 # The order of these defines the priority by which we try to find them. 4726 VALID_VS_VERSIONS="2013 2012 2010" 4727 4728 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 4729 VS_VERSION_INTERNAL_2010=100 4730 VS_MSVCR_2010=msvcr100.dll 4731 # We don't use msvcp on Visual Studio 2010 4732 #VS_MSVCP_2010=msvcp100.dll 4733 VS_ENVVAR_2010="VS100COMNTOOLS" 4734 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 4735 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 4736 VS_VS_PLATFORM_NAME_2010="v100" 4737 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 4738 4739 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 4740 VS_VERSION_INTERNAL_2012=110 4741 VS_MSVCR_2012=msvcr110.dll 4742 VS_MSVCP_2012=msvcp110.dll 4743 VS_ENVVAR_2012="VS110COMNTOOLS" 4744 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 4745 VS_SDK_INSTALLDIR_2012= 4746 VS_VS_PLATFORM_NAME_2012="v110" 4747 VS_SDK_PLATFORM_NAME_2012= 4748 4749 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 4750 VS_VERSION_INTERNAL_2013=120 4751 VS_MSVCR_2013=msvcr120.dll 4752 VS_MSVCP_2013=msvcp120.dll 4753 VS_ENVVAR_2013="VS120COMNTOOLS" 4754 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 4755 VS_SDK_INSTALLDIR_2013= 4756 VS_VS_PLATFORM_NAME_2013="v120" 4757 VS_SDK_PLATFORM_NAME_2013= 4758 4759 ################################################################################ 4760 4761 4762 4763 ################################################################################ 4764 4765 4766 4767 ################################################################################ 4768 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 4769 # build environment and assigns it to VS_ENV_CMD 4770 4771 4772 ################################################################################ 4773 4774 4775 4776 ################################################################################ 4777 # Check if the VS env variables were setup prior to running configure. 4778 # If not, then find vcvarsall.bat and run it automatically, and integrate 4779 # the set env variables into the spec file. 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 # This line needs to be here, verbatim, after all includes and the dummy hook 4795 # definitions. It is replaced with custom functionality when building 4796 # custom sources. 4797 #CUSTOM_AUTOCONF_INCLUDE 4798 4799 # Do not change or remove the following line, it is needed for consistency checks: 4800 DATE_WHEN_GENERATED=1450274477 4801 4802 ############################################################################### 4803 # 4804 # Initialization / Boot-strapping 4805 # 4806 # The bootstrapping process needs to solve the "chicken or the egg" problem, 4807 # thus it jumps back and forth, each time gaining something needed later on. 4808 # 4809 ############################################################################### 4810 4811 # If we are requested to print additional help, do that and then exit. 4812 # This must be the very first call. 4813 4814 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then 4815 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 4816 $PRINTF "Which are valid to use depends on the build platform.\n" 4817 for toolchain in $VALID_TOOLCHAINS_all; do 4818 # Use indirect variable referencing 4819 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 4820 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 4821 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 4822 done 4823 4824 # And now exit directly 4825 exit 0 4826 fi 4827 4828 4829 # Basic initialization that must happen first of all in the normal process. 4830 4831 # Save the original command line. This is passed to us by the wrapper configure script. 4832 4833 # Save the path variable before it gets changed 4834 ORIGINAL_PATH="$PATH" 4835 4836 DATE_WHEN_CONFIGURED=`LANG=C date` 4837 4838 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 4839 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 4841 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 4842 4843 4844 # Start with tools that do not need have cross compilation support 4845 # and can be expected to be found in the default PATH. These tools are 4846 # used by configure. 4847 4848 # First are all the simple required tools. 4849 4850 4851 4852 # Publish this variable in the help. 4853 4854 4855 if [ -z "${BASENAME+x}" ]; then 4856 # The variable is not set by user, try to locate tool using the code snippet 4857 for ac_prog in basename 4858 do 4859 # Extract the first word of "$ac_prog", so it can be a program name with args. 4860 set dummy $ac_prog; ac_word=$2 4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4862 $as_echo_n "checking for $ac_word... " >&6; } 4863 if ${ac_cv_path_BASENAME+:} false; then : 4864 $as_echo_n "(cached) " >&6 4865 else 4866 case $BASENAME in 4867 [\\/]* | ?:[\\/]*) 4868 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4869 ;; 4870 *) 4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4872 for as_dir in $PATH 4873 do 4874 IFS=$as_save_IFS 4875 test -z "$as_dir" && as_dir=. 4876 for ac_exec_ext in '' $ac_executable_extensions; do 4877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4878 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4880 break 2 4881 fi 4882 done 4883 done 4884 IFS=$as_save_IFS 4885 4886 ;; 4887 esac 4888 fi 4889 BASENAME=$ac_cv_path_BASENAME 4890 if test -n "$BASENAME"; then 4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4892 $as_echo "$BASENAME" >&6; } 4893 else 4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4895 $as_echo "no" >&6; } 4896 fi 4897 4898 4899 test -n "$BASENAME" && break 4900 done 4901 4902 else 4903 # The variable is set, but is it from the command line or the environment? 4904 4905 # Try to remove the string !BASENAME! from our list. 4906 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 4907 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4908 # If it failed, the variable was not from the command line. Ignore it, 4909 # but warn the user (except for BASH, which is always set by the calling BASH). 4910 if test "xBASENAME" != xBASH; then 4911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 4912 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 4913 fi 4914 # Try to locate tool using the code snippet 4915 for ac_prog in basename 4916 do 4917 # Extract the first word of "$ac_prog", so it can be a program name with args. 4918 set dummy $ac_prog; ac_word=$2 4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4920 $as_echo_n "checking for $ac_word... " >&6; } 4921 if ${ac_cv_path_BASENAME+:} false; then : 4922 $as_echo_n "(cached) " >&6 4923 else 4924 case $BASENAME in 4925 [\\/]* | ?:[\\/]*) 4926 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4927 ;; 4928 *) 4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4930 for as_dir in $PATH 4931 do 4932 IFS=$as_save_IFS 4933 test -z "$as_dir" && as_dir=. 4934 for ac_exec_ext in '' $ac_executable_extensions; do 4935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4936 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4938 break 2 4939 fi 4940 done 4941 done 4942 IFS=$as_save_IFS 4943 4944 ;; 4945 esac 4946 fi 4947 BASENAME=$ac_cv_path_BASENAME 4948 if test -n "$BASENAME"; then 4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4950 $as_echo "$BASENAME" >&6; } 4951 else 4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4953 $as_echo "no" >&6; } 4954 fi 4955 4956 4957 test -n "$BASENAME" && break 4958 done 4959 4960 else 4961 # If it succeeded, then it was overridden by the user. We will use it 4962 # for the tool. 4963 4964 # First remove it from the list of overridden variables, so we can test 4965 # for unknown variables in the end. 4966 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4967 4968 # Check if we try to supply an empty value 4969 if test "x$BASENAME" = x; then 4970 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5 4971 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;} 4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 4973 $as_echo_n "checking for BASENAME... " >&6; } 4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 4975 $as_echo "disabled" >&6; } 4976 else 4977 # Check if the provided tool contains a complete path. 4978 tool_specified="$BASENAME" 4979 tool_basename="${tool_specified##*/}" 4980 if test "x$tool_basename" = "x$tool_specified"; then 4981 # A command without a complete path is provided, search $PATH. 4982 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 4983 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 4984 # Extract the first word of "$tool_basename", so it can be a program name with args. 4985 set dummy $tool_basename; ac_word=$2 4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4987 $as_echo_n "checking for $ac_word... " >&6; } 4988 if ${ac_cv_path_BASENAME+:} false; then : 4989 $as_echo_n "(cached) " >&6 4990 else 4991 case $BASENAME in 4992 [\\/]* | ?:[\\/]*) 4993 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4994 ;; 4995 *) 4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4997 for as_dir in $PATH 4998 do 4999 IFS=$as_save_IFS 5000 test -z "$as_dir" && as_dir=. 5001 for ac_exec_ext in '' $ac_executable_extensions; do 5002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5003 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5005 break 2 5006 fi 5007 done 5008 done 5009 IFS=$as_save_IFS 5010 5011 ;; 5012 esac 5013 fi 5014 BASENAME=$ac_cv_path_BASENAME 5015 if test -n "$BASENAME"; then 5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5017 $as_echo "$BASENAME" >&6; } 5018 else 5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5020 $as_echo "no" >&6; } 5021 fi 5022 5023 5024 if test "x$BASENAME" = x; then 5025 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5026 fi 5027 else 5028 # Otherwise we believe it is a complete path. Use it as it is. 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 5030 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5032 $as_echo_n "checking for BASENAME... " >&6; } 5033 if test ! -x "$tool_specified"; then 5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5035 $as_echo "not found" >&6; } 5036 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 5037 fi 5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5039 $as_echo "$tool_specified" >&6; } 5040 fi 5041 fi 5042 fi 5043 5044 fi 5045 5046 5047 5048 if test "x$BASENAME" = x; then 5049 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 5050 fi 5051 5052 5053 5054 5055 5056 # Publish this variable in the help. 5057 5058 5059 if [ -z "${BASH+x}" ]; then 5060 # The variable is not set by user, try to locate tool using the code snippet 5061 for ac_prog in bash 5062 do 5063 # Extract the first word of "$ac_prog", so it can be a program name with args. 5064 set dummy $ac_prog; ac_word=$2 5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5066 $as_echo_n "checking for $ac_word... " >&6; } 5067 if ${ac_cv_path_BASH+:} false; then : 5068 $as_echo_n "(cached) " >&6 5069 else 5070 case $BASH in 5071 [\\/]* | ?:[\\/]*) 5072 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5073 ;; 5074 *) 5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5076 for as_dir in $PATH 5077 do 5078 IFS=$as_save_IFS 5079 test -z "$as_dir" && as_dir=. 5080 for ac_exec_ext in '' $ac_executable_extensions; do 5081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5082 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5084 break 2 5085 fi 5086 done 5087 done 5088 IFS=$as_save_IFS 5089 5090 ;; 5091 esac 5092 fi 5093 BASH=$ac_cv_path_BASH 5094 if test -n "$BASH"; then 5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5096 $as_echo "$BASH" >&6; } 5097 else 5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5099 $as_echo "no" >&6; } 5100 fi 5101 5102 5103 test -n "$BASH" && break 5104 done 5105 5106 else 5107 # The variable is set, but is it from the command line or the environment? 5108 5109 # Try to remove the string !BASH! from our list. 5110 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 5111 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5112 # If it failed, the variable was not from the command line. Ignore it, 5113 # but warn the user (except for BASH, which is always set by the calling BASH). 5114 if test "xBASH" != xBASH; then 5115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 5116 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 5117 fi 5118 # Try to locate tool using the code snippet 5119 for ac_prog in bash 5120 do 5121 # Extract the first word of "$ac_prog", so it can be a program name with args. 5122 set dummy $ac_prog; ac_word=$2 5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5124 $as_echo_n "checking for $ac_word... " >&6; } 5125 if ${ac_cv_path_BASH+:} false; then : 5126 $as_echo_n "(cached) " >&6 5127 else 5128 case $BASH in 5129 [\\/]* | ?:[\\/]*) 5130 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5131 ;; 5132 *) 5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5134 for as_dir in $PATH 5135 do 5136 IFS=$as_save_IFS 5137 test -z "$as_dir" && as_dir=. 5138 for ac_exec_ext in '' $ac_executable_extensions; do 5139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5140 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5142 break 2 5143 fi 5144 done 5145 done 5146 IFS=$as_save_IFS 5147 5148 ;; 5149 esac 5150 fi 5151 BASH=$ac_cv_path_BASH 5152 if test -n "$BASH"; then 5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5154 $as_echo "$BASH" >&6; } 5155 else 5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5157 $as_echo "no" >&6; } 5158 fi 5159 5160 5161 test -n "$BASH" && break 5162 done 5163 5164 else 5165 # If it succeeded, then it was overridden by the user. We will use it 5166 # for the tool. 5167 5168 # First remove it from the list of overridden variables, so we can test 5169 # for unknown variables in the end. 5170 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5171 5172 # Check if we try to supply an empty value 5173 if test "x$BASH" = x; then 5174 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5 5175 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;} 5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5177 $as_echo_n "checking for BASH... " >&6; } 5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5179 $as_echo "disabled" >&6; } 5180 else 5181 # Check if the provided tool contains a complete path. 5182 tool_specified="$BASH" 5183 tool_basename="${tool_specified##*/}" 5184 if test "x$tool_basename" = "x$tool_specified"; then 5185 # A command without a complete path is provided, search $PATH. 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 5187 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 5188 # Extract the first word of "$tool_basename", so it can be a program name with args. 5189 set dummy $tool_basename; ac_word=$2 5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5191 $as_echo_n "checking for $ac_word... " >&6; } 5192 if ${ac_cv_path_BASH+:} false; then : 5193 $as_echo_n "(cached) " >&6 5194 else 5195 case $BASH in 5196 [\\/]* | ?:[\\/]*) 5197 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5198 ;; 5199 *) 5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5201 for as_dir in $PATH 5202 do 5203 IFS=$as_save_IFS 5204 test -z "$as_dir" && as_dir=. 5205 for ac_exec_ext in '' $ac_executable_extensions; do 5206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5207 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5209 break 2 5210 fi 5211 done 5212 done 5213 IFS=$as_save_IFS 5214 5215 ;; 5216 esac 5217 fi 5218 BASH=$ac_cv_path_BASH 5219 if test -n "$BASH"; then 5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5221 $as_echo "$BASH" >&6; } 5222 else 5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5224 $as_echo "no" >&6; } 5225 fi 5226 5227 5228 if test "x$BASH" = x; then 5229 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5230 fi 5231 else 5232 # Otherwise we believe it is a complete path. Use it as it is. 5233 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 5234 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5236 $as_echo_n "checking for BASH... " >&6; } 5237 if test ! -x "$tool_specified"; then 5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5239 $as_echo "not found" >&6; } 5240 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 5241 fi 5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5243 $as_echo "$tool_specified" >&6; } 5244 fi 5245 fi 5246 fi 5247 5248 fi 5249 5250 5251 5252 if test "x$BASH" = x; then 5253 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 5254 fi 5255 5256 5257 5258 5259 5260 # Publish this variable in the help. 5261 5262 5263 if [ -z "${CAT+x}" ]; then 5264 # The variable is not set by user, try to locate tool using the code snippet 5265 for ac_prog in cat 5266 do 5267 # Extract the first word of "$ac_prog", so it can be a program name with args. 5268 set dummy $ac_prog; ac_word=$2 5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5270 $as_echo_n "checking for $ac_word... " >&6; } 5271 if ${ac_cv_path_CAT+:} false; then : 5272 $as_echo_n "(cached) " >&6 5273 else 5274 case $CAT in 5275 [\\/]* | ?:[\\/]*) 5276 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5277 ;; 5278 *) 5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5280 for as_dir in $PATH 5281 do 5282 IFS=$as_save_IFS 5283 test -z "$as_dir" && as_dir=. 5284 for ac_exec_ext in '' $ac_executable_extensions; do 5285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5286 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5288 break 2 5289 fi 5290 done 5291 done 5292 IFS=$as_save_IFS 5293 5294 ;; 5295 esac 5296 fi 5297 CAT=$ac_cv_path_CAT 5298 if test -n "$CAT"; then 5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5300 $as_echo "$CAT" >&6; } 5301 else 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5303 $as_echo "no" >&6; } 5304 fi 5305 5306 5307 test -n "$CAT" && break 5308 done 5309 5310 else 5311 # The variable is set, but is it from the command line or the environment? 5312 5313 # Try to remove the string !CAT! from our list. 5314 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 5315 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5316 # If it failed, the variable was not from the command line. Ignore it, 5317 # but warn the user (except for BASH, which is always set by the calling BASH). 5318 if test "xCAT" != xBASH; then 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 5320 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 5321 fi 5322 # Try to locate tool using the code snippet 5323 for ac_prog in cat 5324 do 5325 # Extract the first word of "$ac_prog", so it can be a program name with args. 5326 set dummy $ac_prog; ac_word=$2 5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5328 $as_echo_n "checking for $ac_word... " >&6; } 5329 if ${ac_cv_path_CAT+:} false; then : 5330 $as_echo_n "(cached) " >&6 5331 else 5332 case $CAT in 5333 [\\/]* | ?:[\\/]*) 5334 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5335 ;; 5336 *) 5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5338 for as_dir in $PATH 5339 do 5340 IFS=$as_save_IFS 5341 test -z "$as_dir" && as_dir=. 5342 for ac_exec_ext in '' $ac_executable_extensions; do 5343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5344 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5346 break 2 5347 fi 5348 done 5349 done 5350 IFS=$as_save_IFS 5351 5352 ;; 5353 esac 5354 fi 5355 CAT=$ac_cv_path_CAT 5356 if test -n "$CAT"; then 5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5358 $as_echo "$CAT" >&6; } 5359 else 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5361 $as_echo "no" >&6; } 5362 fi 5363 5364 5365 test -n "$CAT" && break 5366 done 5367 5368 else 5369 # If it succeeded, then it was overridden by the user. We will use it 5370 # for the tool. 5371 5372 # First remove it from the list of overridden variables, so we can test 5373 # for unknown variables in the end. 5374 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5375 5376 # Check if we try to supply an empty value 5377 if test "x$CAT" = x; then 5378 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5 5379 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;} 5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5381 $as_echo_n "checking for CAT... " >&6; } 5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5383 $as_echo "disabled" >&6; } 5384 else 5385 # Check if the provided tool contains a complete path. 5386 tool_specified="$CAT" 5387 tool_basename="${tool_specified##*/}" 5388 if test "x$tool_basename" = "x$tool_specified"; then 5389 # A command without a complete path is provided, search $PATH. 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 5391 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 5392 # Extract the first word of "$tool_basename", so it can be a program name with args. 5393 set dummy $tool_basename; ac_word=$2 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5395 $as_echo_n "checking for $ac_word... " >&6; } 5396 if ${ac_cv_path_CAT+:} false; then : 5397 $as_echo_n "(cached) " >&6 5398 else 5399 case $CAT in 5400 [\\/]* | ?:[\\/]*) 5401 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5402 ;; 5403 *) 5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5405 for as_dir in $PATH 5406 do 5407 IFS=$as_save_IFS 5408 test -z "$as_dir" && as_dir=. 5409 for ac_exec_ext in '' $ac_executable_extensions; do 5410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5411 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5413 break 2 5414 fi 5415 done 5416 done 5417 IFS=$as_save_IFS 5418 5419 ;; 5420 esac 5421 fi 5422 CAT=$ac_cv_path_CAT 5423 if test -n "$CAT"; then 5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5425 $as_echo "$CAT" >&6; } 5426 else 5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5428 $as_echo "no" >&6; } 5429 fi 5430 5431 5432 if test "x$CAT" = x; then 5433 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5434 fi 5435 else 5436 # Otherwise we believe it is a complete path. Use it as it is. 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 5438 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5440 $as_echo_n "checking for CAT... " >&6; } 5441 if test ! -x "$tool_specified"; then 5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5443 $as_echo "not found" >&6; } 5444 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 5445 fi 5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5447 $as_echo "$tool_specified" >&6; } 5448 fi 5449 fi 5450 fi 5451 5452 fi 5453 5454 5455 5456 if test "x$CAT" = x; then 5457 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 5458 fi 5459 5460 5461 5462 5463 5464 # Publish this variable in the help. 5465 5466 5467 if [ -z "${CHMOD+x}" ]; then 5468 # The variable is not set by user, try to locate tool using the code snippet 5469 for ac_prog in chmod 5470 do 5471 # Extract the first word of "$ac_prog", so it can be a program name with args. 5472 set dummy $ac_prog; ac_word=$2 5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5474 $as_echo_n "checking for $ac_word... " >&6; } 5475 if ${ac_cv_path_CHMOD+:} false; then : 5476 $as_echo_n "(cached) " >&6 5477 else 5478 case $CHMOD in 5479 [\\/]* | ?:[\\/]*) 5480 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5481 ;; 5482 *) 5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5484 for as_dir in $PATH 5485 do 5486 IFS=$as_save_IFS 5487 test -z "$as_dir" && as_dir=. 5488 for ac_exec_ext in '' $ac_executable_extensions; do 5489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5490 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5492 break 2 5493 fi 5494 done 5495 done 5496 IFS=$as_save_IFS 5497 5498 ;; 5499 esac 5500 fi 5501 CHMOD=$ac_cv_path_CHMOD 5502 if test -n "$CHMOD"; then 5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5504 $as_echo "$CHMOD" >&6; } 5505 else 5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5507 $as_echo "no" >&6; } 5508 fi 5509 5510 5511 test -n "$CHMOD" && break 5512 done 5513 5514 else 5515 # The variable is set, but is it from the command line or the environment? 5516 5517 # Try to remove the string !CHMOD! from our list. 5518 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5519 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5520 # If it failed, the variable was not from the command line. Ignore it, 5521 # but warn the user (except for BASH, which is always set by the calling BASH). 5522 if test "xCHMOD" != xBASH; then 5523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5524 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5525 fi 5526 # Try to locate tool using the code snippet 5527 for ac_prog in chmod 5528 do 5529 # Extract the first word of "$ac_prog", so it can be a program name with args. 5530 set dummy $ac_prog; ac_word=$2 5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5532 $as_echo_n "checking for $ac_word... " >&6; } 5533 if ${ac_cv_path_CHMOD+:} false; then : 5534 $as_echo_n "(cached) " >&6 5535 else 5536 case $CHMOD in 5537 [\\/]* | ?:[\\/]*) 5538 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5539 ;; 5540 *) 5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5542 for as_dir in $PATH 5543 do 5544 IFS=$as_save_IFS 5545 test -z "$as_dir" && as_dir=. 5546 for ac_exec_ext in '' $ac_executable_extensions; do 5547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5548 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5550 break 2 5551 fi 5552 done 5553 done 5554 IFS=$as_save_IFS 5555 5556 ;; 5557 esac 5558 fi 5559 CHMOD=$ac_cv_path_CHMOD 5560 if test -n "$CHMOD"; then 5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5562 $as_echo "$CHMOD" >&6; } 5563 else 5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5565 $as_echo "no" >&6; } 5566 fi 5567 5568 5569 test -n "$CHMOD" && break 5570 done 5571 5572 else 5573 # If it succeeded, then it was overridden by the user. We will use it 5574 # for the tool. 5575 5576 # First remove it from the list of overridden variables, so we can test 5577 # for unknown variables in the end. 5578 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5579 5580 # Check if we try to supply an empty value 5581 if test "x$CHMOD" = x; then 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5 5583 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;} 5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5585 $as_echo_n "checking for CHMOD... " >&6; } 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5587 $as_echo "disabled" >&6; } 5588 else 5589 # Check if the provided tool contains a complete path. 5590 tool_specified="$CHMOD" 5591 tool_basename="${tool_specified##*/}" 5592 if test "x$tool_basename" = "x$tool_specified"; then 5593 # A command without a complete path is provided, search $PATH. 5594 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5595 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5596 # Extract the first word of "$tool_basename", so it can be a program name with args. 5597 set dummy $tool_basename; ac_word=$2 5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5599 $as_echo_n "checking for $ac_word... " >&6; } 5600 if ${ac_cv_path_CHMOD+:} false; then : 5601 $as_echo_n "(cached) " >&6 5602 else 5603 case $CHMOD in 5604 [\\/]* | ?:[\\/]*) 5605 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5606 ;; 5607 *) 5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5609 for as_dir in $PATH 5610 do 5611 IFS=$as_save_IFS 5612 test -z "$as_dir" && as_dir=. 5613 for ac_exec_ext in '' $ac_executable_extensions; do 5614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5615 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5617 break 2 5618 fi 5619 done 5620 done 5621 IFS=$as_save_IFS 5622 5623 ;; 5624 esac 5625 fi 5626 CHMOD=$ac_cv_path_CHMOD 5627 if test -n "$CHMOD"; then 5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5629 $as_echo "$CHMOD" >&6; } 5630 else 5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5632 $as_echo "no" >&6; } 5633 fi 5634 5635 5636 if test "x$CHMOD" = x; then 5637 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5638 fi 5639 else 5640 # Otherwise we believe it is a complete path. Use it as it is. 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5642 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5644 $as_echo_n "checking for CHMOD... " >&6; } 5645 if test ! -x "$tool_specified"; then 5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5647 $as_echo "not found" >&6; } 5648 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5649 fi 5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5651 $as_echo "$tool_specified" >&6; } 5652 fi 5653 fi 5654 fi 5655 5656 fi 5657 5658 5659 5660 if test "x$CHMOD" = x; then 5661 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5662 fi 5663 5664 5665 5666 5667 5668 # Publish this variable in the help. 5669 5670 5671 if [ -z "${CMP+x}" ]; then 5672 # The variable is not set by user, try to locate tool using the code snippet 5673 for ac_prog in cmp 5674 do 5675 # Extract the first word of "$ac_prog", so it can be a program name with args. 5676 set dummy $ac_prog; ac_word=$2 5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5678 $as_echo_n "checking for $ac_word... " >&6; } 5679 if ${ac_cv_path_CMP+:} false; then : 5680 $as_echo_n "(cached) " >&6 5681 else 5682 case $CMP in 5683 [\\/]* | ?:[\\/]*) 5684 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5685 ;; 5686 *) 5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5688 for as_dir in $PATH 5689 do 5690 IFS=$as_save_IFS 5691 test -z "$as_dir" && as_dir=. 5692 for ac_exec_ext in '' $ac_executable_extensions; do 5693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5694 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5696 break 2 5697 fi 5698 done 5699 done 5700 IFS=$as_save_IFS 5701 5702 ;; 5703 esac 5704 fi 5705 CMP=$ac_cv_path_CMP 5706 if test -n "$CMP"; then 5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5708 $as_echo "$CMP" >&6; } 5709 else 5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5711 $as_echo "no" >&6; } 5712 fi 5713 5714 5715 test -n "$CMP" && break 5716 done 5717 5718 else 5719 # The variable is set, but is it from the command line or the environment? 5720 5721 # Try to remove the string !CMP! from our list. 5722 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 5723 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5724 # If it failed, the variable was not from the command line. Ignore it, 5725 # but warn the user (except for BASH, which is always set by the calling BASH). 5726 if test "xCMP" != xBASH; then 5727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 5728 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 5729 fi 5730 # Try to locate tool using the code snippet 5731 for ac_prog in cmp 5732 do 5733 # Extract the first word of "$ac_prog", so it can be a program name with args. 5734 set dummy $ac_prog; ac_word=$2 5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5736 $as_echo_n "checking for $ac_word... " >&6; } 5737 if ${ac_cv_path_CMP+:} false; then : 5738 $as_echo_n "(cached) " >&6 5739 else 5740 case $CMP in 5741 [\\/]* | ?:[\\/]*) 5742 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5743 ;; 5744 *) 5745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5746 for as_dir in $PATH 5747 do 5748 IFS=$as_save_IFS 5749 test -z "$as_dir" && as_dir=. 5750 for ac_exec_ext in '' $ac_executable_extensions; do 5751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5752 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5754 break 2 5755 fi 5756 done 5757 done 5758 IFS=$as_save_IFS 5759 5760 ;; 5761 esac 5762 fi 5763 CMP=$ac_cv_path_CMP 5764 if test -n "$CMP"; then 5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5766 $as_echo "$CMP" >&6; } 5767 else 5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5769 $as_echo "no" >&6; } 5770 fi 5771 5772 5773 test -n "$CMP" && break 5774 done 5775 5776 else 5777 # If it succeeded, then it was overridden by the user. We will use it 5778 # for the tool. 5779 5780 # First remove it from the list of overridden variables, so we can test 5781 # for unknown variables in the end. 5782 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5783 5784 # Check if we try to supply an empty value 5785 if test "x$CMP" = x; then 5786 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5 5787 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;} 5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5789 $as_echo_n "checking for CMP... " >&6; } 5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5791 $as_echo "disabled" >&6; } 5792 else 5793 # Check if the provided tool contains a complete path. 5794 tool_specified="$CMP" 5795 tool_basename="${tool_specified##*/}" 5796 if test "x$tool_basename" = "x$tool_specified"; then 5797 # A command without a complete path is provided, search $PATH. 5798 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 5799 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 5800 # Extract the first word of "$tool_basename", so it can be a program name with args. 5801 set dummy $tool_basename; ac_word=$2 5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5803 $as_echo_n "checking for $ac_word... " >&6; } 5804 if ${ac_cv_path_CMP+:} false; then : 5805 $as_echo_n "(cached) " >&6 5806 else 5807 case $CMP in 5808 [\\/]* | ?:[\\/]*) 5809 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5810 ;; 5811 *) 5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5813 for as_dir in $PATH 5814 do 5815 IFS=$as_save_IFS 5816 test -z "$as_dir" && as_dir=. 5817 for ac_exec_ext in '' $ac_executable_extensions; do 5818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5819 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5821 break 2 5822 fi 5823 done 5824 done 5825 IFS=$as_save_IFS 5826 5827 ;; 5828 esac 5829 fi 5830 CMP=$ac_cv_path_CMP 5831 if test -n "$CMP"; then 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5833 $as_echo "$CMP" >&6; } 5834 else 5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5836 $as_echo "no" >&6; } 5837 fi 5838 5839 5840 if test "x$CMP" = x; then 5841 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5842 fi 5843 else 5844 # Otherwise we believe it is a complete path. Use it as it is. 5845 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 5846 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5848 $as_echo_n "checking for CMP... " >&6; } 5849 if test ! -x "$tool_specified"; then 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5851 $as_echo "not found" >&6; } 5852 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 5853 fi 5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5855 $as_echo "$tool_specified" >&6; } 5856 fi 5857 fi 5858 fi 5859 5860 fi 5861 5862 5863 5864 if test "x$CMP" = x; then 5865 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 5866 fi 5867 5868 5869 5870 5871 5872 # Publish this variable in the help. 5873 5874 5875 if [ -z "${COMM+x}" ]; then 5876 # The variable is not set by user, try to locate tool using the code snippet 5877 for ac_prog in comm 5878 do 5879 # Extract the first word of "$ac_prog", so it can be a program name with args. 5880 set dummy $ac_prog; ac_word=$2 5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5882 $as_echo_n "checking for $ac_word... " >&6; } 5883 if ${ac_cv_path_COMM+:} false; then : 5884 $as_echo_n "(cached) " >&6 5885 else 5886 case $COMM in 5887 [\\/]* | ?:[\\/]*) 5888 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5889 ;; 5890 *) 5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5892 for as_dir in $PATH 5893 do 5894 IFS=$as_save_IFS 5895 test -z "$as_dir" && as_dir=. 5896 for ac_exec_ext in '' $ac_executable_extensions; do 5897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5898 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5900 break 2 5901 fi 5902 done 5903 done 5904 IFS=$as_save_IFS 5905 5906 ;; 5907 esac 5908 fi 5909 COMM=$ac_cv_path_COMM 5910 if test -n "$COMM"; then 5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5912 $as_echo "$COMM" >&6; } 5913 else 5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5915 $as_echo "no" >&6; } 5916 fi 5917 5918 5919 test -n "$COMM" && break 5920 done 5921 5922 else 5923 # The variable is set, but is it from the command line or the environment? 5924 5925 # Try to remove the string !COMM! from our list. 5926 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 5927 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5928 # If it failed, the variable was not from the command line. Ignore it, 5929 # but warn the user (except for BASH, which is always set by the calling BASH). 5930 if test "xCOMM" != xBASH; then 5931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 5932 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 5933 fi 5934 # Try to locate tool using the code snippet 5935 for ac_prog in comm 5936 do 5937 # Extract the first word of "$ac_prog", so it can be a program name with args. 5938 set dummy $ac_prog; ac_word=$2 5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5940 $as_echo_n "checking for $ac_word... " >&6; } 5941 if ${ac_cv_path_COMM+:} false; then : 5942 $as_echo_n "(cached) " >&6 5943 else 5944 case $COMM in 5945 [\\/]* | ?:[\\/]*) 5946 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5947 ;; 5948 *) 5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5950 for as_dir in $PATH 5951 do 5952 IFS=$as_save_IFS 5953 test -z "$as_dir" && as_dir=. 5954 for ac_exec_ext in '' $ac_executable_extensions; do 5955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5956 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5958 break 2 5959 fi 5960 done 5961 done 5962 IFS=$as_save_IFS 5963 5964 ;; 5965 esac 5966 fi 5967 COMM=$ac_cv_path_COMM 5968 if test -n "$COMM"; then 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5970 $as_echo "$COMM" >&6; } 5971 else 5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5973 $as_echo "no" >&6; } 5974 fi 5975 5976 5977 test -n "$COMM" && break 5978 done 5979 5980 else 5981 # If it succeeded, then it was overridden by the user. We will use it 5982 # for the tool. 5983 5984 # First remove it from the list of overridden variables, so we can test 5985 # for unknown variables in the end. 5986 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5987 5988 # Check if we try to supply an empty value 5989 if test "x$COMM" = x; then 5990 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5 5991 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;} 5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 5993 $as_echo_n "checking for COMM... " >&6; } 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5995 $as_echo "disabled" >&6; } 5996 else 5997 # Check if the provided tool contains a complete path. 5998 tool_specified="$COMM" 5999 tool_basename="${tool_specified##*/}" 6000 if test "x$tool_basename" = "x$tool_specified"; then 6001 # A command without a complete path is provided, search $PATH. 6002 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 6003 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 6004 # Extract the first word of "$tool_basename", so it can be a program name with args. 6005 set dummy $tool_basename; ac_word=$2 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6007 $as_echo_n "checking for $ac_word... " >&6; } 6008 if ${ac_cv_path_COMM+:} false; then : 6009 $as_echo_n "(cached) " >&6 6010 else 6011 case $COMM in 6012 [\\/]* | ?:[\\/]*) 6013 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6014 ;; 6015 *) 6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6017 for as_dir in $PATH 6018 do 6019 IFS=$as_save_IFS 6020 test -z "$as_dir" && as_dir=. 6021 for ac_exec_ext in '' $ac_executable_extensions; do 6022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6023 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6025 break 2 6026 fi 6027 done 6028 done 6029 IFS=$as_save_IFS 6030 6031 ;; 6032 esac 6033 fi 6034 COMM=$ac_cv_path_COMM 6035 if test -n "$COMM"; then 6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6037 $as_echo "$COMM" >&6; } 6038 else 6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6040 $as_echo "no" >&6; } 6041 fi 6042 6043 6044 if test "x$COMM" = x; then 6045 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6046 fi 6047 else 6048 # Otherwise we believe it is a complete path. Use it as it is. 6049 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 6050 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6052 $as_echo_n "checking for COMM... " >&6; } 6053 if test ! -x "$tool_specified"; then 6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6055 $as_echo "not found" >&6; } 6056 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 6057 fi 6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6059 $as_echo "$tool_specified" >&6; } 6060 fi 6061 fi 6062 fi 6063 6064 fi 6065 6066 6067 6068 if test "x$COMM" = x; then 6069 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 6070 fi 6071 6072 6073 6074 6075 6076 # Publish this variable in the help. 6077 6078 6079 if [ -z "${CP+x}" ]; then 6080 # The variable is not set by user, try to locate tool using the code snippet 6081 for ac_prog in cp 6082 do 6083 # Extract the first word of "$ac_prog", so it can be a program name with args. 6084 set dummy $ac_prog; ac_word=$2 6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6086 $as_echo_n "checking for $ac_word... " >&6; } 6087 if ${ac_cv_path_CP+:} false; then : 6088 $as_echo_n "(cached) " >&6 6089 else 6090 case $CP in 6091 [\\/]* | ?:[\\/]*) 6092 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6093 ;; 6094 *) 6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6096 for as_dir in $PATH 6097 do 6098 IFS=$as_save_IFS 6099 test -z "$as_dir" && as_dir=. 6100 for ac_exec_ext in '' $ac_executable_extensions; do 6101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6102 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6104 break 2 6105 fi 6106 done 6107 done 6108 IFS=$as_save_IFS 6109 6110 ;; 6111 esac 6112 fi 6113 CP=$ac_cv_path_CP 6114 if test -n "$CP"; then 6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6116 $as_echo "$CP" >&6; } 6117 else 6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6119 $as_echo "no" >&6; } 6120 fi 6121 6122 6123 test -n "$CP" && break 6124 done 6125 6126 else 6127 # The variable is set, but is it from the command line or the environment? 6128 6129 # Try to remove the string !CP! from our list. 6130 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 6131 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6132 # If it failed, the variable was not from the command line. Ignore it, 6133 # but warn the user (except for BASH, which is always set by the calling BASH). 6134 if test "xCP" != xBASH; then 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 6136 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 6137 fi 6138 # Try to locate tool using the code snippet 6139 for ac_prog in cp 6140 do 6141 # Extract the first word of "$ac_prog", so it can be a program name with args. 6142 set dummy $ac_prog; ac_word=$2 6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6144 $as_echo_n "checking for $ac_word... " >&6; } 6145 if ${ac_cv_path_CP+:} false; then : 6146 $as_echo_n "(cached) " >&6 6147 else 6148 case $CP in 6149 [\\/]* | ?:[\\/]*) 6150 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6151 ;; 6152 *) 6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6154 for as_dir in $PATH 6155 do 6156 IFS=$as_save_IFS 6157 test -z "$as_dir" && as_dir=. 6158 for ac_exec_ext in '' $ac_executable_extensions; do 6159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6160 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6162 break 2 6163 fi 6164 done 6165 done 6166 IFS=$as_save_IFS 6167 6168 ;; 6169 esac 6170 fi 6171 CP=$ac_cv_path_CP 6172 if test -n "$CP"; then 6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6174 $as_echo "$CP" >&6; } 6175 else 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6177 $as_echo "no" >&6; } 6178 fi 6179 6180 6181 test -n "$CP" && break 6182 done 6183 6184 else 6185 # If it succeeded, then it was overridden by the user. We will use it 6186 # for the tool. 6187 6188 # First remove it from the list of overridden variables, so we can test 6189 # for unknown variables in the end. 6190 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6191 6192 # Check if we try to supply an empty value 6193 if test "x$CP" = x; then 6194 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5 6195 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;} 6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6197 $as_echo_n "checking for CP... " >&6; } 6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6199 $as_echo "disabled" >&6; } 6200 else 6201 # Check if the provided tool contains a complete path. 6202 tool_specified="$CP" 6203 tool_basename="${tool_specified##*/}" 6204 if test "x$tool_basename" = "x$tool_specified"; then 6205 # A command without a complete path is provided, search $PATH. 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 6207 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 6208 # Extract the first word of "$tool_basename", so it can be a program name with args. 6209 set dummy $tool_basename; ac_word=$2 6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6211 $as_echo_n "checking for $ac_word... " >&6; } 6212 if ${ac_cv_path_CP+:} false; then : 6213 $as_echo_n "(cached) " >&6 6214 else 6215 case $CP in 6216 [\\/]* | ?:[\\/]*) 6217 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6218 ;; 6219 *) 6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6221 for as_dir in $PATH 6222 do 6223 IFS=$as_save_IFS 6224 test -z "$as_dir" && as_dir=. 6225 for ac_exec_ext in '' $ac_executable_extensions; do 6226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6227 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6229 break 2 6230 fi 6231 done 6232 done 6233 IFS=$as_save_IFS 6234 6235 ;; 6236 esac 6237 fi 6238 CP=$ac_cv_path_CP 6239 if test -n "$CP"; then 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6241 $as_echo "$CP" >&6; } 6242 else 6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6244 $as_echo "no" >&6; } 6245 fi 6246 6247 6248 if test "x$CP" = x; then 6249 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6250 fi 6251 else 6252 # Otherwise we believe it is a complete path. Use it as it is. 6253 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 6254 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6256 $as_echo_n "checking for CP... " >&6; } 6257 if test ! -x "$tool_specified"; then 6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6259 $as_echo "not found" >&6; } 6260 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 6261 fi 6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6263 $as_echo "$tool_specified" >&6; } 6264 fi 6265 fi 6266 fi 6267 6268 fi 6269 6270 6271 6272 if test "x$CP" = x; then 6273 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 6274 fi 6275 6276 6277 6278 6279 6280 # Publish this variable in the help. 6281 6282 6283 if [ -z "${CUT+x}" ]; then 6284 # The variable is not set by user, try to locate tool using the code snippet 6285 for ac_prog in cut 6286 do 6287 # Extract the first word of "$ac_prog", so it can be a program name with args. 6288 set dummy $ac_prog; ac_word=$2 6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6290 $as_echo_n "checking for $ac_word... " >&6; } 6291 if ${ac_cv_path_CUT+:} false; then : 6292 $as_echo_n "(cached) " >&6 6293 else 6294 case $CUT in 6295 [\\/]* | ?:[\\/]*) 6296 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6297 ;; 6298 *) 6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6300 for as_dir in $PATH 6301 do 6302 IFS=$as_save_IFS 6303 test -z "$as_dir" && as_dir=. 6304 for ac_exec_ext in '' $ac_executable_extensions; do 6305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6306 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6308 break 2 6309 fi 6310 done 6311 done 6312 IFS=$as_save_IFS 6313 6314 ;; 6315 esac 6316 fi 6317 CUT=$ac_cv_path_CUT 6318 if test -n "$CUT"; then 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6320 $as_echo "$CUT" >&6; } 6321 else 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6323 $as_echo "no" >&6; } 6324 fi 6325 6326 6327 test -n "$CUT" && break 6328 done 6329 6330 else 6331 # The variable is set, but is it from the command line or the environment? 6332 6333 # Try to remove the string !CUT! from our list. 6334 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 6335 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6336 # If it failed, the variable was not from the command line. Ignore it, 6337 # but warn the user (except for BASH, which is always set by the calling BASH). 6338 if test "xCUT" != xBASH; then 6339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 6340 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 6341 fi 6342 # Try to locate tool using the code snippet 6343 for ac_prog in cut 6344 do 6345 # Extract the first word of "$ac_prog", so it can be a program name with args. 6346 set dummy $ac_prog; ac_word=$2 6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6348 $as_echo_n "checking for $ac_word... " >&6; } 6349 if ${ac_cv_path_CUT+:} false; then : 6350 $as_echo_n "(cached) " >&6 6351 else 6352 case $CUT in 6353 [\\/]* | ?:[\\/]*) 6354 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6355 ;; 6356 *) 6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6358 for as_dir in $PATH 6359 do 6360 IFS=$as_save_IFS 6361 test -z "$as_dir" && as_dir=. 6362 for ac_exec_ext in '' $ac_executable_extensions; do 6363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6364 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6366 break 2 6367 fi 6368 done 6369 done 6370 IFS=$as_save_IFS 6371 6372 ;; 6373 esac 6374 fi 6375 CUT=$ac_cv_path_CUT 6376 if test -n "$CUT"; then 6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6378 $as_echo "$CUT" >&6; } 6379 else 6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6381 $as_echo "no" >&6; } 6382 fi 6383 6384 6385 test -n "$CUT" && break 6386 done 6387 6388 else 6389 # If it succeeded, then it was overridden by the user. We will use it 6390 # for the tool. 6391 6392 # First remove it from the list of overridden variables, so we can test 6393 # for unknown variables in the end. 6394 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6395 6396 # Check if we try to supply an empty value 6397 if test "x$CUT" = x; then 6398 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5 6399 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;} 6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6401 $as_echo_n "checking for CUT... " >&6; } 6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6403 $as_echo "disabled" >&6; } 6404 else 6405 # Check if the provided tool contains a complete path. 6406 tool_specified="$CUT" 6407 tool_basename="${tool_specified##*/}" 6408 if test "x$tool_basename" = "x$tool_specified"; then 6409 # A command without a complete path is provided, search $PATH. 6410 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 6411 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 6412 # Extract the first word of "$tool_basename", so it can be a program name with args. 6413 set dummy $tool_basename; ac_word=$2 6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6415 $as_echo_n "checking for $ac_word... " >&6; } 6416 if ${ac_cv_path_CUT+:} false; then : 6417 $as_echo_n "(cached) " >&6 6418 else 6419 case $CUT in 6420 [\\/]* | ?:[\\/]*) 6421 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6422 ;; 6423 *) 6424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6425 for as_dir in $PATH 6426 do 6427 IFS=$as_save_IFS 6428 test -z "$as_dir" && as_dir=. 6429 for ac_exec_ext in '' $ac_executable_extensions; do 6430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6431 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6433 break 2 6434 fi 6435 done 6436 done 6437 IFS=$as_save_IFS 6438 6439 ;; 6440 esac 6441 fi 6442 CUT=$ac_cv_path_CUT 6443 if test -n "$CUT"; then 6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6445 $as_echo "$CUT" >&6; } 6446 else 6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6448 $as_echo "no" >&6; } 6449 fi 6450 6451 6452 if test "x$CUT" = x; then 6453 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6454 fi 6455 else 6456 # Otherwise we believe it is a complete path. Use it as it is. 6457 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 6458 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6460 $as_echo_n "checking for CUT... " >&6; } 6461 if test ! -x "$tool_specified"; then 6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6463 $as_echo "not found" >&6; } 6464 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 6465 fi 6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6467 $as_echo "$tool_specified" >&6; } 6468 fi 6469 fi 6470 fi 6471 6472 fi 6473 6474 6475 6476 if test "x$CUT" = x; then 6477 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 6478 fi 6479 6480 6481 6482 6483 6484 # Publish this variable in the help. 6485 6486 6487 if [ -z "${DATE+x}" ]; then 6488 # The variable is not set by user, try to locate tool using the code snippet 6489 for ac_prog in date 6490 do 6491 # Extract the first word of "$ac_prog", so it can be a program name with args. 6492 set dummy $ac_prog; ac_word=$2 6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6494 $as_echo_n "checking for $ac_word... " >&6; } 6495 if ${ac_cv_path_DATE+:} false; then : 6496 $as_echo_n "(cached) " >&6 6497 else 6498 case $DATE in 6499 [\\/]* | ?:[\\/]*) 6500 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6501 ;; 6502 *) 6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6504 for as_dir in $PATH 6505 do 6506 IFS=$as_save_IFS 6507 test -z "$as_dir" && as_dir=. 6508 for ac_exec_ext in '' $ac_executable_extensions; do 6509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6510 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6512 break 2 6513 fi 6514 done 6515 done 6516 IFS=$as_save_IFS 6517 6518 ;; 6519 esac 6520 fi 6521 DATE=$ac_cv_path_DATE 6522 if test -n "$DATE"; then 6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6524 $as_echo "$DATE" >&6; } 6525 else 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6527 $as_echo "no" >&6; } 6528 fi 6529 6530 6531 test -n "$DATE" && break 6532 done 6533 6534 else 6535 # The variable is set, but is it from the command line or the environment? 6536 6537 # Try to remove the string !DATE! from our list. 6538 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6539 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6540 # If it failed, the variable was not from the command line. Ignore it, 6541 # but warn the user (except for BASH, which is always set by the calling BASH). 6542 if test "xDATE" != xBASH; then 6543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6544 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6545 fi 6546 # Try to locate tool using the code snippet 6547 for ac_prog in date 6548 do 6549 # Extract the first word of "$ac_prog", so it can be a program name with args. 6550 set dummy $ac_prog; ac_word=$2 6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6552 $as_echo_n "checking for $ac_word... " >&6; } 6553 if ${ac_cv_path_DATE+:} false; then : 6554 $as_echo_n "(cached) " >&6 6555 else 6556 case $DATE in 6557 [\\/]* | ?:[\\/]*) 6558 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6559 ;; 6560 *) 6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6562 for as_dir in $PATH 6563 do 6564 IFS=$as_save_IFS 6565 test -z "$as_dir" && as_dir=. 6566 for ac_exec_ext in '' $ac_executable_extensions; do 6567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6568 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6570 break 2 6571 fi 6572 done 6573 done 6574 IFS=$as_save_IFS 6575 6576 ;; 6577 esac 6578 fi 6579 DATE=$ac_cv_path_DATE 6580 if test -n "$DATE"; then 6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6582 $as_echo "$DATE" >&6; } 6583 else 6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6585 $as_echo "no" >&6; } 6586 fi 6587 6588 6589 test -n "$DATE" && break 6590 done 6591 6592 else 6593 # If it succeeded, then it was overridden by the user. We will use it 6594 # for the tool. 6595 6596 # First remove it from the list of overridden variables, so we can test 6597 # for unknown variables in the end. 6598 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6599 6600 # Check if we try to supply an empty value 6601 if test "x$DATE" = x; then 6602 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5 6603 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;} 6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6605 $as_echo_n "checking for DATE... " >&6; } 6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6607 $as_echo "disabled" >&6; } 6608 else 6609 # Check if the provided tool contains a complete path. 6610 tool_specified="$DATE" 6611 tool_basename="${tool_specified##*/}" 6612 if test "x$tool_basename" = "x$tool_specified"; then 6613 # A command without a complete path is provided, search $PATH. 6614 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6615 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6616 # Extract the first word of "$tool_basename", so it can be a program name with args. 6617 set dummy $tool_basename; ac_word=$2 6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6619 $as_echo_n "checking for $ac_word... " >&6; } 6620 if ${ac_cv_path_DATE+:} false; then : 6621 $as_echo_n "(cached) " >&6 6622 else 6623 case $DATE in 6624 [\\/]* | ?:[\\/]*) 6625 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6626 ;; 6627 *) 6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6629 for as_dir in $PATH 6630 do 6631 IFS=$as_save_IFS 6632 test -z "$as_dir" && as_dir=. 6633 for ac_exec_ext in '' $ac_executable_extensions; do 6634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6635 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6637 break 2 6638 fi 6639 done 6640 done 6641 IFS=$as_save_IFS 6642 6643 ;; 6644 esac 6645 fi 6646 DATE=$ac_cv_path_DATE 6647 if test -n "$DATE"; then 6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6649 $as_echo "$DATE" >&6; } 6650 else 6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6652 $as_echo "no" >&6; } 6653 fi 6654 6655 6656 if test "x$DATE" = x; then 6657 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6658 fi 6659 else 6660 # Otherwise we believe it is a complete path. Use it as it is. 6661 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6662 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6664 $as_echo_n "checking for DATE... " >&6; } 6665 if test ! -x "$tool_specified"; then 6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6667 $as_echo "not found" >&6; } 6668 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6669 fi 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6671 $as_echo "$tool_specified" >&6; } 6672 fi 6673 fi 6674 fi 6675 6676 fi 6677 6678 6679 6680 if test "x$DATE" = x; then 6681 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6682 fi 6683 6684 6685 6686 6687 6688 # Publish this variable in the help. 6689 6690 6691 if [ -z "${DIFF+x}" ]; then 6692 # The variable is not set by user, try to locate tool using the code snippet 6693 for ac_prog in gdiff diff 6694 do 6695 # Extract the first word of "$ac_prog", so it can be a program name with args. 6696 set dummy $ac_prog; ac_word=$2 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6698 $as_echo_n "checking for $ac_word... " >&6; } 6699 if ${ac_cv_path_DIFF+:} false; then : 6700 $as_echo_n "(cached) " >&6 6701 else 6702 case $DIFF in 6703 [\\/]* | ?:[\\/]*) 6704 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6705 ;; 6706 *) 6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6708 for as_dir in $PATH 6709 do 6710 IFS=$as_save_IFS 6711 test -z "$as_dir" && as_dir=. 6712 for ac_exec_ext in '' $ac_executable_extensions; do 6713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6714 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6716 break 2 6717 fi 6718 done 6719 done 6720 IFS=$as_save_IFS 6721 6722 ;; 6723 esac 6724 fi 6725 DIFF=$ac_cv_path_DIFF 6726 if test -n "$DIFF"; then 6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6728 $as_echo "$DIFF" >&6; } 6729 else 6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6731 $as_echo "no" >&6; } 6732 fi 6733 6734 6735 test -n "$DIFF" && break 6736 done 6737 6738 else 6739 # The variable is set, but is it from the command line or the environment? 6740 6741 # Try to remove the string !DIFF! from our list. 6742 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 6743 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6744 # If it failed, the variable was not from the command line. Ignore it, 6745 # but warn the user (except for BASH, which is always set by the calling BASH). 6746 if test "xDIFF" != xBASH; then 6747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 6748 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 6749 fi 6750 # Try to locate tool using the code snippet 6751 for ac_prog in gdiff diff 6752 do 6753 # Extract the first word of "$ac_prog", so it can be a program name with args. 6754 set dummy $ac_prog; ac_word=$2 6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6756 $as_echo_n "checking for $ac_word... " >&6; } 6757 if ${ac_cv_path_DIFF+:} false; then : 6758 $as_echo_n "(cached) " >&6 6759 else 6760 case $DIFF in 6761 [\\/]* | ?:[\\/]*) 6762 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6763 ;; 6764 *) 6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6766 for as_dir in $PATH 6767 do 6768 IFS=$as_save_IFS 6769 test -z "$as_dir" && as_dir=. 6770 for ac_exec_ext in '' $ac_executable_extensions; do 6771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6772 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6774 break 2 6775 fi 6776 done 6777 done 6778 IFS=$as_save_IFS 6779 6780 ;; 6781 esac 6782 fi 6783 DIFF=$ac_cv_path_DIFF 6784 if test -n "$DIFF"; then 6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6786 $as_echo "$DIFF" >&6; } 6787 else 6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6789 $as_echo "no" >&6; } 6790 fi 6791 6792 6793 test -n "$DIFF" && break 6794 done 6795 6796 else 6797 # If it succeeded, then it was overridden by the user. We will use it 6798 # for the tool. 6799 6800 # First remove it from the list of overridden variables, so we can test 6801 # for unknown variables in the end. 6802 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6803 6804 # Check if we try to supply an empty value 6805 if test "x$DIFF" = x; then 6806 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5 6807 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;} 6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6809 $as_echo_n "checking for DIFF... " >&6; } 6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6811 $as_echo "disabled" >&6; } 6812 else 6813 # Check if the provided tool contains a complete path. 6814 tool_specified="$DIFF" 6815 tool_basename="${tool_specified##*/}" 6816 if test "x$tool_basename" = "x$tool_specified"; then 6817 # A command without a complete path is provided, search $PATH. 6818 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 6819 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 6820 # Extract the first word of "$tool_basename", so it can be a program name with args. 6821 set dummy $tool_basename; ac_word=$2 6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6823 $as_echo_n "checking for $ac_word... " >&6; } 6824 if ${ac_cv_path_DIFF+:} false; then : 6825 $as_echo_n "(cached) " >&6 6826 else 6827 case $DIFF in 6828 [\\/]* | ?:[\\/]*) 6829 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6830 ;; 6831 *) 6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6833 for as_dir in $PATH 6834 do 6835 IFS=$as_save_IFS 6836 test -z "$as_dir" && as_dir=. 6837 for ac_exec_ext in '' $ac_executable_extensions; do 6838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6839 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6841 break 2 6842 fi 6843 done 6844 done 6845 IFS=$as_save_IFS 6846 6847 ;; 6848 esac 6849 fi 6850 DIFF=$ac_cv_path_DIFF 6851 if test -n "$DIFF"; then 6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6853 $as_echo "$DIFF" >&6; } 6854 else 6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6856 $as_echo "no" >&6; } 6857 fi 6858 6859 6860 if test "x$DIFF" = x; then 6861 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6862 fi 6863 else 6864 # Otherwise we believe it is a complete path. Use it as it is. 6865 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 6866 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6868 $as_echo_n "checking for DIFF... " >&6; } 6869 if test ! -x "$tool_specified"; then 6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6871 $as_echo "not found" >&6; } 6872 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 6873 fi 6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6875 $as_echo "$tool_specified" >&6; } 6876 fi 6877 fi 6878 fi 6879 6880 fi 6881 6882 6883 6884 if test "x$DIFF" = x; then 6885 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 6886 fi 6887 6888 6889 6890 6891 6892 # Publish this variable in the help. 6893 6894 6895 if [ -z "${DIRNAME+x}" ]; then 6896 # The variable is not set by user, try to locate tool using the code snippet 6897 for ac_prog in dirname 6898 do 6899 # Extract the first word of "$ac_prog", so it can be a program name with args. 6900 set dummy $ac_prog; ac_word=$2 6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6902 $as_echo_n "checking for $ac_word... " >&6; } 6903 if ${ac_cv_path_DIRNAME+:} false; then : 6904 $as_echo_n "(cached) " >&6 6905 else 6906 case $DIRNAME in 6907 [\\/]* | ?:[\\/]*) 6908 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6909 ;; 6910 *) 6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6912 for as_dir in $PATH 6913 do 6914 IFS=$as_save_IFS 6915 test -z "$as_dir" && as_dir=. 6916 for ac_exec_ext in '' $ac_executable_extensions; do 6917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6918 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6920 break 2 6921 fi 6922 done 6923 done 6924 IFS=$as_save_IFS 6925 6926 ;; 6927 esac 6928 fi 6929 DIRNAME=$ac_cv_path_DIRNAME 6930 if test -n "$DIRNAME"; then 6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6932 $as_echo "$DIRNAME" >&6; } 6933 else 6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6935 $as_echo "no" >&6; } 6936 fi 6937 6938 6939 test -n "$DIRNAME" && break 6940 done 6941 6942 else 6943 # The variable is set, but is it from the command line or the environment? 6944 6945 # Try to remove the string !DIRNAME! from our list. 6946 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 6947 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6948 # If it failed, the variable was not from the command line. Ignore it, 6949 # but warn the user (except for BASH, which is always set by the calling BASH). 6950 if test "xDIRNAME" != xBASH; then 6951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 6952 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 6953 fi 6954 # Try to locate tool using the code snippet 6955 for ac_prog in dirname 6956 do 6957 # Extract the first word of "$ac_prog", so it can be a program name with args. 6958 set dummy $ac_prog; ac_word=$2 6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6960 $as_echo_n "checking for $ac_word... " >&6; } 6961 if ${ac_cv_path_DIRNAME+:} false; then : 6962 $as_echo_n "(cached) " >&6 6963 else 6964 case $DIRNAME in 6965 [\\/]* | ?:[\\/]*) 6966 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6967 ;; 6968 *) 6969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6970 for as_dir in $PATH 6971 do 6972 IFS=$as_save_IFS 6973 test -z "$as_dir" && as_dir=. 6974 for ac_exec_ext in '' $ac_executable_extensions; do 6975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6976 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6978 break 2 6979 fi 6980 done 6981 done 6982 IFS=$as_save_IFS 6983 6984 ;; 6985 esac 6986 fi 6987 DIRNAME=$ac_cv_path_DIRNAME 6988 if test -n "$DIRNAME"; then 6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6990 $as_echo "$DIRNAME" >&6; } 6991 else 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6993 $as_echo "no" >&6; } 6994 fi 6995 6996 6997 test -n "$DIRNAME" && break 6998 done 6999 7000 else 7001 # If it succeeded, then it was overridden by the user. We will use it 7002 # for the tool. 7003 7004 # First remove it from the list of overridden variables, so we can test 7005 # for unknown variables in the end. 7006 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7007 7008 # Check if we try to supply an empty value 7009 if test "x$DIRNAME" = x; then 7010 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5 7011 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;} 7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7013 $as_echo_n "checking for DIRNAME... " >&6; } 7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7015 $as_echo "disabled" >&6; } 7016 else 7017 # Check if the provided tool contains a complete path. 7018 tool_specified="$DIRNAME" 7019 tool_basename="${tool_specified##*/}" 7020 if test "x$tool_basename" = "x$tool_specified"; then 7021 # A command without a complete path is provided, search $PATH. 7022 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 7023 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 7024 # Extract the first word of "$tool_basename", so it can be a program name with args. 7025 set dummy $tool_basename; ac_word=$2 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7027 $as_echo_n "checking for $ac_word... " >&6; } 7028 if ${ac_cv_path_DIRNAME+:} false; then : 7029 $as_echo_n "(cached) " >&6 7030 else 7031 case $DIRNAME in 7032 [\\/]* | ?:[\\/]*) 7033 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7034 ;; 7035 *) 7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7037 for as_dir in $PATH 7038 do 7039 IFS=$as_save_IFS 7040 test -z "$as_dir" && as_dir=. 7041 for ac_exec_ext in '' $ac_executable_extensions; do 7042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7043 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7045 break 2 7046 fi 7047 done 7048 done 7049 IFS=$as_save_IFS 7050 7051 ;; 7052 esac 7053 fi 7054 DIRNAME=$ac_cv_path_DIRNAME 7055 if test -n "$DIRNAME"; then 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7057 $as_echo "$DIRNAME" >&6; } 7058 else 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7060 $as_echo "no" >&6; } 7061 fi 7062 7063 7064 if test "x$DIRNAME" = x; then 7065 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7066 fi 7067 else 7068 # Otherwise we believe it is a complete path. Use it as it is. 7069 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 7070 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7072 $as_echo_n "checking for DIRNAME... " >&6; } 7073 if test ! -x "$tool_specified"; then 7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7075 $as_echo "not found" >&6; } 7076 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 7077 fi 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7079 $as_echo "$tool_specified" >&6; } 7080 fi 7081 fi 7082 fi 7083 7084 fi 7085 7086 7087 7088 if test "x$DIRNAME" = x; then 7089 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 7090 fi 7091 7092 7093 7094 7095 7096 # Publish this variable in the help. 7097 7098 7099 if [ -z "${ECHO+x}" ]; then 7100 # The variable is not set by user, try to locate tool using the code snippet 7101 for ac_prog in echo 7102 do 7103 # Extract the first word of "$ac_prog", so it can be a program name with args. 7104 set dummy $ac_prog; ac_word=$2 7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7106 $as_echo_n "checking for $ac_word... " >&6; } 7107 if ${ac_cv_path_ECHO+:} false; then : 7108 $as_echo_n "(cached) " >&6 7109 else 7110 case $ECHO in 7111 [\\/]* | ?:[\\/]*) 7112 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7113 ;; 7114 *) 7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7116 for as_dir in $PATH 7117 do 7118 IFS=$as_save_IFS 7119 test -z "$as_dir" && as_dir=. 7120 for ac_exec_ext in '' $ac_executable_extensions; do 7121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7122 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7124 break 2 7125 fi 7126 done 7127 done 7128 IFS=$as_save_IFS 7129 7130 ;; 7131 esac 7132 fi 7133 ECHO=$ac_cv_path_ECHO 7134 if test -n "$ECHO"; then 7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7136 $as_echo "$ECHO" >&6; } 7137 else 7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7139 $as_echo "no" >&6; } 7140 fi 7141 7142 7143 test -n "$ECHO" && break 7144 done 7145 7146 else 7147 # The variable is set, but is it from the command line or the environment? 7148 7149 # Try to remove the string !ECHO! from our list. 7150 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 7151 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7152 # If it failed, the variable was not from the command line. Ignore it, 7153 # but warn the user (except for BASH, which is always set by the calling BASH). 7154 if test "xECHO" != xBASH; then 7155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 7156 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 7157 fi 7158 # Try to locate tool using the code snippet 7159 for ac_prog in echo 7160 do 7161 # Extract the first word of "$ac_prog", so it can be a program name with args. 7162 set dummy $ac_prog; ac_word=$2 7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7164 $as_echo_n "checking for $ac_word... " >&6; } 7165 if ${ac_cv_path_ECHO+:} false; then : 7166 $as_echo_n "(cached) " >&6 7167 else 7168 case $ECHO in 7169 [\\/]* | ?:[\\/]*) 7170 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7171 ;; 7172 *) 7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7174 for as_dir in $PATH 7175 do 7176 IFS=$as_save_IFS 7177 test -z "$as_dir" && as_dir=. 7178 for ac_exec_ext in '' $ac_executable_extensions; do 7179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7180 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7182 break 2 7183 fi 7184 done 7185 done 7186 IFS=$as_save_IFS 7187 7188 ;; 7189 esac 7190 fi 7191 ECHO=$ac_cv_path_ECHO 7192 if test -n "$ECHO"; then 7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7194 $as_echo "$ECHO" >&6; } 7195 else 7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7197 $as_echo "no" >&6; } 7198 fi 7199 7200 7201 test -n "$ECHO" && break 7202 done 7203 7204 else 7205 # If it succeeded, then it was overridden by the user. We will use it 7206 # for the tool. 7207 7208 # First remove it from the list of overridden variables, so we can test 7209 # for unknown variables in the end. 7210 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7211 7212 # Check if we try to supply an empty value 7213 if test "x$ECHO" = x; then 7214 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5 7215 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;} 7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7217 $as_echo_n "checking for ECHO... " >&6; } 7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7219 $as_echo "disabled" >&6; } 7220 else 7221 # Check if the provided tool contains a complete path. 7222 tool_specified="$ECHO" 7223 tool_basename="${tool_specified##*/}" 7224 if test "x$tool_basename" = "x$tool_specified"; then 7225 # A command without a complete path is provided, search $PATH. 7226 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 7227 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 7228 # Extract the first word of "$tool_basename", so it can be a program name with args. 7229 set dummy $tool_basename; ac_word=$2 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7231 $as_echo_n "checking for $ac_word... " >&6; } 7232 if ${ac_cv_path_ECHO+:} false; then : 7233 $as_echo_n "(cached) " >&6 7234 else 7235 case $ECHO in 7236 [\\/]* | ?:[\\/]*) 7237 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7238 ;; 7239 *) 7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7241 for as_dir in $PATH 7242 do 7243 IFS=$as_save_IFS 7244 test -z "$as_dir" && as_dir=. 7245 for ac_exec_ext in '' $ac_executable_extensions; do 7246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7247 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7249 break 2 7250 fi 7251 done 7252 done 7253 IFS=$as_save_IFS 7254 7255 ;; 7256 esac 7257 fi 7258 ECHO=$ac_cv_path_ECHO 7259 if test -n "$ECHO"; then 7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7261 $as_echo "$ECHO" >&6; } 7262 else 7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7264 $as_echo "no" >&6; } 7265 fi 7266 7267 7268 if test "x$ECHO" = x; then 7269 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7270 fi 7271 else 7272 # Otherwise we believe it is a complete path. Use it as it is. 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 7274 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7276 $as_echo_n "checking for ECHO... " >&6; } 7277 if test ! -x "$tool_specified"; then 7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7279 $as_echo "not found" >&6; } 7280 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 7281 fi 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7283 $as_echo "$tool_specified" >&6; } 7284 fi 7285 fi 7286 fi 7287 7288 fi 7289 7290 7291 7292 if test "x$ECHO" = x; then 7293 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 7294 fi 7295 7296 7297 7298 7299 7300 # Publish this variable in the help. 7301 7302 7303 if [ -z "${EXPR+x}" ]; then 7304 # The variable is not set by user, try to locate tool using the code snippet 7305 for ac_prog in expr 7306 do 7307 # Extract the first word of "$ac_prog", so it can be a program name with args. 7308 set dummy $ac_prog; ac_word=$2 7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7310 $as_echo_n "checking for $ac_word... " >&6; } 7311 if ${ac_cv_path_EXPR+:} false; then : 7312 $as_echo_n "(cached) " >&6 7313 else 7314 case $EXPR in 7315 [\\/]* | ?:[\\/]*) 7316 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7317 ;; 7318 *) 7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7320 for as_dir in $PATH 7321 do 7322 IFS=$as_save_IFS 7323 test -z "$as_dir" && as_dir=. 7324 for ac_exec_ext in '' $ac_executable_extensions; do 7325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7326 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7328 break 2 7329 fi 7330 done 7331 done 7332 IFS=$as_save_IFS 7333 7334 ;; 7335 esac 7336 fi 7337 EXPR=$ac_cv_path_EXPR 7338 if test -n "$EXPR"; then 7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7340 $as_echo "$EXPR" >&6; } 7341 else 7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7343 $as_echo "no" >&6; } 7344 fi 7345 7346 7347 test -n "$EXPR" && break 7348 done 7349 7350 else 7351 # The variable is set, but is it from the command line or the environment? 7352 7353 # Try to remove the string !EXPR! from our list. 7354 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 7355 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7356 # If it failed, the variable was not from the command line. Ignore it, 7357 # but warn the user (except for BASH, which is always set by the calling BASH). 7358 if test "xEXPR" != xBASH; then 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 7360 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 7361 fi 7362 # Try to locate tool using the code snippet 7363 for ac_prog in expr 7364 do 7365 # Extract the first word of "$ac_prog", so it can be a program name with args. 7366 set dummy $ac_prog; ac_word=$2 7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7368 $as_echo_n "checking for $ac_word... " >&6; } 7369 if ${ac_cv_path_EXPR+:} false; then : 7370 $as_echo_n "(cached) " >&6 7371 else 7372 case $EXPR in 7373 [\\/]* | ?:[\\/]*) 7374 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7375 ;; 7376 *) 7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7378 for as_dir in $PATH 7379 do 7380 IFS=$as_save_IFS 7381 test -z "$as_dir" && as_dir=. 7382 for ac_exec_ext in '' $ac_executable_extensions; do 7383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7384 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7386 break 2 7387 fi 7388 done 7389 done 7390 IFS=$as_save_IFS 7391 7392 ;; 7393 esac 7394 fi 7395 EXPR=$ac_cv_path_EXPR 7396 if test -n "$EXPR"; then 7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7398 $as_echo "$EXPR" >&6; } 7399 else 7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7401 $as_echo "no" >&6; } 7402 fi 7403 7404 7405 test -n "$EXPR" && break 7406 done 7407 7408 else 7409 # If it succeeded, then it was overridden by the user. We will use it 7410 # for the tool. 7411 7412 # First remove it from the list of overridden variables, so we can test 7413 # for unknown variables in the end. 7414 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7415 7416 # Check if we try to supply an empty value 7417 if test "x$EXPR" = x; then 7418 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5 7419 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;} 7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7421 $as_echo_n "checking for EXPR... " >&6; } 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7423 $as_echo "disabled" >&6; } 7424 else 7425 # Check if the provided tool contains a complete path. 7426 tool_specified="$EXPR" 7427 tool_basename="${tool_specified##*/}" 7428 if test "x$tool_basename" = "x$tool_specified"; then 7429 # A command without a complete path is provided, search $PATH. 7430 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 7431 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 7432 # Extract the first word of "$tool_basename", so it can be a program name with args. 7433 set dummy $tool_basename; ac_word=$2 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7435 $as_echo_n "checking for $ac_word... " >&6; } 7436 if ${ac_cv_path_EXPR+:} false; then : 7437 $as_echo_n "(cached) " >&6 7438 else 7439 case $EXPR in 7440 [\\/]* | ?:[\\/]*) 7441 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7442 ;; 7443 *) 7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7445 for as_dir in $PATH 7446 do 7447 IFS=$as_save_IFS 7448 test -z "$as_dir" && as_dir=. 7449 for ac_exec_ext in '' $ac_executable_extensions; do 7450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7451 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7453 break 2 7454 fi 7455 done 7456 done 7457 IFS=$as_save_IFS 7458 7459 ;; 7460 esac 7461 fi 7462 EXPR=$ac_cv_path_EXPR 7463 if test -n "$EXPR"; then 7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7465 $as_echo "$EXPR" >&6; } 7466 else 7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7468 $as_echo "no" >&6; } 7469 fi 7470 7471 7472 if test "x$EXPR" = x; then 7473 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7474 fi 7475 else 7476 # Otherwise we believe it is a complete path. Use it as it is. 7477 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 7478 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7480 $as_echo_n "checking for EXPR... " >&6; } 7481 if test ! -x "$tool_specified"; then 7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7483 $as_echo "not found" >&6; } 7484 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 7485 fi 7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7487 $as_echo "$tool_specified" >&6; } 7488 fi 7489 fi 7490 fi 7491 7492 fi 7493 7494 7495 7496 if test "x$EXPR" = x; then 7497 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 7498 fi 7499 7500 7501 7502 7503 7504 # Publish this variable in the help. 7505 7506 7507 if [ -z "${FILE+x}" ]; then 7508 # The variable is not set by user, try to locate tool using the code snippet 7509 for ac_prog in file 7510 do 7511 # Extract the first word of "$ac_prog", so it can be a program name with args. 7512 set dummy $ac_prog; ac_word=$2 7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7514 $as_echo_n "checking for $ac_word... " >&6; } 7515 if ${ac_cv_path_FILE+:} false; then : 7516 $as_echo_n "(cached) " >&6 7517 else 7518 case $FILE in 7519 [\\/]* | ?:[\\/]*) 7520 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7521 ;; 7522 *) 7523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7524 for as_dir in $PATH 7525 do 7526 IFS=$as_save_IFS 7527 test -z "$as_dir" && as_dir=. 7528 for ac_exec_ext in '' $ac_executable_extensions; do 7529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7530 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7532 break 2 7533 fi 7534 done 7535 done 7536 IFS=$as_save_IFS 7537 7538 ;; 7539 esac 7540 fi 7541 FILE=$ac_cv_path_FILE 7542 if test -n "$FILE"; then 7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7544 $as_echo "$FILE" >&6; } 7545 else 7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7547 $as_echo "no" >&6; } 7548 fi 7549 7550 7551 test -n "$FILE" && break 7552 done 7553 7554 else 7555 # The variable is set, but is it from the command line or the environment? 7556 7557 # Try to remove the string !FILE! from our list. 7558 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7559 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7560 # If it failed, the variable was not from the command line. Ignore it, 7561 # but warn the user (except for BASH, which is always set by the calling BASH). 7562 if test "xFILE" != xBASH; then 7563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7564 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7565 fi 7566 # Try to locate tool using the code snippet 7567 for ac_prog in file 7568 do 7569 # Extract the first word of "$ac_prog", so it can be a program name with args. 7570 set dummy $ac_prog; ac_word=$2 7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7572 $as_echo_n "checking for $ac_word... " >&6; } 7573 if ${ac_cv_path_FILE+:} false; then : 7574 $as_echo_n "(cached) " >&6 7575 else 7576 case $FILE in 7577 [\\/]* | ?:[\\/]*) 7578 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7579 ;; 7580 *) 7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7582 for as_dir in $PATH 7583 do 7584 IFS=$as_save_IFS 7585 test -z "$as_dir" && as_dir=. 7586 for ac_exec_ext in '' $ac_executable_extensions; do 7587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7588 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7590 break 2 7591 fi 7592 done 7593 done 7594 IFS=$as_save_IFS 7595 7596 ;; 7597 esac 7598 fi 7599 FILE=$ac_cv_path_FILE 7600 if test -n "$FILE"; then 7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7602 $as_echo "$FILE" >&6; } 7603 else 7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7605 $as_echo "no" >&6; } 7606 fi 7607 7608 7609 test -n "$FILE" && break 7610 done 7611 7612 else 7613 # If it succeeded, then it was overridden by the user. We will use it 7614 # for the tool. 7615 7616 # First remove it from the list of overridden variables, so we can test 7617 # for unknown variables in the end. 7618 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7619 7620 # Check if we try to supply an empty value 7621 if test "x$FILE" = x; then 7622 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5 7623 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;} 7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7625 $as_echo_n "checking for FILE... " >&6; } 7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7627 $as_echo "disabled" >&6; } 7628 else 7629 # Check if the provided tool contains a complete path. 7630 tool_specified="$FILE" 7631 tool_basename="${tool_specified##*/}" 7632 if test "x$tool_basename" = "x$tool_specified"; then 7633 # A command without a complete path is provided, search $PATH. 7634 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7635 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7636 # Extract the first word of "$tool_basename", so it can be a program name with args. 7637 set dummy $tool_basename; ac_word=$2 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7639 $as_echo_n "checking for $ac_word... " >&6; } 7640 if ${ac_cv_path_FILE+:} false; then : 7641 $as_echo_n "(cached) " >&6 7642 else 7643 case $FILE in 7644 [\\/]* | ?:[\\/]*) 7645 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7646 ;; 7647 *) 7648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7649 for as_dir in $PATH 7650 do 7651 IFS=$as_save_IFS 7652 test -z "$as_dir" && as_dir=. 7653 for ac_exec_ext in '' $ac_executable_extensions; do 7654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7655 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7657 break 2 7658 fi 7659 done 7660 done 7661 IFS=$as_save_IFS 7662 7663 ;; 7664 esac 7665 fi 7666 FILE=$ac_cv_path_FILE 7667 if test -n "$FILE"; then 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7669 $as_echo "$FILE" >&6; } 7670 else 7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7672 $as_echo "no" >&6; } 7673 fi 7674 7675 7676 if test "x$FILE" = x; then 7677 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7678 fi 7679 else 7680 # Otherwise we believe it is a complete path. Use it as it is. 7681 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7682 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7684 $as_echo_n "checking for FILE... " >&6; } 7685 if test ! -x "$tool_specified"; then 7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7687 $as_echo "not found" >&6; } 7688 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7689 fi 7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7691 $as_echo "$tool_specified" >&6; } 7692 fi 7693 fi 7694 fi 7695 7696 fi 7697 7698 7699 7700 if test "x$FILE" = x; then 7701 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 7702 fi 7703 7704 7705 7706 7707 7708 # Publish this variable in the help. 7709 7710 7711 if [ -z "${FIND+x}" ]; then 7712 # The variable is not set by user, try to locate tool using the code snippet 7713 for ac_prog in find 7714 do 7715 # Extract the first word of "$ac_prog", so it can be a program name with args. 7716 set dummy $ac_prog; ac_word=$2 7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7718 $as_echo_n "checking for $ac_word... " >&6; } 7719 if ${ac_cv_path_FIND+:} false; then : 7720 $as_echo_n "(cached) " >&6 7721 else 7722 case $FIND in 7723 [\\/]* | ?:[\\/]*) 7724 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7725 ;; 7726 *) 7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7728 for as_dir in $PATH 7729 do 7730 IFS=$as_save_IFS 7731 test -z "$as_dir" && as_dir=. 7732 for ac_exec_ext in '' $ac_executable_extensions; do 7733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7734 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7736 break 2 7737 fi 7738 done 7739 done 7740 IFS=$as_save_IFS 7741 7742 ;; 7743 esac 7744 fi 7745 FIND=$ac_cv_path_FIND 7746 if test -n "$FIND"; then 7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7748 $as_echo "$FIND" >&6; } 7749 else 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7751 $as_echo "no" >&6; } 7752 fi 7753 7754 7755 test -n "$FIND" && break 7756 done 7757 7758 else 7759 # The variable is set, but is it from the command line or the environment? 7760 7761 # Try to remove the string !FIND! from our list. 7762 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 7763 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7764 # If it failed, the variable was not from the command line. Ignore it, 7765 # but warn the user (except for BASH, which is always set by the calling BASH). 7766 if test "xFIND" != xBASH; then 7767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 7768 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 7769 fi 7770 # Try to locate tool using the code snippet 7771 for ac_prog in find 7772 do 7773 # Extract the first word of "$ac_prog", so it can be a program name with args. 7774 set dummy $ac_prog; ac_word=$2 7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7776 $as_echo_n "checking for $ac_word... " >&6; } 7777 if ${ac_cv_path_FIND+:} false; then : 7778 $as_echo_n "(cached) " >&6 7779 else 7780 case $FIND in 7781 [\\/]* | ?:[\\/]*) 7782 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7783 ;; 7784 *) 7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7786 for as_dir in $PATH 7787 do 7788 IFS=$as_save_IFS 7789 test -z "$as_dir" && as_dir=. 7790 for ac_exec_ext in '' $ac_executable_extensions; do 7791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7792 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7794 break 2 7795 fi 7796 done 7797 done 7798 IFS=$as_save_IFS 7799 7800 ;; 7801 esac 7802 fi 7803 FIND=$ac_cv_path_FIND 7804 if test -n "$FIND"; then 7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7806 $as_echo "$FIND" >&6; } 7807 else 7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7809 $as_echo "no" >&6; } 7810 fi 7811 7812 7813 test -n "$FIND" && break 7814 done 7815 7816 else 7817 # If it succeeded, then it was overridden by the user. We will use it 7818 # for the tool. 7819 7820 # First remove it from the list of overridden variables, so we can test 7821 # for unknown variables in the end. 7822 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7823 7824 # Check if we try to supply an empty value 7825 if test "x$FIND" = x; then 7826 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5 7827 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;} 7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7829 $as_echo_n "checking for FIND... " >&6; } 7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7831 $as_echo "disabled" >&6; } 7832 else 7833 # Check if the provided tool contains a complete path. 7834 tool_specified="$FIND" 7835 tool_basename="${tool_specified##*/}" 7836 if test "x$tool_basename" = "x$tool_specified"; then 7837 # A command without a complete path is provided, search $PATH. 7838 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 7839 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 7840 # Extract the first word of "$tool_basename", so it can be a program name with args. 7841 set dummy $tool_basename; ac_word=$2 7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7843 $as_echo_n "checking for $ac_word... " >&6; } 7844 if ${ac_cv_path_FIND+:} false; then : 7845 $as_echo_n "(cached) " >&6 7846 else 7847 case $FIND in 7848 [\\/]* | ?:[\\/]*) 7849 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7850 ;; 7851 *) 7852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7853 for as_dir in $PATH 7854 do 7855 IFS=$as_save_IFS 7856 test -z "$as_dir" && as_dir=. 7857 for ac_exec_ext in '' $ac_executable_extensions; do 7858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7859 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7861 break 2 7862 fi 7863 done 7864 done 7865 IFS=$as_save_IFS 7866 7867 ;; 7868 esac 7869 fi 7870 FIND=$ac_cv_path_FIND 7871 if test -n "$FIND"; then 7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7873 $as_echo "$FIND" >&6; } 7874 else 7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7876 $as_echo "no" >&6; } 7877 fi 7878 7879 7880 if test "x$FIND" = x; then 7881 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7882 fi 7883 else 7884 # Otherwise we believe it is a complete path. Use it as it is. 7885 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 7886 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7888 $as_echo_n "checking for FIND... " >&6; } 7889 if test ! -x "$tool_specified"; then 7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7891 $as_echo "not found" >&6; } 7892 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 7893 fi 7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7895 $as_echo "$tool_specified" >&6; } 7896 fi 7897 fi 7898 fi 7899 7900 fi 7901 7902 7903 7904 if test "x$FIND" = x; then 7905 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 7906 fi 7907 7908 7909 7910 7911 7912 # Publish this variable in the help. 7913 7914 7915 if [ -z "${HEAD+x}" ]; then 7916 # The variable is not set by user, try to locate tool using the code snippet 7917 for ac_prog in head 7918 do 7919 # Extract the first word of "$ac_prog", so it can be a program name with args. 7920 set dummy $ac_prog; ac_word=$2 7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7922 $as_echo_n "checking for $ac_word... " >&6; } 7923 if ${ac_cv_path_HEAD+:} false; then : 7924 $as_echo_n "(cached) " >&6 7925 else 7926 case $HEAD in 7927 [\\/]* | ?:[\\/]*) 7928 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7929 ;; 7930 *) 7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7932 for as_dir in $PATH 7933 do 7934 IFS=$as_save_IFS 7935 test -z "$as_dir" && as_dir=. 7936 for ac_exec_ext in '' $ac_executable_extensions; do 7937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7938 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7940 break 2 7941 fi 7942 done 7943 done 7944 IFS=$as_save_IFS 7945 7946 ;; 7947 esac 7948 fi 7949 HEAD=$ac_cv_path_HEAD 7950 if test -n "$HEAD"; then 7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7952 $as_echo "$HEAD" >&6; } 7953 else 7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7955 $as_echo "no" >&6; } 7956 fi 7957 7958 7959 test -n "$HEAD" && break 7960 done 7961 7962 else 7963 # The variable is set, but is it from the command line or the environment? 7964 7965 # Try to remove the string !HEAD! from our list. 7966 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 7967 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7968 # If it failed, the variable was not from the command line. Ignore it, 7969 # but warn the user (except for BASH, which is always set by the calling BASH). 7970 if test "xHEAD" != xBASH; then 7971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 7972 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 7973 fi 7974 # Try to locate tool using the code snippet 7975 for ac_prog in head 7976 do 7977 # Extract the first word of "$ac_prog", so it can be a program name with args. 7978 set dummy $ac_prog; ac_word=$2 7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7980 $as_echo_n "checking for $ac_word... " >&6; } 7981 if ${ac_cv_path_HEAD+:} false; then : 7982 $as_echo_n "(cached) " >&6 7983 else 7984 case $HEAD in 7985 [\\/]* | ?:[\\/]*) 7986 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7987 ;; 7988 *) 7989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7990 for as_dir in $PATH 7991 do 7992 IFS=$as_save_IFS 7993 test -z "$as_dir" && as_dir=. 7994 for ac_exec_ext in '' $ac_executable_extensions; do 7995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7996 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7998 break 2 7999 fi 8000 done 8001 done 8002 IFS=$as_save_IFS 8003 8004 ;; 8005 esac 8006 fi 8007 HEAD=$ac_cv_path_HEAD 8008 if test -n "$HEAD"; then 8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8010 $as_echo "$HEAD" >&6; } 8011 else 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8013 $as_echo "no" >&6; } 8014 fi 8015 8016 8017 test -n "$HEAD" && break 8018 done 8019 8020 else 8021 # If it succeeded, then it was overridden by the user. We will use it 8022 # for the tool. 8023 8024 # First remove it from the list of overridden variables, so we can test 8025 # for unknown variables in the end. 8026 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8027 8028 # Check if we try to supply an empty value 8029 if test "x$HEAD" = x; then 8030 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5 8031 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;} 8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8033 $as_echo_n "checking for HEAD... " >&6; } 8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8035 $as_echo "disabled" >&6; } 8036 else 8037 # Check if the provided tool contains a complete path. 8038 tool_specified="$HEAD" 8039 tool_basename="${tool_specified##*/}" 8040 if test "x$tool_basename" = "x$tool_specified"; then 8041 # A command without a complete path is provided, search $PATH. 8042 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 8043 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 8044 # Extract the first word of "$tool_basename", so it can be a program name with args. 8045 set dummy $tool_basename; ac_word=$2 8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8047 $as_echo_n "checking for $ac_word... " >&6; } 8048 if ${ac_cv_path_HEAD+:} false; then : 8049 $as_echo_n "(cached) " >&6 8050 else 8051 case $HEAD in 8052 [\\/]* | ?:[\\/]*) 8053 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8054 ;; 8055 *) 8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8057 for as_dir in $PATH 8058 do 8059 IFS=$as_save_IFS 8060 test -z "$as_dir" && as_dir=. 8061 for ac_exec_ext in '' $ac_executable_extensions; do 8062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8063 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8065 break 2 8066 fi 8067 done 8068 done 8069 IFS=$as_save_IFS 8070 8071 ;; 8072 esac 8073 fi 8074 HEAD=$ac_cv_path_HEAD 8075 if test -n "$HEAD"; then 8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8077 $as_echo "$HEAD" >&6; } 8078 else 8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8080 $as_echo "no" >&6; } 8081 fi 8082 8083 8084 if test "x$HEAD" = x; then 8085 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8086 fi 8087 else 8088 # Otherwise we believe it is a complete path. Use it as it is. 8089 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 8090 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8092 $as_echo_n "checking for HEAD... " >&6; } 8093 if test ! -x "$tool_specified"; then 8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8095 $as_echo "not found" >&6; } 8096 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 8097 fi 8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8099 $as_echo "$tool_specified" >&6; } 8100 fi 8101 fi 8102 fi 8103 8104 fi 8105 8106 8107 8108 if test "x$HEAD" = x; then 8109 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 8110 fi 8111 8112 8113 8114 8115 8116 # Publish this variable in the help. 8117 8118 8119 if [ -z "${LN+x}" ]; then 8120 # The variable is not set by user, try to locate tool using the code snippet 8121 for ac_prog in ln 8122 do 8123 # Extract the first word of "$ac_prog", so it can be a program name with args. 8124 set dummy $ac_prog; ac_word=$2 8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8126 $as_echo_n "checking for $ac_word... " >&6; } 8127 if ${ac_cv_path_LN+:} false; then : 8128 $as_echo_n "(cached) " >&6 8129 else 8130 case $LN in 8131 [\\/]* | ?:[\\/]*) 8132 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8133 ;; 8134 *) 8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8136 for as_dir in $PATH 8137 do 8138 IFS=$as_save_IFS 8139 test -z "$as_dir" && as_dir=. 8140 for ac_exec_ext in '' $ac_executable_extensions; do 8141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8142 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8144 break 2 8145 fi 8146 done 8147 done 8148 IFS=$as_save_IFS 8149 8150 ;; 8151 esac 8152 fi 8153 LN=$ac_cv_path_LN 8154 if test -n "$LN"; then 8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8156 $as_echo "$LN" >&6; } 8157 else 8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8159 $as_echo "no" >&6; } 8160 fi 8161 8162 8163 test -n "$LN" && break 8164 done 8165 8166 else 8167 # The variable is set, but is it from the command line or the environment? 8168 8169 # Try to remove the string !LN! from our list. 8170 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 8171 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8172 # If it failed, the variable was not from the command line. Ignore it, 8173 # but warn the user (except for BASH, which is always set by the calling BASH). 8174 if test "xLN" != xBASH; then 8175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 8176 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 8177 fi 8178 # Try to locate tool using the code snippet 8179 for ac_prog in ln 8180 do 8181 # Extract the first word of "$ac_prog", so it can be a program name with args. 8182 set dummy $ac_prog; ac_word=$2 8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8184 $as_echo_n "checking for $ac_word... " >&6; } 8185 if ${ac_cv_path_LN+:} false; then : 8186 $as_echo_n "(cached) " >&6 8187 else 8188 case $LN in 8189 [\\/]* | ?:[\\/]*) 8190 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8191 ;; 8192 *) 8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8194 for as_dir in $PATH 8195 do 8196 IFS=$as_save_IFS 8197 test -z "$as_dir" && as_dir=. 8198 for ac_exec_ext in '' $ac_executable_extensions; do 8199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8200 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8202 break 2 8203 fi 8204 done 8205 done 8206 IFS=$as_save_IFS 8207 8208 ;; 8209 esac 8210 fi 8211 LN=$ac_cv_path_LN 8212 if test -n "$LN"; then 8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8214 $as_echo "$LN" >&6; } 8215 else 8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8217 $as_echo "no" >&6; } 8218 fi 8219 8220 8221 test -n "$LN" && break 8222 done 8223 8224 else 8225 # If it succeeded, then it was overridden by the user. We will use it 8226 # for the tool. 8227 8228 # First remove it from the list of overridden variables, so we can test 8229 # for unknown variables in the end. 8230 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8231 8232 # Check if we try to supply an empty value 8233 if test "x$LN" = x; then 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5 8235 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;} 8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 8237 $as_echo_n "checking for LN... " >&6; } 8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8239 $as_echo "disabled" >&6; } 8240 else 8241 # Check if the provided tool contains a complete path. 8242 tool_specified="$LN" 8243 tool_basename="${tool_specified##*/}" 8244 if test "x$tool_basename" = "x$tool_specified"; then 8245 # A command without a complete path is provided, search $PATH. 8246 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 8247 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 8248 # Extract the first word of "$tool_basename", so it can be a program name with args. 8249 set dummy $tool_basename; ac_word=$2 8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8251 $as_echo_n "checking for $ac_word... " >&6; } 8252 if ${ac_cv_path_LN+:} false; then : 8253 $as_echo_n "(cached) " >&6 8254 else 8255 case $LN in 8256 [\\/]* | ?:[\\/]*) 8257 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8258 ;; 8259 *) 8260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8261 for as_dir in $PATH 8262 do 8263 IFS=$as_save_IFS 8264 test -z "$as_dir" && as_dir=. 8265 for ac_exec_ext in '' $ac_executable_extensions; do 8266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8267 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8269 break 2 8270 fi 8271 done 8272 done 8273 IFS=$as_save_IFS 8274 8275 ;; 8276 esac 8277 fi 8278 LN=$ac_cv_path_LN 8279 if test -n "$LN"; then 8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8281 $as_echo "$LN" >&6; } 8282 else 8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8284 $as_echo "no" >&6; } 8285 fi 8286 8287 8288 if test "x$LN" = x; then 8289 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8290 fi 8291 else 8292 # Otherwise we believe it is a complete path. Use it as it is. 8293 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 8294 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 8296 $as_echo_n "checking for LN... " >&6; } 8297 if test ! -x "$tool_specified"; then 8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8299 $as_echo "not found" >&6; } 8300 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 8301 fi 8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8303 $as_echo "$tool_specified" >&6; } 8304 fi 8305 fi 8306 fi 8307 8308 fi 8309 8310 8311 8312 if test "x$LN" = x; then 8313 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 8314 fi 8315 8316 8317 8318 8319 8320 # Publish this variable in the help. 8321 8322 8323 if [ -z "${LS+x}" ]; then 8324 # The variable is not set by user, try to locate tool using the code snippet 8325 for ac_prog in ls 8326 do 8327 # Extract the first word of "$ac_prog", so it can be a program name with args. 8328 set dummy $ac_prog; ac_word=$2 8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8330 $as_echo_n "checking for $ac_word... " >&6; } 8331 if ${ac_cv_path_LS+:} false; then : 8332 $as_echo_n "(cached) " >&6 8333 else 8334 case $LS in 8335 [\\/]* | ?:[\\/]*) 8336 ac_cv_path_LS="$LS" # Let the user override the test with a path. 8337 ;; 8338 *) 8339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8340 for as_dir in $PATH 8341 do 8342 IFS=$as_save_IFS 8343 test -z "$as_dir" && as_dir=. 8344 for ac_exec_ext in '' $ac_executable_extensions; do 8345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8346 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 8347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8348 break 2 8349 fi 8350 done 8351 done 8352 IFS=$as_save_IFS 8353 8354 ;; 8355 esac 8356 fi 8357 LS=$ac_cv_path_LS 8358 if test -n "$LS"; then 8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 8360 $as_echo "$LS" >&6; } 8361 else 8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8363 $as_echo "no" >&6; } 8364 fi 8365 8366 8367 test -n "$LS" && break 8368 done 8369 8370 else 8371 # The variable is set, but is it from the command line or the environment? 8372 8373 # Try to remove the string !LS! from our list. 8374 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 8375 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8376 # If it failed, the variable was not from the command line. Ignore it, 8377 # but warn the user (except for BASH, which is always set by the calling BASH). 8378 if test "xLS" != xBASH; then 8379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 8380 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 8381 fi 8382 # Try to locate tool using the code snippet 8383 for ac_prog in ls 8384 do 8385 # Extract the first word of "$ac_prog", so it can be a program name with args. 8386 set dummy $ac_prog; ac_word=$2 8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8388 $as_echo_n "checking for $ac_word... " >&6; } 8389 if ${ac_cv_path_LS+:} false; then : 8390 $as_echo_n "(cached) " >&6 8391 else 8392 case $LS in 8393 [\\/]* | ?:[\\/]*) 8394 ac_cv_path_LS="$LS" # Let the user override the test with a path. 8395 ;; 8396 *) 8397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8398 for as_dir in $PATH 8399 do 8400 IFS=$as_save_IFS 8401 test -z "$as_dir" && as_dir=. 8402 for ac_exec_ext in '' $ac_executable_extensions; do 8403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8404 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 8405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8406 break 2 8407 fi 8408 done 8409 done 8410 IFS=$as_save_IFS 8411 8412 ;; 8413 esac 8414 fi 8415 LS=$ac_cv_path_LS 8416 if test -n "$LS"; then 8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 8418 $as_echo "$LS" >&6; } 8419 else 8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8421 $as_echo "no" >&6; } 8422 fi 8423 8424 8425 test -n "$LS" && break 8426 done 8427 8428 else 8429 # If it succeeded, then it was overridden by the user. We will use it 8430 # for the tool. 8431 8432 # First remove it from the list of overridden variables, so we can test 8433 # for unknown variables in the end. 8434 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8435 8436 # Check if we try to supply an empty value 8437 if test "x$LS" = x; then 8438 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5 8439 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;} 8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 8441 $as_echo_n "checking for LS... " >&6; } 8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8443 $as_echo "disabled" >&6; } 8444 else 8445 # Check if the provided tool contains a complete path. 8446 tool_specified="$LS" 8447 tool_basename="${tool_specified##*/}" 8448 if test "x$tool_basename" = "x$tool_specified"; then 8449 # A command without a complete path is provided, search $PATH. 8450 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 8451 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 8452 # Extract the first word of "$tool_basename", so it can be a program name with args. 8453 set dummy $tool_basename; ac_word=$2 8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8455 $as_echo_n "checking for $ac_word... " >&6; } 8456 if ${ac_cv_path_LS+:} false; then : 8457 $as_echo_n "(cached) " >&6 8458 else 8459 case $LS in 8460 [\\/]* | ?:[\\/]*) 8461 ac_cv_path_LS="$LS" # Let the user override the test with a path. 8462 ;; 8463 *) 8464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8465 for as_dir in $PATH 8466 do 8467 IFS=$as_save_IFS 8468 test -z "$as_dir" && as_dir=. 8469 for ac_exec_ext in '' $ac_executable_extensions; do 8470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8471 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 8472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8473 break 2 8474 fi 8475 done 8476 done 8477 IFS=$as_save_IFS 8478 8479 ;; 8480 esac 8481 fi 8482 LS=$ac_cv_path_LS 8483 if test -n "$LS"; then 8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 8485 $as_echo "$LS" >&6; } 8486 else 8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8488 $as_echo "no" >&6; } 8489 fi 8490 8491 8492 if test "x$LS" = x; then 8493 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8494 fi 8495 else 8496 # Otherwise we believe it is a complete path. Use it as it is. 8497 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 8498 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 8500 $as_echo_n "checking for LS... " >&6; } 8501 if test ! -x "$tool_specified"; then 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8503 $as_echo "not found" >&6; } 8504 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 8505 fi 8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8507 $as_echo "$tool_specified" >&6; } 8508 fi 8509 fi 8510 fi 8511 8512 fi 8513 8514 8515 8516 if test "x$LS" = x; then 8517 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 8518 fi 8519 8520 8521 8522 8523 8524 # Publish this variable in the help. 8525 8526 8527 if [ -z "${MKDIR+x}" ]; then 8528 # The variable is not set by user, try to locate tool using the code snippet 8529 for ac_prog in mkdir 8530 do 8531 # Extract the first word of "$ac_prog", so it can be a program name with args. 8532 set dummy $ac_prog; ac_word=$2 8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8534 $as_echo_n "checking for $ac_word... " >&6; } 8535 if ${ac_cv_path_MKDIR+:} false; then : 8536 $as_echo_n "(cached) " >&6 8537 else 8538 case $MKDIR in 8539 [\\/]* | ?:[\\/]*) 8540 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8541 ;; 8542 *) 8543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8544 for as_dir in $PATH 8545 do 8546 IFS=$as_save_IFS 8547 test -z "$as_dir" && as_dir=. 8548 for ac_exec_ext in '' $ac_executable_extensions; do 8549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8550 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8552 break 2 8553 fi 8554 done 8555 done 8556 IFS=$as_save_IFS 8557 8558 ;; 8559 esac 8560 fi 8561 MKDIR=$ac_cv_path_MKDIR 8562 if test -n "$MKDIR"; then 8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8564 $as_echo "$MKDIR" >&6; } 8565 else 8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8567 $as_echo "no" >&6; } 8568 fi 8569 8570 8571 test -n "$MKDIR" && break 8572 done 8573 8574 else 8575 # The variable is set, but is it from the command line or the environment? 8576 8577 # Try to remove the string !MKDIR! from our list. 8578 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 8579 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8580 # If it failed, the variable was not from the command line. Ignore it, 8581 # but warn the user (except for BASH, which is always set by the calling BASH). 8582 if test "xMKDIR" != xBASH; then 8583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 8584 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 8585 fi 8586 # Try to locate tool using the code snippet 8587 for ac_prog in mkdir 8588 do 8589 # Extract the first word of "$ac_prog", so it can be a program name with args. 8590 set dummy $ac_prog; ac_word=$2 8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8592 $as_echo_n "checking for $ac_word... " >&6; } 8593 if ${ac_cv_path_MKDIR+:} false; then : 8594 $as_echo_n "(cached) " >&6 8595 else 8596 case $MKDIR in 8597 [\\/]* | ?:[\\/]*) 8598 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8599 ;; 8600 *) 8601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8602 for as_dir in $PATH 8603 do 8604 IFS=$as_save_IFS 8605 test -z "$as_dir" && as_dir=. 8606 for ac_exec_ext in '' $ac_executable_extensions; do 8607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8608 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8610 break 2 8611 fi 8612 done 8613 done 8614 IFS=$as_save_IFS 8615 8616 ;; 8617 esac 8618 fi 8619 MKDIR=$ac_cv_path_MKDIR 8620 if test -n "$MKDIR"; then 8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8622 $as_echo "$MKDIR" >&6; } 8623 else 8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8625 $as_echo "no" >&6; } 8626 fi 8627 8628 8629 test -n "$MKDIR" && break 8630 done 8631 8632 else 8633 # If it succeeded, then it was overridden by the user. We will use it 8634 # for the tool. 8635 8636 # First remove it from the list of overridden variables, so we can test 8637 # for unknown variables in the end. 8638 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8639 8640 # Check if we try to supply an empty value 8641 if test "x$MKDIR" = x; then 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5 8643 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;} 8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8645 $as_echo_n "checking for MKDIR... " >&6; } 8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8647 $as_echo "disabled" >&6; } 8648 else 8649 # Check if the provided tool contains a complete path. 8650 tool_specified="$MKDIR" 8651 tool_basename="${tool_specified##*/}" 8652 if test "x$tool_basename" = "x$tool_specified"; then 8653 # A command without a complete path is provided, search $PATH. 8654 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 8655 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 8656 # Extract the first word of "$tool_basename", so it can be a program name with args. 8657 set dummy $tool_basename; ac_word=$2 8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8659 $as_echo_n "checking for $ac_word... " >&6; } 8660 if ${ac_cv_path_MKDIR+:} false; then : 8661 $as_echo_n "(cached) " >&6 8662 else 8663 case $MKDIR in 8664 [\\/]* | ?:[\\/]*) 8665 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8666 ;; 8667 *) 8668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8669 for as_dir in $PATH 8670 do 8671 IFS=$as_save_IFS 8672 test -z "$as_dir" && as_dir=. 8673 for ac_exec_ext in '' $ac_executable_extensions; do 8674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8675 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8677 break 2 8678 fi 8679 done 8680 done 8681 IFS=$as_save_IFS 8682 8683 ;; 8684 esac 8685 fi 8686 MKDIR=$ac_cv_path_MKDIR 8687 if test -n "$MKDIR"; then 8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8689 $as_echo "$MKDIR" >&6; } 8690 else 8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8692 $as_echo "no" >&6; } 8693 fi 8694 8695 8696 if test "x$MKDIR" = x; then 8697 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8698 fi 8699 else 8700 # Otherwise we believe it is a complete path. Use it as it is. 8701 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 8702 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8704 $as_echo_n "checking for MKDIR... " >&6; } 8705 if test ! -x "$tool_specified"; then 8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8707 $as_echo "not found" >&6; } 8708 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 8709 fi 8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8711 $as_echo "$tool_specified" >&6; } 8712 fi 8713 fi 8714 fi 8715 8716 fi 8717 8718 8719 8720 if test "x$MKDIR" = x; then 8721 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 8722 fi 8723 8724 8725 8726 8727 8728 # Publish this variable in the help. 8729 8730 8731 if [ -z "${MKTEMP+x}" ]; then 8732 # The variable is not set by user, try to locate tool using the code snippet 8733 for ac_prog in mktemp 8734 do 8735 # Extract the first word of "$ac_prog", so it can be a program name with args. 8736 set dummy $ac_prog; ac_word=$2 8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8738 $as_echo_n "checking for $ac_word... " >&6; } 8739 if ${ac_cv_path_MKTEMP+:} false; then : 8740 $as_echo_n "(cached) " >&6 8741 else 8742 case $MKTEMP in 8743 [\\/]* | ?:[\\/]*) 8744 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8745 ;; 8746 *) 8747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8748 for as_dir in $PATH 8749 do 8750 IFS=$as_save_IFS 8751 test -z "$as_dir" && as_dir=. 8752 for ac_exec_ext in '' $ac_executable_extensions; do 8753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8754 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8756 break 2 8757 fi 8758 done 8759 done 8760 IFS=$as_save_IFS 8761 8762 ;; 8763 esac 8764 fi 8765 MKTEMP=$ac_cv_path_MKTEMP 8766 if test -n "$MKTEMP"; then 8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8768 $as_echo "$MKTEMP" >&6; } 8769 else 8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8771 $as_echo "no" >&6; } 8772 fi 8773 8774 8775 test -n "$MKTEMP" && break 8776 done 8777 8778 else 8779 # The variable is set, but is it from the command line or the environment? 8780 8781 # Try to remove the string !MKTEMP! from our list. 8782 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 8783 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8784 # If it failed, the variable was not from the command line. Ignore it, 8785 # but warn the user (except for BASH, which is always set by the calling BASH). 8786 if test "xMKTEMP" != xBASH; then 8787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 8788 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 8789 fi 8790 # Try to locate tool using the code snippet 8791 for ac_prog in mktemp 8792 do 8793 # Extract the first word of "$ac_prog", so it can be a program name with args. 8794 set dummy $ac_prog; ac_word=$2 8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8796 $as_echo_n "checking for $ac_word... " >&6; } 8797 if ${ac_cv_path_MKTEMP+:} false; then : 8798 $as_echo_n "(cached) " >&6 8799 else 8800 case $MKTEMP in 8801 [\\/]* | ?:[\\/]*) 8802 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8803 ;; 8804 *) 8805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8806 for as_dir in $PATH 8807 do 8808 IFS=$as_save_IFS 8809 test -z "$as_dir" && as_dir=. 8810 for ac_exec_ext in '' $ac_executable_extensions; do 8811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8812 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8814 break 2 8815 fi 8816 done 8817 done 8818 IFS=$as_save_IFS 8819 8820 ;; 8821 esac 8822 fi 8823 MKTEMP=$ac_cv_path_MKTEMP 8824 if test -n "$MKTEMP"; then 8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8826 $as_echo "$MKTEMP" >&6; } 8827 else 8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8829 $as_echo "no" >&6; } 8830 fi 8831 8832 8833 test -n "$MKTEMP" && break 8834 done 8835 8836 else 8837 # If it succeeded, then it was overridden by the user. We will use it 8838 # for the tool. 8839 8840 # First remove it from the list of overridden variables, so we can test 8841 # for unknown variables in the end. 8842 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8843 8844 # Check if we try to supply an empty value 8845 if test "x$MKTEMP" = x; then 8846 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5 8847 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;} 8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8849 $as_echo_n "checking for MKTEMP... " >&6; } 8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8851 $as_echo "disabled" >&6; } 8852 else 8853 # Check if the provided tool contains a complete path. 8854 tool_specified="$MKTEMP" 8855 tool_basename="${tool_specified##*/}" 8856 if test "x$tool_basename" = "x$tool_specified"; then 8857 # A command without a complete path is provided, search $PATH. 8858 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 8859 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 8860 # Extract the first word of "$tool_basename", so it can be a program name with args. 8861 set dummy $tool_basename; ac_word=$2 8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8863 $as_echo_n "checking for $ac_word... " >&6; } 8864 if ${ac_cv_path_MKTEMP+:} false; then : 8865 $as_echo_n "(cached) " >&6 8866 else 8867 case $MKTEMP in 8868 [\\/]* | ?:[\\/]*) 8869 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8870 ;; 8871 *) 8872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8873 for as_dir in $PATH 8874 do 8875 IFS=$as_save_IFS 8876 test -z "$as_dir" && as_dir=. 8877 for ac_exec_ext in '' $ac_executable_extensions; do 8878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8879 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8881 break 2 8882 fi 8883 done 8884 done 8885 IFS=$as_save_IFS 8886 8887 ;; 8888 esac 8889 fi 8890 MKTEMP=$ac_cv_path_MKTEMP 8891 if test -n "$MKTEMP"; then 8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8893 $as_echo "$MKTEMP" >&6; } 8894 else 8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8896 $as_echo "no" >&6; } 8897 fi 8898 8899 8900 if test "x$MKTEMP" = x; then 8901 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8902 fi 8903 else 8904 # Otherwise we believe it is a complete path. Use it as it is. 8905 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 8906 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8908 $as_echo_n "checking for MKTEMP... " >&6; } 8909 if test ! -x "$tool_specified"; then 8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8911 $as_echo "not found" >&6; } 8912 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 8913 fi 8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8915 $as_echo "$tool_specified" >&6; } 8916 fi 8917 fi 8918 fi 8919 8920 fi 8921 8922 8923 8924 if test "x$MKTEMP" = x; then 8925 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 8926 fi 8927 8928 8929 8930 8931 8932 # Publish this variable in the help. 8933 8934 8935 if [ -z "${MV+x}" ]; then 8936 # The variable is not set by user, try to locate tool using the code snippet 8937 for ac_prog in mv 8938 do 8939 # Extract the first word of "$ac_prog", so it can be a program name with args. 8940 set dummy $ac_prog; ac_word=$2 8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8942 $as_echo_n "checking for $ac_word... " >&6; } 8943 if ${ac_cv_path_MV+:} false; then : 8944 $as_echo_n "(cached) " >&6 8945 else 8946 case $MV in 8947 [\\/]* | ?:[\\/]*) 8948 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8949 ;; 8950 *) 8951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8952 for as_dir in $PATH 8953 do 8954 IFS=$as_save_IFS 8955 test -z "$as_dir" && as_dir=. 8956 for ac_exec_ext in '' $ac_executable_extensions; do 8957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8958 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8960 break 2 8961 fi 8962 done 8963 done 8964 IFS=$as_save_IFS 8965 8966 ;; 8967 esac 8968 fi 8969 MV=$ac_cv_path_MV 8970 if test -n "$MV"; then 8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8972 $as_echo "$MV" >&6; } 8973 else 8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8975 $as_echo "no" >&6; } 8976 fi 8977 8978 8979 test -n "$MV" && break 8980 done 8981 8982 else 8983 # The variable is set, but is it from the command line or the environment? 8984 8985 # Try to remove the string !MV! from our list. 8986 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 8987 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8988 # If it failed, the variable was not from the command line. Ignore it, 8989 # but warn the user (except for BASH, which is always set by the calling BASH). 8990 if test "xMV" != xBASH; then 8991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 8992 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 8993 fi 8994 # Try to locate tool using the code snippet 8995 for ac_prog in mv 8996 do 8997 # Extract the first word of "$ac_prog", so it can be a program name with args. 8998 set dummy $ac_prog; ac_word=$2 8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9000 $as_echo_n "checking for $ac_word... " >&6; } 9001 if ${ac_cv_path_MV+:} false; then : 9002 $as_echo_n "(cached) " >&6 9003 else 9004 case $MV in 9005 [\\/]* | ?:[\\/]*) 9006 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9007 ;; 9008 *) 9009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9010 for as_dir in $PATH 9011 do 9012 IFS=$as_save_IFS 9013 test -z "$as_dir" && as_dir=. 9014 for ac_exec_ext in '' $ac_executable_extensions; do 9015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9016 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9018 break 2 9019 fi 9020 done 9021 done 9022 IFS=$as_save_IFS 9023 9024 ;; 9025 esac 9026 fi 9027 MV=$ac_cv_path_MV 9028 if test -n "$MV"; then 9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9030 $as_echo "$MV" >&6; } 9031 else 9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9033 $as_echo "no" >&6; } 9034 fi 9035 9036 9037 test -n "$MV" && break 9038 done 9039 9040 else 9041 # If it succeeded, then it was overridden by the user. We will use it 9042 # for the tool. 9043 9044 # First remove it from the list of overridden variables, so we can test 9045 # for unknown variables in the end. 9046 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9047 9048 # Check if we try to supply an empty value 9049 if test "x$MV" = x; then 9050 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5 9051 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;} 9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9053 $as_echo_n "checking for MV... " >&6; } 9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9055 $as_echo "disabled" >&6; } 9056 else 9057 # Check if the provided tool contains a complete path. 9058 tool_specified="$MV" 9059 tool_basename="${tool_specified##*/}" 9060 if test "x$tool_basename" = "x$tool_specified"; then 9061 # A command without a complete path is provided, search $PATH. 9062 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 9063 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 9064 # Extract the first word of "$tool_basename", so it can be a program name with args. 9065 set dummy $tool_basename; ac_word=$2 9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9067 $as_echo_n "checking for $ac_word... " >&6; } 9068 if ${ac_cv_path_MV+:} false; then : 9069 $as_echo_n "(cached) " >&6 9070 else 9071 case $MV in 9072 [\\/]* | ?:[\\/]*) 9073 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9074 ;; 9075 *) 9076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9077 for as_dir in $PATH 9078 do 9079 IFS=$as_save_IFS 9080 test -z "$as_dir" && as_dir=. 9081 for ac_exec_ext in '' $ac_executable_extensions; do 9082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9083 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9085 break 2 9086 fi 9087 done 9088 done 9089 IFS=$as_save_IFS 9090 9091 ;; 9092 esac 9093 fi 9094 MV=$ac_cv_path_MV 9095 if test -n "$MV"; then 9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9097 $as_echo "$MV" >&6; } 9098 else 9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9100 $as_echo "no" >&6; } 9101 fi 9102 9103 9104 if test "x$MV" = x; then 9105 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9106 fi 9107 else 9108 # Otherwise we believe it is a complete path. Use it as it is. 9109 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 9110 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9112 $as_echo_n "checking for MV... " >&6; } 9113 if test ! -x "$tool_specified"; then 9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9115 $as_echo "not found" >&6; } 9116 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 9117 fi 9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9119 $as_echo "$tool_specified" >&6; } 9120 fi 9121 fi 9122 fi 9123 9124 fi 9125 9126 9127 9128 if test "x$MV" = x; then 9129 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 9130 fi 9131 9132 9133 9134 9135 9136 # Publish this variable in the help. 9137 9138 9139 if [ -z "${NAWK+x}" ]; then 9140 # The variable is not set by user, try to locate tool using the code snippet 9141 for ac_prog in nawk gawk awk 9142 do 9143 # Extract the first word of "$ac_prog", so it can be a program name with args. 9144 set dummy $ac_prog; ac_word=$2 9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9146 $as_echo_n "checking for $ac_word... " >&6; } 9147 if ${ac_cv_path_NAWK+:} false; then : 9148 $as_echo_n "(cached) " >&6 9149 else 9150 case $NAWK in 9151 [\\/]* | ?:[\\/]*) 9152 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9153 ;; 9154 *) 9155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9156 for as_dir in $PATH 9157 do 9158 IFS=$as_save_IFS 9159 test -z "$as_dir" && as_dir=. 9160 for ac_exec_ext in '' $ac_executable_extensions; do 9161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9162 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9164 break 2 9165 fi 9166 done 9167 done 9168 IFS=$as_save_IFS 9169 9170 ;; 9171 esac 9172 fi 9173 NAWK=$ac_cv_path_NAWK 9174 if test -n "$NAWK"; then 9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9176 $as_echo "$NAWK" >&6; } 9177 else 9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9179 $as_echo "no" >&6; } 9180 fi 9181 9182 9183 test -n "$NAWK" && break 9184 done 9185 9186 else 9187 # The variable is set, but is it from the command line or the environment? 9188 9189 # Try to remove the string !NAWK! from our list. 9190 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 9191 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9192 # If it failed, the variable was not from the command line. Ignore it, 9193 # but warn the user (except for BASH, which is always set by the calling BASH). 9194 if test "xNAWK" != xBASH; then 9195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 9196 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 9197 fi 9198 # Try to locate tool using the code snippet 9199 for ac_prog in nawk gawk awk 9200 do 9201 # Extract the first word of "$ac_prog", so it can be a program name with args. 9202 set dummy $ac_prog; ac_word=$2 9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9204 $as_echo_n "checking for $ac_word... " >&6; } 9205 if ${ac_cv_path_NAWK+:} false; then : 9206 $as_echo_n "(cached) " >&6 9207 else 9208 case $NAWK in 9209 [\\/]* | ?:[\\/]*) 9210 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9211 ;; 9212 *) 9213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9214 for as_dir in $PATH 9215 do 9216 IFS=$as_save_IFS 9217 test -z "$as_dir" && as_dir=. 9218 for ac_exec_ext in '' $ac_executable_extensions; do 9219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9220 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9222 break 2 9223 fi 9224 done 9225 done 9226 IFS=$as_save_IFS 9227 9228 ;; 9229 esac 9230 fi 9231 NAWK=$ac_cv_path_NAWK 9232 if test -n "$NAWK"; then 9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9234 $as_echo "$NAWK" >&6; } 9235 else 9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9237 $as_echo "no" >&6; } 9238 fi 9239 9240 9241 test -n "$NAWK" && break 9242 done 9243 9244 else 9245 # If it succeeded, then it was overridden by the user. We will use it 9246 # for the tool. 9247 9248 # First remove it from the list of overridden variables, so we can test 9249 # for unknown variables in the end. 9250 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9251 9252 # Check if we try to supply an empty value 9253 if test "x$NAWK" = x; then 9254 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5 9255 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;} 9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 9257 $as_echo_n "checking for NAWK... " >&6; } 9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9259 $as_echo "disabled" >&6; } 9260 else 9261 # Check if the provided tool contains a complete path. 9262 tool_specified="$NAWK" 9263 tool_basename="${tool_specified##*/}" 9264 if test "x$tool_basename" = "x$tool_specified"; then 9265 # A command without a complete path is provided, search $PATH. 9266 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 9267 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 9268 # Extract the first word of "$tool_basename", so it can be a program name with args. 9269 set dummy $tool_basename; ac_word=$2 9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9271 $as_echo_n "checking for $ac_word... " >&6; } 9272 if ${ac_cv_path_NAWK+:} false; then : 9273 $as_echo_n "(cached) " >&6 9274 else 9275 case $NAWK in 9276 [\\/]* | ?:[\\/]*) 9277 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9278 ;; 9279 *) 9280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9281 for as_dir in $PATH 9282 do 9283 IFS=$as_save_IFS 9284 test -z "$as_dir" && as_dir=. 9285 for ac_exec_ext in '' $ac_executable_extensions; do 9286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9287 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9289 break 2 9290 fi 9291 done 9292 done 9293 IFS=$as_save_IFS 9294 9295 ;; 9296 esac 9297 fi 9298 NAWK=$ac_cv_path_NAWK 9299 if test -n "$NAWK"; then 9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9301 $as_echo "$NAWK" >&6; } 9302 else 9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9304 $as_echo "no" >&6; } 9305 fi 9306 9307 9308 if test "x$NAWK" = x; then 9309 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9310 fi 9311 else 9312 # Otherwise we believe it is a complete path. Use it as it is. 9313 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 9314 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 9316 $as_echo_n "checking for NAWK... " >&6; } 9317 if test ! -x "$tool_specified"; then 9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9319 $as_echo "not found" >&6; } 9320 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 9321 fi 9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9323 $as_echo "$tool_specified" >&6; } 9324 fi 9325 fi 9326 fi 9327 9328 fi 9329 9330 9331 9332 if test "x$NAWK" = x; then 9333 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 9334 fi 9335 9336 9337 9338 9339 9340 # Publish this variable in the help. 9341 9342 9343 if [ -z "${PRINTF+x}" ]; then 9344 # The variable is not set by user, try to locate tool using the code snippet 9345 for ac_prog in printf 9346 do 9347 # Extract the first word of "$ac_prog", so it can be a program name with args. 9348 set dummy $ac_prog; ac_word=$2 9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9350 $as_echo_n "checking for $ac_word... " >&6; } 9351 if ${ac_cv_path_PRINTF+:} false; then : 9352 $as_echo_n "(cached) " >&6 9353 else 9354 case $PRINTF in 9355 [\\/]* | ?:[\\/]*) 9356 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 9357 ;; 9358 *) 9359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9360 for as_dir in $PATH 9361 do 9362 IFS=$as_save_IFS 9363 test -z "$as_dir" && as_dir=. 9364 for ac_exec_ext in '' $ac_executable_extensions; do 9365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9366 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 9367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9368 break 2 9369 fi 9370 done 9371 done 9372 IFS=$as_save_IFS 9373 9374 ;; 9375 esac 9376 fi 9377 PRINTF=$ac_cv_path_PRINTF 9378 if test -n "$PRINTF"; then 9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 9380 $as_echo "$PRINTF" >&6; } 9381 else 9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9383 $as_echo "no" >&6; } 9384 fi 9385 9386 9387 test -n "$PRINTF" && break 9388 done 9389 9390 else 9391 # The variable is set, but is it from the command line or the environment? 9392 9393 # Try to remove the string !PRINTF! from our list. 9394 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 9395 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9396 # If it failed, the variable was not from the command line. Ignore it, 9397 # but warn the user (except for BASH, which is always set by the calling BASH). 9398 if test "xPRINTF" != xBASH; then 9399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 9400 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 9401 fi 9402 # Try to locate tool using the code snippet 9403 for ac_prog in printf 9404 do 9405 # Extract the first word of "$ac_prog", so it can be a program name with args. 9406 set dummy $ac_prog; ac_word=$2 9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9408 $as_echo_n "checking for $ac_word... " >&6; } 9409 if ${ac_cv_path_PRINTF+:} false; then : 9410 $as_echo_n "(cached) " >&6 9411 else 9412 case $PRINTF in 9413 [\\/]* | ?:[\\/]*) 9414 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 9415 ;; 9416 *) 9417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9418 for as_dir in $PATH 9419 do 9420 IFS=$as_save_IFS 9421 test -z "$as_dir" && as_dir=. 9422 for ac_exec_ext in '' $ac_executable_extensions; do 9423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9424 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 9425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9426 break 2 9427 fi 9428 done 9429 done 9430 IFS=$as_save_IFS 9431 9432 ;; 9433 esac 9434 fi 9435 PRINTF=$ac_cv_path_PRINTF 9436 if test -n "$PRINTF"; then 9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 9438 $as_echo "$PRINTF" >&6; } 9439 else 9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9441 $as_echo "no" >&6; } 9442 fi 9443 9444 9445 test -n "$PRINTF" && break 9446 done 9447 9448 else 9449 # If it succeeded, then it was overridden by the user. We will use it 9450 # for the tool. 9451 9452 # First remove it from the list of overridden variables, so we can test 9453 # for unknown variables in the end. 9454 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9455 9456 # Check if we try to supply an empty value 9457 if test "x$PRINTF" = x; then 9458 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5 9459 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;} 9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 9461 $as_echo_n "checking for PRINTF... " >&6; } 9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9463 $as_echo "disabled" >&6; } 9464 else 9465 # Check if the provided tool contains a complete path. 9466 tool_specified="$PRINTF" 9467 tool_basename="${tool_specified##*/}" 9468 if test "x$tool_basename" = "x$tool_specified"; then 9469 # A command without a complete path is provided, search $PATH. 9470 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 9471 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 9472 # Extract the first word of "$tool_basename", so it can be a program name with args. 9473 set dummy $tool_basename; ac_word=$2 9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9475 $as_echo_n "checking for $ac_word... " >&6; } 9476 if ${ac_cv_path_PRINTF+:} false; then : 9477 $as_echo_n "(cached) " >&6 9478 else 9479 case $PRINTF in 9480 [\\/]* | ?:[\\/]*) 9481 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 9482 ;; 9483 *) 9484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9485 for as_dir in $PATH 9486 do 9487 IFS=$as_save_IFS 9488 test -z "$as_dir" && as_dir=. 9489 for ac_exec_ext in '' $ac_executable_extensions; do 9490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9491 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 9492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9493 break 2 9494 fi 9495 done 9496 done 9497 IFS=$as_save_IFS 9498 9499 ;; 9500 esac 9501 fi 9502 PRINTF=$ac_cv_path_PRINTF 9503 if test -n "$PRINTF"; then 9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 9505 $as_echo "$PRINTF" >&6; } 9506 else 9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9508 $as_echo "no" >&6; } 9509 fi 9510 9511 9512 if test "x$PRINTF" = x; then 9513 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9514 fi 9515 else 9516 # Otherwise we believe it is a complete path. Use it as it is. 9517 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 9518 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 9520 $as_echo_n "checking for PRINTF... " >&6; } 9521 if test ! -x "$tool_specified"; then 9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9523 $as_echo "not found" >&6; } 9524 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 9525 fi 9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9527 $as_echo "$tool_specified" >&6; } 9528 fi 9529 fi 9530 fi 9531 9532 fi 9533 9534 9535 9536 if test "x$PRINTF" = x; then 9537 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 9538 fi 9539 9540 9541 9542 9543 9544 # Publish this variable in the help. 9545 9546 9547 if [ -z "${RM+x}" ]; then 9548 # The variable is not set by user, try to locate tool using the code snippet 9549 for ac_prog in rm 9550 do 9551 # Extract the first word of "$ac_prog", so it can be a program name with args. 9552 set dummy $ac_prog; ac_word=$2 9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9554 $as_echo_n "checking for $ac_word... " >&6; } 9555 if ${ac_cv_path_RM+:} false; then : 9556 $as_echo_n "(cached) " >&6 9557 else 9558 case $RM in 9559 [\\/]* | ?:[\\/]*) 9560 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9561 ;; 9562 *) 9563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9564 for as_dir in $PATH 9565 do 9566 IFS=$as_save_IFS 9567 test -z "$as_dir" && as_dir=. 9568 for ac_exec_ext in '' $ac_executable_extensions; do 9569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9570 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9572 break 2 9573 fi 9574 done 9575 done 9576 IFS=$as_save_IFS 9577 9578 ;; 9579 esac 9580 fi 9581 RM=$ac_cv_path_RM 9582 if test -n "$RM"; then 9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9584 $as_echo "$RM" >&6; } 9585 else 9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9587 $as_echo "no" >&6; } 9588 fi 9589 9590 9591 test -n "$RM" && break 9592 done 9593 9594 else 9595 # The variable is set, but is it from the command line or the environment? 9596 9597 # Try to remove the string !RM! from our list. 9598 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 9599 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9600 # If it failed, the variable was not from the command line. Ignore it, 9601 # but warn the user (except for BASH, which is always set by the calling BASH). 9602 if test "xRM" != xBASH; then 9603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 9604 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 9605 fi 9606 # Try to locate tool using the code snippet 9607 for ac_prog in rm 9608 do 9609 # Extract the first word of "$ac_prog", so it can be a program name with args. 9610 set dummy $ac_prog; ac_word=$2 9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9612 $as_echo_n "checking for $ac_word... " >&6; } 9613 if ${ac_cv_path_RM+:} false; then : 9614 $as_echo_n "(cached) " >&6 9615 else 9616 case $RM in 9617 [\\/]* | ?:[\\/]*) 9618 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9619 ;; 9620 *) 9621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9622 for as_dir in $PATH 9623 do 9624 IFS=$as_save_IFS 9625 test -z "$as_dir" && as_dir=. 9626 for ac_exec_ext in '' $ac_executable_extensions; do 9627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9628 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9630 break 2 9631 fi 9632 done 9633 done 9634 IFS=$as_save_IFS 9635 9636 ;; 9637 esac 9638 fi 9639 RM=$ac_cv_path_RM 9640 if test -n "$RM"; then 9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9642 $as_echo "$RM" >&6; } 9643 else 9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9645 $as_echo "no" >&6; } 9646 fi 9647 9648 9649 test -n "$RM" && break 9650 done 9651 9652 else 9653 # If it succeeded, then it was overridden by the user. We will use it 9654 # for the tool. 9655 9656 # First remove it from the list of overridden variables, so we can test 9657 # for unknown variables in the end. 9658 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9659 9660 # Check if we try to supply an empty value 9661 if test "x$RM" = x; then 9662 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5 9663 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;} 9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 9665 $as_echo_n "checking for RM... " >&6; } 9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9667 $as_echo "disabled" >&6; } 9668 else 9669 # Check if the provided tool contains a complete path. 9670 tool_specified="$RM" 9671 tool_basename="${tool_specified##*/}" 9672 if test "x$tool_basename" = "x$tool_specified"; then 9673 # A command without a complete path is provided, search $PATH. 9674 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 9675 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 9676 # Extract the first word of "$tool_basename", so it can be a program name with args. 9677 set dummy $tool_basename; ac_word=$2 9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9679 $as_echo_n "checking for $ac_word... " >&6; } 9680 if ${ac_cv_path_RM+:} false; then : 9681 $as_echo_n "(cached) " >&6 9682 else 9683 case $RM in 9684 [\\/]* | ?:[\\/]*) 9685 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9686 ;; 9687 *) 9688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9689 for as_dir in $PATH 9690 do 9691 IFS=$as_save_IFS 9692 test -z "$as_dir" && as_dir=. 9693 for ac_exec_ext in '' $ac_executable_extensions; do 9694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9695 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9697 break 2 9698 fi 9699 done 9700 done 9701 IFS=$as_save_IFS 9702 9703 ;; 9704 esac 9705 fi 9706 RM=$ac_cv_path_RM 9707 if test -n "$RM"; then 9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9709 $as_echo "$RM" >&6; } 9710 else 9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9712 $as_echo "no" >&6; } 9713 fi 9714 9715 9716 if test "x$RM" = x; then 9717 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9718 fi 9719 else 9720 # Otherwise we believe it is a complete path. Use it as it is. 9721 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 9722 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 9724 $as_echo_n "checking for RM... " >&6; } 9725 if test ! -x "$tool_specified"; then 9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9727 $as_echo "not found" >&6; } 9728 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 9729 fi 9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9731 $as_echo "$tool_specified" >&6; } 9732 fi 9733 fi 9734 fi 9735 9736 fi 9737 9738 9739 9740 if test "x$RM" = x; then 9741 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 9742 fi 9743 9744 9745 9746 9747 9748 # Publish this variable in the help. 9749 9750 9751 if [ -z "${RMDIR+x}" ]; then 9752 # The variable is not set by user, try to locate tool using the code snippet 9753 for ac_prog in rmdir 9754 do 9755 # Extract the first word of "$ac_prog", so it can be a program name with args. 9756 set dummy $ac_prog; ac_word=$2 9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9758 $as_echo_n "checking for $ac_word... " >&6; } 9759 if ${ac_cv_path_RMDIR+:} false; then : 9760 $as_echo_n "(cached) " >&6 9761 else 9762 case $RMDIR in 9763 [\\/]* | ?:[\\/]*) 9764 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 9765 ;; 9766 *) 9767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9768 for as_dir in $PATH 9769 do 9770 IFS=$as_save_IFS 9771 test -z "$as_dir" && as_dir=. 9772 for ac_exec_ext in '' $ac_executable_extensions; do 9773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9774 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 9775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9776 break 2 9777 fi 9778 done 9779 done 9780 IFS=$as_save_IFS 9781 9782 ;; 9783 esac 9784 fi 9785 RMDIR=$ac_cv_path_RMDIR 9786 if test -n "$RMDIR"; then 9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 9788 $as_echo "$RMDIR" >&6; } 9789 else 9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9791 $as_echo "no" >&6; } 9792 fi 9793 9794 9795 test -n "$RMDIR" && break 9796 done 9797 9798 else 9799 # The variable is set, but is it from the command line or the environment? 9800 9801 # Try to remove the string !RMDIR! from our list. 9802 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/} 9803 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9804 # If it failed, the variable was not from the command line. Ignore it, 9805 # but warn the user (except for BASH, which is always set by the calling BASH). 9806 if test "xRMDIR" != xBASH; then 9807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5 9808 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;} 9809 fi 9810 # Try to locate tool using the code snippet 9811 for ac_prog in rmdir 9812 do 9813 # Extract the first word of "$ac_prog", so it can be a program name with args. 9814 set dummy $ac_prog; ac_word=$2 9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9816 $as_echo_n "checking for $ac_word... " >&6; } 9817 if ${ac_cv_path_RMDIR+:} false; then : 9818 $as_echo_n "(cached) " >&6 9819 else 9820 case $RMDIR in 9821 [\\/]* | ?:[\\/]*) 9822 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 9823 ;; 9824 *) 9825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9826 for as_dir in $PATH 9827 do 9828 IFS=$as_save_IFS 9829 test -z "$as_dir" && as_dir=. 9830 for ac_exec_ext in '' $ac_executable_extensions; do 9831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9832 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 9833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9834 break 2 9835 fi 9836 done 9837 done 9838 IFS=$as_save_IFS 9839 9840 ;; 9841 esac 9842 fi 9843 RMDIR=$ac_cv_path_RMDIR 9844 if test -n "$RMDIR"; then 9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 9846 $as_echo "$RMDIR" >&6; } 9847 else 9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9849 $as_echo "no" >&6; } 9850 fi 9851 9852 9853 test -n "$RMDIR" && break 9854 done 9855 9856 else 9857 # If it succeeded, then it was overridden by the user. We will use it 9858 # for the tool. 9859 9860 # First remove it from the list of overridden variables, so we can test 9861 # for unknown variables in the end. 9862 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9863 9864 # Check if we try to supply an empty value 9865 if test "x$RMDIR" = x; then 9866 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5 9867 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;} 9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 9869 $as_echo_n "checking for RMDIR... " >&6; } 9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9871 $as_echo "disabled" >&6; } 9872 else 9873 # Check if the provided tool contains a complete path. 9874 tool_specified="$RMDIR" 9875 tool_basename="${tool_specified##*/}" 9876 if test "x$tool_basename" = "x$tool_specified"; then 9877 # A command without a complete path is provided, search $PATH. 9878 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5 9879 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;} 9880 # Extract the first word of "$tool_basename", so it can be a program name with args. 9881 set dummy $tool_basename; ac_word=$2 9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9883 $as_echo_n "checking for $ac_word... " >&6; } 9884 if ${ac_cv_path_RMDIR+:} false; then : 9885 $as_echo_n "(cached) " >&6 9886 else 9887 case $RMDIR in 9888 [\\/]* | ?:[\\/]*) 9889 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 9890 ;; 9891 *) 9892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9893 for as_dir in $PATH 9894 do 9895 IFS=$as_save_IFS 9896 test -z "$as_dir" && as_dir=. 9897 for ac_exec_ext in '' $ac_executable_extensions; do 9898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9899 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 9900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9901 break 2 9902 fi 9903 done 9904 done 9905 IFS=$as_save_IFS 9906 9907 ;; 9908 esac 9909 fi 9910 RMDIR=$ac_cv_path_RMDIR 9911 if test -n "$RMDIR"; then 9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 9913 $as_echo "$RMDIR" >&6; } 9914 else 9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9916 $as_echo "no" >&6; } 9917 fi 9918 9919 9920 if test "x$RMDIR" = x; then 9921 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9922 fi 9923 else 9924 # Otherwise we believe it is a complete path. Use it as it is. 9925 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5 9926 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;} 9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 9928 $as_echo_n "checking for RMDIR... " >&6; } 9929 if test ! -x "$tool_specified"; then 9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9931 $as_echo "not found" >&6; } 9932 as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 9933 fi 9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9935 $as_echo "$tool_specified" >&6; } 9936 fi 9937 fi 9938 fi 9939 9940 fi 9941 9942 9943 9944 if test "x$RMDIR" = x; then 9945 as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5 9946 fi 9947 9948 9949 9950 9951 9952 # Publish this variable in the help. 9953 9954 9955 if [ -z "${SH+x}" ]; then 9956 # The variable is not set by user, try to locate tool using the code snippet 9957 for ac_prog in sh 9958 do 9959 # Extract the first word of "$ac_prog", so it can be a program name with args. 9960 set dummy $ac_prog; ac_word=$2 9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9962 $as_echo_n "checking for $ac_word... " >&6; } 9963 if ${ac_cv_path_SH+:} false; then : 9964 $as_echo_n "(cached) " >&6 9965 else 9966 case $SH in 9967 [\\/]* | ?:[\\/]*) 9968 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9969 ;; 9970 *) 9971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9972 for as_dir in $PATH 9973 do 9974 IFS=$as_save_IFS 9975 test -z "$as_dir" && as_dir=. 9976 for ac_exec_ext in '' $ac_executable_extensions; do 9977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9978 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9980 break 2 9981 fi 9982 done 9983 done 9984 IFS=$as_save_IFS 9985 9986 ;; 9987 esac 9988 fi 9989 SH=$ac_cv_path_SH 9990 if test -n "$SH"; then 9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9992 $as_echo "$SH" >&6; } 9993 else 9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9995 $as_echo "no" >&6; } 9996 fi 9997 9998 9999 test -n "$SH" && break 10000 done 10001 10002 else 10003 # The variable is set, but is it from the command line or the environment? 10004 10005 # Try to remove the string !SH! from our list. 10006 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 10007 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10008 # If it failed, the variable was not from the command line. Ignore it, 10009 # but warn the user (except for BASH, which is always set by the calling BASH). 10010 if test "xSH" != xBASH; then 10011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 10012 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 10013 fi 10014 # Try to locate tool using the code snippet 10015 for ac_prog in sh 10016 do 10017 # Extract the first word of "$ac_prog", so it can be a program name with args. 10018 set dummy $ac_prog; ac_word=$2 10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10020 $as_echo_n "checking for $ac_word... " >&6; } 10021 if ${ac_cv_path_SH+:} false; then : 10022 $as_echo_n "(cached) " >&6 10023 else 10024 case $SH in 10025 [\\/]* | ?:[\\/]*) 10026 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10027 ;; 10028 *) 10029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10030 for as_dir in $PATH 10031 do 10032 IFS=$as_save_IFS 10033 test -z "$as_dir" && as_dir=. 10034 for ac_exec_ext in '' $ac_executable_extensions; do 10035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10036 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10038 break 2 10039 fi 10040 done 10041 done 10042 IFS=$as_save_IFS 10043 10044 ;; 10045 esac 10046 fi 10047 SH=$ac_cv_path_SH 10048 if test -n "$SH"; then 10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10050 $as_echo "$SH" >&6; } 10051 else 10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10053 $as_echo "no" >&6; } 10054 fi 10055 10056 10057 test -n "$SH" && break 10058 done 10059 10060 else 10061 # If it succeeded, then it was overridden by the user. We will use it 10062 # for the tool. 10063 10064 # First remove it from the list of overridden variables, so we can test 10065 # for unknown variables in the end. 10066 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10067 10068 # Check if we try to supply an empty value 10069 if test "x$SH" = x; then 10070 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5 10071 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;} 10072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10073 $as_echo_n "checking for SH... " >&6; } 10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10075 $as_echo "disabled" >&6; } 10076 else 10077 # Check if the provided tool contains a complete path. 10078 tool_specified="$SH" 10079 tool_basename="${tool_specified##*/}" 10080 if test "x$tool_basename" = "x$tool_specified"; then 10081 # A command without a complete path is provided, search $PATH. 10082 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 10083 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 10084 # Extract the first word of "$tool_basename", so it can be a program name with args. 10085 set dummy $tool_basename; ac_word=$2 10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10087 $as_echo_n "checking for $ac_word... " >&6; } 10088 if ${ac_cv_path_SH+:} false; then : 10089 $as_echo_n "(cached) " >&6 10090 else 10091 case $SH in 10092 [\\/]* | ?:[\\/]*) 10093 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10094 ;; 10095 *) 10096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10097 for as_dir in $PATH 10098 do 10099 IFS=$as_save_IFS 10100 test -z "$as_dir" && as_dir=. 10101 for ac_exec_ext in '' $ac_executable_extensions; do 10102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10103 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10105 break 2 10106 fi 10107 done 10108 done 10109 IFS=$as_save_IFS 10110 10111 ;; 10112 esac 10113 fi 10114 SH=$ac_cv_path_SH 10115 if test -n "$SH"; then 10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10117 $as_echo "$SH" >&6; } 10118 else 10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10120 $as_echo "no" >&6; } 10121 fi 10122 10123 10124 if test "x$SH" = x; then 10125 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10126 fi 10127 else 10128 # Otherwise we believe it is a complete path. Use it as it is. 10129 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 10130 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10132 $as_echo_n "checking for SH... " >&6; } 10133 if test ! -x "$tool_specified"; then 10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10135 $as_echo "not found" >&6; } 10136 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 10137 fi 10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10139 $as_echo "$tool_specified" >&6; } 10140 fi 10141 fi 10142 fi 10143 10144 fi 10145 10146 10147 10148 if test "x$SH" = x; then 10149 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 10150 fi 10151 10152 10153 10154 10155 10156 # Publish this variable in the help. 10157 10158 10159 if [ -z "${SORT+x}" ]; then 10160 # The variable is not set by user, try to locate tool using the code snippet 10161 for ac_prog in sort 10162 do 10163 # Extract the first word of "$ac_prog", so it can be a program name with args. 10164 set dummy $ac_prog; ac_word=$2 10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10166 $as_echo_n "checking for $ac_word... " >&6; } 10167 if ${ac_cv_path_SORT+:} false; then : 10168 $as_echo_n "(cached) " >&6 10169 else 10170 case $SORT in 10171 [\\/]* | ?:[\\/]*) 10172 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10173 ;; 10174 *) 10175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10176 for as_dir in $PATH 10177 do 10178 IFS=$as_save_IFS 10179 test -z "$as_dir" && as_dir=. 10180 for ac_exec_ext in '' $ac_executable_extensions; do 10181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10182 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10184 break 2 10185 fi 10186 done 10187 done 10188 IFS=$as_save_IFS 10189 10190 ;; 10191 esac 10192 fi 10193 SORT=$ac_cv_path_SORT 10194 if test -n "$SORT"; then 10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 10196 $as_echo "$SORT" >&6; } 10197 else 10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10199 $as_echo "no" >&6; } 10200 fi 10201 10202 10203 test -n "$SORT" && break 10204 done 10205 10206 else 10207 # The variable is set, but is it from the command line or the environment? 10208 10209 # Try to remove the string !SORT! from our list. 10210 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 10211 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10212 # If it failed, the variable was not from the command line. Ignore it, 10213 # but warn the user (except for BASH, which is always set by the calling BASH). 10214 if test "xSORT" != xBASH; then 10215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 10216 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 10217 fi 10218 # Try to locate tool using the code snippet 10219 for ac_prog in sort 10220 do 10221 # Extract the first word of "$ac_prog", so it can be a program name with args. 10222 set dummy $ac_prog; ac_word=$2 10223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10224 $as_echo_n "checking for $ac_word... " >&6; } 10225 if ${ac_cv_path_SORT+:} false; then : 10226 $as_echo_n "(cached) " >&6 10227 else 10228 case $SORT in 10229 [\\/]* | ?:[\\/]*) 10230 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10231 ;; 10232 *) 10233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10234 for as_dir in $PATH 10235 do 10236 IFS=$as_save_IFS 10237 test -z "$as_dir" && as_dir=. 10238 for ac_exec_ext in '' $ac_executable_extensions; do 10239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10240 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10242 break 2 10243 fi 10244 done 10245 done 10246 IFS=$as_save_IFS 10247 10248 ;; 10249 esac 10250 fi 10251 SORT=$ac_cv_path_SORT 10252 if test -n "$SORT"; then 10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 10254 $as_echo "$SORT" >&6; } 10255 else 10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10257 $as_echo "no" >&6; } 10258 fi 10259 10260 10261 test -n "$SORT" && break 10262 done 10263 10264 else 10265 # If it succeeded, then it was overridden by the user. We will use it 10266 # for the tool. 10267 10268 # First remove it from the list of overridden variables, so we can test 10269 # for unknown variables in the end. 10270 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10271 10272 # Check if we try to supply an empty value 10273 if test "x$SORT" = x; then 10274 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5 10275 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;} 10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 10277 $as_echo_n "checking for SORT... " >&6; } 10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10279 $as_echo "disabled" >&6; } 10280 else 10281 # Check if the provided tool contains a complete path. 10282 tool_specified="$SORT" 10283 tool_basename="${tool_specified##*/}" 10284 if test "x$tool_basename" = "x$tool_specified"; then 10285 # A command without a complete path is provided, search $PATH. 10286 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 10287 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 10288 # Extract the first word of "$tool_basename", so it can be a program name with args. 10289 set dummy $tool_basename; ac_word=$2 10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10291 $as_echo_n "checking for $ac_word... " >&6; } 10292 if ${ac_cv_path_SORT+:} false; then : 10293 $as_echo_n "(cached) " >&6 10294 else 10295 case $SORT in 10296 [\\/]* | ?:[\\/]*) 10297 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10298 ;; 10299 *) 10300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10301 for as_dir in $PATH 10302 do 10303 IFS=$as_save_IFS 10304 test -z "$as_dir" && as_dir=. 10305 for ac_exec_ext in '' $ac_executable_extensions; do 10306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10307 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10309 break 2 10310 fi 10311 done 10312 done 10313 IFS=$as_save_IFS 10314 10315 ;; 10316 esac 10317 fi 10318 SORT=$ac_cv_path_SORT 10319 if test -n "$SORT"; then 10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 10321 $as_echo "$SORT" >&6; } 10322 else 10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10324 $as_echo "no" >&6; } 10325 fi 10326 10327 10328 if test "x$SORT" = x; then 10329 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10330 fi 10331 else 10332 # Otherwise we believe it is a complete path. Use it as it is. 10333 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 10334 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 10336 $as_echo_n "checking for SORT... " >&6; } 10337 if test ! -x "$tool_specified"; then 10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10339 $as_echo "not found" >&6; } 10340 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 10341 fi 10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10343 $as_echo "$tool_specified" >&6; } 10344 fi 10345 fi 10346 fi 10347 10348 fi 10349 10350 10351 10352 if test "x$SORT" = x; then 10353 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 10354 fi 10355 10356 10357 10358 10359 10360 # Publish this variable in the help. 10361 10362 10363 if [ -z "${TAIL+x}" ]; then 10364 # The variable is not set by user, try to locate tool using the code snippet 10365 for ac_prog in tail 10366 do 10367 # Extract the first word of "$ac_prog", so it can be a program name with args. 10368 set dummy $ac_prog; ac_word=$2 10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10370 $as_echo_n "checking for $ac_word... " >&6; } 10371 if ${ac_cv_path_TAIL+:} false; then : 10372 $as_echo_n "(cached) " >&6 10373 else 10374 case $TAIL in 10375 [\\/]* | ?:[\\/]*) 10376 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 10377 ;; 10378 *) 10379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10380 for as_dir in $PATH 10381 do 10382 IFS=$as_save_IFS 10383 test -z "$as_dir" && as_dir=. 10384 for ac_exec_ext in '' $ac_executable_extensions; do 10385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10386 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 10387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10388 break 2 10389 fi 10390 done 10391 done 10392 IFS=$as_save_IFS 10393 10394 ;; 10395 esac 10396 fi 10397 TAIL=$ac_cv_path_TAIL 10398 if test -n "$TAIL"; then 10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 10400 $as_echo "$TAIL" >&6; } 10401 else 10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10403 $as_echo "no" >&6; } 10404 fi 10405 10406 10407 test -n "$TAIL" && break 10408 done 10409 10410 else 10411 # The variable is set, but is it from the command line or the environment? 10412 10413 # Try to remove the string !TAIL! from our list. 10414 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 10415 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10416 # If it failed, the variable was not from the command line. Ignore it, 10417 # but warn the user (except for BASH, which is always set by the calling BASH). 10418 if test "xTAIL" != xBASH; then 10419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 10420 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 10421 fi 10422 # Try to locate tool using the code snippet 10423 for ac_prog in tail 10424 do 10425 # Extract the first word of "$ac_prog", so it can be a program name with args. 10426 set dummy $ac_prog; ac_word=$2 10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10428 $as_echo_n "checking for $ac_word... " >&6; } 10429 if ${ac_cv_path_TAIL+:} false; then : 10430 $as_echo_n "(cached) " >&6 10431 else 10432 case $TAIL in 10433 [\\/]* | ?:[\\/]*) 10434 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 10435 ;; 10436 *) 10437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10438 for as_dir in $PATH 10439 do 10440 IFS=$as_save_IFS 10441 test -z "$as_dir" && as_dir=. 10442 for ac_exec_ext in '' $ac_executable_extensions; do 10443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10444 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 10445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10446 break 2 10447 fi 10448 done 10449 done 10450 IFS=$as_save_IFS 10451 10452 ;; 10453 esac 10454 fi 10455 TAIL=$ac_cv_path_TAIL 10456 if test -n "$TAIL"; then 10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 10458 $as_echo "$TAIL" >&6; } 10459 else 10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10461 $as_echo "no" >&6; } 10462 fi 10463 10464 10465 test -n "$TAIL" && break 10466 done 10467 10468 else 10469 # If it succeeded, then it was overridden by the user. We will use it 10470 # for the tool. 10471 10472 # First remove it from the list of overridden variables, so we can test 10473 # for unknown variables in the end. 10474 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10475 10476 # Check if we try to supply an empty value 10477 if test "x$TAIL" = x; then 10478 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5 10479 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;} 10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 10481 $as_echo_n "checking for TAIL... " >&6; } 10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10483 $as_echo "disabled" >&6; } 10484 else 10485 # Check if the provided tool contains a complete path. 10486 tool_specified="$TAIL" 10487 tool_basename="${tool_specified##*/}" 10488 if test "x$tool_basename" = "x$tool_specified"; then 10489 # A command without a complete path is provided, search $PATH. 10490 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 10491 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 10492 # Extract the first word of "$tool_basename", so it can be a program name with args. 10493 set dummy $tool_basename; ac_word=$2 10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10495 $as_echo_n "checking for $ac_word... " >&6; } 10496 if ${ac_cv_path_TAIL+:} false; then : 10497 $as_echo_n "(cached) " >&6 10498 else 10499 case $TAIL in 10500 [\\/]* | ?:[\\/]*) 10501 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 10502 ;; 10503 *) 10504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10505 for as_dir in $PATH 10506 do 10507 IFS=$as_save_IFS 10508 test -z "$as_dir" && as_dir=. 10509 for ac_exec_ext in '' $ac_executable_extensions; do 10510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10511 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 10512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10513 break 2 10514 fi 10515 done 10516 done 10517 IFS=$as_save_IFS 10518 10519 ;; 10520 esac 10521 fi 10522 TAIL=$ac_cv_path_TAIL 10523 if test -n "$TAIL"; then 10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 10525 $as_echo "$TAIL" >&6; } 10526 else 10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10528 $as_echo "no" >&6; } 10529 fi 10530 10531 10532 if test "x$TAIL" = x; then 10533 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10534 fi 10535 else 10536 # Otherwise we believe it is a complete path. Use it as it is. 10537 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 10538 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 10540 $as_echo_n "checking for TAIL... " >&6; } 10541 if test ! -x "$tool_specified"; then 10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10543 $as_echo "not found" >&6; } 10544 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 10545 fi 10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10547 $as_echo "$tool_specified" >&6; } 10548 fi 10549 fi 10550 fi 10551 10552 fi 10553 10554 10555 10556 if test "x$TAIL" = x; then 10557 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 10558 fi 10559 10560 10561 10562 10563 10564 # Publish this variable in the help. 10565 10566 10567 if [ -z "${TAR+x}" ]; then 10568 # The variable is not set by user, try to locate tool using the code snippet 10569 for ac_prog in tar 10570 do 10571 # Extract the first word of "$ac_prog", so it can be a program name with args. 10572 set dummy $ac_prog; ac_word=$2 10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10574 $as_echo_n "checking for $ac_word... " >&6; } 10575 if ${ac_cv_path_TAR+:} false; then : 10576 $as_echo_n "(cached) " >&6 10577 else 10578 case $TAR in 10579 [\\/]* | ?:[\\/]*) 10580 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 10581 ;; 10582 *) 10583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10584 for as_dir in $PATH 10585 do 10586 IFS=$as_save_IFS 10587 test -z "$as_dir" && as_dir=. 10588 for ac_exec_ext in '' $ac_executable_extensions; do 10589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10590 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 10591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10592 break 2 10593 fi 10594 done 10595 done 10596 IFS=$as_save_IFS 10597 10598 ;; 10599 esac 10600 fi 10601 TAR=$ac_cv_path_TAR 10602 if test -n "$TAR"; then 10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 10604 $as_echo "$TAR" >&6; } 10605 else 10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10607 $as_echo "no" >&6; } 10608 fi 10609 10610 10611 test -n "$TAR" && break 10612 done 10613 10614 else 10615 # The variable is set, but is it from the command line or the environment? 10616 10617 # Try to remove the string !TAR! from our list. 10618 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 10619 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10620 # If it failed, the variable was not from the command line. Ignore it, 10621 # but warn the user (except for BASH, which is always set by the calling BASH). 10622 if test "xTAR" != xBASH; then 10623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 10624 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 10625 fi 10626 # Try to locate tool using the code snippet 10627 for ac_prog in tar 10628 do 10629 # Extract the first word of "$ac_prog", so it can be a program name with args. 10630 set dummy $ac_prog; ac_word=$2 10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10632 $as_echo_n "checking for $ac_word... " >&6; } 10633 if ${ac_cv_path_TAR+:} false; then : 10634 $as_echo_n "(cached) " >&6 10635 else 10636 case $TAR in 10637 [\\/]* | ?:[\\/]*) 10638 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 10639 ;; 10640 *) 10641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10642 for as_dir in $PATH 10643 do 10644 IFS=$as_save_IFS 10645 test -z "$as_dir" && as_dir=. 10646 for ac_exec_ext in '' $ac_executable_extensions; do 10647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10648 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 10649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10650 break 2 10651 fi 10652 done 10653 done 10654 IFS=$as_save_IFS 10655 10656 ;; 10657 esac 10658 fi 10659 TAR=$ac_cv_path_TAR 10660 if test -n "$TAR"; then 10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 10662 $as_echo "$TAR" >&6; } 10663 else 10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10665 $as_echo "no" >&6; } 10666 fi 10667 10668 10669 test -n "$TAR" && break 10670 done 10671 10672 else 10673 # If it succeeded, then it was overridden by the user. We will use it 10674 # for the tool. 10675 10676 # First remove it from the list of overridden variables, so we can test 10677 # for unknown variables in the end. 10678 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10679 10680 # Check if we try to supply an empty value 10681 if test "x$TAR" = x; then 10682 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5 10683 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;} 10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 10685 $as_echo_n "checking for TAR... " >&6; } 10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10687 $as_echo "disabled" >&6; } 10688 else 10689 # Check if the provided tool contains a complete path. 10690 tool_specified="$TAR" 10691 tool_basename="${tool_specified##*/}" 10692 if test "x$tool_basename" = "x$tool_specified"; then 10693 # A command without a complete path is provided, search $PATH. 10694 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 10695 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 10696 # Extract the first word of "$tool_basename", so it can be a program name with args. 10697 set dummy $tool_basename; ac_word=$2 10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10699 $as_echo_n "checking for $ac_word... " >&6; } 10700 if ${ac_cv_path_TAR+:} false; then : 10701 $as_echo_n "(cached) " >&6 10702 else 10703 case $TAR in 10704 [\\/]* | ?:[\\/]*) 10705 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 10706 ;; 10707 *) 10708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10709 for as_dir in $PATH 10710 do 10711 IFS=$as_save_IFS 10712 test -z "$as_dir" && as_dir=. 10713 for ac_exec_ext in '' $ac_executable_extensions; do 10714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10715 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 10716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10717 break 2 10718 fi 10719 done 10720 done 10721 IFS=$as_save_IFS 10722 10723 ;; 10724 esac 10725 fi 10726 TAR=$ac_cv_path_TAR 10727 if test -n "$TAR"; then 10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 10729 $as_echo "$TAR" >&6; } 10730 else 10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10732 $as_echo "no" >&6; } 10733 fi 10734 10735 10736 if test "x$TAR" = x; then 10737 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10738 fi 10739 else 10740 # Otherwise we believe it is a complete path. Use it as it is. 10741 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 10742 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 10744 $as_echo_n "checking for TAR... " >&6; } 10745 if test ! -x "$tool_specified"; then 10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10747 $as_echo "not found" >&6; } 10748 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 10749 fi 10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10751 $as_echo "$tool_specified" >&6; } 10752 fi 10753 fi 10754 fi 10755 10756 fi 10757 10758 10759 10760 if test "x$TAR" = x; then 10761 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 10762 fi 10763 10764 10765 10766 10767 10768 # Publish this variable in the help. 10769 10770 10771 if [ -z "${TEE+x}" ]; then 10772 # The variable is not set by user, try to locate tool using the code snippet 10773 for ac_prog in tee 10774 do 10775 # Extract the first word of "$ac_prog", so it can be a program name with args. 10776 set dummy $ac_prog; ac_word=$2 10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10778 $as_echo_n "checking for $ac_word... " >&6; } 10779 if ${ac_cv_path_TEE+:} false; then : 10780 $as_echo_n "(cached) " >&6 10781 else 10782 case $TEE in 10783 [\\/]* | ?:[\\/]*) 10784 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 10785 ;; 10786 *) 10787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10788 for as_dir in $PATH 10789 do 10790 IFS=$as_save_IFS 10791 test -z "$as_dir" && as_dir=. 10792 for ac_exec_ext in '' $ac_executable_extensions; do 10793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10794 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 10795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10796 break 2 10797 fi 10798 done 10799 done 10800 IFS=$as_save_IFS 10801 10802 ;; 10803 esac 10804 fi 10805 TEE=$ac_cv_path_TEE 10806 if test -n "$TEE"; then 10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 10808 $as_echo "$TEE" >&6; } 10809 else 10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10811 $as_echo "no" >&6; } 10812 fi 10813 10814 10815 test -n "$TEE" && break 10816 done 10817 10818 else 10819 # The variable is set, but is it from the command line or the environment? 10820 10821 # Try to remove the string !TEE! from our list. 10822 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 10823 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10824 # If it failed, the variable was not from the command line. Ignore it, 10825 # but warn the user (except for BASH, which is always set by the calling BASH). 10826 if test "xTEE" != xBASH; then 10827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 10828 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 10829 fi 10830 # Try to locate tool using the code snippet 10831 for ac_prog in tee 10832 do 10833 # Extract the first word of "$ac_prog", so it can be a program name with args. 10834 set dummy $ac_prog; ac_word=$2 10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10836 $as_echo_n "checking for $ac_word... " >&6; } 10837 if ${ac_cv_path_TEE+:} false; then : 10838 $as_echo_n "(cached) " >&6 10839 else 10840 case $TEE in 10841 [\\/]* | ?:[\\/]*) 10842 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 10843 ;; 10844 *) 10845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10846 for as_dir in $PATH 10847 do 10848 IFS=$as_save_IFS 10849 test -z "$as_dir" && as_dir=. 10850 for ac_exec_ext in '' $ac_executable_extensions; do 10851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10852 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 10853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10854 break 2 10855 fi 10856 done 10857 done 10858 IFS=$as_save_IFS 10859 10860 ;; 10861 esac 10862 fi 10863 TEE=$ac_cv_path_TEE 10864 if test -n "$TEE"; then 10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 10866 $as_echo "$TEE" >&6; } 10867 else 10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10869 $as_echo "no" >&6; } 10870 fi 10871 10872 10873 test -n "$TEE" && break 10874 done 10875 10876 else 10877 # If it succeeded, then it was overridden by the user. We will use it 10878 # for the tool. 10879 10880 # First remove it from the list of overridden variables, so we can test 10881 # for unknown variables in the end. 10882 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10883 10884 # Check if we try to supply an empty value 10885 if test "x$TEE" = x; then 10886 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5 10887 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;} 10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 10889 $as_echo_n "checking for TEE... " >&6; } 10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10891 $as_echo "disabled" >&6; } 10892 else 10893 # Check if the provided tool contains a complete path. 10894 tool_specified="$TEE" 10895 tool_basename="${tool_specified##*/}" 10896 if test "x$tool_basename" = "x$tool_specified"; then 10897 # A command without a complete path is provided, search $PATH. 10898 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 10899 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 10900 # Extract the first word of "$tool_basename", so it can be a program name with args. 10901 set dummy $tool_basename; ac_word=$2 10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10903 $as_echo_n "checking for $ac_word... " >&6; } 10904 if ${ac_cv_path_TEE+:} false; then : 10905 $as_echo_n "(cached) " >&6 10906 else 10907 case $TEE in 10908 [\\/]* | ?:[\\/]*) 10909 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 10910 ;; 10911 *) 10912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10913 for as_dir in $PATH 10914 do 10915 IFS=$as_save_IFS 10916 test -z "$as_dir" && as_dir=. 10917 for ac_exec_ext in '' $ac_executable_extensions; do 10918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10919 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 10920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10921 break 2 10922 fi 10923 done 10924 done 10925 IFS=$as_save_IFS 10926 10927 ;; 10928 esac 10929 fi 10930 TEE=$ac_cv_path_TEE 10931 if test -n "$TEE"; then 10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 10933 $as_echo "$TEE" >&6; } 10934 else 10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10936 $as_echo "no" >&6; } 10937 fi 10938 10939 10940 if test "x$TEE" = x; then 10941 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10942 fi 10943 else 10944 # Otherwise we believe it is a complete path. Use it as it is. 10945 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 10946 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 10948 $as_echo_n "checking for TEE... " >&6; } 10949 if test ! -x "$tool_specified"; then 10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10951 $as_echo "not found" >&6; } 10952 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 10953 fi 10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10955 $as_echo "$tool_specified" >&6; } 10956 fi 10957 fi 10958 fi 10959 10960 fi 10961 10962 10963 10964 if test "x$TEE" = x; then 10965 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 10966 fi 10967 10968 10969 10970 10971 10972 # Publish this variable in the help. 10973 10974 10975 if [ -z "${TOUCH+x}" ]; then 10976 # The variable is not set by user, try to locate tool using the code snippet 10977 for ac_prog in touch 10978 do 10979 # Extract the first word of "$ac_prog", so it can be a program name with args. 10980 set dummy $ac_prog; ac_word=$2 10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10982 $as_echo_n "checking for $ac_word... " >&6; } 10983 if ${ac_cv_path_TOUCH+:} false; then : 10984 $as_echo_n "(cached) " >&6 10985 else 10986 case $TOUCH in 10987 [\\/]* | ?:[\\/]*) 10988 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10989 ;; 10990 *) 10991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10992 for as_dir in $PATH 10993 do 10994 IFS=$as_save_IFS 10995 test -z "$as_dir" && as_dir=. 10996 for ac_exec_ext in '' $ac_executable_extensions; do 10997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10998 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11000 break 2 11001 fi 11002 done 11003 done 11004 IFS=$as_save_IFS 11005 11006 ;; 11007 esac 11008 fi 11009 TOUCH=$ac_cv_path_TOUCH 11010 if test -n "$TOUCH"; then 11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11012 $as_echo "$TOUCH" >&6; } 11013 else 11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11015 $as_echo "no" >&6; } 11016 fi 11017 11018 11019 test -n "$TOUCH" && break 11020 done 11021 11022 else 11023 # The variable is set, but is it from the command line or the environment? 11024 11025 # Try to remove the string !TOUCH! from our list. 11026 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 11027 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11028 # If it failed, the variable was not from the command line. Ignore it, 11029 # but warn the user (except for BASH, which is always set by the calling BASH). 11030 if test "xTOUCH" != xBASH; then 11031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 11032 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 11033 fi 11034 # Try to locate tool using the code snippet 11035 for ac_prog in touch 11036 do 11037 # Extract the first word of "$ac_prog", so it can be a program name with args. 11038 set dummy $ac_prog; ac_word=$2 11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11040 $as_echo_n "checking for $ac_word... " >&6; } 11041 if ${ac_cv_path_TOUCH+:} false; then : 11042 $as_echo_n "(cached) " >&6 11043 else 11044 case $TOUCH in 11045 [\\/]* | ?:[\\/]*) 11046 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11047 ;; 11048 *) 11049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11050 for as_dir in $PATH 11051 do 11052 IFS=$as_save_IFS 11053 test -z "$as_dir" && as_dir=. 11054 for ac_exec_ext in '' $ac_executable_extensions; do 11055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11056 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11058 break 2 11059 fi 11060 done 11061 done 11062 IFS=$as_save_IFS 11063 11064 ;; 11065 esac 11066 fi 11067 TOUCH=$ac_cv_path_TOUCH 11068 if test -n "$TOUCH"; then 11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11070 $as_echo "$TOUCH" >&6; } 11071 else 11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11073 $as_echo "no" >&6; } 11074 fi 11075 11076 11077 test -n "$TOUCH" && break 11078 done 11079 11080 else 11081 # If it succeeded, then it was overridden by the user. We will use it 11082 # for the tool. 11083 11084 # First remove it from the list of overridden variables, so we can test 11085 # for unknown variables in the end. 11086 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11087 11088 # Check if we try to supply an empty value 11089 if test "x$TOUCH" = x; then 11090 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5 11091 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;} 11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11093 $as_echo_n "checking for TOUCH... " >&6; } 11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11095 $as_echo "disabled" >&6; } 11096 else 11097 # Check if the provided tool contains a complete path. 11098 tool_specified="$TOUCH" 11099 tool_basename="${tool_specified##*/}" 11100 if test "x$tool_basename" = "x$tool_specified"; then 11101 # A command without a complete path is provided, search $PATH. 11102 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 11103 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 11104 # Extract the first word of "$tool_basename", so it can be a program name with args. 11105 set dummy $tool_basename; ac_word=$2 11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11107 $as_echo_n "checking for $ac_word... " >&6; } 11108 if ${ac_cv_path_TOUCH+:} false; then : 11109 $as_echo_n "(cached) " >&6 11110 else 11111 case $TOUCH in 11112 [\\/]* | ?:[\\/]*) 11113 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11114 ;; 11115 *) 11116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11117 for as_dir in $PATH 11118 do 11119 IFS=$as_save_IFS 11120 test -z "$as_dir" && as_dir=. 11121 for ac_exec_ext in '' $ac_executable_extensions; do 11122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11123 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11125 break 2 11126 fi 11127 done 11128 done 11129 IFS=$as_save_IFS 11130 11131 ;; 11132 esac 11133 fi 11134 TOUCH=$ac_cv_path_TOUCH 11135 if test -n "$TOUCH"; then 11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11137 $as_echo "$TOUCH" >&6; } 11138 else 11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11140 $as_echo "no" >&6; } 11141 fi 11142 11143 11144 if test "x$TOUCH" = x; then 11145 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11146 fi 11147 else 11148 # Otherwise we believe it is a complete path. Use it as it is. 11149 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 11150 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11152 $as_echo_n "checking for TOUCH... " >&6; } 11153 if test ! -x "$tool_specified"; then 11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11155 $as_echo "not found" >&6; } 11156 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 11157 fi 11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11159 $as_echo "$tool_specified" >&6; } 11160 fi 11161 fi 11162 fi 11163 11164 fi 11165 11166 11167 11168 if test "x$TOUCH" = x; then 11169 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 11170 fi 11171 11172 11173 11174 11175 11176 # Publish this variable in the help. 11177 11178 11179 if [ -z "${TR+x}" ]; then 11180 # The variable is not set by user, try to locate tool using the code snippet 11181 for ac_prog in tr 11182 do 11183 # Extract the first word of "$ac_prog", so it can be a program name with args. 11184 set dummy $ac_prog; ac_word=$2 11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11186 $as_echo_n "checking for $ac_word... " >&6; } 11187 if ${ac_cv_path_TR+:} false; then : 11188 $as_echo_n "(cached) " >&6 11189 else 11190 case $TR in 11191 [\\/]* | ?:[\\/]*) 11192 ac_cv_path_TR="$TR" # Let the user override the test with a path. 11193 ;; 11194 *) 11195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11196 for as_dir in $PATH 11197 do 11198 IFS=$as_save_IFS 11199 test -z "$as_dir" && as_dir=. 11200 for ac_exec_ext in '' $ac_executable_extensions; do 11201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11202 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 11203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11204 break 2 11205 fi 11206 done 11207 done 11208 IFS=$as_save_IFS 11209 11210 ;; 11211 esac 11212 fi 11213 TR=$ac_cv_path_TR 11214 if test -n "$TR"; then 11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 11216 $as_echo "$TR" >&6; } 11217 else 11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11219 $as_echo "no" >&6; } 11220 fi 11221 11222 11223 test -n "$TR" && break 11224 done 11225 11226 else 11227 # The variable is set, but is it from the command line or the environment? 11228 11229 # Try to remove the string !TR! from our list. 11230 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 11231 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11232 # If it failed, the variable was not from the command line. Ignore it, 11233 # but warn the user (except for BASH, which is always set by the calling BASH). 11234 if test "xTR" != xBASH; then 11235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 11236 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 11237 fi 11238 # Try to locate tool using the code snippet 11239 for ac_prog in tr 11240 do 11241 # Extract the first word of "$ac_prog", so it can be a program name with args. 11242 set dummy $ac_prog; ac_word=$2 11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11244 $as_echo_n "checking for $ac_word... " >&6; } 11245 if ${ac_cv_path_TR+:} false; then : 11246 $as_echo_n "(cached) " >&6 11247 else 11248 case $TR in 11249 [\\/]* | ?:[\\/]*) 11250 ac_cv_path_TR="$TR" # Let the user override the test with a path. 11251 ;; 11252 *) 11253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11254 for as_dir in $PATH 11255 do 11256 IFS=$as_save_IFS 11257 test -z "$as_dir" && as_dir=. 11258 for ac_exec_ext in '' $ac_executable_extensions; do 11259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11260 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 11261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11262 break 2 11263 fi 11264 done 11265 done 11266 IFS=$as_save_IFS 11267 11268 ;; 11269 esac 11270 fi 11271 TR=$ac_cv_path_TR 11272 if test -n "$TR"; then 11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 11274 $as_echo "$TR" >&6; } 11275 else 11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11277 $as_echo "no" >&6; } 11278 fi 11279 11280 11281 test -n "$TR" && break 11282 done 11283 11284 else 11285 # If it succeeded, then it was overridden by the user. We will use it 11286 # for the tool. 11287 11288 # First remove it from the list of overridden variables, so we can test 11289 # for unknown variables in the end. 11290 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11291 11292 # Check if we try to supply an empty value 11293 if test "x$TR" = x; then 11294 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5 11295 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;} 11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 11297 $as_echo_n "checking for TR... " >&6; } 11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11299 $as_echo "disabled" >&6; } 11300 else 11301 # Check if the provided tool contains a complete path. 11302 tool_specified="$TR" 11303 tool_basename="${tool_specified##*/}" 11304 if test "x$tool_basename" = "x$tool_specified"; then 11305 # A command without a complete path is provided, search $PATH. 11306 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 11307 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 11308 # Extract the first word of "$tool_basename", so it can be a program name with args. 11309 set dummy $tool_basename; ac_word=$2 11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11311 $as_echo_n "checking for $ac_word... " >&6; } 11312 if ${ac_cv_path_TR+:} false; then : 11313 $as_echo_n "(cached) " >&6 11314 else 11315 case $TR in 11316 [\\/]* | ?:[\\/]*) 11317 ac_cv_path_TR="$TR" # Let the user override the test with a path. 11318 ;; 11319 *) 11320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11321 for as_dir in $PATH 11322 do 11323 IFS=$as_save_IFS 11324 test -z "$as_dir" && as_dir=. 11325 for ac_exec_ext in '' $ac_executable_extensions; do 11326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11327 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 11328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11329 break 2 11330 fi 11331 done 11332 done 11333 IFS=$as_save_IFS 11334 11335 ;; 11336 esac 11337 fi 11338 TR=$ac_cv_path_TR 11339 if test -n "$TR"; then 11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 11341 $as_echo "$TR" >&6; } 11342 else 11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11344 $as_echo "no" >&6; } 11345 fi 11346 11347 11348 if test "x$TR" = x; then 11349 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11350 fi 11351 else 11352 # Otherwise we believe it is a complete path. Use it as it is. 11353 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 11354 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 11356 $as_echo_n "checking for TR... " >&6; } 11357 if test ! -x "$tool_specified"; then 11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11359 $as_echo "not found" >&6; } 11360 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 11361 fi 11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11363 $as_echo "$tool_specified" >&6; } 11364 fi 11365 fi 11366 fi 11367 11368 fi 11369 11370 11371 11372 if test "x$TR" = x; then 11373 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 11374 fi 11375 11376 11377 11378 11379 11380 # Publish this variable in the help. 11381 11382 11383 if [ -z "${UNAME+x}" ]; then 11384 # The variable is not set by user, try to locate tool using the code snippet 11385 for ac_prog in uname 11386 do 11387 # Extract the first word of "$ac_prog", so it can be a program name with args. 11388 set dummy $ac_prog; ac_word=$2 11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11390 $as_echo_n "checking for $ac_word... " >&6; } 11391 if ${ac_cv_path_UNAME+:} false; then : 11392 $as_echo_n "(cached) " >&6 11393 else 11394 case $UNAME in 11395 [\\/]* | ?:[\\/]*) 11396 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 11397 ;; 11398 *) 11399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11400 for as_dir in $PATH 11401 do 11402 IFS=$as_save_IFS 11403 test -z "$as_dir" && as_dir=. 11404 for ac_exec_ext in '' $ac_executable_extensions; do 11405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11406 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 11407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11408 break 2 11409 fi 11410 done 11411 done 11412 IFS=$as_save_IFS 11413 11414 ;; 11415 esac 11416 fi 11417 UNAME=$ac_cv_path_UNAME 11418 if test -n "$UNAME"; then 11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 11420 $as_echo "$UNAME" >&6; } 11421 else 11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11423 $as_echo "no" >&6; } 11424 fi 11425 11426 11427 test -n "$UNAME" && break 11428 done 11429 11430 else 11431 # The variable is set, but is it from the command line or the environment? 11432 11433 # Try to remove the string !UNAME! from our list. 11434 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 11435 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11436 # If it failed, the variable was not from the command line. Ignore it, 11437 # but warn the user (except for BASH, which is always set by the calling BASH). 11438 if test "xUNAME" != xBASH; then 11439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 11440 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 11441 fi 11442 # Try to locate tool using the code snippet 11443 for ac_prog in uname 11444 do 11445 # Extract the first word of "$ac_prog", so it can be a program name with args. 11446 set dummy $ac_prog; ac_word=$2 11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11448 $as_echo_n "checking for $ac_word... " >&6; } 11449 if ${ac_cv_path_UNAME+:} false; then : 11450 $as_echo_n "(cached) " >&6 11451 else 11452 case $UNAME in 11453 [\\/]* | ?:[\\/]*) 11454 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 11455 ;; 11456 *) 11457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11458 for as_dir in $PATH 11459 do 11460 IFS=$as_save_IFS 11461 test -z "$as_dir" && as_dir=. 11462 for ac_exec_ext in '' $ac_executable_extensions; do 11463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11464 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 11465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11466 break 2 11467 fi 11468 done 11469 done 11470 IFS=$as_save_IFS 11471 11472 ;; 11473 esac 11474 fi 11475 UNAME=$ac_cv_path_UNAME 11476 if test -n "$UNAME"; then 11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 11478 $as_echo "$UNAME" >&6; } 11479 else 11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11481 $as_echo "no" >&6; } 11482 fi 11483 11484 11485 test -n "$UNAME" && break 11486 done 11487 11488 else 11489 # If it succeeded, then it was overridden by the user. We will use it 11490 # for the tool. 11491 11492 # First remove it from the list of overridden variables, so we can test 11493 # for unknown variables in the end. 11494 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11495 11496 # Check if we try to supply an empty value 11497 if test "x$UNAME" = x; then 11498 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5 11499 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;} 11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 11501 $as_echo_n "checking for UNAME... " >&6; } 11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11503 $as_echo "disabled" >&6; } 11504 else 11505 # Check if the provided tool contains a complete path. 11506 tool_specified="$UNAME" 11507 tool_basename="${tool_specified##*/}" 11508 if test "x$tool_basename" = "x$tool_specified"; then 11509 # A command without a complete path is provided, search $PATH. 11510 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 11511 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 11512 # Extract the first word of "$tool_basename", so it can be a program name with args. 11513 set dummy $tool_basename; ac_word=$2 11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11515 $as_echo_n "checking for $ac_word... " >&6; } 11516 if ${ac_cv_path_UNAME+:} false; then : 11517 $as_echo_n "(cached) " >&6 11518 else 11519 case $UNAME in 11520 [\\/]* | ?:[\\/]*) 11521 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 11522 ;; 11523 *) 11524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11525 for as_dir in $PATH 11526 do 11527 IFS=$as_save_IFS 11528 test -z "$as_dir" && as_dir=. 11529 for ac_exec_ext in '' $ac_executable_extensions; do 11530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11531 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 11532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11533 break 2 11534 fi 11535 done 11536 done 11537 IFS=$as_save_IFS 11538 11539 ;; 11540 esac 11541 fi 11542 UNAME=$ac_cv_path_UNAME 11543 if test -n "$UNAME"; then 11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 11545 $as_echo "$UNAME" >&6; } 11546 else 11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11548 $as_echo "no" >&6; } 11549 fi 11550 11551 11552 if test "x$UNAME" = x; then 11553 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11554 fi 11555 else 11556 # Otherwise we believe it is a complete path. Use it as it is. 11557 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 11558 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 11560 $as_echo_n "checking for UNAME... " >&6; } 11561 if test ! -x "$tool_specified"; then 11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11563 $as_echo "not found" >&6; } 11564 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 11565 fi 11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11567 $as_echo "$tool_specified" >&6; } 11568 fi 11569 fi 11570 fi 11571 11572 fi 11573 11574 11575 11576 if test "x$UNAME" = x; then 11577 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 11578 fi 11579 11580 11581 11582 11583 11584 # Publish this variable in the help. 11585 11586 11587 if [ -z "${UNIQ+x}" ]; then 11588 # The variable is not set by user, try to locate tool using the code snippet 11589 for ac_prog in uniq 11590 do 11591 # Extract the first word of "$ac_prog", so it can be a program name with args. 11592 set dummy $ac_prog; ac_word=$2 11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11594 $as_echo_n "checking for $ac_word... " >&6; } 11595 if ${ac_cv_path_UNIQ+:} false; then : 11596 $as_echo_n "(cached) " >&6 11597 else 11598 case $UNIQ in 11599 [\\/]* | ?:[\\/]*) 11600 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 11601 ;; 11602 *) 11603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11604 for as_dir in $PATH 11605 do 11606 IFS=$as_save_IFS 11607 test -z "$as_dir" && as_dir=. 11608 for ac_exec_ext in '' $ac_executable_extensions; do 11609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11610 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 11611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11612 break 2 11613 fi 11614 done 11615 done 11616 IFS=$as_save_IFS 11617 11618 ;; 11619 esac 11620 fi 11621 UNIQ=$ac_cv_path_UNIQ 11622 if test -n "$UNIQ"; then 11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 11624 $as_echo "$UNIQ" >&6; } 11625 else 11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11627 $as_echo "no" >&6; } 11628 fi 11629 11630 11631 test -n "$UNIQ" && break 11632 done 11633 11634 else 11635 # The variable is set, but is it from the command line or the environment? 11636 11637 # Try to remove the string !UNIQ! from our list. 11638 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 11639 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11640 # If it failed, the variable was not from the command line. Ignore it, 11641 # but warn the user (except for BASH, which is always set by the calling BASH). 11642 if test "xUNIQ" != xBASH; then 11643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 11644 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 11645 fi 11646 # Try to locate tool using the code snippet 11647 for ac_prog in uniq 11648 do 11649 # Extract the first word of "$ac_prog", so it can be a program name with args. 11650 set dummy $ac_prog; ac_word=$2 11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11652 $as_echo_n "checking for $ac_word... " >&6; } 11653 if ${ac_cv_path_UNIQ+:} false; then : 11654 $as_echo_n "(cached) " >&6 11655 else 11656 case $UNIQ in 11657 [\\/]* | ?:[\\/]*) 11658 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 11659 ;; 11660 *) 11661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11662 for as_dir in $PATH 11663 do 11664 IFS=$as_save_IFS 11665 test -z "$as_dir" && as_dir=. 11666 for ac_exec_ext in '' $ac_executable_extensions; do 11667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11668 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 11669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11670 break 2 11671 fi 11672 done 11673 done 11674 IFS=$as_save_IFS 11675 11676 ;; 11677 esac 11678 fi 11679 UNIQ=$ac_cv_path_UNIQ 11680 if test -n "$UNIQ"; then 11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 11682 $as_echo "$UNIQ" >&6; } 11683 else 11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11685 $as_echo "no" >&6; } 11686 fi 11687 11688 11689 test -n "$UNIQ" && break 11690 done 11691 11692 else 11693 # If it succeeded, then it was overridden by the user. We will use it 11694 # for the tool. 11695 11696 # First remove it from the list of overridden variables, so we can test 11697 # for unknown variables in the end. 11698 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11699 11700 # Check if we try to supply an empty value 11701 if test "x$UNIQ" = x; then 11702 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5 11703 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;} 11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 11705 $as_echo_n "checking for UNIQ... " >&6; } 11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11707 $as_echo "disabled" >&6; } 11708 else 11709 # Check if the provided tool contains a complete path. 11710 tool_specified="$UNIQ" 11711 tool_basename="${tool_specified##*/}" 11712 if test "x$tool_basename" = "x$tool_specified"; then 11713 # A command without a complete path is provided, search $PATH. 11714 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 11715 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 11716 # Extract the first word of "$tool_basename", so it can be a program name with args. 11717 set dummy $tool_basename; ac_word=$2 11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11719 $as_echo_n "checking for $ac_word... " >&6; } 11720 if ${ac_cv_path_UNIQ+:} false; then : 11721 $as_echo_n "(cached) " >&6 11722 else 11723 case $UNIQ in 11724 [\\/]* | ?:[\\/]*) 11725 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 11726 ;; 11727 *) 11728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11729 for as_dir in $PATH 11730 do 11731 IFS=$as_save_IFS 11732 test -z "$as_dir" && as_dir=. 11733 for ac_exec_ext in '' $ac_executable_extensions; do 11734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11735 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 11736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11737 break 2 11738 fi 11739 done 11740 done 11741 IFS=$as_save_IFS 11742 11743 ;; 11744 esac 11745 fi 11746 UNIQ=$ac_cv_path_UNIQ 11747 if test -n "$UNIQ"; then 11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 11749 $as_echo "$UNIQ" >&6; } 11750 else 11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11752 $as_echo "no" >&6; } 11753 fi 11754 11755 11756 if test "x$UNIQ" = x; then 11757 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11758 fi 11759 else 11760 # Otherwise we believe it is a complete path. Use it as it is. 11761 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 11762 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 11764 $as_echo_n "checking for UNIQ... " >&6; } 11765 if test ! -x "$tool_specified"; then 11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11767 $as_echo "not found" >&6; } 11768 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 11769 fi 11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11771 $as_echo "$tool_specified" >&6; } 11772 fi 11773 fi 11774 fi 11775 11776 fi 11777 11778 11779 11780 if test "x$UNIQ" = x; then 11781 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 11782 fi 11783 11784 11785 11786 11787 11788 # Publish this variable in the help. 11789 11790 11791 if [ -z "${WC+x}" ]; then 11792 # The variable is not set by user, try to locate tool using the code snippet 11793 for ac_prog in wc 11794 do 11795 # Extract the first word of "$ac_prog", so it can be a program name with args. 11796 set dummy $ac_prog; ac_word=$2 11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11798 $as_echo_n "checking for $ac_word... " >&6; } 11799 if ${ac_cv_path_WC+:} false; then : 11800 $as_echo_n "(cached) " >&6 11801 else 11802 case $WC in 11803 [\\/]* | ?:[\\/]*) 11804 ac_cv_path_WC="$WC" # Let the user override the test with a path. 11805 ;; 11806 *) 11807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11808 for as_dir in $PATH 11809 do 11810 IFS=$as_save_IFS 11811 test -z "$as_dir" && as_dir=. 11812 for ac_exec_ext in '' $ac_executable_extensions; do 11813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11814 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 11815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11816 break 2 11817 fi 11818 done 11819 done 11820 IFS=$as_save_IFS 11821 11822 ;; 11823 esac 11824 fi 11825 WC=$ac_cv_path_WC 11826 if test -n "$WC"; then 11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 11828 $as_echo "$WC" >&6; } 11829 else 11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11831 $as_echo "no" >&6; } 11832 fi 11833 11834 11835 test -n "$WC" && break 11836 done 11837 11838 else 11839 # The variable is set, but is it from the command line or the environment? 11840 11841 # Try to remove the string !WC! from our list. 11842 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 11843 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11844 # If it failed, the variable was not from the command line. Ignore it, 11845 # but warn the user (except for BASH, which is always set by the calling BASH). 11846 if test "xWC" != xBASH; then 11847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 11848 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 11849 fi 11850 # Try to locate tool using the code snippet 11851 for ac_prog in wc 11852 do 11853 # Extract the first word of "$ac_prog", so it can be a program name with args. 11854 set dummy $ac_prog; ac_word=$2 11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11856 $as_echo_n "checking for $ac_word... " >&6; } 11857 if ${ac_cv_path_WC+:} false; then : 11858 $as_echo_n "(cached) " >&6 11859 else 11860 case $WC in 11861 [\\/]* | ?:[\\/]*) 11862 ac_cv_path_WC="$WC" # Let the user override the test with a path. 11863 ;; 11864 *) 11865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11866 for as_dir in $PATH 11867 do 11868 IFS=$as_save_IFS 11869 test -z "$as_dir" && as_dir=. 11870 for ac_exec_ext in '' $ac_executable_extensions; do 11871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11872 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 11873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11874 break 2 11875 fi 11876 done 11877 done 11878 IFS=$as_save_IFS 11879 11880 ;; 11881 esac 11882 fi 11883 WC=$ac_cv_path_WC 11884 if test -n "$WC"; then 11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 11886 $as_echo "$WC" >&6; } 11887 else 11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11889 $as_echo "no" >&6; } 11890 fi 11891 11892 11893 test -n "$WC" && break 11894 done 11895 11896 else 11897 # If it succeeded, then it was overridden by the user. We will use it 11898 # for the tool. 11899 11900 # First remove it from the list of overridden variables, so we can test 11901 # for unknown variables in the end. 11902 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11903 11904 # Check if we try to supply an empty value 11905 if test "x$WC" = x; then 11906 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5 11907 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;} 11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 11909 $as_echo_n "checking for WC... " >&6; } 11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11911 $as_echo "disabled" >&6; } 11912 else 11913 # Check if the provided tool contains a complete path. 11914 tool_specified="$WC" 11915 tool_basename="${tool_specified##*/}" 11916 if test "x$tool_basename" = "x$tool_specified"; then 11917 # A command without a complete path is provided, search $PATH. 11918 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 11919 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 11920 # Extract the first word of "$tool_basename", so it can be a program name with args. 11921 set dummy $tool_basename; ac_word=$2 11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11923 $as_echo_n "checking for $ac_word... " >&6; } 11924 if ${ac_cv_path_WC+:} false; then : 11925 $as_echo_n "(cached) " >&6 11926 else 11927 case $WC in 11928 [\\/]* | ?:[\\/]*) 11929 ac_cv_path_WC="$WC" # Let the user override the test with a path. 11930 ;; 11931 *) 11932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11933 for as_dir in $PATH 11934 do 11935 IFS=$as_save_IFS 11936 test -z "$as_dir" && as_dir=. 11937 for ac_exec_ext in '' $ac_executable_extensions; do 11938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11939 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 11940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11941 break 2 11942 fi 11943 done 11944 done 11945 IFS=$as_save_IFS 11946 11947 ;; 11948 esac 11949 fi 11950 WC=$ac_cv_path_WC 11951 if test -n "$WC"; then 11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 11953 $as_echo "$WC" >&6; } 11954 else 11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11956 $as_echo "no" >&6; } 11957 fi 11958 11959 11960 if test "x$WC" = x; then 11961 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11962 fi 11963 else 11964 # Otherwise we believe it is a complete path. Use it as it is. 11965 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 11966 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 11968 $as_echo_n "checking for WC... " >&6; } 11969 if test ! -x "$tool_specified"; then 11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11971 $as_echo "not found" >&6; } 11972 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 11973 fi 11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11975 $as_echo "$tool_specified" >&6; } 11976 fi 11977 fi 11978 fi 11979 11980 fi 11981 11982 11983 11984 if test "x$WC" = x; then 11985 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 11986 fi 11987 11988 11989 11990 11991 11992 # Publish this variable in the help. 11993 11994 11995 if [ -z "${WHICH+x}" ]; then 11996 # The variable is not set by user, try to locate tool using the code snippet 11997 for ac_prog in which 11998 do 11999 # Extract the first word of "$ac_prog", so it can be a program name with args. 12000 set dummy $ac_prog; ac_word=$2 12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12002 $as_echo_n "checking for $ac_word... " >&6; } 12003 if ${ac_cv_path_WHICH+:} false; then : 12004 $as_echo_n "(cached) " >&6 12005 else 12006 case $WHICH in 12007 [\\/]* | ?:[\\/]*) 12008 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12009 ;; 12010 *) 12011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12012 for as_dir in $PATH 12013 do 12014 IFS=$as_save_IFS 12015 test -z "$as_dir" && as_dir=. 12016 for ac_exec_ext in '' $ac_executable_extensions; do 12017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12018 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12020 break 2 12021 fi 12022 done 12023 done 12024 IFS=$as_save_IFS 12025 12026 ;; 12027 esac 12028 fi 12029 WHICH=$ac_cv_path_WHICH 12030 if test -n "$WHICH"; then 12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12032 $as_echo "$WHICH" >&6; } 12033 else 12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12035 $as_echo "no" >&6; } 12036 fi 12037 12038 12039 test -n "$WHICH" && break 12040 done 12041 12042 else 12043 # The variable is set, but is it from the command line or the environment? 12044 12045 # Try to remove the string !WHICH! from our list. 12046 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 12047 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12048 # If it failed, the variable was not from the command line. Ignore it, 12049 # but warn the user (except for BASH, which is always set by the calling BASH). 12050 if test "xWHICH" != xBASH; then 12051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 12052 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 12053 fi 12054 # Try to locate tool using the code snippet 12055 for ac_prog in which 12056 do 12057 # Extract the first word of "$ac_prog", so it can be a program name with args. 12058 set dummy $ac_prog; ac_word=$2 12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12060 $as_echo_n "checking for $ac_word... " >&6; } 12061 if ${ac_cv_path_WHICH+:} false; then : 12062 $as_echo_n "(cached) " >&6 12063 else 12064 case $WHICH in 12065 [\\/]* | ?:[\\/]*) 12066 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12067 ;; 12068 *) 12069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12070 for as_dir in $PATH 12071 do 12072 IFS=$as_save_IFS 12073 test -z "$as_dir" && as_dir=. 12074 for ac_exec_ext in '' $ac_executable_extensions; do 12075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12076 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12078 break 2 12079 fi 12080 done 12081 done 12082 IFS=$as_save_IFS 12083 12084 ;; 12085 esac 12086 fi 12087 WHICH=$ac_cv_path_WHICH 12088 if test -n "$WHICH"; then 12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12090 $as_echo "$WHICH" >&6; } 12091 else 12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12093 $as_echo "no" >&6; } 12094 fi 12095 12096 12097 test -n "$WHICH" && break 12098 done 12099 12100 else 12101 # If it succeeded, then it was overridden by the user. We will use it 12102 # for the tool. 12103 12104 # First remove it from the list of overridden variables, so we can test 12105 # for unknown variables in the end. 12106 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12107 12108 # Check if we try to supply an empty value 12109 if test "x$WHICH" = x; then 12110 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5 12111 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;} 12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12113 $as_echo_n "checking for WHICH... " >&6; } 12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12115 $as_echo "disabled" >&6; } 12116 else 12117 # Check if the provided tool contains a complete path. 12118 tool_specified="$WHICH" 12119 tool_basename="${tool_specified##*/}" 12120 if test "x$tool_basename" = "x$tool_specified"; then 12121 # A command without a complete path is provided, search $PATH. 12122 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 12123 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 12124 # Extract the first word of "$tool_basename", so it can be a program name with args. 12125 set dummy $tool_basename; ac_word=$2 12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12127 $as_echo_n "checking for $ac_word... " >&6; } 12128 if ${ac_cv_path_WHICH+:} false; then : 12129 $as_echo_n "(cached) " >&6 12130 else 12131 case $WHICH in 12132 [\\/]* | ?:[\\/]*) 12133 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12134 ;; 12135 *) 12136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12137 for as_dir in $PATH 12138 do 12139 IFS=$as_save_IFS 12140 test -z "$as_dir" && as_dir=. 12141 for ac_exec_ext in '' $ac_executable_extensions; do 12142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12143 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12145 break 2 12146 fi 12147 done 12148 done 12149 IFS=$as_save_IFS 12150 12151 ;; 12152 esac 12153 fi 12154 WHICH=$ac_cv_path_WHICH 12155 if test -n "$WHICH"; then 12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12157 $as_echo "$WHICH" >&6; } 12158 else 12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12160 $as_echo "no" >&6; } 12161 fi 12162 12163 12164 if test "x$WHICH" = x; then 12165 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12166 fi 12167 else 12168 # Otherwise we believe it is a complete path. Use it as it is. 12169 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 12170 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12172 $as_echo_n "checking for WHICH... " >&6; } 12173 if test ! -x "$tool_specified"; then 12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12175 $as_echo "not found" >&6; } 12176 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 12177 fi 12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12179 $as_echo "$tool_specified" >&6; } 12180 fi 12181 fi 12182 fi 12183 12184 fi 12185 12186 12187 12188 if test "x$WHICH" = x; then 12189 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 12190 fi 12191 12192 12193 12194 12195 12196 # Publish this variable in the help. 12197 12198 12199 if [ -z "${XARGS+x}" ]; then 12200 # The variable is not set by user, try to locate tool using the code snippet 12201 for ac_prog in xargs 12202 do 12203 # Extract the first word of "$ac_prog", so it can be a program name with args. 12204 set dummy $ac_prog; ac_word=$2 12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12206 $as_echo_n "checking for $ac_word... " >&6; } 12207 if ${ac_cv_path_XARGS+:} false; then : 12208 $as_echo_n "(cached) " >&6 12209 else 12210 case $XARGS in 12211 [\\/]* | ?:[\\/]*) 12212 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 12213 ;; 12214 *) 12215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12216 for as_dir in $PATH 12217 do 12218 IFS=$as_save_IFS 12219 test -z "$as_dir" && as_dir=. 12220 for ac_exec_ext in '' $ac_executable_extensions; do 12221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12222 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 12223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12224 break 2 12225 fi 12226 done 12227 done 12228 IFS=$as_save_IFS 12229 12230 ;; 12231 esac 12232 fi 12233 XARGS=$ac_cv_path_XARGS 12234 if test -n "$XARGS"; then 12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 12236 $as_echo "$XARGS" >&6; } 12237 else 12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12239 $as_echo "no" >&6; } 12240 fi 12241 12242 12243 test -n "$XARGS" && break 12244 done 12245 12246 else 12247 # The variable is set, but is it from the command line or the environment? 12248 12249 # Try to remove the string !XARGS! from our list. 12250 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 12251 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12252 # If it failed, the variable was not from the command line. Ignore it, 12253 # but warn the user (except for BASH, which is always set by the calling BASH). 12254 if test "xXARGS" != xBASH; then 12255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 12256 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 12257 fi 12258 # Try to locate tool using the code snippet 12259 for ac_prog in xargs 12260 do 12261 # Extract the first word of "$ac_prog", so it can be a program name with args. 12262 set dummy $ac_prog; ac_word=$2 12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12264 $as_echo_n "checking for $ac_word... " >&6; } 12265 if ${ac_cv_path_XARGS+:} false; then : 12266 $as_echo_n "(cached) " >&6 12267 else 12268 case $XARGS in 12269 [\\/]* | ?:[\\/]*) 12270 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 12271 ;; 12272 *) 12273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12274 for as_dir in $PATH 12275 do 12276 IFS=$as_save_IFS 12277 test -z "$as_dir" && as_dir=. 12278 for ac_exec_ext in '' $ac_executable_extensions; do 12279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12280 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 12281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12282 break 2 12283 fi 12284 done 12285 done 12286 IFS=$as_save_IFS 12287 12288 ;; 12289 esac 12290 fi 12291 XARGS=$ac_cv_path_XARGS 12292 if test -n "$XARGS"; then 12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 12294 $as_echo "$XARGS" >&6; } 12295 else 12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12297 $as_echo "no" >&6; } 12298 fi 12299 12300 12301 test -n "$XARGS" && break 12302 done 12303 12304 else 12305 # If it succeeded, then it was overridden by the user. We will use it 12306 # for the tool. 12307 12308 # First remove it from the list of overridden variables, so we can test 12309 # for unknown variables in the end. 12310 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12311 12312 # Check if we try to supply an empty value 12313 if test "x$XARGS" = x; then 12314 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5 12315 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;} 12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 12317 $as_echo_n "checking for XARGS... " >&6; } 12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12319 $as_echo "disabled" >&6; } 12320 else 12321 # Check if the provided tool contains a complete path. 12322 tool_specified="$XARGS" 12323 tool_basename="${tool_specified##*/}" 12324 if test "x$tool_basename" = "x$tool_specified"; then 12325 # A command without a complete path is provided, search $PATH. 12326 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 12327 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 12328 # Extract the first word of "$tool_basename", so it can be a program name with args. 12329 set dummy $tool_basename; ac_word=$2 12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12331 $as_echo_n "checking for $ac_word... " >&6; } 12332 if ${ac_cv_path_XARGS+:} false; then : 12333 $as_echo_n "(cached) " >&6 12334 else 12335 case $XARGS in 12336 [\\/]* | ?:[\\/]*) 12337 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 12338 ;; 12339 *) 12340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12341 for as_dir in $PATH 12342 do 12343 IFS=$as_save_IFS 12344 test -z "$as_dir" && as_dir=. 12345 for ac_exec_ext in '' $ac_executable_extensions; do 12346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12347 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 12348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12349 break 2 12350 fi 12351 done 12352 done 12353 IFS=$as_save_IFS 12354 12355 ;; 12356 esac 12357 fi 12358 XARGS=$ac_cv_path_XARGS 12359 if test -n "$XARGS"; then 12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 12361 $as_echo "$XARGS" >&6; } 12362 else 12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12364 $as_echo "no" >&6; } 12365 fi 12366 12367 12368 if test "x$XARGS" = x; then 12369 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12370 fi 12371 else 12372 # Otherwise we believe it is a complete path. Use it as it is. 12373 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 12374 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 12376 $as_echo_n "checking for XARGS... " >&6; } 12377 if test ! -x "$tool_specified"; then 12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12379 $as_echo "not found" >&6; } 12380 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 12381 fi 12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12383 $as_echo "$tool_specified" >&6; } 12384 fi 12385 fi 12386 fi 12387 12388 fi 12389 12390 12391 12392 if test "x$XARGS" = x; then 12393 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 12394 fi 12395 12396 12397 12398 # Then required tools that require some special treatment. 12399 12400 12401 # Publish this variable in the help. 12402 12403 12404 if [ -z "${AWK+x}" ]; then 12405 # The variable is not set by user, try to locate tool using the code snippet 12406 for ac_prog in gawk mawk nawk awk 12407 do 12408 # Extract the first word of "$ac_prog", so it can be a program name with args. 12409 set dummy $ac_prog; ac_word=$2 12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12411 $as_echo_n "checking for $ac_word... " >&6; } 12412 if ${ac_cv_prog_AWK+:} false; then : 12413 $as_echo_n "(cached) " >&6 12414 else 12415 if test -n "$AWK"; then 12416 ac_cv_prog_AWK="$AWK" # Let the user override the test. 12417 else 12418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12419 for as_dir in $PATH 12420 do 12421 IFS=$as_save_IFS 12422 test -z "$as_dir" && as_dir=. 12423 for ac_exec_ext in '' $ac_executable_extensions; do 12424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12425 ac_cv_prog_AWK="$ac_prog" 12426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12427 break 2 12428 fi 12429 done 12430 done 12431 IFS=$as_save_IFS 12432 12433 fi 12434 fi 12435 AWK=$ac_cv_prog_AWK 12436 if test -n "$AWK"; then 12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 12438 $as_echo "$AWK" >&6; } 12439 else 12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12441 $as_echo "no" >&6; } 12442 fi 12443 12444 12445 test -n "$AWK" && break 12446 done 12447 12448 else 12449 # The variable is set, but is it from the command line or the environment? 12450 12451 # Try to remove the string !AWK! from our list. 12452 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 12453 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12454 # If it failed, the variable was not from the command line. Ignore it, 12455 # but warn the user (except for BASH, which is always set by the calling BASH). 12456 if test "xAWK" != xBASH; then 12457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 12458 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 12459 fi 12460 # Try to locate tool using the code snippet 12461 for ac_prog in gawk mawk nawk awk 12462 do 12463 # Extract the first word of "$ac_prog", so it can be a program name with args. 12464 set dummy $ac_prog; ac_word=$2 12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12466 $as_echo_n "checking for $ac_word... " >&6; } 12467 if ${ac_cv_prog_AWK+:} false; then : 12468 $as_echo_n "(cached) " >&6 12469 else 12470 if test -n "$AWK"; then 12471 ac_cv_prog_AWK="$AWK" # Let the user override the test. 12472 else 12473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12474 for as_dir in $PATH 12475 do 12476 IFS=$as_save_IFS 12477 test -z "$as_dir" && as_dir=. 12478 for ac_exec_ext in '' $ac_executable_extensions; do 12479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12480 ac_cv_prog_AWK="$ac_prog" 12481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12482 break 2 12483 fi 12484 done 12485 done 12486 IFS=$as_save_IFS 12487 12488 fi 12489 fi 12490 AWK=$ac_cv_prog_AWK 12491 if test -n "$AWK"; then 12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 12493 $as_echo "$AWK" >&6; } 12494 else 12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12496 $as_echo "no" >&6; } 12497 fi 12498 12499 12500 test -n "$AWK" && break 12501 done 12502 12503 else 12504 # If it succeeded, then it was overridden by the user. We will use it 12505 # for the tool. 12506 12507 # First remove it from the list of overridden variables, so we can test 12508 # for unknown variables in the end. 12509 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12510 12511 # Check if we try to supply an empty value 12512 if test "x$AWK" = x; then 12513 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5 12514 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;} 12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 12516 $as_echo_n "checking for AWK... " >&6; } 12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12518 $as_echo "disabled" >&6; } 12519 else 12520 # Check if the provided tool contains a complete path. 12521 tool_specified="$AWK" 12522 tool_basename="${tool_specified##*/}" 12523 if test "x$tool_basename" = "x$tool_specified"; then 12524 # A command without a complete path is provided, search $PATH. 12525 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 12526 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 12527 # Extract the first word of "$tool_basename", so it can be a program name with args. 12528 set dummy $tool_basename; ac_word=$2 12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12530 $as_echo_n "checking for $ac_word... " >&6; } 12531 if ${ac_cv_path_AWK+:} false; then : 12532 $as_echo_n "(cached) " >&6 12533 else 12534 case $AWK in 12535 [\\/]* | ?:[\\/]*) 12536 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 12537 ;; 12538 *) 12539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12540 for as_dir in $PATH 12541 do 12542 IFS=$as_save_IFS 12543 test -z "$as_dir" && as_dir=. 12544 for ac_exec_ext in '' $ac_executable_extensions; do 12545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12546 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 12547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12548 break 2 12549 fi 12550 done 12551 done 12552 IFS=$as_save_IFS 12553 12554 ;; 12555 esac 12556 fi 12557 AWK=$ac_cv_path_AWK 12558 if test -n "$AWK"; then 12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 12560 $as_echo "$AWK" >&6; } 12561 else 12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12563 $as_echo "no" >&6; } 12564 fi 12565 12566 12567 if test "x$AWK" = x; then 12568 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12569 fi 12570 else 12571 # Otherwise we believe it is a complete path. Use it as it is. 12572 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 12573 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 12575 $as_echo_n "checking for AWK... " >&6; } 12576 if test ! -x "$tool_specified"; then 12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12578 $as_echo "not found" >&6; } 12579 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 12580 fi 12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12582 $as_echo "$tool_specified" >&6; } 12583 fi 12584 fi 12585 fi 12586 12587 fi 12588 12589 12590 if test "x$AWK" = x; then 12591 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 12592 fi 12593 12594 12595 12596 12597 # Publish this variable in the help. 12598 12599 12600 if [ -z "${GREP+x}" ]; then 12601 # The variable is not set by user, try to locate tool using the code snippet 12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 12603 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 12604 if ${ac_cv_path_GREP+:} false; then : 12605 $as_echo_n "(cached) " >&6 12606 else 12607 if test -z "$GREP"; then 12608 ac_path_GREP_found=false 12609 # Loop through the user's path and test for each of PROGNAME-LIST 12610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12611 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12612 do 12613 IFS=$as_save_IFS 12614 test -z "$as_dir" && as_dir=. 12615 for ac_prog in grep ggrep; do 12616 for ac_exec_ext in '' $ac_executable_extensions; do 12617 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 12618 as_fn_executable_p "$ac_path_GREP" || continue 12619 # Check for GNU ac_path_GREP and select it if it is found. 12620 # Check for GNU $ac_path_GREP 12621 case `"$ac_path_GREP" --version 2>&1` in 12622 *GNU*) 12623 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 12624 *) 12625 ac_count=0 12626 $as_echo_n 0123456789 >"conftest.in" 12627 while : 12628 do 12629 cat "conftest.in" "conftest.in" >"conftest.tmp" 12630 mv "conftest.tmp" "conftest.in" 12631 cp "conftest.in" "conftest.nl" 12632 $as_echo 'GREP' >> "conftest.nl" 12633 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 12634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12635 as_fn_arith $ac_count + 1 && ac_count=$as_val 12636 if test $ac_count -gt ${ac_path_GREP_max-0}; then 12637 # Best one so far, save it but keep looking for a better one 12638 ac_cv_path_GREP="$ac_path_GREP" 12639 ac_path_GREP_max=$ac_count 12640 fi 12641 # 10*(2^10) chars as input seems more than enough 12642 test $ac_count -gt 10 && break 12643 done 12644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12645 esac 12646 12647 $ac_path_GREP_found && break 3 12648 done 12649 done 12650 done 12651 IFS=$as_save_IFS 12652 if test -z "$ac_cv_path_GREP"; then 12653 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12654 fi 12655 else 12656 ac_cv_path_GREP=$GREP 12657 fi 12658 12659 fi 12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 12661 $as_echo "$ac_cv_path_GREP" >&6; } 12662 GREP="$ac_cv_path_GREP" 12663 12664 12665 else 12666 # The variable is set, but is it from the command line or the environment? 12667 12668 # Try to remove the string !GREP! from our list. 12669 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 12670 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12671 # If it failed, the variable was not from the command line. Ignore it, 12672 # but warn the user (except for BASH, which is always set by the calling BASH). 12673 if test "xGREP" != xBASH; then 12674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 12675 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 12676 fi 12677 # Try to locate tool using the code snippet 12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 12679 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 12680 if ${ac_cv_path_GREP+:} false; then : 12681 $as_echo_n "(cached) " >&6 12682 else 12683 if test -z "$GREP"; then 12684 ac_path_GREP_found=false 12685 # Loop through the user's path and test for each of PROGNAME-LIST 12686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12687 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12688 do 12689 IFS=$as_save_IFS 12690 test -z "$as_dir" && as_dir=. 12691 for ac_prog in grep ggrep; do 12692 for ac_exec_ext in '' $ac_executable_extensions; do 12693 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 12694 as_fn_executable_p "$ac_path_GREP" || continue 12695 # Check for GNU ac_path_GREP and select it if it is found. 12696 # Check for GNU $ac_path_GREP 12697 case `"$ac_path_GREP" --version 2>&1` in 12698 *GNU*) 12699 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 12700 *) 12701 ac_count=0 12702 $as_echo_n 0123456789 >"conftest.in" 12703 while : 12704 do 12705 cat "conftest.in" "conftest.in" >"conftest.tmp" 12706 mv "conftest.tmp" "conftest.in" 12707 cp "conftest.in" "conftest.nl" 12708 $as_echo 'GREP' >> "conftest.nl" 12709 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 12710 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12711 as_fn_arith $ac_count + 1 && ac_count=$as_val 12712 if test $ac_count -gt ${ac_path_GREP_max-0}; then 12713 # Best one so far, save it but keep looking for a better one 12714 ac_cv_path_GREP="$ac_path_GREP" 12715 ac_path_GREP_max=$ac_count 12716 fi 12717 # 10*(2^10) chars as input seems more than enough 12718 test $ac_count -gt 10 && break 12719 done 12720 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12721 esac 12722 12723 $ac_path_GREP_found && break 3 12724 done 12725 done 12726 done 12727 IFS=$as_save_IFS 12728 if test -z "$ac_cv_path_GREP"; then 12729 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12730 fi 12731 else 12732 ac_cv_path_GREP=$GREP 12733 fi 12734 12735 fi 12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 12737 $as_echo "$ac_cv_path_GREP" >&6; } 12738 GREP="$ac_cv_path_GREP" 12739 12740 12741 else 12742 # If it succeeded, then it was overridden by the user. We will use it 12743 # for the tool. 12744 12745 # First remove it from the list of overridden variables, so we can test 12746 # for unknown variables in the end. 12747 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12748 12749 # Check if we try to supply an empty value 12750 if test "x$GREP" = x; then 12751 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5 12752 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;} 12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 12754 $as_echo_n "checking for GREP... " >&6; } 12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12756 $as_echo "disabled" >&6; } 12757 else 12758 # Check if the provided tool contains a complete path. 12759 tool_specified="$GREP" 12760 tool_basename="${tool_specified##*/}" 12761 if test "x$tool_basename" = "x$tool_specified"; then 12762 # A command without a complete path is provided, search $PATH. 12763 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 12764 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 12765 # Extract the first word of "$tool_basename", so it can be a program name with args. 12766 set dummy $tool_basename; ac_word=$2 12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12768 $as_echo_n "checking for $ac_word... " >&6; } 12769 if ${ac_cv_path_GREP+:} false; then : 12770 $as_echo_n "(cached) " >&6 12771 else 12772 case $GREP in 12773 [\\/]* | ?:[\\/]*) 12774 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 12775 ;; 12776 *) 12777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12778 for as_dir in $PATH 12779 do 12780 IFS=$as_save_IFS 12781 test -z "$as_dir" && as_dir=. 12782 for ac_exec_ext in '' $ac_executable_extensions; do 12783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12784 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 12785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12786 break 2 12787 fi 12788 done 12789 done 12790 IFS=$as_save_IFS 12791 12792 ;; 12793 esac 12794 fi 12795 GREP=$ac_cv_path_GREP 12796 if test -n "$GREP"; then 12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 12798 $as_echo "$GREP" >&6; } 12799 else 12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12801 $as_echo "no" >&6; } 12802 fi 12803 12804 12805 if test "x$GREP" = x; then 12806 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12807 fi 12808 else 12809 # Otherwise we believe it is a complete path. Use it as it is. 12810 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 12811 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 12813 $as_echo_n "checking for GREP... " >&6; } 12814 if test ! -x "$tool_specified"; then 12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12816 $as_echo "not found" >&6; } 12817 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12818 fi 12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12820 $as_echo "$tool_specified" >&6; } 12821 fi 12822 fi 12823 fi 12824 12825 fi 12826 12827 12828 if test "x$GREP" = x; then 12829 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 12830 fi 12831 12832 12833 12834 12835 # Publish this variable in the help. 12836 12837 12838 if [ -z "${EGREP+x}" ]; then 12839 # The variable is not set by user, try to locate tool using the code snippet 12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 12841 $as_echo_n "checking for egrep... " >&6; } 12842 if ${ac_cv_path_EGREP+:} false; then : 12843 $as_echo_n "(cached) " >&6 12844 else 12845 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 12846 then ac_cv_path_EGREP="$GREP -E" 12847 else 12848 if test -z "$EGREP"; then 12849 ac_path_EGREP_found=false 12850 # Loop through the user's path and test for each of PROGNAME-LIST 12851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12852 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12853 do 12854 IFS=$as_save_IFS 12855 test -z "$as_dir" && as_dir=. 12856 for ac_prog in egrep; do 12857 for ac_exec_ext in '' $ac_executable_extensions; do 12858 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 12859 as_fn_executable_p "$ac_path_EGREP" || continue 12860 # Check for GNU ac_path_EGREP and select it if it is found. 12861 # Check for GNU $ac_path_EGREP 12862 case `"$ac_path_EGREP" --version 2>&1` in 12863 *GNU*) 12864 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 12865 *) 12866 ac_count=0 12867 $as_echo_n 0123456789 >"conftest.in" 12868 while : 12869 do 12870 cat "conftest.in" "conftest.in" >"conftest.tmp" 12871 mv "conftest.tmp" "conftest.in" 12872 cp "conftest.in" "conftest.nl" 12873 $as_echo 'EGREP' >> "conftest.nl" 12874 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 12875 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12876 as_fn_arith $ac_count + 1 && ac_count=$as_val 12877 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 12878 # Best one so far, save it but keep looking for a better one 12879 ac_cv_path_EGREP="$ac_path_EGREP" 12880 ac_path_EGREP_max=$ac_count 12881 fi 12882 # 10*(2^10) chars as input seems more than enough 12883 test $ac_count -gt 10 && break 12884 done 12885 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12886 esac 12887 12888 $ac_path_EGREP_found && break 3 12889 done 12890 done 12891 done 12892 IFS=$as_save_IFS 12893 if test -z "$ac_cv_path_EGREP"; then 12894 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12895 fi 12896 else 12897 ac_cv_path_EGREP=$EGREP 12898 fi 12899 12900 fi 12901 fi 12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 12903 $as_echo "$ac_cv_path_EGREP" >&6; } 12904 EGREP="$ac_cv_path_EGREP" 12905 12906 12907 else 12908 # The variable is set, but is it from the command line or the environment? 12909 12910 # Try to remove the string !EGREP! from our list. 12911 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 12912 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12913 # If it failed, the variable was not from the command line. Ignore it, 12914 # but warn the user (except for BASH, which is always set by the calling BASH). 12915 if test "xEGREP" != xBASH; then 12916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 12917 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 12918 fi 12919 # Try to locate tool using the code snippet 12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 12921 $as_echo_n "checking for egrep... " >&6; } 12922 if ${ac_cv_path_EGREP+:} false; then : 12923 $as_echo_n "(cached) " >&6 12924 else 12925 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 12926 then ac_cv_path_EGREP="$GREP -E" 12927 else 12928 if test -z "$EGREP"; then 12929 ac_path_EGREP_found=false 12930 # Loop through the user's path and test for each of PROGNAME-LIST 12931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12932 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12933 do 12934 IFS=$as_save_IFS 12935 test -z "$as_dir" && as_dir=. 12936 for ac_prog in egrep; do 12937 for ac_exec_ext in '' $ac_executable_extensions; do 12938 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 12939 as_fn_executable_p "$ac_path_EGREP" || continue 12940 # Check for GNU ac_path_EGREP and select it if it is found. 12941 # Check for GNU $ac_path_EGREP 12942 case `"$ac_path_EGREP" --version 2>&1` in 12943 *GNU*) 12944 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 12945 *) 12946 ac_count=0 12947 $as_echo_n 0123456789 >"conftest.in" 12948 while : 12949 do 12950 cat "conftest.in" "conftest.in" >"conftest.tmp" 12951 mv "conftest.tmp" "conftest.in" 12952 cp "conftest.in" "conftest.nl" 12953 $as_echo 'EGREP' >> "conftest.nl" 12954 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 12955 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12956 as_fn_arith $ac_count + 1 && ac_count=$as_val 12957 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 12958 # Best one so far, save it but keep looking for a better one 12959 ac_cv_path_EGREP="$ac_path_EGREP" 12960 ac_path_EGREP_max=$ac_count 12961 fi 12962 # 10*(2^10) chars as input seems more than enough 12963 test $ac_count -gt 10 && break 12964 done 12965 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12966 esac 12967 12968 $ac_path_EGREP_found && break 3 12969 done 12970 done 12971 done 12972 IFS=$as_save_IFS 12973 if test -z "$ac_cv_path_EGREP"; then 12974 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12975 fi 12976 else 12977 ac_cv_path_EGREP=$EGREP 12978 fi 12979 12980 fi 12981 fi 12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 12983 $as_echo "$ac_cv_path_EGREP" >&6; } 12984 EGREP="$ac_cv_path_EGREP" 12985 12986 12987 else 12988 # If it succeeded, then it was overridden by the user. We will use it 12989 # for the tool. 12990 12991 # First remove it from the list of overridden variables, so we can test 12992 # for unknown variables in the end. 12993 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12994 12995 # Check if we try to supply an empty value 12996 if test "x$EGREP" = x; then 12997 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5 12998 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;} 12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13000 $as_echo_n "checking for EGREP... " >&6; } 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13002 $as_echo "disabled" >&6; } 13003 else 13004 # Check if the provided tool contains a complete path. 13005 tool_specified="$EGREP" 13006 tool_basename="${tool_specified##*/}" 13007 if test "x$tool_basename" = "x$tool_specified"; then 13008 # A command without a complete path is provided, search $PATH. 13009 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 13010 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 13011 # Extract the first word of "$tool_basename", so it can be a program name with args. 13012 set dummy $tool_basename; ac_word=$2 13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13014 $as_echo_n "checking for $ac_word... " >&6; } 13015 if ${ac_cv_path_EGREP+:} false; then : 13016 $as_echo_n "(cached) " >&6 13017 else 13018 case $EGREP in 13019 [\\/]* | ?:[\\/]*) 13020 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 13021 ;; 13022 *) 13023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13024 for as_dir in $PATH 13025 do 13026 IFS=$as_save_IFS 13027 test -z "$as_dir" && as_dir=. 13028 for ac_exec_ext in '' $ac_executable_extensions; do 13029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13030 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 13031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13032 break 2 13033 fi 13034 done 13035 done 13036 IFS=$as_save_IFS 13037 13038 ;; 13039 esac 13040 fi 13041 EGREP=$ac_cv_path_EGREP 13042 if test -n "$EGREP"; then 13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 13044 $as_echo "$EGREP" >&6; } 13045 else 13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13047 $as_echo "no" >&6; } 13048 fi 13049 13050 13051 if test "x$EGREP" = x; then 13052 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13053 fi 13054 else 13055 # Otherwise we believe it is a complete path. Use it as it is. 13056 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 13057 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13059 $as_echo_n "checking for EGREP... " >&6; } 13060 if test ! -x "$tool_specified"; then 13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13062 $as_echo "not found" >&6; } 13063 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13064 fi 13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13066 $as_echo "$tool_specified" >&6; } 13067 fi 13068 fi 13069 fi 13070 13071 fi 13072 13073 13074 if test "x$EGREP" = x; then 13075 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 13076 fi 13077 13078 13079 13080 13081 # Publish this variable in the help. 13082 13083 13084 if [ -z "${FGREP+x}" ]; then 13085 # The variable is not set by user, try to locate tool using the code snippet 13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13087 $as_echo_n "checking for fgrep... " >&6; } 13088 if ${ac_cv_path_FGREP+:} false; then : 13089 $as_echo_n "(cached) " >&6 13090 else 13091 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13092 then ac_cv_path_FGREP="$GREP -F" 13093 else 13094 if test -z "$FGREP"; then 13095 ac_path_FGREP_found=false 13096 # Loop through the user's path and test for each of PROGNAME-LIST 13097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13098 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13099 do 13100 IFS=$as_save_IFS 13101 test -z "$as_dir" && as_dir=. 13102 for ac_prog in fgrep; do 13103 for ac_exec_ext in '' $ac_executable_extensions; do 13104 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13105 as_fn_executable_p "$ac_path_FGREP" || continue 13106 # Check for GNU ac_path_FGREP and select it if it is found. 13107 # Check for GNU $ac_path_FGREP 13108 case `"$ac_path_FGREP" --version 2>&1` in 13109 *GNU*) 13110 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13111 *) 13112 ac_count=0 13113 $as_echo_n 0123456789 >"conftest.in" 13114 while : 13115 do 13116 cat "conftest.in" "conftest.in" >"conftest.tmp" 13117 mv "conftest.tmp" "conftest.in" 13118 cp "conftest.in" "conftest.nl" 13119 $as_echo 'FGREP' >> "conftest.nl" 13120 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13122 as_fn_arith $ac_count + 1 && ac_count=$as_val 13123 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13124 # Best one so far, save it but keep looking for a better one 13125 ac_cv_path_FGREP="$ac_path_FGREP" 13126 ac_path_FGREP_max=$ac_count 13127 fi 13128 # 10*(2^10) chars as input seems more than enough 13129 test $ac_count -gt 10 && break 13130 done 13131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13132 esac 13133 13134 $ac_path_FGREP_found && break 3 13135 done 13136 done 13137 done 13138 IFS=$as_save_IFS 13139 if test -z "$ac_cv_path_FGREP"; then 13140 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13141 fi 13142 else 13143 ac_cv_path_FGREP=$FGREP 13144 fi 13145 13146 fi 13147 fi 13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13149 $as_echo "$ac_cv_path_FGREP" >&6; } 13150 FGREP="$ac_cv_path_FGREP" 13151 13152 13153 else 13154 # The variable is set, but is it from the command line or the environment? 13155 13156 # Try to remove the string !FGREP! from our list. 13157 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 13158 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13159 # If it failed, the variable was not from the command line. Ignore it, 13160 # but warn the user (except for BASH, which is always set by the calling BASH). 13161 if test "xFGREP" != xBASH; then 13162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 13163 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 13164 fi 13165 # Try to locate tool using the code snippet 13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13167 $as_echo_n "checking for fgrep... " >&6; } 13168 if ${ac_cv_path_FGREP+:} false; then : 13169 $as_echo_n "(cached) " >&6 13170 else 13171 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13172 then ac_cv_path_FGREP="$GREP -F" 13173 else 13174 if test -z "$FGREP"; then 13175 ac_path_FGREP_found=false 13176 # Loop through the user's path and test for each of PROGNAME-LIST 13177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13178 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13179 do 13180 IFS=$as_save_IFS 13181 test -z "$as_dir" && as_dir=. 13182 for ac_prog in fgrep; do 13183 for ac_exec_ext in '' $ac_executable_extensions; do 13184 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13185 as_fn_executable_p "$ac_path_FGREP" || continue 13186 # Check for GNU ac_path_FGREP and select it if it is found. 13187 # Check for GNU $ac_path_FGREP 13188 case `"$ac_path_FGREP" --version 2>&1` in 13189 *GNU*) 13190 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13191 *) 13192 ac_count=0 13193 $as_echo_n 0123456789 >"conftest.in" 13194 while : 13195 do 13196 cat "conftest.in" "conftest.in" >"conftest.tmp" 13197 mv "conftest.tmp" "conftest.in" 13198 cp "conftest.in" "conftest.nl" 13199 $as_echo 'FGREP' >> "conftest.nl" 13200 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13201 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13202 as_fn_arith $ac_count + 1 && ac_count=$as_val 13203 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13204 # Best one so far, save it but keep looking for a better one 13205 ac_cv_path_FGREP="$ac_path_FGREP" 13206 ac_path_FGREP_max=$ac_count 13207 fi 13208 # 10*(2^10) chars as input seems more than enough 13209 test $ac_count -gt 10 && break 13210 done 13211 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13212 esac 13213 13214 $ac_path_FGREP_found && break 3 13215 done 13216 done 13217 done 13218 IFS=$as_save_IFS 13219 if test -z "$ac_cv_path_FGREP"; then 13220 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13221 fi 13222 else 13223 ac_cv_path_FGREP=$FGREP 13224 fi 13225 13226 fi 13227 fi 13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13229 $as_echo "$ac_cv_path_FGREP" >&6; } 13230 FGREP="$ac_cv_path_FGREP" 13231 13232 13233 else 13234 # If it succeeded, then it was overridden by the user. We will use it 13235 # for the tool. 13236 13237 # First remove it from the list of overridden variables, so we can test 13238 # for unknown variables in the end. 13239 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13240 13241 # Check if we try to supply an empty value 13242 if test "x$FGREP" = x; then 13243 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5 13244 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;} 13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 13246 $as_echo_n "checking for FGREP... " >&6; } 13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13248 $as_echo "disabled" >&6; } 13249 else 13250 # Check if the provided tool contains a complete path. 13251 tool_specified="$FGREP" 13252 tool_basename="${tool_specified##*/}" 13253 if test "x$tool_basename" = "x$tool_specified"; then 13254 # A command without a complete path is provided, search $PATH. 13255 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 13256 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 13257 # Extract the first word of "$tool_basename", so it can be a program name with args. 13258 set dummy $tool_basename; ac_word=$2 13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13260 $as_echo_n "checking for $ac_word... " >&6; } 13261 if ${ac_cv_path_FGREP+:} false; then : 13262 $as_echo_n "(cached) " >&6 13263 else 13264 case $FGREP in 13265 [\\/]* | ?:[\\/]*) 13266 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 13267 ;; 13268 *) 13269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13270 for as_dir in $PATH 13271 do 13272 IFS=$as_save_IFS 13273 test -z "$as_dir" && as_dir=. 13274 for ac_exec_ext in '' $ac_executable_extensions; do 13275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13276 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 13277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13278 break 2 13279 fi 13280 done 13281 done 13282 IFS=$as_save_IFS 13283 13284 ;; 13285 esac 13286 fi 13287 FGREP=$ac_cv_path_FGREP 13288 if test -n "$FGREP"; then 13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 13290 $as_echo "$FGREP" >&6; } 13291 else 13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13293 $as_echo "no" >&6; } 13294 fi 13295 13296 13297 if test "x$FGREP" = x; then 13298 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13299 fi 13300 else 13301 # Otherwise we believe it is a complete path. Use it as it is. 13302 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 13303 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 13305 $as_echo_n "checking for FGREP... " >&6; } 13306 if test ! -x "$tool_specified"; then 13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13308 $as_echo "not found" >&6; } 13309 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13310 fi 13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13312 $as_echo "$tool_specified" >&6; } 13313 fi 13314 fi 13315 fi 13316 13317 fi 13318 13319 13320 if test "x$FGREP" = x; then 13321 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 13322 fi 13323 13324 13325 13326 13327 # Publish this variable in the help. 13328 13329 13330 if [ -z "${SED+x}" ]; then 13331 # The variable is not set by user, try to locate tool using the code snippet 13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 13333 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 13334 if ${ac_cv_path_SED+:} false; then : 13335 $as_echo_n "(cached) " >&6 13336 else 13337 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 13338 for ac_i in 1 2 3 4 5 6 7; do 13339 ac_script="$ac_script$as_nl$ac_script" 13340 done 13341 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 13342 { ac_script=; unset ac_script;} 13343 if test -z "$SED"; then 13344 ac_path_SED_found=false 13345 # Loop through the user's path and test for each of PROGNAME-LIST 13346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13347 for as_dir in $PATH 13348 do 13349 IFS=$as_save_IFS 13350 test -z "$as_dir" && as_dir=. 13351 for ac_prog in sed gsed; do 13352 for ac_exec_ext in '' $ac_executable_extensions; do 13353 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 13354 as_fn_executable_p "$ac_path_SED" || continue 13355 # Check for GNU ac_path_SED and select it if it is found. 13356 # Check for GNU $ac_path_SED 13357 case `"$ac_path_SED" --version 2>&1` in 13358 *GNU*) 13359 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 13360 *) 13361 ac_count=0 13362 $as_echo_n 0123456789 >"conftest.in" 13363 while : 13364 do 13365 cat "conftest.in" "conftest.in" >"conftest.tmp" 13366 mv "conftest.tmp" "conftest.in" 13367 cp "conftest.in" "conftest.nl" 13368 $as_echo '' >> "conftest.nl" 13369 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 13370 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13371 as_fn_arith $ac_count + 1 && ac_count=$as_val 13372 if test $ac_count -gt ${ac_path_SED_max-0}; then 13373 # Best one so far, save it but keep looking for a better one 13374 ac_cv_path_SED="$ac_path_SED" 13375 ac_path_SED_max=$ac_count 13376 fi 13377 # 10*(2^10) chars as input seems more than enough 13378 test $ac_count -gt 10 && break 13379 done 13380 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13381 esac 13382 13383 $ac_path_SED_found && break 3 13384 done 13385 done 13386 done 13387 IFS=$as_save_IFS 13388 if test -z "$ac_cv_path_SED"; then 13389 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 13390 fi 13391 else 13392 ac_cv_path_SED=$SED 13393 fi 13394 13395 fi 13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 13397 $as_echo "$ac_cv_path_SED" >&6; } 13398 SED="$ac_cv_path_SED" 13399 rm -f conftest.sed 13400 13401 else 13402 # The variable is set, but is it from the command line or the environment? 13403 13404 # Try to remove the string !SED! from our list. 13405 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 13406 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13407 # If it failed, the variable was not from the command line. Ignore it, 13408 # but warn the user (except for BASH, which is always set by the calling BASH). 13409 if test "xSED" != xBASH; then 13410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 13411 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 13412 fi 13413 # Try to locate tool using the code snippet 13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 13415 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 13416 if ${ac_cv_path_SED+:} false; then : 13417 $as_echo_n "(cached) " >&6 13418 else 13419 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 13420 for ac_i in 1 2 3 4 5 6 7; do 13421 ac_script="$ac_script$as_nl$ac_script" 13422 done 13423 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 13424 { ac_script=; unset ac_script;} 13425 if test -z "$SED"; then 13426 ac_path_SED_found=false 13427 # Loop through the user's path and test for each of PROGNAME-LIST 13428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13429 for as_dir in $PATH 13430 do 13431 IFS=$as_save_IFS 13432 test -z "$as_dir" && as_dir=. 13433 for ac_prog in sed gsed; do 13434 for ac_exec_ext in '' $ac_executable_extensions; do 13435 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 13436 as_fn_executable_p "$ac_path_SED" || continue 13437 # Check for GNU ac_path_SED and select it if it is found. 13438 # Check for GNU $ac_path_SED 13439 case `"$ac_path_SED" --version 2>&1` in 13440 *GNU*) 13441 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 13442 *) 13443 ac_count=0 13444 $as_echo_n 0123456789 >"conftest.in" 13445 while : 13446 do 13447 cat "conftest.in" "conftest.in" >"conftest.tmp" 13448 mv "conftest.tmp" "conftest.in" 13449 cp "conftest.in" "conftest.nl" 13450 $as_echo '' >> "conftest.nl" 13451 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 13452 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13453 as_fn_arith $ac_count + 1 && ac_count=$as_val 13454 if test $ac_count -gt ${ac_path_SED_max-0}; then 13455 # Best one so far, save it but keep looking for a better one 13456 ac_cv_path_SED="$ac_path_SED" 13457 ac_path_SED_max=$ac_count 13458 fi 13459 # 10*(2^10) chars as input seems more than enough 13460 test $ac_count -gt 10 && break 13461 done 13462 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13463 esac 13464 13465 $ac_path_SED_found && break 3 13466 done 13467 done 13468 done 13469 IFS=$as_save_IFS 13470 if test -z "$ac_cv_path_SED"; then 13471 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 13472 fi 13473 else 13474 ac_cv_path_SED=$SED 13475 fi 13476 13477 fi 13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 13479 $as_echo "$ac_cv_path_SED" >&6; } 13480 SED="$ac_cv_path_SED" 13481 rm -f conftest.sed 13482 13483 else 13484 # If it succeeded, then it was overridden by the user. We will use it 13485 # for the tool. 13486 13487 # First remove it from the list of overridden variables, so we can test 13488 # for unknown variables in the end. 13489 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13490 13491 # Check if we try to supply an empty value 13492 if test "x$SED" = x; then 13493 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5 13494 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;} 13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 13496 $as_echo_n "checking for SED... " >&6; } 13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13498 $as_echo "disabled" >&6; } 13499 else 13500 # Check if the provided tool contains a complete path. 13501 tool_specified="$SED" 13502 tool_basename="${tool_specified##*/}" 13503 if test "x$tool_basename" = "x$tool_specified"; then 13504 # A command without a complete path is provided, search $PATH. 13505 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 13506 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 13507 # Extract the first word of "$tool_basename", so it can be a program name with args. 13508 set dummy $tool_basename; ac_word=$2 13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13510 $as_echo_n "checking for $ac_word... " >&6; } 13511 if ${ac_cv_path_SED+:} false; then : 13512 $as_echo_n "(cached) " >&6 13513 else 13514 case $SED in 13515 [\\/]* | ?:[\\/]*) 13516 ac_cv_path_SED="$SED" # Let the user override the test with a path. 13517 ;; 13518 *) 13519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13520 for as_dir in $PATH 13521 do 13522 IFS=$as_save_IFS 13523 test -z "$as_dir" && as_dir=. 13524 for ac_exec_ext in '' $ac_executable_extensions; do 13525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13526 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 13527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13528 break 2 13529 fi 13530 done 13531 done 13532 IFS=$as_save_IFS 13533 13534 ;; 13535 esac 13536 fi 13537 SED=$ac_cv_path_SED 13538 if test -n "$SED"; then 13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 13540 $as_echo "$SED" >&6; } 13541 else 13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13543 $as_echo "no" >&6; } 13544 fi 13545 13546 13547 if test "x$SED" = x; then 13548 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13549 fi 13550 else 13551 # Otherwise we believe it is a complete path. Use it as it is. 13552 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 13553 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 13554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 13555 $as_echo_n "checking for SED... " >&6; } 13556 if test ! -x "$tool_specified"; then 13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13558 $as_echo "not found" >&6; } 13559 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 13560 fi 13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13562 $as_echo "$tool_specified" >&6; } 13563 fi 13564 fi 13565 fi 13566 13567 fi 13568 13569 13570 if test "x$SED" = x; then 13571 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 13572 fi 13573 13574 13575 13576 # Always force rm. 13577 RM="$RM -f" 13578 13579 # pwd behaves differently on various platforms and some don't support the -L flag. 13580 # Always use the bash builtin pwd to get uniform behavior. 13581 THEPWDCMD=pwd 13582 13583 # These are not required on all platforms 13584 13585 13586 # Publish this variable in the help. 13587 13588 13589 if [ -z "${CYGPATH+x}" ]; then 13590 # The variable is not set by user, try to locate tool using the code snippet 13591 for ac_prog in cygpath 13592 do 13593 # Extract the first word of "$ac_prog", so it can be a program name with args. 13594 set dummy $ac_prog; ac_word=$2 13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13596 $as_echo_n "checking for $ac_word... " >&6; } 13597 if ${ac_cv_path_CYGPATH+:} false; then : 13598 $as_echo_n "(cached) " >&6 13599 else 13600 case $CYGPATH in 13601 [\\/]* | ?:[\\/]*) 13602 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 13603 ;; 13604 *) 13605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13606 for as_dir in $PATH 13607 do 13608 IFS=$as_save_IFS 13609 test -z "$as_dir" && as_dir=. 13610 for ac_exec_ext in '' $ac_executable_extensions; do 13611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13612 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 13613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13614 break 2 13615 fi 13616 done 13617 done 13618 IFS=$as_save_IFS 13619 13620 ;; 13621 esac 13622 fi 13623 CYGPATH=$ac_cv_path_CYGPATH 13624 if test -n "$CYGPATH"; then 13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 13626 $as_echo "$CYGPATH" >&6; } 13627 else 13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13629 $as_echo "no" >&6; } 13630 fi 13631 13632 13633 test -n "$CYGPATH" && break 13634 done 13635 13636 else 13637 # The variable is set, but is it from the command line or the environment? 13638 13639 # Try to remove the string !CYGPATH! from our list. 13640 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 13641 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13642 # If it failed, the variable was not from the command line. Ignore it, 13643 # but warn the user (except for BASH, which is always set by the calling BASH). 13644 if test "xCYGPATH" != xBASH; then 13645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 13646 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 13647 fi 13648 # Try to locate tool using the code snippet 13649 for ac_prog in cygpath 13650 do 13651 # Extract the first word of "$ac_prog", so it can be a program name with args. 13652 set dummy $ac_prog; ac_word=$2 13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13654 $as_echo_n "checking for $ac_word... " >&6; } 13655 if ${ac_cv_path_CYGPATH+:} false; then : 13656 $as_echo_n "(cached) " >&6 13657 else 13658 case $CYGPATH in 13659 [\\/]* | ?:[\\/]*) 13660 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 13661 ;; 13662 *) 13663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13664 for as_dir in $PATH 13665 do 13666 IFS=$as_save_IFS 13667 test -z "$as_dir" && as_dir=. 13668 for ac_exec_ext in '' $ac_executable_extensions; do 13669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13670 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 13671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13672 break 2 13673 fi 13674 done 13675 done 13676 IFS=$as_save_IFS 13677 13678 ;; 13679 esac 13680 fi 13681 CYGPATH=$ac_cv_path_CYGPATH 13682 if test -n "$CYGPATH"; then 13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 13684 $as_echo "$CYGPATH" >&6; } 13685 else 13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13687 $as_echo "no" >&6; } 13688 fi 13689 13690 13691 test -n "$CYGPATH" && break 13692 done 13693 13694 else 13695 # If it succeeded, then it was overridden by the user. We will use it 13696 # for the tool. 13697 13698 # First remove it from the list of overridden variables, so we can test 13699 # for unknown variables in the end. 13700 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13701 13702 # Check if we try to supply an empty value 13703 if test "x$CYGPATH" = x; then 13704 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5 13705 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;} 13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 13707 $as_echo_n "checking for CYGPATH... " >&6; } 13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13709 $as_echo "disabled" >&6; } 13710 else 13711 # Check if the provided tool contains a complete path. 13712 tool_specified="$CYGPATH" 13713 tool_basename="${tool_specified##*/}" 13714 if test "x$tool_basename" = "x$tool_specified"; then 13715 # A command without a complete path is provided, search $PATH. 13716 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 13717 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 13718 # Extract the first word of "$tool_basename", so it can be a program name with args. 13719 set dummy $tool_basename; ac_word=$2 13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13721 $as_echo_n "checking for $ac_word... " >&6; } 13722 if ${ac_cv_path_CYGPATH+:} false; then : 13723 $as_echo_n "(cached) " >&6 13724 else 13725 case $CYGPATH in 13726 [\\/]* | ?:[\\/]*) 13727 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 13728 ;; 13729 *) 13730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13731 for as_dir in $PATH 13732 do 13733 IFS=$as_save_IFS 13734 test -z "$as_dir" && as_dir=. 13735 for ac_exec_ext in '' $ac_executable_extensions; do 13736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13737 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 13738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13739 break 2 13740 fi 13741 done 13742 done 13743 IFS=$as_save_IFS 13744 13745 ;; 13746 esac 13747 fi 13748 CYGPATH=$ac_cv_path_CYGPATH 13749 if test -n "$CYGPATH"; then 13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 13751 $as_echo "$CYGPATH" >&6; } 13752 else 13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13754 $as_echo "no" >&6; } 13755 fi 13756 13757 13758 if test "x$CYGPATH" = x; then 13759 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13760 fi 13761 else 13762 # Otherwise we believe it is a complete path. Use it as it is. 13763 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 13764 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 13766 $as_echo_n "checking for CYGPATH... " >&6; } 13767 if test ! -x "$tool_specified"; then 13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13769 $as_echo "not found" >&6; } 13770 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 13771 fi 13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13773 $as_echo "$tool_specified" >&6; } 13774 fi 13775 fi 13776 fi 13777 13778 fi 13779 13780 13781 13782 13783 # Publish this variable in the help. 13784 13785 13786 if [ -z "${READLINK+x}" ]; then 13787 # The variable is not set by user, try to locate tool using the code snippet 13788 for ac_prog in greadlink readlink 13789 do 13790 # Extract the first word of "$ac_prog", so it can be a program name with args. 13791 set dummy $ac_prog; ac_word=$2 13792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13793 $as_echo_n "checking for $ac_word... " >&6; } 13794 if ${ac_cv_path_READLINK+:} false; then : 13795 $as_echo_n "(cached) " >&6 13796 else 13797 case $READLINK in 13798 [\\/]* | ?:[\\/]*) 13799 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 13800 ;; 13801 *) 13802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13803 for as_dir in $PATH 13804 do 13805 IFS=$as_save_IFS 13806 test -z "$as_dir" && as_dir=. 13807 for ac_exec_ext in '' $ac_executable_extensions; do 13808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13809 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 13810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13811 break 2 13812 fi 13813 done 13814 done 13815 IFS=$as_save_IFS 13816 13817 ;; 13818 esac 13819 fi 13820 READLINK=$ac_cv_path_READLINK 13821 if test -n "$READLINK"; then 13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 13823 $as_echo "$READLINK" >&6; } 13824 else 13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13826 $as_echo "no" >&6; } 13827 fi 13828 13829 13830 test -n "$READLINK" && break 13831 done 13832 13833 else 13834 # The variable is set, but is it from the command line or the environment? 13835 13836 # Try to remove the string !READLINK! from our list. 13837 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 13838 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13839 # If it failed, the variable was not from the command line. Ignore it, 13840 # but warn the user (except for BASH, which is always set by the calling BASH). 13841 if test "xREADLINK" != xBASH; then 13842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 13843 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 13844 fi 13845 # Try to locate tool using the code snippet 13846 for ac_prog in greadlink readlink 13847 do 13848 # Extract the first word of "$ac_prog", so it can be a program name with args. 13849 set dummy $ac_prog; ac_word=$2 13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13851 $as_echo_n "checking for $ac_word... " >&6; } 13852 if ${ac_cv_path_READLINK+:} false; then : 13853 $as_echo_n "(cached) " >&6 13854 else 13855 case $READLINK in 13856 [\\/]* | ?:[\\/]*) 13857 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 13858 ;; 13859 *) 13860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13861 for as_dir in $PATH 13862 do 13863 IFS=$as_save_IFS 13864 test -z "$as_dir" && as_dir=. 13865 for ac_exec_ext in '' $ac_executable_extensions; do 13866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13867 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 13868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13869 break 2 13870 fi 13871 done 13872 done 13873 IFS=$as_save_IFS 13874 13875 ;; 13876 esac 13877 fi 13878 READLINK=$ac_cv_path_READLINK 13879 if test -n "$READLINK"; then 13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 13881 $as_echo "$READLINK" >&6; } 13882 else 13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13884 $as_echo "no" >&6; } 13885 fi 13886 13887 13888 test -n "$READLINK" && break 13889 done 13890 13891 else 13892 # If it succeeded, then it was overridden by the user. We will use it 13893 # for the tool. 13894 13895 # First remove it from the list of overridden variables, so we can test 13896 # for unknown variables in the end. 13897 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13898 13899 # Check if we try to supply an empty value 13900 if test "x$READLINK" = x; then 13901 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5 13902 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;} 13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 13904 $as_echo_n "checking for READLINK... " >&6; } 13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13906 $as_echo "disabled" >&6; } 13907 else 13908 # Check if the provided tool contains a complete path. 13909 tool_specified="$READLINK" 13910 tool_basename="${tool_specified##*/}" 13911 if test "x$tool_basename" = "x$tool_specified"; then 13912 # A command without a complete path is provided, search $PATH. 13913 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 13914 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 13915 # Extract the first word of "$tool_basename", so it can be a program name with args. 13916 set dummy $tool_basename; ac_word=$2 13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13918 $as_echo_n "checking for $ac_word... " >&6; } 13919 if ${ac_cv_path_READLINK+:} false; then : 13920 $as_echo_n "(cached) " >&6 13921 else 13922 case $READLINK in 13923 [\\/]* | ?:[\\/]*) 13924 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 13925 ;; 13926 *) 13927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13928 for as_dir in $PATH 13929 do 13930 IFS=$as_save_IFS 13931 test -z "$as_dir" && as_dir=. 13932 for ac_exec_ext in '' $ac_executable_extensions; do 13933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13934 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 13935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13936 break 2 13937 fi 13938 done 13939 done 13940 IFS=$as_save_IFS 13941 13942 ;; 13943 esac 13944 fi 13945 READLINK=$ac_cv_path_READLINK 13946 if test -n "$READLINK"; then 13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 13948 $as_echo "$READLINK" >&6; } 13949 else 13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13951 $as_echo "no" >&6; } 13952 fi 13953 13954 13955 if test "x$READLINK" = x; then 13956 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13957 fi 13958 else 13959 # Otherwise we believe it is a complete path. Use it as it is. 13960 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 13961 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 13963 $as_echo_n "checking for READLINK... " >&6; } 13964 if test ! -x "$tool_specified"; then 13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13966 $as_echo "not found" >&6; } 13967 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 13968 fi 13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13970 $as_echo "$tool_specified" >&6; } 13971 fi 13972 fi 13973 fi 13974 13975 fi 13976 13977 13978 13979 13980 # Publish this variable in the help. 13981 13982 13983 if [ -z "${DF+x}" ]; then 13984 # The variable is not set by user, try to locate tool using the code snippet 13985 for ac_prog in df 13986 do 13987 # Extract the first word of "$ac_prog", so it can be a program name with args. 13988 set dummy $ac_prog; ac_word=$2 13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13990 $as_echo_n "checking for $ac_word... " >&6; } 13991 if ${ac_cv_path_DF+:} false; then : 13992 $as_echo_n "(cached) " >&6 13993 else 13994 case $DF in 13995 [\\/]* | ?:[\\/]*) 13996 ac_cv_path_DF="$DF" # Let the user override the test with a path. 13997 ;; 13998 *) 13999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14000 for as_dir in $PATH 14001 do 14002 IFS=$as_save_IFS 14003 test -z "$as_dir" && as_dir=. 14004 for ac_exec_ext in '' $ac_executable_extensions; do 14005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14006 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14008 break 2 14009 fi 14010 done 14011 done 14012 IFS=$as_save_IFS 14013 14014 ;; 14015 esac 14016 fi 14017 DF=$ac_cv_path_DF 14018 if test -n "$DF"; then 14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14020 $as_echo "$DF" >&6; } 14021 else 14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14023 $as_echo "no" >&6; } 14024 fi 14025 14026 14027 test -n "$DF" && break 14028 done 14029 14030 else 14031 # The variable is set, but is it from the command line or the environment? 14032 14033 # Try to remove the string !DF! from our list. 14034 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 14035 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14036 # If it failed, the variable was not from the command line. Ignore it, 14037 # but warn the user (except for BASH, which is always set by the calling BASH). 14038 if test "xDF" != xBASH; then 14039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 14040 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 14041 fi 14042 # Try to locate tool using the code snippet 14043 for ac_prog in df 14044 do 14045 # Extract the first word of "$ac_prog", so it can be a program name with args. 14046 set dummy $ac_prog; ac_word=$2 14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14048 $as_echo_n "checking for $ac_word... " >&6; } 14049 if ${ac_cv_path_DF+:} false; then : 14050 $as_echo_n "(cached) " >&6 14051 else 14052 case $DF in 14053 [\\/]* | ?:[\\/]*) 14054 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14055 ;; 14056 *) 14057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14058 for as_dir in $PATH 14059 do 14060 IFS=$as_save_IFS 14061 test -z "$as_dir" && as_dir=. 14062 for ac_exec_ext in '' $ac_executable_extensions; do 14063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14064 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14066 break 2 14067 fi 14068 done 14069 done 14070 IFS=$as_save_IFS 14071 14072 ;; 14073 esac 14074 fi 14075 DF=$ac_cv_path_DF 14076 if test -n "$DF"; then 14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14078 $as_echo "$DF" >&6; } 14079 else 14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14081 $as_echo "no" >&6; } 14082 fi 14083 14084 14085 test -n "$DF" && break 14086 done 14087 14088 else 14089 # If it succeeded, then it was overridden by the user. We will use it 14090 # for the tool. 14091 14092 # First remove it from the list of overridden variables, so we can test 14093 # for unknown variables in the end. 14094 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14095 14096 # Check if we try to supply an empty value 14097 if test "x$DF" = x; then 14098 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5 14099 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;} 14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14101 $as_echo_n "checking for DF... " >&6; } 14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14103 $as_echo "disabled" >&6; } 14104 else 14105 # Check if the provided tool contains a complete path. 14106 tool_specified="$DF" 14107 tool_basename="${tool_specified##*/}" 14108 if test "x$tool_basename" = "x$tool_specified"; then 14109 # A command without a complete path is provided, search $PATH. 14110 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 14111 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 14112 # Extract the first word of "$tool_basename", so it can be a program name with args. 14113 set dummy $tool_basename; ac_word=$2 14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14115 $as_echo_n "checking for $ac_word... " >&6; } 14116 if ${ac_cv_path_DF+:} false; then : 14117 $as_echo_n "(cached) " >&6 14118 else 14119 case $DF in 14120 [\\/]* | ?:[\\/]*) 14121 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14122 ;; 14123 *) 14124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14125 for as_dir in $PATH 14126 do 14127 IFS=$as_save_IFS 14128 test -z "$as_dir" && as_dir=. 14129 for ac_exec_ext in '' $ac_executable_extensions; do 14130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14131 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14133 break 2 14134 fi 14135 done 14136 done 14137 IFS=$as_save_IFS 14138 14139 ;; 14140 esac 14141 fi 14142 DF=$ac_cv_path_DF 14143 if test -n "$DF"; then 14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14145 $as_echo "$DF" >&6; } 14146 else 14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14148 $as_echo "no" >&6; } 14149 fi 14150 14151 14152 if test "x$DF" = x; then 14153 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14154 fi 14155 else 14156 # Otherwise we believe it is a complete path. Use it as it is. 14157 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 14158 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14160 $as_echo_n "checking for DF... " >&6; } 14161 if test ! -x "$tool_specified"; then 14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14163 $as_echo "not found" >&6; } 14164 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 14165 fi 14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14167 $as_echo "$tool_specified" >&6; } 14168 fi 14169 fi 14170 fi 14171 14172 fi 14173 14174 14175 14176 14177 # Publish this variable in the help. 14178 14179 14180 if [ -z "${CPIO+x}" ]; then 14181 # The variable is not set by user, try to locate tool using the code snippet 14182 for ac_prog in cpio bsdcpio 14183 do 14184 # Extract the first word of "$ac_prog", so it can be a program name with args. 14185 set dummy $ac_prog; ac_word=$2 14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14187 $as_echo_n "checking for $ac_word... " >&6; } 14188 if ${ac_cv_path_CPIO+:} false; then : 14189 $as_echo_n "(cached) " >&6 14190 else 14191 case $CPIO in 14192 [\\/]* | ?:[\\/]*) 14193 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 14194 ;; 14195 *) 14196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14197 for as_dir in $PATH 14198 do 14199 IFS=$as_save_IFS 14200 test -z "$as_dir" && as_dir=. 14201 for ac_exec_ext in '' $ac_executable_extensions; do 14202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14203 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 14204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14205 break 2 14206 fi 14207 done 14208 done 14209 IFS=$as_save_IFS 14210 14211 ;; 14212 esac 14213 fi 14214 CPIO=$ac_cv_path_CPIO 14215 if test -n "$CPIO"; then 14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 14217 $as_echo "$CPIO" >&6; } 14218 else 14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14220 $as_echo "no" >&6; } 14221 fi 14222 14223 14224 test -n "$CPIO" && break 14225 done 14226 14227 else 14228 # The variable is set, but is it from the command line or the environment? 14229 14230 # Try to remove the string !CPIO! from our list. 14231 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 14232 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14233 # If it failed, the variable was not from the command line. Ignore it, 14234 # but warn the user (except for BASH, which is always set by the calling BASH). 14235 if test "xCPIO" != xBASH; then 14236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 14237 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 14238 fi 14239 # Try to locate tool using the code snippet 14240 for ac_prog in cpio bsdcpio 14241 do 14242 # Extract the first word of "$ac_prog", so it can be a program name with args. 14243 set dummy $ac_prog; ac_word=$2 14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14245 $as_echo_n "checking for $ac_word... " >&6; } 14246 if ${ac_cv_path_CPIO+:} false; then : 14247 $as_echo_n "(cached) " >&6 14248 else 14249 case $CPIO in 14250 [\\/]* | ?:[\\/]*) 14251 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 14252 ;; 14253 *) 14254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14255 for as_dir in $PATH 14256 do 14257 IFS=$as_save_IFS 14258 test -z "$as_dir" && as_dir=. 14259 for ac_exec_ext in '' $ac_executable_extensions; do 14260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14261 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 14262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14263 break 2 14264 fi 14265 done 14266 done 14267 IFS=$as_save_IFS 14268 14269 ;; 14270 esac 14271 fi 14272 CPIO=$ac_cv_path_CPIO 14273 if test -n "$CPIO"; then 14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 14275 $as_echo "$CPIO" >&6; } 14276 else 14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14278 $as_echo "no" >&6; } 14279 fi 14280 14281 14282 test -n "$CPIO" && break 14283 done 14284 14285 else 14286 # If it succeeded, then it was overridden by the user. We will use it 14287 # for the tool. 14288 14289 # First remove it from the list of overridden variables, so we can test 14290 # for unknown variables in the end. 14291 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14292 14293 # Check if we try to supply an empty value 14294 if test "x$CPIO" = x; then 14295 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5 14296 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;} 14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 14298 $as_echo_n "checking for CPIO... " >&6; } 14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14300 $as_echo "disabled" >&6; } 14301 else 14302 # Check if the provided tool contains a complete path. 14303 tool_specified="$CPIO" 14304 tool_basename="${tool_specified##*/}" 14305 if test "x$tool_basename" = "x$tool_specified"; then 14306 # A command without a complete path is provided, search $PATH. 14307 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 14308 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 14309 # Extract the first word of "$tool_basename", so it can be a program name with args. 14310 set dummy $tool_basename; ac_word=$2 14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14312 $as_echo_n "checking for $ac_word... " >&6; } 14313 if ${ac_cv_path_CPIO+:} false; then : 14314 $as_echo_n "(cached) " >&6 14315 else 14316 case $CPIO in 14317 [\\/]* | ?:[\\/]*) 14318 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 14319 ;; 14320 *) 14321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14322 for as_dir in $PATH 14323 do 14324 IFS=$as_save_IFS 14325 test -z "$as_dir" && as_dir=. 14326 for ac_exec_ext in '' $ac_executable_extensions; do 14327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14328 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 14329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14330 break 2 14331 fi 14332 done 14333 done 14334 IFS=$as_save_IFS 14335 14336 ;; 14337 esac 14338 fi 14339 CPIO=$ac_cv_path_CPIO 14340 if test -n "$CPIO"; then 14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 14342 $as_echo "$CPIO" >&6; } 14343 else 14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14345 $as_echo "no" >&6; } 14346 fi 14347 14348 14349 if test "x$CPIO" = x; then 14350 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14351 fi 14352 else 14353 # Otherwise we believe it is a complete path. Use it as it is. 14354 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 14355 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 14357 $as_echo_n "checking for CPIO... " >&6; } 14358 if test ! -x "$tool_specified"; then 14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14360 $as_echo "not found" >&6; } 14361 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 14362 fi 14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14364 $as_echo "$tool_specified" >&6; } 14365 fi 14366 fi 14367 fi 14368 14369 fi 14370 14371 14372 14373 14374 # Publish this variable in the help. 14375 14376 14377 if [ -z "${NICE+x}" ]; then 14378 # The variable is not set by user, try to locate tool using the code snippet 14379 for ac_prog in nice 14380 do 14381 # Extract the first word of "$ac_prog", so it can be a program name with args. 14382 set dummy $ac_prog; ac_word=$2 14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14384 $as_echo_n "checking for $ac_word... " >&6; } 14385 if ${ac_cv_path_NICE+:} false; then : 14386 $as_echo_n "(cached) " >&6 14387 else 14388 case $NICE in 14389 [\\/]* | ?:[\\/]*) 14390 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 14391 ;; 14392 *) 14393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14394 for as_dir in $PATH 14395 do 14396 IFS=$as_save_IFS 14397 test -z "$as_dir" && as_dir=. 14398 for ac_exec_ext in '' $ac_executable_extensions; do 14399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14400 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 14401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14402 break 2 14403 fi 14404 done 14405 done 14406 IFS=$as_save_IFS 14407 14408 ;; 14409 esac 14410 fi 14411 NICE=$ac_cv_path_NICE 14412 if test -n "$NICE"; then 14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 14414 $as_echo "$NICE" >&6; } 14415 else 14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14417 $as_echo "no" >&6; } 14418 fi 14419 14420 14421 test -n "$NICE" && break 14422 done 14423 14424 else 14425 # The variable is set, but is it from the command line or the environment? 14426 14427 # Try to remove the string !NICE! from our list. 14428 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/} 14429 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14430 # If it failed, the variable was not from the command line. Ignore it, 14431 # but warn the user (except for BASH, which is always set by the calling BASH). 14432 if test "xNICE" != xBASH; then 14433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5 14434 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;} 14435 fi 14436 # Try to locate tool using the code snippet 14437 for ac_prog in nice 14438 do 14439 # Extract the first word of "$ac_prog", so it can be a program name with args. 14440 set dummy $ac_prog; ac_word=$2 14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14442 $as_echo_n "checking for $ac_word... " >&6; } 14443 if ${ac_cv_path_NICE+:} false; then : 14444 $as_echo_n "(cached) " >&6 14445 else 14446 case $NICE in 14447 [\\/]* | ?:[\\/]*) 14448 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 14449 ;; 14450 *) 14451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14452 for as_dir in $PATH 14453 do 14454 IFS=$as_save_IFS 14455 test -z "$as_dir" && as_dir=. 14456 for ac_exec_ext in '' $ac_executable_extensions; do 14457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14458 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 14459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14460 break 2 14461 fi 14462 done 14463 done 14464 IFS=$as_save_IFS 14465 14466 ;; 14467 esac 14468 fi 14469 NICE=$ac_cv_path_NICE 14470 if test -n "$NICE"; then 14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 14472 $as_echo "$NICE" >&6; } 14473 else 14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14475 $as_echo "no" >&6; } 14476 fi 14477 14478 14479 test -n "$NICE" && break 14480 done 14481 14482 else 14483 # If it succeeded, then it was overridden by the user. We will use it 14484 # for the tool. 14485 14486 # First remove it from the list of overridden variables, so we can test 14487 # for unknown variables in the end. 14488 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14489 14490 # Check if we try to supply an empty value 14491 if test "x$NICE" = x; then 14492 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5 14493 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;} 14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 14495 $as_echo_n "checking for NICE... " >&6; } 14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14497 $as_echo "disabled" >&6; } 14498 else 14499 # Check if the provided tool contains a complete path. 14500 tool_specified="$NICE" 14501 tool_basename="${tool_specified##*/}" 14502 if test "x$tool_basename" = "x$tool_specified"; then 14503 # A command without a complete path is provided, search $PATH. 14504 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5 14505 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;} 14506 # Extract the first word of "$tool_basename", so it can be a program name with args. 14507 set dummy $tool_basename; ac_word=$2 14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14509 $as_echo_n "checking for $ac_word... " >&6; } 14510 if ${ac_cv_path_NICE+:} false; then : 14511 $as_echo_n "(cached) " >&6 14512 else 14513 case $NICE in 14514 [\\/]* | ?:[\\/]*) 14515 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 14516 ;; 14517 *) 14518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14519 for as_dir in $PATH 14520 do 14521 IFS=$as_save_IFS 14522 test -z "$as_dir" && as_dir=. 14523 for ac_exec_ext in '' $ac_executable_extensions; do 14524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14525 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 14526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14527 break 2 14528 fi 14529 done 14530 done 14531 IFS=$as_save_IFS 14532 14533 ;; 14534 esac 14535 fi 14536 NICE=$ac_cv_path_NICE 14537 if test -n "$NICE"; then 14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 14539 $as_echo "$NICE" >&6; } 14540 else 14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14542 $as_echo "no" >&6; } 14543 fi 14544 14545 14546 if test "x$NICE" = x; then 14547 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14548 fi 14549 else 14550 # Otherwise we believe it is a complete path. Use it as it is. 14551 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5 14552 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;} 14553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 14554 $as_echo_n "checking for NICE... " >&6; } 14555 if test ! -x "$tool_specified"; then 14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14557 $as_echo "not found" >&6; } 14558 as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5 14559 fi 14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14561 $as_echo "$tool_specified" >&6; } 14562 fi 14563 fi 14564 fi 14565 14566 fi 14567 14568 14569 14570 14571 # Now we can determine OpenJDK build and target platforms. This is required to 14572 # have early on. 14573 # Make sure we can run config.sub. 14574 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 14575 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 14576 14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 14578 $as_echo_n "checking build system type... " >&6; } 14579 if ${ac_cv_build+:} false; then : 14580 $as_echo_n "(cached) " >&6 14581 else 14582 ac_build_alias=$build_alias 14583 test "x$ac_build_alias" = x && 14584 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 14585 test "x$ac_build_alias" = x && 14586 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 14587 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 14588 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 14589 14590 fi 14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 14592 $as_echo "$ac_cv_build" >&6; } 14593 case $ac_cv_build in 14594 *-*-*) ;; 14595 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 14596 esac 14597 build=$ac_cv_build 14598 ac_save_IFS=$IFS; IFS='-' 14599 set x $ac_cv_build 14600 shift 14601 build_cpu=$1 14602 build_vendor=$2 14603 shift; shift 14604 # Remember, the first character of IFS is used to create $*, 14605 # except with old shells: 14606 build_os=$* 14607 IFS=$ac_save_IFS 14608 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 14609 14610 14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 14612 $as_echo_n "checking host system type... " >&6; } 14613 if ${ac_cv_host+:} false; then : 14614 $as_echo_n "(cached) " >&6 14615 else 14616 if test "x$host_alias" = x; then 14617 ac_cv_host=$ac_cv_build 14618 else 14619 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 14620 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 14621 fi 14622 14623 fi 14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 14625 $as_echo "$ac_cv_host" >&6; } 14626 case $ac_cv_host in 14627 *-*-*) ;; 14628 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 14629 esac 14630 host=$ac_cv_host 14631 ac_save_IFS=$IFS; IFS='-' 14632 set x $ac_cv_host 14633 shift 14634 host_cpu=$1 14635 host_vendor=$2 14636 shift; shift 14637 # Remember, the first character of IFS is used to create $*, 14638 # except with old shells: 14639 host_os=$* 14640 IFS=$ac_save_IFS 14641 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 14642 14643 14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 14645 $as_echo_n "checking target system type... " >&6; } 14646 if ${ac_cv_target+:} false; then : 14647 $as_echo_n "(cached) " >&6 14648 else 14649 if test "x$target_alias" = x; then 14650 ac_cv_target=$ac_cv_host 14651 else 14652 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 14653 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 14654 fi 14655 14656 fi 14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 14658 $as_echo "$ac_cv_target" >&6; } 14659 case $ac_cv_target in 14660 *-*-*) ;; 14661 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 14662 esac 14663 target=$ac_cv_target 14664 ac_save_IFS=$IFS; IFS='-' 14665 set x $ac_cv_target 14666 shift 14667 target_cpu=$1 14668 target_vendor=$2 14669 shift; shift 14670 # Remember, the first character of IFS is used to create $*, 14671 # except with old shells: 14672 target_os=$* 14673 IFS=$ac_save_IFS 14674 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 14675 14676 14677 # The aliases save the names the user supplied, while $host etc. 14678 # will get canonicalized. 14679 test -n "$target_alias" && 14680 test "$program_prefix$program_suffix$program_transform_name" = \ 14681 NONENONEs,x,x, && 14682 program_prefix=${target_alias}- 14683 14684 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 14685 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 14686 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 14687 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 14688 # to use the configure naming style. 14689 14690 14691 14692 14693 14694 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 14695 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 14696 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 14697 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 14698 OPENJDK_TARGET_AUTOCONF_NAME="$host" 14699 OPENJDK_BUILD_AUTOCONF_NAME="$build" 14700 14701 14702 14703 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 14704 14705 case "$build_os" in 14706 *linux*) 14707 VAR_OS=linux 14708 VAR_OS_TYPE=unix 14709 ;; 14710 *solaris*) 14711 VAR_OS=solaris 14712 VAR_OS_TYPE=unix 14713 ;; 14714 *darwin*) 14715 VAR_OS=macosx 14716 VAR_OS_TYPE=unix 14717 ;; 14718 *bsd*) 14719 VAR_OS=bsd 14720 VAR_OS_TYPE=unix 14721 ;; 14722 *cygwin*) 14723 VAR_OS=windows 14724 VAR_OS_ENV=windows.cygwin 14725 ;; 14726 *mingw*) 14727 VAR_OS=windows 14728 VAR_OS_ENV=windows.msys 14729 ;; 14730 *aix*) 14731 VAR_OS=aix 14732 VAR_OS_TYPE=unix 14733 ;; 14734 *) 14735 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 14736 ;; 14737 esac 14738 14739 14740 # First argument is the cpu name from the trip/quad 14741 case "$build_cpu" in 14742 x86_64) 14743 VAR_CPU=x86_64 14744 VAR_CPU_ARCH=x86 14745 VAR_CPU_BITS=64 14746 VAR_CPU_ENDIAN=little 14747 ;; 14748 i?86) 14749 VAR_CPU=x86 14750 VAR_CPU_ARCH=x86 14751 VAR_CPU_BITS=32 14752 VAR_CPU_ENDIAN=little 14753 ;; 14754 arm*) 14755 VAR_CPU=arm 14756 VAR_CPU_ARCH=arm 14757 VAR_CPU_BITS=32 14758 VAR_CPU_ENDIAN=little 14759 ;; 14760 aarch64) 14761 VAR_CPU=aarch64 14762 VAR_CPU_ARCH=aarch64 14763 VAR_CPU_BITS=64 14764 VAR_CPU_ENDIAN=little 14765 ;; 14766 powerpc) 14767 VAR_CPU=ppc 14768 VAR_CPU_ARCH=ppc 14769 VAR_CPU_BITS=32 14770 VAR_CPU_ENDIAN=big 14771 ;; 14772 powerpc64) 14773 VAR_CPU=ppc64 14774 VAR_CPU_ARCH=ppc 14775 VAR_CPU_BITS=64 14776 VAR_CPU_ENDIAN=big 14777 ;; 14778 powerpc64le) 14779 VAR_CPU=ppc64 14780 VAR_CPU_ARCH=ppc 14781 VAR_CPU_BITS=64 14782 VAR_CPU_ENDIAN=little 14783 ;; 14784 s390) 14785 VAR_CPU=s390 14786 VAR_CPU_ARCH=s390 14787 VAR_CPU_BITS=32 14788 VAR_CPU_ENDIAN=big 14789 ;; 14790 s390x) 14791 VAR_CPU=s390x 14792 VAR_CPU_ARCH=s390 14793 VAR_CPU_BITS=64 14794 VAR_CPU_ENDIAN=big 14795 ;; 14796 sparc) 14797 VAR_CPU=sparc 14798 VAR_CPU_ARCH=sparc 14799 VAR_CPU_BITS=32 14800 VAR_CPU_ENDIAN=big 14801 ;; 14802 sparcv9|sparc64) 14803 VAR_CPU=sparcv9 14804 VAR_CPU_ARCH=sparc 14805 VAR_CPU_BITS=64 14806 VAR_CPU_ENDIAN=big 14807 ;; 14808 *) 14809 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 14810 ;; 14811 esac 14812 14813 # ..and setup our own variables. (Do this explicitely to facilitate searching) 14814 OPENJDK_BUILD_OS="$VAR_OS" 14815 if test "x$VAR_OS_TYPE" != x; then 14816 OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE" 14817 else 14818 OPENJDK_BUILD_OS_TYPE="$VAR_OS" 14819 fi 14820 if test "x$VAR_OS_ENV" != x; then 14821 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 14822 else 14823 OPENJDK_BUILD_OS_ENV="$VAR_OS" 14824 fi 14825 OPENJDK_BUILD_CPU="$VAR_CPU" 14826 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 14827 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 14828 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 14829 14830 14831 14832 14833 14834 14835 14836 14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 14838 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 14840 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 14841 14842 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 14843 14844 case "$host_os" in 14845 *linux*) 14846 VAR_OS=linux 14847 VAR_OS_TYPE=unix 14848 ;; 14849 *solaris*) 14850 VAR_OS=solaris 14851 VAR_OS_TYPE=unix 14852 ;; 14853 *darwin*) 14854 VAR_OS=macosx 14855 VAR_OS_TYPE=unix 14856 ;; 14857 *bsd*) 14858 VAR_OS=bsd 14859 VAR_OS_TYPE=unix 14860 ;; 14861 *cygwin*) 14862 VAR_OS=windows 14863 VAR_OS_ENV=windows.cygwin 14864 ;; 14865 *mingw*) 14866 VAR_OS=windows 14867 VAR_OS_ENV=windows.msys 14868 ;; 14869 *aix*) 14870 VAR_OS=aix 14871 VAR_OS_TYPE=unix 14872 ;; 14873 *) 14874 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 14875 ;; 14876 esac 14877 14878 14879 # First argument is the cpu name from the trip/quad 14880 case "$host_cpu" in 14881 x86_64) 14882 VAR_CPU=x86_64 14883 VAR_CPU_ARCH=x86 14884 VAR_CPU_BITS=64 14885 VAR_CPU_ENDIAN=little 14886 ;; 14887 i?86) 14888 VAR_CPU=x86 14889 VAR_CPU_ARCH=x86 14890 VAR_CPU_BITS=32 14891 VAR_CPU_ENDIAN=little 14892 ;; 14893 arm*) 14894 VAR_CPU=arm 14895 VAR_CPU_ARCH=arm 14896 VAR_CPU_BITS=32 14897 VAR_CPU_ENDIAN=little 14898 ;; 14899 aarch64) 14900 VAR_CPU=aarch64 14901 VAR_CPU_ARCH=aarch64 14902 VAR_CPU_BITS=64 14903 VAR_CPU_ENDIAN=little 14904 ;; 14905 powerpc) 14906 VAR_CPU=ppc 14907 VAR_CPU_ARCH=ppc 14908 VAR_CPU_BITS=32 14909 VAR_CPU_ENDIAN=big 14910 ;; 14911 powerpc64) 14912 VAR_CPU=ppc64 14913 VAR_CPU_ARCH=ppc 14914 VAR_CPU_BITS=64 14915 VAR_CPU_ENDIAN=big 14916 ;; 14917 powerpc64le) 14918 VAR_CPU=ppc64 14919 VAR_CPU_ARCH=ppc 14920 VAR_CPU_BITS=64 14921 VAR_CPU_ENDIAN=little 14922 ;; 14923 s390) 14924 VAR_CPU=s390 14925 VAR_CPU_ARCH=s390 14926 VAR_CPU_BITS=32 14927 VAR_CPU_ENDIAN=big 14928 ;; 14929 s390x) 14930 VAR_CPU=s390x 14931 VAR_CPU_ARCH=s390 14932 VAR_CPU_BITS=64 14933 VAR_CPU_ENDIAN=big 14934 ;; 14935 sparc) 14936 VAR_CPU=sparc 14937 VAR_CPU_ARCH=sparc 14938 VAR_CPU_BITS=32 14939 VAR_CPU_ENDIAN=big 14940 ;; 14941 sparcv9|sparc64) 14942 VAR_CPU=sparcv9 14943 VAR_CPU_ARCH=sparc 14944 VAR_CPU_BITS=64 14945 VAR_CPU_ENDIAN=big 14946 ;; 14947 *) 14948 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 14949 ;; 14950 esac 14951 14952 # ... and setup our own variables. (Do this explicitely to facilitate searching) 14953 OPENJDK_TARGET_OS="$VAR_OS" 14954 if test "x$VAR_OS_TYPE" != x; then 14955 OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE" 14956 else 14957 OPENJDK_TARGET_OS_TYPE="$VAR_OS" 14958 fi 14959 if test "x$VAR_OS_ENV" != x; then 14960 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 14961 else 14962 OPENJDK_TARGET_OS_ENV="$VAR_OS" 14963 fi 14964 OPENJDK_TARGET_CPU="$VAR_CPU" 14965 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 14966 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 14967 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 14968 14969 14970 14971 14972 14973 14974 14975 14976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 14977 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 14979 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 14980 14981 14982 14983 # Check whether --with-target-bits was given. 14984 if test "${with_target_bits+set}" = set; then : 14985 withval=$with_target_bits; 14986 fi 14987 14988 14989 # We have three types of compiles: 14990 # native == normal compilation, target system == build system 14991 # cross == traditional cross compilation, target system != build system; special toolchain needed 14992 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 14993 # 14994 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 14995 # We're doing a proper cross-compilation 14996 COMPILE_TYPE="cross" 14997 else 14998 COMPILE_TYPE="native" 14999 fi 15000 15001 if test "x$with_target_bits" != x; then 15002 if test "x$COMPILE_TYPE" = "xcross"; then 15003 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 15004 fi 15005 15006 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 15007 # A reduced build is requested 15008 COMPILE_TYPE="reduced" 15009 OPENJDK_TARGET_CPU_BITS=32 15010 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 15011 OPENJDK_TARGET_CPU=x86 15012 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 15013 OPENJDK_TARGET_CPU=sparc 15014 else 15015 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 15016 fi 15017 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 15018 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 15019 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 15020 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 15021 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 15022 else 15023 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 15024 fi 15025 fi 15026 15027 15028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 15029 $as_echo_n "checking compilation type... " >&6; } 15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 15031 $as_echo "$COMPILE_TYPE" >&6; } 15032 15033 15034 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 15035 REQUIRED_OS_NAME=SunOS 15036 REQUIRED_OS_VERSION=5.10 15037 fi 15038 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 15039 REQUIRED_OS_NAME=Linux 15040 REQUIRED_OS_VERSION=2.6 15041 fi 15042 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 15043 REQUIRED_OS_NAME=Windows 15044 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 15045 REQUIRED_OS_VERSION=5.2 15046 else 15047 REQUIRED_OS_VERSION=5.1 15048 fi 15049 fi 15050 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 15051 REQUIRED_OS_NAME=Darwin 15052 REQUIRED_OS_VERSION=11.2 15053 fi 15054 15055 15056 15057 15058 15059 # Also store the legacy naming of the cpu. 15060 # Ie i586 and amd64 instead of x86 and x86_64 15061 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 15062 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15063 OPENJDK_TARGET_CPU_LEGACY="i586" 15064 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15065 # On all platforms except MacOSX replace x86_64 with amd64. 15066 OPENJDK_TARGET_CPU_LEGACY="amd64" 15067 fi 15068 15069 15070 # And the second legacy naming of the cpu. 15071 # Ie i386 and amd64 instead of x86 and x86_64. 15072 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 15073 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15074 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 15075 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15076 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 15077 fi 15078 15079 15080 # This is the name of the cpu (but using i386 and amd64 instead of 15081 # x86 and x86_64, respectively), preceeded by a /, to be used when 15082 # locating libraries. On macosx, it's empty, though. 15083 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 15084 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 15085 OPENJDK_TARGET_CPU_LIBDIR="" 15086 fi 15087 15088 15089 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 15090 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 15091 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 15092 OPENJDK_TARGET_CPU_ISADIR="" 15093 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 15094 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15095 OPENJDK_TARGET_CPU_ISADIR="/amd64" 15096 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 15097 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 15098 fi 15099 fi 15100 15101 15102 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 15103 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 15104 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 15105 # On linux only, we replace x86 with i386. 15106 OPENJDK_TARGET_CPU_OSARCH="i386" 15107 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15108 # On all platforms except macosx, we replace x86_64 with amd64. 15109 OPENJDK_TARGET_CPU_OSARCH="amd64" 15110 fi 15111 15112 15113 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 15114 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15115 OPENJDK_TARGET_CPU_JLI="i386" 15116 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15117 # On all platforms except macosx, we replace x86_64 with amd64. 15118 OPENJDK_TARGET_CPU_JLI="amd64" 15119 fi 15120 # Now setup the -D flags for building libjli. 15121 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 15122 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 15123 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 15124 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 15125 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 15126 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 15127 fi 15128 fi 15129 15130 15131 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 15132 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 15133 else 15134 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE} 15135 fi 15136 15137 15138 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 15139 A_LP64="LP64:=" 15140 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 15141 # unpack200.exe 15142 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 15143 ADD_LP64="-D_LP64=1" 15144 fi 15145 fi 15146 LP64=$A_LP64 15147 15148 15149 if test "x$COMPILE_TYPE" = "xcross"; then 15150 # FIXME: ... or should this include reduced builds..? 15151 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 15152 else 15153 DEFINE_CROSS_COMPILE_ARCH="" 15154 fi 15155 15156 15157 # ZERO_ARCHDEF is used to enable architecture-specific code 15158 case "${OPENJDK_TARGET_CPU}" in 15159 ppc) ZERO_ARCHDEF=PPC32 ;; 15160 ppc64) ZERO_ARCHDEF=PPC64 ;; 15161 s390*) ZERO_ARCHDEF=S390 ;; 15162 sparc*) ZERO_ARCHDEF=SPARC ;; 15163 x86_64*) ZERO_ARCHDEF=AMD64 ;; 15164 x86) ZERO_ARCHDEF=IA32 ;; 15165 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 15166 esac 15167 15168 15169 15170 15171 # Continue setting up basic stuff. Most remaining code require fundamental tools. 15172 15173 # Save the current directory this script was started from 15174 CURDIR="$PWD" 15175 15176 # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them 15177 # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED 15178 # was not available at that time. 15179 REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'` 15180 if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then 15181 ORIGINAL_PATH="$REWRITTEN_PATH" 15182 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5 15183 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;} 15184 fi 15185 15186 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 15187 PATH_SEP=";" 15188 15189 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 15190 if test $SRC_ROOT_LENGTH -gt 100; then 15191 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 15192 fi 15193 15194 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 15196 $as_echo_n "checking cygwin release... " >&6; } 15197 CYGWIN_VERSION=`$UNAME -r` 15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 15199 $as_echo "$CYGWIN_VERSION" >&6; } 15200 WINDOWS_ENV_VENDOR='cygwin' 15201 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 15202 15203 CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'` 15204 if test "x$CYGWIN_VERSION_OLD" != x; then 15205 { $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 15206 $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;} 15207 as_fn_error $? "Cannot continue" "$LINENO" 5 15208 fi 15209 if test "x$CYGPATH" = x; then 15210 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 15211 fi 15212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 15213 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 15214 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 15215 cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"` 15216 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 15217 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 15219 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 15220 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 15221 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 15222 if test "x$test_cygdrive_prefix" = x; then 15223 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 15224 fi 15225 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 15227 $as_echo_n "checking msys release... " >&6; } 15228 MSYS_VERSION=`$UNAME -r` 15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 15230 $as_echo "$MSYS_VERSION" >&6; } 15231 15232 WINDOWS_ENV_VENDOR='msys' 15233 WINDOWS_ENV_VERSION="$MSYS_VERSION" 15234 15235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 15236 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 15237 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 15238 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 15239 15240 windows_path="$MSYS_ROOT_PATH" 15241 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15242 unix_path=`$CYGPATH -u "$windows_path"` 15243 MSYS_ROOT_PATH="$unix_path" 15244 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15245 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15246 MSYS_ROOT_PATH="$unix_path" 15247 fi 15248 15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 15250 $as_echo "$MSYS_ROOT_PATH" >&6; } 15251 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 15252 else 15253 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 15254 fi 15255 15256 # Test if windows or unix (cygwin/msys) find is first in path. 15257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 15258 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 15259 FIND_BINARY_OUTPUT=`find --version 2>&1` 15260 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 15262 $as_echo "unix style" >&6; } 15263 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 15265 $as_echo "Windows" >&6; } 15266 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 15267 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 15268 { $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 15269 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 15270 as_fn_error $? "Cannot continue" "$LINENO" 5 15271 else 15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 15273 $as_echo "unknown" >&6; } 15274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 15275 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 15276 fi 15277 15278 else 15279 PATH_SEP=":" 15280 fi 15281 15282 15283 # We get the top-level directory from the supporting wrappers. 15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 15285 $as_echo_n "checking for top-level directory... " >&6; } 15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 15287 $as_echo "$TOPDIR" >&6; } 15288 15289 15290 # Save the original version of TOPDIR for string comparisons 15291 ORIGINAL_TOPDIR="$TOPDIR" 15292 15293 15294 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 15295 15296 # Only process if variable expands to non-empty 15297 15298 if test "x$CURDIR" != x; then 15299 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15300 15301 # Input might be given as Windows format, start by converting to 15302 # unix format. 15303 path="$CURDIR" 15304 new_path=`$CYGPATH -u "$path"` 15305 15306 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15307 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15308 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15309 # "foo.exe" is OK but "foo" is an error. 15310 # 15311 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15312 # It is also a way to make sure we got the proper file name for the real test later on. 15313 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15314 if test "x$test_shortpath" = x; then 15315 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 15316 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 15317 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 15318 fi 15319 15320 # Call helper function which possibly converts this using DOS-style short mode. 15321 # If so, the updated path is stored in $new_path. 15322 15323 input_path="$new_path" 15324 # Check if we need to convert this using DOS-style short mode. If the path 15325 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15326 # take no chances and rewrite it. 15327 # Note: m4 eats our [], so we need to use [ and ] instead. 15328 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15329 if test "x$has_forbidden_chars" != x; then 15330 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15331 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15332 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15333 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15334 # Going to short mode and back again did indeed matter. Since short mode is 15335 # case insensitive, let's make it lowercase to improve readability. 15336 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15337 # Now convert it back to Unix-style (cygpath) 15338 input_path=`$CYGPATH -u "$shortmode_path"` 15339 new_path="$input_path" 15340 fi 15341 fi 15342 15343 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15344 if test "x$test_cygdrive_prefix" = x; then 15345 # As a simple fix, exclude /usr/bin since it's not a real path. 15346 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15347 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15348 # a path prefixed by /cygdrive for fixpath to work. 15349 new_path="$CYGWIN_ROOT_PATH$input_path" 15350 fi 15351 fi 15352 15353 15354 if test "x$path" != "x$new_path"; then 15355 CURDIR="$new_path" 15356 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 15357 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 15358 fi 15359 15360 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15361 15362 path="$CURDIR" 15363 has_colon=`$ECHO $path | $GREP ^.:` 15364 new_path="$path" 15365 if test "x$has_colon" = x; then 15366 # Not in mixed or Windows style, start by that. 15367 new_path=`cmd //c echo $path` 15368 fi 15369 15370 15371 input_path="$new_path" 15372 # Check if we need to convert this using DOS-style short mode. If the path 15373 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15374 # take no chances and rewrite it. 15375 # Note: m4 eats our [], so we need to use [ and ] instead. 15376 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15377 if test "x$has_forbidden_chars" != x; then 15378 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15379 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15380 fi 15381 15382 15383 windows_path="$new_path" 15384 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15385 unix_path=`$CYGPATH -u "$windows_path"` 15386 new_path="$unix_path" 15387 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15388 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15389 new_path="$unix_path" 15390 fi 15391 15392 if test "x$path" != "x$new_path"; then 15393 CURDIR="$new_path" 15394 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 15395 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 15396 fi 15397 15398 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15399 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15400 15401 else 15402 # We're on a unix platform. Hooray! :) 15403 path="$CURDIR" 15404 has_space=`$ECHO "$path" | $GREP " "` 15405 if test "x$has_space" != x; then 15406 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 15407 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 15408 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15409 fi 15410 15411 # Use eval to expand a potential ~ 15412 eval path="$path" 15413 if test ! -f "$path" && test ! -d "$path"; then 15414 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 15415 fi 15416 15417 if test -d "$path"; then 15418 CURDIR="`cd "$path"; $THEPWDCMD -L`" 15419 else 15420 dir="`$DIRNAME "$path"`" 15421 base="`$BASENAME "$path"`" 15422 CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 15423 fi 15424 fi 15425 fi 15426 15427 15428 # Only process if variable expands to non-empty 15429 15430 if test "x$TOPDIR" != x; then 15431 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15432 15433 # Input might be given as Windows format, start by converting to 15434 # unix format. 15435 path="$TOPDIR" 15436 new_path=`$CYGPATH -u "$path"` 15437 15438 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15439 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15440 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15441 # "foo.exe" is OK but "foo" is an error. 15442 # 15443 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15444 # It is also a way to make sure we got the proper file name for the real test later on. 15445 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15446 if test "x$test_shortpath" = x; then 15447 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 15448 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 15449 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 15450 fi 15451 15452 # Call helper function which possibly converts this using DOS-style short mode. 15453 # If so, the updated path is stored in $new_path. 15454 15455 input_path="$new_path" 15456 # Check if we need to convert this using DOS-style short mode. If the path 15457 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15458 # take no chances and rewrite it. 15459 # Note: m4 eats our [], so we need to use [ and ] instead. 15460 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15461 if test "x$has_forbidden_chars" != x; then 15462 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15463 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15464 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15465 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15466 # Going to short mode and back again did indeed matter. Since short mode is 15467 # case insensitive, let's make it lowercase to improve readability. 15468 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15469 # Now convert it back to Unix-style (cygpath) 15470 input_path=`$CYGPATH -u "$shortmode_path"` 15471 new_path="$input_path" 15472 fi 15473 fi 15474 15475 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15476 if test "x$test_cygdrive_prefix" = x; then 15477 # As a simple fix, exclude /usr/bin since it's not a real path. 15478 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15479 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15480 # a path prefixed by /cygdrive for fixpath to work. 15481 new_path="$CYGWIN_ROOT_PATH$input_path" 15482 fi 15483 fi 15484 15485 15486 if test "x$path" != "x$new_path"; then 15487 TOPDIR="$new_path" 15488 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 15489 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 15490 fi 15491 15492 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15493 15494 path="$TOPDIR" 15495 has_colon=`$ECHO $path | $GREP ^.:` 15496 new_path="$path" 15497 if test "x$has_colon" = x; then 15498 # Not in mixed or Windows style, start by that. 15499 new_path=`cmd //c echo $path` 15500 fi 15501 15502 15503 input_path="$new_path" 15504 # Check if we need to convert this using DOS-style short mode. If the path 15505 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15506 # take no chances and rewrite it. 15507 # Note: m4 eats our [], so we need to use [ and ] instead. 15508 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15509 if test "x$has_forbidden_chars" != x; then 15510 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15511 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15512 fi 15513 15514 15515 windows_path="$new_path" 15516 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15517 unix_path=`$CYGPATH -u "$windows_path"` 15518 new_path="$unix_path" 15519 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15520 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15521 new_path="$unix_path" 15522 fi 15523 15524 if test "x$path" != "x$new_path"; then 15525 TOPDIR="$new_path" 15526 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 15527 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 15528 fi 15529 15530 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15531 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15532 15533 else 15534 # We're on a unix platform. Hooray! :) 15535 path="$TOPDIR" 15536 has_space=`$ECHO "$path" | $GREP " "` 15537 if test "x$has_space" != x; then 15538 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 15539 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 15540 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15541 fi 15542 15543 # Use eval to expand a potential ~ 15544 eval path="$path" 15545 if test ! -f "$path" && test ! -d "$path"; then 15546 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 15547 fi 15548 15549 if test -d "$path"; then 15550 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 15551 else 15552 dir="`$DIRNAME "$path"`" 15553 base="`$BASENAME "$path"`" 15554 TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 15555 fi 15556 fi 15557 fi 15558 15559 # SRC_ROOT is a traditional alias for TOPDIR. 15560 SRC_ROOT=$TOPDIR 15561 15562 # Calculate a canonical version of TOPDIR for string comparisons 15563 CANONICAL_TOPDIR=$TOPDIR 15564 15565 if test "x$OPENJDK_BUILD_OS" != xwindows; then 15566 # Follow a chain of symbolic links. Use readlink 15567 # where it exists, else fall back to horribly 15568 # complicated shell code. 15569 if test "x$READLINK_TESTED" != yes; then 15570 # On MacOSX there is a readlink tool with a different 15571 # purpose than the GNU readlink tool. Check the found readlink. 15572 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 15573 if test "x$ISGNU" = x; then 15574 # A readlink that we do not know how to use. 15575 # Are there other non-GNU readlinks out there? 15576 READLINK_TESTED=yes 15577 READLINK= 15578 fi 15579 fi 15580 15581 if test "x$READLINK" != x; then 15582 CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR` 15583 else 15584 # Save the current directory for restoring afterwards 15585 STARTDIR=$PWD 15586 COUNTER=0 15587 sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR` 15588 sym_link_file=`$BASENAME $CANONICAL_TOPDIR` 15589 cd $sym_link_dir 15590 # Use -P flag to resolve symlinks in directories. 15591 cd `$THEPWDCMD -P` 15592 sym_link_dir=`$THEPWDCMD -P` 15593 # Resolve file symlinks 15594 while test $COUNTER -lt 20; do 15595 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 15596 if test "x$ISLINK" == x; then 15597 # This is not a symbolic link! We are done! 15598 break 15599 fi 15600 # Again resolve directory symlinks since the target of the just found 15601 # link could be in a different directory 15602 cd `$DIRNAME $ISLINK` 15603 sym_link_dir=`$THEPWDCMD -P` 15604 sym_link_file=`$BASENAME $ISLINK` 15605 let COUNTER=COUNTER+1 15606 done 15607 cd $STARTDIR 15608 CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file 15609 fi 15610 fi 15611 15612 15613 15614 # Locate the directory of this script. 15615 AUTOCONF_DIR=$TOPDIR/common/autoconf 15616 15617 15618 # Check if it's a pure open build or if custom sources are to be used. 15619 15620 # Check whether --enable-openjdk-only was given. 15621 if test "${enable_openjdk_only+set}" = set; then : 15622 enableval=$enable_openjdk_only; 15623 else 15624 enable_openjdk_only="no" 15625 fi 15626 15627 15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 15629 $as_echo_n "checking for presence of closed sources... " >&6; } 15630 if test -d "$SRC_ROOT/jdk/src/closed"; then 15631 CLOSED_SOURCE_PRESENT=yes 15632 else 15633 CLOSED_SOURCE_PRESENT=no 15634 fi 15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 15636 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 15637 15638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 15639 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 15640 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 15642 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 15643 15644 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 15645 OPENJDK=true 15646 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 15647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 15648 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 15649 fi 15650 else 15651 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 15652 OPENJDK=true 15653 else 15654 OPENJDK=false 15655 fi 15656 fi 15657 15658 if test "x$OPENJDK" = "xtrue"; then 15659 SET_OPENJDK="OPENJDK=true" 15660 fi 15661 15662 15663 15664 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 15665 # the IncludeCustomExtension macro. 15666 15667 15668 # Check whether --with-custom-make-dir was given. 15669 if test "${with_custom_make_dir+set}" = set; then : 15670 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 15671 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 15672 fi 15673 15674 15675 15676 15677 # These are needed to be able to create a configuration name (and thus the output directory) 15678 15679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 15680 $as_echo_n "checking which variant of the JDK to build... " >&6; } 15681 15682 # Check whether --with-jdk-variant was given. 15683 if test "${with_jdk_variant+set}" = set; then : 15684 withval=$with_jdk_variant; 15685 fi 15686 15687 15688 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 15689 JDK_VARIANT="normal" 15690 else 15691 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 15692 fi 15693 15694 15695 15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 15697 $as_echo "$JDK_VARIANT" >&6; } 15698 15699 15700 15701 # Check whether --with-jvm-interpreter was given. 15702 if test "${with_jvm_interpreter+set}" = set; then : 15703 withval=$with_jvm_interpreter; 15704 fi 15705 15706 15707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5 15708 $as_echo_n "checking which interpreter of the JVM to build... " >&6; } 15709 if test "x$with_jvm_interpreter" = x; then 15710 JVM_INTERPRETER="template" 15711 else 15712 JVM_INTERPRETER="$with_jvm_interpreter" 15713 fi 15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_INTERPRETER" >&5 15715 $as_echo "$JVM_INTERPRETER" >&6; } 15716 15717 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then 15718 as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5 15719 fi 15720 15721 15722 15723 15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 15725 $as_echo_n "checking which variants of the JVM to build... " >&6; } 15726 15727 # Check whether --with-jvm-variants was given. 15728 if test "${with_jvm_variants+set}" = set; then : 15729 withval=$with_jvm_variants; 15730 fi 15731 15732 15733 if test "x$with_jvm_variants" = x; then 15734 with_jvm_variants="server" 15735 fi 15736 15737 JVM_VARIANTS=",$with_jvm_variants," 15738 TEST_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,//' -e 's/client,//' -e 's/minimal1,//' -e 's/zero,//' -e 's/zeroshark,//' -e 's/core,//'` 15739 15740 if test "x$TEST_VARIANTS" != "x,"; then 15741 as_fn_error $? "The available JVM variants are: server, client, minimal1, zero, zeroshark, core" "$LINENO" 5 15742 fi 15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 15744 $as_echo "$with_jvm_variants" >&6; } 15745 15746 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 15747 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 15748 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 15749 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 15750 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 15751 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 15752 15753 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 15754 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 15755 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 15756 fi 15757 fi 15758 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 15759 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 15760 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 15761 fi 15762 fi 15763 15764 # Replace the commas with AND for use in the build directory name. 15765 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'` 15766 COUNT_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,/1/' -e 's/client,/1/' -e 's/minimal1,/1/' -e 's/zero,/1/' -e 's/zeroshark,/1/' -e 's/core,/1/'` 15767 if test "x$COUNT_VARIANTS" != "x,1"; then 15768 BUILDING_MULTIPLE_JVM_VARIANTS=yes 15769 else 15770 BUILDING_MULTIPLE_JVM_VARIANTS=no 15771 fi 15772 15773 if test "x$JVM_VARIANT_ZERO" = xtrue && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xyes; then 15774 as_fn_error $? "You cannot build multiple variants with zero." "$LINENO" 5 15775 fi 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 INCLUDE_SA=true 15786 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 15787 INCLUDE_SA=false 15788 fi 15789 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 15790 INCLUDE_SA=false 15791 fi 15792 if test "x$OPENJDK_TARGET_OS" = xaix ; then 15793 INCLUDE_SA=false 15794 fi 15795 if test "x$OPENJDK_TARGET_CPU" = xaarch64; then 15796 INCLUDE_SA=false 15797 fi 15798 15799 15800 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 15801 MACOSX_UNIVERSAL="true" 15802 fi 15803 15804 15805 15806 15807 DEBUG_LEVEL="release" 15808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 15809 $as_echo_n "checking which debug level to use... " >&6; } 15810 # Check whether --enable-debug was given. 15811 if test "${enable_debug+set}" = set; then : 15812 enableval=$enable_debug; 15813 ENABLE_DEBUG="${enableval}" 15814 DEBUG_LEVEL="fastdebug" 15815 15816 else 15817 ENABLE_DEBUG="no" 15818 fi 15819 15820 15821 15822 # Check whether --with-debug-level was given. 15823 if test "${with_debug_level+set}" = set; then : 15824 withval=$with_debug_level; 15825 DEBUG_LEVEL="${withval}" 15826 if test "x$ENABLE_DEBUG" = xyes; then 15827 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 15828 fi 15829 15830 fi 15831 15832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 15833 $as_echo "$DEBUG_LEVEL" >&6; } 15834 15835 if test "x$DEBUG_LEVEL" != xrelease && \ 15836 test "x$DEBUG_LEVEL" != xoptimized && \ 15837 test "x$DEBUG_LEVEL" != xfastdebug && \ 15838 test "x$DEBUG_LEVEL" != xslowdebug; then 15839 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 15840 fi 15841 15842 15843 case $DEBUG_LEVEL in 15844 release ) 15845 VARIANT="OPT" 15846 FASTDEBUG="false" 15847 DEBUG_CLASSFILES="false" 15848 BUILD_VARIANT_RELEASE="" 15849 HOTSPOT_DEBUG_LEVEL="product" 15850 HOTSPOT_EXPORT="product" 15851 ;; 15852 fastdebug ) 15853 VARIANT="DBG" 15854 FASTDEBUG="true" 15855 DEBUG_CLASSFILES="true" 15856 BUILD_VARIANT_RELEASE="-fastdebug" 15857 HOTSPOT_DEBUG_LEVEL="fastdebug" 15858 HOTSPOT_EXPORT="fastdebug" 15859 ;; 15860 slowdebug ) 15861 VARIANT="DBG" 15862 FASTDEBUG="false" 15863 DEBUG_CLASSFILES="true" 15864 BUILD_VARIANT_RELEASE="-debug" 15865 HOTSPOT_DEBUG_LEVEL="debug" 15866 HOTSPOT_EXPORT="debug" 15867 ;; 15868 optimized ) 15869 VARIANT="OPT" 15870 FASTDEBUG="false" 15871 DEBUG_CLASSFILES="false" 15872 BUILD_VARIANT_RELEASE="-optimized" 15873 HOTSPOT_DEBUG_LEVEL="optimized" 15874 HOTSPOT_EXPORT="optimized" 15875 ;; 15876 esac 15877 15878 # The debug level 'optimized' is a little special because it is currently only 15879 # applicable to the HotSpot build where it means to build a completely 15880 # optimized version of the VM without any debugging code (like for the 15881 # 'release' debug level which is called 'product' in the HotSpot build) but 15882 # with the exception that it can contain additional code which is otherwise 15883 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 15884 # test new and/or experimental features which are not intended for customer 15885 # shipment. Because these new features need to be tested and benchmarked in 15886 # real world scenarios, we want to build the containing JDK at the 'release' 15887 # debug level. 15888 if test "x$DEBUG_LEVEL" = xoptimized; then 15889 DEBUG_LEVEL="release" 15890 fi 15891 15892 ##### 15893 # Generate the legacy makefile targets for hotspot. 15894 # The hotspot api for selecting the build artifacts, really, needs to be improved. 15895 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 15896 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 15897 # But until then ... 15898 HOTSPOT_TARGET="" 15899 15900 if test "x$JVM_VARIANT_SERVER" = xtrue; then 15901 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 15902 fi 15903 15904 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 15905 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 15906 fi 15907 15908 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 15909 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 15910 fi 15911 15912 if test "x$JVM_VARIANT_ZERO" = xtrue; then 15913 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 15914 fi 15915 15916 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 15917 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 15918 fi 15919 15920 if test "x$JVM_VARIANT_CORE" = xtrue; then 15921 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 15922 fi 15923 15924 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 15925 15926 # On Macosx universal binaries are produced, but they only contain 15927 # 64 bit intel. This invalidates control of which jvms are built 15928 # from configure, but only server is valid anyway. Fix this 15929 # when hotspot makefiles are rewritten. 15930 if test "x$MACOSX_UNIVERSAL" = xtrue; then 15931 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 15932 fi 15933 15934 ##### 15935 15936 15937 15938 15939 15940 15941 15942 15943 # With basic setup done, call the custom early hook. 15944 15945 15946 # Check if we have devkits, extra paths or sysroot set. 15947 15948 15949 # Check whether --with-devkit was given. 15950 if test "${with_devkit+set}" = set; then : 15951 withval=$with_devkit; 15952 15953 # Only process if variable expands to non-empty 15954 15955 if test "x$with_devkit" != x; then 15956 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15957 15958 # Input might be given as Windows format, start by converting to 15959 # unix format. 15960 path="$with_devkit" 15961 new_path=`$CYGPATH -u "$path"` 15962 15963 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15964 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15965 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15966 # "foo.exe" is OK but "foo" is an error. 15967 # 15968 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15969 # It is also a way to make sure we got the proper file name for the real test later on. 15970 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15971 if test "x$test_shortpath" = x; then 15972 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 15973 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 15974 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 15975 fi 15976 15977 # Call helper function which possibly converts this using DOS-style short mode. 15978 # If so, the updated path is stored in $new_path. 15979 15980 input_path="$new_path" 15981 # Check if we need to convert this using DOS-style short mode. If the path 15982 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15983 # take no chances and rewrite it. 15984 # Note: m4 eats our [], so we need to use [ and ] instead. 15985 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15986 if test "x$has_forbidden_chars" != x; then 15987 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15988 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15989 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15990 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15991 # Going to short mode and back again did indeed matter. Since short mode is 15992 # case insensitive, let's make it lowercase to improve readability. 15993 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15994 # Now convert it back to Unix-style (cygpath) 15995 input_path=`$CYGPATH -u "$shortmode_path"` 15996 new_path="$input_path" 15997 fi 15998 fi 15999 16000 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16001 if test "x$test_cygdrive_prefix" = x; then 16002 # As a simple fix, exclude /usr/bin since it's not a real path. 16003 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16004 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16005 # a path prefixed by /cygdrive for fixpath to work. 16006 new_path="$CYGWIN_ROOT_PATH$input_path" 16007 fi 16008 fi 16009 16010 16011 if test "x$path" != "x$new_path"; then 16012 with_devkit="$new_path" 16013 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 16014 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 16015 fi 16016 16017 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16018 16019 path="$with_devkit" 16020 has_colon=`$ECHO $path | $GREP ^.:` 16021 new_path="$path" 16022 if test "x$has_colon" = x; then 16023 # Not in mixed or Windows style, start by that. 16024 new_path=`cmd //c echo $path` 16025 fi 16026 16027 16028 input_path="$new_path" 16029 # Check if we need to convert this using DOS-style short mode. If the path 16030 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16031 # take no chances and rewrite it. 16032 # Note: m4 eats our [], so we need to use [ and ] instead. 16033 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16034 if test "x$has_forbidden_chars" != x; then 16035 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16036 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16037 fi 16038 16039 16040 windows_path="$new_path" 16041 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16042 unix_path=`$CYGPATH -u "$windows_path"` 16043 new_path="$unix_path" 16044 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16045 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16046 new_path="$unix_path" 16047 fi 16048 16049 if test "x$path" != "x$new_path"; then 16050 with_devkit="$new_path" 16051 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 16052 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 16053 fi 16054 16055 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16056 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16057 16058 else 16059 # We're on a unix platform. Hooray! :) 16060 path="$with_devkit" 16061 has_space=`$ECHO "$path" | $GREP " "` 16062 if test "x$has_space" != x; then 16063 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 16064 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 16065 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16066 fi 16067 16068 # Use eval to expand a potential ~ 16069 eval path="$path" 16070 if test ! -f "$path" && test ! -d "$path"; then 16071 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 16072 fi 16073 16074 if test -d "$path"; then 16075 with_devkit="`cd "$path"; $THEPWDCMD -L`" 16076 else 16077 dir="`$DIRNAME "$path"`" 16078 base="`$BASENAME "$path"`" 16079 with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 16080 fi 16081 fi 16082 fi 16083 16084 DEVKIT_ROOT="$with_devkit" 16085 # Check for a meta data info file in the root of the devkit 16086 if test -f "$DEVKIT_ROOT/devkit.info"; then 16087 . $DEVKIT_ROOT/devkit.info 16088 # This potentially sets the following: 16089 # A descriptive name of the devkit 16090 16091 if test "x$DEVKIT_NAME" = x; then 16092 eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 16093 fi 16094 16095 # Corresponds to --with-extra-path 16096 16097 if test "x$DEVKIT_EXTRA_PATH" = x; then 16098 eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 16099 fi 16100 16101 # Corresponds to --with-toolchain-path 16102 16103 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 16104 eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 16105 fi 16106 16107 # Corresponds to --with-sysroot 16108 16109 if test "x$DEVKIT_SYSROOT" = x; then 16110 eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 16111 fi 16112 16113 16114 # Identifies the Visual Studio version in the devkit 16115 16116 if test "x$DEVKIT_VS_VERSION" = x; then 16117 eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}" 16118 fi 16119 16120 # The Visual Studio include environment variable 16121 16122 if test "x$DEVKIT_VS_INCLUDE" = x; then 16123 eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}" 16124 fi 16125 16126 # The Visual Studio lib environment variable 16127 16128 if test "x$DEVKIT_VS_LIB" = x; then 16129 eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}" 16130 fi 16131 16132 # Corresponds to --with-msvcr-dll 16133 16134 if test "x$DEVKIT_MSVCR_DLL" = x; then 16135 eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}" 16136 fi 16137 16138 # Corresponds to --with-msvcp-dll 16139 16140 if test "x$DEVKIT_MSVCP_DLL" = x; then 16141 eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}" 16142 fi 16143 16144 fi 16145 16146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 16147 $as_echo_n "checking for devkit... " >&6; } 16148 if test "x$DEVKIT_NAME" != x; then 16149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 16150 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 16151 else 16152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 16153 $as_echo "$DEVKIT_ROOT" >&6; } 16154 fi 16155 16156 16157 if test "x$DEVKIT_EXTRA_PATH" != x; then 16158 if test "x$EXTRA_PATH" = x; then 16159 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 16160 else 16161 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 16162 fi 16163 fi 16164 16165 16166 # Fallback default of just /bin if DEVKIT_PATH is not defined 16167 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 16168 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 16169 fi 16170 16171 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 16172 if test "x$TOOLCHAIN_PATH" = x; then 16173 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 16174 else 16175 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 16176 fi 16177 fi 16178 16179 16180 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 16181 # places for backwards compatiblity. 16182 if test "x$DEVKIT_SYSROOT" != x; then 16183 SYSROOT="$DEVKIT_SYSROOT" 16184 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 16185 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 16186 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 16187 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 16188 fi 16189 16190 16191 fi 16192 16193 16194 # You can force the sysroot if the sysroot encoded into the compiler tools 16195 # is not correct. 16196 16197 # Check whether --with-sys-root was given. 16198 if test "${with_sys_root+set}" = set; then : 16199 withval=$with_sys_root; SYSROOT=$with_sys_root 16200 16201 fi 16202 16203 16204 16205 # Check whether --with-sysroot was given. 16206 if test "${with_sysroot+set}" = set; then : 16207 withval=$with_sysroot; SYSROOT=$with_sysroot 16208 16209 fi 16210 16211 16212 16213 # Check whether --with-tools-dir was given. 16214 if test "${with_tools_dir+set}" = set; then : 16215 withval=$with_tools_dir; 16216 if test "x$with_tools_dir" != x; then 16217 if test "x$TOOLCHAIN_PATH" = x; then 16218 TOOLCHAIN_PATH="$with_tools_dir" 16219 else 16220 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 16221 fi 16222 fi 16223 16224 16225 fi 16226 16227 16228 16229 # Check whether --with-toolchain-path was given. 16230 if test "${with_toolchain_path+set}" = set; then : 16231 withval=$with_toolchain_path; 16232 if test "x$with_toolchain_path" != x; then 16233 if test "x$TOOLCHAIN_PATH" = x; then 16234 TOOLCHAIN_PATH="$with_toolchain_path" 16235 else 16236 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 16237 fi 16238 fi 16239 16240 16241 fi 16242 16243 16244 16245 # Check whether --with-extra-path was given. 16246 if test "${with_extra_path+set}" = set; then : 16247 withval=$with_extra_path; 16248 if test "x$with_extra_path" != x; then 16249 if test "x$EXTRA_PATH" = x; then 16250 EXTRA_PATH="$with_extra_path" 16251 else 16252 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 16253 fi 16254 fi 16255 16256 16257 fi 16258 16259 16260 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 16261 # If a devkit has been supplied, find xcodebuild in the toolchain_path. 16262 # If not, detect if Xcode is installed by running xcodebuild -version 16263 # if no Xcode installed, xcodebuild exits with 1 16264 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 16265 if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then 16266 # We need to use xcodebuild in the toolchain dir provided by the user, this will 16267 # fall back on the stub binary in /usr/bin/xcodebuild 16268 # Extract the first word of "xcodebuild", so it can be a program name with args. 16269 set dummy xcodebuild; ac_word=$2 16270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16271 $as_echo_n "checking for $ac_word... " >&6; } 16272 if ${ac_cv_path_XCODEBUILD+:} false; then : 16273 $as_echo_n "(cached) " >&6 16274 else 16275 case $XCODEBUILD in 16276 [\\/]* | ?:[\\/]*) 16277 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 16278 ;; 16279 *) 16280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16281 for as_dir in $TOOLCHAIN_PATH 16282 do 16283 IFS=$as_save_IFS 16284 test -z "$as_dir" && as_dir=. 16285 for ac_exec_ext in '' $ac_executable_extensions; do 16286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16287 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 16288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16289 break 2 16290 fi 16291 done 16292 done 16293 IFS=$as_save_IFS 16294 16295 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 16296 ;; 16297 esac 16298 fi 16299 XCODEBUILD=$ac_cv_path_XCODEBUILD 16300 if test -n "$XCODEBUILD"; then 16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 16302 $as_echo "$XCODEBUILD" >&6; } 16303 else 16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16305 $as_echo "no" >&6; } 16306 fi 16307 16308 16309 else 16310 # this should result in SYSROOT being empty, unless --with-sysroot is provided 16311 # when only the command line tools are installed there are no SDKs, so headers 16312 # are copied into the system frameworks 16313 XCODEBUILD= 16314 16315 fi 16316 16317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 16318 $as_echo_n "checking for sdk name... " >&6; } 16319 16320 # Check whether --with-sdk-name was given. 16321 if test "${with_sdk_name+set}" = set; then : 16322 withval=$with_sdk_name; SDKNAME=$with_sdk_name 16323 16324 fi 16325 16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 16327 $as_echo "$SDKNAME" >&6; } 16328 16329 # if toolchain path is specified then don't rely on system headers, they may not compile 16330 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 16331 test -z "$TOOLCHAIN_PATH" && \ 16332 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 16333 16334 if test -z "$SYSROOT"; then 16335 if test -n "$XCODEBUILD"; then 16336 # if we don't have system headers, use default SDK name (last resort) 16337 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 16338 SDKNAME=${SDKNAME:-macosx} 16339 fi 16340 16341 if test -n "$SDKNAME"; then 16342 # Call xcodebuild to determine SYSROOT 16343 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'` 16344 fi 16345 else 16346 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 16347 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 16348 fi 16349 fi 16350 else 16351 # warn user if --with-sdk-name was also set 16352 if test -n "$with_sdk_name"; then 16353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 16354 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 16355 fi 16356 fi 16357 16358 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 16359 # If no system framework headers, then SYSROOT must be set, or we won't build 16360 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 16361 fi 16362 16363 # Perform a basic sanity test 16364 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 16365 if test -z "$SYSROOT"; then 16366 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 16367 else 16368 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 16369 fi 16370 fi 16371 16372 # set SDKROOT too, Xcode tools will pick it up 16373 SDKROOT=$SYSROOT 16374 16375 fi 16376 16377 # Prepend the extra path to the global path 16378 16379 if test "x$EXTRA_PATH" != x; then 16380 if test "x$PATH" = x; then 16381 PATH="$EXTRA_PATH" 16382 else 16383 PATH="$EXTRA_PATH:$PATH" 16384 fi 16385 fi 16386 16387 16388 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 16389 # Add extra search paths on solaris for utilities like ar and as etc... 16390 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 16391 fi 16392 16393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 16394 $as_echo_n "checking for sysroot... " >&6; } 16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 16396 $as_echo "$SYSROOT" >&6; } 16397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 16398 $as_echo_n "checking for toolchain path... " >&6; } 16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 16400 $as_echo "$TOOLCHAIN_PATH" >&6; } 16401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 16402 $as_echo_n "checking for extra path... " >&6; } 16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 16404 $as_echo "$EXTRA_PATH" >&6; } 16405 16406 16407 # To properly create a configuration name, we need to have the OpenJDK target 16408 # and options (variants and debug level) parsed. 16409 16410 16411 16412 # Check whether --with-conf-name was given. 16413 if test "${with_conf_name+set}" = set; then : 16414 withval=$with_conf_name; CONF_NAME=${with_conf_name} 16415 fi 16416 16417 16418 # Test from where we are running configure, in or outside of src root. 16419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 16420 $as_echo_n "checking where to store configuration... " >&6; } 16421 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 16422 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 16423 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 16424 # We are running configure from the src root. 16425 # Create a default ./build/target-variant-debuglevel output root. 16426 if test "x${CONF_NAME}" = x; then 16427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 16428 $as_echo "in default location" >&6; } 16429 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 16430 else 16431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 16432 $as_echo "in build directory with custom name" >&6; } 16433 fi 16434 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 16435 $MKDIR -p "$OUTPUT_ROOT" 16436 if test ! -d "$OUTPUT_ROOT"; then 16437 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 16438 fi 16439 else 16440 # We are running configure from outside of the src dir. 16441 # Then use the current directory as output dir! 16442 # If configuration is situated in normal build directory, just use the build 16443 # directory name as configuration name, otherwise use the complete path. 16444 if test "x${CONF_NAME}" = x; then 16445 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 16446 fi 16447 OUTPUT_ROOT="$CURDIR" 16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 16449 $as_echo "in current directory" >&6; } 16450 16451 # WARNING: This might be a bad thing to do. You need to be sure you want to 16452 # have a configuration in this directory. Do some sanity checks! 16453 16454 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 16455 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 16456 # other files 16457 files_present=`$LS $OUTPUT_ROOT` 16458 # Configure has already touched config.log and confdefs.h in the current dir when this check 16459 # is performed. 16460 filtered_files=`$ECHO "$files_present" \ 16461 | $SED -e 's/config.log//g' \ 16462 -e 's/configure.log//g' \ 16463 -e 's/confdefs.h//g' \ 16464 -e 's/ //g' \ 16465 | $TR -d '\n'` 16466 if test "x$filtered_files" != x; then 16467 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 16468 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 16469 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 16470 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 16471 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 16472 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 16473 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 16474 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 16475 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 16476 $as_echo "$as_me: seriously mess up just about everything." >&6;} 16477 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 16478 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 16479 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 16480 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 16481 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 16482 fi 16483 fi 16484 fi 16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 16486 $as_echo_n "checking what configuration name to use... " >&6; } 16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 16488 $as_echo "$CONF_NAME" >&6; } 16489 16490 16491 # Only process if variable expands to non-empty 16492 16493 if test "x$OUTPUT_ROOT" != x; then 16494 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16495 16496 # Input might be given as Windows format, start by converting to 16497 # unix format. 16498 path="$OUTPUT_ROOT" 16499 new_path=`$CYGPATH -u "$path"` 16500 16501 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16502 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16503 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16504 # "foo.exe" is OK but "foo" is an error. 16505 # 16506 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16507 # It is also a way to make sure we got the proper file name for the real test later on. 16508 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16509 if test "x$test_shortpath" = x; then 16510 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 16511 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 16512 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 16513 fi 16514 16515 # Call helper function which possibly converts this using DOS-style short mode. 16516 # If so, the updated path is stored in $new_path. 16517 16518 input_path="$new_path" 16519 # Check if we need to convert this using DOS-style short mode. If the path 16520 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16521 # take no chances and rewrite it. 16522 # Note: m4 eats our [], so we need to use [ and ] instead. 16523 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16524 if test "x$has_forbidden_chars" != x; then 16525 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16526 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16527 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16528 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16529 # Going to short mode and back again did indeed matter. Since short mode is 16530 # case insensitive, let's make it lowercase to improve readability. 16531 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16532 # Now convert it back to Unix-style (cygpath) 16533 input_path=`$CYGPATH -u "$shortmode_path"` 16534 new_path="$input_path" 16535 fi 16536 fi 16537 16538 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16539 if test "x$test_cygdrive_prefix" = x; then 16540 # As a simple fix, exclude /usr/bin since it's not a real path. 16541 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16542 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16543 # a path prefixed by /cygdrive for fixpath to work. 16544 new_path="$CYGWIN_ROOT_PATH$input_path" 16545 fi 16546 fi 16547 16548 16549 if test "x$path" != "x$new_path"; then 16550 OUTPUT_ROOT="$new_path" 16551 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 16552 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 16553 fi 16554 16555 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16556 16557 path="$OUTPUT_ROOT" 16558 has_colon=`$ECHO $path | $GREP ^.:` 16559 new_path="$path" 16560 if test "x$has_colon" = x; then 16561 # Not in mixed or Windows style, start by that. 16562 new_path=`cmd //c echo $path` 16563 fi 16564 16565 16566 input_path="$new_path" 16567 # Check if we need to convert this using DOS-style short mode. If the path 16568 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16569 # take no chances and rewrite it. 16570 # Note: m4 eats our [], so we need to use [ and ] instead. 16571 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16572 if test "x$has_forbidden_chars" != x; then 16573 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16574 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16575 fi 16576 16577 16578 windows_path="$new_path" 16579 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16580 unix_path=`$CYGPATH -u "$windows_path"` 16581 new_path="$unix_path" 16582 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16583 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16584 new_path="$unix_path" 16585 fi 16586 16587 if test "x$path" != "x$new_path"; then 16588 OUTPUT_ROOT="$new_path" 16589 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 16590 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 16591 fi 16592 16593 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16594 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16595 16596 else 16597 # We're on a unix platform. Hooray! :) 16598 path="$OUTPUT_ROOT" 16599 has_space=`$ECHO "$path" | $GREP " "` 16600 if test "x$has_space" != x; then 16601 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 16602 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 16603 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16604 fi 16605 16606 # Use eval to expand a potential ~ 16607 eval path="$path" 16608 if test ! -f "$path" && test ! -d "$path"; then 16609 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 16610 fi 16611 16612 if test -d "$path"; then 16613 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 16614 else 16615 dir="`$DIRNAME "$path"`" 16616 base="`$BASENAME "$path"`" 16617 OUTPUT_ROOT="`cd "$dir"; $THEPWDCMD -L`/$base" 16618 fi 16619 fi 16620 fi 16621 16622 16623 CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support" 16624 $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR" 16625 16626 SPEC=$OUTPUT_ROOT/spec.gmk 16627 16628 CONF_NAME=$CONF_NAME 16629 16630 OUTPUT_ROOT=$OUTPUT_ROOT 16631 16632 16633 16634 # The spec.gmk file contains all variables for the make system. 16635 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 16636 16637 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 16638 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 16639 16640 # The bootcycle-spec.gmk file contains support for boot cycle builds. 16641 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 16642 16643 # The compare.sh is used to compare the build output to other builds. 16644 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 16645 16646 # The generated Makefile knows where the spec.gmk is and where the source is. 16647 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 16648 # which will look for generated configurations 16649 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 16650 16651 16652 16653 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 16654 16655 for ac_prog in apt-get yum port pkgutil pkgadd 16656 do 16657 # Extract the first word of "$ac_prog", so it can be a program name with args. 16658 set dummy $ac_prog; ac_word=$2 16659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16660 $as_echo_n "checking for $ac_word... " >&6; } 16661 if ${ac_cv_prog_PKGHANDLER+:} false; then : 16662 $as_echo_n "(cached) " >&6 16663 else 16664 if test -n "$PKGHANDLER"; then 16665 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 16666 else 16667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16668 for as_dir in $PATH 16669 do 16670 IFS=$as_save_IFS 16671 test -z "$as_dir" && as_dir=. 16672 for ac_exec_ext in '' $ac_executable_extensions; do 16673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16674 ac_cv_prog_PKGHANDLER="$ac_prog" 16675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16676 break 2 16677 fi 16678 done 16679 done 16680 IFS=$as_save_IFS 16681 16682 fi 16683 fi 16684 PKGHANDLER=$ac_cv_prog_PKGHANDLER 16685 if test -n "$PKGHANDLER"; then 16686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 16687 $as_echo "$PKGHANDLER" >&6; } 16688 else 16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16690 $as_echo "no" >&6; } 16691 fi 16692 16693 16694 test -n "$PKGHANDLER" && break 16695 done 16696 16697 16698 16699 # Setup tools that requires more complex handling, or that is not needed by the configure script. 16700 16701 16702 16703 # Publish this variable in the help. 16704 16705 16706 if [ -z "${MAKE+x}" ]; then 16707 # The variable is not set by user, try to locate tool using the code snippet 16708 16709 # Try our hardest to locate a correct version of GNU make 16710 for ac_prog in gmake 16711 do 16712 # Extract the first word of "$ac_prog", so it can be a program name with args. 16713 set dummy $ac_prog; ac_word=$2 16714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16715 $as_echo_n "checking for $ac_word... " >&6; } 16716 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 16717 $as_echo_n "(cached) " >&6 16718 else 16719 case $CHECK_GMAKE in 16720 [\\/]* | ?:[\\/]*) 16721 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 16722 ;; 16723 *) 16724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16725 for as_dir in $PATH 16726 do 16727 IFS=$as_save_IFS 16728 test -z "$as_dir" && as_dir=. 16729 for ac_exec_ext in '' $ac_executable_extensions; do 16730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16731 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 16732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16733 break 2 16734 fi 16735 done 16736 done 16737 IFS=$as_save_IFS 16738 16739 ;; 16740 esac 16741 fi 16742 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 16743 if test -n "$CHECK_GMAKE"; then 16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 16745 $as_echo "$CHECK_GMAKE" >&6; } 16746 else 16747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16748 $as_echo "no" >&6; } 16749 fi 16750 16751 16752 test -n "$CHECK_GMAKE" && break 16753 done 16754 16755 16756 MAKE_CANDIDATE=""$CHECK_GMAKE"" 16757 DESCRIPTION="gmake in PATH" 16758 16759 # On Cygwin, we require a newer version of make than on other platforms 16760 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16761 MAKE_VERSION_EXPR="-e 4\." 16762 MAKE_REQUIRED_VERSION="4.0" 16763 else 16764 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 16765 MAKE_REQUIRED_VERSION="3.81" 16766 fi 16767 16768 if test "x$MAKE_CANDIDATE" != x; then 16769 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16770 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16771 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16772 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16773 if test "x$IS_GNU_MAKE" = x; then 16774 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16775 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16776 else 16777 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 16778 if test "x$IS_MODERN_MAKE" = x; then 16779 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 16780 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 16781 else 16782 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16783 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16784 MAKE_EXPECTED_ENV='cygwin' 16785 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16786 MAKE_EXPECTED_ENV='msys' 16787 else 16788 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16789 fi 16790 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16791 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16792 else 16793 # Not relevant for non-Windows 16794 IS_MAKE_CORRECT_ENV=true 16795 fi 16796 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16797 { $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 16798 $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;} 16799 else 16800 FOUND_MAKE=$MAKE_CANDIDATE 16801 16802 # Only process if variable expands to non-empty 16803 16804 if test "x$FOUND_MAKE" != x; then 16805 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16806 16807 # First separate the path from the arguments. This will split at the first 16808 # space. 16809 complete="$FOUND_MAKE" 16810 path="${complete%% *}" 16811 tmp="$complete EOL" 16812 arguments="${tmp#* }" 16813 16814 # Input might be given as Windows format, start by converting to 16815 # unix format. 16816 new_path=`$CYGPATH -u "$path"` 16817 16818 # Now try to locate executable using which 16819 new_path=`$WHICH "$new_path" 2> /dev/null` 16820 # bat and cmd files are not always considered executable in cygwin causing which 16821 # to not find them 16822 if test "x$new_path" = x \ 16823 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16824 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16825 new_path=`$CYGPATH -u "$path"` 16826 fi 16827 if test "x$new_path" = x; then 16828 # Oops. Which didn't find the executable. 16829 # The splitting of arguments from the executable at a space might have been incorrect, 16830 # since paths with space are more likely in Windows. Give it another try with the whole 16831 # argument. 16832 path="$complete" 16833 arguments="EOL" 16834 new_path=`$CYGPATH -u "$path"` 16835 new_path=`$WHICH "$new_path" 2> /dev/null` 16836 # bat and cmd files are not always considered executable in cygwin causing which 16837 # to not find them 16838 if test "x$new_path" = x \ 16839 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16840 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16841 new_path=`$CYGPATH -u "$path"` 16842 fi 16843 if test "x$new_path" = x; then 16844 # It's still not found. Now this is an unrecoverable error. 16845 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16846 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16847 has_space=`$ECHO "$complete" | $GREP " "` 16848 if test "x$has_space" != x; then 16849 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16850 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16851 fi 16852 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16853 fi 16854 fi 16855 16856 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16857 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16858 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16859 # "foo.exe" is OK but "foo" is an error. 16860 # 16861 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16862 # It is also a way to make sure we got the proper file name for the real test later on. 16863 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16864 if test "x$test_shortpath" = x; then 16865 # Short path failed, file does not exist as specified. 16866 # Try adding .exe or .cmd 16867 if test -f "${new_path}.exe"; then 16868 input_to_shortpath="${new_path}.exe" 16869 elif test -f "${new_path}.cmd"; then 16870 input_to_shortpath="${new_path}.cmd" 16871 else 16872 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16873 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16874 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16875 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16876 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16877 fi 16878 else 16879 input_to_shortpath="$new_path" 16880 fi 16881 16882 # Call helper function which possibly converts this using DOS-style short mode. 16883 # If so, the updated path is stored in $new_path. 16884 new_path="$input_to_shortpath" 16885 16886 input_path="$input_to_shortpath" 16887 # Check if we need to convert this using DOS-style short mode. If the path 16888 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16889 # take no chances and rewrite it. 16890 # Note: m4 eats our [], so we need to use [ and ] instead. 16891 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16892 if test "x$has_forbidden_chars" != x; then 16893 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16894 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16895 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16896 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16897 # Going to short mode and back again did indeed matter. Since short mode is 16898 # case insensitive, let's make it lowercase to improve readability. 16899 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16900 # Now convert it back to Unix-style (cygpath) 16901 input_path=`$CYGPATH -u "$shortmode_path"` 16902 new_path="$input_path" 16903 fi 16904 fi 16905 16906 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16907 if test "x$test_cygdrive_prefix" = x; then 16908 # As a simple fix, exclude /usr/bin since it's not a real path. 16909 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16910 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16911 # a path prefixed by /cygdrive for fixpath to work. 16912 new_path="$CYGWIN_ROOT_PATH$input_path" 16913 fi 16914 fi 16915 16916 # remove trailing .exe if any 16917 new_path="${new_path/%.exe/}" 16918 16919 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16920 16921 # First separate the path from the arguments. This will split at the first 16922 # space. 16923 complete="$FOUND_MAKE" 16924 path="${complete%% *}" 16925 tmp="$complete EOL" 16926 arguments="${tmp#* }" 16927 16928 # Input might be given as Windows format, start by converting to 16929 # unix format. 16930 new_path="$path" 16931 16932 windows_path="$new_path" 16933 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16934 unix_path=`$CYGPATH -u "$windows_path"` 16935 new_path="$unix_path" 16936 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16937 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16938 new_path="$unix_path" 16939 fi 16940 16941 16942 # Now try to locate executable using which 16943 new_path=`$WHICH "$new_path" 2> /dev/null` 16944 16945 if test "x$new_path" = x; then 16946 # Oops. Which didn't find the executable. 16947 # The splitting of arguments from the executable at a space might have been incorrect, 16948 # since paths with space are more likely in Windows. Give it another try with the whole 16949 # argument. 16950 path="$complete" 16951 arguments="EOL" 16952 new_path="$path" 16953 16954 windows_path="$new_path" 16955 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16956 unix_path=`$CYGPATH -u "$windows_path"` 16957 new_path="$unix_path" 16958 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16959 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16960 new_path="$unix_path" 16961 fi 16962 16963 16964 new_path=`$WHICH "$new_path" 2> /dev/null` 16965 # bat and cmd files are not always considered executable in MSYS causing which 16966 # to not find them 16967 if test "x$new_path" = x \ 16968 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16969 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16970 new_path="$path" 16971 16972 windows_path="$new_path" 16973 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16974 unix_path=`$CYGPATH -u "$windows_path"` 16975 new_path="$unix_path" 16976 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16977 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16978 new_path="$unix_path" 16979 fi 16980 16981 fi 16982 16983 if test "x$new_path" = x; then 16984 # It's still not found. Now this is an unrecoverable error. 16985 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16986 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16987 has_space=`$ECHO "$complete" | $GREP " "` 16988 if test "x$has_space" != x; then 16989 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16990 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16991 fi 16992 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16993 fi 16994 fi 16995 16996 # Now new_path has a complete unix path to the binary 16997 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16998 # Keep paths in /bin as-is, but remove trailing .exe if any 16999 new_path="${new_path/%.exe/}" 17000 # Do not save /bin paths to all_fixpath_prefixes! 17001 else 17002 # Not in mixed or Windows style, start by that. 17003 new_path=`cmd //c echo $new_path` 17004 17005 input_path="$new_path" 17006 # Check if we need to convert this using DOS-style short mode. If the path 17007 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17008 # take no chances and rewrite it. 17009 # Note: m4 eats our [], so we need to use [ and ] instead. 17010 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17011 if test "x$has_forbidden_chars" != x; then 17012 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17013 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17014 fi 17015 17016 # Output is in $new_path 17017 17018 windows_path="$new_path" 17019 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17020 unix_path=`$CYGPATH -u "$windows_path"` 17021 new_path="$unix_path" 17022 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17023 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17024 new_path="$unix_path" 17025 fi 17026 17027 # remove trailing .exe if any 17028 new_path="${new_path/%.exe/}" 17029 17030 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17031 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17032 fi 17033 17034 else 17035 # We're on a unix platform. Hooray! :) 17036 # First separate the path from the arguments. This will split at the first 17037 # space. 17038 complete="$FOUND_MAKE" 17039 path="${complete%% *}" 17040 tmp="$complete EOL" 17041 arguments="${tmp#* }" 17042 17043 # Cannot rely on the command "which" here since it doesn't always work. 17044 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17045 if test -z "$is_absolute_path"; then 17046 # Path to executable is not absolute. Find it. 17047 IFS_save="$IFS" 17048 IFS=: 17049 for p in $PATH; do 17050 if test -f "$p/$path" && test -x "$p/$path"; then 17051 new_path="$p/$path" 17052 break 17053 fi 17054 done 17055 IFS="$IFS_save" 17056 else 17057 # This is an absolute path, we can use it without further modifications. 17058 new_path="$path" 17059 fi 17060 17061 if test "x$new_path" = x; then 17062 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17063 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17064 has_space=`$ECHO "$complete" | $GREP " "` 17065 if test "x$has_space" != x; then 17066 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17067 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17068 fi 17069 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17070 fi 17071 fi 17072 17073 # Now join together the path and the arguments once again 17074 if test "x$arguments" != xEOL; then 17075 new_complete="$new_path ${arguments% *}" 17076 else 17077 new_complete="$new_path" 17078 fi 17079 17080 if test "x$complete" != "x$new_complete"; then 17081 FOUND_MAKE="$new_complete" 17082 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17083 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17084 fi 17085 fi 17086 17087 fi 17088 fi 17089 fi 17090 fi 17091 17092 17093 if test "x$FOUND_MAKE" = x; then 17094 for ac_prog in make 17095 do 17096 # Extract the first word of "$ac_prog", so it can be a program name with args. 17097 set dummy $ac_prog; ac_word=$2 17098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17099 $as_echo_n "checking for $ac_word... " >&6; } 17100 if ${ac_cv_path_CHECK_MAKE+:} false; then : 17101 $as_echo_n "(cached) " >&6 17102 else 17103 case $CHECK_MAKE in 17104 [\\/]* | ?:[\\/]*) 17105 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 17106 ;; 17107 *) 17108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17109 for as_dir in $PATH 17110 do 17111 IFS=$as_save_IFS 17112 test -z "$as_dir" && as_dir=. 17113 for ac_exec_ext in '' $ac_executable_extensions; do 17114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17115 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 17116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17117 break 2 17118 fi 17119 done 17120 done 17121 IFS=$as_save_IFS 17122 17123 ;; 17124 esac 17125 fi 17126 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 17127 if test -n "$CHECK_MAKE"; then 17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 17129 $as_echo "$CHECK_MAKE" >&6; } 17130 else 17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17132 $as_echo "no" >&6; } 17133 fi 17134 17135 17136 test -n "$CHECK_MAKE" && break 17137 done 17138 17139 17140 MAKE_CANDIDATE=""$CHECK_MAKE"" 17141 DESCRIPTION="make in PATH" 17142 17143 # On Cygwin, we require a newer version of make than on other platforms 17144 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17145 MAKE_VERSION_EXPR="-e 4\." 17146 MAKE_REQUIRED_VERSION="4.0" 17147 else 17148 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17149 MAKE_REQUIRED_VERSION="3.81" 17150 fi 17151 17152 if test "x$MAKE_CANDIDATE" != x; then 17153 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17154 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17155 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17156 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17157 if test "x$IS_GNU_MAKE" = x; then 17158 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17159 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17160 else 17161 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17162 if test "x$IS_MODERN_MAKE" = x; then 17163 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 17164 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 17165 else 17166 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17167 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17168 MAKE_EXPECTED_ENV='cygwin' 17169 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17170 MAKE_EXPECTED_ENV='msys' 17171 else 17172 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17173 fi 17174 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17175 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17176 else 17177 # Not relevant for non-Windows 17178 IS_MAKE_CORRECT_ENV=true 17179 fi 17180 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17181 { $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 17182 $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;} 17183 else 17184 FOUND_MAKE=$MAKE_CANDIDATE 17185 17186 # Only process if variable expands to non-empty 17187 17188 if test "x$FOUND_MAKE" != x; then 17189 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17190 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 # Input might be given as Windows format, start by converting to 17199 # unix format. 17200 new_path=`$CYGPATH -u "$path"` 17201 17202 # Now try to locate executable using which 17203 new_path=`$WHICH "$new_path" 2> /dev/null` 17204 # bat and cmd files are not always considered executable in cygwin causing which 17205 # to not find them 17206 if test "x$new_path" = x \ 17207 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17208 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17209 new_path=`$CYGPATH -u "$path"` 17210 fi 17211 if test "x$new_path" = x; then 17212 # Oops. Which didn't find the executable. 17213 # The splitting of arguments from the executable at a space might have been incorrect, 17214 # since paths with space are more likely in Windows. Give it another try with the whole 17215 # argument. 17216 path="$complete" 17217 arguments="EOL" 17218 new_path=`$CYGPATH -u "$path"` 17219 new_path=`$WHICH "$new_path" 2> /dev/null` 17220 # bat and cmd files are not always considered executable in cygwin causing which 17221 # to not find them 17222 if test "x$new_path" = x \ 17223 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17224 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17225 new_path=`$CYGPATH -u "$path"` 17226 fi 17227 if test "x$new_path" = x; then 17228 # It's still not found. Now this is an unrecoverable error. 17229 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17230 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17231 has_space=`$ECHO "$complete" | $GREP " "` 17232 if test "x$has_space" != x; then 17233 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17234 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17235 fi 17236 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17237 fi 17238 fi 17239 17240 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17241 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17242 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17243 # "foo.exe" is OK but "foo" is an error. 17244 # 17245 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17246 # It is also a way to make sure we got the proper file name for the real test later on. 17247 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17248 if test "x$test_shortpath" = x; then 17249 # Short path failed, file does not exist as specified. 17250 # Try adding .exe or .cmd 17251 if test -f "${new_path}.exe"; then 17252 input_to_shortpath="${new_path}.exe" 17253 elif test -f "${new_path}.cmd"; then 17254 input_to_shortpath="${new_path}.cmd" 17255 else 17256 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17257 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17258 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17259 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17260 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17261 fi 17262 else 17263 input_to_shortpath="$new_path" 17264 fi 17265 17266 # Call helper function which possibly converts this using DOS-style short mode. 17267 # If so, the updated path is stored in $new_path. 17268 new_path="$input_to_shortpath" 17269 17270 input_path="$input_to_shortpath" 17271 # Check if we need to convert this using DOS-style short mode. If the path 17272 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17273 # take no chances and rewrite it. 17274 # Note: m4 eats our [], so we need to use [ and ] instead. 17275 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17276 if test "x$has_forbidden_chars" != x; then 17277 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17278 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17279 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17280 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17281 # Going to short mode and back again did indeed matter. Since short mode is 17282 # case insensitive, let's make it lowercase to improve readability. 17283 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17284 # Now convert it back to Unix-style (cygpath) 17285 input_path=`$CYGPATH -u "$shortmode_path"` 17286 new_path="$input_path" 17287 fi 17288 fi 17289 17290 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17291 if test "x$test_cygdrive_prefix" = x; then 17292 # As a simple fix, exclude /usr/bin since it's not a real path. 17293 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17294 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17295 # a path prefixed by /cygdrive for fixpath to work. 17296 new_path="$CYGWIN_ROOT_PATH$input_path" 17297 fi 17298 fi 17299 17300 # remove trailing .exe if any 17301 new_path="${new_path/%.exe/}" 17302 17303 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17304 17305 # First separate the path from the arguments. This will split at the first 17306 # space. 17307 complete="$FOUND_MAKE" 17308 path="${complete%% *}" 17309 tmp="$complete EOL" 17310 arguments="${tmp#* }" 17311 17312 # Input might be given as Windows format, start by converting to 17313 # unix format. 17314 new_path="$path" 17315 17316 windows_path="$new_path" 17317 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17318 unix_path=`$CYGPATH -u "$windows_path"` 17319 new_path="$unix_path" 17320 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17321 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17322 new_path="$unix_path" 17323 fi 17324 17325 17326 # Now try to locate executable using which 17327 new_path=`$WHICH "$new_path" 2> /dev/null` 17328 17329 if test "x$new_path" = x; then 17330 # Oops. Which didn't find the executable. 17331 # The splitting of arguments from the executable at a space might have been incorrect, 17332 # since paths with space are more likely in Windows. Give it another try with the whole 17333 # argument. 17334 path="$complete" 17335 arguments="EOL" 17336 new_path="$path" 17337 17338 windows_path="$new_path" 17339 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17340 unix_path=`$CYGPATH -u "$windows_path"` 17341 new_path="$unix_path" 17342 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17343 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17344 new_path="$unix_path" 17345 fi 17346 17347 17348 new_path=`$WHICH "$new_path" 2> /dev/null` 17349 # bat and cmd files are not always considered executable in MSYS causing which 17350 # to not find them 17351 if test "x$new_path" = x \ 17352 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17353 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17354 new_path="$path" 17355 17356 windows_path="$new_path" 17357 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17358 unix_path=`$CYGPATH -u "$windows_path"` 17359 new_path="$unix_path" 17360 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17361 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17362 new_path="$unix_path" 17363 fi 17364 17365 fi 17366 17367 if test "x$new_path" = x; then 17368 # It's still not found. Now this is an unrecoverable error. 17369 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17370 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17371 has_space=`$ECHO "$complete" | $GREP " "` 17372 if test "x$has_space" != x; then 17373 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17374 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17375 fi 17376 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17377 fi 17378 fi 17379 17380 # Now new_path has a complete unix path to the binary 17381 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17382 # Keep paths in /bin as-is, but remove trailing .exe if any 17383 new_path="${new_path/%.exe/}" 17384 # Do not save /bin paths to all_fixpath_prefixes! 17385 else 17386 # Not in mixed or Windows style, start by that. 17387 new_path=`cmd //c echo $new_path` 17388 17389 input_path="$new_path" 17390 # Check if we need to convert this using DOS-style short mode. If the path 17391 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17392 # take no chances and rewrite it. 17393 # Note: m4 eats our [], so we need to use [ and ] instead. 17394 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17395 if test "x$has_forbidden_chars" != x; then 17396 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17397 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17398 fi 17399 17400 # Output is in $new_path 17401 17402 windows_path="$new_path" 17403 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17404 unix_path=`$CYGPATH -u "$windows_path"` 17405 new_path="$unix_path" 17406 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17407 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17408 new_path="$unix_path" 17409 fi 17410 17411 # remove trailing .exe if any 17412 new_path="${new_path/%.exe/}" 17413 17414 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17415 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17416 fi 17417 17418 else 17419 # We're on a unix platform. Hooray! :) 17420 # First separate the path from the arguments. This will split at the first 17421 # space. 17422 complete="$FOUND_MAKE" 17423 path="${complete%% *}" 17424 tmp="$complete EOL" 17425 arguments="${tmp#* }" 17426 17427 # Cannot rely on the command "which" here since it doesn't always work. 17428 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17429 if test -z "$is_absolute_path"; then 17430 # Path to executable is not absolute. Find it. 17431 IFS_save="$IFS" 17432 IFS=: 17433 for p in $PATH; do 17434 if test -f "$p/$path" && test -x "$p/$path"; then 17435 new_path="$p/$path" 17436 break 17437 fi 17438 done 17439 IFS="$IFS_save" 17440 else 17441 # This is an absolute path, we can use it without further modifications. 17442 new_path="$path" 17443 fi 17444 17445 if test "x$new_path" = x; then 17446 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17447 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17448 has_space=`$ECHO "$complete" | $GREP " "` 17449 if test "x$has_space" != x; then 17450 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17451 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17452 fi 17453 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17454 fi 17455 fi 17456 17457 # Now join together the path and the arguments once again 17458 if test "x$arguments" != xEOL; then 17459 new_complete="$new_path ${arguments% *}" 17460 else 17461 new_complete="$new_path" 17462 fi 17463 17464 if test "x$complete" != "x$new_complete"; then 17465 FOUND_MAKE="$new_complete" 17466 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17467 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17468 fi 17469 fi 17470 17471 fi 17472 fi 17473 fi 17474 fi 17475 17476 fi 17477 17478 if test "x$FOUND_MAKE" = x; then 17479 if test "x$TOOLCHAIN_PATH" != x; then 17480 # We have a toolchain path, check that as well before giving up. 17481 OLD_PATH=$PATH 17482 PATH=$TOOLCHAIN_PATH:$PATH 17483 for ac_prog in gmake 17484 do 17485 # Extract the first word of "$ac_prog", so it can be a program name with args. 17486 set dummy $ac_prog; ac_word=$2 17487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17488 $as_echo_n "checking for $ac_word... " >&6; } 17489 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 17490 $as_echo_n "(cached) " >&6 17491 else 17492 case $CHECK_TOOLSDIR_GMAKE in 17493 [\\/]* | ?:[\\/]*) 17494 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 17495 ;; 17496 *) 17497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17498 for as_dir in $PATH 17499 do 17500 IFS=$as_save_IFS 17501 test -z "$as_dir" && as_dir=. 17502 for ac_exec_ext in '' $ac_executable_extensions; do 17503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17504 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 17505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17506 break 2 17507 fi 17508 done 17509 done 17510 IFS=$as_save_IFS 17511 17512 ;; 17513 esac 17514 fi 17515 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 17516 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 17518 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 17519 else 17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17521 $as_echo "no" >&6; } 17522 fi 17523 17524 17525 test -n "$CHECK_TOOLSDIR_GMAKE" && break 17526 done 17527 17528 17529 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 17530 DESCRIPTION="gmake in tools-dir" 17531 17532 # On Cygwin, we require a newer version of make than on other platforms 17533 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17534 MAKE_VERSION_EXPR="-e 4\." 17535 MAKE_REQUIRED_VERSION="4.0" 17536 else 17537 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17538 MAKE_REQUIRED_VERSION="3.81" 17539 fi 17540 17541 if test "x$MAKE_CANDIDATE" != x; then 17542 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17543 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17544 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17545 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17546 if test "x$IS_GNU_MAKE" = x; then 17547 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17548 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17549 else 17550 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17551 if test "x$IS_MODERN_MAKE" = x; then 17552 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 17553 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 17554 else 17555 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17556 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17557 MAKE_EXPECTED_ENV='cygwin' 17558 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17559 MAKE_EXPECTED_ENV='msys' 17560 else 17561 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17562 fi 17563 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17564 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17565 else 17566 # Not relevant for non-Windows 17567 IS_MAKE_CORRECT_ENV=true 17568 fi 17569 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17570 { $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 17571 $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;} 17572 else 17573 FOUND_MAKE=$MAKE_CANDIDATE 17574 17575 # Only process if variable expands to non-empty 17576 17577 if test "x$FOUND_MAKE" != x; then 17578 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17579 17580 # First separate the path from the arguments. This will split at the first 17581 # space. 17582 complete="$FOUND_MAKE" 17583 path="${complete%% *}" 17584 tmp="$complete EOL" 17585 arguments="${tmp#* }" 17586 17587 # Input might be given as Windows format, start by converting to 17588 # unix format. 17589 new_path=`$CYGPATH -u "$path"` 17590 17591 # Now try to locate executable using which 17592 new_path=`$WHICH "$new_path" 2> /dev/null` 17593 # bat and cmd files are not always considered executable in cygwin causing which 17594 # to not find them 17595 if test "x$new_path" = x \ 17596 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17597 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17598 new_path=`$CYGPATH -u "$path"` 17599 fi 17600 if test "x$new_path" = x; then 17601 # Oops. Which didn't find the executable. 17602 # The splitting of arguments from the executable at a space might have been incorrect, 17603 # since paths with space are more likely in Windows. Give it another try with the whole 17604 # argument. 17605 path="$complete" 17606 arguments="EOL" 17607 new_path=`$CYGPATH -u "$path"` 17608 new_path=`$WHICH "$new_path" 2> /dev/null` 17609 # bat and cmd files are not always considered executable in cygwin causing which 17610 # to not find them 17611 if test "x$new_path" = x \ 17612 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17613 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17614 new_path=`$CYGPATH -u "$path"` 17615 fi 17616 if test "x$new_path" = x; then 17617 # It's still not found. Now this is an unrecoverable error. 17618 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17619 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17620 has_space=`$ECHO "$complete" | $GREP " "` 17621 if test "x$has_space" != x; then 17622 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17623 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17624 fi 17625 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17626 fi 17627 fi 17628 17629 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17630 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17631 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17632 # "foo.exe" is OK but "foo" is an error. 17633 # 17634 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17635 # It is also a way to make sure we got the proper file name for the real test later on. 17636 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17637 if test "x$test_shortpath" = x; then 17638 # Short path failed, file does not exist as specified. 17639 # Try adding .exe or .cmd 17640 if test -f "${new_path}.exe"; then 17641 input_to_shortpath="${new_path}.exe" 17642 elif test -f "${new_path}.cmd"; then 17643 input_to_shortpath="${new_path}.cmd" 17644 else 17645 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17646 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17647 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17648 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17649 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17650 fi 17651 else 17652 input_to_shortpath="$new_path" 17653 fi 17654 17655 # Call helper function which possibly converts this using DOS-style short mode. 17656 # If so, the updated path is stored in $new_path. 17657 new_path="$input_to_shortpath" 17658 17659 input_path="$input_to_shortpath" 17660 # Check if we need to convert this using DOS-style short mode. If the path 17661 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17662 # take no chances and rewrite it. 17663 # Note: m4 eats our [], so we need to use [ and ] instead. 17664 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17665 if test "x$has_forbidden_chars" != x; then 17666 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17667 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17668 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17669 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17670 # Going to short mode and back again did indeed matter. Since short mode is 17671 # case insensitive, let's make it lowercase to improve readability. 17672 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17673 # Now convert it back to Unix-style (cygpath) 17674 input_path=`$CYGPATH -u "$shortmode_path"` 17675 new_path="$input_path" 17676 fi 17677 fi 17678 17679 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17680 if test "x$test_cygdrive_prefix" = x; then 17681 # As a simple fix, exclude /usr/bin since it's not a real path. 17682 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17683 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17684 # a path prefixed by /cygdrive for fixpath to work. 17685 new_path="$CYGWIN_ROOT_PATH$input_path" 17686 fi 17687 fi 17688 17689 # remove trailing .exe if any 17690 new_path="${new_path/%.exe/}" 17691 17692 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17693 17694 # First separate the path from the arguments. This will split at the first 17695 # space. 17696 complete="$FOUND_MAKE" 17697 path="${complete%% *}" 17698 tmp="$complete EOL" 17699 arguments="${tmp#* }" 17700 17701 # Input might be given as Windows format, start by converting to 17702 # unix format. 17703 new_path="$path" 17704 17705 windows_path="$new_path" 17706 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17707 unix_path=`$CYGPATH -u "$windows_path"` 17708 new_path="$unix_path" 17709 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17710 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17711 new_path="$unix_path" 17712 fi 17713 17714 17715 # Now try to locate executable using which 17716 new_path=`$WHICH "$new_path" 2> /dev/null` 17717 17718 if test "x$new_path" = x; then 17719 # Oops. Which didn't find the executable. 17720 # The splitting of arguments from the executable at a space might have been incorrect, 17721 # since paths with space are more likely in Windows. Give it another try with the whole 17722 # argument. 17723 path="$complete" 17724 arguments="EOL" 17725 new_path="$path" 17726 17727 windows_path="$new_path" 17728 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17729 unix_path=`$CYGPATH -u "$windows_path"` 17730 new_path="$unix_path" 17731 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17732 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17733 new_path="$unix_path" 17734 fi 17735 17736 17737 new_path=`$WHICH "$new_path" 2> /dev/null` 17738 # bat and cmd files are not always considered executable in MSYS causing which 17739 # to not find them 17740 if test "x$new_path" = x \ 17741 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17742 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17743 new_path="$path" 17744 17745 windows_path="$new_path" 17746 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17747 unix_path=`$CYGPATH -u "$windows_path"` 17748 new_path="$unix_path" 17749 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17750 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17751 new_path="$unix_path" 17752 fi 17753 17754 fi 17755 17756 if test "x$new_path" = x; then 17757 # It's still not found. Now this is an unrecoverable error. 17758 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17759 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17760 has_space=`$ECHO "$complete" | $GREP " "` 17761 if test "x$has_space" != x; then 17762 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17763 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17764 fi 17765 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17766 fi 17767 fi 17768 17769 # Now new_path has a complete unix path to the binary 17770 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17771 # Keep paths in /bin as-is, but remove trailing .exe if any 17772 new_path="${new_path/%.exe/}" 17773 # Do not save /bin paths to all_fixpath_prefixes! 17774 else 17775 # Not in mixed or Windows style, start by that. 17776 new_path=`cmd //c echo $new_path` 17777 17778 input_path="$new_path" 17779 # Check if we need to convert this using DOS-style short mode. If the path 17780 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17781 # take no chances and rewrite it. 17782 # Note: m4 eats our [], so we need to use [ and ] instead. 17783 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17784 if test "x$has_forbidden_chars" != x; then 17785 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17786 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17787 fi 17788 17789 # Output is in $new_path 17790 17791 windows_path="$new_path" 17792 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17793 unix_path=`$CYGPATH -u "$windows_path"` 17794 new_path="$unix_path" 17795 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17796 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17797 new_path="$unix_path" 17798 fi 17799 17800 # remove trailing .exe if any 17801 new_path="${new_path/%.exe/}" 17802 17803 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17804 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17805 fi 17806 17807 else 17808 # We're on a unix platform. Hooray! :) 17809 # First separate the path from the arguments. This will split at the first 17810 # space. 17811 complete="$FOUND_MAKE" 17812 path="${complete%% *}" 17813 tmp="$complete EOL" 17814 arguments="${tmp#* }" 17815 17816 # Cannot rely on the command "which" here since it doesn't always work. 17817 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17818 if test -z "$is_absolute_path"; then 17819 # Path to executable is not absolute. Find it. 17820 IFS_save="$IFS" 17821 IFS=: 17822 for p in $PATH; do 17823 if test -f "$p/$path" && test -x "$p/$path"; then 17824 new_path="$p/$path" 17825 break 17826 fi 17827 done 17828 IFS="$IFS_save" 17829 else 17830 # This is an absolute path, we can use it without further modifications. 17831 new_path="$path" 17832 fi 17833 17834 if test "x$new_path" = x; then 17835 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17836 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17837 has_space=`$ECHO "$complete" | $GREP " "` 17838 if test "x$has_space" != x; then 17839 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17840 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17841 fi 17842 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17843 fi 17844 fi 17845 17846 # Now join together the path and the arguments once again 17847 if test "x$arguments" != xEOL; then 17848 new_complete="$new_path ${arguments% *}" 17849 else 17850 new_complete="$new_path" 17851 fi 17852 17853 if test "x$complete" != "x$new_complete"; then 17854 FOUND_MAKE="$new_complete" 17855 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17856 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17857 fi 17858 fi 17859 17860 fi 17861 fi 17862 fi 17863 fi 17864 17865 if test "x$FOUND_MAKE" = x; then 17866 for ac_prog in make 17867 do 17868 # Extract the first word of "$ac_prog", so it can be a program name with args. 17869 set dummy $ac_prog; ac_word=$2 17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17871 $as_echo_n "checking for $ac_word... " >&6; } 17872 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 17873 $as_echo_n "(cached) " >&6 17874 else 17875 case $CHECK_TOOLSDIR_MAKE in 17876 [\\/]* | ?:[\\/]*) 17877 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 17878 ;; 17879 *) 17880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17881 for as_dir in $PATH 17882 do 17883 IFS=$as_save_IFS 17884 test -z "$as_dir" && as_dir=. 17885 for ac_exec_ext in '' $ac_executable_extensions; do 17886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17887 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 17888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17889 break 2 17890 fi 17891 done 17892 done 17893 IFS=$as_save_IFS 17894 17895 ;; 17896 esac 17897 fi 17898 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 17899 if test -n "$CHECK_TOOLSDIR_MAKE"; then 17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 17901 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 17902 else 17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17904 $as_echo "no" >&6; } 17905 fi 17906 17907 17908 test -n "$CHECK_TOOLSDIR_MAKE" && break 17909 done 17910 17911 17912 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 17913 DESCRIPTION="make in tools-dir" 17914 17915 # On Cygwin, we require a newer version of make than on other platforms 17916 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17917 MAKE_VERSION_EXPR="-e 4\." 17918 MAKE_REQUIRED_VERSION="4.0" 17919 else 17920 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17921 MAKE_REQUIRED_VERSION="3.81" 17922 fi 17923 17924 if test "x$MAKE_CANDIDATE" != x; then 17925 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17926 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17927 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17928 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17929 if test "x$IS_GNU_MAKE" = x; then 17930 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17931 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17932 else 17933 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17934 if test "x$IS_MODERN_MAKE" = x; then 17935 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 17936 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 17937 else 17938 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17939 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17940 MAKE_EXPECTED_ENV='cygwin' 17941 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17942 MAKE_EXPECTED_ENV='msys' 17943 else 17944 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17945 fi 17946 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17947 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17948 else 17949 # Not relevant for non-Windows 17950 IS_MAKE_CORRECT_ENV=true 17951 fi 17952 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17953 { $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 17954 $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;} 17955 else 17956 FOUND_MAKE=$MAKE_CANDIDATE 17957 17958 # Only process if variable expands to non-empty 17959 17960 if test "x$FOUND_MAKE" != x; then 17961 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17962 17963 # First separate the path from the arguments. This will split at the first 17964 # space. 17965 complete="$FOUND_MAKE" 17966 path="${complete%% *}" 17967 tmp="$complete EOL" 17968 arguments="${tmp#* }" 17969 17970 # Input might be given as Windows format, start by converting to 17971 # unix format. 17972 new_path=`$CYGPATH -u "$path"` 17973 17974 # Now try to locate executable using which 17975 new_path=`$WHICH "$new_path" 2> /dev/null` 17976 # bat and cmd files are not always considered executable in cygwin causing which 17977 # to not find them 17978 if test "x$new_path" = x \ 17979 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17980 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17981 new_path=`$CYGPATH -u "$path"` 17982 fi 17983 if test "x$new_path" = x; then 17984 # Oops. Which didn't find the executable. 17985 # The splitting of arguments from the executable at a space might have been incorrect, 17986 # since paths with space are more likely in Windows. Give it another try with the whole 17987 # argument. 17988 path="$complete" 17989 arguments="EOL" 17990 new_path=`$CYGPATH -u "$path"` 17991 new_path=`$WHICH "$new_path" 2> /dev/null` 17992 # bat and cmd files are not always considered executable in cygwin causing which 17993 # to not find them 17994 if test "x$new_path" = x \ 17995 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17996 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17997 new_path=`$CYGPATH -u "$path"` 17998 fi 17999 if test "x$new_path" = x; then 18000 # It's still not found. Now this is an unrecoverable error. 18001 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18002 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18003 has_space=`$ECHO "$complete" | $GREP " "` 18004 if test "x$has_space" != x; then 18005 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18006 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18007 fi 18008 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18009 fi 18010 fi 18011 18012 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18013 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18014 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18015 # "foo.exe" is OK but "foo" is an error. 18016 # 18017 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18018 # It is also a way to make sure we got the proper file name for the real test later on. 18019 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18020 if test "x$test_shortpath" = x; then 18021 # Short path failed, file does not exist as specified. 18022 # Try adding .exe or .cmd 18023 if test -f "${new_path}.exe"; then 18024 input_to_shortpath="${new_path}.exe" 18025 elif test -f "${new_path}.cmd"; then 18026 input_to_shortpath="${new_path}.cmd" 18027 else 18028 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18029 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18030 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18031 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18032 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18033 fi 18034 else 18035 input_to_shortpath="$new_path" 18036 fi 18037 18038 # Call helper function which possibly converts this using DOS-style short mode. 18039 # If so, the updated path is stored in $new_path. 18040 new_path="$input_to_shortpath" 18041 18042 input_path="$input_to_shortpath" 18043 # Check if we need to convert this using DOS-style short mode. If the path 18044 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18045 # take no chances and rewrite it. 18046 # Note: m4 eats our [], so we need to use [ and ] instead. 18047 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18048 if test "x$has_forbidden_chars" != x; then 18049 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18050 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18051 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18052 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18053 # Going to short mode and back again did indeed matter. Since short mode is 18054 # case insensitive, let's make it lowercase to improve readability. 18055 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18056 # Now convert it back to Unix-style (cygpath) 18057 input_path=`$CYGPATH -u "$shortmode_path"` 18058 new_path="$input_path" 18059 fi 18060 fi 18061 18062 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18063 if test "x$test_cygdrive_prefix" = x; then 18064 # As a simple fix, exclude /usr/bin since it's not a real path. 18065 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18066 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18067 # a path prefixed by /cygdrive for fixpath to work. 18068 new_path="$CYGWIN_ROOT_PATH$input_path" 18069 fi 18070 fi 18071 18072 # remove trailing .exe if any 18073 new_path="${new_path/%.exe/}" 18074 18075 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18076 18077 # First separate the path from the arguments. This will split at the first 18078 # space. 18079 complete="$FOUND_MAKE" 18080 path="${complete%% *}" 18081 tmp="$complete EOL" 18082 arguments="${tmp#* }" 18083 18084 # Input might be given as Windows format, start by converting to 18085 # unix format. 18086 new_path="$path" 18087 18088 windows_path="$new_path" 18089 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18090 unix_path=`$CYGPATH -u "$windows_path"` 18091 new_path="$unix_path" 18092 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18093 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18094 new_path="$unix_path" 18095 fi 18096 18097 18098 # Now try to locate executable using which 18099 new_path=`$WHICH "$new_path" 2> /dev/null` 18100 18101 if test "x$new_path" = x; then 18102 # Oops. Which didn't find the executable. 18103 # The splitting of arguments from the executable at a space might have been incorrect, 18104 # since paths with space are more likely in Windows. Give it another try with the whole 18105 # argument. 18106 path="$complete" 18107 arguments="EOL" 18108 new_path="$path" 18109 18110 windows_path="$new_path" 18111 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18112 unix_path=`$CYGPATH -u "$windows_path"` 18113 new_path="$unix_path" 18114 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18115 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18116 new_path="$unix_path" 18117 fi 18118 18119 18120 new_path=`$WHICH "$new_path" 2> /dev/null` 18121 # bat and cmd files are not always considered executable in MSYS causing which 18122 # to not find them 18123 if test "x$new_path" = x \ 18124 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18125 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18126 new_path="$path" 18127 18128 windows_path="$new_path" 18129 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18130 unix_path=`$CYGPATH -u "$windows_path"` 18131 new_path="$unix_path" 18132 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18133 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18134 new_path="$unix_path" 18135 fi 18136 18137 fi 18138 18139 if test "x$new_path" = x; then 18140 # It's still not found. Now this is an unrecoverable error. 18141 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18142 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18143 has_space=`$ECHO "$complete" | $GREP " "` 18144 if test "x$has_space" != x; then 18145 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18146 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18147 fi 18148 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18149 fi 18150 fi 18151 18152 # Now new_path has a complete unix path to the binary 18153 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18154 # Keep paths in /bin as-is, but remove trailing .exe if any 18155 new_path="${new_path/%.exe/}" 18156 # Do not save /bin paths to all_fixpath_prefixes! 18157 else 18158 # Not in mixed or Windows style, start by that. 18159 new_path=`cmd //c echo $new_path` 18160 18161 input_path="$new_path" 18162 # Check if we need to convert this using DOS-style short mode. If the path 18163 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18164 # take no chances and rewrite it. 18165 # Note: m4 eats our [], so we need to use [ and ] instead. 18166 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18167 if test "x$has_forbidden_chars" != x; then 18168 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18169 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18170 fi 18171 18172 # Output is in $new_path 18173 18174 windows_path="$new_path" 18175 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18176 unix_path=`$CYGPATH -u "$windows_path"` 18177 new_path="$unix_path" 18178 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18179 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18180 new_path="$unix_path" 18181 fi 18182 18183 # remove trailing .exe if any 18184 new_path="${new_path/%.exe/}" 18185 18186 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18187 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18188 fi 18189 18190 else 18191 # We're on a unix platform. Hooray! :) 18192 # First separate the path from the arguments. This will split at the first 18193 # space. 18194 complete="$FOUND_MAKE" 18195 path="${complete%% *}" 18196 tmp="$complete EOL" 18197 arguments="${tmp#* }" 18198 18199 # Cannot rely on the command "which" here since it doesn't always work. 18200 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18201 if test -z "$is_absolute_path"; then 18202 # Path to executable is not absolute. Find it. 18203 IFS_save="$IFS" 18204 IFS=: 18205 for p in $PATH; do 18206 if test -f "$p/$path" && test -x "$p/$path"; then 18207 new_path="$p/$path" 18208 break 18209 fi 18210 done 18211 IFS="$IFS_save" 18212 else 18213 # This is an absolute path, we can use it without further modifications. 18214 new_path="$path" 18215 fi 18216 18217 if test "x$new_path" = x; then 18218 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18219 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18220 has_space=`$ECHO "$complete" | $GREP " "` 18221 if test "x$has_space" != x; then 18222 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18223 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18224 fi 18225 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18226 fi 18227 fi 18228 18229 # Now join together the path and the arguments once again 18230 if test "x$arguments" != xEOL; then 18231 new_complete="$new_path ${arguments% *}" 18232 else 18233 new_complete="$new_path" 18234 fi 18235 18236 if test "x$complete" != "x$new_complete"; then 18237 FOUND_MAKE="$new_complete" 18238 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18239 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18240 fi 18241 fi 18242 18243 fi 18244 fi 18245 fi 18246 fi 18247 18248 fi 18249 PATH=$OLD_PATH 18250 fi 18251 fi 18252 18253 if test "x$FOUND_MAKE" = x; then 18254 as_fn_error $? "Cannot find GNU make $MAKE_REQUIRED_VERSION or newer! Please put it in the path, or add e.g. MAKE=/opt/gmake3.81/make as argument to configure." "$LINENO" 5 18255 fi 18256 18257 else 18258 # The variable is set, but is it from the command line or the environment? 18259 18260 # Try to remove the string !MAKE! from our list. 18261 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/} 18262 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18263 # If it failed, the variable was not from the command line. Ignore it, 18264 # but warn the user (except for BASH, which is always set by the calling BASH). 18265 if test "xMAKE" != xBASH; then 18266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5 18267 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;} 18268 fi 18269 # Try to locate tool using the code snippet 18270 18271 # Try our hardest to locate a correct version of GNU make 18272 for ac_prog in gmake 18273 do 18274 # Extract the first word of "$ac_prog", so it can be a program name with args. 18275 set dummy $ac_prog; ac_word=$2 18276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18277 $as_echo_n "checking for $ac_word... " >&6; } 18278 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 18279 $as_echo_n "(cached) " >&6 18280 else 18281 case $CHECK_GMAKE in 18282 [\\/]* | ?:[\\/]*) 18283 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 18284 ;; 18285 *) 18286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18287 for as_dir in $PATH 18288 do 18289 IFS=$as_save_IFS 18290 test -z "$as_dir" && as_dir=. 18291 for ac_exec_ext in '' $ac_executable_extensions; do 18292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18293 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 18294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18295 break 2 18296 fi 18297 done 18298 done 18299 IFS=$as_save_IFS 18300 18301 ;; 18302 esac 18303 fi 18304 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 18305 if test -n "$CHECK_GMAKE"; then 18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 18307 $as_echo "$CHECK_GMAKE" >&6; } 18308 else 18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18310 $as_echo "no" >&6; } 18311 fi 18312 18313 18314 test -n "$CHECK_GMAKE" && break 18315 done 18316 18317 18318 MAKE_CANDIDATE=""$CHECK_GMAKE"" 18319 DESCRIPTION="gmake in PATH" 18320 18321 # On Cygwin, we require a newer version of make than on other platforms 18322 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18323 MAKE_VERSION_EXPR="-e 4\." 18324 MAKE_REQUIRED_VERSION="4.0" 18325 else 18326 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18327 MAKE_REQUIRED_VERSION="3.81" 18328 fi 18329 18330 if test "x$MAKE_CANDIDATE" != x; then 18331 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18332 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18333 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18334 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18335 if test "x$IS_GNU_MAKE" = x; then 18336 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18337 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18338 else 18339 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18340 if test "x$IS_MODERN_MAKE" = x; then 18341 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 18342 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 18343 else 18344 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18345 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18346 MAKE_EXPECTED_ENV='cygwin' 18347 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18348 MAKE_EXPECTED_ENV='msys' 18349 else 18350 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18351 fi 18352 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18353 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18354 else 18355 # Not relevant for non-Windows 18356 IS_MAKE_CORRECT_ENV=true 18357 fi 18358 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18359 { $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 18360 $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;} 18361 else 18362 FOUND_MAKE=$MAKE_CANDIDATE 18363 18364 # Only process if variable expands to non-empty 18365 18366 if test "x$FOUND_MAKE" != x; then 18367 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18368 18369 # First separate the path from the arguments. This will split at the first 18370 # space. 18371 complete="$FOUND_MAKE" 18372 path="${complete%% *}" 18373 tmp="$complete EOL" 18374 arguments="${tmp#* }" 18375 18376 # Input might be given as Windows format, start by converting to 18377 # unix format. 18378 new_path=`$CYGPATH -u "$path"` 18379 18380 # Now try to locate executable using which 18381 new_path=`$WHICH "$new_path" 2> /dev/null` 18382 # bat and cmd files are not always considered executable in cygwin causing which 18383 # to not find them 18384 if test "x$new_path" = x \ 18385 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18386 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18387 new_path=`$CYGPATH -u "$path"` 18388 fi 18389 if test "x$new_path" = x; then 18390 # Oops. Which didn't find the executable. 18391 # The splitting of arguments from the executable at a space might have been incorrect, 18392 # since paths with space are more likely in Windows. Give it another try with the whole 18393 # argument. 18394 path="$complete" 18395 arguments="EOL" 18396 new_path=`$CYGPATH -u "$path"` 18397 new_path=`$WHICH "$new_path" 2> /dev/null` 18398 # bat and cmd files are not always considered executable in cygwin causing which 18399 # to not find them 18400 if test "x$new_path" = x \ 18401 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18402 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18403 new_path=`$CYGPATH -u "$path"` 18404 fi 18405 if test "x$new_path" = x; then 18406 # It's still not found. Now this is an unrecoverable error. 18407 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18408 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18409 has_space=`$ECHO "$complete" | $GREP " "` 18410 if test "x$has_space" != x; then 18411 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18412 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18413 fi 18414 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18415 fi 18416 fi 18417 18418 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18419 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18420 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18421 # "foo.exe" is OK but "foo" is an error. 18422 # 18423 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18424 # It is also a way to make sure we got the proper file name for the real test later on. 18425 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18426 if test "x$test_shortpath" = x; then 18427 # Short path failed, file does not exist as specified. 18428 # Try adding .exe or .cmd 18429 if test -f "${new_path}.exe"; then 18430 input_to_shortpath="${new_path}.exe" 18431 elif test -f "${new_path}.cmd"; then 18432 input_to_shortpath="${new_path}.cmd" 18433 else 18434 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18435 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18436 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18437 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18438 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18439 fi 18440 else 18441 input_to_shortpath="$new_path" 18442 fi 18443 18444 # Call helper function which possibly converts this using DOS-style short mode. 18445 # If so, the updated path is stored in $new_path. 18446 new_path="$input_to_shortpath" 18447 18448 input_path="$input_to_shortpath" 18449 # Check if we need to convert this using DOS-style short mode. If the path 18450 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18451 # take no chances and rewrite it. 18452 # Note: m4 eats our [], so we need to use [ and ] instead. 18453 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18454 if test "x$has_forbidden_chars" != x; then 18455 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18456 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18457 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18458 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18459 # Going to short mode and back again did indeed matter. Since short mode is 18460 # case insensitive, let's make it lowercase to improve readability. 18461 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18462 # Now convert it back to Unix-style (cygpath) 18463 input_path=`$CYGPATH -u "$shortmode_path"` 18464 new_path="$input_path" 18465 fi 18466 fi 18467 18468 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18469 if test "x$test_cygdrive_prefix" = x; then 18470 # As a simple fix, exclude /usr/bin since it's not a real path. 18471 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18472 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18473 # a path prefixed by /cygdrive for fixpath to work. 18474 new_path="$CYGWIN_ROOT_PATH$input_path" 18475 fi 18476 fi 18477 18478 # remove trailing .exe if any 18479 new_path="${new_path/%.exe/}" 18480 18481 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18482 18483 # First separate the path from the arguments. This will split at the first 18484 # space. 18485 complete="$FOUND_MAKE" 18486 path="${complete%% *}" 18487 tmp="$complete EOL" 18488 arguments="${tmp#* }" 18489 18490 # Input might be given as Windows format, start by converting to 18491 # unix format. 18492 new_path="$path" 18493 18494 windows_path="$new_path" 18495 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18496 unix_path=`$CYGPATH -u "$windows_path"` 18497 new_path="$unix_path" 18498 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18499 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18500 new_path="$unix_path" 18501 fi 18502 18503 18504 # Now try to locate executable using which 18505 new_path=`$WHICH "$new_path" 2> /dev/null` 18506 18507 if test "x$new_path" = x; then 18508 # Oops. Which didn't find the executable. 18509 # The splitting of arguments from the executable at a space might have been incorrect, 18510 # since paths with space are more likely in Windows. Give it another try with the whole 18511 # argument. 18512 path="$complete" 18513 arguments="EOL" 18514 new_path="$path" 18515 18516 windows_path="$new_path" 18517 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18518 unix_path=`$CYGPATH -u "$windows_path"` 18519 new_path="$unix_path" 18520 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18521 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18522 new_path="$unix_path" 18523 fi 18524 18525 18526 new_path=`$WHICH "$new_path" 2> /dev/null` 18527 # bat and cmd files are not always considered executable in MSYS causing which 18528 # to not find them 18529 if test "x$new_path" = x \ 18530 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18531 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18532 new_path="$path" 18533 18534 windows_path="$new_path" 18535 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18536 unix_path=`$CYGPATH -u "$windows_path"` 18537 new_path="$unix_path" 18538 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18539 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18540 new_path="$unix_path" 18541 fi 18542 18543 fi 18544 18545 if test "x$new_path" = x; then 18546 # It's still not found. Now this is an unrecoverable error. 18547 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18548 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18549 has_space=`$ECHO "$complete" | $GREP " "` 18550 if test "x$has_space" != x; then 18551 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18552 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18553 fi 18554 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18555 fi 18556 fi 18557 18558 # Now new_path has a complete unix path to the binary 18559 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18560 # Keep paths in /bin as-is, but remove trailing .exe if any 18561 new_path="${new_path/%.exe/}" 18562 # Do not save /bin paths to all_fixpath_prefixes! 18563 else 18564 # Not in mixed or Windows style, start by that. 18565 new_path=`cmd //c echo $new_path` 18566 18567 input_path="$new_path" 18568 # Check if we need to convert this using DOS-style short mode. If the path 18569 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18570 # take no chances and rewrite it. 18571 # Note: m4 eats our [], so we need to use [ and ] instead. 18572 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18573 if test "x$has_forbidden_chars" != x; then 18574 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18575 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18576 fi 18577 18578 # Output is in $new_path 18579 18580 windows_path="$new_path" 18581 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18582 unix_path=`$CYGPATH -u "$windows_path"` 18583 new_path="$unix_path" 18584 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18585 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18586 new_path="$unix_path" 18587 fi 18588 18589 # remove trailing .exe if any 18590 new_path="${new_path/%.exe/}" 18591 18592 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18593 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18594 fi 18595 18596 else 18597 # We're on a unix platform. Hooray! :) 18598 # First separate the path from the arguments. This will split at the first 18599 # space. 18600 complete="$FOUND_MAKE" 18601 path="${complete%% *}" 18602 tmp="$complete EOL" 18603 arguments="${tmp#* }" 18604 18605 # Cannot rely on the command "which" here since it doesn't always work. 18606 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18607 if test -z "$is_absolute_path"; then 18608 # Path to executable is not absolute. Find it. 18609 IFS_save="$IFS" 18610 IFS=: 18611 for p in $PATH; do 18612 if test -f "$p/$path" && test -x "$p/$path"; then 18613 new_path="$p/$path" 18614 break 18615 fi 18616 done 18617 IFS="$IFS_save" 18618 else 18619 # This is an absolute path, we can use it without further modifications. 18620 new_path="$path" 18621 fi 18622 18623 if test "x$new_path" = x; then 18624 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18625 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18626 has_space=`$ECHO "$complete" | $GREP " "` 18627 if test "x$has_space" != x; then 18628 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18629 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18630 fi 18631 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18632 fi 18633 fi 18634 18635 # Now join together the path and the arguments once again 18636 if test "x$arguments" != xEOL; then 18637 new_complete="$new_path ${arguments% *}" 18638 else 18639 new_complete="$new_path" 18640 fi 18641 18642 if test "x$complete" != "x$new_complete"; then 18643 FOUND_MAKE="$new_complete" 18644 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18645 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18646 fi 18647 fi 18648 18649 fi 18650 fi 18651 fi 18652 fi 18653 18654 18655 if test "x$FOUND_MAKE" = x; then 18656 for ac_prog in make 18657 do 18658 # Extract the first word of "$ac_prog", so it can be a program name with args. 18659 set dummy $ac_prog; ac_word=$2 18660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18661 $as_echo_n "checking for $ac_word... " >&6; } 18662 if ${ac_cv_path_CHECK_MAKE+:} false; then : 18663 $as_echo_n "(cached) " >&6 18664 else 18665 case $CHECK_MAKE in 18666 [\\/]* | ?:[\\/]*) 18667 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 18668 ;; 18669 *) 18670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18671 for as_dir in $PATH 18672 do 18673 IFS=$as_save_IFS 18674 test -z "$as_dir" && as_dir=. 18675 for ac_exec_ext in '' $ac_executable_extensions; do 18676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18677 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 18678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18679 break 2 18680 fi 18681 done 18682 done 18683 IFS=$as_save_IFS 18684 18685 ;; 18686 esac 18687 fi 18688 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 18689 if test -n "$CHECK_MAKE"; then 18690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 18691 $as_echo "$CHECK_MAKE" >&6; } 18692 else 18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18694 $as_echo "no" >&6; } 18695 fi 18696 18697 18698 test -n "$CHECK_MAKE" && break 18699 done 18700 18701 18702 MAKE_CANDIDATE=""$CHECK_MAKE"" 18703 DESCRIPTION="make in PATH" 18704 18705 # On Cygwin, we require a newer version of make than on other platforms 18706 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18707 MAKE_VERSION_EXPR="-e 4\." 18708 MAKE_REQUIRED_VERSION="4.0" 18709 else 18710 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18711 MAKE_REQUIRED_VERSION="3.81" 18712 fi 18713 18714 if test "x$MAKE_CANDIDATE" != x; then 18715 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18716 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18717 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18718 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18719 if test "x$IS_GNU_MAKE" = x; then 18720 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18721 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18722 else 18723 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18724 if test "x$IS_MODERN_MAKE" = x; then 18725 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 18726 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 18727 else 18728 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18729 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18730 MAKE_EXPECTED_ENV='cygwin' 18731 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18732 MAKE_EXPECTED_ENV='msys' 18733 else 18734 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18735 fi 18736 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18737 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18738 else 18739 # Not relevant for non-Windows 18740 IS_MAKE_CORRECT_ENV=true 18741 fi 18742 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18743 { $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 18744 $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;} 18745 else 18746 FOUND_MAKE=$MAKE_CANDIDATE 18747 18748 # Only process if variable expands to non-empty 18749 18750 if test "x$FOUND_MAKE" != x; then 18751 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18752 18753 # First separate the path from the arguments. This will split at the first 18754 # space. 18755 complete="$FOUND_MAKE" 18756 path="${complete%% *}" 18757 tmp="$complete EOL" 18758 arguments="${tmp#* }" 18759 18760 # Input might be given as Windows format, start by converting to 18761 # unix format. 18762 new_path=`$CYGPATH -u "$path"` 18763 18764 # Now try to locate executable using which 18765 new_path=`$WHICH "$new_path" 2> /dev/null` 18766 # bat and cmd files are not always considered executable in cygwin causing which 18767 # to not find them 18768 if test "x$new_path" = x \ 18769 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18770 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18771 new_path=`$CYGPATH -u "$path"` 18772 fi 18773 if test "x$new_path" = x; then 18774 # Oops. Which didn't find the executable. 18775 # The splitting of arguments from the executable at a space might have been incorrect, 18776 # since paths with space are more likely in Windows. Give it another try with the whole 18777 # argument. 18778 path="$complete" 18779 arguments="EOL" 18780 new_path=`$CYGPATH -u "$path"` 18781 new_path=`$WHICH "$new_path" 2> /dev/null` 18782 # bat and cmd files are not always considered executable in cygwin causing which 18783 # to not find them 18784 if test "x$new_path" = x \ 18785 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18786 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18787 new_path=`$CYGPATH -u "$path"` 18788 fi 18789 if test "x$new_path" = x; then 18790 # It's still not found. Now this is an unrecoverable error. 18791 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18792 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18793 has_space=`$ECHO "$complete" | $GREP " "` 18794 if test "x$has_space" != x; then 18795 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18796 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18797 fi 18798 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18799 fi 18800 fi 18801 18802 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18803 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18804 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18805 # "foo.exe" is OK but "foo" is an error. 18806 # 18807 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18808 # It is also a way to make sure we got the proper file name for the real test later on. 18809 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18810 if test "x$test_shortpath" = x; then 18811 # Short path failed, file does not exist as specified. 18812 # Try adding .exe or .cmd 18813 if test -f "${new_path}.exe"; then 18814 input_to_shortpath="${new_path}.exe" 18815 elif test -f "${new_path}.cmd"; then 18816 input_to_shortpath="${new_path}.cmd" 18817 else 18818 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18819 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18820 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18821 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18822 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18823 fi 18824 else 18825 input_to_shortpath="$new_path" 18826 fi 18827 18828 # Call helper function which possibly converts this using DOS-style short mode. 18829 # If so, the updated path is stored in $new_path. 18830 new_path="$input_to_shortpath" 18831 18832 input_path="$input_to_shortpath" 18833 # Check if we need to convert this using DOS-style short mode. If the path 18834 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18835 # take no chances and rewrite it. 18836 # Note: m4 eats our [], so we need to use [ and ] instead. 18837 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18838 if test "x$has_forbidden_chars" != x; then 18839 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18840 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18841 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18842 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18843 # Going to short mode and back again did indeed matter. Since short mode is 18844 # case insensitive, let's make it lowercase to improve readability. 18845 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18846 # Now convert it back to Unix-style (cygpath) 18847 input_path=`$CYGPATH -u "$shortmode_path"` 18848 new_path="$input_path" 18849 fi 18850 fi 18851 18852 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18853 if test "x$test_cygdrive_prefix" = x; then 18854 # As a simple fix, exclude /usr/bin since it's not a real path. 18855 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18856 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18857 # a path prefixed by /cygdrive for fixpath to work. 18858 new_path="$CYGWIN_ROOT_PATH$input_path" 18859 fi 18860 fi 18861 18862 # remove trailing .exe if any 18863 new_path="${new_path/%.exe/}" 18864 18865 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18866 18867 # First separate the path from the arguments. This will split at the first 18868 # space. 18869 complete="$FOUND_MAKE" 18870 path="${complete%% *}" 18871 tmp="$complete EOL" 18872 arguments="${tmp#* }" 18873 18874 # Input might be given as Windows format, start by converting to 18875 # unix format. 18876 new_path="$path" 18877 18878 windows_path="$new_path" 18879 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18880 unix_path=`$CYGPATH -u "$windows_path"` 18881 new_path="$unix_path" 18882 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18883 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18884 new_path="$unix_path" 18885 fi 18886 18887 18888 # Now try to locate executable using which 18889 new_path=`$WHICH "$new_path" 2> /dev/null` 18890 18891 if test "x$new_path" = x; then 18892 # Oops. Which didn't find the executable. 18893 # The splitting of arguments from the executable at a space might have been incorrect, 18894 # since paths with space are more likely in Windows. Give it another try with the whole 18895 # argument. 18896 path="$complete" 18897 arguments="EOL" 18898 new_path="$path" 18899 18900 windows_path="$new_path" 18901 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18902 unix_path=`$CYGPATH -u "$windows_path"` 18903 new_path="$unix_path" 18904 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18905 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18906 new_path="$unix_path" 18907 fi 18908 18909 18910 new_path=`$WHICH "$new_path" 2> /dev/null` 18911 # bat and cmd files are not always considered executable in MSYS causing which 18912 # to not find them 18913 if test "x$new_path" = x \ 18914 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18915 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18916 new_path="$path" 18917 18918 windows_path="$new_path" 18919 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18920 unix_path=`$CYGPATH -u "$windows_path"` 18921 new_path="$unix_path" 18922 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18923 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18924 new_path="$unix_path" 18925 fi 18926 18927 fi 18928 18929 if test "x$new_path" = x; then 18930 # It's still not found. Now this is an unrecoverable error. 18931 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18932 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18933 has_space=`$ECHO "$complete" | $GREP " "` 18934 if test "x$has_space" != x; then 18935 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18936 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18937 fi 18938 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18939 fi 18940 fi 18941 18942 # Now new_path has a complete unix path to the binary 18943 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18944 # Keep paths in /bin as-is, but remove trailing .exe if any 18945 new_path="${new_path/%.exe/}" 18946 # Do not save /bin paths to all_fixpath_prefixes! 18947 else 18948 # Not in mixed or Windows style, start by that. 18949 new_path=`cmd //c echo $new_path` 18950 18951 input_path="$new_path" 18952 # Check if we need to convert this using DOS-style short mode. If the path 18953 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18954 # take no chances and rewrite it. 18955 # Note: m4 eats our [], so we need to use [ and ] instead. 18956 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18957 if test "x$has_forbidden_chars" != x; then 18958 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18959 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18960 fi 18961 18962 # Output is in $new_path 18963 18964 windows_path="$new_path" 18965 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18966 unix_path=`$CYGPATH -u "$windows_path"` 18967 new_path="$unix_path" 18968 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18969 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18970 new_path="$unix_path" 18971 fi 18972 18973 # remove trailing .exe if any 18974 new_path="${new_path/%.exe/}" 18975 18976 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18977 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18978 fi 18979 18980 else 18981 # We're on a unix platform. Hooray! :) 18982 # First separate the path from the arguments. This will split at the first 18983 # space. 18984 complete="$FOUND_MAKE" 18985 path="${complete%% *}" 18986 tmp="$complete EOL" 18987 arguments="${tmp#* }" 18988 18989 # Cannot rely on the command "which" here since it doesn't always work. 18990 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18991 if test -z "$is_absolute_path"; then 18992 # Path to executable is not absolute. Find it. 18993 IFS_save="$IFS" 18994 IFS=: 18995 for p in $PATH; do 18996 if test -f "$p/$path" && test -x "$p/$path"; then 18997 new_path="$p/$path" 18998 break 18999 fi 19000 done 19001 IFS="$IFS_save" 19002 else 19003 # This is an absolute path, we can use it without further modifications. 19004 new_path="$path" 19005 fi 19006 19007 if test "x$new_path" = x; then 19008 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19009 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19010 has_space=`$ECHO "$complete" | $GREP " "` 19011 if test "x$has_space" != x; then 19012 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19013 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19014 fi 19015 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19016 fi 19017 fi 19018 19019 # Now join together the path and the arguments once again 19020 if test "x$arguments" != xEOL; then 19021 new_complete="$new_path ${arguments% *}" 19022 else 19023 new_complete="$new_path" 19024 fi 19025 19026 if test "x$complete" != "x$new_complete"; then 19027 FOUND_MAKE="$new_complete" 19028 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19029 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19030 fi 19031 fi 19032 19033 fi 19034 fi 19035 fi 19036 fi 19037 19038 fi 19039 19040 if test "x$FOUND_MAKE" = x; then 19041 if test "x$TOOLCHAIN_PATH" != x; then 19042 # We have a toolchain path, check that as well before giving up. 19043 OLD_PATH=$PATH 19044 PATH=$TOOLCHAIN_PATH:$PATH 19045 for ac_prog in gmake 19046 do 19047 # Extract the first word of "$ac_prog", so it can be a program name with args. 19048 set dummy $ac_prog; ac_word=$2 19049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19050 $as_echo_n "checking for $ac_word... " >&6; } 19051 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 19052 $as_echo_n "(cached) " >&6 19053 else 19054 case $CHECK_TOOLSDIR_GMAKE in 19055 [\\/]* | ?:[\\/]*) 19056 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 19057 ;; 19058 *) 19059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19060 for as_dir in $PATH 19061 do 19062 IFS=$as_save_IFS 19063 test -z "$as_dir" && as_dir=. 19064 for ac_exec_ext in '' $ac_executable_extensions; do 19065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19066 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 19067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19068 break 2 19069 fi 19070 done 19071 done 19072 IFS=$as_save_IFS 19073 19074 ;; 19075 esac 19076 fi 19077 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 19078 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 19079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 19080 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 19081 else 19082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19083 $as_echo "no" >&6; } 19084 fi 19085 19086 19087 test -n "$CHECK_TOOLSDIR_GMAKE" && break 19088 done 19089 19090 19091 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 19092 DESCRIPTION="gmake in tools-dir" 19093 19094 # On Cygwin, we require a newer version of make than on other platforms 19095 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19096 MAKE_VERSION_EXPR="-e 4\." 19097 MAKE_REQUIRED_VERSION="4.0" 19098 else 19099 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19100 MAKE_REQUIRED_VERSION="3.81" 19101 fi 19102 19103 if test "x$MAKE_CANDIDATE" != x; then 19104 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19105 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19106 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19107 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19108 if test "x$IS_GNU_MAKE" = x; then 19109 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19110 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19111 else 19112 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19113 if test "x$IS_MODERN_MAKE" = x; then 19114 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 19115 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 19116 else 19117 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19118 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19119 MAKE_EXPECTED_ENV='cygwin' 19120 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19121 MAKE_EXPECTED_ENV='msys' 19122 else 19123 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19124 fi 19125 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19126 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19127 else 19128 # Not relevant for non-Windows 19129 IS_MAKE_CORRECT_ENV=true 19130 fi 19131 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19132 { $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 19133 $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;} 19134 else 19135 FOUND_MAKE=$MAKE_CANDIDATE 19136 19137 # Only process if variable expands to non-empty 19138 19139 if test "x$FOUND_MAKE" != x; then 19140 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19141 19142 # First separate the path from the arguments. This will split at the first 19143 # space. 19144 complete="$FOUND_MAKE" 19145 path="${complete%% *}" 19146 tmp="$complete EOL" 19147 arguments="${tmp#* }" 19148 19149 # Input might be given as Windows format, start by converting to 19150 # unix format. 19151 new_path=`$CYGPATH -u "$path"` 19152 19153 # Now try to locate executable using which 19154 new_path=`$WHICH "$new_path" 2> /dev/null` 19155 # bat and cmd files are not always considered executable in cygwin causing which 19156 # to not find them 19157 if test "x$new_path" = x \ 19158 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19159 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19160 new_path=`$CYGPATH -u "$path"` 19161 fi 19162 if test "x$new_path" = x; then 19163 # Oops. Which didn't find the executable. 19164 # The splitting of arguments from the executable at a space might have been incorrect, 19165 # since paths with space are more likely in Windows. Give it another try with the whole 19166 # argument. 19167 path="$complete" 19168 arguments="EOL" 19169 new_path=`$CYGPATH -u "$path"` 19170 new_path=`$WHICH "$new_path" 2> /dev/null` 19171 # bat and cmd files are not always considered executable in cygwin causing which 19172 # to not find them 19173 if test "x$new_path" = x \ 19174 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19175 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19176 new_path=`$CYGPATH -u "$path"` 19177 fi 19178 if test "x$new_path" = x; then 19179 # It's still not found. Now this is an unrecoverable error. 19180 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19181 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19182 has_space=`$ECHO "$complete" | $GREP " "` 19183 if test "x$has_space" != x; then 19184 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19185 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19186 fi 19187 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19188 fi 19189 fi 19190 19191 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19192 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19193 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19194 # "foo.exe" is OK but "foo" is an error. 19195 # 19196 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19197 # It is also a way to make sure we got the proper file name for the real test later on. 19198 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19199 if test "x$test_shortpath" = x; then 19200 # Short path failed, file does not exist as specified. 19201 # Try adding .exe or .cmd 19202 if test -f "${new_path}.exe"; then 19203 input_to_shortpath="${new_path}.exe" 19204 elif test -f "${new_path}.cmd"; then 19205 input_to_shortpath="${new_path}.cmd" 19206 else 19207 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19208 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19209 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19210 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19211 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19212 fi 19213 else 19214 input_to_shortpath="$new_path" 19215 fi 19216 19217 # Call helper function which possibly converts this using DOS-style short mode. 19218 # If so, the updated path is stored in $new_path. 19219 new_path="$input_to_shortpath" 19220 19221 input_path="$input_to_shortpath" 19222 # Check if we need to convert this using DOS-style short mode. If the path 19223 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19224 # take no chances and rewrite it. 19225 # Note: m4 eats our [], so we need to use [ and ] instead. 19226 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19227 if test "x$has_forbidden_chars" != x; then 19228 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19229 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19230 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19231 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19232 # Going to short mode and back again did indeed matter. Since short mode is 19233 # case insensitive, let's make it lowercase to improve readability. 19234 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19235 # Now convert it back to Unix-style (cygpath) 19236 input_path=`$CYGPATH -u "$shortmode_path"` 19237 new_path="$input_path" 19238 fi 19239 fi 19240 19241 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19242 if test "x$test_cygdrive_prefix" = x; then 19243 # As a simple fix, exclude /usr/bin since it's not a real path. 19244 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19245 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19246 # a path prefixed by /cygdrive for fixpath to work. 19247 new_path="$CYGWIN_ROOT_PATH$input_path" 19248 fi 19249 fi 19250 19251 # remove trailing .exe if any 19252 new_path="${new_path/%.exe/}" 19253 19254 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19255 19256 # First separate the path from the arguments. This will split at the first 19257 # space. 19258 complete="$FOUND_MAKE" 19259 path="${complete%% *}" 19260 tmp="$complete EOL" 19261 arguments="${tmp#* }" 19262 19263 # Input might be given as Windows format, start by converting to 19264 # unix format. 19265 new_path="$path" 19266 19267 windows_path="$new_path" 19268 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19269 unix_path=`$CYGPATH -u "$windows_path"` 19270 new_path="$unix_path" 19271 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19272 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19273 new_path="$unix_path" 19274 fi 19275 19276 19277 # Now try to locate executable using which 19278 new_path=`$WHICH "$new_path" 2> /dev/null` 19279 19280 if test "x$new_path" = x; then 19281 # Oops. Which didn't find the executable. 19282 # The splitting of arguments from the executable at a space might have been incorrect, 19283 # since paths with space are more likely in Windows. Give it another try with the whole 19284 # argument. 19285 path="$complete" 19286 arguments="EOL" 19287 new_path="$path" 19288 19289 windows_path="$new_path" 19290 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19291 unix_path=`$CYGPATH -u "$windows_path"` 19292 new_path="$unix_path" 19293 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19294 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19295 new_path="$unix_path" 19296 fi 19297 19298 19299 new_path=`$WHICH "$new_path" 2> /dev/null` 19300 # bat and cmd files are not always considered executable in MSYS causing which 19301 # to not find them 19302 if test "x$new_path" = x \ 19303 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19304 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19305 new_path="$path" 19306 19307 windows_path="$new_path" 19308 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19309 unix_path=`$CYGPATH -u "$windows_path"` 19310 new_path="$unix_path" 19311 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19312 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19313 new_path="$unix_path" 19314 fi 19315 19316 fi 19317 19318 if test "x$new_path" = x; then 19319 # It's still not found. Now this is an unrecoverable error. 19320 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19321 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19322 has_space=`$ECHO "$complete" | $GREP " "` 19323 if test "x$has_space" != x; then 19324 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19325 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19326 fi 19327 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19328 fi 19329 fi 19330 19331 # Now new_path has a complete unix path to the binary 19332 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19333 # Keep paths in /bin as-is, but remove trailing .exe if any 19334 new_path="${new_path/%.exe/}" 19335 # Do not save /bin paths to all_fixpath_prefixes! 19336 else 19337 # Not in mixed or Windows style, start by that. 19338 new_path=`cmd //c echo $new_path` 19339 19340 input_path="$new_path" 19341 # Check if we need to convert this using DOS-style short mode. If the path 19342 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19343 # take no chances and rewrite it. 19344 # Note: m4 eats our [], so we need to use [ and ] instead. 19345 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19346 if test "x$has_forbidden_chars" != x; then 19347 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19348 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19349 fi 19350 19351 # Output is in $new_path 19352 19353 windows_path="$new_path" 19354 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19355 unix_path=`$CYGPATH -u "$windows_path"` 19356 new_path="$unix_path" 19357 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19358 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19359 new_path="$unix_path" 19360 fi 19361 19362 # remove trailing .exe if any 19363 new_path="${new_path/%.exe/}" 19364 19365 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19366 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19367 fi 19368 19369 else 19370 # We're on a unix platform. Hooray! :) 19371 # First separate the path from the arguments. This will split at the first 19372 # space. 19373 complete="$FOUND_MAKE" 19374 path="${complete%% *}" 19375 tmp="$complete EOL" 19376 arguments="${tmp#* }" 19377 19378 # Cannot rely on the command "which" here since it doesn't always work. 19379 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19380 if test -z "$is_absolute_path"; then 19381 # Path to executable is not absolute. Find it. 19382 IFS_save="$IFS" 19383 IFS=: 19384 for p in $PATH; do 19385 if test -f "$p/$path" && test -x "$p/$path"; then 19386 new_path="$p/$path" 19387 break 19388 fi 19389 done 19390 IFS="$IFS_save" 19391 else 19392 # This is an absolute path, we can use it without further modifications. 19393 new_path="$path" 19394 fi 19395 19396 if test "x$new_path" = x; then 19397 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19398 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19399 has_space=`$ECHO "$complete" | $GREP " "` 19400 if test "x$has_space" != x; then 19401 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19402 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19403 fi 19404 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19405 fi 19406 fi 19407 19408 # Now join together the path and the arguments once again 19409 if test "x$arguments" != xEOL; then 19410 new_complete="$new_path ${arguments% *}" 19411 else 19412 new_complete="$new_path" 19413 fi 19414 19415 if test "x$complete" != "x$new_complete"; then 19416 FOUND_MAKE="$new_complete" 19417 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19418 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19419 fi 19420 fi 19421 19422 fi 19423 fi 19424 fi 19425 fi 19426 19427 if test "x$FOUND_MAKE" = x; then 19428 for ac_prog in make 19429 do 19430 # Extract the first word of "$ac_prog", so it can be a program name with args. 19431 set dummy $ac_prog; ac_word=$2 19432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19433 $as_echo_n "checking for $ac_word... " >&6; } 19434 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 19435 $as_echo_n "(cached) " >&6 19436 else 19437 case $CHECK_TOOLSDIR_MAKE in 19438 [\\/]* | ?:[\\/]*) 19439 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 19440 ;; 19441 *) 19442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19443 for as_dir in $PATH 19444 do 19445 IFS=$as_save_IFS 19446 test -z "$as_dir" && as_dir=. 19447 for ac_exec_ext in '' $ac_executable_extensions; do 19448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19449 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 19450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19451 break 2 19452 fi 19453 done 19454 done 19455 IFS=$as_save_IFS 19456 19457 ;; 19458 esac 19459 fi 19460 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 19461 if test -n "$CHECK_TOOLSDIR_MAKE"; then 19462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 19463 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 19464 else 19465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19466 $as_echo "no" >&6; } 19467 fi 19468 19469 19470 test -n "$CHECK_TOOLSDIR_MAKE" && break 19471 done 19472 19473 19474 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 19475 DESCRIPTION="make in tools-dir" 19476 19477 # On Cygwin, we require a newer version of make than on other platforms 19478 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19479 MAKE_VERSION_EXPR="-e 4\." 19480 MAKE_REQUIRED_VERSION="4.0" 19481 else 19482 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19483 MAKE_REQUIRED_VERSION="3.81" 19484 fi 19485 19486 if test "x$MAKE_CANDIDATE" != x; then 19487 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19488 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19489 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19490 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19491 if test "x$IS_GNU_MAKE" = x; then 19492 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19493 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19494 else 19495 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19496 if test "x$IS_MODERN_MAKE" = x; then 19497 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 19498 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 19499 else 19500 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19501 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19502 MAKE_EXPECTED_ENV='cygwin' 19503 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19504 MAKE_EXPECTED_ENV='msys' 19505 else 19506 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19507 fi 19508 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19509 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19510 else 19511 # Not relevant for non-Windows 19512 IS_MAKE_CORRECT_ENV=true 19513 fi 19514 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19515 { $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 19516 $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;} 19517 else 19518 FOUND_MAKE=$MAKE_CANDIDATE 19519 19520 # Only process if variable expands to non-empty 19521 19522 if test "x$FOUND_MAKE" != x; then 19523 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19524 19525 # First separate the path from the arguments. This will split at the first 19526 # space. 19527 complete="$FOUND_MAKE" 19528 path="${complete%% *}" 19529 tmp="$complete EOL" 19530 arguments="${tmp#* }" 19531 19532 # Input might be given as Windows format, start by converting to 19533 # unix format. 19534 new_path=`$CYGPATH -u "$path"` 19535 19536 # Now try to locate executable using which 19537 new_path=`$WHICH "$new_path" 2> /dev/null` 19538 # bat and cmd files are not always considered executable in cygwin causing which 19539 # to not find them 19540 if test "x$new_path" = x \ 19541 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19542 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19543 new_path=`$CYGPATH -u "$path"` 19544 fi 19545 if test "x$new_path" = x; then 19546 # Oops. Which didn't find the executable. 19547 # The splitting of arguments from the executable at a space might have been incorrect, 19548 # since paths with space are more likely in Windows. Give it another try with the whole 19549 # argument. 19550 path="$complete" 19551 arguments="EOL" 19552 new_path=`$CYGPATH -u "$path"` 19553 new_path=`$WHICH "$new_path" 2> /dev/null` 19554 # bat and cmd files are not always considered executable in cygwin causing which 19555 # to not find them 19556 if test "x$new_path" = x \ 19557 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19558 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19559 new_path=`$CYGPATH -u "$path"` 19560 fi 19561 if test "x$new_path" = x; then 19562 # It's still not found. Now this is an unrecoverable error. 19563 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19564 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19565 has_space=`$ECHO "$complete" | $GREP " "` 19566 if test "x$has_space" != x; then 19567 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19568 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19569 fi 19570 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19571 fi 19572 fi 19573 19574 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19575 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19576 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19577 # "foo.exe" is OK but "foo" is an error. 19578 # 19579 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19580 # It is also a way to make sure we got the proper file name for the real test later on. 19581 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19582 if test "x$test_shortpath" = x; then 19583 # Short path failed, file does not exist as specified. 19584 # Try adding .exe or .cmd 19585 if test -f "${new_path}.exe"; then 19586 input_to_shortpath="${new_path}.exe" 19587 elif test -f "${new_path}.cmd"; then 19588 input_to_shortpath="${new_path}.cmd" 19589 else 19590 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19591 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19592 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19593 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19594 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19595 fi 19596 else 19597 input_to_shortpath="$new_path" 19598 fi 19599 19600 # Call helper function which possibly converts this using DOS-style short mode. 19601 # If so, the updated path is stored in $new_path. 19602 new_path="$input_to_shortpath" 19603 19604 input_path="$input_to_shortpath" 19605 # Check if we need to convert this using DOS-style short mode. If the path 19606 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19607 # take no chances and rewrite it. 19608 # Note: m4 eats our [], so we need to use [ and ] instead. 19609 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19610 if test "x$has_forbidden_chars" != x; then 19611 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19612 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19613 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19614 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19615 # Going to short mode and back again did indeed matter. Since short mode is 19616 # case insensitive, let's make it lowercase to improve readability. 19617 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19618 # Now convert it back to Unix-style (cygpath) 19619 input_path=`$CYGPATH -u "$shortmode_path"` 19620 new_path="$input_path" 19621 fi 19622 fi 19623 19624 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19625 if test "x$test_cygdrive_prefix" = x; then 19626 # As a simple fix, exclude /usr/bin since it's not a real path. 19627 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19628 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19629 # a path prefixed by /cygdrive for fixpath to work. 19630 new_path="$CYGWIN_ROOT_PATH$input_path" 19631 fi 19632 fi 19633 19634 # remove trailing .exe if any 19635 new_path="${new_path/%.exe/}" 19636 19637 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19638 19639 # First separate the path from the arguments. This will split at the first 19640 # space. 19641 complete="$FOUND_MAKE" 19642 path="${complete%% *}" 19643 tmp="$complete EOL" 19644 arguments="${tmp#* }" 19645 19646 # Input might be given as Windows format, start by converting to 19647 # unix format. 19648 new_path="$path" 19649 19650 windows_path="$new_path" 19651 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19652 unix_path=`$CYGPATH -u "$windows_path"` 19653 new_path="$unix_path" 19654 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19655 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19656 new_path="$unix_path" 19657 fi 19658 19659 19660 # Now try to locate executable using which 19661 new_path=`$WHICH "$new_path" 2> /dev/null` 19662 19663 if test "x$new_path" = x; then 19664 # Oops. Which didn't find the executable. 19665 # The splitting of arguments from the executable at a space might have been incorrect, 19666 # since paths with space are more likely in Windows. Give it another try with the whole 19667 # argument. 19668 path="$complete" 19669 arguments="EOL" 19670 new_path="$path" 19671 19672 windows_path="$new_path" 19673 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19674 unix_path=`$CYGPATH -u "$windows_path"` 19675 new_path="$unix_path" 19676 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19677 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19678 new_path="$unix_path" 19679 fi 19680 19681 19682 new_path=`$WHICH "$new_path" 2> /dev/null` 19683 # bat and cmd files are not always considered executable in MSYS causing which 19684 # to not find them 19685 if test "x$new_path" = x \ 19686 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19687 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19688 new_path="$path" 19689 19690 windows_path="$new_path" 19691 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19692 unix_path=`$CYGPATH -u "$windows_path"` 19693 new_path="$unix_path" 19694 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19695 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19696 new_path="$unix_path" 19697 fi 19698 19699 fi 19700 19701 if test "x$new_path" = x; then 19702 # It's still not found. Now this is an unrecoverable error. 19703 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19704 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19705 has_space=`$ECHO "$complete" | $GREP " "` 19706 if test "x$has_space" != x; then 19707 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19708 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19709 fi 19710 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19711 fi 19712 fi 19713 19714 # Now new_path has a complete unix path to the binary 19715 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19716 # Keep paths in /bin as-is, but remove trailing .exe if any 19717 new_path="${new_path/%.exe/}" 19718 # Do not save /bin paths to all_fixpath_prefixes! 19719 else 19720 # Not in mixed or Windows style, start by that. 19721 new_path=`cmd //c echo $new_path` 19722 19723 input_path="$new_path" 19724 # Check if we need to convert this using DOS-style short mode. If the path 19725 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19726 # take no chances and rewrite it. 19727 # Note: m4 eats our [], so we need to use [ and ] instead. 19728 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19729 if test "x$has_forbidden_chars" != x; then 19730 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19731 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19732 fi 19733 19734 # Output is in $new_path 19735 19736 windows_path="$new_path" 19737 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19738 unix_path=`$CYGPATH -u "$windows_path"` 19739 new_path="$unix_path" 19740 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19741 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19742 new_path="$unix_path" 19743 fi 19744 19745 # remove trailing .exe if any 19746 new_path="${new_path/%.exe/}" 19747 19748 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19749 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19750 fi 19751 19752 else 19753 # We're on a unix platform. Hooray! :) 19754 # First separate the path from the arguments. This will split at the first 19755 # space. 19756 complete="$FOUND_MAKE" 19757 path="${complete%% *}" 19758 tmp="$complete EOL" 19759 arguments="${tmp#* }" 19760 19761 # Cannot rely on the command "which" here since it doesn't always work. 19762 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19763 if test -z "$is_absolute_path"; then 19764 # Path to executable is not absolute. Find it. 19765 IFS_save="$IFS" 19766 IFS=: 19767 for p in $PATH; do 19768 if test -f "$p/$path" && test -x "$p/$path"; then 19769 new_path="$p/$path" 19770 break 19771 fi 19772 done 19773 IFS="$IFS_save" 19774 else 19775 # This is an absolute path, we can use it without further modifications. 19776 new_path="$path" 19777 fi 19778 19779 if test "x$new_path" = x; then 19780 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19781 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19782 has_space=`$ECHO "$complete" | $GREP " "` 19783 if test "x$has_space" != x; then 19784 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19785 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19786 fi 19787 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19788 fi 19789 fi 19790 19791 # Now join together the path and the arguments once again 19792 if test "x$arguments" != xEOL; then 19793 new_complete="$new_path ${arguments% *}" 19794 else 19795 new_complete="$new_path" 19796 fi 19797 19798 if test "x$complete" != "x$new_complete"; then 19799 FOUND_MAKE="$new_complete" 19800 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19801 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19802 fi 19803 fi 19804 19805 fi 19806 fi 19807 fi 19808 fi 19809 19810 fi 19811 PATH=$OLD_PATH 19812 fi 19813 fi 19814 19815 if test "x$FOUND_MAKE" = x; then 19816 as_fn_error $? "Cannot find GNU make $MAKE_REQUIRED_VERSION or newer! Please put it in the path, or add e.g. MAKE=/opt/gmake3.81/make as argument to configure." "$LINENO" 5 19817 fi 19818 19819 else 19820 # If it succeeded, then it was overridden by the user. We will use it 19821 # for the tool. 19822 19823 # First remove it from the list of overridden variables, so we can test 19824 # for unknown variables in the end. 19825 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19826 19827 # Check if we try to supply an empty value 19828 if test "x$MAKE" = x; then 19829 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5 19830 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;} 19831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 19832 $as_echo_n "checking for MAKE... " >&6; } 19833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 19834 $as_echo "disabled" >&6; } 19835 else 19836 # Check if the provided tool contains a complete path. 19837 tool_specified="$MAKE" 19838 tool_basename="${tool_specified##*/}" 19839 if test "x$tool_basename" = "x$tool_specified"; then 19840 # A command without a complete path is provided, search $PATH. 19841 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5 19842 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;} 19843 # Extract the first word of "$tool_basename", so it can be a program name with args. 19844 set dummy $tool_basename; ac_word=$2 19845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19846 $as_echo_n "checking for $ac_word... " >&6; } 19847 if ${ac_cv_path_MAKE+:} false; then : 19848 $as_echo_n "(cached) " >&6 19849 else 19850 case $MAKE in 19851 [\\/]* | ?:[\\/]*) 19852 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path. 19853 ;; 19854 *) 19855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19856 for as_dir in $PATH 19857 do 19858 IFS=$as_save_IFS 19859 test -z "$as_dir" && as_dir=. 19860 for ac_exec_ext in '' $ac_executable_extensions; do 19861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19862 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext" 19863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19864 break 2 19865 fi 19866 done 19867 done 19868 IFS=$as_save_IFS 19869 19870 ;; 19871 esac 19872 fi 19873 MAKE=$ac_cv_path_MAKE 19874 if test -n "$MAKE"; then 19875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 19876 $as_echo "$MAKE" >&6; } 19877 else 19878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19879 $as_echo "no" >&6; } 19880 fi 19881 19882 19883 if test "x$MAKE" = x; then 19884 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19885 fi 19886 else 19887 # Otherwise we believe it is a complete path. Use it as it is. 19888 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5 19889 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;} 19890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 19891 $as_echo_n "checking for MAKE... " >&6; } 19892 if test ! -x "$tool_specified"; then 19893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19894 $as_echo "not found" >&6; } 19895 as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5 19896 fi 19897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19898 $as_echo "$tool_specified" >&6; } 19899 fi 19900 fi 19901 fi 19902 19903 # If MAKE was set by user, verify the version 19904 19905 MAKE_CANDIDATE=""$MAKE"" 19906 DESCRIPTION="user supplied MAKE=$MAKE" 19907 19908 # On Cygwin, we require a newer version of make than on other platforms 19909 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19910 MAKE_VERSION_EXPR="-e 4\." 19911 MAKE_REQUIRED_VERSION="4.0" 19912 else 19913 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19914 MAKE_REQUIRED_VERSION="3.81" 19915 fi 19916 19917 if test "x$MAKE_CANDIDATE" != x; then 19918 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19919 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19920 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19921 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19922 if test "x$IS_GNU_MAKE" = x; then 19923 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19924 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19925 else 19926 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19927 if test "x$IS_MODERN_MAKE" = x; then 19928 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 19929 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 19930 else 19931 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19932 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19933 MAKE_EXPECTED_ENV='cygwin' 19934 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19935 MAKE_EXPECTED_ENV='msys' 19936 else 19937 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19938 fi 19939 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19940 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19941 else 19942 # Not relevant for non-Windows 19943 IS_MAKE_CORRECT_ENV=true 19944 fi 19945 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19946 { $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 19947 $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;} 19948 else 19949 FOUND_MAKE=$MAKE_CANDIDATE 19950 19951 # Only process if variable expands to non-empty 19952 19953 if test "x$FOUND_MAKE" != x; then 19954 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19955 19956 # First separate the path from the arguments. This will split at the first 19957 # space. 19958 complete="$FOUND_MAKE" 19959 path="${complete%% *}" 19960 tmp="$complete EOL" 19961 arguments="${tmp#* }" 19962 19963 # Input might be given as Windows format, start by converting to 19964 # unix format. 19965 new_path=`$CYGPATH -u "$path"` 19966 19967 # Now try to locate executable using which 19968 new_path=`$WHICH "$new_path" 2> /dev/null` 19969 # bat and cmd files are not always considered executable in cygwin causing which 19970 # to not find them 19971 if test "x$new_path" = x \ 19972 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19973 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19974 new_path=`$CYGPATH -u "$path"` 19975 fi 19976 if test "x$new_path" = x; then 19977 # Oops. Which didn't find the executable. 19978 # The splitting of arguments from the executable at a space might have been incorrect, 19979 # since paths with space are more likely in Windows. Give it another try with the whole 19980 # argument. 19981 path="$complete" 19982 arguments="EOL" 19983 new_path=`$CYGPATH -u "$path"` 19984 new_path=`$WHICH "$new_path" 2> /dev/null` 19985 # bat and cmd files are not always considered executable in cygwin causing which 19986 # to not find them 19987 if test "x$new_path" = x \ 19988 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19989 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19990 new_path=`$CYGPATH -u "$path"` 19991 fi 19992 if test "x$new_path" = x; then 19993 # It's still not found. Now this is an unrecoverable error. 19994 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19995 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19996 has_space=`$ECHO "$complete" | $GREP " "` 19997 if test "x$has_space" != x; then 19998 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19999 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20000 fi 20001 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20002 fi 20003 fi 20004 20005 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20006 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20007 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20008 # "foo.exe" is OK but "foo" is an error. 20009 # 20010 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20011 # It is also a way to make sure we got the proper file name for the real test later on. 20012 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20013 if test "x$test_shortpath" = x; then 20014 # Short path failed, file does not exist as specified. 20015 # Try adding .exe or .cmd 20016 if test -f "${new_path}.exe"; then 20017 input_to_shortpath="${new_path}.exe" 20018 elif test -f "${new_path}.cmd"; then 20019 input_to_shortpath="${new_path}.cmd" 20020 else 20021 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20022 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20023 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20024 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20025 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20026 fi 20027 else 20028 input_to_shortpath="$new_path" 20029 fi 20030 20031 # Call helper function which possibly converts this using DOS-style short mode. 20032 # If so, the updated path is stored in $new_path. 20033 new_path="$input_to_shortpath" 20034 20035 input_path="$input_to_shortpath" 20036 # Check if we need to convert this using DOS-style short mode. If the path 20037 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20038 # take no chances and rewrite it. 20039 # Note: m4 eats our [], so we need to use [ and ] instead. 20040 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20041 if test "x$has_forbidden_chars" != x; then 20042 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20043 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20044 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20045 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20046 # Going to short mode and back again did indeed matter. Since short mode is 20047 # case insensitive, let's make it lowercase to improve readability. 20048 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20049 # Now convert it back to Unix-style (cygpath) 20050 input_path=`$CYGPATH -u "$shortmode_path"` 20051 new_path="$input_path" 20052 fi 20053 fi 20054 20055 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20056 if test "x$test_cygdrive_prefix" = x; then 20057 # As a simple fix, exclude /usr/bin since it's not a real path. 20058 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20059 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20060 # a path prefixed by /cygdrive for fixpath to work. 20061 new_path="$CYGWIN_ROOT_PATH$input_path" 20062 fi 20063 fi 20064 20065 # remove trailing .exe if any 20066 new_path="${new_path/%.exe/}" 20067 20068 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20069 20070 # First separate the path from the arguments. This will split at the first 20071 # space. 20072 complete="$FOUND_MAKE" 20073 path="${complete%% *}" 20074 tmp="$complete EOL" 20075 arguments="${tmp#* }" 20076 20077 # Input might be given as Windows format, start by converting to 20078 # unix format. 20079 new_path="$path" 20080 20081 windows_path="$new_path" 20082 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20083 unix_path=`$CYGPATH -u "$windows_path"` 20084 new_path="$unix_path" 20085 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20086 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20087 new_path="$unix_path" 20088 fi 20089 20090 20091 # Now try to locate executable using which 20092 new_path=`$WHICH "$new_path" 2> /dev/null` 20093 20094 if test "x$new_path" = x; then 20095 # Oops. Which didn't find the executable. 20096 # The splitting of arguments from the executable at a space might have been incorrect, 20097 # since paths with space are more likely in Windows. Give it another try with the whole 20098 # argument. 20099 path="$complete" 20100 arguments="EOL" 20101 new_path="$path" 20102 20103 windows_path="$new_path" 20104 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20105 unix_path=`$CYGPATH -u "$windows_path"` 20106 new_path="$unix_path" 20107 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20108 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20109 new_path="$unix_path" 20110 fi 20111 20112 20113 new_path=`$WHICH "$new_path" 2> /dev/null` 20114 # bat and cmd files are not always considered executable in MSYS causing which 20115 # to not find them 20116 if test "x$new_path" = x \ 20117 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20118 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20119 new_path="$path" 20120 20121 windows_path="$new_path" 20122 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20123 unix_path=`$CYGPATH -u "$windows_path"` 20124 new_path="$unix_path" 20125 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20126 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20127 new_path="$unix_path" 20128 fi 20129 20130 fi 20131 20132 if test "x$new_path" = x; then 20133 # It's still not found. Now this is an unrecoverable error. 20134 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20135 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20136 has_space=`$ECHO "$complete" | $GREP " "` 20137 if test "x$has_space" != x; then 20138 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20139 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20140 fi 20141 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20142 fi 20143 fi 20144 20145 # Now new_path has a complete unix path to the binary 20146 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20147 # Keep paths in /bin as-is, but remove trailing .exe if any 20148 new_path="${new_path/%.exe/}" 20149 # Do not save /bin paths to all_fixpath_prefixes! 20150 else 20151 # Not in mixed or Windows style, start by that. 20152 new_path=`cmd //c echo $new_path` 20153 20154 input_path="$new_path" 20155 # Check if we need to convert this using DOS-style short mode. If the path 20156 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20157 # take no chances and rewrite it. 20158 # Note: m4 eats our [], so we need to use [ and ] instead. 20159 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20160 if test "x$has_forbidden_chars" != x; then 20161 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20162 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20163 fi 20164 20165 # Output is in $new_path 20166 20167 windows_path="$new_path" 20168 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20169 unix_path=`$CYGPATH -u "$windows_path"` 20170 new_path="$unix_path" 20171 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20172 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20173 new_path="$unix_path" 20174 fi 20175 20176 # remove trailing .exe if any 20177 new_path="${new_path/%.exe/}" 20178 20179 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20180 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20181 fi 20182 20183 else 20184 # We're on a unix platform. Hooray! :) 20185 # First separate the path from the arguments. This will split at the first 20186 # space. 20187 complete="$FOUND_MAKE" 20188 path="${complete%% *}" 20189 tmp="$complete EOL" 20190 arguments="${tmp#* }" 20191 20192 # Cannot rely on the command "which" here since it doesn't always work. 20193 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20194 if test -z "$is_absolute_path"; then 20195 # Path to executable is not absolute. Find it. 20196 IFS_save="$IFS" 20197 IFS=: 20198 for p in $PATH; do 20199 if test -f "$p/$path" && test -x "$p/$path"; then 20200 new_path="$p/$path" 20201 break 20202 fi 20203 done 20204 IFS="$IFS_save" 20205 else 20206 # This is an absolute path, we can use it without further modifications. 20207 new_path="$path" 20208 fi 20209 20210 if test "x$new_path" = x; then 20211 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20212 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20213 has_space=`$ECHO "$complete" | $GREP " "` 20214 if test "x$has_space" != x; then 20215 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20216 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20217 fi 20218 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20219 fi 20220 fi 20221 20222 # Now join together the path and the arguments once again 20223 if test "x$arguments" != xEOL; then 20224 new_complete="$new_path ${arguments% *}" 20225 else 20226 new_complete="$new_path" 20227 fi 20228 20229 if test "x$complete" != "x$new_complete"; then 20230 FOUND_MAKE="$new_complete" 20231 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20232 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20233 fi 20234 fi 20235 20236 fi 20237 fi 20238 fi 20239 fi 20240 20241 if test "x$FOUND_MAKE" = x; then 20242 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5 20243 fi 20244 20245 fi 20246 20247 20248 MAKE=$FOUND_MAKE 20249 20250 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 20251 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 20252 20253 20254 # Check if make supports the output sync option and if so, setup using it. 20255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 20256 $as_echo_n "checking if make --output-sync is supported... " >&6; } 20257 if $MAKE --version -O > /dev/null 2>&1; then 20258 OUTPUT_SYNC_SUPPORTED=true 20259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20260 $as_echo "yes" >&6; } 20261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 20262 $as_echo_n "checking for output-sync value... " >&6; } 20263 20264 # Check whether --with-output-sync was given. 20265 if test "${with_output_sync+set}" = set; then : 20266 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 20267 fi 20268 20269 if test "x$OUTPUT_SYNC" = "x"; then 20270 OUTPUT_SYNC=none 20271 fi 20272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 20273 $as_echo "$OUTPUT_SYNC" >&6; } 20274 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 20275 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 20276 fi 20277 else 20278 OUTPUT_SYNC_SUPPORTED=false 20279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20280 $as_echo "no" >&6; } 20281 fi 20282 20283 20284 20285 20286 20287 20288 # Test if find supports -delete 20289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 20290 $as_echo_n "checking if find supports -delete... " >&6; } 20291 FIND_DELETE="-delete" 20292 20293 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 20294 20295 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 20296 20297 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 20298 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 20299 # No, it does not. 20300 rm $DELETEDIR/TestIfFindSupportsDelete 20301 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 20302 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 20303 FIND_DELETE="-print | xargs rm" 20304 else 20305 FIND_DELETE="-exec rm \{\} \+" 20306 fi 20307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20308 $as_echo "no" >&6; } 20309 else 20310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20311 $as_echo "yes" >&6; } 20312 fi 20313 rmdir $DELETEDIR 20314 20315 20316 20317 # These tools might not be installed by default, 20318 # need hint on how to install them. 20319 20320 20321 20322 # Publish this variable in the help. 20323 20324 20325 if [ -z "${UNZIP+x}" ]; then 20326 # The variable is not set by user, try to locate tool using the code snippet 20327 for ac_prog in unzip 20328 do 20329 # Extract the first word of "$ac_prog", so it can be a program name with args. 20330 set dummy $ac_prog; ac_word=$2 20331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20332 $as_echo_n "checking for $ac_word... " >&6; } 20333 if ${ac_cv_path_UNZIP+:} false; then : 20334 $as_echo_n "(cached) " >&6 20335 else 20336 case $UNZIP in 20337 [\\/]* | ?:[\\/]*) 20338 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 20339 ;; 20340 *) 20341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20342 for as_dir in $PATH 20343 do 20344 IFS=$as_save_IFS 20345 test -z "$as_dir" && as_dir=. 20346 for ac_exec_ext in '' $ac_executable_extensions; do 20347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20348 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 20349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20350 break 2 20351 fi 20352 done 20353 done 20354 IFS=$as_save_IFS 20355 20356 ;; 20357 esac 20358 fi 20359 UNZIP=$ac_cv_path_UNZIP 20360 if test -n "$UNZIP"; then 20361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 20362 $as_echo "$UNZIP" >&6; } 20363 else 20364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20365 $as_echo "no" >&6; } 20366 fi 20367 20368 20369 test -n "$UNZIP" && break 20370 done 20371 20372 else 20373 # The variable is set, but is it from the command line or the environment? 20374 20375 # Try to remove the string !UNZIP! from our list. 20376 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 20377 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 20378 # If it failed, the variable was not from the command line. Ignore it, 20379 # but warn the user (except for BASH, which is always set by the calling BASH). 20380 if test "xUNZIP" != xBASH; then 20381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 20382 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 20383 fi 20384 # Try to locate tool using the code snippet 20385 for ac_prog in unzip 20386 do 20387 # Extract the first word of "$ac_prog", so it can be a program name with args. 20388 set dummy $ac_prog; ac_word=$2 20389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20390 $as_echo_n "checking for $ac_word... " >&6; } 20391 if ${ac_cv_path_UNZIP+:} false; then : 20392 $as_echo_n "(cached) " >&6 20393 else 20394 case $UNZIP in 20395 [\\/]* | ?:[\\/]*) 20396 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 20397 ;; 20398 *) 20399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20400 for as_dir in $PATH 20401 do 20402 IFS=$as_save_IFS 20403 test -z "$as_dir" && as_dir=. 20404 for ac_exec_ext in '' $ac_executable_extensions; do 20405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20406 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 20407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20408 break 2 20409 fi 20410 done 20411 done 20412 IFS=$as_save_IFS 20413 20414 ;; 20415 esac 20416 fi 20417 UNZIP=$ac_cv_path_UNZIP 20418 if test -n "$UNZIP"; then 20419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 20420 $as_echo "$UNZIP" >&6; } 20421 else 20422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20423 $as_echo "no" >&6; } 20424 fi 20425 20426 20427 test -n "$UNZIP" && break 20428 done 20429 20430 else 20431 # If it succeeded, then it was overridden by the user. We will use it 20432 # for the tool. 20433 20434 # First remove it from the list of overridden variables, so we can test 20435 # for unknown variables in the end. 20436 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 20437 20438 # Check if we try to supply an empty value 20439 if test "x$UNZIP" = x; then 20440 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5 20441 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;} 20442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 20443 $as_echo_n "checking for UNZIP... " >&6; } 20444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 20445 $as_echo "disabled" >&6; } 20446 else 20447 # Check if the provided tool contains a complete path. 20448 tool_specified="$UNZIP" 20449 tool_basename="${tool_specified##*/}" 20450 if test "x$tool_basename" = "x$tool_specified"; then 20451 # A command without a complete path is provided, search $PATH. 20452 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 20453 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 20454 # Extract the first word of "$tool_basename", so it can be a program name with args. 20455 set dummy $tool_basename; ac_word=$2 20456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20457 $as_echo_n "checking for $ac_word... " >&6; } 20458 if ${ac_cv_path_UNZIP+:} false; then : 20459 $as_echo_n "(cached) " >&6 20460 else 20461 case $UNZIP in 20462 [\\/]* | ?:[\\/]*) 20463 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 20464 ;; 20465 *) 20466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20467 for as_dir in $PATH 20468 do 20469 IFS=$as_save_IFS 20470 test -z "$as_dir" && as_dir=. 20471 for ac_exec_ext in '' $ac_executable_extensions; do 20472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20473 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 20474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20475 break 2 20476 fi 20477 done 20478 done 20479 IFS=$as_save_IFS 20480 20481 ;; 20482 esac 20483 fi 20484 UNZIP=$ac_cv_path_UNZIP 20485 if test -n "$UNZIP"; then 20486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 20487 $as_echo "$UNZIP" >&6; } 20488 else 20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20490 $as_echo "no" >&6; } 20491 fi 20492 20493 20494 if test "x$UNZIP" = x; then 20495 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 20496 fi 20497 else 20498 # Otherwise we believe it is a complete path. Use it as it is. 20499 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 20500 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 20501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 20502 $as_echo_n "checking for UNZIP... " >&6; } 20503 if test ! -x "$tool_specified"; then 20504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 20505 $as_echo "not found" >&6; } 20506 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 20507 fi 20508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 20509 $as_echo "$tool_specified" >&6; } 20510 fi 20511 fi 20512 fi 20513 20514 fi 20515 20516 20517 20518 if test "x$UNZIP" = x; then 20519 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 20520 fi 20521 20522 20523 20524 20525 20526 # Publish this variable in the help. 20527 20528 20529 if [ -z "${ZIP+x}" ]; then 20530 # The variable is not set by user, try to locate tool using the code snippet 20531 for ac_prog in zip 20532 do 20533 # Extract the first word of "$ac_prog", so it can be a program name with args. 20534 set dummy $ac_prog; ac_word=$2 20535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20536 $as_echo_n "checking for $ac_word... " >&6; } 20537 if ${ac_cv_path_ZIP+:} false; then : 20538 $as_echo_n "(cached) " >&6 20539 else 20540 case $ZIP in 20541 [\\/]* | ?:[\\/]*) 20542 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 20543 ;; 20544 *) 20545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20546 for as_dir in $PATH 20547 do 20548 IFS=$as_save_IFS 20549 test -z "$as_dir" && as_dir=. 20550 for ac_exec_ext in '' $ac_executable_extensions; do 20551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20552 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 20553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20554 break 2 20555 fi 20556 done 20557 done 20558 IFS=$as_save_IFS 20559 20560 ;; 20561 esac 20562 fi 20563 ZIP=$ac_cv_path_ZIP 20564 if test -n "$ZIP"; then 20565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 20566 $as_echo "$ZIP" >&6; } 20567 else 20568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20569 $as_echo "no" >&6; } 20570 fi 20571 20572 20573 test -n "$ZIP" && break 20574 done 20575 20576 else 20577 # The variable is set, but is it from the command line or the environment? 20578 20579 # Try to remove the string !ZIP! from our list. 20580 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 20581 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 20582 # If it failed, the variable was not from the command line. Ignore it, 20583 # but warn the user (except for BASH, which is always set by the calling BASH). 20584 if test "xZIP" != xBASH; then 20585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 20586 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 20587 fi 20588 # Try to locate tool using the code snippet 20589 for ac_prog in zip 20590 do 20591 # Extract the first word of "$ac_prog", so it can be a program name with args. 20592 set dummy $ac_prog; ac_word=$2 20593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20594 $as_echo_n "checking for $ac_word... " >&6; } 20595 if ${ac_cv_path_ZIP+:} false; then : 20596 $as_echo_n "(cached) " >&6 20597 else 20598 case $ZIP in 20599 [\\/]* | ?:[\\/]*) 20600 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 20601 ;; 20602 *) 20603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20604 for as_dir in $PATH 20605 do 20606 IFS=$as_save_IFS 20607 test -z "$as_dir" && as_dir=. 20608 for ac_exec_ext in '' $ac_executable_extensions; do 20609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20610 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 20611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20612 break 2 20613 fi 20614 done 20615 done 20616 IFS=$as_save_IFS 20617 20618 ;; 20619 esac 20620 fi 20621 ZIP=$ac_cv_path_ZIP 20622 if test -n "$ZIP"; then 20623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 20624 $as_echo "$ZIP" >&6; } 20625 else 20626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20627 $as_echo "no" >&6; } 20628 fi 20629 20630 20631 test -n "$ZIP" && break 20632 done 20633 20634 else 20635 # If it succeeded, then it was overridden by the user. We will use it 20636 # for the tool. 20637 20638 # First remove it from the list of overridden variables, so we can test 20639 # for unknown variables in the end. 20640 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 20641 20642 # Check if we try to supply an empty value 20643 if test "x$ZIP" = x; then 20644 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIP= (no value)" >&5 20645 $as_echo "$as_me: Setting user supplied tool ZIP= (no value)" >&6;} 20646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 20647 $as_echo_n "checking for ZIP... " >&6; } 20648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 20649 $as_echo "disabled" >&6; } 20650 else 20651 # Check if the provided tool contains a complete path. 20652 tool_specified="$ZIP" 20653 tool_basename="${tool_specified##*/}" 20654 if test "x$tool_basename" = "x$tool_specified"; then 20655 # A command without a complete path is provided, search $PATH. 20656 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 20657 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 20658 # Extract the first word of "$tool_basename", so it can be a program name with args. 20659 set dummy $tool_basename; ac_word=$2 20660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20661 $as_echo_n "checking for $ac_word... " >&6; } 20662 if ${ac_cv_path_ZIP+:} false; then : 20663 $as_echo_n "(cached) " >&6 20664 else 20665 case $ZIP in 20666 [\\/]* | ?:[\\/]*) 20667 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 20668 ;; 20669 *) 20670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20671 for as_dir in $PATH 20672 do 20673 IFS=$as_save_IFS 20674 test -z "$as_dir" && as_dir=. 20675 for ac_exec_ext in '' $ac_executable_extensions; do 20676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20677 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 20678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20679 break 2 20680 fi 20681 done 20682 done 20683 IFS=$as_save_IFS 20684 20685 ;; 20686 esac 20687 fi 20688 ZIP=$ac_cv_path_ZIP 20689 if test -n "$ZIP"; then 20690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 20691 $as_echo "$ZIP" >&6; } 20692 else 20693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20694 $as_echo "no" >&6; } 20695 fi 20696 20697 20698 if test "x$ZIP" = x; then 20699 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 20700 fi 20701 else 20702 # Otherwise we believe it is a complete path. Use it as it is. 20703 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 20704 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 20705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 20706 $as_echo_n "checking for ZIP... " >&6; } 20707 if test ! -x "$tool_specified"; then 20708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 20709 $as_echo "not found" >&6; } 20710 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 20711 fi 20712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 20713 $as_echo "$tool_specified" >&6; } 20714 fi 20715 fi 20716 fi 20717 20718 fi 20719 20720 20721 20722 if test "x$ZIP" = x; then 20723 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 20724 fi 20725 20726 20727 20728 # Non-required basic tools 20729 20730 20731 20732 # Publish this variable in the help. 20733 20734 20735 if [ -z "${LDD+x}" ]; then 20736 # The variable is not set by user, try to locate tool using the code snippet 20737 for ac_prog in ldd 20738 do 20739 # Extract the first word of "$ac_prog", so it can be a program name with args. 20740 set dummy $ac_prog; ac_word=$2 20741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20742 $as_echo_n "checking for $ac_word... " >&6; } 20743 if ${ac_cv_path_LDD+:} false; then : 20744 $as_echo_n "(cached) " >&6 20745 else 20746 case $LDD in 20747 [\\/]* | ?:[\\/]*) 20748 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 20749 ;; 20750 *) 20751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20752 for as_dir in $PATH 20753 do 20754 IFS=$as_save_IFS 20755 test -z "$as_dir" && as_dir=. 20756 for ac_exec_ext in '' $ac_executable_extensions; do 20757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20758 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 20759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20760 break 2 20761 fi 20762 done 20763 done 20764 IFS=$as_save_IFS 20765 20766 ;; 20767 esac 20768 fi 20769 LDD=$ac_cv_path_LDD 20770 if test -n "$LDD"; then 20771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 20772 $as_echo "$LDD" >&6; } 20773 else 20774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20775 $as_echo "no" >&6; } 20776 fi 20777 20778 20779 test -n "$LDD" && break 20780 done 20781 20782 else 20783 # The variable is set, but is it from the command line or the environment? 20784 20785 # Try to remove the string !LDD! from our list. 20786 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 20787 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 20788 # If it failed, the variable was not from the command line. Ignore it, 20789 # but warn the user (except for BASH, which is always set by the calling BASH). 20790 if test "xLDD" != xBASH; then 20791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 20792 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 20793 fi 20794 # Try to locate tool using the code snippet 20795 for ac_prog in ldd 20796 do 20797 # Extract the first word of "$ac_prog", so it can be a program name with args. 20798 set dummy $ac_prog; ac_word=$2 20799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20800 $as_echo_n "checking for $ac_word... " >&6; } 20801 if ${ac_cv_path_LDD+:} false; then : 20802 $as_echo_n "(cached) " >&6 20803 else 20804 case $LDD in 20805 [\\/]* | ?:[\\/]*) 20806 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 20807 ;; 20808 *) 20809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20810 for as_dir in $PATH 20811 do 20812 IFS=$as_save_IFS 20813 test -z "$as_dir" && as_dir=. 20814 for ac_exec_ext in '' $ac_executable_extensions; do 20815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20816 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 20817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20818 break 2 20819 fi 20820 done 20821 done 20822 IFS=$as_save_IFS 20823 20824 ;; 20825 esac 20826 fi 20827 LDD=$ac_cv_path_LDD 20828 if test -n "$LDD"; then 20829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 20830 $as_echo "$LDD" >&6; } 20831 else 20832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20833 $as_echo "no" >&6; } 20834 fi 20835 20836 20837 test -n "$LDD" && break 20838 done 20839 20840 else 20841 # If it succeeded, then it was overridden by the user. We will use it 20842 # for the tool. 20843 20844 # First remove it from the list of overridden variables, so we can test 20845 # for unknown variables in the end. 20846 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 20847 20848 # Check if we try to supply an empty value 20849 if test "x$LDD" = x; then 20850 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5 20851 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;} 20852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 20853 $as_echo_n "checking for LDD... " >&6; } 20854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 20855 $as_echo "disabled" >&6; } 20856 else 20857 # Check if the provided tool contains a complete path. 20858 tool_specified="$LDD" 20859 tool_basename="${tool_specified##*/}" 20860 if test "x$tool_basename" = "x$tool_specified"; then 20861 # A command without a complete path is provided, search $PATH. 20862 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 20863 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 20864 # Extract the first word of "$tool_basename", so it can be a program name with args. 20865 set dummy $tool_basename; ac_word=$2 20866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20867 $as_echo_n "checking for $ac_word... " >&6; } 20868 if ${ac_cv_path_LDD+:} false; then : 20869 $as_echo_n "(cached) " >&6 20870 else 20871 case $LDD in 20872 [\\/]* | ?:[\\/]*) 20873 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 20874 ;; 20875 *) 20876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20877 for as_dir in $PATH 20878 do 20879 IFS=$as_save_IFS 20880 test -z "$as_dir" && as_dir=. 20881 for ac_exec_ext in '' $ac_executable_extensions; do 20882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20883 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 20884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20885 break 2 20886 fi 20887 done 20888 done 20889 IFS=$as_save_IFS 20890 20891 ;; 20892 esac 20893 fi 20894 LDD=$ac_cv_path_LDD 20895 if test -n "$LDD"; then 20896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 20897 $as_echo "$LDD" >&6; } 20898 else 20899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20900 $as_echo "no" >&6; } 20901 fi 20902 20903 20904 if test "x$LDD" = x; then 20905 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 20906 fi 20907 else 20908 # Otherwise we believe it is a complete path. Use it as it is. 20909 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 20910 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 20911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 20912 $as_echo_n "checking for LDD... " >&6; } 20913 if test ! -x "$tool_specified"; then 20914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 20915 $as_echo "not found" >&6; } 20916 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 20917 fi 20918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 20919 $as_echo "$tool_specified" >&6; } 20920 fi 20921 fi 20922 fi 20923 20924 fi 20925 20926 20927 if test "x$LDD" = "x"; then 20928 # List shared lib dependencies is used for 20929 # debug output and checking for forbidden dependencies. 20930 # We can build without it. 20931 LDD="true" 20932 fi 20933 20934 20935 # Publish this variable in the help. 20936 20937 20938 if [ -z "${OTOOL+x}" ]; then 20939 # The variable is not set by user, try to locate tool using the code snippet 20940 for ac_prog in otool 20941 do 20942 # Extract the first word of "$ac_prog", so it can be a program name with args. 20943 set dummy $ac_prog; ac_word=$2 20944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20945 $as_echo_n "checking for $ac_word... " >&6; } 20946 if ${ac_cv_path_OTOOL+:} false; then : 20947 $as_echo_n "(cached) " >&6 20948 else 20949 case $OTOOL in 20950 [\\/]* | ?:[\\/]*) 20951 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 20952 ;; 20953 *) 20954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20955 for as_dir in $PATH 20956 do 20957 IFS=$as_save_IFS 20958 test -z "$as_dir" && as_dir=. 20959 for ac_exec_ext in '' $ac_executable_extensions; do 20960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20961 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 20962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20963 break 2 20964 fi 20965 done 20966 done 20967 IFS=$as_save_IFS 20968 20969 ;; 20970 esac 20971 fi 20972 OTOOL=$ac_cv_path_OTOOL 20973 if test -n "$OTOOL"; then 20974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 20975 $as_echo "$OTOOL" >&6; } 20976 else 20977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20978 $as_echo "no" >&6; } 20979 fi 20980 20981 20982 test -n "$OTOOL" && break 20983 done 20984 20985 else 20986 # The variable is set, but is it from the command line or the environment? 20987 20988 # Try to remove the string !OTOOL! from our list. 20989 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 20990 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 20991 # If it failed, the variable was not from the command line. Ignore it, 20992 # but warn the user (except for BASH, which is always set by the calling BASH). 20993 if test "xOTOOL" != xBASH; then 20994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 20995 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 20996 fi 20997 # Try to locate tool using the code snippet 20998 for ac_prog in otool 20999 do 21000 # Extract the first word of "$ac_prog", so it can be a program name with args. 21001 set dummy $ac_prog; ac_word=$2 21002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21003 $as_echo_n "checking for $ac_word... " >&6; } 21004 if ${ac_cv_path_OTOOL+:} false; then : 21005 $as_echo_n "(cached) " >&6 21006 else 21007 case $OTOOL in 21008 [\\/]* | ?:[\\/]*) 21009 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 21010 ;; 21011 *) 21012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21013 for as_dir in $PATH 21014 do 21015 IFS=$as_save_IFS 21016 test -z "$as_dir" && as_dir=. 21017 for ac_exec_ext in '' $ac_executable_extensions; do 21018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21019 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 21020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21021 break 2 21022 fi 21023 done 21024 done 21025 IFS=$as_save_IFS 21026 21027 ;; 21028 esac 21029 fi 21030 OTOOL=$ac_cv_path_OTOOL 21031 if test -n "$OTOOL"; then 21032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 21033 $as_echo "$OTOOL" >&6; } 21034 else 21035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21036 $as_echo "no" >&6; } 21037 fi 21038 21039 21040 test -n "$OTOOL" && break 21041 done 21042 21043 else 21044 # If it succeeded, then it was overridden by the user. We will use it 21045 # for the tool. 21046 21047 # First remove it from the list of overridden variables, so we can test 21048 # for unknown variables in the end. 21049 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21050 21051 # Check if we try to supply an empty value 21052 if test "x$OTOOL" = x; then 21053 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5 21054 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;} 21055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 21056 $as_echo_n "checking for OTOOL... " >&6; } 21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21058 $as_echo "disabled" >&6; } 21059 else 21060 # Check if the provided tool contains a complete path. 21061 tool_specified="$OTOOL" 21062 tool_basename="${tool_specified##*/}" 21063 if test "x$tool_basename" = "x$tool_specified"; then 21064 # A command without a complete path is provided, search $PATH. 21065 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 21066 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 21067 # Extract the first word of "$tool_basename", so it can be a program name with args. 21068 set dummy $tool_basename; ac_word=$2 21069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21070 $as_echo_n "checking for $ac_word... " >&6; } 21071 if ${ac_cv_path_OTOOL+:} false; then : 21072 $as_echo_n "(cached) " >&6 21073 else 21074 case $OTOOL in 21075 [\\/]* | ?:[\\/]*) 21076 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 21077 ;; 21078 *) 21079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21080 for as_dir in $PATH 21081 do 21082 IFS=$as_save_IFS 21083 test -z "$as_dir" && as_dir=. 21084 for ac_exec_ext in '' $ac_executable_extensions; do 21085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21086 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 21087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21088 break 2 21089 fi 21090 done 21091 done 21092 IFS=$as_save_IFS 21093 21094 ;; 21095 esac 21096 fi 21097 OTOOL=$ac_cv_path_OTOOL 21098 if test -n "$OTOOL"; then 21099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 21100 $as_echo "$OTOOL" >&6; } 21101 else 21102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21103 $as_echo "no" >&6; } 21104 fi 21105 21106 21107 if test "x$OTOOL" = x; then 21108 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21109 fi 21110 else 21111 # Otherwise we believe it is a complete path. Use it as it is. 21112 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 21113 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 21114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 21115 $as_echo_n "checking for OTOOL... " >&6; } 21116 if test ! -x "$tool_specified"; then 21117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21118 $as_echo "not found" >&6; } 21119 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 21120 fi 21121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21122 $as_echo "$tool_specified" >&6; } 21123 fi 21124 fi 21125 fi 21126 21127 fi 21128 21129 21130 if test "x$OTOOL" = "x"; then 21131 OTOOL="true" 21132 fi 21133 21134 21135 # Publish this variable in the help. 21136 21137 21138 if [ -z "${READELF+x}" ]; then 21139 # The variable is not set by user, try to locate tool using the code snippet 21140 for ac_prog in greadelf readelf 21141 do 21142 # Extract the first word of "$ac_prog", so it can be a program name with args. 21143 set dummy $ac_prog; ac_word=$2 21144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21145 $as_echo_n "checking for $ac_word... " >&6; } 21146 if ${ac_cv_path_READELF+:} false; then : 21147 $as_echo_n "(cached) " >&6 21148 else 21149 case $READELF in 21150 [\\/]* | ?:[\\/]*) 21151 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 21152 ;; 21153 *) 21154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21155 for as_dir in $PATH 21156 do 21157 IFS=$as_save_IFS 21158 test -z "$as_dir" && as_dir=. 21159 for ac_exec_ext in '' $ac_executable_extensions; do 21160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21161 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 21162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21163 break 2 21164 fi 21165 done 21166 done 21167 IFS=$as_save_IFS 21168 21169 ;; 21170 esac 21171 fi 21172 READELF=$ac_cv_path_READELF 21173 if test -n "$READELF"; then 21174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 21175 $as_echo "$READELF" >&6; } 21176 else 21177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21178 $as_echo "no" >&6; } 21179 fi 21180 21181 21182 test -n "$READELF" && break 21183 done 21184 21185 else 21186 # The variable is set, but is it from the command line or the environment? 21187 21188 # Try to remove the string !READELF! from our list. 21189 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 21190 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21191 # If it failed, the variable was not from the command line. Ignore it, 21192 # but warn the user (except for BASH, which is always set by the calling BASH). 21193 if test "xREADELF" != xBASH; then 21194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 21195 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 21196 fi 21197 # Try to locate tool using the code snippet 21198 for ac_prog in greadelf readelf 21199 do 21200 # Extract the first word of "$ac_prog", so it can be a program name with args. 21201 set dummy $ac_prog; ac_word=$2 21202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21203 $as_echo_n "checking for $ac_word... " >&6; } 21204 if ${ac_cv_path_READELF+:} false; then : 21205 $as_echo_n "(cached) " >&6 21206 else 21207 case $READELF in 21208 [\\/]* | ?:[\\/]*) 21209 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 21210 ;; 21211 *) 21212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21213 for as_dir in $PATH 21214 do 21215 IFS=$as_save_IFS 21216 test -z "$as_dir" && as_dir=. 21217 for ac_exec_ext in '' $ac_executable_extensions; do 21218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21219 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 21220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21221 break 2 21222 fi 21223 done 21224 done 21225 IFS=$as_save_IFS 21226 21227 ;; 21228 esac 21229 fi 21230 READELF=$ac_cv_path_READELF 21231 if test -n "$READELF"; then 21232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 21233 $as_echo "$READELF" >&6; } 21234 else 21235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21236 $as_echo "no" >&6; } 21237 fi 21238 21239 21240 test -n "$READELF" && break 21241 done 21242 21243 else 21244 # If it succeeded, then it was overridden by the user. We will use it 21245 # for the tool. 21246 21247 # First remove it from the list of overridden variables, so we can test 21248 # for unknown variables in the end. 21249 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21250 21251 # Check if we try to supply an empty value 21252 if test "x$READELF" = x; then 21253 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5 21254 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;} 21255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 21256 $as_echo_n "checking for READELF... " >&6; } 21257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21258 $as_echo "disabled" >&6; } 21259 else 21260 # Check if the provided tool contains a complete path. 21261 tool_specified="$READELF" 21262 tool_basename="${tool_specified##*/}" 21263 if test "x$tool_basename" = "x$tool_specified"; then 21264 # A command without a complete path is provided, search $PATH. 21265 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 21266 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 21267 # Extract the first word of "$tool_basename", so it can be a program name with args. 21268 set dummy $tool_basename; ac_word=$2 21269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21270 $as_echo_n "checking for $ac_word... " >&6; } 21271 if ${ac_cv_path_READELF+:} false; then : 21272 $as_echo_n "(cached) " >&6 21273 else 21274 case $READELF in 21275 [\\/]* | ?:[\\/]*) 21276 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 21277 ;; 21278 *) 21279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21280 for as_dir in $PATH 21281 do 21282 IFS=$as_save_IFS 21283 test -z "$as_dir" && as_dir=. 21284 for ac_exec_ext in '' $ac_executable_extensions; do 21285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21286 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 21287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21288 break 2 21289 fi 21290 done 21291 done 21292 IFS=$as_save_IFS 21293 21294 ;; 21295 esac 21296 fi 21297 READELF=$ac_cv_path_READELF 21298 if test -n "$READELF"; then 21299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 21300 $as_echo "$READELF" >&6; } 21301 else 21302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21303 $as_echo "no" >&6; } 21304 fi 21305 21306 21307 if test "x$READELF" = x; then 21308 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21309 fi 21310 else 21311 # Otherwise we believe it is a complete path. Use it as it is. 21312 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 21313 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 21314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 21315 $as_echo_n "checking for READELF... " >&6; } 21316 if test ! -x "$tool_specified"; then 21317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21318 $as_echo "not found" >&6; } 21319 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 21320 fi 21321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21322 $as_echo "$tool_specified" >&6; } 21323 fi 21324 fi 21325 fi 21326 21327 fi 21328 21329 21330 21331 21332 # Publish this variable in the help. 21333 21334 21335 if [ -z "${HG+x}" ]; then 21336 # The variable is not set by user, try to locate tool using the code snippet 21337 for ac_prog in hg 21338 do 21339 # Extract the first word of "$ac_prog", so it can be a program name with args. 21340 set dummy $ac_prog; ac_word=$2 21341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21342 $as_echo_n "checking for $ac_word... " >&6; } 21343 if ${ac_cv_path_HG+:} false; then : 21344 $as_echo_n "(cached) " >&6 21345 else 21346 case $HG in 21347 [\\/]* | ?:[\\/]*) 21348 ac_cv_path_HG="$HG" # Let the user override the test with a path. 21349 ;; 21350 *) 21351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21352 for as_dir in $PATH 21353 do 21354 IFS=$as_save_IFS 21355 test -z "$as_dir" && as_dir=. 21356 for ac_exec_ext in '' $ac_executable_extensions; do 21357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21358 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 21359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21360 break 2 21361 fi 21362 done 21363 done 21364 IFS=$as_save_IFS 21365 21366 ;; 21367 esac 21368 fi 21369 HG=$ac_cv_path_HG 21370 if test -n "$HG"; then 21371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 21372 $as_echo "$HG" >&6; } 21373 else 21374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21375 $as_echo "no" >&6; } 21376 fi 21377 21378 21379 test -n "$HG" && break 21380 done 21381 21382 else 21383 # The variable is set, but is it from the command line or the environment? 21384 21385 # Try to remove the string !HG! from our list. 21386 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 21387 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21388 # If it failed, the variable was not from the command line. Ignore it, 21389 # but warn the user (except for BASH, which is always set by the calling BASH). 21390 if test "xHG" != xBASH; then 21391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 21392 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 21393 fi 21394 # Try to locate tool using the code snippet 21395 for ac_prog in hg 21396 do 21397 # Extract the first word of "$ac_prog", so it can be a program name with args. 21398 set dummy $ac_prog; ac_word=$2 21399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21400 $as_echo_n "checking for $ac_word... " >&6; } 21401 if ${ac_cv_path_HG+:} false; then : 21402 $as_echo_n "(cached) " >&6 21403 else 21404 case $HG in 21405 [\\/]* | ?:[\\/]*) 21406 ac_cv_path_HG="$HG" # Let the user override the test with a path. 21407 ;; 21408 *) 21409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21410 for as_dir in $PATH 21411 do 21412 IFS=$as_save_IFS 21413 test -z "$as_dir" && as_dir=. 21414 for ac_exec_ext in '' $ac_executable_extensions; do 21415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21416 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 21417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21418 break 2 21419 fi 21420 done 21421 done 21422 IFS=$as_save_IFS 21423 21424 ;; 21425 esac 21426 fi 21427 HG=$ac_cv_path_HG 21428 if test -n "$HG"; then 21429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 21430 $as_echo "$HG" >&6; } 21431 else 21432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21433 $as_echo "no" >&6; } 21434 fi 21435 21436 21437 test -n "$HG" && break 21438 done 21439 21440 else 21441 # If it succeeded, then it was overridden by the user. We will use it 21442 # for the tool. 21443 21444 # First remove it from the list of overridden variables, so we can test 21445 # for unknown variables in the end. 21446 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21447 21448 # Check if we try to supply an empty value 21449 if test "x$HG" = x; then 21450 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5 21451 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;} 21452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 21453 $as_echo_n "checking for HG... " >&6; } 21454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21455 $as_echo "disabled" >&6; } 21456 else 21457 # Check if the provided tool contains a complete path. 21458 tool_specified="$HG" 21459 tool_basename="${tool_specified##*/}" 21460 if test "x$tool_basename" = "x$tool_specified"; then 21461 # A command without a complete path is provided, search $PATH. 21462 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 21463 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 21464 # Extract the first word of "$tool_basename", so it can be a program name with args. 21465 set dummy $tool_basename; ac_word=$2 21466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21467 $as_echo_n "checking for $ac_word... " >&6; } 21468 if ${ac_cv_path_HG+:} false; then : 21469 $as_echo_n "(cached) " >&6 21470 else 21471 case $HG in 21472 [\\/]* | ?:[\\/]*) 21473 ac_cv_path_HG="$HG" # Let the user override the test with a path. 21474 ;; 21475 *) 21476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21477 for as_dir in $PATH 21478 do 21479 IFS=$as_save_IFS 21480 test -z "$as_dir" && as_dir=. 21481 for ac_exec_ext in '' $ac_executable_extensions; do 21482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21483 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 21484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21485 break 2 21486 fi 21487 done 21488 done 21489 IFS=$as_save_IFS 21490 21491 ;; 21492 esac 21493 fi 21494 HG=$ac_cv_path_HG 21495 if test -n "$HG"; then 21496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 21497 $as_echo "$HG" >&6; } 21498 else 21499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21500 $as_echo "no" >&6; } 21501 fi 21502 21503 21504 if test "x$HG" = x; then 21505 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21506 fi 21507 else 21508 # Otherwise we believe it is a complete path. Use it as it is. 21509 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 21510 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 21511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 21512 $as_echo_n "checking for HG... " >&6; } 21513 if test ! -x "$tool_specified"; then 21514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21515 $as_echo "not found" >&6; } 21516 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 21517 fi 21518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21519 $as_echo "$tool_specified" >&6; } 21520 fi 21521 fi 21522 fi 21523 21524 fi 21525 21526 21527 21528 21529 # Publish this variable in the help. 21530 21531 21532 if [ -z "${STAT+x}" ]; then 21533 # The variable is not set by user, try to locate tool using the code snippet 21534 for ac_prog in stat 21535 do 21536 # Extract the first word of "$ac_prog", so it can be a program name with args. 21537 set dummy $ac_prog; ac_word=$2 21538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21539 $as_echo_n "checking for $ac_word... " >&6; } 21540 if ${ac_cv_path_STAT+:} false; then : 21541 $as_echo_n "(cached) " >&6 21542 else 21543 case $STAT in 21544 [\\/]* | ?:[\\/]*) 21545 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 21546 ;; 21547 *) 21548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21549 for as_dir in $PATH 21550 do 21551 IFS=$as_save_IFS 21552 test -z "$as_dir" && as_dir=. 21553 for ac_exec_ext in '' $ac_executable_extensions; do 21554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21555 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 21556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21557 break 2 21558 fi 21559 done 21560 done 21561 IFS=$as_save_IFS 21562 21563 ;; 21564 esac 21565 fi 21566 STAT=$ac_cv_path_STAT 21567 if test -n "$STAT"; then 21568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 21569 $as_echo "$STAT" >&6; } 21570 else 21571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21572 $as_echo "no" >&6; } 21573 fi 21574 21575 21576 test -n "$STAT" && break 21577 done 21578 21579 else 21580 # The variable is set, but is it from the command line or the environment? 21581 21582 # Try to remove the string !STAT! from our list. 21583 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 21584 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21585 # If it failed, the variable was not from the command line. Ignore it, 21586 # but warn the user (except for BASH, which is always set by the calling BASH). 21587 if test "xSTAT" != xBASH; then 21588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 21589 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 21590 fi 21591 # Try to locate tool using the code snippet 21592 for ac_prog in stat 21593 do 21594 # Extract the first word of "$ac_prog", so it can be a program name with args. 21595 set dummy $ac_prog; ac_word=$2 21596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21597 $as_echo_n "checking for $ac_word... " >&6; } 21598 if ${ac_cv_path_STAT+:} false; then : 21599 $as_echo_n "(cached) " >&6 21600 else 21601 case $STAT in 21602 [\\/]* | ?:[\\/]*) 21603 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 21604 ;; 21605 *) 21606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21607 for as_dir in $PATH 21608 do 21609 IFS=$as_save_IFS 21610 test -z "$as_dir" && as_dir=. 21611 for ac_exec_ext in '' $ac_executable_extensions; do 21612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21613 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 21614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21615 break 2 21616 fi 21617 done 21618 done 21619 IFS=$as_save_IFS 21620 21621 ;; 21622 esac 21623 fi 21624 STAT=$ac_cv_path_STAT 21625 if test -n "$STAT"; then 21626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 21627 $as_echo "$STAT" >&6; } 21628 else 21629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21630 $as_echo "no" >&6; } 21631 fi 21632 21633 21634 test -n "$STAT" && break 21635 done 21636 21637 else 21638 # If it succeeded, then it was overridden by the user. We will use it 21639 # for the tool. 21640 21641 # First remove it from the list of overridden variables, so we can test 21642 # for unknown variables in the end. 21643 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21644 21645 # Check if we try to supply an empty value 21646 if test "x$STAT" = x; then 21647 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5 21648 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;} 21649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 21650 $as_echo_n "checking for STAT... " >&6; } 21651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21652 $as_echo "disabled" >&6; } 21653 else 21654 # Check if the provided tool contains a complete path. 21655 tool_specified="$STAT" 21656 tool_basename="${tool_specified##*/}" 21657 if test "x$tool_basename" = "x$tool_specified"; then 21658 # A command without a complete path is provided, search $PATH. 21659 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 21660 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 21661 # Extract the first word of "$tool_basename", so it can be a program name with args. 21662 set dummy $tool_basename; ac_word=$2 21663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21664 $as_echo_n "checking for $ac_word... " >&6; } 21665 if ${ac_cv_path_STAT+:} false; then : 21666 $as_echo_n "(cached) " >&6 21667 else 21668 case $STAT in 21669 [\\/]* | ?:[\\/]*) 21670 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 21671 ;; 21672 *) 21673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21674 for as_dir in $PATH 21675 do 21676 IFS=$as_save_IFS 21677 test -z "$as_dir" && as_dir=. 21678 for ac_exec_ext in '' $ac_executable_extensions; do 21679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21680 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 21681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21682 break 2 21683 fi 21684 done 21685 done 21686 IFS=$as_save_IFS 21687 21688 ;; 21689 esac 21690 fi 21691 STAT=$ac_cv_path_STAT 21692 if test -n "$STAT"; then 21693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 21694 $as_echo "$STAT" >&6; } 21695 else 21696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21697 $as_echo "no" >&6; } 21698 fi 21699 21700 21701 if test "x$STAT" = x; then 21702 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21703 fi 21704 else 21705 # Otherwise we believe it is a complete path. Use it as it is. 21706 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 21707 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 21708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 21709 $as_echo_n "checking for STAT... " >&6; } 21710 if test ! -x "$tool_specified"; then 21711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21712 $as_echo "not found" >&6; } 21713 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 21714 fi 21715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21716 $as_echo "$tool_specified" >&6; } 21717 fi 21718 fi 21719 fi 21720 21721 fi 21722 21723 21724 21725 21726 # Publish this variable in the help. 21727 21728 21729 if [ -z "${TIME+x}" ]; then 21730 # The variable is not set by user, try to locate tool using the code snippet 21731 for ac_prog in time 21732 do 21733 # Extract the first word of "$ac_prog", so it can be a program name with args. 21734 set dummy $ac_prog; ac_word=$2 21735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21736 $as_echo_n "checking for $ac_word... " >&6; } 21737 if ${ac_cv_path_TIME+:} false; then : 21738 $as_echo_n "(cached) " >&6 21739 else 21740 case $TIME in 21741 [\\/]* | ?:[\\/]*) 21742 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 21743 ;; 21744 *) 21745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21746 for as_dir in $PATH 21747 do 21748 IFS=$as_save_IFS 21749 test -z "$as_dir" && as_dir=. 21750 for ac_exec_ext in '' $ac_executable_extensions; do 21751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21752 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 21753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21754 break 2 21755 fi 21756 done 21757 done 21758 IFS=$as_save_IFS 21759 21760 ;; 21761 esac 21762 fi 21763 TIME=$ac_cv_path_TIME 21764 if test -n "$TIME"; then 21765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 21766 $as_echo "$TIME" >&6; } 21767 else 21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21769 $as_echo "no" >&6; } 21770 fi 21771 21772 21773 test -n "$TIME" && break 21774 done 21775 21776 else 21777 # The variable is set, but is it from the command line or the environment? 21778 21779 # Try to remove the string !TIME! from our list. 21780 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 21781 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21782 # If it failed, the variable was not from the command line. Ignore it, 21783 # but warn the user (except for BASH, which is always set by the calling BASH). 21784 if test "xTIME" != xBASH; then 21785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 21786 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 21787 fi 21788 # Try to locate tool using the code snippet 21789 for ac_prog in time 21790 do 21791 # Extract the first word of "$ac_prog", so it can be a program name with args. 21792 set dummy $ac_prog; ac_word=$2 21793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21794 $as_echo_n "checking for $ac_word... " >&6; } 21795 if ${ac_cv_path_TIME+:} false; then : 21796 $as_echo_n "(cached) " >&6 21797 else 21798 case $TIME in 21799 [\\/]* | ?:[\\/]*) 21800 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 21801 ;; 21802 *) 21803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21804 for as_dir in $PATH 21805 do 21806 IFS=$as_save_IFS 21807 test -z "$as_dir" && as_dir=. 21808 for ac_exec_ext in '' $ac_executable_extensions; do 21809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21810 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 21811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21812 break 2 21813 fi 21814 done 21815 done 21816 IFS=$as_save_IFS 21817 21818 ;; 21819 esac 21820 fi 21821 TIME=$ac_cv_path_TIME 21822 if test -n "$TIME"; then 21823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 21824 $as_echo "$TIME" >&6; } 21825 else 21826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21827 $as_echo "no" >&6; } 21828 fi 21829 21830 21831 test -n "$TIME" && break 21832 done 21833 21834 else 21835 # If it succeeded, then it was overridden by the user. We will use it 21836 # for the tool. 21837 21838 # First remove it from the list of overridden variables, so we can test 21839 # for unknown variables in the end. 21840 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21841 21842 # Check if we try to supply an empty value 21843 if test "x$TIME" = x; then 21844 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5 21845 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;} 21846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 21847 $as_echo_n "checking for TIME... " >&6; } 21848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21849 $as_echo "disabled" >&6; } 21850 else 21851 # Check if the provided tool contains a complete path. 21852 tool_specified="$TIME" 21853 tool_basename="${tool_specified##*/}" 21854 if test "x$tool_basename" = "x$tool_specified"; then 21855 # A command without a complete path is provided, search $PATH. 21856 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 21857 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 21858 # Extract the first word of "$tool_basename", so it can be a program name with args. 21859 set dummy $tool_basename; ac_word=$2 21860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21861 $as_echo_n "checking for $ac_word... " >&6; } 21862 if ${ac_cv_path_TIME+:} false; then : 21863 $as_echo_n "(cached) " >&6 21864 else 21865 case $TIME in 21866 [\\/]* | ?:[\\/]*) 21867 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 21868 ;; 21869 *) 21870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21871 for as_dir in $PATH 21872 do 21873 IFS=$as_save_IFS 21874 test -z "$as_dir" && as_dir=. 21875 for ac_exec_ext in '' $ac_executable_extensions; do 21876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21877 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 21878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21879 break 2 21880 fi 21881 done 21882 done 21883 IFS=$as_save_IFS 21884 21885 ;; 21886 esac 21887 fi 21888 TIME=$ac_cv_path_TIME 21889 if test -n "$TIME"; then 21890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 21891 $as_echo "$TIME" >&6; } 21892 else 21893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21894 $as_echo "no" >&6; } 21895 fi 21896 21897 21898 if test "x$TIME" = x; then 21899 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21900 fi 21901 else 21902 # Otherwise we believe it is a complete path. Use it as it is. 21903 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 21904 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 21905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 21906 $as_echo_n "checking for TIME... " >&6; } 21907 if test ! -x "$tool_specified"; then 21908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21909 $as_echo "not found" >&6; } 21910 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 21911 fi 21912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21913 $as_echo "$tool_specified" >&6; } 21914 fi 21915 fi 21916 fi 21917 21918 fi 21919 21920 21921 21922 21923 # Publish this variable in the help. 21924 21925 21926 if [ -z "${PATCH+x}" ]; then 21927 # The variable is not set by user, try to locate tool using the code snippet 21928 for ac_prog in gpatch patch 21929 do 21930 # Extract the first word of "$ac_prog", so it can be a program name with args. 21931 set dummy $ac_prog; ac_word=$2 21932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21933 $as_echo_n "checking for $ac_word... " >&6; } 21934 if ${ac_cv_path_PATCH+:} false; then : 21935 $as_echo_n "(cached) " >&6 21936 else 21937 case $PATCH in 21938 [\\/]* | ?:[\\/]*) 21939 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 21940 ;; 21941 *) 21942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21943 for as_dir in $PATH 21944 do 21945 IFS=$as_save_IFS 21946 test -z "$as_dir" && as_dir=. 21947 for ac_exec_ext in '' $ac_executable_extensions; do 21948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21949 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 21950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21951 break 2 21952 fi 21953 done 21954 done 21955 IFS=$as_save_IFS 21956 21957 ;; 21958 esac 21959 fi 21960 PATCH=$ac_cv_path_PATCH 21961 if test -n "$PATCH"; then 21962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 21963 $as_echo "$PATCH" >&6; } 21964 else 21965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21966 $as_echo "no" >&6; } 21967 fi 21968 21969 21970 test -n "$PATCH" && break 21971 done 21972 21973 else 21974 # The variable is set, but is it from the command line or the environment? 21975 21976 # Try to remove the string !PATCH! from our list. 21977 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/} 21978 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21979 # If it failed, the variable was not from the command line. Ignore it, 21980 # but warn the user (except for BASH, which is always set by the calling BASH). 21981 if test "xPATCH" != xBASH; then 21982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5 21983 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;} 21984 fi 21985 # Try to locate tool using the code snippet 21986 for ac_prog in gpatch patch 21987 do 21988 # Extract the first word of "$ac_prog", so it can be a program name with args. 21989 set dummy $ac_prog; ac_word=$2 21990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21991 $as_echo_n "checking for $ac_word... " >&6; } 21992 if ${ac_cv_path_PATCH+:} false; then : 21993 $as_echo_n "(cached) " >&6 21994 else 21995 case $PATCH in 21996 [\\/]* | ?:[\\/]*) 21997 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 21998 ;; 21999 *) 22000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22001 for as_dir in $PATH 22002 do 22003 IFS=$as_save_IFS 22004 test -z "$as_dir" && as_dir=. 22005 for ac_exec_ext in '' $ac_executable_extensions; do 22006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22007 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 22008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22009 break 2 22010 fi 22011 done 22012 done 22013 IFS=$as_save_IFS 22014 22015 ;; 22016 esac 22017 fi 22018 PATCH=$ac_cv_path_PATCH 22019 if test -n "$PATCH"; then 22020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 22021 $as_echo "$PATCH" >&6; } 22022 else 22023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22024 $as_echo "no" >&6; } 22025 fi 22026 22027 22028 test -n "$PATCH" && break 22029 done 22030 22031 else 22032 # If it succeeded, then it was overridden by the user. We will use it 22033 # for the tool. 22034 22035 # First remove it from the list of overridden variables, so we can test 22036 # for unknown variables in the end. 22037 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22038 22039 # Check if we try to supply an empty value 22040 if test "x$PATCH" = x; then 22041 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5 22042 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;} 22043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 22044 $as_echo_n "checking for PATCH... " >&6; } 22045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22046 $as_echo "disabled" >&6; } 22047 else 22048 # Check if the provided tool contains a complete path. 22049 tool_specified="$PATCH" 22050 tool_basename="${tool_specified##*/}" 22051 if test "x$tool_basename" = "x$tool_specified"; then 22052 # A command without a complete path is provided, search $PATH. 22053 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5 22054 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;} 22055 # Extract the first word of "$tool_basename", so it can be a program name with args. 22056 set dummy $tool_basename; ac_word=$2 22057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22058 $as_echo_n "checking for $ac_word... " >&6; } 22059 if ${ac_cv_path_PATCH+:} false; then : 22060 $as_echo_n "(cached) " >&6 22061 else 22062 case $PATCH in 22063 [\\/]* | ?:[\\/]*) 22064 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 22065 ;; 22066 *) 22067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22068 for as_dir in $PATH 22069 do 22070 IFS=$as_save_IFS 22071 test -z "$as_dir" && as_dir=. 22072 for ac_exec_ext in '' $ac_executable_extensions; do 22073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22074 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 22075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22076 break 2 22077 fi 22078 done 22079 done 22080 IFS=$as_save_IFS 22081 22082 ;; 22083 esac 22084 fi 22085 PATCH=$ac_cv_path_PATCH 22086 if test -n "$PATCH"; then 22087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 22088 $as_echo "$PATCH" >&6; } 22089 else 22090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22091 $as_echo "no" >&6; } 22092 fi 22093 22094 22095 if test "x$PATCH" = x; then 22096 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22097 fi 22098 else 22099 # Otherwise we believe it is a complete path. Use it as it is. 22100 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5 22101 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;} 22102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 22103 $as_echo_n "checking for PATCH... " >&6; } 22104 if test ! -x "$tool_specified"; then 22105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22106 $as_echo "not found" >&6; } 22107 as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5 22108 fi 22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22110 $as_echo "$tool_specified" >&6; } 22111 fi 22112 fi 22113 fi 22114 22115 fi 22116 22117 22118 # Check if it's GNU time 22119 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 22120 if test "x$IS_GNU_TIME" != x; then 22121 IS_GNU_TIME=yes 22122 else 22123 IS_GNU_TIME=no 22124 fi 22125 22126 22127 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 22128 22129 22130 22131 # Publish this variable in the help. 22132 22133 22134 if [ -z "${DSYMUTIL+x}" ]; then 22135 # The variable is not set by user, try to locate tool using the code snippet 22136 for ac_prog in dsymutil 22137 do 22138 # Extract the first word of "$ac_prog", so it can be a program name with args. 22139 set dummy $ac_prog; ac_word=$2 22140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22141 $as_echo_n "checking for $ac_word... " >&6; } 22142 if ${ac_cv_path_DSYMUTIL+:} false; then : 22143 $as_echo_n "(cached) " >&6 22144 else 22145 case $DSYMUTIL in 22146 [\\/]* | ?:[\\/]*) 22147 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 22148 ;; 22149 *) 22150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22151 for as_dir in $PATH 22152 do 22153 IFS=$as_save_IFS 22154 test -z "$as_dir" && as_dir=. 22155 for ac_exec_ext in '' $ac_executable_extensions; do 22156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22157 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 22158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22159 break 2 22160 fi 22161 done 22162 done 22163 IFS=$as_save_IFS 22164 22165 ;; 22166 esac 22167 fi 22168 DSYMUTIL=$ac_cv_path_DSYMUTIL 22169 if test -n "$DSYMUTIL"; then 22170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 22171 $as_echo "$DSYMUTIL" >&6; } 22172 else 22173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22174 $as_echo "no" >&6; } 22175 fi 22176 22177 22178 test -n "$DSYMUTIL" && break 22179 done 22180 22181 else 22182 # The variable is set, but is it from the command line or the environment? 22183 22184 # Try to remove the string !DSYMUTIL! from our list. 22185 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 22186 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22187 # If it failed, the variable was not from the command line. Ignore it, 22188 # but warn the user (except for BASH, which is always set by the calling BASH). 22189 if test "xDSYMUTIL" != xBASH; then 22190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 22191 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 22192 fi 22193 # Try to locate tool using the code snippet 22194 for ac_prog in dsymutil 22195 do 22196 # Extract the first word of "$ac_prog", so it can be a program name with args. 22197 set dummy $ac_prog; ac_word=$2 22198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22199 $as_echo_n "checking for $ac_word... " >&6; } 22200 if ${ac_cv_path_DSYMUTIL+:} false; then : 22201 $as_echo_n "(cached) " >&6 22202 else 22203 case $DSYMUTIL in 22204 [\\/]* | ?:[\\/]*) 22205 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 22206 ;; 22207 *) 22208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22209 for as_dir in $PATH 22210 do 22211 IFS=$as_save_IFS 22212 test -z "$as_dir" && as_dir=. 22213 for ac_exec_ext in '' $ac_executable_extensions; do 22214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22215 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 22216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22217 break 2 22218 fi 22219 done 22220 done 22221 IFS=$as_save_IFS 22222 22223 ;; 22224 esac 22225 fi 22226 DSYMUTIL=$ac_cv_path_DSYMUTIL 22227 if test -n "$DSYMUTIL"; then 22228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 22229 $as_echo "$DSYMUTIL" >&6; } 22230 else 22231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22232 $as_echo "no" >&6; } 22233 fi 22234 22235 22236 test -n "$DSYMUTIL" && break 22237 done 22238 22239 else 22240 # If it succeeded, then it was overridden by the user. We will use it 22241 # for the tool. 22242 22243 # First remove it from the list of overridden variables, so we can test 22244 # for unknown variables in the end. 22245 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22246 22247 # Check if we try to supply an empty value 22248 if test "x$DSYMUTIL" = x; then 22249 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5 22250 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;} 22251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 22252 $as_echo_n "checking for DSYMUTIL... " >&6; } 22253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22254 $as_echo "disabled" >&6; } 22255 else 22256 # Check if the provided tool contains a complete path. 22257 tool_specified="$DSYMUTIL" 22258 tool_basename="${tool_specified##*/}" 22259 if test "x$tool_basename" = "x$tool_specified"; then 22260 # A command without a complete path is provided, search $PATH. 22261 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 22262 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 22263 # Extract the first word of "$tool_basename", so it can be a program name with args. 22264 set dummy $tool_basename; ac_word=$2 22265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22266 $as_echo_n "checking for $ac_word... " >&6; } 22267 if ${ac_cv_path_DSYMUTIL+:} false; then : 22268 $as_echo_n "(cached) " >&6 22269 else 22270 case $DSYMUTIL in 22271 [\\/]* | ?:[\\/]*) 22272 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 22273 ;; 22274 *) 22275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22276 for as_dir in $PATH 22277 do 22278 IFS=$as_save_IFS 22279 test -z "$as_dir" && as_dir=. 22280 for ac_exec_ext in '' $ac_executable_extensions; do 22281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22282 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 22283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22284 break 2 22285 fi 22286 done 22287 done 22288 IFS=$as_save_IFS 22289 22290 ;; 22291 esac 22292 fi 22293 DSYMUTIL=$ac_cv_path_DSYMUTIL 22294 if test -n "$DSYMUTIL"; then 22295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 22296 $as_echo "$DSYMUTIL" >&6; } 22297 else 22298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22299 $as_echo "no" >&6; } 22300 fi 22301 22302 22303 if test "x$DSYMUTIL" = x; then 22304 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22305 fi 22306 else 22307 # Otherwise we believe it is a complete path. Use it as it is. 22308 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 22309 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 22310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 22311 $as_echo_n "checking for DSYMUTIL... " >&6; } 22312 if test ! -x "$tool_specified"; then 22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22314 $as_echo "not found" >&6; } 22315 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 22316 fi 22317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22318 $as_echo "$tool_specified" >&6; } 22319 fi 22320 fi 22321 fi 22322 22323 fi 22324 22325 22326 22327 if test "x$DSYMUTIL" = x; then 22328 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 22329 fi 22330 22331 22332 22333 22334 22335 # Publish this variable in the help. 22336 22337 22338 if [ -z "${XATTR+x}" ]; then 22339 # The variable is not set by user, try to locate tool using the code snippet 22340 for ac_prog in xattr 22341 do 22342 # Extract the first word of "$ac_prog", so it can be a program name with args. 22343 set dummy $ac_prog; ac_word=$2 22344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22345 $as_echo_n "checking for $ac_word... " >&6; } 22346 if ${ac_cv_path_XATTR+:} false; then : 22347 $as_echo_n "(cached) " >&6 22348 else 22349 case $XATTR in 22350 [\\/]* | ?:[\\/]*) 22351 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 22352 ;; 22353 *) 22354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22355 for as_dir in $PATH 22356 do 22357 IFS=$as_save_IFS 22358 test -z "$as_dir" && as_dir=. 22359 for ac_exec_ext in '' $ac_executable_extensions; do 22360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22361 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 22362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22363 break 2 22364 fi 22365 done 22366 done 22367 IFS=$as_save_IFS 22368 22369 ;; 22370 esac 22371 fi 22372 XATTR=$ac_cv_path_XATTR 22373 if test -n "$XATTR"; then 22374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 22375 $as_echo "$XATTR" >&6; } 22376 else 22377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22378 $as_echo "no" >&6; } 22379 fi 22380 22381 22382 test -n "$XATTR" && break 22383 done 22384 22385 else 22386 # The variable is set, but is it from the command line or the environment? 22387 22388 # Try to remove the string !XATTR! from our list. 22389 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 22390 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22391 # If it failed, the variable was not from the command line. Ignore it, 22392 # but warn the user (except for BASH, which is always set by the calling BASH). 22393 if test "xXATTR" != xBASH; then 22394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 22395 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 22396 fi 22397 # Try to locate tool using the code snippet 22398 for ac_prog in xattr 22399 do 22400 # Extract the first word of "$ac_prog", so it can be a program name with args. 22401 set dummy $ac_prog; ac_word=$2 22402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22403 $as_echo_n "checking for $ac_word... " >&6; } 22404 if ${ac_cv_path_XATTR+:} false; then : 22405 $as_echo_n "(cached) " >&6 22406 else 22407 case $XATTR in 22408 [\\/]* | ?:[\\/]*) 22409 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 22410 ;; 22411 *) 22412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22413 for as_dir in $PATH 22414 do 22415 IFS=$as_save_IFS 22416 test -z "$as_dir" && as_dir=. 22417 for ac_exec_ext in '' $ac_executable_extensions; do 22418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22419 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 22420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22421 break 2 22422 fi 22423 done 22424 done 22425 IFS=$as_save_IFS 22426 22427 ;; 22428 esac 22429 fi 22430 XATTR=$ac_cv_path_XATTR 22431 if test -n "$XATTR"; then 22432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 22433 $as_echo "$XATTR" >&6; } 22434 else 22435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22436 $as_echo "no" >&6; } 22437 fi 22438 22439 22440 test -n "$XATTR" && break 22441 done 22442 22443 else 22444 # If it succeeded, then it was overridden by the user. We will use it 22445 # for the tool. 22446 22447 # First remove it from the list of overridden variables, so we can test 22448 # for unknown variables in the end. 22449 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22450 22451 # Check if we try to supply an empty value 22452 if test "x$XATTR" = x; then 22453 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5 22454 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;} 22455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 22456 $as_echo_n "checking for XATTR... " >&6; } 22457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22458 $as_echo "disabled" >&6; } 22459 else 22460 # Check if the provided tool contains a complete path. 22461 tool_specified="$XATTR" 22462 tool_basename="${tool_specified##*/}" 22463 if test "x$tool_basename" = "x$tool_specified"; then 22464 # A command without a complete path is provided, search $PATH. 22465 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 22466 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 22467 # Extract the first word of "$tool_basename", so it can be a program name with args. 22468 set dummy $tool_basename; ac_word=$2 22469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22470 $as_echo_n "checking for $ac_word... " >&6; } 22471 if ${ac_cv_path_XATTR+:} false; then : 22472 $as_echo_n "(cached) " >&6 22473 else 22474 case $XATTR in 22475 [\\/]* | ?:[\\/]*) 22476 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 22477 ;; 22478 *) 22479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22480 for as_dir in $PATH 22481 do 22482 IFS=$as_save_IFS 22483 test -z "$as_dir" && as_dir=. 22484 for ac_exec_ext in '' $ac_executable_extensions; do 22485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22486 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 22487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22488 break 2 22489 fi 22490 done 22491 done 22492 IFS=$as_save_IFS 22493 22494 ;; 22495 esac 22496 fi 22497 XATTR=$ac_cv_path_XATTR 22498 if test -n "$XATTR"; then 22499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 22500 $as_echo "$XATTR" >&6; } 22501 else 22502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22503 $as_echo "no" >&6; } 22504 fi 22505 22506 22507 if test "x$XATTR" = x; then 22508 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22509 fi 22510 else 22511 # Otherwise we believe it is a complete path. Use it as it is. 22512 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 22513 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 22514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 22515 $as_echo_n "checking for XATTR... " >&6; } 22516 if test ! -x "$tool_specified"; then 22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22518 $as_echo "not found" >&6; } 22519 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 22520 fi 22521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22522 $as_echo "$tool_specified" >&6; } 22523 fi 22524 fi 22525 fi 22526 22527 fi 22528 22529 22530 22531 if test "x$XATTR" = x; then 22532 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 22533 fi 22534 22535 22536 22537 22538 # Publish this variable in the help. 22539 22540 22541 if [ -z "${CODESIGN+x}" ]; then 22542 # The variable is not set by user, try to locate tool using the code snippet 22543 for ac_prog in codesign 22544 do 22545 # Extract the first word of "$ac_prog", so it can be a program name with args. 22546 set dummy $ac_prog; ac_word=$2 22547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22548 $as_echo_n "checking for $ac_word... " >&6; } 22549 if ${ac_cv_path_CODESIGN+:} false; then : 22550 $as_echo_n "(cached) " >&6 22551 else 22552 case $CODESIGN in 22553 [\\/]* | ?:[\\/]*) 22554 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 22555 ;; 22556 *) 22557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22558 for as_dir in $PATH 22559 do 22560 IFS=$as_save_IFS 22561 test -z "$as_dir" && as_dir=. 22562 for ac_exec_ext in '' $ac_executable_extensions; do 22563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22564 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 22565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22566 break 2 22567 fi 22568 done 22569 done 22570 IFS=$as_save_IFS 22571 22572 ;; 22573 esac 22574 fi 22575 CODESIGN=$ac_cv_path_CODESIGN 22576 if test -n "$CODESIGN"; then 22577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 22578 $as_echo "$CODESIGN" >&6; } 22579 else 22580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22581 $as_echo "no" >&6; } 22582 fi 22583 22584 22585 test -n "$CODESIGN" && break 22586 done 22587 22588 else 22589 # The variable is set, but is it from the command line or the environment? 22590 22591 # Try to remove the string !CODESIGN! from our list. 22592 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 22593 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22594 # If it failed, the variable was not from the command line. Ignore it, 22595 # but warn the user (except for BASH, which is always set by the calling BASH). 22596 if test "xCODESIGN" != xBASH; then 22597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 22598 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 22599 fi 22600 # Try to locate tool using the code snippet 22601 for ac_prog in codesign 22602 do 22603 # Extract the first word of "$ac_prog", so it can be a program name with args. 22604 set dummy $ac_prog; ac_word=$2 22605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22606 $as_echo_n "checking for $ac_word... " >&6; } 22607 if ${ac_cv_path_CODESIGN+:} false; then : 22608 $as_echo_n "(cached) " >&6 22609 else 22610 case $CODESIGN in 22611 [\\/]* | ?:[\\/]*) 22612 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 22613 ;; 22614 *) 22615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22616 for as_dir in $PATH 22617 do 22618 IFS=$as_save_IFS 22619 test -z "$as_dir" && as_dir=. 22620 for ac_exec_ext in '' $ac_executable_extensions; do 22621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22622 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 22623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22624 break 2 22625 fi 22626 done 22627 done 22628 IFS=$as_save_IFS 22629 22630 ;; 22631 esac 22632 fi 22633 CODESIGN=$ac_cv_path_CODESIGN 22634 if test -n "$CODESIGN"; then 22635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 22636 $as_echo "$CODESIGN" >&6; } 22637 else 22638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22639 $as_echo "no" >&6; } 22640 fi 22641 22642 22643 test -n "$CODESIGN" && break 22644 done 22645 22646 else 22647 # If it succeeded, then it was overridden by the user. We will use it 22648 # for the tool. 22649 22650 # First remove it from the list of overridden variables, so we can test 22651 # for unknown variables in the end. 22652 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22653 22654 # Check if we try to supply an empty value 22655 if test "x$CODESIGN" = x; then 22656 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5 22657 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;} 22658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 22659 $as_echo_n "checking for CODESIGN... " >&6; } 22660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22661 $as_echo "disabled" >&6; } 22662 else 22663 # Check if the provided tool contains a complete path. 22664 tool_specified="$CODESIGN" 22665 tool_basename="${tool_specified##*/}" 22666 if test "x$tool_basename" = "x$tool_specified"; then 22667 # A command without a complete path is provided, search $PATH. 22668 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 22669 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 22670 # Extract the first word of "$tool_basename", so it can be a program name with args. 22671 set dummy $tool_basename; ac_word=$2 22672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22673 $as_echo_n "checking for $ac_word... " >&6; } 22674 if ${ac_cv_path_CODESIGN+:} false; then : 22675 $as_echo_n "(cached) " >&6 22676 else 22677 case $CODESIGN in 22678 [\\/]* | ?:[\\/]*) 22679 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 22680 ;; 22681 *) 22682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22683 for as_dir in $PATH 22684 do 22685 IFS=$as_save_IFS 22686 test -z "$as_dir" && as_dir=. 22687 for ac_exec_ext in '' $ac_executable_extensions; do 22688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22689 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 22690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22691 break 2 22692 fi 22693 done 22694 done 22695 IFS=$as_save_IFS 22696 22697 ;; 22698 esac 22699 fi 22700 CODESIGN=$ac_cv_path_CODESIGN 22701 if test -n "$CODESIGN"; then 22702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 22703 $as_echo "$CODESIGN" >&6; } 22704 else 22705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22706 $as_echo "no" >&6; } 22707 fi 22708 22709 22710 if test "x$CODESIGN" = x; then 22711 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22712 fi 22713 else 22714 # Otherwise we believe it is a complete path. Use it as it is. 22715 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 22716 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 22717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 22718 $as_echo_n "checking for CODESIGN... " >&6; } 22719 if test ! -x "$tool_specified"; then 22720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22721 $as_echo "not found" >&6; } 22722 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 22723 fi 22724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22725 $as_echo "$tool_specified" >&6; } 22726 fi 22727 fi 22728 fi 22729 22730 fi 22731 22732 22733 if test "x$CODESIGN" != "x"; then 22734 # Verify that the openjdk_codesign certificate is present 22735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 22736 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 22737 rm -f codesign-testfile 22738 touch codesign-testfile 22739 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 22740 rm -f codesign-testfile 22741 if test "x$CODESIGN" = x; then 22742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22743 $as_echo "no" >&6; } 22744 else 22745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22746 $as_echo "yes" >&6; } 22747 fi 22748 fi 22749 22750 22751 22752 # Publish this variable in the help. 22753 22754 22755 if [ -z "${SETFILE+x}" ]; then 22756 # The variable is not set by user, try to locate tool using the code snippet 22757 for ac_prog in SetFile 22758 do 22759 # Extract the first word of "$ac_prog", so it can be a program name with args. 22760 set dummy $ac_prog; ac_word=$2 22761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22762 $as_echo_n "checking for $ac_word... " >&6; } 22763 if ${ac_cv_path_SETFILE+:} false; then : 22764 $as_echo_n "(cached) " >&6 22765 else 22766 case $SETFILE in 22767 [\\/]* | ?:[\\/]*) 22768 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 22769 ;; 22770 *) 22771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22772 for as_dir in $PATH 22773 do 22774 IFS=$as_save_IFS 22775 test -z "$as_dir" && as_dir=. 22776 for ac_exec_ext in '' $ac_executable_extensions; do 22777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22778 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 22779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22780 break 2 22781 fi 22782 done 22783 done 22784 IFS=$as_save_IFS 22785 22786 ;; 22787 esac 22788 fi 22789 SETFILE=$ac_cv_path_SETFILE 22790 if test -n "$SETFILE"; then 22791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 22792 $as_echo "$SETFILE" >&6; } 22793 else 22794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22795 $as_echo "no" >&6; } 22796 fi 22797 22798 22799 test -n "$SETFILE" && break 22800 done 22801 22802 else 22803 # The variable is set, but is it from the command line or the environment? 22804 22805 # Try to remove the string !SETFILE! from our list. 22806 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 22807 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22808 # If it failed, the variable was not from the command line. Ignore it, 22809 # but warn the user (except for BASH, which is always set by the calling BASH). 22810 if test "xSETFILE" != xBASH; then 22811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 22812 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 22813 fi 22814 # Try to locate tool using the code snippet 22815 for ac_prog in SetFile 22816 do 22817 # Extract the first word of "$ac_prog", so it can be a program name with args. 22818 set dummy $ac_prog; ac_word=$2 22819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22820 $as_echo_n "checking for $ac_word... " >&6; } 22821 if ${ac_cv_path_SETFILE+:} false; then : 22822 $as_echo_n "(cached) " >&6 22823 else 22824 case $SETFILE in 22825 [\\/]* | ?:[\\/]*) 22826 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 22827 ;; 22828 *) 22829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22830 for as_dir in $PATH 22831 do 22832 IFS=$as_save_IFS 22833 test -z "$as_dir" && as_dir=. 22834 for ac_exec_ext in '' $ac_executable_extensions; do 22835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22836 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 22837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22838 break 2 22839 fi 22840 done 22841 done 22842 IFS=$as_save_IFS 22843 22844 ;; 22845 esac 22846 fi 22847 SETFILE=$ac_cv_path_SETFILE 22848 if test -n "$SETFILE"; then 22849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 22850 $as_echo "$SETFILE" >&6; } 22851 else 22852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22853 $as_echo "no" >&6; } 22854 fi 22855 22856 22857 test -n "$SETFILE" && break 22858 done 22859 22860 else 22861 # If it succeeded, then it was overridden by the user. We will use it 22862 # for the tool. 22863 22864 # First remove it from the list of overridden variables, so we can test 22865 # for unknown variables in the end. 22866 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22867 22868 # Check if we try to supply an empty value 22869 if test "x$SETFILE" = x; then 22870 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5 22871 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;} 22872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 22873 $as_echo_n "checking for SETFILE... " >&6; } 22874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22875 $as_echo "disabled" >&6; } 22876 else 22877 # Check if the provided tool contains a complete path. 22878 tool_specified="$SETFILE" 22879 tool_basename="${tool_specified##*/}" 22880 if test "x$tool_basename" = "x$tool_specified"; then 22881 # A command without a complete path is provided, search $PATH. 22882 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 22883 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 22884 # Extract the first word of "$tool_basename", so it can be a program name with args. 22885 set dummy $tool_basename; ac_word=$2 22886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22887 $as_echo_n "checking for $ac_word... " >&6; } 22888 if ${ac_cv_path_SETFILE+:} false; then : 22889 $as_echo_n "(cached) " >&6 22890 else 22891 case $SETFILE in 22892 [\\/]* | ?:[\\/]*) 22893 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 22894 ;; 22895 *) 22896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22897 for as_dir in $PATH 22898 do 22899 IFS=$as_save_IFS 22900 test -z "$as_dir" && as_dir=. 22901 for ac_exec_ext in '' $ac_executable_extensions; do 22902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22903 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 22904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22905 break 2 22906 fi 22907 done 22908 done 22909 IFS=$as_save_IFS 22910 22911 ;; 22912 esac 22913 fi 22914 SETFILE=$ac_cv_path_SETFILE 22915 if test -n "$SETFILE"; then 22916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 22917 $as_echo "$SETFILE" >&6; } 22918 else 22919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22920 $as_echo "no" >&6; } 22921 fi 22922 22923 22924 if test "x$SETFILE" = x; then 22925 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22926 fi 22927 else 22928 # Otherwise we believe it is a complete path. Use it as it is. 22929 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 22930 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 22931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 22932 $as_echo_n "checking for SETFILE... " >&6; } 22933 if test ! -x "$tool_specified"; then 22934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22935 $as_echo "not found" >&6; } 22936 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 22937 fi 22938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22939 $as_echo "$tool_specified" >&6; } 22940 fi 22941 fi 22942 fi 22943 22944 fi 22945 22946 22947 22948 if test "x$SETFILE" = x; then 22949 as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5 22950 fi 22951 22952 22953 fi 22954 22955 22956 # Test if bash supports pipefail. 22957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5 22958 $as_echo_n "checking if bash supports pipefail... " >&6; } 22959 if ${BASH} -c 'set -o pipefail'; then 22960 BASH_ARGS="$BASH_ARGS -o pipefail" 22961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22962 $as_echo "yes" >&6; } 22963 else 22964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22965 $as_echo "no" >&6; } 22966 fi 22967 22968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5 22969 $as_echo_n "checking if bash supports errexit (-e)... " >&6; } 22970 if ${BASH} -e -c 'true'; then 22971 BASH_ARGS="$BASH_ARGS -e" 22972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22973 $as_echo "yes" >&6; } 22974 else 22975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22976 $as_echo "no" >&6; } 22977 fi 22978 22979 22980 22981 22982 # Check if pkg-config is available. 22983 22984 22985 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 22986 if test -n "$ac_tool_prefix"; then 22987 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 22988 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 22989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22990 $as_echo_n "checking for $ac_word... " >&6; } 22991 if ${ac_cv_path_PKG_CONFIG+:} false; then : 22992 $as_echo_n "(cached) " >&6 22993 else 22994 case $PKG_CONFIG in 22995 [\\/]* | ?:[\\/]*) 22996 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 22997 ;; 22998 *) 22999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23000 for as_dir in $PATH 23001 do 23002 IFS=$as_save_IFS 23003 test -z "$as_dir" && as_dir=. 23004 for ac_exec_ext in '' $ac_executable_extensions; do 23005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23006 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 23007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23008 break 2 23009 fi 23010 done 23011 done 23012 IFS=$as_save_IFS 23013 23014 ;; 23015 esac 23016 fi 23017 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 23018 if test -n "$PKG_CONFIG"; then 23019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 23020 $as_echo "$PKG_CONFIG" >&6; } 23021 else 23022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23023 $as_echo "no" >&6; } 23024 fi 23025 23026 23027 fi 23028 if test -z "$ac_cv_path_PKG_CONFIG"; then 23029 ac_pt_PKG_CONFIG=$PKG_CONFIG 23030 # Extract the first word of "pkg-config", so it can be a program name with args. 23031 set dummy pkg-config; ac_word=$2 23032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23033 $as_echo_n "checking for $ac_word... " >&6; } 23034 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 23035 $as_echo_n "(cached) " >&6 23036 else 23037 case $ac_pt_PKG_CONFIG in 23038 [\\/]* | ?:[\\/]*) 23039 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 23040 ;; 23041 *) 23042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23043 for as_dir in $PATH 23044 do 23045 IFS=$as_save_IFS 23046 test -z "$as_dir" && as_dir=. 23047 for ac_exec_ext in '' $ac_executable_extensions; do 23048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23049 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 23050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23051 break 2 23052 fi 23053 done 23054 done 23055 IFS=$as_save_IFS 23056 23057 ;; 23058 esac 23059 fi 23060 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 23061 if test -n "$ac_pt_PKG_CONFIG"; then 23062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 23063 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 23064 else 23065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23066 $as_echo "no" >&6; } 23067 fi 23068 23069 if test "x$ac_pt_PKG_CONFIG" = x; then 23070 PKG_CONFIG="" 23071 else 23072 case $cross_compiling:$ac_tool_warned in 23073 yes:) 23074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 23075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 23076 ac_tool_warned=yes ;; 23077 esac 23078 PKG_CONFIG=$ac_pt_PKG_CONFIG 23079 fi 23080 else 23081 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 23082 fi 23083 23084 fi 23085 if test -n "$PKG_CONFIG"; then 23086 _pkg_min_version=0.9.0 23087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 23088 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 23089 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 23090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23091 $as_echo "yes" >&6; } 23092 else 23093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23094 $as_echo "no" >&6; } 23095 PKG_CONFIG="" 23096 fi 23097 23098 fi 23099 23100 # After basic tools have been setup, we can check build os specific details. 23101 23102 ############################################################################### 23103 23104 # Note that this is the build platform OS version! 23105 23106 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 23107 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 23108 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 23109 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 23110 23111 23112 23113 23114 23115 # Misc basic settings 23116 23117 23118 # Check whether --with-default-make-target was given. 23119 if test "${with_default_make_target+set}" = set; then : 23120 withval=$with_default_make_target; 23121 fi 23122 23123 if test "x$with_default_make_target" = "x" \ 23124 || test "x$with_default_make_target" = "xyes"; then 23125 DEFAULT_MAKE_TARGET="exploded-image" 23126 elif test "x$with_default_make_target" = "xno"; then 23127 as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5 23128 else 23129 DEFAULT_MAKE_TARGET="$with_default_make_target" 23130 fi 23131 23132 23133 23134 23135 ############################################################################### 23136 # 23137 # Determine OpenJDK variants, options and version numbers. 23138 # 23139 ############################################################################### 23140 23141 # We need build & target for this. 23142 23143 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 23144 # We always build headless support. 23145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 23146 $as_echo_n "checking headful support... " >&6; } 23147 # Check whether --enable-headful was given. 23148 if test "${enable_headful+set}" = set; then : 23149 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 23150 else 23151 SUPPORT_HEADFUL=yes 23152 fi 23153 23154 23155 SUPPORT_HEADLESS=yes 23156 BUILD_HEADLESS="BUILD_HEADLESS:=true" 23157 23158 if test "x$SUPPORT_HEADFUL" = xyes; then 23159 # We are building both headful and headless. 23160 headful_msg="include support for both headful and headless" 23161 fi 23162 23163 if test "x$SUPPORT_HEADFUL" = xno; then 23164 # Thus we are building headless only. 23165 BUILD_HEADLESS="BUILD_HEADLESS:=true" 23166 headful_msg="headless only" 23167 fi 23168 23169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 23170 $as_echo "$headful_msg" >&6; } 23171 23172 23173 23174 23175 23176 # Choose cacerts source file 23177 23178 # Check whether --with-cacerts-file was given. 23179 if test "${with_cacerts_file+set}" = set; then : 23180 withval=$with_cacerts_file; 23181 fi 23182 23183 if test "x$with_cacerts_file" != x; then 23184 CACERTS_FILE=$with_cacerts_file 23185 fi 23186 23187 23188 # Enable or disable unlimited crypto 23189 # Check whether --enable-unlimited-crypto was given. 23190 if test "${enable_unlimited_crypto+set}" = set; then : 23191 enableval=$enable_unlimited_crypto; 23192 else 23193 enable_unlimited_crypto=no 23194 fi 23195 23196 if test "x$enable_unlimited_crypto" = "xyes"; then 23197 UNLIMITED_CRYPTO=true 23198 else 23199 UNLIMITED_CRYPTO=false 23200 fi 23201 23202 23203 # Compress jars 23204 COMPRESS_JARS=false 23205 23206 23207 23208 # Setup default copyright year. Mostly overridden when building close to a new year. 23209 23210 # Check whether --with-copyright-year was given. 23211 if test "${with_copyright_year+set}" = set; then : 23212 withval=$with_copyright_year; 23213 fi 23214 23215 if test "x$with_copyright_year" = xyes; then 23216 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 23217 elif test "x$with_copyright_year" != x; then 23218 COPYRIGHT_YEAR="$with_copyright_year" 23219 else 23220 COPYRIGHT_YEAR=`date +'%Y'` 23221 fi 23222 23223 23224 23225 # Control wether Hotspot runs Queens test after build. 23226 # Check whether --enable-hotspot-test-in-build was given. 23227 if test "${enable_hotspot_test_in_build+set}" = set; then : 23228 enableval=$enable_hotspot_test_in_build; 23229 else 23230 enable_hotspot_test_in_build=no 23231 fi 23232 23233 if test "x$enable_hotspot_test_in_build" = "xyes"; then 23234 TEST_IN_BUILD=true 23235 else 23236 TEST_IN_BUILD=false 23237 fi 23238 23239 23240 23241 # Warn user that old version arguments are deprecated. 23242 23243 23244 # Check whether --with-milestone was given. 23245 if test "${with_milestone+set}" = set; then : 23246 withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5 23247 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;} 23248 fi 23249 23250 23251 23252 23253 # Check whether --with-update-version was given. 23254 if test "${with_update_version+set}" = set; then : 23255 withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5 23256 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;} 23257 fi 23258 23259 23260 23261 23262 # Check whether --with-user-release-suffix was given. 23263 if test "${with_user_release_suffix+set}" = set; then : 23264 withval=$with_user_release_suffix; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&5 23265 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;} 23266 fi 23267 23268 23269 23270 23271 # Check whether --with-build-number was given. 23272 if test "${with_build_number+set}" = set; then : 23273 withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5 23274 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;} 23275 fi 23276 23277 23278 23279 # Source the version numbers file 23280 . $AUTOCONF_DIR/version-numbers 23281 23282 # Some non-version number information is set in that file 23283 23284 23285 23286 23287 23288 23289 23290 23291 # Override version from arguments 23292 23293 # If --with-version-string is set, process it first. It is possible to 23294 # override parts with more specific flags, since these are processed later. 23295 23296 # Check whether --with-version-string was given. 23297 if test "${with_version_string+set}" = set; then : 23298 withval=$with_version_string; 23299 fi 23300 23301 if test "x$with_version_string" = xyes; then 23302 as_fn_error $? "--with-version-string must have a value" "$LINENO" 5 23303 elif test "x$with_version_string" != x; then 23304 # Additional [] needed to keep m4 from mangling shell constructs. 23305 if [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then 23306 VERSION_MAJOR=${BASH_REMATCH[1]} 23307 VERSION_MINOR=${BASH_REMATCH[3]} 23308 VERSION_SECURITY=${BASH_REMATCH[5]} 23309 VERSION_PATCH=${BASH_REMATCH[7]} 23310 VERSION_PRE=${BASH_REMATCH[9]} 23311 version_plus_separator=${BASH_REMATCH[11]} 23312 VERSION_BUILD=${BASH_REMATCH[12]} 23313 VERSION_OPT=${BASH_REMATCH[14]} 23314 # Unspecified numerical fields are interpreted as 0. 23315 if test "x$VERSION_MINOR" = x; then 23316 VERSION_MINOR=0 23317 fi 23318 if test "x$VERSION_SECURITY" = x; then 23319 VERSION_SECURITY=0 23320 fi 23321 if test "x$VERSION_PATCH" = x; then 23322 VERSION_PATCH=0 23323 fi 23324 if test "x$version_plus_separator" != x \ 23325 && test "x$VERSION_BUILD$VERSION_OPT" = x; then 23326 as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5 23327 fi 23328 # Stop the version part process from setting default values. 23329 # We still allow them to explicitely override though. 23330 NO_DEFAULT_VERSION_PARTS=true 23331 else 23332 as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5 23333 fi 23334 fi 23335 23336 23337 # Check whether --with-version-pre was given. 23338 if test "${with_version_pre+set}" = set; then : 23339 withval=$with_version_pre; with_version_pre_present=true 23340 else 23341 with_version_pre_present=false 23342 fi 23343 23344 23345 if test "x$with_version_pre_present" = xtrue; then 23346 if test "x$with_version_pre" = xyes; then 23347 as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5 23348 elif test "x$with_version_pre" = xno; then 23349 # Interpret --without-* as empty string instead of the literal "no" 23350 VERSION_PRE= 23351 else 23352 # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4. 23353 VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'` 23354 if test "x$VERSION_PRE" != "x$with_version_pre"; then 23355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5 23356 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;} 23357 fi 23358 fi 23359 else 23360 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 23361 # Default is to use "internal" as pre 23362 VERSION_PRE="internal" 23363 fi 23364 fi 23365 23366 23367 # Check whether --with-version-opt was given. 23368 if test "${with_version_opt+set}" = set; then : 23369 withval=$with_version_opt; with_version_opt_present=true 23370 else 23371 with_version_opt_present=false 23372 fi 23373 23374 23375 if test "x$with_version_opt_present" = xtrue; then 23376 if test "x$with_version_opt" = xyes; then 23377 as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5 23378 elif test "x$with_version_opt" = xno; then 23379 # Interpret --without-* as empty string instead of the literal "no" 23380 VERSION_OPT= 23381 else 23382 # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4. 23383 VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'` 23384 if test "x$VERSION_OPT" != "x$with_version_opt"; then 23385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5 23386 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;} 23387 fi 23388 fi 23389 else 23390 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 23391 # Default is to calculate a string like this <timestamp>.<username>.<base dir name> 23392 timestamp=`$DATE '+%Y-%m-%d-%H%M%S'` 23393 # Outer [ ] to quote m4. 23394 username=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'` 23395 basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'` 23396 VERSION_OPT="$timestamp.$username.$basedirname" 23397 fi 23398 fi 23399 23400 23401 # Check whether --with-version-build was given. 23402 if test "${with_version_build+set}" = set; then : 23403 withval=$with_version_build; with_version_build_present=true 23404 else 23405 with_version_build_present=false 23406 fi 23407 23408 23409 if test "x$with_version_build_present" = xtrue; then 23410 if test "x$with_version_build" = xyes; then 23411 as_fn_error $? "--with-version-build must have a value" "$LINENO" 5 23412 elif test "x$with_version_build" = xno; then 23413 # Interpret --without-* as empty string instead of the literal "no" 23414 VERSION_BUILD= 23415 elif test "x$with_version_build" = x; then 23416 VERSION_BUILD= 23417 else 23418 23419 # Additional [] needed to keep m4 from mangling shell constructs. 23420 if ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 23421 as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5 23422 fi 23423 # Extract the version number without leading zeros. 23424 cleaned_value=${BASH_REMATCH[1]} 23425 if test "x$cleaned_value" = x; then 23426 # Special case for zero 23427 cleaned_value=${BASH_REMATCH[2]} 23428 fi 23429 23430 if test $cleaned_value -gt 255; then 23431 as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5 23432 fi 23433 if test "x$cleaned_value" != "x$with_version_build"; then 23434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5 23435 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;} 23436 fi 23437 VERSION_BUILD=$cleaned_value 23438 23439 fi 23440 else 23441 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 23442 # Default is to not have a build number. 23443 VERSION_BUILD="" 23444 # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0. 23445 VERSION_BUILD=0 23446 fi 23447 fi 23448 23449 23450 # Check whether --with-version-major was given. 23451 if test "${with_version_major+set}" = set; then : 23452 withval=$with_version_major; with_version_major_present=true 23453 else 23454 with_version_major_present=false 23455 fi 23456 23457 23458 if test "x$with_version_major_present" = xtrue; then 23459 if test "x$with_version_major" = xyes; then 23460 as_fn_error $? "--with-version-major must have a value" "$LINENO" 5 23461 else 23462 23463 # Additional [] needed to keep m4 from mangling shell constructs. 23464 if ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 23465 as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5 23466 fi 23467 # Extract the version number without leading zeros. 23468 cleaned_value=${BASH_REMATCH[1]} 23469 if test "x$cleaned_value" = x; then 23470 # Special case for zero 23471 cleaned_value=${BASH_REMATCH[2]} 23472 fi 23473 23474 if test $cleaned_value -gt 255; then 23475 as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5 23476 fi 23477 if test "x$cleaned_value" != "x$with_version_major"; then 23478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5 23479 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;} 23480 fi 23481 VERSION_MAJOR=$cleaned_value 23482 23483 fi 23484 else 23485 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 23486 # Default is to get value from version-numbers 23487 VERSION_MAJOR="$DEFAULT_VERSION_MAJOR" 23488 fi 23489 fi 23490 23491 23492 # Check whether --with-version-minor was given. 23493 if test "${with_version_minor+set}" = set; then : 23494 withval=$with_version_minor; with_version_minor_present=true 23495 else 23496 with_version_minor_present=false 23497 fi 23498 23499 23500 if test "x$with_version_minor_present" = xtrue; then 23501 if test "x$with_version_minor" = xyes; then 23502 as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5 23503 elif test "x$with_version_minor" = xno; then 23504 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 23505 VERSION_MINOR=0 23506 elif test "x$with_version_minor" = x; then 23507 VERSION_MINOR=0 23508 else 23509 23510 # Additional [] needed to keep m4 from mangling shell constructs. 23511 if ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 23512 as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5 23513 fi 23514 # Extract the version number without leading zeros. 23515 cleaned_value=${BASH_REMATCH[1]} 23516 if test "x$cleaned_value" = x; then 23517 # Special case for zero 23518 cleaned_value=${BASH_REMATCH[2]} 23519 fi 23520 23521 if test $cleaned_value -gt 255; then 23522 as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5 23523 fi 23524 if test "x$cleaned_value" != "x$with_version_minor"; then 23525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5 23526 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;} 23527 fi 23528 VERSION_MINOR=$cleaned_value 23529 23530 fi 23531 else 23532 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 23533 # Default is 0, if unspecified 23534 VERSION_MINOR=0 23535 fi 23536 fi 23537 23538 23539 # Check whether --with-version-security was given. 23540 if test "${with_version_security+set}" = set; then : 23541 withval=$with_version_security; with_version_security_present=true 23542 else 23543 with_version_security_present=false 23544 fi 23545 23546 23547 if test "x$with_version_security_present" = xtrue; then 23548 if test "x$with_version_security" = xyes; then 23549 as_fn_error $? "--with-version-security must have a value" "$LINENO" 5 23550 elif test "x$with_version_security" = xno; then 23551 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 23552 VERSION_SECURITY=0 23553 elif test "x$with_version_security" = x; then 23554 VERSION_SECURITY=0 23555 else 23556 23557 # Additional [] needed to keep m4 from mangling shell constructs. 23558 if ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 23559 as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5 23560 fi 23561 # Extract the version number without leading zeros. 23562 cleaned_value=${BASH_REMATCH[1]} 23563 if test "x$cleaned_value" = x; then 23564 # Special case for zero 23565 cleaned_value=${BASH_REMATCH[2]} 23566 fi 23567 23568 if test $cleaned_value -gt 255; then 23569 as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5 23570 fi 23571 if test "x$cleaned_value" != "x$with_version_security"; then 23572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5 23573 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;} 23574 fi 23575 VERSION_SECURITY=$cleaned_value 23576 23577 fi 23578 else 23579 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 23580 # Default is 0, if unspecified 23581 VERSION_SECURITY=0 23582 fi 23583 fi 23584 23585 23586 # Check whether --with-version-patch was given. 23587 if test "${with_version_patch+set}" = set; then : 23588 withval=$with_version_patch; with_version_patch_present=true 23589 else 23590 with_version_patch_present=false 23591 fi 23592 23593 23594 if test "x$with_version_patch_present" = xtrue; then 23595 if test "x$with_version_patch" = xyes; then 23596 as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5 23597 elif test "x$with_version_patch" = xno; then 23598 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 23599 VERSION_PATCH=0 23600 elif test "x$with_version_patch" = x; then 23601 VERSION_PATCH=0 23602 else 23603 23604 # Additional [] needed to keep m4 from mangling shell constructs. 23605 if ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 23606 as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5 23607 fi 23608 # Extract the version number without leading zeros. 23609 cleaned_value=${BASH_REMATCH[1]} 23610 if test "x$cleaned_value" = x; then 23611 # Special case for zero 23612 cleaned_value=${BASH_REMATCH[2]} 23613 fi 23614 23615 if test $cleaned_value -gt 255; then 23616 as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5 23617 fi 23618 if test "x$cleaned_value" != "x$with_version_patch"; then 23619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5 23620 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;} 23621 fi 23622 VERSION_PATCH=$cleaned_value 23623 23624 fi 23625 else 23626 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 23627 # Default is 0, if unspecified 23628 VERSION_PATCH=0 23629 fi 23630 fi 23631 23632 # Calculate derived version properties 23633 23634 # Set VERSION_IS_GA based on if VERSION_PRE has a value 23635 if test "x$VERSION_PRE" = x; then 23636 VERSION_IS_GA=true 23637 else 23638 VERSION_IS_GA=false 23639 fi 23640 23641 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions. 23642 VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH 23643 23644 stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS 23645 # Strip trailing zeroes from stripped_version_number 23646 for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done 23647 VERSION_NUMBER=$stripped_version_number 23648 23649 # The complete version string, with additional build information 23650 if test "x$VERSION_BUILD$VERSION_OPT" = x; then 23651 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 23652 else 23653 # If either build or opt is set, we need a + separator 23654 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT} 23655 fi 23656 23657 # The short version string, just VERSION_NUMBER and PRE, if present. 23658 VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 23659 23660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5 23661 $as_echo_n "checking for version string... " >&6; } 23662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5 23663 $as_echo "$VERSION_STRING" >&6; } 23664 23665 23666 23667 23668 23669 23670 23671 23672 23673 23674 23675 23676 23677 23678 23679 ############################################################################### 23680 # 23681 # Setup BootJDK, used to bootstrap the build. 23682 # 23683 ############################################################################### 23684 23685 23686 BOOT_JDK_FOUND=no 23687 23688 # Check whether --with-boot-jdk was given. 23689 if test "${with_boot_jdk+set}" = set; then : 23690 withval=$with_boot_jdk; 23691 fi 23692 23693 23694 # We look for the Boot JDK through various means, going from more certain to 23695 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 23696 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 23697 # must check if this is indeed valid; otherwise we'll continue looking. 23698 23699 # Test: Is bootjdk explicitely set by command line arguments? 23700 23701 if test "x$BOOT_JDK_FOUND" = xno; then 23702 # Now execute the test 23703 23704 if test "x$with_boot_jdk" != x; then 23705 BOOT_JDK=$with_boot_jdk 23706 BOOT_JDK_FOUND=maybe 23707 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 23708 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 23709 fi 23710 23711 23712 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23713 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23714 # Do we have a bin/java? 23715 if test ! -x "$BOOT_JDK/bin/java"; then 23716 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23717 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23718 BOOT_JDK_FOUND=no 23719 else 23720 # Do we have a bin/javac? 23721 if test ! -x "$BOOT_JDK/bin/javac"; then 23722 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23723 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23724 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23725 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23726 BOOT_JDK_FOUND=no 23727 else 23728 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23729 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23730 23731 # Extra M4 quote needed to protect [] in grep expression. 23732 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 23733 if test "x$FOUND_CORRECT_VERSION" = x; then 23734 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23735 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23736 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23737 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23738 BOOT_JDK_FOUND=no 23739 else 23740 # We're done! :-) 23741 BOOT_JDK_FOUND=yes 23742 23743 # Only process if variable expands to non-empty 23744 23745 if test "x$BOOT_JDK" != x; then 23746 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23747 23748 # Input might be given as Windows format, start by converting to 23749 # unix format. 23750 path="$BOOT_JDK" 23751 new_path=`$CYGPATH -u "$path"` 23752 23753 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23754 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23755 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23756 # "foo.exe" is OK but "foo" is an error. 23757 # 23758 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23759 # It is also a way to make sure we got the proper file name for the real test later on. 23760 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23761 if test "x$test_shortpath" = x; then 23762 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23763 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23764 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23765 fi 23766 23767 # Call helper function which possibly converts this using DOS-style short mode. 23768 # If so, the updated path is stored in $new_path. 23769 23770 input_path="$new_path" 23771 # Check if we need to convert this using DOS-style short mode. If the path 23772 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23773 # take no chances and rewrite it. 23774 # Note: m4 eats our [], so we need to use [ and ] instead. 23775 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23776 if test "x$has_forbidden_chars" != x; then 23777 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23778 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23779 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23780 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23781 # Going to short mode and back again did indeed matter. Since short mode is 23782 # case insensitive, let's make it lowercase to improve readability. 23783 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23784 # Now convert it back to Unix-style (cygpath) 23785 input_path=`$CYGPATH -u "$shortmode_path"` 23786 new_path="$input_path" 23787 fi 23788 fi 23789 23790 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23791 if test "x$test_cygdrive_prefix" = x; then 23792 # As a simple fix, exclude /usr/bin since it's not a real path. 23793 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23794 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23795 # a path prefixed by /cygdrive for fixpath to work. 23796 new_path="$CYGWIN_ROOT_PATH$input_path" 23797 fi 23798 fi 23799 23800 23801 if test "x$path" != "x$new_path"; then 23802 BOOT_JDK="$new_path" 23803 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23804 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23805 fi 23806 23807 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23808 23809 path="$BOOT_JDK" 23810 has_colon=`$ECHO $path | $GREP ^.:` 23811 new_path="$path" 23812 if test "x$has_colon" = x; then 23813 # Not in mixed or Windows style, start by that. 23814 new_path=`cmd //c echo $path` 23815 fi 23816 23817 23818 input_path="$new_path" 23819 # Check if we need to convert this using DOS-style short mode. If the path 23820 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23821 # take no chances and rewrite it. 23822 # Note: m4 eats our [], so we need to use [ and ] instead. 23823 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23824 if test "x$has_forbidden_chars" != x; then 23825 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23826 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23827 fi 23828 23829 23830 windows_path="$new_path" 23831 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23832 unix_path=`$CYGPATH -u "$windows_path"` 23833 new_path="$unix_path" 23834 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23835 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23836 new_path="$unix_path" 23837 fi 23838 23839 if test "x$path" != "x$new_path"; then 23840 BOOT_JDK="$new_path" 23841 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23842 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23843 fi 23844 23845 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23846 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23847 23848 else 23849 # We're on a unix platform. Hooray! :) 23850 path="$BOOT_JDK" 23851 has_space=`$ECHO "$path" | $GREP " "` 23852 if test "x$has_space" != x; then 23853 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23854 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23855 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23856 fi 23857 23858 # Use eval to expand a potential ~ 23859 eval path="$path" 23860 if test ! -f "$path" && test ! -d "$path"; then 23861 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23862 fi 23863 23864 if test -d "$path"; then 23865 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23866 else 23867 dir="`$DIRNAME "$path"`" 23868 base="`$BASENAME "$path"`" 23869 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 23870 fi 23871 fi 23872 fi 23873 23874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23875 $as_echo_n "checking for Boot JDK... " >&6; } 23876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23877 $as_echo "$BOOT_JDK" >&6; } 23878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23879 $as_echo_n "checking Boot JDK version... " >&6; } 23880 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23882 $as_echo "$BOOT_JDK_VERSION" >&6; } 23883 fi # end check jdk version 23884 fi # end check javac 23885 fi # end check java 23886 fi # end check boot jdk found 23887 fi 23888 23889 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 23890 # Having specified an argument which is incorrect will produce an instant failure; 23891 # we should not go on looking 23892 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 23893 fi 23894 23895 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 23896 23897 if test "x$BOOT_JDK_FOUND" = xno; then 23898 # Now execute the test 23899 23900 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 23901 # First check at user selected default 23902 23903 if test "x$BOOT_JDK_FOUND" = xno; then 23904 # Now execute the test 23905 23906 if test -x /usr/libexec/java_home; then 23907 BOOT_JDK=`/usr/libexec/java_home ` 23908 BOOT_JDK_FOUND=maybe 23909 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 23910 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 23911 fi 23912 23913 23914 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23915 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23916 # Do we have a bin/java? 23917 if test ! -x "$BOOT_JDK/bin/java"; then 23918 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23919 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23920 BOOT_JDK_FOUND=no 23921 else 23922 # Do we have a bin/javac? 23923 if test ! -x "$BOOT_JDK/bin/javac"; then 23924 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23925 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23926 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23927 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23928 BOOT_JDK_FOUND=no 23929 else 23930 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23931 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23932 23933 # Extra M4 quote needed to protect [] in grep expression. 23934 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 23935 if test "x$FOUND_CORRECT_VERSION" = x; then 23936 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23937 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23938 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23939 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23940 BOOT_JDK_FOUND=no 23941 else 23942 # We're done! :-) 23943 BOOT_JDK_FOUND=yes 23944 23945 # Only process if variable expands to non-empty 23946 23947 if test "x$BOOT_JDK" != x; then 23948 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23949 23950 # Input might be given as Windows format, start by converting to 23951 # unix format. 23952 path="$BOOT_JDK" 23953 new_path=`$CYGPATH -u "$path"` 23954 23955 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23956 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23957 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23958 # "foo.exe" is OK but "foo" is an error. 23959 # 23960 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23961 # It is also a way to make sure we got the proper file name for the real test later on. 23962 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23963 if test "x$test_shortpath" = x; then 23964 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23965 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23966 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23967 fi 23968 23969 # Call helper function which possibly converts this using DOS-style short mode. 23970 # If so, the updated path is stored in $new_path. 23971 23972 input_path="$new_path" 23973 # Check if we need to convert this using DOS-style short mode. If the path 23974 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23975 # take no chances and rewrite it. 23976 # Note: m4 eats our [], so we need to use [ and ] instead. 23977 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23978 if test "x$has_forbidden_chars" != x; then 23979 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23980 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23981 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23982 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23983 # Going to short mode and back again did indeed matter. Since short mode is 23984 # case insensitive, let's make it lowercase to improve readability. 23985 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23986 # Now convert it back to Unix-style (cygpath) 23987 input_path=`$CYGPATH -u "$shortmode_path"` 23988 new_path="$input_path" 23989 fi 23990 fi 23991 23992 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23993 if test "x$test_cygdrive_prefix" = x; then 23994 # As a simple fix, exclude /usr/bin since it's not a real path. 23995 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23996 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23997 # a path prefixed by /cygdrive for fixpath to work. 23998 new_path="$CYGWIN_ROOT_PATH$input_path" 23999 fi 24000 fi 24001 24002 24003 if test "x$path" != "x$new_path"; then 24004 BOOT_JDK="$new_path" 24005 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24006 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24007 fi 24008 24009 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24010 24011 path="$BOOT_JDK" 24012 has_colon=`$ECHO $path | $GREP ^.:` 24013 new_path="$path" 24014 if test "x$has_colon" = x; then 24015 # Not in mixed or Windows style, start by that. 24016 new_path=`cmd //c echo $path` 24017 fi 24018 24019 24020 input_path="$new_path" 24021 # Check if we need to convert this using DOS-style short mode. If the path 24022 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24023 # take no chances and rewrite it. 24024 # Note: m4 eats our [], so we need to use [ and ] instead. 24025 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24026 if test "x$has_forbidden_chars" != x; then 24027 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24028 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24029 fi 24030 24031 24032 windows_path="$new_path" 24033 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24034 unix_path=`$CYGPATH -u "$windows_path"` 24035 new_path="$unix_path" 24036 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24037 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24038 new_path="$unix_path" 24039 fi 24040 24041 if test "x$path" != "x$new_path"; then 24042 BOOT_JDK="$new_path" 24043 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24044 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24045 fi 24046 24047 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24048 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24049 24050 else 24051 # We're on a unix platform. Hooray! :) 24052 path="$BOOT_JDK" 24053 has_space=`$ECHO "$path" | $GREP " "` 24054 if test "x$has_space" != x; then 24055 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24056 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24057 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24058 fi 24059 24060 # Use eval to expand a potential ~ 24061 eval path="$path" 24062 if test ! -f "$path" && test ! -d "$path"; then 24063 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24064 fi 24065 24066 if test -d "$path"; then 24067 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24068 else 24069 dir="`$DIRNAME "$path"`" 24070 base="`$BASENAME "$path"`" 24071 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 24072 fi 24073 fi 24074 fi 24075 24076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24077 $as_echo_n "checking for Boot JDK... " >&6; } 24078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24079 $as_echo "$BOOT_JDK" >&6; } 24080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24081 $as_echo_n "checking Boot JDK version... " >&6; } 24082 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24084 $as_echo "$BOOT_JDK_VERSION" >&6; } 24085 fi # end check jdk version 24086 fi # end check javac 24087 fi # end check java 24088 fi # end check boot jdk found 24089 fi 24090 24091 # If that did not work out (e.g. too old), try explicit versions instead 24092 24093 if test "x$BOOT_JDK_FOUND" = xno; then 24094 # Now execute the test 24095 24096 if test -x /usr/libexec/java_home; then 24097 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 24098 BOOT_JDK_FOUND=maybe 24099 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 24100 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 24101 fi 24102 24103 24104 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24105 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24106 # Do we have a bin/java? 24107 if test ! -x "$BOOT_JDK/bin/java"; then 24108 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24109 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24110 BOOT_JDK_FOUND=no 24111 else 24112 # Do we have a bin/javac? 24113 if test ! -x "$BOOT_JDK/bin/javac"; then 24114 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24115 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24116 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24117 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24118 BOOT_JDK_FOUND=no 24119 else 24120 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24121 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24122 24123 # Extra M4 quote needed to protect [] in grep expression. 24124 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 24125 if test "x$FOUND_CORRECT_VERSION" = x; then 24126 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24127 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24128 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24129 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24130 BOOT_JDK_FOUND=no 24131 else 24132 # We're done! :-) 24133 BOOT_JDK_FOUND=yes 24134 24135 # Only process if variable expands to non-empty 24136 24137 if test "x$BOOT_JDK" != x; then 24138 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24139 24140 # Input might be given as Windows format, start by converting to 24141 # unix format. 24142 path="$BOOT_JDK" 24143 new_path=`$CYGPATH -u "$path"` 24144 24145 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24146 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24147 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24148 # "foo.exe" is OK but "foo" is an error. 24149 # 24150 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24151 # It is also a way to make sure we got the proper file name for the real test later on. 24152 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24153 if test "x$test_shortpath" = x; then 24154 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24155 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24156 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24157 fi 24158 24159 # Call helper function which possibly converts this using DOS-style short mode. 24160 # If so, the updated path is stored in $new_path. 24161 24162 input_path="$new_path" 24163 # Check if we need to convert this using DOS-style short mode. If the path 24164 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24165 # take no chances and rewrite it. 24166 # Note: m4 eats our [], so we need to use [ and ] instead. 24167 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24168 if test "x$has_forbidden_chars" != x; then 24169 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24170 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24171 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24172 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24173 # Going to short mode and back again did indeed matter. Since short mode is 24174 # case insensitive, let's make it lowercase to improve readability. 24175 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24176 # Now convert it back to Unix-style (cygpath) 24177 input_path=`$CYGPATH -u "$shortmode_path"` 24178 new_path="$input_path" 24179 fi 24180 fi 24181 24182 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24183 if test "x$test_cygdrive_prefix" = x; then 24184 # As a simple fix, exclude /usr/bin since it's not a real path. 24185 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24186 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24187 # a path prefixed by /cygdrive for fixpath to work. 24188 new_path="$CYGWIN_ROOT_PATH$input_path" 24189 fi 24190 fi 24191 24192 24193 if test "x$path" != "x$new_path"; then 24194 BOOT_JDK="$new_path" 24195 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24196 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24197 fi 24198 24199 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24200 24201 path="$BOOT_JDK" 24202 has_colon=`$ECHO $path | $GREP ^.:` 24203 new_path="$path" 24204 if test "x$has_colon" = x; then 24205 # Not in mixed or Windows style, start by that. 24206 new_path=`cmd //c echo $path` 24207 fi 24208 24209 24210 input_path="$new_path" 24211 # Check if we need to convert this using DOS-style short mode. If the path 24212 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24213 # take no chances and rewrite it. 24214 # Note: m4 eats our [], so we need to use [ and ] instead. 24215 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24216 if test "x$has_forbidden_chars" != x; then 24217 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24218 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24219 fi 24220 24221 24222 windows_path="$new_path" 24223 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24224 unix_path=`$CYGPATH -u "$windows_path"` 24225 new_path="$unix_path" 24226 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24227 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24228 new_path="$unix_path" 24229 fi 24230 24231 if test "x$path" != "x$new_path"; then 24232 BOOT_JDK="$new_path" 24233 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24234 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24235 fi 24236 24237 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24238 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24239 24240 else 24241 # We're on a unix platform. Hooray! :) 24242 path="$BOOT_JDK" 24243 has_space=`$ECHO "$path" | $GREP " "` 24244 if test "x$has_space" != x; then 24245 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24246 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24247 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24248 fi 24249 24250 # Use eval to expand a potential ~ 24251 eval path="$path" 24252 if test ! -f "$path" && test ! -d "$path"; then 24253 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24254 fi 24255 24256 if test -d "$path"; then 24257 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24258 else 24259 dir="`$DIRNAME "$path"`" 24260 base="`$BASENAME "$path"`" 24261 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 24262 fi 24263 fi 24264 fi 24265 24266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24267 $as_echo_n "checking for Boot JDK... " >&6; } 24268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24269 $as_echo "$BOOT_JDK" >&6; } 24270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24271 $as_echo_n "checking Boot JDK version... " >&6; } 24272 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24274 $as_echo "$BOOT_JDK_VERSION" >&6; } 24275 fi # end check jdk version 24276 fi # end check javac 24277 fi # end check java 24278 fi # end check boot jdk found 24279 fi 24280 24281 24282 if test "x$BOOT_JDK_FOUND" = xno; then 24283 # Now execute the test 24284 24285 if test -x /usr/libexec/java_home; then 24286 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 24287 BOOT_JDK_FOUND=maybe 24288 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 24289 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 24290 fi 24291 24292 24293 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24294 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24295 # Do we have a bin/java? 24296 if test ! -x "$BOOT_JDK/bin/java"; then 24297 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24298 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24299 BOOT_JDK_FOUND=no 24300 else 24301 # Do we have a bin/javac? 24302 if test ! -x "$BOOT_JDK/bin/javac"; then 24303 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24304 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24305 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24306 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24307 BOOT_JDK_FOUND=no 24308 else 24309 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24310 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24311 24312 # Extra M4 quote needed to protect [] in grep expression. 24313 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 24314 if test "x$FOUND_CORRECT_VERSION" = x; then 24315 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24316 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24317 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24318 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24319 BOOT_JDK_FOUND=no 24320 else 24321 # We're done! :-) 24322 BOOT_JDK_FOUND=yes 24323 24324 # Only process if variable expands to non-empty 24325 24326 if test "x$BOOT_JDK" != x; then 24327 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24328 24329 # Input might be given as Windows format, start by converting to 24330 # unix format. 24331 path="$BOOT_JDK" 24332 new_path=`$CYGPATH -u "$path"` 24333 24334 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24335 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24336 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24337 # "foo.exe" is OK but "foo" is an error. 24338 # 24339 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24340 # It is also a way to make sure we got the proper file name for the real test later on. 24341 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24342 if test "x$test_shortpath" = x; then 24343 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24344 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24345 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24346 fi 24347 24348 # Call helper function which possibly converts this using DOS-style short mode. 24349 # If so, the updated path is stored in $new_path. 24350 24351 input_path="$new_path" 24352 # Check if we need to convert this using DOS-style short mode. If the path 24353 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24354 # take no chances and rewrite it. 24355 # Note: m4 eats our [], so we need to use [ and ] instead. 24356 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24357 if test "x$has_forbidden_chars" != x; then 24358 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24359 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24360 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24361 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24362 # Going to short mode and back again did indeed matter. Since short mode is 24363 # case insensitive, let's make it lowercase to improve readability. 24364 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24365 # Now convert it back to Unix-style (cygpath) 24366 input_path=`$CYGPATH -u "$shortmode_path"` 24367 new_path="$input_path" 24368 fi 24369 fi 24370 24371 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24372 if test "x$test_cygdrive_prefix" = x; then 24373 # As a simple fix, exclude /usr/bin since it's not a real path. 24374 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24375 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24376 # a path prefixed by /cygdrive for fixpath to work. 24377 new_path="$CYGWIN_ROOT_PATH$input_path" 24378 fi 24379 fi 24380 24381 24382 if test "x$path" != "x$new_path"; then 24383 BOOT_JDK="$new_path" 24384 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24385 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24386 fi 24387 24388 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24389 24390 path="$BOOT_JDK" 24391 has_colon=`$ECHO $path | $GREP ^.:` 24392 new_path="$path" 24393 if test "x$has_colon" = x; then 24394 # Not in mixed or Windows style, start by that. 24395 new_path=`cmd //c echo $path` 24396 fi 24397 24398 24399 input_path="$new_path" 24400 # Check if we need to convert this using DOS-style short mode. If the path 24401 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24402 # take no chances and rewrite it. 24403 # Note: m4 eats our [], so we need to use [ and ] instead. 24404 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24405 if test "x$has_forbidden_chars" != x; then 24406 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24407 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24408 fi 24409 24410 24411 windows_path="$new_path" 24412 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24413 unix_path=`$CYGPATH -u "$windows_path"` 24414 new_path="$unix_path" 24415 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24416 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24417 new_path="$unix_path" 24418 fi 24419 24420 if test "x$path" != "x$new_path"; then 24421 BOOT_JDK="$new_path" 24422 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24423 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24424 fi 24425 24426 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24427 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24428 24429 else 24430 # We're on a unix platform. Hooray! :) 24431 path="$BOOT_JDK" 24432 has_space=`$ECHO "$path" | $GREP " "` 24433 if test "x$has_space" != x; then 24434 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24435 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24436 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24437 fi 24438 24439 # Use eval to expand a potential ~ 24440 eval path="$path" 24441 if test ! -f "$path" && test ! -d "$path"; then 24442 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24443 fi 24444 24445 if test -d "$path"; then 24446 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24447 else 24448 dir="`$DIRNAME "$path"`" 24449 base="`$BASENAME "$path"`" 24450 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 24451 fi 24452 fi 24453 fi 24454 24455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24456 $as_echo_n "checking for Boot JDK... " >&6; } 24457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24458 $as_echo "$BOOT_JDK" >&6; } 24459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24460 $as_echo_n "checking Boot JDK version... " >&6; } 24461 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24463 $as_echo "$BOOT_JDK_VERSION" >&6; } 24464 fi # end check jdk version 24465 fi # end check javac 24466 fi # end check java 24467 fi # end check boot jdk found 24468 fi 24469 24470 24471 if test "x$BOOT_JDK_FOUND" = xno; then 24472 # Now execute the test 24473 24474 if test -x /usr/libexec/java_home; then 24475 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 24476 BOOT_JDK_FOUND=maybe 24477 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 24478 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 24479 fi 24480 24481 24482 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24483 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24484 # Do we have a bin/java? 24485 if test ! -x "$BOOT_JDK/bin/java"; then 24486 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24487 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24488 BOOT_JDK_FOUND=no 24489 else 24490 # Do we have a bin/javac? 24491 if test ! -x "$BOOT_JDK/bin/javac"; then 24492 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24493 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24494 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24495 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24496 BOOT_JDK_FOUND=no 24497 else 24498 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24499 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24500 24501 # Extra M4 quote needed to protect [] in grep expression. 24502 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 24503 if test "x$FOUND_CORRECT_VERSION" = x; then 24504 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24505 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24506 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24507 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24508 BOOT_JDK_FOUND=no 24509 else 24510 # We're done! :-) 24511 BOOT_JDK_FOUND=yes 24512 24513 # Only process if variable expands to non-empty 24514 24515 if test "x$BOOT_JDK" != x; then 24516 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24517 24518 # Input might be given as Windows format, start by converting to 24519 # unix format. 24520 path="$BOOT_JDK" 24521 new_path=`$CYGPATH -u "$path"` 24522 24523 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24524 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24525 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24526 # "foo.exe" is OK but "foo" is an error. 24527 # 24528 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24529 # It is also a way to make sure we got the proper file name for the real test later on. 24530 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24531 if test "x$test_shortpath" = x; then 24532 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24533 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24534 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24535 fi 24536 24537 # Call helper function which possibly converts this using DOS-style short mode. 24538 # If so, the updated path is stored in $new_path. 24539 24540 input_path="$new_path" 24541 # Check if we need to convert this using DOS-style short mode. If the path 24542 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24543 # take no chances and rewrite it. 24544 # Note: m4 eats our [], so we need to use [ and ] instead. 24545 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24546 if test "x$has_forbidden_chars" != x; then 24547 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24548 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24549 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24550 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24551 # Going to short mode and back again did indeed matter. Since short mode is 24552 # case insensitive, let's make it lowercase to improve readability. 24553 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24554 # Now convert it back to Unix-style (cygpath) 24555 input_path=`$CYGPATH -u "$shortmode_path"` 24556 new_path="$input_path" 24557 fi 24558 fi 24559 24560 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24561 if test "x$test_cygdrive_prefix" = x; then 24562 # As a simple fix, exclude /usr/bin since it's not a real path. 24563 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24564 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24565 # a path prefixed by /cygdrive for fixpath to work. 24566 new_path="$CYGWIN_ROOT_PATH$input_path" 24567 fi 24568 fi 24569 24570 24571 if test "x$path" != "x$new_path"; then 24572 BOOT_JDK="$new_path" 24573 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24574 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24575 fi 24576 24577 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24578 24579 path="$BOOT_JDK" 24580 has_colon=`$ECHO $path | $GREP ^.:` 24581 new_path="$path" 24582 if test "x$has_colon" = x; then 24583 # Not in mixed or Windows style, start by that. 24584 new_path=`cmd //c echo $path` 24585 fi 24586 24587 24588 input_path="$new_path" 24589 # Check if we need to convert this using DOS-style short mode. If the path 24590 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24591 # take no chances and rewrite it. 24592 # Note: m4 eats our [], so we need to use [ and ] instead. 24593 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24594 if test "x$has_forbidden_chars" != x; then 24595 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24596 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24597 fi 24598 24599 24600 windows_path="$new_path" 24601 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24602 unix_path=`$CYGPATH -u "$windows_path"` 24603 new_path="$unix_path" 24604 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24605 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24606 new_path="$unix_path" 24607 fi 24608 24609 if test "x$path" != "x$new_path"; then 24610 BOOT_JDK="$new_path" 24611 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24612 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24613 fi 24614 24615 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24616 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24617 24618 else 24619 # We're on a unix platform. Hooray! :) 24620 path="$BOOT_JDK" 24621 has_space=`$ECHO "$path" | $GREP " "` 24622 if test "x$has_space" != x; then 24623 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24624 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24625 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24626 fi 24627 24628 # Use eval to expand a potential ~ 24629 eval path="$path" 24630 if test ! -f "$path" && test ! -d "$path"; then 24631 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24632 fi 24633 24634 if test -d "$path"; then 24635 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24636 else 24637 dir="`$DIRNAME "$path"`" 24638 base="`$BASENAME "$path"`" 24639 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 24640 fi 24641 fi 24642 fi 24643 24644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24645 $as_echo_n "checking for Boot JDK... " >&6; } 24646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24647 $as_echo "$BOOT_JDK" >&6; } 24648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24649 $as_echo_n "checking Boot JDK version... " >&6; } 24650 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24652 $as_echo "$BOOT_JDK_VERSION" >&6; } 24653 fi # end check jdk version 24654 fi # end check javac 24655 fi # end check java 24656 fi # end check boot jdk found 24657 fi 24658 24659 fi 24660 24661 24662 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24663 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24664 # Do we have a bin/java? 24665 if test ! -x "$BOOT_JDK/bin/java"; then 24666 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24667 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24668 BOOT_JDK_FOUND=no 24669 else 24670 # Do we have a bin/javac? 24671 if test ! -x "$BOOT_JDK/bin/javac"; then 24672 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24673 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24674 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24675 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24676 BOOT_JDK_FOUND=no 24677 else 24678 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24679 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24680 24681 # Extra M4 quote needed to protect [] in grep expression. 24682 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 24683 if test "x$FOUND_CORRECT_VERSION" = x; then 24684 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24685 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24686 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24687 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24688 BOOT_JDK_FOUND=no 24689 else 24690 # We're done! :-) 24691 BOOT_JDK_FOUND=yes 24692 24693 # Only process if variable expands to non-empty 24694 24695 if test "x$BOOT_JDK" != x; then 24696 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24697 24698 # Input might be given as Windows format, start by converting to 24699 # unix format. 24700 path="$BOOT_JDK" 24701 new_path=`$CYGPATH -u "$path"` 24702 24703 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24704 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24705 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24706 # "foo.exe" is OK but "foo" is an error. 24707 # 24708 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24709 # It is also a way to make sure we got the proper file name for the real test later on. 24710 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24711 if test "x$test_shortpath" = x; then 24712 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24713 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24714 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24715 fi 24716 24717 # Call helper function which possibly converts this using DOS-style short mode. 24718 # If so, the updated path is stored in $new_path. 24719 24720 input_path="$new_path" 24721 # Check if we need to convert this using DOS-style short mode. If the path 24722 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24723 # take no chances and rewrite it. 24724 # Note: m4 eats our [], so we need to use [ and ] instead. 24725 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24726 if test "x$has_forbidden_chars" != x; then 24727 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24728 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24729 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24730 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24731 # Going to short mode and back again did indeed matter. Since short mode is 24732 # case insensitive, let's make it lowercase to improve readability. 24733 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24734 # Now convert it back to Unix-style (cygpath) 24735 input_path=`$CYGPATH -u "$shortmode_path"` 24736 new_path="$input_path" 24737 fi 24738 fi 24739 24740 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24741 if test "x$test_cygdrive_prefix" = x; then 24742 # As a simple fix, exclude /usr/bin since it's not a real path. 24743 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24744 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24745 # a path prefixed by /cygdrive for fixpath to work. 24746 new_path="$CYGWIN_ROOT_PATH$input_path" 24747 fi 24748 fi 24749 24750 24751 if test "x$path" != "x$new_path"; then 24752 BOOT_JDK="$new_path" 24753 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24754 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24755 fi 24756 24757 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24758 24759 path="$BOOT_JDK" 24760 has_colon=`$ECHO $path | $GREP ^.:` 24761 new_path="$path" 24762 if test "x$has_colon" = x; then 24763 # Not in mixed or Windows style, start by that. 24764 new_path=`cmd //c echo $path` 24765 fi 24766 24767 24768 input_path="$new_path" 24769 # Check if we need to convert this using DOS-style short mode. If the path 24770 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24771 # take no chances and rewrite it. 24772 # Note: m4 eats our [], so we need to use [ and ] instead. 24773 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24774 if test "x$has_forbidden_chars" != x; then 24775 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24776 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24777 fi 24778 24779 24780 windows_path="$new_path" 24781 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24782 unix_path=`$CYGPATH -u "$windows_path"` 24783 new_path="$unix_path" 24784 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24785 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24786 new_path="$unix_path" 24787 fi 24788 24789 if test "x$path" != "x$new_path"; then 24790 BOOT_JDK="$new_path" 24791 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24792 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24793 fi 24794 24795 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24796 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24797 24798 else 24799 # We're on a unix platform. Hooray! :) 24800 path="$BOOT_JDK" 24801 has_space=`$ECHO "$path" | $GREP " "` 24802 if test "x$has_space" != x; then 24803 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24804 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24805 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24806 fi 24807 24808 # Use eval to expand a potential ~ 24809 eval path="$path" 24810 if test ! -f "$path" && test ! -d "$path"; then 24811 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24812 fi 24813 24814 if test -d "$path"; then 24815 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24816 else 24817 dir="`$DIRNAME "$path"`" 24818 base="`$BASENAME "$path"`" 24819 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 24820 fi 24821 fi 24822 fi 24823 24824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24825 $as_echo_n "checking for Boot JDK... " >&6; } 24826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24827 $as_echo "$BOOT_JDK" >&6; } 24828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24829 $as_echo_n "checking Boot JDK version... " >&6; } 24830 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24832 $as_echo "$BOOT_JDK_VERSION" >&6; } 24833 fi # end check jdk version 24834 fi # end check javac 24835 fi # end check java 24836 fi # end check boot jdk found 24837 fi 24838 24839 24840 # Test: Is $JAVA_HOME set? 24841 24842 if test "x$BOOT_JDK_FOUND" = xno; then 24843 # Now execute the test 24844 24845 if test "x$JAVA_HOME" != x; then 24846 JAVA_HOME_PROCESSED="$JAVA_HOME" 24847 24848 # Only process if variable expands to non-empty 24849 24850 if test "x$JAVA_HOME_PROCESSED" != x; then 24851 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24852 24853 # Input might be given as Windows format, start by converting to 24854 # unix format. 24855 path="$JAVA_HOME_PROCESSED" 24856 new_path=`$CYGPATH -u "$path"` 24857 24858 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24859 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24860 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24861 # "foo.exe" is OK but "foo" is an error. 24862 # 24863 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24864 # It is also a way to make sure we got the proper file name for the real test later on. 24865 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24866 if test "x$test_shortpath" = x; then 24867 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 24868 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 24869 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 24870 fi 24871 24872 # Call helper function which possibly converts this using DOS-style short mode. 24873 # If so, the updated path is stored in $new_path. 24874 24875 input_path="$new_path" 24876 # Check if we need to convert this using DOS-style short mode. If the path 24877 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24878 # take no chances and rewrite it. 24879 # Note: m4 eats our [], so we need to use [ and ] instead. 24880 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24881 if test "x$has_forbidden_chars" != x; then 24882 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24883 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24884 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24885 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24886 # Going to short mode and back again did indeed matter. Since short mode is 24887 # case insensitive, let's make it lowercase to improve readability. 24888 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24889 # Now convert it back to Unix-style (cygpath) 24890 input_path=`$CYGPATH -u "$shortmode_path"` 24891 new_path="$input_path" 24892 fi 24893 fi 24894 24895 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24896 if test "x$test_cygdrive_prefix" = x; then 24897 # As a simple fix, exclude /usr/bin since it's not a real path. 24898 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24899 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24900 # a path prefixed by /cygdrive for fixpath to work. 24901 new_path="$CYGWIN_ROOT_PATH$input_path" 24902 fi 24903 fi 24904 24905 24906 if test "x$path" != "x$new_path"; then 24907 JAVA_HOME_PROCESSED="$new_path" 24908 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 24909 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 24910 fi 24911 24912 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24913 24914 path="$JAVA_HOME_PROCESSED" 24915 has_colon=`$ECHO $path | $GREP ^.:` 24916 new_path="$path" 24917 if test "x$has_colon" = x; then 24918 # Not in mixed or Windows style, start by that. 24919 new_path=`cmd //c echo $path` 24920 fi 24921 24922 24923 input_path="$new_path" 24924 # Check if we need to convert this using DOS-style short mode. If the path 24925 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24926 # take no chances and rewrite it. 24927 # Note: m4 eats our [], so we need to use [ and ] instead. 24928 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24929 if test "x$has_forbidden_chars" != x; then 24930 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24931 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24932 fi 24933 24934 24935 windows_path="$new_path" 24936 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24937 unix_path=`$CYGPATH -u "$windows_path"` 24938 new_path="$unix_path" 24939 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24940 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24941 new_path="$unix_path" 24942 fi 24943 24944 if test "x$path" != "x$new_path"; then 24945 JAVA_HOME_PROCESSED="$new_path" 24946 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 24947 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 24948 fi 24949 24950 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24951 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24952 24953 else 24954 # We're on a unix platform. Hooray! :) 24955 path="$JAVA_HOME_PROCESSED" 24956 has_space=`$ECHO "$path" | $GREP " "` 24957 if test "x$has_space" != x; then 24958 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 24959 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 24960 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24961 fi 24962 24963 # Use eval to expand a potential ~ 24964 eval path="$path" 24965 if test ! -f "$path" && test ! -d "$path"; then 24966 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 24967 fi 24968 24969 if test -d "$path"; then 24970 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 24971 else 24972 dir="`$DIRNAME "$path"`" 24973 base="`$BASENAME "$path"`" 24974 JAVA_HOME_PROCESSED="`cd "$dir"; $THEPWDCMD -L`/$base" 24975 fi 24976 fi 24977 fi 24978 24979 if test ! -d "$JAVA_HOME_PROCESSED"; then 24980 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 24981 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 24982 else 24983 # Aha, the user has set a JAVA_HOME 24984 # let us use that as the Boot JDK. 24985 BOOT_JDK="$JAVA_HOME_PROCESSED" 24986 BOOT_JDK_FOUND=maybe 24987 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 24988 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 24989 fi 24990 fi 24991 24992 24993 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24994 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24995 # Do we have a bin/java? 24996 if test ! -x "$BOOT_JDK/bin/java"; then 24997 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24998 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24999 BOOT_JDK_FOUND=no 25000 else 25001 # Do we have a bin/javac? 25002 if test ! -x "$BOOT_JDK/bin/javac"; then 25003 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25004 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25005 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25006 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25007 BOOT_JDK_FOUND=no 25008 else 25009 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25010 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25011 25012 # Extra M4 quote needed to protect [] in grep expression. 25013 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25014 if test "x$FOUND_CORRECT_VERSION" = x; then 25015 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25016 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25017 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25018 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25019 BOOT_JDK_FOUND=no 25020 else 25021 # We're done! :-) 25022 BOOT_JDK_FOUND=yes 25023 25024 # Only process if variable expands to non-empty 25025 25026 if test "x$BOOT_JDK" != x; then 25027 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25028 25029 # Input might be given as Windows format, start by converting to 25030 # unix format. 25031 path="$BOOT_JDK" 25032 new_path=`$CYGPATH -u "$path"` 25033 25034 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25035 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25036 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25037 # "foo.exe" is OK but "foo" is an error. 25038 # 25039 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25040 # It is also a way to make sure we got the proper file name for the real test later on. 25041 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25042 if test "x$test_shortpath" = x; then 25043 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25044 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25045 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25046 fi 25047 25048 # Call helper function which possibly converts this using DOS-style short mode. 25049 # If so, the updated path is stored in $new_path. 25050 25051 input_path="$new_path" 25052 # Check if we need to convert this using DOS-style short mode. If the path 25053 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25054 # take no chances and rewrite it. 25055 # Note: m4 eats our [], so we need to use [ and ] instead. 25056 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25057 if test "x$has_forbidden_chars" != x; then 25058 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25059 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25060 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25061 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25062 # Going to short mode and back again did indeed matter. Since short mode is 25063 # case insensitive, let's make it lowercase to improve readability. 25064 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25065 # Now convert it back to Unix-style (cygpath) 25066 input_path=`$CYGPATH -u "$shortmode_path"` 25067 new_path="$input_path" 25068 fi 25069 fi 25070 25071 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25072 if test "x$test_cygdrive_prefix" = x; then 25073 # As a simple fix, exclude /usr/bin since it's not a real path. 25074 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25075 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25076 # a path prefixed by /cygdrive for fixpath to work. 25077 new_path="$CYGWIN_ROOT_PATH$input_path" 25078 fi 25079 fi 25080 25081 25082 if test "x$path" != "x$new_path"; then 25083 BOOT_JDK="$new_path" 25084 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25085 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25086 fi 25087 25088 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25089 25090 path="$BOOT_JDK" 25091 has_colon=`$ECHO $path | $GREP ^.:` 25092 new_path="$path" 25093 if test "x$has_colon" = x; then 25094 # Not in mixed or Windows style, start by that. 25095 new_path=`cmd //c echo $path` 25096 fi 25097 25098 25099 input_path="$new_path" 25100 # Check if we need to convert this using DOS-style short mode. If the path 25101 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25102 # take no chances and rewrite it. 25103 # Note: m4 eats our [], so we need to use [ and ] instead. 25104 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25105 if test "x$has_forbidden_chars" != x; then 25106 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25107 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25108 fi 25109 25110 25111 windows_path="$new_path" 25112 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25113 unix_path=`$CYGPATH -u "$windows_path"` 25114 new_path="$unix_path" 25115 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25116 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25117 new_path="$unix_path" 25118 fi 25119 25120 if test "x$path" != "x$new_path"; then 25121 BOOT_JDK="$new_path" 25122 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25123 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25124 fi 25125 25126 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25127 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25128 25129 else 25130 # We're on a unix platform. Hooray! :) 25131 path="$BOOT_JDK" 25132 has_space=`$ECHO "$path" | $GREP " "` 25133 if test "x$has_space" != x; then 25134 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25135 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25136 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25137 fi 25138 25139 # Use eval to expand a potential ~ 25140 eval path="$path" 25141 if test ! -f "$path" && test ! -d "$path"; then 25142 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25143 fi 25144 25145 if test -d "$path"; then 25146 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25147 else 25148 dir="`$DIRNAME "$path"`" 25149 base="`$BASENAME "$path"`" 25150 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25151 fi 25152 fi 25153 fi 25154 25155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25156 $as_echo_n "checking for Boot JDK... " >&6; } 25157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25158 $as_echo "$BOOT_JDK" >&6; } 25159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25160 $as_echo_n "checking Boot JDK version... " >&6; } 25161 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25163 $as_echo "$BOOT_JDK_VERSION" >&6; } 25164 fi # end check jdk version 25165 fi # end check javac 25166 fi # end check java 25167 fi # end check boot jdk found 25168 fi 25169 25170 25171 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 25172 25173 if test "x$BOOT_JDK_FOUND" = xno; then 25174 # Now execute the test 25175 25176 # Extract the first word of "javac", so it can be a program name with args. 25177 set dummy javac; ac_word=$2 25178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25179 $as_echo_n "checking for $ac_word... " >&6; } 25180 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 25181 $as_echo_n "(cached) " >&6 25182 else 25183 case $JAVAC_CHECK in 25184 [\\/]* | ?:[\\/]*) 25185 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 25186 ;; 25187 *) 25188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25189 for as_dir in $PATH 25190 do 25191 IFS=$as_save_IFS 25192 test -z "$as_dir" && as_dir=. 25193 for ac_exec_ext in '' $ac_executable_extensions; do 25194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25195 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 25196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25197 break 2 25198 fi 25199 done 25200 done 25201 IFS=$as_save_IFS 25202 25203 ;; 25204 esac 25205 fi 25206 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 25207 if test -n "$JAVAC_CHECK"; then 25208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 25209 $as_echo "$JAVAC_CHECK" >&6; } 25210 else 25211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25212 $as_echo "no" >&6; } 25213 fi 25214 25215 25216 # Extract the first word of "java", so it can be a program name with args. 25217 set dummy java; ac_word=$2 25218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25219 $as_echo_n "checking for $ac_word... " >&6; } 25220 if ${ac_cv_path_JAVA_CHECK+:} false; then : 25221 $as_echo_n "(cached) " >&6 25222 else 25223 case $JAVA_CHECK in 25224 [\\/]* | ?:[\\/]*) 25225 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 25226 ;; 25227 *) 25228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25229 for as_dir in $PATH 25230 do 25231 IFS=$as_save_IFS 25232 test -z "$as_dir" && as_dir=. 25233 for ac_exec_ext in '' $ac_executable_extensions; do 25234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25235 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 25236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25237 break 2 25238 fi 25239 done 25240 done 25241 IFS=$as_save_IFS 25242 25243 ;; 25244 esac 25245 fi 25246 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 25247 if test -n "$JAVA_CHECK"; then 25248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 25249 $as_echo "$JAVA_CHECK" >&6; } 25250 else 25251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25252 $as_echo "no" >&6; } 25253 fi 25254 25255 25256 BINARY="$JAVAC_CHECK" 25257 if test "x$JAVAC_CHECK" = x; then 25258 BINARY="$JAVA_CHECK" 25259 fi 25260 if test "x$BINARY" != x; then 25261 # So there is a java(c) binary, it might be part of a JDK. 25262 # Lets find the JDK/JRE directory by following symbolic links. 25263 # Linux/GNU systems often have links from /usr/bin/java to 25264 # /etc/alternatives/java to the real JDK binary. 25265 25266 if test "x$OPENJDK_BUILD_OS" != xwindows; then 25267 # Follow a chain of symbolic links. Use readlink 25268 # where it exists, else fall back to horribly 25269 # complicated shell code. 25270 if test "x$READLINK_TESTED" != yes; then 25271 # On MacOSX there is a readlink tool with a different 25272 # purpose than the GNU readlink tool. Check the found readlink. 25273 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 25274 if test "x$ISGNU" = x; then 25275 # A readlink that we do not know how to use. 25276 # Are there other non-GNU readlinks out there? 25277 READLINK_TESTED=yes 25278 READLINK= 25279 fi 25280 fi 25281 25282 if test "x$READLINK" != x; then 25283 BINARY=`$READLINK -f $BINARY` 25284 else 25285 # Save the current directory for restoring afterwards 25286 STARTDIR=$PWD 25287 COUNTER=0 25288 sym_link_dir=`$DIRNAME $BINARY` 25289 sym_link_file=`$BASENAME $BINARY` 25290 cd $sym_link_dir 25291 # Use -P flag to resolve symlinks in directories. 25292 cd `$THEPWDCMD -P` 25293 sym_link_dir=`$THEPWDCMD -P` 25294 # Resolve file symlinks 25295 while test $COUNTER -lt 20; do 25296 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 25297 if test "x$ISLINK" == x; then 25298 # This is not a symbolic link! We are done! 25299 break 25300 fi 25301 # Again resolve directory symlinks since the target of the just found 25302 # link could be in a different directory 25303 cd `$DIRNAME $ISLINK` 25304 sym_link_dir=`$THEPWDCMD -P` 25305 sym_link_file=`$BASENAME $ISLINK` 25306 let COUNTER=COUNTER+1 25307 done 25308 cd $STARTDIR 25309 BINARY=$sym_link_dir/$sym_link_file 25310 fi 25311 fi 25312 25313 BOOT_JDK=`dirname "$BINARY"` 25314 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 25315 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 25316 # Looks like we found ourselves an JDK 25317 BOOT_JDK_FOUND=maybe 25318 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 25319 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 25320 fi 25321 fi 25322 25323 25324 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25325 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25326 # Do we have a bin/java? 25327 if test ! -x "$BOOT_JDK/bin/java"; then 25328 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25329 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25330 BOOT_JDK_FOUND=no 25331 else 25332 # Do we have a bin/javac? 25333 if test ! -x "$BOOT_JDK/bin/javac"; then 25334 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25335 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25336 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25337 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25338 BOOT_JDK_FOUND=no 25339 else 25340 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25341 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25342 25343 # Extra M4 quote needed to protect [] in grep expression. 25344 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25345 if test "x$FOUND_CORRECT_VERSION" = x; then 25346 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25347 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25348 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25349 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25350 BOOT_JDK_FOUND=no 25351 else 25352 # We're done! :-) 25353 BOOT_JDK_FOUND=yes 25354 25355 # Only process if variable expands to non-empty 25356 25357 if test "x$BOOT_JDK" != x; then 25358 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25359 25360 # Input might be given as Windows format, start by converting to 25361 # unix format. 25362 path="$BOOT_JDK" 25363 new_path=`$CYGPATH -u "$path"` 25364 25365 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25366 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25367 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25368 # "foo.exe" is OK but "foo" is an error. 25369 # 25370 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25371 # It is also a way to make sure we got the proper file name for the real test later on. 25372 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25373 if test "x$test_shortpath" = x; then 25374 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25375 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25376 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25377 fi 25378 25379 # Call helper function which possibly converts this using DOS-style short mode. 25380 # If so, the updated path is stored in $new_path. 25381 25382 input_path="$new_path" 25383 # Check if we need to convert this using DOS-style short mode. If the path 25384 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25385 # take no chances and rewrite it. 25386 # Note: m4 eats our [], so we need to use [ and ] instead. 25387 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25388 if test "x$has_forbidden_chars" != x; then 25389 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25390 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25391 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25392 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25393 # Going to short mode and back again did indeed matter. Since short mode is 25394 # case insensitive, let's make it lowercase to improve readability. 25395 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25396 # Now convert it back to Unix-style (cygpath) 25397 input_path=`$CYGPATH -u "$shortmode_path"` 25398 new_path="$input_path" 25399 fi 25400 fi 25401 25402 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25403 if test "x$test_cygdrive_prefix" = x; then 25404 # As a simple fix, exclude /usr/bin since it's not a real path. 25405 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25406 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25407 # a path prefixed by /cygdrive for fixpath to work. 25408 new_path="$CYGWIN_ROOT_PATH$input_path" 25409 fi 25410 fi 25411 25412 25413 if test "x$path" != "x$new_path"; then 25414 BOOT_JDK="$new_path" 25415 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25416 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25417 fi 25418 25419 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25420 25421 path="$BOOT_JDK" 25422 has_colon=`$ECHO $path | $GREP ^.:` 25423 new_path="$path" 25424 if test "x$has_colon" = x; then 25425 # Not in mixed or Windows style, start by that. 25426 new_path=`cmd //c echo $path` 25427 fi 25428 25429 25430 input_path="$new_path" 25431 # Check if we need to convert this using DOS-style short mode. If the path 25432 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25433 # take no chances and rewrite it. 25434 # Note: m4 eats our [], so we need to use [ and ] instead. 25435 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25436 if test "x$has_forbidden_chars" != x; then 25437 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25438 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25439 fi 25440 25441 25442 windows_path="$new_path" 25443 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25444 unix_path=`$CYGPATH -u "$windows_path"` 25445 new_path="$unix_path" 25446 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25447 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25448 new_path="$unix_path" 25449 fi 25450 25451 if test "x$path" != "x$new_path"; then 25452 BOOT_JDK="$new_path" 25453 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25454 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25455 fi 25456 25457 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25458 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25459 25460 else 25461 # We're on a unix platform. Hooray! :) 25462 path="$BOOT_JDK" 25463 has_space=`$ECHO "$path" | $GREP " "` 25464 if test "x$has_space" != x; then 25465 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25466 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25467 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25468 fi 25469 25470 # Use eval to expand a potential ~ 25471 eval path="$path" 25472 if test ! -f "$path" && test ! -d "$path"; then 25473 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25474 fi 25475 25476 if test -d "$path"; then 25477 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25478 else 25479 dir="`$DIRNAME "$path"`" 25480 base="`$BASENAME "$path"`" 25481 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25482 fi 25483 fi 25484 fi 25485 25486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25487 $as_echo_n "checking for Boot JDK... " >&6; } 25488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25489 $as_echo "$BOOT_JDK" >&6; } 25490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25491 $as_echo_n "checking Boot JDK version... " >&6; } 25492 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25494 $as_echo "$BOOT_JDK_VERSION" >&6; } 25495 fi # end check jdk version 25496 fi # end check javac 25497 fi # end check java 25498 fi # end check boot jdk found 25499 fi 25500 25501 25502 # Test: Is there a JDK installed in default, well-known locations? 25503 25504 if test "x$BOOT_JDK_FOUND" = xno; then 25505 # Now execute the test 25506 25507 if test "x$OPENJDK_TARGET_OS" = xwindows; then 25508 25509 if test "x$BOOT_JDK_FOUND" = xno; then 25510 # Now execute the test 25511 25512 if test "x$ProgramW6432" != x; then 25513 VIRTUAL_DIR="$ProgramW6432/Java" 25514 25515 windows_path="$VIRTUAL_DIR" 25516 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25517 unix_path=`$CYGPATH -u "$windows_path"` 25518 VIRTUAL_DIR="$unix_path" 25519 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25520 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25521 VIRTUAL_DIR="$unix_path" 25522 fi 25523 25524 25525 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 25526 BOOT_JDK_SUFFIX="" 25527 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 25528 if test "x$ALL_JDKS_FOUND" != x; then 25529 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 25530 25531 if test "x$BOOT_JDK_FOUND" = xno; then 25532 # Now execute the test 25533 25534 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 25535 if test -d "$BOOT_JDK"; then 25536 BOOT_JDK_FOUND=maybe 25537 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 25538 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 25539 fi 25540 25541 25542 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25543 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25544 # Do we have a bin/java? 25545 if test ! -x "$BOOT_JDK/bin/java"; then 25546 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25547 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25548 BOOT_JDK_FOUND=no 25549 else 25550 # Do we have a bin/javac? 25551 if test ! -x "$BOOT_JDK/bin/javac"; then 25552 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25553 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25554 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25555 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25556 BOOT_JDK_FOUND=no 25557 else 25558 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25559 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25560 25561 # Extra M4 quote needed to protect [] in grep expression. 25562 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25563 if test "x$FOUND_CORRECT_VERSION" = x; then 25564 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25565 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25566 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25567 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25568 BOOT_JDK_FOUND=no 25569 else 25570 # We're done! :-) 25571 BOOT_JDK_FOUND=yes 25572 25573 # Only process if variable expands to non-empty 25574 25575 if test "x$BOOT_JDK" != x; then 25576 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25577 25578 # Input might be given as Windows format, start by converting to 25579 # unix format. 25580 path="$BOOT_JDK" 25581 new_path=`$CYGPATH -u "$path"` 25582 25583 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25584 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25585 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25586 # "foo.exe" is OK but "foo" is an error. 25587 # 25588 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25589 # It is also a way to make sure we got the proper file name for the real test later on. 25590 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25591 if test "x$test_shortpath" = x; then 25592 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25593 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25594 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25595 fi 25596 25597 # Call helper function which possibly converts this using DOS-style short mode. 25598 # If so, the updated path is stored in $new_path. 25599 25600 input_path="$new_path" 25601 # Check if we need to convert this using DOS-style short mode. If the path 25602 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25603 # take no chances and rewrite it. 25604 # Note: m4 eats our [], so we need to use [ and ] instead. 25605 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25606 if test "x$has_forbidden_chars" != x; then 25607 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25608 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25609 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25610 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25611 # Going to short mode and back again did indeed matter. Since short mode is 25612 # case insensitive, let's make it lowercase to improve readability. 25613 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25614 # Now convert it back to Unix-style (cygpath) 25615 input_path=`$CYGPATH -u "$shortmode_path"` 25616 new_path="$input_path" 25617 fi 25618 fi 25619 25620 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25621 if test "x$test_cygdrive_prefix" = x; then 25622 # As a simple fix, exclude /usr/bin since it's not a real path. 25623 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25624 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25625 # a path prefixed by /cygdrive for fixpath to work. 25626 new_path="$CYGWIN_ROOT_PATH$input_path" 25627 fi 25628 fi 25629 25630 25631 if test "x$path" != "x$new_path"; then 25632 BOOT_JDK="$new_path" 25633 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25634 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25635 fi 25636 25637 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25638 25639 path="$BOOT_JDK" 25640 has_colon=`$ECHO $path | $GREP ^.:` 25641 new_path="$path" 25642 if test "x$has_colon" = x; then 25643 # Not in mixed or Windows style, start by that. 25644 new_path=`cmd //c echo $path` 25645 fi 25646 25647 25648 input_path="$new_path" 25649 # Check if we need to convert this using DOS-style short mode. If the path 25650 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25651 # take no chances and rewrite it. 25652 # Note: m4 eats our [], so we need to use [ and ] instead. 25653 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25654 if test "x$has_forbidden_chars" != x; then 25655 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25656 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25657 fi 25658 25659 25660 windows_path="$new_path" 25661 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25662 unix_path=`$CYGPATH -u "$windows_path"` 25663 new_path="$unix_path" 25664 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25665 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25666 new_path="$unix_path" 25667 fi 25668 25669 if test "x$path" != "x$new_path"; then 25670 BOOT_JDK="$new_path" 25671 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25672 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25673 fi 25674 25675 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25676 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25677 25678 else 25679 # We're on a unix platform. Hooray! :) 25680 path="$BOOT_JDK" 25681 has_space=`$ECHO "$path" | $GREP " "` 25682 if test "x$has_space" != x; then 25683 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25684 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25685 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25686 fi 25687 25688 # Use eval to expand a potential ~ 25689 eval path="$path" 25690 if test ! -f "$path" && test ! -d "$path"; then 25691 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25692 fi 25693 25694 if test -d "$path"; then 25695 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25696 else 25697 dir="`$DIRNAME "$path"`" 25698 base="`$BASENAME "$path"`" 25699 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25700 fi 25701 fi 25702 fi 25703 25704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25705 $as_echo_n "checking for Boot JDK... " >&6; } 25706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25707 $as_echo "$BOOT_JDK" >&6; } 25708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25709 $as_echo_n "checking Boot JDK version... " >&6; } 25710 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25712 $as_echo "$BOOT_JDK_VERSION" >&6; } 25713 fi # end check jdk version 25714 fi # end check javac 25715 fi # end check java 25716 fi # end check boot jdk found 25717 fi 25718 25719 done 25720 fi 25721 25722 fi 25723 25724 25725 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25726 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25727 # Do we have a bin/java? 25728 if test ! -x "$BOOT_JDK/bin/java"; then 25729 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25730 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25731 BOOT_JDK_FOUND=no 25732 else 25733 # Do we have a bin/javac? 25734 if test ! -x "$BOOT_JDK/bin/javac"; then 25735 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25736 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25737 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25738 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25739 BOOT_JDK_FOUND=no 25740 else 25741 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25742 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25743 25744 # Extra M4 quote needed to protect [] in grep expression. 25745 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25746 if test "x$FOUND_CORRECT_VERSION" = x; then 25747 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25748 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25749 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25750 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25751 BOOT_JDK_FOUND=no 25752 else 25753 # We're done! :-) 25754 BOOT_JDK_FOUND=yes 25755 25756 # Only process if variable expands to non-empty 25757 25758 if test "x$BOOT_JDK" != x; then 25759 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25760 25761 # Input might be given as Windows format, start by converting to 25762 # unix format. 25763 path="$BOOT_JDK" 25764 new_path=`$CYGPATH -u "$path"` 25765 25766 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25767 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25768 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25769 # "foo.exe" is OK but "foo" is an error. 25770 # 25771 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25772 # It is also a way to make sure we got the proper file name for the real test later on. 25773 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25774 if test "x$test_shortpath" = x; then 25775 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25776 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25777 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25778 fi 25779 25780 # Call helper function which possibly converts this using DOS-style short mode. 25781 # If so, the updated path is stored in $new_path. 25782 25783 input_path="$new_path" 25784 # Check if we need to convert this using DOS-style short mode. If the path 25785 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25786 # take no chances and rewrite it. 25787 # Note: m4 eats our [], so we need to use [ and ] instead. 25788 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25789 if test "x$has_forbidden_chars" != x; then 25790 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25791 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25792 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25793 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25794 # Going to short mode and back again did indeed matter. Since short mode is 25795 # case insensitive, let's make it lowercase to improve readability. 25796 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25797 # Now convert it back to Unix-style (cygpath) 25798 input_path=`$CYGPATH -u "$shortmode_path"` 25799 new_path="$input_path" 25800 fi 25801 fi 25802 25803 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25804 if test "x$test_cygdrive_prefix" = x; then 25805 # As a simple fix, exclude /usr/bin since it's not a real path. 25806 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25807 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25808 # a path prefixed by /cygdrive for fixpath to work. 25809 new_path="$CYGWIN_ROOT_PATH$input_path" 25810 fi 25811 fi 25812 25813 25814 if test "x$path" != "x$new_path"; then 25815 BOOT_JDK="$new_path" 25816 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25817 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25818 fi 25819 25820 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25821 25822 path="$BOOT_JDK" 25823 has_colon=`$ECHO $path | $GREP ^.:` 25824 new_path="$path" 25825 if test "x$has_colon" = x; then 25826 # Not in mixed or Windows style, start by that. 25827 new_path=`cmd //c echo $path` 25828 fi 25829 25830 25831 input_path="$new_path" 25832 # Check if we need to convert this using DOS-style short mode. If the path 25833 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25834 # take no chances and rewrite it. 25835 # Note: m4 eats our [], so we need to use [ and ] instead. 25836 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25837 if test "x$has_forbidden_chars" != x; then 25838 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25839 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25840 fi 25841 25842 25843 windows_path="$new_path" 25844 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25845 unix_path=`$CYGPATH -u "$windows_path"` 25846 new_path="$unix_path" 25847 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25848 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25849 new_path="$unix_path" 25850 fi 25851 25852 if test "x$path" != "x$new_path"; then 25853 BOOT_JDK="$new_path" 25854 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25855 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25856 fi 25857 25858 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25859 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25860 25861 else 25862 # We're on a unix platform. Hooray! :) 25863 path="$BOOT_JDK" 25864 has_space=`$ECHO "$path" | $GREP " "` 25865 if test "x$has_space" != x; then 25866 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25867 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25868 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25869 fi 25870 25871 # Use eval to expand a potential ~ 25872 eval path="$path" 25873 if test ! -f "$path" && test ! -d "$path"; then 25874 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25875 fi 25876 25877 if test -d "$path"; then 25878 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25879 else 25880 dir="`$DIRNAME "$path"`" 25881 base="`$BASENAME "$path"`" 25882 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25883 fi 25884 fi 25885 fi 25886 25887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25888 $as_echo_n "checking for Boot JDK... " >&6; } 25889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25890 $as_echo "$BOOT_JDK" >&6; } 25891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25892 $as_echo_n "checking Boot JDK version... " >&6; } 25893 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25895 $as_echo "$BOOT_JDK_VERSION" >&6; } 25896 fi # end check jdk version 25897 fi # end check javac 25898 fi # end check java 25899 fi # end check boot jdk found 25900 fi 25901 25902 25903 if test "x$BOOT_JDK_FOUND" = xno; then 25904 # Now execute the test 25905 25906 if test "x$PROGRAMW6432" != x; then 25907 VIRTUAL_DIR="$PROGRAMW6432/Java" 25908 25909 windows_path="$VIRTUAL_DIR" 25910 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25911 unix_path=`$CYGPATH -u "$windows_path"` 25912 VIRTUAL_DIR="$unix_path" 25913 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25914 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25915 VIRTUAL_DIR="$unix_path" 25916 fi 25917 25918 25919 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 25920 BOOT_JDK_SUFFIX="" 25921 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 25922 if test "x$ALL_JDKS_FOUND" != x; then 25923 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 25924 25925 if test "x$BOOT_JDK_FOUND" = xno; then 25926 # Now execute the test 25927 25928 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 25929 if test -d "$BOOT_JDK"; then 25930 BOOT_JDK_FOUND=maybe 25931 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 25932 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 25933 fi 25934 25935 25936 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25937 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25938 # Do we have a bin/java? 25939 if test ! -x "$BOOT_JDK/bin/java"; then 25940 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25941 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25942 BOOT_JDK_FOUND=no 25943 else 25944 # Do we have a bin/javac? 25945 if test ! -x "$BOOT_JDK/bin/javac"; then 25946 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25947 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25948 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25949 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25950 BOOT_JDK_FOUND=no 25951 else 25952 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25953 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25954 25955 # Extra M4 quote needed to protect [] in grep expression. 25956 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25957 if test "x$FOUND_CORRECT_VERSION" = x; then 25958 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25959 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25960 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25961 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25962 BOOT_JDK_FOUND=no 25963 else 25964 # We're done! :-) 25965 BOOT_JDK_FOUND=yes 25966 25967 # Only process if variable expands to non-empty 25968 25969 if test "x$BOOT_JDK" != x; then 25970 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25971 25972 # Input might be given as Windows format, start by converting to 25973 # unix format. 25974 path="$BOOT_JDK" 25975 new_path=`$CYGPATH -u "$path"` 25976 25977 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25978 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25979 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25980 # "foo.exe" is OK but "foo" is an error. 25981 # 25982 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25983 # It is also a way to make sure we got the proper file name for the real test later on. 25984 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25985 if test "x$test_shortpath" = x; then 25986 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25987 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25988 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25989 fi 25990 25991 # Call helper function which possibly converts this using DOS-style short mode. 25992 # If so, the updated path is stored in $new_path. 25993 25994 input_path="$new_path" 25995 # Check if we need to convert this using DOS-style short mode. If the path 25996 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25997 # take no chances and rewrite it. 25998 # Note: m4 eats our [], so we need to use [ and ] instead. 25999 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26000 if test "x$has_forbidden_chars" != x; then 26001 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26002 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26003 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26004 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26005 # Going to short mode and back again did indeed matter. Since short mode is 26006 # case insensitive, let's make it lowercase to improve readability. 26007 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26008 # Now convert it back to Unix-style (cygpath) 26009 input_path=`$CYGPATH -u "$shortmode_path"` 26010 new_path="$input_path" 26011 fi 26012 fi 26013 26014 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26015 if test "x$test_cygdrive_prefix" = x; then 26016 # As a simple fix, exclude /usr/bin since it's not a real path. 26017 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26018 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26019 # a path prefixed by /cygdrive for fixpath to work. 26020 new_path="$CYGWIN_ROOT_PATH$input_path" 26021 fi 26022 fi 26023 26024 26025 if test "x$path" != "x$new_path"; then 26026 BOOT_JDK="$new_path" 26027 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26028 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26029 fi 26030 26031 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26032 26033 path="$BOOT_JDK" 26034 has_colon=`$ECHO $path | $GREP ^.:` 26035 new_path="$path" 26036 if test "x$has_colon" = x; then 26037 # Not in mixed or Windows style, start by that. 26038 new_path=`cmd //c echo $path` 26039 fi 26040 26041 26042 input_path="$new_path" 26043 # Check if we need to convert this using DOS-style short mode. If the path 26044 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26045 # take no chances and rewrite it. 26046 # Note: m4 eats our [], so we need to use [ and ] instead. 26047 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26048 if test "x$has_forbidden_chars" != x; then 26049 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26050 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26051 fi 26052 26053 26054 windows_path="$new_path" 26055 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26056 unix_path=`$CYGPATH -u "$windows_path"` 26057 new_path="$unix_path" 26058 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26059 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26060 new_path="$unix_path" 26061 fi 26062 26063 if test "x$path" != "x$new_path"; then 26064 BOOT_JDK="$new_path" 26065 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26066 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26067 fi 26068 26069 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26070 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26071 26072 else 26073 # We're on a unix platform. Hooray! :) 26074 path="$BOOT_JDK" 26075 has_space=`$ECHO "$path" | $GREP " "` 26076 if test "x$has_space" != x; then 26077 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26078 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26079 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26080 fi 26081 26082 # Use eval to expand a potential ~ 26083 eval path="$path" 26084 if test ! -f "$path" && test ! -d "$path"; then 26085 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26086 fi 26087 26088 if test -d "$path"; then 26089 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26090 else 26091 dir="`$DIRNAME "$path"`" 26092 base="`$BASENAME "$path"`" 26093 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26094 fi 26095 fi 26096 fi 26097 26098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26099 $as_echo_n "checking for Boot JDK... " >&6; } 26100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26101 $as_echo "$BOOT_JDK" >&6; } 26102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26103 $as_echo_n "checking Boot JDK version... " >&6; } 26104 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26106 $as_echo "$BOOT_JDK_VERSION" >&6; } 26107 fi # end check jdk version 26108 fi # end check javac 26109 fi # end check java 26110 fi # end check boot jdk found 26111 fi 26112 26113 done 26114 fi 26115 26116 fi 26117 26118 26119 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26120 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26121 # Do we have a bin/java? 26122 if test ! -x "$BOOT_JDK/bin/java"; then 26123 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26124 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26125 BOOT_JDK_FOUND=no 26126 else 26127 # Do we have a bin/javac? 26128 if test ! -x "$BOOT_JDK/bin/javac"; then 26129 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26130 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26131 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26132 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26133 BOOT_JDK_FOUND=no 26134 else 26135 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26136 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 26137 26138 # Extra M4 quote needed to protect [] in grep expression. 26139 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26140 if test "x$FOUND_CORRECT_VERSION" = x; then 26141 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26142 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26143 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26144 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26145 BOOT_JDK_FOUND=no 26146 else 26147 # We're done! :-) 26148 BOOT_JDK_FOUND=yes 26149 26150 # Only process if variable expands to non-empty 26151 26152 if test "x$BOOT_JDK" != x; then 26153 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26154 26155 # Input might be given as Windows format, start by converting to 26156 # unix format. 26157 path="$BOOT_JDK" 26158 new_path=`$CYGPATH -u "$path"` 26159 26160 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26161 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26162 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26163 # "foo.exe" is OK but "foo" is an error. 26164 # 26165 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26166 # It is also a way to make sure we got the proper file name for the real test later on. 26167 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26168 if test "x$test_shortpath" = x; then 26169 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26170 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26171 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26172 fi 26173 26174 # Call helper function which possibly converts this using DOS-style short mode. 26175 # If so, the updated path is stored in $new_path. 26176 26177 input_path="$new_path" 26178 # Check if we need to convert this using DOS-style short mode. If the path 26179 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26180 # take no chances and rewrite it. 26181 # Note: m4 eats our [], so we need to use [ and ] instead. 26182 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26183 if test "x$has_forbidden_chars" != x; then 26184 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26185 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26186 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26187 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26188 # Going to short mode and back again did indeed matter. Since short mode is 26189 # case insensitive, let's make it lowercase to improve readability. 26190 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26191 # Now convert it back to Unix-style (cygpath) 26192 input_path=`$CYGPATH -u "$shortmode_path"` 26193 new_path="$input_path" 26194 fi 26195 fi 26196 26197 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26198 if test "x$test_cygdrive_prefix" = x; then 26199 # As a simple fix, exclude /usr/bin since it's not a real path. 26200 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26201 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26202 # a path prefixed by /cygdrive for fixpath to work. 26203 new_path="$CYGWIN_ROOT_PATH$input_path" 26204 fi 26205 fi 26206 26207 26208 if test "x$path" != "x$new_path"; then 26209 BOOT_JDK="$new_path" 26210 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26211 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26212 fi 26213 26214 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26215 26216 path="$BOOT_JDK" 26217 has_colon=`$ECHO $path | $GREP ^.:` 26218 new_path="$path" 26219 if test "x$has_colon" = x; then 26220 # Not in mixed or Windows style, start by that. 26221 new_path=`cmd //c echo $path` 26222 fi 26223 26224 26225 input_path="$new_path" 26226 # Check if we need to convert this using DOS-style short mode. If the path 26227 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26228 # take no chances and rewrite it. 26229 # Note: m4 eats our [], so we need to use [ and ] instead. 26230 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26231 if test "x$has_forbidden_chars" != x; then 26232 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26233 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26234 fi 26235 26236 26237 windows_path="$new_path" 26238 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26239 unix_path=`$CYGPATH -u "$windows_path"` 26240 new_path="$unix_path" 26241 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26242 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26243 new_path="$unix_path" 26244 fi 26245 26246 if test "x$path" != "x$new_path"; then 26247 BOOT_JDK="$new_path" 26248 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26249 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26250 fi 26251 26252 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26253 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26254 26255 else 26256 # We're on a unix platform. Hooray! :) 26257 path="$BOOT_JDK" 26258 has_space=`$ECHO "$path" | $GREP " "` 26259 if test "x$has_space" != x; then 26260 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26261 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26262 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26263 fi 26264 26265 # Use eval to expand a potential ~ 26266 eval path="$path" 26267 if test ! -f "$path" && test ! -d "$path"; then 26268 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26269 fi 26270 26271 if test -d "$path"; then 26272 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26273 else 26274 dir="`$DIRNAME "$path"`" 26275 base="`$BASENAME "$path"`" 26276 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26277 fi 26278 fi 26279 fi 26280 26281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26282 $as_echo_n "checking for Boot JDK... " >&6; } 26283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26284 $as_echo "$BOOT_JDK" >&6; } 26285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26286 $as_echo_n "checking Boot JDK version... " >&6; } 26287 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26289 $as_echo "$BOOT_JDK_VERSION" >&6; } 26290 fi # end check jdk version 26291 fi # end check javac 26292 fi # end check java 26293 fi # end check boot jdk found 26294 fi 26295 26296 26297 if test "x$BOOT_JDK_FOUND" = xno; then 26298 # Now execute the test 26299 26300 if test "x$PROGRAMFILES" != x; then 26301 VIRTUAL_DIR="$PROGRAMFILES/Java" 26302 26303 windows_path="$VIRTUAL_DIR" 26304 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26305 unix_path=`$CYGPATH -u "$windows_path"` 26306 VIRTUAL_DIR="$unix_path" 26307 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26308 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26309 VIRTUAL_DIR="$unix_path" 26310 fi 26311 26312 26313 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 26314 BOOT_JDK_SUFFIX="" 26315 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 26316 if test "x$ALL_JDKS_FOUND" != x; then 26317 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 26318 26319 if test "x$BOOT_JDK_FOUND" = xno; then 26320 # Now execute the test 26321 26322 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 26323 if test -d "$BOOT_JDK"; then 26324 BOOT_JDK_FOUND=maybe 26325 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 26326 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 26327 fi 26328 26329 26330 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26331 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26332 # Do we have a bin/java? 26333 if test ! -x "$BOOT_JDK/bin/java"; then 26334 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26335 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26336 BOOT_JDK_FOUND=no 26337 else 26338 # Do we have a bin/javac? 26339 if test ! -x "$BOOT_JDK/bin/javac"; then 26340 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26341 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26342 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26343 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26344 BOOT_JDK_FOUND=no 26345 else 26346 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26347 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 26348 26349 # Extra M4 quote needed to protect [] in grep expression. 26350 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26351 if test "x$FOUND_CORRECT_VERSION" = x; then 26352 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26353 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26354 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26355 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26356 BOOT_JDK_FOUND=no 26357 else 26358 # We're done! :-) 26359 BOOT_JDK_FOUND=yes 26360 26361 # Only process if variable expands to non-empty 26362 26363 if test "x$BOOT_JDK" != x; then 26364 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26365 26366 # Input might be given as Windows format, start by converting to 26367 # unix format. 26368 path="$BOOT_JDK" 26369 new_path=`$CYGPATH -u "$path"` 26370 26371 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26372 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26373 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26374 # "foo.exe" is OK but "foo" is an error. 26375 # 26376 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26377 # It is also a way to make sure we got the proper file name for the real test later on. 26378 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26379 if test "x$test_shortpath" = x; then 26380 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26381 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26382 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26383 fi 26384 26385 # Call helper function which possibly converts this using DOS-style short mode. 26386 # If so, the updated path is stored in $new_path. 26387 26388 input_path="$new_path" 26389 # Check if we need to convert this using DOS-style short mode. If the path 26390 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26391 # take no chances and rewrite it. 26392 # Note: m4 eats our [], so we need to use [ and ] instead. 26393 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26394 if test "x$has_forbidden_chars" != x; then 26395 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26396 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26397 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26398 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26399 # Going to short mode and back again did indeed matter. Since short mode is 26400 # case insensitive, let's make it lowercase to improve readability. 26401 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26402 # Now convert it back to Unix-style (cygpath) 26403 input_path=`$CYGPATH -u "$shortmode_path"` 26404 new_path="$input_path" 26405 fi 26406 fi 26407 26408 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26409 if test "x$test_cygdrive_prefix" = x; then 26410 # As a simple fix, exclude /usr/bin since it's not a real path. 26411 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26412 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26413 # a path prefixed by /cygdrive for fixpath to work. 26414 new_path="$CYGWIN_ROOT_PATH$input_path" 26415 fi 26416 fi 26417 26418 26419 if test "x$path" != "x$new_path"; then 26420 BOOT_JDK="$new_path" 26421 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26422 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26423 fi 26424 26425 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26426 26427 path="$BOOT_JDK" 26428 has_colon=`$ECHO $path | $GREP ^.:` 26429 new_path="$path" 26430 if test "x$has_colon" = x; then 26431 # Not in mixed or Windows style, start by that. 26432 new_path=`cmd //c echo $path` 26433 fi 26434 26435 26436 input_path="$new_path" 26437 # Check if we need to convert this using DOS-style short mode. If the path 26438 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26439 # take no chances and rewrite it. 26440 # Note: m4 eats our [], so we need to use [ and ] instead. 26441 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26442 if test "x$has_forbidden_chars" != x; then 26443 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26444 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26445 fi 26446 26447 26448 windows_path="$new_path" 26449 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26450 unix_path=`$CYGPATH -u "$windows_path"` 26451 new_path="$unix_path" 26452 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26453 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26454 new_path="$unix_path" 26455 fi 26456 26457 if test "x$path" != "x$new_path"; then 26458 BOOT_JDK="$new_path" 26459 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26460 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26461 fi 26462 26463 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26464 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26465 26466 else 26467 # We're on a unix platform. Hooray! :) 26468 path="$BOOT_JDK" 26469 has_space=`$ECHO "$path" | $GREP " "` 26470 if test "x$has_space" != x; then 26471 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26472 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26473 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26474 fi 26475 26476 # Use eval to expand a potential ~ 26477 eval path="$path" 26478 if test ! -f "$path" && test ! -d "$path"; then 26479 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26480 fi 26481 26482 if test -d "$path"; then 26483 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26484 else 26485 dir="`$DIRNAME "$path"`" 26486 base="`$BASENAME "$path"`" 26487 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26488 fi 26489 fi 26490 fi 26491 26492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26493 $as_echo_n "checking for Boot JDK... " >&6; } 26494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26495 $as_echo "$BOOT_JDK" >&6; } 26496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26497 $as_echo_n "checking Boot JDK version... " >&6; } 26498 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26500 $as_echo "$BOOT_JDK_VERSION" >&6; } 26501 fi # end check jdk version 26502 fi # end check javac 26503 fi # end check java 26504 fi # end check boot jdk found 26505 fi 26506 26507 done 26508 fi 26509 26510 fi 26511 26512 26513 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26514 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26515 # Do we have a bin/java? 26516 if test ! -x "$BOOT_JDK/bin/java"; then 26517 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26518 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26519 BOOT_JDK_FOUND=no 26520 else 26521 # Do we have a bin/javac? 26522 if test ! -x "$BOOT_JDK/bin/javac"; then 26523 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26524 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26525 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26526 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26527 BOOT_JDK_FOUND=no 26528 else 26529 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26530 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 26531 26532 # Extra M4 quote needed to protect [] in grep expression. 26533 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26534 if test "x$FOUND_CORRECT_VERSION" = x; then 26535 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26536 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26537 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26538 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26539 BOOT_JDK_FOUND=no 26540 else 26541 # We're done! :-) 26542 BOOT_JDK_FOUND=yes 26543 26544 # Only process if variable expands to non-empty 26545 26546 if test "x$BOOT_JDK" != x; then 26547 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26548 26549 # Input might be given as Windows format, start by converting to 26550 # unix format. 26551 path="$BOOT_JDK" 26552 new_path=`$CYGPATH -u "$path"` 26553 26554 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26555 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26556 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26557 # "foo.exe" is OK but "foo" is an error. 26558 # 26559 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26560 # It is also a way to make sure we got the proper file name for the real test later on. 26561 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26562 if test "x$test_shortpath" = x; then 26563 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26564 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26565 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26566 fi 26567 26568 # Call helper function which possibly converts this using DOS-style short mode. 26569 # If so, the updated path is stored in $new_path. 26570 26571 input_path="$new_path" 26572 # Check if we need to convert this using DOS-style short mode. If the path 26573 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26574 # take no chances and rewrite it. 26575 # Note: m4 eats our [], so we need to use [ and ] instead. 26576 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26577 if test "x$has_forbidden_chars" != x; then 26578 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26579 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26580 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26581 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26582 # Going to short mode and back again did indeed matter. Since short mode is 26583 # case insensitive, let's make it lowercase to improve readability. 26584 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26585 # Now convert it back to Unix-style (cygpath) 26586 input_path=`$CYGPATH -u "$shortmode_path"` 26587 new_path="$input_path" 26588 fi 26589 fi 26590 26591 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26592 if test "x$test_cygdrive_prefix" = x; then 26593 # As a simple fix, exclude /usr/bin since it's not a real path. 26594 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26595 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26596 # a path prefixed by /cygdrive for fixpath to work. 26597 new_path="$CYGWIN_ROOT_PATH$input_path" 26598 fi 26599 fi 26600 26601 26602 if test "x$path" != "x$new_path"; then 26603 BOOT_JDK="$new_path" 26604 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26605 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26606 fi 26607 26608 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26609 26610 path="$BOOT_JDK" 26611 has_colon=`$ECHO $path | $GREP ^.:` 26612 new_path="$path" 26613 if test "x$has_colon" = x; then 26614 # Not in mixed or Windows style, start by that. 26615 new_path=`cmd //c echo $path` 26616 fi 26617 26618 26619 input_path="$new_path" 26620 # Check if we need to convert this using DOS-style short mode. If the path 26621 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26622 # take no chances and rewrite it. 26623 # Note: m4 eats our [], so we need to use [ and ] instead. 26624 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26625 if test "x$has_forbidden_chars" != x; then 26626 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26627 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26628 fi 26629 26630 26631 windows_path="$new_path" 26632 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26633 unix_path=`$CYGPATH -u "$windows_path"` 26634 new_path="$unix_path" 26635 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26636 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26637 new_path="$unix_path" 26638 fi 26639 26640 if test "x$path" != "x$new_path"; then 26641 BOOT_JDK="$new_path" 26642 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26643 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26644 fi 26645 26646 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26647 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26648 26649 else 26650 # We're on a unix platform. Hooray! :) 26651 path="$BOOT_JDK" 26652 has_space=`$ECHO "$path" | $GREP " "` 26653 if test "x$has_space" != x; then 26654 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26655 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26656 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26657 fi 26658 26659 # Use eval to expand a potential ~ 26660 eval path="$path" 26661 if test ! -f "$path" && test ! -d "$path"; then 26662 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26663 fi 26664 26665 if test -d "$path"; then 26666 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26667 else 26668 dir="`$DIRNAME "$path"`" 26669 base="`$BASENAME "$path"`" 26670 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26671 fi 26672 fi 26673 fi 26674 26675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26676 $as_echo_n "checking for Boot JDK... " >&6; } 26677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26678 $as_echo "$BOOT_JDK" >&6; } 26679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26680 $as_echo_n "checking Boot JDK version... " >&6; } 26681 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26683 $as_echo "$BOOT_JDK_VERSION" >&6; } 26684 fi # end check jdk version 26685 fi # end check javac 26686 fi # end check java 26687 fi # end check boot jdk found 26688 fi 26689 26690 26691 if test "x$BOOT_JDK_FOUND" = xno; then 26692 # Now execute the test 26693 26694 if test "x$ProgramFiles" != x; then 26695 VIRTUAL_DIR="$ProgramFiles/Java" 26696 26697 windows_path="$VIRTUAL_DIR" 26698 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26699 unix_path=`$CYGPATH -u "$windows_path"` 26700 VIRTUAL_DIR="$unix_path" 26701 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26702 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26703 VIRTUAL_DIR="$unix_path" 26704 fi 26705 26706 26707 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 26708 BOOT_JDK_SUFFIX="" 26709 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 26710 if test "x$ALL_JDKS_FOUND" != x; then 26711 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 26712 26713 if test "x$BOOT_JDK_FOUND" = xno; then 26714 # Now execute the test 26715 26716 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 26717 if test -d "$BOOT_JDK"; then 26718 BOOT_JDK_FOUND=maybe 26719 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 26720 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 26721 fi 26722 26723 26724 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26725 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26726 # Do we have a bin/java? 26727 if test ! -x "$BOOT_JDK/bin/java"; then 26728 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26729 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26730 BOOT_JDK_FOUND=no 26731 else 26732 # Do we have a bin/javac? 26733 if test ! -x "$BOOT_JDK/bin/javac"; then 26734 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26735 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26736 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26737 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26738 BOOT_JDK_FOUND=no 26739 else 26740 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26741 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 26742 26743 # Extra M4 quote needed to protect [] in grep expression. 26744 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26745 if test "x$FOUND_CORRECT_VERSION" = x; then 26746 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26747 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26748 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26749 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26750 BOOT_JDK_FOUND=no 26751 else 26752 # We're done! :-) 26753 BOOT_JDK_FOUND=yes 26754 26755 # Only process if variable expands to non-empty 26756 26757 if test "x$BOOT_JDK" != x; then 26758 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26759 26760 # Input might be given as Windows format, start by converting to 26761 # unix format. 26762 path="$BOOT_JDK" 26763 new_path=`$CYGPATH -u "$path"` 26764 26765 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26766 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26767 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26768 # "foo.exe" is OK but "foo" is an error. 26769 # 26770 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26771 # It is also a way to make sure we got the proper file name for the real test later on. 26772 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26773 if test "x$test_shortpath" = x; then 26774 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26775 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26776 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26777 fi 26778 26779 # Call helper function which possibly converts this using DOS-style short mode. 26780 # If so, the updated path is stored in $new_path. 26781 26782 input_path="$new_path" 26783 # Check if we need to convert this using DOS-style short mode. If the path 26784 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26785 # take no chances and rewrite it. 26786 # Note: m4 eats our [], so we need to use [ and ] instead. 26787 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26788 if test "x$has_forbidden_chars" != x; then 26789 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26790 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26791 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26792 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26793 # Going to short mode and back again did indeed matter. Since short mode is 26794 # case insensitive, let's make it lowercase to improve readability. 26795 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26796 # Now convert it back to Unix-style (cygpath) 26797 input_path=`$CYGPATH -u "$shortmode_path"` 26798 new_path="$input_path" 26799 fi 26800 fi 26801 26802 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26803 if test "x$test_cygdrive_prefix" = x; then 26804 # As a simple fix, exclude /usr/bin since it's not a real path. 26805 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26806 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26807 # a path prefixed by /cygdrive for fixpath to work. 26808 new_path="$CYGWIN_ROOT_PATH$input_path" 26809 fi 26810 fi 26811 26812 26813 if test "x$path" != "x$new_path"; then 26814 BOOT_JDK="$new_path" 26815 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26816 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26817 fi 26818 26819 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26820 26821 path="$BOOT_JDK" 26822 has_colon=`$ECHO $path | $GREP ^.:` 26823 new_path="$path" 26824 if test "x$has_colon" = x; then 26825 # Not in mixed or Windows style, start by that. 26826 new_path=`cmd //c echo $path` 26827 fi 26828 26829 26830 input_path="$new_path" 26831 # Check if we need to convert this using DOS-style short mode. If the path 26832 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26833 # take no chances and rewrite it. 26834 # Note: m4 eats our [], so we need to use [ and ] instead. 26835 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26836 if test "x$has_forbidden_chars" != x; then 26837 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26838 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26839 fi 26840 26841 26842 windows_path="$new_path" 26843 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26844 unix_path=`$CYGPATH -u "$windows_path"` 26845 new_path="$unix_path" 26846 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26847 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26848 new_path="$unix_path" 26849 fi 26850 26851 if test "x$path" != "x$new_path"; then 26852 BOOT_JDK="$new_path" 26853 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26854 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26855 fi 26856 26857 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26858 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26859 26860 else 26861 # We're on a unix platform. Hooray! :) 26862 path="$BOOT_JDK" 26863 has_space=`$ECHO "$path" | $GREP " "` 26864 if test "x$has_space" != x; then 26865 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26866 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26867 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26868 fi 26869 26870 # Use eval to expand a potential ~ 26871 eval path="$path" 26872 if test ! -f "$path" && test ! -d "$path"; then 26873 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26874 fi 26875 26876 if test -d "$path"; then 26877 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26878 else 26879 dir="`$DIRNAME "$path"`" 26880 base="`$BASENAME "$path"`" 26881 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26882 fi 26883 fi 26884 fi 26885 26886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26887 $as_echo_n "checking for Boot JDK... " >&6; } 26888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26889 $as_echo "$BOOT_JDK" >&6; } 26890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26891 $as_echo_n "checking Boot JDK version... " >&6; } 26892 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26894 $as_echo "$BOOT_JDK_VERSION" >&6; } 26895 fi # end check jdk version 26896 fi # end check javac 26897 fi # end check java 26898 fi # end check boot jdk found 26899 fi 26900 26901 done 26902 fi 26903 26904 fi 26905 26906 26907 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26908 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26909 # Do we have a bin/java? 26910 if test ! -x "$BOOT_JDK/bin/java"; then 26911 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26912 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26913 BOOT_JDK_FOUND=no 26914 else 26915 # Do we have a bin/javac? 26916 if test ! -x "$BOOT_JDK/bin/javac"; then 26917 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26918 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26919 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26920 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26921 BOOT_JDK_FOUND=no 26922 else 26923 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26924 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 26925 26926 # Extra M4 quote needed to protect [] in grep expression. 26927 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26928 if test "x$FOUND_CORRECT_VERSION" = x; then 26929 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26930 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26931 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26932 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26933 BOOT_JDK_FOUND=no 26934 else 26935 # We're done! :-) 26936 BOOT_JDK_FOUND=yes 26937 26938 # Only process if variable expands to non-empty 26939 26940 if test "x$BOOT_JDK" != x; then 26941 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26942 26943 # Input might be given as Windows format, start by converting to 26944 # unix format. 26945 path="$BOOT_JDK" 26946 new_path=`$CYGPATH -u "$path"` 26947 26948 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26949 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26950 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26951 # "foo.exe" is OK but "foo" is an error. 26952 # 26953 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26954 # It is also a way to make sure we got the proper file name for the real test later on. 26955 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26956 if test "x$test_shortpath" = x; then 26957 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26958 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26959 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26960 fi 26961 26962 # Call helper function which possibly converts this using DOS-style short mode. 26963 # If so, the updated path is stored in $new_path. 26964 26965 input_path="$new_path" 26966 # Check if we need to convert this using DOS-style short mode. If the path 26967 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26968 # take no chances and rewrite it. 26969 # Note: m4 eats our [], so we need to use [ and ] instead. 26970 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26971 if test "x$has_forbidden_chars" != x; then 26972 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26973 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26974 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26975 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26976 # Going to short mode and back again did indeed matter. Since short mode is 26977 # case insensitive, let's make it lowercase to improve readability. 26978 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26979 # Now convert it back to Unix-style (cygpath) 26980 input_path=`$CYGPATH -u "$shortmode_path"` 26981 new_path="$input_path" 26982 fi 26983 fi 26984 26985 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26986 if test "x$test_cygdrive_prefix" = x; then 26987 # As a simple fix, exclude /usr/bin since it's not a real path. 26988 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26989 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26990 # a path prefixed by /cygdrive for fixpath to work. 26991 new_path="$CYGWIN_ROOT_PATH$input_path" 26992 fi 26993 fi 26994 26995 26996 if test "x$path" != "x$new_path"; then 26997 BOOT_JDK="$new_path" 26998 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26999 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27000 fi 27001 27002 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27003 27004 path="$BOOT_JDK" 27005 has_colon=`$ECHO $path | $GREP ^.:` 27006 new_path="$path" 27007 if test "x$has_colon" = x; then 27008 # Not in mixed or Windows style, start by that. 27009 new_path=`cmd //c echo $path` 27010 fi 27011 27012 27013 input_path="$new_path" 27014 # Check if we need to convert this using DOS-style short mode. If the path 27015 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27016 # take no chances and rewrite it. 27017 # Note: m4 eats our [], so we need to use [ and ] instead. 27018 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27019 if test "x$has_forbidden_chars" != x; then 27020 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27021 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27022 fi 27023 27024 27025 windows_path="$new_path" 27026 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27027 unix_path=`$CYGPATH -u "$windows_path"` 27028 new_path="$unix_path" 27029 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27030 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27031 new_path="$unix_path" 27032 fi 27033 27034 if test "x$path" != "x$new_path"; then 27035 BOOT_JDK="$new_path" 27036 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27037 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27038 fi 27039 27040 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27041 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27042 27043 else 27044 # We're on a unix platform. Hooray! :) 27045 path="$BOOT_JDK" 27046 has_space=`$ECHO "$path" | $GREP " "` 27047 if test "x$has_space" != x; then 27048 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27049 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27050 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27051 fi 27052 27053 # Use eval to expand a potential ~ 27054 eval path="$path" 27055 if test ! -f "$path" && test ! -d "$path"; then 27056 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27057 fi 27058 27059 if test -d "$path"; then 27060 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27061 else 27062 dir="`$DIRNAME "$path"`" 27063 base="`$BASENAME "$path"`" 27064 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27065 fi 27066 fi 27067 fi 27068 27069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27070 $as_echo_n "checking for Boot JDK... " >&6; } 27071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27072 $as_echo "$BOOT_JDK" >&6; } 27073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27074 $as_echo_n "checking Boot JDK version... " >&6; } 27075 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27077 $as_echo "$BOOT_JDK_VERSION" >&6; } 27078 fi # end check jdk version 27079 fi # end check javac 27080 fi # end check java 27081 fi # end check boot jdk found 27082 fi 27083 27084 27085 if test "x$BOOT_JDK_FOUND" = xno; then 27086 # Now execute the test 27087 27088 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 27089 BOOT_JDK_SUFFIX="" 27090 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27091 if test "x$ALL_JDKS_FOUND" != x; then 27092 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27093 27094 if test "x$BOOT_JDK_FOUND" = xno; then 27095 # Now execute the test 27096 27097 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27098 if test -d "$BOOT_JDK"; then 27099 BOOT_JDK_FOUND=maybe 27100 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27101 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27102 fi 27103 27104 27105 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27106 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27107 # Do we have a bin/java? 27108 if test ! -x "$BOOT_JDK/bin/java"; then 27109 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27110 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27111 BOOT_JDK_FOUND=no 27112 else 27113 # Do we have a bin/javac? 27114 if test ! -x "$BOOT_JDK/bin/javac"; then 27115 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27116 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27117 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27118 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27119 BOOT_JDK_FOUND=no 27120 else 27121 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27122 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 27123 27124 # Extra M4 quote needed to protect [] in grep expression. 27125 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27126 if test "x$FOUND_CORRECT_VERSION" = x; then 27127 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27128 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27129 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27130 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27131 BOOT_JDK_FOUND=no 27132 else 27133 # We're done! :-) 27134 BOOT_JDK_FOUND=yes 27135 27136 # Only process if variable expands to non-empty 27137 27138 if test "x$BOOT_JDK" != x; then 27139 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27140 27141 # Input might be given as Windows format, start by converting to 27142 # unix format. 27143 path="$BOOT_JDK" 27144 new_path=`$CYGPATH -u "$path"` 27145 27146 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27147 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27148 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27149 # "foo.exe" is OK but "foo" is an error. 27150 # 27151 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27152 # It is also a way to make sure we got the proper file name for the real test later on. 27153 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27154 if test "x$test_shortpath" = x; then 27155 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27156 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27157 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27158 fi 27159 27160 # Call helper function which possibly converts this using DOS-style short mode. 27161 # If so, the updated path is stored in $new_path. 27162 27163 input_path="$new_path" 27164 # Check if we need to convert this using DOS-style short mode. If the path 27165 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27166 # take no chances and rewrite it. 27167 # Note: m4 eats our [], so we need to use [ and ] instead. 27168 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27169 if test "x$has_forbidden_chars" != x; then 27170 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27171 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27172 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27173 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27174 # Going to short mode and back again did indeed matter. Since short mode is 27175 # case insensitive, let's make it lowercase to improve readability. 27176 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27177 # Now convert it back to Unix-style (cygpath) 27178 input_path=`$CYGPATH -u "$shortmode_path"` 27179 new_path="$input_path" 27180 fi 27181 fi 27182 27183 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27184 if test "x$test_cygdrive_prefix" = x; then 27185 # As a simple fix, exclude /usr/bin since it's not a real path. 27186 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27187 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27188 # a path prefixed by /cygdrive for fixpath to work. 27189 new_path="$CYGWIN_ROOT_PATH$input_path" 27190 fi 27191 fi 27192 27193 27194 if test "x$path" != "x$new_path"; then 27195 BOOT_JDK="$new_path" 27196 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27197 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27198 fi 27199 27200 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27201 27202 path="$BOOT_JDK" 27203 has_colon=`$ECHO $path | $GREP ^.:` 27204 new_path="$path" 27205 if test "x$has_colon" = x; then 27206 # Not in mixed or Windows style, start by that. 27207 new_path=`cmd //c echo $path` 27208 fi 27209 27210 27211 input_path="$new_path" 27212 # Check if we need to convert this using DOS-style short mode. If the path 27213 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27214 # take no chances and rewrite it. 27215 # Note: m4 eats our [], so we need to use [ and ] instead. 27216 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27217 if test "x$has_forbidden_chars" != x; then 27218 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27219 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27220 fi 27221 27222 27223 windows_path="$new_path" 27224 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27225 unix_path=`$CYGPATH -u "$windows_path"` 27226 new_path="$unix_path" 27227 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27228 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27229 new_path="$unix_path" 27230 fi 27231 27232 if test "x$path" != "x$new_path"; then 27233 BOOT_JDK="$new_path" 27234 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27235 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27236 fi 27237 27238 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27239 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27240 27241 else 27242 # We're on a unix platform. Hooray! :) 27243 path="$BOOT_JDK" 27244 has_space=`$ECHO "$path" | $GREP " "` 27245 if test "x$has_space" != x; then 27246 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27247 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27248 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27249 fi 27250 27251 # Use eval to expand a potential ~ 27252 eval path="$path" 27253 if test ! -f "$path" && test ! -d "$path"; then 27254 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27255 fi 27256 27257 if test -d "$path"; then 27258 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27259 else 27260 dir="`$DIRNAME "$path"`" 27261 base="`$BASENAME "$path"`" 27262 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27263 fi 27264 fi 27265 fi 27266 27267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27268 $as_echo_n "checking for Boot JDK... " >&6; } 27269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27270 $as_echo "$BOOT_JDK" >&6; } 27271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27272 $as_echo_n "checking Boot JDK version... " >&6; } 27273 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27275 $as_echo "$BOOT_JDK_VERSION" >&6; } 27276 fi # end check jdk version 27277 fi # end check javac 27278 fi # end check java 27279 fi # end check boot jdk found 27280 fi 27281 27282 done 27283 fi 27284 27285 27286 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27287 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27288 # Do we have a bin/java? 27289 if test ! -x "$BOOT_JDK/bin/java"; then 27290 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27291 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27292 BOOT_JDK_FOUND=no 27293 else 27294 # Do we have a bin/javac? 27295 if test ! -x "$BOOT_JDK/bin/javac"; then 27296 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27297 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27298 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27299 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27300 BOOT_JDK_FOUND=no 27301 else 27302 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27303 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 27304 27305 # Extra M4 quote needed to protect [] in grep expression. 27306 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27307 if test "x$FOUND_CORRECT_VERSION" = x; then 27308 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27309 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27310 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27311 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27312 BOOT_JDK_FOUND=no 27313 else 27314 # We're done! :-) 27315 BOOT_JDK_FOUND=yes 27316 27317 # Only process if variable expands to non-empty 27318 27319 if test "x$BOOT_JDK" != x; then 27320 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27321 27322 # Input might be given as Windows format, start by converting to 27323 # unix format. 27324 path="$BOOT_JDK" 27325 new_path=`$CYGPATH -u "$path"` 27326 27327 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27328 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27329 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27330 # "foo.exe" is OK but "foo" is an error. 27331 # 27332 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27333 # It is also a way to make sure we got the proper file name for the real test later on. 27334 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27335 if test "x$test_shortpath" = x; then 27336 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27337 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27338 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27339 fi 27340 27341 # Call helper function which possibly converts this using DOS-style short mode. 27342 # If so, the updated path is stored in $new_path. 27343 27344 input_path="$new_path" 27345 # Check if we need to convert this using DOS-style short mode. If the path 27346 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27347 # take no chances and rewrite it. 27348 # Note: m4 eats our [], so we need to use [ and ] instead. 27349 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27350 if test "x$has_forbidden_chars" != x; then 27351 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27352 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27353 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27354 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27355 # Going to short mode and back again did indeed matter. Since short mode is 27356 # case insensitive, let's make it lowercase to improve readability. 27357 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27358 # Now convert it back to Unix-style (cygpath) 27359 input_path=`$CYGPATH -u "$shortmode_path"` 27360 new_path="$input_path" 27361 fi 27362 fi 27363 27364 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27365 if test "x$test_cygdrive_prefix" = x; then 27366 # As a simple fix, exclude /usr/bin since it's not a real path. 27367 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27368 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27369 # a path prefixed by /cygdrive for fixpath to work. 27370 new_path="$CYGWIN_ROOT_PATH$input_path" 27371 fi 27372 fi 27373 27374 27375 if test "x$path" != "x$new_path"; then 27376 BOOT_JDK="$new_path" 27377 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27378 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27379 fi 27380 27381 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27382 27383 path="$BOOT_JDK" 27384 has_colon=`$ECHO $path | $GREP ^.:` 27385 new_path="$path" 27386 if test "x$has_colon" = x; then 27387 # Not in mixed or Windows style, start by that. 27388 new_path=`cmd //c echo $path` 27389 fi 27390 27391 27392 input_path="$new_path" 27393 # Check if we need to convert this using DOS-style short mode. If the path 27394 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27395 # take no chances and rewrite it. 27396 # Note: m4 eats our [], so we need to use [ and ] instead. 27397 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27398 if test "x$has_forbidden_chars" != x; then 27399 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27400 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27401 fi 27402 27403 27404 windows_path="$new_path" 27405 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27406 unix_path=`$CYGPATH -u "$windows_path"` 27407 new_path="$unix_path" 27408 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27409 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27410 new_path="$unix_path" 27411 fi 27412 27413 if test "x$path" != "x$new_path"; then 27414 BOOT_JDK="$new_path" 27415 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27416 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27417 fi 27418 27419 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27420 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27421 27422 else 27423 # We're on a unix platform. Hooray! :) 27424 path="$BOOT_JDK" 27425 has_space=`$ECHO "$path" | $GREP " "` 27426 if test "x$has_space" != x; then 27427 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27428 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27429 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27430 fi 27431 27432 # Use eval to expand a potential ~ 27433 eval path="$path" 27434 if test ! -f "$path" && test ! -d "$path"; then 27435 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27436 fi 27437 27438 if test -d "$path"; then 27439 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27440 else 27441 dir="`$DIRNAME "$path"`" 27442 base="`$BASENAME "$path"`" 27443 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27444 fi 27445 fi 27446 fi 27447 27448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27449 $as_echo_n "checking for Boot JDK... " >&6; } 27450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27451 $as_echo "$BOOT_JDK" >&6; } 27452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27453 $as_echo_n "checking Boot JDK version... " >&6; } 27454 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27456 $as_echo "$BOOT_JDK_VERSION" >&6; } 27457 fi # end check jdk version 27458 fi # end check javac 27459 fi # end check java 27460 fi # end check boot jdk found 27461 fi 27462 27463 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 27464 27465 if test "x$BOOT_JDK_FOUND" = xno; then 27466 # Now execute the test 27467 27468 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 27469 BOOT_JDK_SUFFIX="/Contents/Home" 27470 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27471 if test "x$ALL_JDKS_FOUND" != x; then 27472 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27473 27474 if test "x$BOOT_JDK_FOUND" = xno; then 27475 # Now execute the test 27476 27477 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27478 if test -d "$BOOT_JDK"; then 27479 BOOT_JDK_FOUND=maybe 27480 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27481 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27482 fi 27483 27484 27485 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27486 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27487 # Do we have a bin/java? 27488 if test ! -x "$BOOT_JDK/bin/java"; then 27489 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27490 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27491 BOOT_JDK_FOUND=no 27492 else 27493 # Do we have a bin/javac? 27494 if test ! -x "$BOOT_JDK/bin/javac"; then 27495 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27496 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27497 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27498 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27499 BOOT_JDK_FOUND=no 27500 else 27501 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27502 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 27503 27504 # Extra M4 quote needed to protect [] in grep expression. 27505 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27506 if test "x$FOUND_CORRECT_VERSION" = x; then 27507 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27508 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27509 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27510 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27511 BOOT_JDK_FOUND=no 27512 else 27513 # We're done! :-) 27514 BOOT_JDK_FOUND=yes 27515 27516 # Only process if variable expands to non-empty 27517 27518 if test "x$BOOT_JDK" != x; then 27519 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27520 27521 # Input might be given as Windows format, start by converting to 27522 # unix format. 27523 path="$BOOT_JDK" 27524 new_path=`$CYGPATH -u "$path"` 27525 27526 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27527 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27528 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27529 # "foo.exe" is OK but "foo" is an error. 27530 # 27531 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27532 # It is also a way to make sure we got the proper file name for the real test later on. 27533 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27534 if test "x$test_shortpath" = x; then 27535 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27536 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27537 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27538 fi 27539 27540 # Call helper function which possibly converts this using DOS-style short mode. 27541 # If so, the updated path is stored in $new_path. 27542 27543 input_path="$new_path" 27544 # Check if we need to convert this using DOS-style short mode. If the path 27545 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27546 # take no chances and rewrite it. 27547 # Note: m4 eats our [], so we need to use [ and ] instead. 27548 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27549 if test "x$has_forbidden_chars" != x; then 27550 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27551 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27552 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27553 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27554 # Going to short mode and back again did indeed matter. Since short mode is 27555 # case insensitive, let's make it lowercase to improve readability. 27556 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27557 # Now convert it back to Unix-style (cygpath) 27558 input_path=`$CYGPATH -u "$shortmode_path"` 27559 new_path="$input_path" 27560 fi 27561 fi 27562 27563 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27564 if test "x$test_cygdrive_prefix" = x; then 27565 # As a simple fix, exclude /usr/bin since it's not a real path. 27566 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27567 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27568 # a path prefixed by /cygdrive for fixpath to work. 27569 new_path="$CYGWIN_ROOT_PATH$input_path" 27570 fi 27571 fi 27572 27573 27574 if test "x$path" != "x$new_path"; then 27575 BOOT_JDK="$new_path" 27576 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27577 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27578 fi 27579 27580 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27581 27582 path="$BOOT_JDK" 27583 has_colon=`$ECHO $path | $GREP ^.:` 27584 new_path="$path" 27585 if test "x$has_colon" = x; then 27586 # Not in mixed or Windows style, start by that. 27587 new_path=`cmd //c echo $path` 27588 fi 27589 27590 27591 input_path="$new_path" 27592 # Check if we need to convert this using DOS-style short mode. If the path 27593 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27594 # take no chances and rewrite it. 27595 # Note: m4 eats our [], so we need to use [ and ] instead. 27596 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27597 if test "x$has_forbidden_chars" != x; then 27598 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27599 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27600 fi 27601 27602 27603 windows_path="$new_path" 27604 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27605 unix_path=`$CYGPATH -u "$windows_path"` 27606 new_path="$unix_path" 27607 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27608 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27609 new_path="$unix_path" 27610 fi 27611 27612 if test "x$path" != "x$new_path"; then 27613 BOOT_JDK="$new_path" 27614 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27615 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27616 fi 27617 27618 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27619 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27620 27621 else 27622 # We're on a unix platform. Hooray! :) 27623 path="$BOOT_JDK" 27624 has_space=`$ECHO "$path" | $GREP " "` 27625 if test "x$has_space" != x; then 27626 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27627 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27628 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27629 fi 27630 27631 # Use eval to expand a potential ~ 27632 eval path="$path" 27633 if test ! -f "$path" && test ! -d "$path"; then 27634 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27635 fi 27636 27637 if test -d "$path"; then 27638 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27639 else 27640 dir="`$DIRNAME "$path"`" 27641 base="`$BASENAME "$path"`" 27642 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27643 fi 27644 fi 27645 fi 27646 27647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27648 $as_echo_n "checking for Boot JDK... " >&6; } 27649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27650 $as_echo "$BOOT_JDK" >&6; } 27651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27652 $as_echo_n "checking Boot JDK version... " >&6; } 27653 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27655 $as_echo "$BOOT_JDK_VERSION" >&6; } 27656 fi # end check jdk version 27657 fi # end check javac 27658 fi # end check java 27659 fi # end check boot jdk found 27660 fi 27661 27662 done 27663 fi 27664 27665 27666 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27667 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27668 # Do we have a bin/java? 27669 if test ! -x "$BOOT_JDK/bin/java"; then 27670 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27671 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27672 BOOT_JDK_FOUND=no 27673 else 27674 # Do we have a bin/javac? 27675 if test ! -x "$BOOT_JDK/bin/javac"; then 27676 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27677 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27678 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27679 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27680 BOOT_JDK_FOUND=no 27681 else 27682 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27683 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 27684 27685 # Extra M4 quote needed to protect [] in grep expression. 27686 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27687 if test "x$FOUND_CORRECT_VERSION" = x; then 27688 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27689 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27690 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27691 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27692 BOOT_JDK_FOUND=no 27693 else 27694 # We're done! :-) 27695 BOOT_JDK_FOUND=yes 27696 27697 # Only process if variable expands to non-empty 27698 27699 if test "x$BOOT_JDK" != x; then 27700 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27701 27702 # Input might be given as Windows format, start by converting to 27703 # unix format. 27704 path="$BOOT_JDK" 27705 new_path=`$CYGPATH -u "$path"` 27706 27707 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27708 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27709 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27710 # "foo.exe" is OK but "foo" is an error. 27711 # 27712 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27713 # It is also a way to make sure we got the proper file name for the real test later on. 27714 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27715 if test "x$test_shortpath" = x; then 27716 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27717 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27718 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27719 fi 27720 27721 # Call helper function which possibly converts this using DOS-style short mode. 27722 # If so, the updated path is stored in $new_path. 27723 27724 input_path="$new_path" 27725 # Check if we need to convert this using DOS-style short mode. If the path 27726 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27727 # take no chances and rewrite it. 27728 # Note: m4 eats our [], so we need to use [ and ] instead. 27729 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27730 if test "x$has_forbidden_chars" != x; then 27731 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27732 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27733 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27734 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27735 # Going to short mode and back again did indeed matter. Since short mode is 27736 # case insensitive, let's make it lowercase to improve readability. 27737 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27738 # Now convert it back to Unix-style (cygpath) 27739 input_path=`$CYGPATH -u "$shortmode_path"` 27740 new_path="$input_path" 27741 fi 27742 fi 27743 27744 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27745 if test "x$test_cygdrive_prefix" = x; then 27746 # As a simple fix, exclude /usr/bin since it's not a real path. 27747 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27748 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27749 # a path prefixed by /cygdrive for fixpath to work. 27750 new_path="$CYGWIN_ROOT_PATH$input_path" 27751 fi 27752 fi 27753 27754 27755 if test "x$path" != "x$new_path"; then 27756 BOOT_JDK="$new_path" 27757 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27758 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27759 fi 27760 27761 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27762 27763 path="$BOOT_JDK" 27764 has_colon=`$ECHO $path | $GREP ^.:` 27765 new_path="$path" 27766 if test "x$has_colon" = x; then 27767 # Not in mixed or Windows style, start by that. 27768 new_path=`cmd //c echo $path` 27769 fi 27770 27771 27772 input_path="$new_path" 27773 # Check if we need to convert this using DOS-style short mode. If the path 27774 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27775 # take no chances and rewrite it. 27776 # Note: m4 eats our [], so we need to use [ and ] instead. 27777 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27778 if test "x$has_forbidden_chars" != x; then 27779 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27780 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27781 fi 27782 27783 27784 windows_path="$new_path" 27785 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27786 unix_path=`$CYGPATH -u "$windows_path"` 27787 new_path="$unix_path" 27788 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27789 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27790 new_path="$unix_path" 27791 fi 27792 27793 if test "x$path" != "x$new_path"; then 27794 BOOT_JDK="$new_path" 27795 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27796 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27797 fi 27798 27799 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27800 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27801 27802 else 27803 # We're on a unix platform. Hooray! :) 27804 path="$BOOT_JDK" 27805 has_space=`$ECHO "$path" | $GREP " "` 27806 if test "x$has_space" != x; then 27807 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27808 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27809 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27810 fi 27811 27812 # Use eval to expand a potential ~ 27813 eval path="$path" 27814 if test ! -f "$path" && test ! -d "$path"; then 27815 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27816 fi 27817 27818 if test -d "$path"; then 27819 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27820 else 27821 dir="`$DIRNAME "$path"`" 27822 base="`$BASENAME "$path"`" 27823 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27824 fi 27825 fi 27826 fi 27827 27828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27829 $as_echo_n "checking for Boot JDK... " >&6; } 27830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27831 $as_echo "$BOOT_JDK" >&6; } 27832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27833 $as_echo_n "checking Boot JDK version... " >&6; } 27834 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27836 $as_echo "$BOOT_JDK_VERSION" >&6; } 27837 fi # end check jdk version 27838 fi # end check javac 27839 fi # end check java 27840 fi # end check boot jdk found 27841 fi 27842 27843 27844 if test "x$BOOT_JDK_FOUND" = xno; then 27845 # Now execute the test 27846 27847 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 27848 BOOT_JDK_SUFFIX="/Contents/Home" 27849 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27850 if test "x$ALL_JDKS_FOUND" != x; then 27851 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27852 27853 if test "x$BOOT_JDK_FOUND" = xno; then 27854 # Now execute the test 27855 27856 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27857 if test -d "$BOOT_JDK"; then 27858 BOOT_JDK_FOUND=maybe 27859 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27860 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27861 fi 27862 27863 27864 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27865 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27866 # Do we have a bin/java? 27867 if test ! -x "$BOOT_JDK/bin/java"; then 27868 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27869 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27870 BOOT_JDK_FOUND=no 27871 else 27872 # Do we have a bin/javac? 27873 if test ! -x "$BOOT_JDK/bin/javac"; then 27874 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27875 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27876 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27877 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27878 BOOT_JDK_FOUND=no 27879 else 27880 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27881 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 27882 27883 # Extra M4 quote needed to protect [] in grep expression. 27884 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27885 if test "x$FOUND_CORRECT_VERSION" = x; then 27886 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27887 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27888 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27889 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27890 BOOT_JDK_FOUND=no 27891 else 27892 # We're done! :-) 27893 BOOT_JDK_FOUND=yes 27894 27895 # Only process if variable expands to non-empty 27896 27897 if test "x$BOOT_JDK" != x; then 27898 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27899 27900 # Input might be given as Windows format, start by converting to 27901 # unix format. 27902 path="$BOOT_JDK" 27903 new_path=`$CYGPATH -u "$path"` 27904 27905 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27906 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27907 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27908 # "foo.exe" is OK but "foo" is an error. 27909 # 27910 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27911 # It is also a way to make sure we got the proper file name for the real test later on. 27912 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27913 if test "x$test_shortpath" = x; then 27914 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27915 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27916 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27917 fi 27918 27919 # Call helper function which possibly converts this using DOS-style short mode. 27920 # If so, the updated path is stored in $new_path. 27921 27922 input_path="$new_path" 27923 # Check if we need to convert this using DOS-style short mode. If the path 27924 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27925 # take no chances and rewrite it. 27926 # Note: m4 eats our [], so we need to use [ and ] instead. 27927 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27928 if test "x$has_forbidden_chars" != x; then 27929 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27930 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27931 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27932 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27933 # Going to short mode and back again did indeed matter. Since short mode is 27934 # case insensitive, let's make it lowercase to improve readability. 27935 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27936 # Now convert it back to Unix-style (cygpath) 27937 input_path=`$CYGPATH -u "$shortmode_path"` 27938 new_path="$input_path" 27939 fi 27940 fi 27941 27942 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27943 if test "x$test_cygdrive_prefix" = x; then 27944 # As a simple fix, exclude /usr/bin since it's not a real path. 27945 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27946 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27947 # a path prefixed by /cygdrive for fixpath to work. 27948 new_path="$CYGWIN_ROOT_PATH$input_path" 27949 fi 27950 fi 27951 27952 27953 if test "x$path" != "x$new_path"; then 27954 BOOT_JDK="$new_path" 27955 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27956 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27957 fi 27958 27959 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27960 27961 path="$BOOT_JDK" 27962 has_colon=`$ECHO $path | $GREP ^.:` 27963 new_path="$path" 27964 if test "x$has_colon" = x; then 27965 # Not in mixed or Windows style, start by that. 27966 new_path=`cmd //c echo $path` 27967 fi 27968 27969 27970 input_path="$new_path" 27971 # Check if we need to convert this using DOS-style short mode. If the path 27972 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27973 # take no chances and rewrite it. 27974 # Note: m4 eats our [], so we need to use [ and ] instead. 27975 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27976 if test "x$has_forbidden_chars" != x; then 27977 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27978 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27979 fi 27980 27981 27982 windows_path="$new_path" 27983 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27984 unix_path=`$CYGPATH -u "$windows_path"` 27985 new_path="$unix_path" 27986 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27987 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27988 new_path="$unix_path" 27989 fi 27990 27991 if test "x$path" != "x$new_path"; then 27992 BOOT_JDK="$new_path" 27993 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27994 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27995 fi 27996 27997 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27998 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27999 28000 else 28001 # We're on a unix platform. Hooray! :) 28002 path="$BOOT_JDK" 28003 has_space=`$ECHO "$path" | $GREP " "` 28004 if test "x$has_space" != x; then 28005 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28006 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28007 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28008 fi 28009 28010 # Use eval to expand a potential ~ 28011 eval path="$path" 28012 if test ! -f "$path" && test ! -d "$path"; then 28013 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28014 fi 28015 28016 if test -d "$path"; then 28017 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28018 else 28019 dir="`$DIRNAME "$path"`" 28020 base="`$BASENAME "$path"`" 28021 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28022 fi 28023 fi 28024 fi 28025 28026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28027 $as_echo_n "checking for Boot JDK... " >&6; } 28028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28029 $as_echo "$BOOT_JDK" >&6; } 28030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28031 $as_echo_n "checking Boot JDK version... " >&6; } 28032 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28034 $as_echo "$BOOT_JDK_VERSION" >&6; } 28035 fi # end check jdk version 28036 fi # end check javac 28037 fi # end check java 28038 fi # end check boot jdk found 28039 fi 28040 28041 done 28042 fi 28043 28044 28045 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28046 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28047 # Do we have a bin/java? 28048 if test ! -x "$BOOT_JDK/bin/java"; then 28049 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28050 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28051 BOOT_JDK_FOUND=no 28052 else 28053 # Do we have a bin/javac? 28054 if test ! -x "$BOOT_JDK/bin/javac"; then 28055 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28056 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28057 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28058 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28059 BOOT_JDK_FOUND=no 28060 else 28061 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28062 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 28063 28064 # Extra M4 quote needed to protect [] in grep expression. 28065 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28066 if test "x$FOUND_CORRECT_VERSION" = x; then 28067 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28068 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28069 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28070 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28071 BOOT_JDK_FOUND=no 28072 else 28073 # We're done! :-) 28074 BOOT_JDK_FOUND=yes 28075 28076 # Only process if variable expands to non-empty 28077 28078 if test "x$BOOT_JDK" != x; then 28079 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28080 28081 # Input might be given as Windows format, start by converting to 28082 # unix format. 28083 path="$BOOT_JDK" 28084 new_path=`$CYGPATH -u "$path"` 28085 28086 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28087 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28088 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28089 # "foo.exe" is OK but "foo" is an error. 28090 # 28091 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28092 # It is also a way to make sure we got the proper file name for the real test later on. 28093 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28094 if test "x$test_shortpath" = x; then 28095 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28096 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28097 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28098 fi 28099 28100 # Call helper function which possibly converts this using DOS-style short mode. 28101 # If so, the updated path is stored in $new_path. 28102 28103 input_path="$new_path" 28104 # Check if we need to convert this using DOS-style short mode. If the path 28105 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28106 # take no chances and rewrite it. 28107 # Note: m4 eats our [], so we need to use [ and ] instead. 28108 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28109 if test "x$has_forbidden_chars" != x; then 28110 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28111 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28112 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28113 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28114 # Going to short mode and back again did indeed matter. Since short mode is 28115 # case insensitive, let's make it lowercase to improve readability. 28116 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28117 # Now convert it back to Unix-style (cygpath) 28118 input_path=`$CYGPATH -u "$shortmode_path"` 28119 new_path="$input_path" 28120 fi 28121 fi 28122 28123 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28124 if test "x$test_cygdrive_prefix" = x; then 28125 # As a simple fix, exclude /usr/bin since it's not a real path. 28126 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28127 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28128 # a path prefixed by /cygdrive for fixpath to work. 28129 new_path="$CYGWIN_ROOT_PATH$input_path" 28130 fi 28131 fi 28132 28133 28134 if test "x$path" != "x$new_path"; then 28135 BOOT_JDK="$new_path" 28136 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28137 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28138 fi 28139 28140 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28141 28142 path="$BOOT_JDK" 28143 has_colon=`$ECHO $path | $GREP ^.:` 28144 new_path="$path" 28145 if test "x$has_colon" = x; then 28146 # Not in mixed or Windows style, start by that. 28147 new_path=`cmd //c echo $path` 28148 fi 28149 28150 28151 input_path="$new_path" 28152 # Check if we need to convert this using DOS-style short mode. If the path 28153 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28154 # take no chances and rewrite it. 28155 # Note: m4 eats our [], so we need to use [ and ] instead. 28156 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28157 if test "x$has_forbidden_chars" != x; then 28158 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28159 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28160 fi 28161 28162 28163 windows_path="$new_path" 28164 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28165 unix_path=`$CYGPATH -u "$windows_path"` 28166 new_path="$unix_path" 28167 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28168 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28169 new_path="$unix_path" 28170 fi 28171 28172 if test "x$path" != "x$new_path"; then 28173 BOOT_JDK="$new_path" 28174 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28175 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28176 fi 28177 28178 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28179 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28180 28181 else 28182 # We're on a unix platform. Hooray! :) 28183 path="$BOOT_JDK" 28184 has_space=`$ECHO "$path" | $GREP " "` 28185 if test "x$has_space" != x; then 28186 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28187 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28188 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28189 fi 28190 28191 # Use eval to expand a potential ~ 28192 eval path="$path" 28193 if test ! -f "$path" && test ! -d "$path"; then 28194 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28195 fi 28196 28197 if test -d "$path"; then 28198 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28199 else 28200 dir="`$DIRNAME "$path"`" 28201 base="`$BASENAME "$path"`" 28202 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28203 fi 28204 fi 28205 fi 28206 28207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28208 $as_echo_n "checking for Boot JDK... " >&6; } 28209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28210 $as_echo "$BOOT_JDK" >&6; } 28211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28212 $as_echo_n "checking Boot JDK version... " >&6; } 28213 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28215 $as_echo "$BOOT_JDK_VERSION" >&6; } 28216 fi # end check jdk version 28217 fi # end check javac 28218 fi # end check java 28219 fi # end check boot jdk found 28220 fi 28221 28222 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 28223 28224 if test "x$BOOT_JDK_FOUND" = xno; then 28225 # Now execute the test 28226 28227 BOOT_JDK_PREFIX="/usr/lib/jvm" 28228 BOOT_JDK_SUFFIX="" 28229 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28230 if test "x$ALL_JDKS_FOUND" != x; then 28231 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28232 28233 if test "x$BOOT_JDK_FOUND" = xno; then 28234 # Now execute the test 28235 28236 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28237 if test -d "$BOOT_JDK"; then 28238 BOOT_JDK_FOUND=maybe 28239 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28240 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28241 fi 28242 28243 28244 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28245 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28246 # Do we have a bin/java? 28247 if test ! -x "$BOOT_JDK/bin/java"; then 28248 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28249 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28250 BOOT_JDK_FOUND=no 28251 else 28252 # Do we have a bin/javac? 28253 if test ! -x "$BOOT_JDK/bin/javac"; then 28254 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28255 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28256 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28257 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28258 BOOT_JDK_FOUND=no 28259 else 28260 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28261 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 28262 28263 # Extra M4 quote needed to protect [] in grep expression. 28264 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28265 if test "x$FOUND_CORRECT_VERSION" = x; then 28266 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28267 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28268 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28269 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28270 BOOT_JDK_FOUND=no 28271 else 28272 # We're done! :-) 28273 BOOT_JDK_FOUND=yes 28274 28275 # Only process if variable expands to non-empty 28276 28277 if test "x$BOOT_JDK" != x; then 28278 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28279 28280 # Input might be given as Windows format, start by converting to 28281 # unix format. 28282 path="$BOOT_JDK" 28283 new_path=`$CYGPATH -u "$path"` 28284 28285 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28286 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28287 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28288 # "foo.exe" is OK but "foo" is an error. 28289 # 28290 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28291 # It is also a way to make sure we got the proper file name for the real test later on. 28292 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28293 if test "x$test_shortpath" = x; then 28294 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28295 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28296 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28297 fi 28298 28299 # Call helper function which possibly converts this using DOS-style short mode. 28300 # If so, the updated path is stored in $new_path. 28301 28302 input_path="$new_path" 28303 # Check if we need to convert this using DOS-style short mode. If the path 28304 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28305 # take no chances and rewrite it. 28306 # Note: m4 eats our [], so we need to use [ and ] instead. 28307 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28308 if test "x$has_forbidden_chars" != x; then 28309 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28310 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28311 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28312 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28313 # Going to short mode and back again did indeed matter. Since short mode is 28314 # case insensitive, let's make it lowercase to improve readability. 28315 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28316 # Now convert it back to Unix-style (cygpath) 28317 input_path=`$CYGPATH -u "$shortmode_path"` 28318 new_path="$input_path" 28319 fi 28320 fi 28321 28322 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28323 if test "x$test_cygdrive_prefix" = x; then 28324 # As a simple fix, exclude /usr/bin since it's not a real path. 28325 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28326 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28327 # a path prefixed by /cygdrive for fixpath to work. 28328 new_path="$CYGWIN_ROOT_PATH$input_path" 28329 fi 28330 fi 28331 28332 28333 if test "x$path" != "x$new_path"; then 28334 BOOT_JDK="$new_path" 28335 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28336 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28337 fi 28338 28339 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28340 28341 path="$BOOT_JDK" 28342 has_colon=`$ECHO $path | $GREP ^.:` 28343 new_path="$path" 28344 if test "x$has_colon" = x; then 28345 # Not in mixed or Windows style, start by that. 28346 new_path=`cmd //c echo $path` 28347 fi 28348 28349 28350 input_path="$new_path" 28351 # Check if we need to convert this using DOS-style short mode. If the path 28352 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28353 # take no chances and rewrite it. 28354 # Note: m4 eats our [], so we need to use [ and ] instead. 28355 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28356 if test "x$has_forbidden_chars" != x; then 28357 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28358 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28359 fi 28360 28361 28362 windows_path="$new_path" 28363 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28364 unix_path=`$CYGPATH -u "$windows_path"` 28365 new_path="$unix_path" 28366 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28367 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28368 new_path="$unix_path" 28369 fi 28370 28371 if test "x$path" != "x$new_path"; then 28372 BOOT_JDK="$new_path" 28373 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28374 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28375 fi 28376 28377 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28378 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28379 28380 else 28381 # We're on a unix platform. Hooray! :) 28382 path="$BOOT_JDK" 28383 has_space=`$ECHO "$path" | $GREP " "` 28384 if test "x$has_space" != x; then 28385 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28386 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28387 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28388 fi 28389 28390 # Use eval to expand a potential ~ 28391 eval path="$path" 28392 if test ! -f "$path" && test ! -d "$path"; then 28393 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28394 fi 28395 28396 if test -d "$path"; then 28397 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28398 else 28399 dir="`$DIRNAME "$path"`" 28400 base="`$BASENAME "$path"`" 28401 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28402 fi 28403 fi 28404 fi 28405 28406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28407 $as_echo_n "checking for Boot JDK... " >&6; } 28408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28409 $as_echo "$BOOT_JDK" >&6; } 28410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28411 $as_echo_n "checking Boot JDK version... " >&6; } 28412 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28414 $as_echo "$BOOT_JDK_VERSION" >&6; } 28415 fi # end check jdk version 28416 fi # end check javac 28417 fi # end check java 28418 fi # end check boot jdk found 28419 fi 28420 28421 done 28422 fi 28423 28424 28425 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28426 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28427 # Do we have a bin/java? 28428 if test ! -x "$BOOT_JDK/bin/java"; then 28429 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28430 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28431 BOOT_JDK_FOUND=no 28432 else 28433 # Do we have a bin/javac? 28434 if test ! -x "$BOOT_JDK/bin/javac"; then 28435 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28436 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28437 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28438 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28439 BOOT_JDK_FOUND=no 28440 else 28441 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28442 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 28443 28444 # Extra M4 quote needed to protect [] in grep expression. 28445 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28446 if test "x$FOUND_CORRECT_VERSION" = x; then 28447 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28448 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28449 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28450 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28451 BOOT_JDK_FOUND=no 28452 else 28453 # We're done! :-) 28454 BOOT_JDK_FOUND=yes 28455 28456 # Only process if variable expands to non-empty 28457 28458 if test "x$BOOT_JDK" != x; then 28459 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28460 28461 # Input might be given as Windows format, start by converting to 28462 # unix format. 28463 path="$BOOT_JDK" 28464 new_path=`$CYGPATH -u "$path"` 28465 28466 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28467 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28468 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28469 # "foo.exe" is OK but "foo" is an error. 28470 # 28471 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28472 # It is also a way to make sure we got the proper file name for the real test later on. 28473 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28474 if test "x$test_shortpath" = x; then 28475 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28476 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28477 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28478 fi 28479 28480 # Call helper function which possibly converts this using DOS-style short mode. 28481 # If so, the updated path is stored in $new_path. 28482 28483 input_path="$new_path" 28484 # Check if we need to convert this using DOS-style short mode. If the path 28485 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28486 # take no chances and rewrite it. 28487 # Note: m4 eats our [], so we need to use [ and ] instead. 28488 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28489 if test "x$has_forbidden_chars" != x; then 28490 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28491 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28492 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28493 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28494 # Going to short mode and back again did indeed matter. Since short mode is 28495 # case insensitive, let's make it lowercase to improve readability. 28496 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28497 # Now convert it back to Unix-style (cygpath) 28498 input_path=`$CYGPATH -u "$shortmode_path"` 28499 new_path="$input_path" 28500 fi 28501 fi 28502 28503 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28504 if test "x$test_cygdrive_prefix" = x; then 28505 # As a simple fix, exclude /usr/bin since it's not a real path. 28506 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28507 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28508 # a path prefixed by /cygdrive for fixpath to work. 28509 new_path="$CYGWIN_ROOT_PATH$input_path" 28510 fi 28511 fi 28512 28513 28514 if test "x$path" != "x$new_path"; then 28515 BOOT_JDK="$new_path" 28516 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28517 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28518 fi 28519 28520 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28521 28522 path="$BOOT_JDK" 28523 has_colon=`$ECHO $path | $GREP ^.:` 28524 new_path="$path" 28525 if test "x$has_colon" = x; then 28526 # Not in mixed or Windows style, start by that. 28527 new_path=`cmd //c echo $path` 28528 fi 28529 28530 28531 input_path="$new_path" 28532 # Check if we need to convert this using DOS-style short mode. If the path 28533 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28534 # take no chances and rewrite it. 28535 # Note: m4 eats our [], so we need to use [ and ] instead. 28536 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28537 if test "x$has_forbidden_chars" != x; then 28538 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28539 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28540 fi 28541 28542 28543 windows_path="$new_path" 28544 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28545 unix_path=`$CYGPATH -u "$windows_path"` 28546 new_path="$unix_path" 28547 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28548 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28549 new_path="$unix_path" 28550 fi 28551 28552 if test "x$path" != "x$new_path"; then 28553 BOOT_JDK="$new_path" 28554 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28555 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28556 fi 28557 28558 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28559 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28560 28561 else 28562 # We're on a unix platform. Hooray! :) 28563 path="$BOOT_JDK" 28564 has_space=`$ECHO "$path" | $GREP " "` 28565 if test "x$has_space" != x; then 28566 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28567 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28568 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28569 fi 28570 28571 # Use eval to expand a potential ~ 28572 eval path="$path" 28573 if test ! -f "$path" && test ! -d "$path"; then 28574 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28575 fi 28576 28577 if test -d "$path"; then 28578 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28579 else 28580 dir="`$DIRNAME "$path"`" 28581 base="`$BASENAME "$path"`" 28582 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28583 fi 28584 fi 28585 fi 28586 28587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28588 $as_echo_n "checking for Boot JDK... " >&6; } 28589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28590 $as_echo "$BOOT_JDK" >&6; } 28591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28592 $as_echo_n "checking Boot JDK version... " >&6; } 28593 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28595 $as_echo "$BOOT_JDK_VERSION" >&6; } 28596 fi # end check jdk version 28597 fi # end check javac 28598 fi # end check java 28599 fi # end check boot jdk found 28600 fi 28601 28602 fi 28603 28604 28605 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28606 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28607 # Do we have a bin/java? 28608 if test ! -x "$BOOT_JDK/bin/java"; then 28609 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28610 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28611 BOOT_JDK_FOUND=no 28612 else 28613 # Do we have a bin/javac? 28614 if test ! -x "$BOOT_JDK/bin/javac"; then 28615 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28616 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28617 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28618 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28619 BOOT_JDK_FOUND=no 28620 else 28621 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28622 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 28623 28624 # Extra M4 quote needed to protect [] in grep expression. 28625 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28626 if test "x$FOUND_CORRECT_VERSION" = x; then 28627 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28628 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28629 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28630 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28631 BOOT_JDK_FOUND=no 28632 else 28633 # We're done! :-) 28634 BOOT_JDK_FOUND=yes 28635 28636 # Only process if variable expands to non-empty 28637 28638 if test "x$BOOT_JDK" != x; then 28639 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28640 28641 # Input might be given as Windows format, start by converting to 28642 # unix format. 28643 path="$BOOT_JDK" 28644 new_path=`$CYGPATH -u "$path"` 28645 28646 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28647 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28648 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28649 # "foo.exe" is OK but "foo" is an error. 28650 # 28651 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28652 # It is also a way to make sure we got the proper file name for the real test later on. 28653 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28654 if test "x$test_shortpath" = x; then 28655 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28656 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28657 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28658 fi 28659 28660 # Call helper function which possibly converts this using DOS-style short mode. 28661 # If so, the updated path is stored in $new_path. 28662 28663 input_path="$new_path" 28664 # Check if we need to convert this using DOS-style short mode. If the path 28665 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28666 # take no chances and rewrite it. 28667 # Note: m4 eats our [], so we need to use [ and ] instead. 28668 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28669 if test "x$has_forbidden_chars" != x; then 28670 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28671 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28672 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28673 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28674 # Going to short mode and back again did indeed matter. Since short mode is 28675 # case insensitive, let's make it lowercase to improve readability. 28676 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28677 # Now convert it back to Unix-style (cygpath) 28678 input_path=`$CYGPATH -u "$shortmode_path"` 28679 new_path="$input_path" 28680 fi 28681 fi 28682 28683 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28684 if test "x$test_cygdrive_prefix" = x; then 28685 # As a simple fix, exclude /usr/bin since it's not a real path. 28686 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28687 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28688 # a path prefixed by /cygdrive for fixpath to work. 28689 new_path="$CYGWIN_ROOT_PATH$input_path" 28690 fi 28691 fi 28692 28693 28694 if test "x$path" != "x$new_path"; then 28695 BOOT_JDK="$new_path" 28696 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28697 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28698 fi 28699 28700 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28701 28702 path="$BOOT_JDK" 28703 has_colon=`$ECHO $path | $GREP ^.:` 28704 new_path="$path" 28705 if test "x$has_colon" = x; then 28706 # Not in mixed or Windows style, start by that. 28707 new_path=`cmd //c echo $path` 28708 fi 28709 28710 28711 input_path="$new_path" 28712 # Check if we need to convert this using DOS-style short mode. If the path 28713 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28714 # take no chances and rewrite it. 28715 # Note: m4 eats our [], so we need to use [ and ] instead. 28716 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28717 if test "x$has_forbidden_chars" != x; then 28718 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28719 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28720 fi 28721 28722 28723 windows_path="$new_path" 28724 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28725 unix_path=`$CYGPATH -u "$windows_path"` 28726 new_path="$unix_path" 28727 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28728 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28729 new_path="$unix_path" 28730 fi 28731 28732 if test "x$path" != "x$new_path"; then 28733 BOOT_JDK="$new_path" 28734 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28735 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28736 fi 28737 28738 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28739 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28740 28741 else 28742 # We're on a unix platform. Hooray! :) 28743 path="$BOOT_JDK" 28744 has_space=`$ECHO "$path" | $GREP " "` 28745 if test "x$has_space" != x; then 28746 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28747 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28748 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28749 fi 28750 28751 # Use eval to expand a potential ~ 28752 eval path="$path" 28753 if test ! -f "$path" && test ! -d "$path"; then 28754 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28755 fi 28756 28757 if test -d "$path"; then 28758 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28759 else 28760 dir="`$DIRNAME "$path"`" 28761 base="`$BASENAME "$path"`" 28762 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28763 fi 28764 fi 28765 fi 28766 28767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28768 $as_echo_n "checking for Boot JDK... " >&6; } 28769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28770 $as_echo "$BOOT_JDK" >&6; } 28771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28772 $as_echo_n "checking Boot JDK version... " >&6; } 28773 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28775 $as_echo "$BOOT_JDK_VERSION" >&6; } 28776 fi # end check jdk version 28777 fi # end check javac 28778 fi # end check java 28779 fi # end check boot jdk found 28780 fi 28781 28782 28783 # If we haven't found anything yet, we've truly lost. Give up. 28784 if test "x$BOOT_JDK_FOUND" = xno; then 28785 28786 # Print a helpful message on how to acquire the necessary build dependency. 28787 # openjdk is the help tag: freetype, cups, alsa etc 28788 MISSING_DEPENDENCY=openjdk 28789 28790 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28791 cygwin_help $MISSING_DEPENDENCY 28792 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28793 msys_help $MISSING_DEPENDENCY 28794 else 28795 PKGHANDLER_COMMAND= 28796 28797 case $PKGHANDLER in 28798 apt-get) 28799 apt_help $MISSING_DEPENDENCY ;; 28800 yum) 28801 yum_help $MISSING_DEPENDENCY ;; 28802 port) 28803 port_help $MISSING_DEPENDENCY ;; 28804 pkgutil) 28805 pkgutil_help $MISSING_DEPENDENCY ;; 28806 pkgadd) 28807 pkgadd_help $MISSING_DEPENDENCY ;; 28808 esac 28809 28810 if test "x$PKGHANDLER_COMMAND" != x; then 28811 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 28812 fi 28813 fi 28814 28815 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 28816 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 28817 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 28818 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 28819 as_fn_error $? "Cannot continue" "$LINENO" 5 28820 fi 28821 28822 28823 28824 # Setup tools from the Boot JDK. 28825 28826 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 28827 28828 # Publish this variable in the help. 28829 28830 28831 if [ -z "${JAVA+x}" ]; then 28832 # The variable is not set by user, try to locate tool using the code snippet 28833 28834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 28835 $as_echo_n "checking for java in Boot JDK... " >&6; } 28836 JAVA=$BOOT_JDK/bin/java 28837 if test ! -x $JAVA; then 28838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 28839 $as_echo "not found" >&6; } 28840 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 28841 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 28842 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 28843 fi 28844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 28845 $as_echo "ok" >&6; } 28846 28847 28848 else 28849 # The variable is set, but is it from the command line or the environment? 28850 28851 # Try to remove the string !JAVA! from our list. 28852 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 28853 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 28854 # If it failed, the variable was not from the command line. Ignore it, 28855 # but warn the user (except for BASH, which is always set by the calling BASH). 28856 if test "xJAVA" != xBASH; then 28857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 28858 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 28859 fi 28860 # Try to locate tool using the code snippet 28861 28862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 28863 $as_echo_n "checking for java in Boot JDK... " >&6; } 28864 JAVA=$BOOT_JDK/bin/java 28865 if test ! -x $JAVA; then 28866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 28867 $as_echo "not found" >&6; } 28868 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 28869 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 28870 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 28871 fi 28872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 28873 $as_echo "ok" >&6; } 28874 28875 28876 else 28877 # If it succeeded, then it was overridden by the user. We will use it 28878 # for the tool. 28879 28880 # First remove it from the list of overridden variables, so we can test 28881 # for unknown variables in the end. 28882 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 28883 28884 # Check if we try to supply an empty value 28885 if test "x$JAVA" = x; then 28886 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVA= (no value)" >&5 28887 $as_echo "$as_me: Setting user supplied tool JAVA= (no value)" >&6;} 28888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 28889 $as_echo_n "checking for JAVA... " >&6; } 28890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 28891 $as_echo "disabled" >&6; } 28892 else 28893 # Check if the provided tool contains a complete path. 28894 tool_specified="$JAVA" 28895 tool_basename="${tool_specified##*/}" 28896 if test "x$tool_basename" = "x$tool_specified"; then 28897 # A command without a complete path is provided, search $PATH. 28898 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 28899 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 28900 # Extract the first word of "$tool_basename", so it can be a program name with args. 28901 set dummy $tool_basename; ac_word=$2 28902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28903 $as_echo_n "checking for $ac_word... " >&6; } 28904 if ${ac_cv_path_JAVA+:} false; then : 28905 $as_echo_n "(cached) " >&6 28906 else 28907 case $JAVA in 28908 [\\/]* | ?:[\\/]*) 28909 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 28910 ;; 28911 *) 28912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28913 for as_dir in $PATH 28914 do 28915 IFS=$as_save_IFS 28916 test -z "$as_dir" && as_dir=. 28917 for ac_exec_ext in '' $ac_executable_extensions; do 28918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28919 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 28920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28921 break 2 28922 fi 28923 done 28924 done 28925 IFS=$as_save_IFS 28926 28927 ;; 28928 esac 28929 fi 28930 JAVA=$ac_cv_path_JAVA 28931 if test -n "$JAVA"; then 28932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 28933 $as_echo "$JAVA" >&6; } 28934 else 28935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28936 $as_echo "no" >&6; } 28937 fi 28938 28939 28940 if test "x$JAVA" = x; then 28941 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 28942 fi 28943 else 28944 # Otherwise we believe it is a complete path. Use it as it is. 28945 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 28946 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 28947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 28948 $as_echo_n "checking for JAVA... " >&6; } 28949 if test ! -x "$tool_specified"; then 28950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 28951 $as_echo "not found" >&6; } 28952 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 28953 fi 28954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 28955 $as_echo "$tool_specified" >&6; } 28956 fi 28957 fi 28958 fi 28959 28960 fi 28961 28962 28963 28964 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 28965 28966 # Publish this variable in the help. 28967 28968 28969 if [ -z "${JAVAC+x}" ]; then 28970 # The variable is not set by user, try to locate tool using the code snippet 28971 28972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 28973 $as_echo_n "checking for javac in Boot JDK... " >&6; } 28974 JAVAC=$BOOT_JDK/bin/javac 28975 if test ! -x $JAVAC; then 28976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 28977 $as_echo "not found" >&6; } 28978 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 28979 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 28980 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 28981 fi 28982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 28983 $as_echo "ok" >&6; } 28984 28985 28986 else 28987 # The variable is set, but is it from the command line or the environment? 28988 28989 # Try to remove the string !JAVAC! from our list. 28990 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 28991 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 28992 # If it failed, the variable was not from the command line. Ignore it, 28993 # but warn the user (except for BASH, which is always set by the calling BASH). 28994 if test "xJAVAC" != xBASH; then 28995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 28996 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 28997 fi 28998 # Try to locate tool using the code snippet 28999 29000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 29001 $as_echo_n "checking for javac in Boot JDK... " >&6; } 29002 JAVAC=$BOOT_JDK/bin/javac 29003 if test ! -x $JAVAC; then 29004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29005 $as_echo "not found" >&6; } 29006 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29007 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29008 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 29009 fi 29010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29011 $as_echo "ok" >&6; } 29012 29013 29014 else 29015 # If it succeeded, then it was overridden by the user. We will use it 29016 # for the tool. 29017 29018 # First remove it from the list of overridden variables, so we can test 29019 # for unknown variables in the end. 29020 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 29021 29022 # Check if we try to supply an empty value 29023 if test "x$JAVAC" = x; then 29024 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAC= (no value)" >&5 29025 $as_echo "$as_me: Setting user supplied tool JAVAC= (no value)" >&6;} 29026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 29027 $as_echo_n "checking for JAVAC... " >&6; } 29028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 29029 $as_echo "disabled" >&6; } 29030 else 29031 # Check if the provided tool contains a complete path. 29032 tool_specified="$JAVAC" 29033 tool_basename="${tool_specified##*/}" 29034 if test "x$tool_basename" = "x$tool_specified"; then 29035 # A command without a complete path is provided, search $PATH. 29036 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 29037 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 29038 # Extract the first word of "$tool_basename", so it can be a program name with args. 29039 set dummy $tool_basename; ac_word=$2 29040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29041 $as_echo_n "checking for $ac_word... " >&6; } 29042 if ${ac_cv_path_JAVAC+:} false; then : 29043 $as_echo_n "(cached) " >&6 29044 else 29045 case $JAVAC in 29046 [\\/]* | ?:[\\/]*) 29047 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 29048 ;; 29049 *) 29050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29051 for as_dir in $PATH 29052 do 29053 IFS=$as_save_IFS 29054 test -z "$as_dir" && as_dir=. 29055 for ac_exec_ext in '' $ac_executable_extensions; do 29056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29057 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 29058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29059 break 2 29060 fi 29061 done 29062 done 29063 IFS=$as_save_IFS 29064 29065 ;; 29066 esac 29067 fi 29068 JAVAC=$ac_cv_path_JAVAC 29069 if test -n "$JAVAC"; then 29070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 29071 $as_echo "$JAVAC" >&6; } 29072 else 29073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29074 $as_echo "no" >&6; } 29075 fi 29076 29077 29078 if test "x$JAVAC" = x; then 29079 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 29080 fi 29081 else 29082 # Otherwise we believe it is a complete path. Use it as it is. 29083 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 29084 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 29085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 29086 $as_echo_n "checking for JAVAC... " >&6; } 29087 if test ! -x "$tool_specified"; then 29088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29089 $as_echo "not found" >&6; } 29090 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 29091 fi 29092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 29093 $as_echo "$tool_specified" >&6; } 29094 fi 29095 fi 29096 fi 29097 29098 fi 29099 29100 29101 29102 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 29103 29104 # Publish this variable in the help. 29105 29106 29107 if [ -z "${JAVAH+x}" ]; then 29108 # The variable is not set by user, try to locate tool using the code snippet 29109 29110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 29111 $as_echo_n "checking for javah in Boot JDK... " >&6; } 29112 JAVAH=$BOOT_JDK/bin/javah 29113 if test ! -x $JAVAH; then 29114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29115 $as_echo "not found" >&6; } 29116 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29117 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29118 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 29119 fi 29120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29121 $as_echo "ok" >&6; } 29122 29123 29124 else 29125 # The variable is set, but is it from the command line or the environment? 29126 29127 # Try to remove the string !JAVAH! from our list. 29128 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 29129 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 29130 # If it failed, the variable was not from the command line. Ignore it, 29131 # but warn the user (except for BASH, which is always set by the calling BASH). 29132 if test "xJAVAH" != xBASH; then 29133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 29134 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 29135 fi 29136 # Try to locate tool using the code snippet 29137 29138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 29139 $as_echo_n "checking for javah in Boot JDK... " >&6; } 29140 JAVAH=$BOOT_JDK/bin/javah 29141 if test ! -x $JAVAH; then 29142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29143 $as_echo "not found" >&6; } 29144 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29145 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29146 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 29147 fi 29148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29149 $as_echo "ok" >&6; } 29150 29151 29152 else 29153 # If it succeeded, then it was overridden by the user. We will use it 29154 # for the tool. 29155 29156 # First remove it from the list of overridden variables, so we can test 29157 # for unknown variables in the end. 29158 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 29159 29160 # Check if we try to supply an empty value 29161 if test "x$JAVAH" = x; then 29162 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAH= (no value)" >&5 29163 $as_echo "$as_me: Setting user supplied tool JAVAH= (no value)" >&6;} 29164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 29165 $as_echo_n "checking for JAVAH... " >&6; } 29166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 29167 $as_echo "disabled" >&6; } 29168 else 29169 # Check if the provided tool contains a complete path. 29170 tool_specified="$JAVAH" 29171 tool_basename="${tool_specified##*/}" 29172 if test "x$tool_basename" = "x$tool_specified"; then 29173 # A command without a complete path is provided, search $PATH. 29174 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 29175 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 29176 # Extract the first word of "$tool_basename", so it can be a program name with args. 29177 set dummy $tool_basename; ac_word=$2 29178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29179 $as_echo_n "checking for $ac_word... " >&6; } 29180 if ${ac_cv_path_JAVAH+:} false; then : 29181 $as_echo_n "(cached) " >&6 29182 else 29183 case $JAVAH in 29184 [\\/]* | ?:[\\/]*) 29185 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 29186 ;; 29187 *) 29188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29189 for as_dir in $PATH 29190 do 29191 IFS=$as_save_IFS 29192 test -z "$as_dir" && as_dir=. 29193 for ac_exec_ext in '' $ac_executable_extensions; do 29194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29195 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 29196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29197 break 2 29198 fi 29199 done 29200 done 29201 IFS=$as_save_IFS 29202 29203 ;; 29204 esac 29205 fi 29206 JAVAH=$ac_cv_path_JAVAH 29207 if test -n "$JAVAH"; then 29208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 29209 $as_echo "$JAVAH" >&6; } 29210 else 29211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29212 $as_echo "no" >&6; } 29213 fi 29214 29215 29216 if test "x$JAVAH" = x; then 29217 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 29218 fi 29219 else 29220 # Otherwise we believe it is a complete path. Use it as it is. 29221 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 29222 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 29223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 29224 $as_echo_n "checking for JAVAH... " >&6; } 29225 if test ! -x "$tool_specified"; then 29226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29227 $as_echo "not found" >&6; } 29228 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 29229 fi 29230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 29231 $as_echo "$tool_specified" >&6; } 29232 fi 29233 fi 29234 fi 29235 29236 fi 29237 29238 29239 29240 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 29241 29242 # Publish this variable in the help. 29243 29244 29245 if [ -z "${JAR+x}" ]; then 29246 # The variable is not set by user, try to locate tool using the code snippet 29247 29248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 29249 $as_echo_n "checking for jar in Boot JDK... " >&6; } 29250 JAR=$BOOT_JDK/bin/jar 29251 if test ! -x $JAR; then 29252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29253 $as_echo "not found" >&6; } 29254 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29255 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29256 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 29257 fi 29258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29259 $as_echo "ok" >&6; } 29260 29261 29262 else 29263 # The variable is set, but is it from the command line or the environment? 29264 29265 # Try to remove the string !JAR! from our list. 29266 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 29267 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 29268 # If it failed, the variable was not from the command line. Ignore it, 29269 # but warn the user (except for BASH, which is always set by the calling BASH). 29270 if test "xJAR" != xBASH; then 29271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 29272 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 29273 fi 29274 # Try to locate tool using the code snippet 29275 29276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 29277 $as_echo_n "checking for jar in Boot JDK... " >&6; } 29278 JAR=$BOOT_JDK/bin/jar 29279 if test ! -x $JAR; then 29280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29281 $as_echo "not found" >&6; } 29282 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29283 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29284 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 29285 fi 29286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29287 $as_echo "ok" >&6; } 29288 29289 29290 else 29291 # If it succeeded, then it was overridden by the user. We will use it 29292 # for the tool. 29293 29294 # First remove it from the list of overridden variables, so we can test 29295 # for unknown variables in the end. 29296 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 29297 29298 # Check if we try to supply an empty value 29299 if test "x$JAR" = x; then 29300 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAR= (no value)" >&5 29301 $as_echo "$as_me: Setting user supplied tool JAR= (no value)" >&6;} 29302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 29303 $as_echo_n "checking for JAR... " >&6; } 29304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 29305 $as_echo "disabled" >&6; } 29306 else 29307 # Check if the provided tool contains a complete path. 29308 tool_specified="$JAR" 29309 tool_basename="${tool_specified##*/}" 29310 if test "x$tool_basename" = "x$tool_specified"; then 29311 # A command without a complete path is provided, search $PATH. 29312 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 29313 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 29314 # Extract the first word of "$tool_basename", so it can be a program name with args. 29315 set dummy $tool_basename; ac_word=$2 29316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29317 $as_echo_n "checking for $ac_word... " >&6; } 29318 if ${ac_cv_path_JAR+:} false; then : 29319 $as_echo_n "(cached) " >&6 29320 else 29321 case $JAR in 29322 [\\/]* | ?:[\\/]*) 29323 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 29324 ;; 29325 *) 29326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29327 for as_dir in $PATH 29328 do 29329 IFS=$as_save_IFS 29330 test -z "$as_dir" && as_dir=. 29331 for ac_exec_ext in '' $ac_executable_extensions; do 29332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29333 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 29334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29335 break 2 29336 fi 29337 done 29338 done 29339 IFS=$as_save_IFS 29340 29341 ;; 29342 esac 29343 fi 29344 JAR=$ac_cv_path_JAR 29345 if test -n "$JAR"; then 29346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 29347 $as_echo "$JAR" >&6; } 29348 else 29349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29350 $as_echo "no" >&6; } 29351 fi 29352 29353 29354 if test "x$JAR" = x; then 29355 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 29356 fi 29357 else 29358 # Otherwise we believe it is a complete path. Use it as it is. 29359 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 29360 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 29361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 29362 $as_echo_n "checking for JAR... " >&6; } 29363 if test ! -x "$tool_specified"; then 29364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29365 $as_echo "not found" >&6; } 29366 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 29367 fi 29368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 29369 $as_echo "$tool_specified" >&6; } 29370 fi 29371 fi 29372 fi 29373 29374 fi 29375 29376 29377 29378 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 29379 29380 # Publish this variable in the help. 29381 29382 29383 if [ -z "${JARSIGNER+x}" ]; then 29384 # The variable is not set by user, try to locate tool using the code snippet 29385 29386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 29387 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 29388 JARSIGNER=$BOOT_JDK/bin/jarsigner 29389 if test ! -x $JARSIGNER; then 29390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29391 $as_echo "not found" >&6; } 29392 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29393 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29394 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 29395 fi 29396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29397 $as_echo "ok" >&6; } 29398 29399 29400 else 29401 # The variable is set, but is it from the command line or the environment? 29402 29403 # Try to remove the string !JARSIGNER! from our list. 29404 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 29405 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 29406 # If it failed, the variable was not from the command line. Ignore it, 29407 # but warn the user (except for BASH, which is always set by the calling BASH). 29408 if test "xJARSIGNER" != xBASH; then 29409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 29410 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 29411 fi 29412 # Try to locate tool using the code snippet 29413 29414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 29415 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 29416 JARSIGNER=$BOOT_JDK/bin/jarsigner 29417 if test ! -x $JARSIGNER; then 29418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29419 $as_echo "not found" >&6; } 29420 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29421 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29422 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 29423 fi 29424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29425 $as_echo "ok" >&6; } 29426 29427 29428 else 29429 # If it succeeded, then it was overridden by the user. We will use it 29430 # for the tool. 29431 29432 # First remove it from the list of overridden variables, so we can test 29433 # for unknown variables in the end. 29434 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 29435 29436 # Check if we try to supply an empty value 29437 if test "x$JARSIGNER" = x; then 29438 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JARSIGNER= (no value)" >&5 29439 $as_echo "$as_me: Setting user supplied tool JARSIGNER= (no value)" >&6;} 29440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 29441 $as_echo_n "checking for JARSIGNER... " >&6; } 29442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 29443 $as_echo "disabled" >&6; } 29444 else 29445 # Check if the provided tool contains a complete path. 29446 tool_specified="$JARSIGNER" 29447 tool_basename="${tool_specified##*/}" 29448 if test "x$tool_basename" = "x$tool_specified"; then 29449 # A command without a complete path is provided, search $PATH. 29450 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 29451 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 29452 # Extract the first word of "$tool_basename", so it can be a program name with args. 29453 set dummy $tool_basename; ac_word=$2 29454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29455 $as_echo_n "checking for $ac_word... " >&6; } 29456 if ${ac_cv_path_JARSIGNER+:} false; then : 29457 $as_echo_n "(cached) " >&6 29458 else 29459 case $JARSIGNER in 29460 [\\/]* | ?:[\\/]*) 29461 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 29462 ;; 29463 *) 29464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29465 for as_dir in $PATH 29466 do 29467 IFS=$as_save_IFS 29468 test -z "$as_dir" && as_dir=. 29469 for ac_exec_ext in '' $ac_executable_extensions; do 29470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29471 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 29472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29473 break 2 29474 fi 29475 done 29476 done 29477 IFS=$as_save_IFS 29478 29479 ;; 29480 esac 29481 fi 29482 JARSIGNER=$ac_cv_path_JARSIGNER 29483 if test -n "$JARSIGNER"; then 29484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 29485 $as_echo "$JARSIGNER" >&6; } 29486 else 29487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29488 $as_echo "no" >&6; } 29489 fi 29490 29491 29492 if test "x$JARSIGNER" = x; then 29493 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 29494 fi 29495 else 29496 # Otherwise we believe it is a complete path. Use it as it is. 29497 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 29498 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 29499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 29500 $as_echo_n "checking for JARSIGNER... " >&6; } 29501 if test ! -x "$tool_specified"; then 29502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29503 $as_echo "not found" >&6; } 29504 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 29505 fi 29506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 29507 $as_echo "$tool_specified" >&6; } 29508 fi 29509 fi 29510 fi 29511 29512 fi 29513 29514 29515 29516 # Finally, set some other options... 29517 29518 # When compiling code to be executed by the Boot JDK, force jdk8 compatibility. 29519 BOOT_JDK_SOURCETARGET="-source 8 -target 8" 29520 29521 29522 29523 # Check if the boot jdk is 32 or 64 bit 29524 if "$JAVA" -d64 -version > /dev/null 2>&1; then 29525 BOOT_JDK_BITS="64" 29526 else 29527 BOOT_JDK_BITS="32" 29528 fi 29529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5 29530 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; } 29531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5 29532 $as_echo "$BOOT_JDK_BITS" >&6; } 29533 29534 29535 29536 ############################################################################### 29537 # 29538 # Configure the sources to use. We can add or override individual directories. 29539 # 29540 ############################################################################### 29541 29542 29543 # Where are the sources. 29544 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 29545 CORBA_TOPDIR="$SRC_ROOT/corba" 29546 JAXP_TOPDIR="$SRC_ROOT/jaxp" 29547 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 29548 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 29549 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 29550 JDK_TOPDIR="$SRC_ROOT/jdk" 29551 29552 29553 29554 29555 29556 29557 29558 29559 29560 # This feature is no longer supported. 29561 29562 29563 29564 # Check whether --with-add-source-root was given. 29565 if test "${with_add_source_root+set}" = set; then : 29566 withval=$with_add_source_root; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-add-source-root is deprecated and will be ignored." >&5 29567 $as_echo "$as_me: WARNING: Option --with-add-source-root is deprecated and will be ignored." >&2;} 29568 fi 29569 29570 29571 29572 29573 # Check whether --with-override-source-root was given. 29574 if test "${with_override_source_root+set}" = set; then : 29575 withval=$with_override_source_root; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-source-root is deprecated and will be ignored." >&5 29576 $as_echo "$as_me: WARNING: Option --with-override-source-root is deprecated and will be ignored." >&2;} 29577 fi 29578 29579 29580 29581 29582 # Check whether --with-adds-and-overrides was given. 29583 if test "${with_adds_and_overrides+set}" = set; then : 29584 withval=$with_adds_and_overrides; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-adds-and-overrides is deprecated and will be ignored." >&5 29585 $as_echo "$as_me: WARNING: Option --with-adds-and-overrides is deprecated and will be ignored." >&2;} 29586 fi 29587 29588 29589 29590 29591 # Check whether --with-override-langtools was given. 29592 if test "${with_override_langtools+set}" = set; then : 29593 withval=$with_override_langtools; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-langtools is deprecated and will be ignored." >&5 29594 $as_echo "$as_me: WARNING: Option --with-override-langtools is deprecated and will be ignored." >&2;} 29595 fi 29596 29597 29598 29599 29600 # Check whether --with-override-corba was given. 29601 if test "${with_override_corba+set}" = set; then : 29602 withval=$with_override_corba; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-corba is deprecated and will be ignored." >&5 29603 $as_echo "$as_me: WARNING: Option --with-override-corba is deprecated and will be ignored." >&2;} 29604 fi 29605 29606 29607 29608 29609 # Check whether --with-override-jaxp was given. 29610 if test "${with_override_jaxp+set}" = set; then : 29611 withval=$with_override_jaxp; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jaxp is deprecated and will be ignored." >&5 29612 $as_echo "$as_me: WARNING: Option --with-override-jaxp is deprecated and will be ignored." >&2;} 29613 fi 29614 29615 29616 29617 29618 # Check whether --with-override-jaxws was given. 29619 if test "${with_override_jaxws+set}" = set; then : 29620 withval=$with_override_jaxws; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jaxws is deprecated and will be ignored." >&5 29621 $as_echo "$as_me: WARNING: Option --with-override-jaxws is deprecated and will be ignored." >&2;} 29622 fi 29623 29624 29625 29626 29627 # Check whether --with-override-hotspot was given. 29628 if test "${with_override_hotspot+set}" = set; then : 29629 withval=$with_override_hotspot; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-hotspot is deprecated and will be ignored." >&5 29630 $as_echo "$as_me: WARNING: Option --with-override-hotspot is deprecated and will be ignored." >&2;} 29631 fi 29632 29633 29634 29635 29636 # Check whether --with-override-nashorn was given. 29637 if test "${with_override_nashorn+set}" = set; then : 29638 withval=$with_override_nashorn; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-nashorn is deprecated and will be ignored." >&5 29639 $as_echo "$as_me: WARNING: Option --with-override-nashorn is deprecated and will be ignored." >&2;} 29640 fi 29641 29642 29643 29644 29645 # Check whether --with-override-jdk was given. 29646 if test "${with_override_jdk+set}" = set; then : 29647 withval=$with_override_jdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jdk is deprecated and will be ignored." >&5 29648 $as_echo "$as_me: WARNING: Option --with-override-jdk is deprecated and will be ignored." >&2;} 29649 fi 29650 29651 29652 29653 29654 BUILD_OUTPUT="$OUTPUT_ROOT" 29655 29656 29657 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 29658 BUILD_HOTSPOT=true 29659 29660 29661 29662 # Check whether --with-import-hotspot was given. 29663 if test "${with_import_hotspot+set}" = set; then : 29664 withval=$with_import_hotspot; 29665 fi 29666 29667 if test "x$with_import_hotspot" != x; then 29668 CURDIR="$PWD" 29669 cd "$with_import_hotspot" 29670 HOTSPOT_DIST="`pwd`" 29671 cd "$CURDIR" 29672 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 29673 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 29674 fi 29675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 29676 $as_echo_n "checking if hotspot should be imported... " >&6; } 29677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 29678 $as_echo "yes from $HOTSPOT_DIST" >&6; } 29679 BUILD_HOTSPOT=false 29680 fi 29681 29682 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 29683 29684 29685 ############################################################################### 29686 # 29687 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 29688 # native code. 29689 # 29690 ############################################################################### 29691 29692 # See if we are doing a complete static build or not 29693 29694 # Check whether --enable-static-build was given. 29695 if test "${enable_static_build+set}" = set; then : 29696 enableval=$enable_static_build; 29697 fi 29698 29699 STATIC_BUILD=false 29700 if test "x$enable_static_build" = "xyes"; then 29701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 29702 $as_echo_n "checking if static build is enabled... " >&6; } 29703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29704 $as_echo "yes" >&6; } 29705 if test "x$OPENJDK_TARGET_OS" != "xmacosx"; then 29706 as_fn_error $? "--enable-static-build is only supported for macosx builds" "$LINENO" 5 29707 fi 29708 STATIC_BUILD_CFLAGS="-DSTATIC_BUILD=1" 29709 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $STATIC_BUILD_CFLAGS" 29710 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $STATIC_BUILD_CFLAGS" 29711 CFLAGS_JDKLIB_EXTRA="$CFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 29712 CXXFLAGS_JDKLIB_EXTRA="$CXXFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 29713 STATIC_BUILD=true 29714 elif test "x$enable_static_build" = "xno"; then 29715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 29716 $as_echo_n "checking if static build is enabled... " >&6; } 29717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29718 $as_echo "no" >&6; } 29719 elif test "x$enable_static_build" != "x"; then 29720 as_fn_error $? "--enable-static-build can only be assigned \"yes\" or \"no\"" "$LINENO" 5 29721 fi 29722 29723 29724 29725 29726 # First determine the toolchain type (compiler family) 29727 29728 29729 # Check whether --with-toolchain-type was given. 29730 if test "${with_toolchain_type+set}" = set; then : 29731 withval=$with_toolchain_type; 29732 fi 29733 29734 29735 # Use indirect variable referencing 29736 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 29737 VALID_TOOLCHAINS=${!toolchain_var_name} 29738 29739 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 29740 if test -n "$XCODEBUILD"; then 29741 # On Mac OS X, default toolchain to clang after Xcode 5 29742 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 29743 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 29744 if test $? -ne 0; then 29745 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 29746 fi 29747 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 29748 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 29749 $CUT -f 1 -d .` 29750 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 29751 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 29752 if test $XCODE_MAJOR_VERSION -ge 5; then 29753 DEFAULT_TOOLCHAIN="clang" 29754 else 29755 DEFAULT_TOOLCHAIN="gcc" 29756 fi 29757 else 29758 # If Xcode is not installed, but the command line tools are 29759 # then we can't run xcodebuild. On these systems we should 29760 # default to clang 29761 DEFAULT_TOOLCHAIN="clang" 29762 fi 29763 else 29764 # First toolchain type in the list is the default 29765 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 29766 fi 29767 29768 if test "x$with_toolchain_type" = xlist; then 29769 # List all toolchains 29770 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 29771 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 29772 for toolchain in $VALID_TOOLCHAINS; do 29773 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 29774 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 29775 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 29776 done 29777 29778 exit 0 29779 elif test "x$with_toolchain_type" != x; then 29780 # User override; check that it is valid 29781 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 29782 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 29783 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 29784 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 29785 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 29786 as_fn_error $? "Cannot continue." "$LINENO" 5 29787 fi 29788 TOOLCHAIN_TYPE=$with_toolchain_type 29789 else 29790 # No flag given, use default 29791 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 29792 fi 29793 29794 29795 TOOLCHAIN_CC_BINARY_clang="clang" 29796 TOOLCHAIN_CC_BINARY_gcc="gcc" 29797 TOOLCHAIN_CC_BINARY_microsoft="cl" 29798 TOOLCHAIN_CC_BINARY_solstudio="cc" 29799 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 29800 29801 TOOLCHAIN_CXX_BINARY_clang="clang++" 29802 TOOLCHAIN_CXX_BINARY_gcc="g++" 29803 TOOLCHAIN_CXX_BINARY_microsoft="cl" 29804 TOOLCHAIN_CXX_BINARY_solstudio="CC" 29805 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 29806 29807 # Use indirect variable referencing 29808 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 29809 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 29810 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 29811 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 29812 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 29813 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 29814 29815 29816 # Define filename patterns 29817 if test "x$OPENJDK_TARGET_OS" = xwindows; then 29818 LIBRARY_PREFIX= 29819 SHARED_LIBRARY_SUFFIX='.dll' 29820 STATIC_LIBRARY_SUFFIX='.lib' 29821 SHARED_LIBRARY='$1.dll' 29822 STATIC_LIBRARY='$1.lib' 29823 OBJ_SUFFIX='.obj' 29824 EXE_SUFFIX='.exe' 29825 else 29826 LIBRARY_PREFIX=lib 29827 SHARED_LIBRARY_SUFFIX='.so' 29828 STATIC_LIBRARY_SUFFIX='.a' 29829 SHARED_LIBRARY='lib$1.so' 29830 STATIC_LIBRARY='lib$1.a' 29831 OBJ_SUFFIX='.o' 29832 EXE_SUFFIX='' 29833 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 29834 # For full static builds, we're overloading the SHARED_LIBRARY 29835 # variables in order to limit the amount of changes required. 29836 # It would be better to remove SHARED and just use LIBRARY and 29837 # LIBRARY_SUFFIX for libraries that can be built either 29838 # shared or static and use STATIC_* for libraries that are 29839 # always built statically. 29840 if test "x$STATIC_BUILD" = xtrue; then 29841 SHARED_LIBRARY='lib$1.a' 29842 SHARED_LIBRARY_SUFFIX='.a' 29843 else 29844 SHARED_LIBRARY='lib$1.dylib' 29845 SHARED_LIBRARY_SUFFIX='.dylib' 29846 fi 29847 fi 29848 fi 29849 29850 29851 29852 29853 29854 29855 29856 29857 29858 29859 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 29860 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 29861 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 29862 else 29863 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 29864 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 29865 fi 29866 29867 29868 # User supplied flags should be used when configure detects compilers 29869 29870 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 29871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 29872 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 29873 fi 29874 29875 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 29876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 29877 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 29878 fi 29879 29880 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 29881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 29882 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 29883 fi 29884 29885 29886 # Check whether --with-extra-cflags was given. 29887 if test "${with_extra_cflags+set}" = set; then : 29888 withval=$with_extra_cflags; 29889 fi 29890 29891 29892 29893 # Check whether --with-extra-cxxflags was given. 29894 if test "${with_extra_cxxflags+set}" = set; then : 29895 withval=$with_extra_cxxflags; 29896 fi 29897 29898 29899 29900 # Check whether --with-extra-ldflags was given. 29901 if test "${with_extra_ldflags+set}" = set; then : 29902 withval=$with_extra_ldflags; 29903 fi 29904 29905 29906 EXTRA_CFLAGS="$with_extra_cflags" 29907 EXTRA_CXXFLAGS="$with_extra_cxxflags" 29908 EXTRA_LDFLAGS="$with_extra_ldflags" 29909 29910 # Hotspot needs these set in their legacy form 29911 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $EXTRA_CFLAGS" 29912 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $EXTRA_CXXFLAGS" 29913 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $EXTRA_LDFLAGS" 29914 29915 29916 29917 29918 29919 # The global CFLAGS and LDLAGS variables are used by configure tests and 29920 # should include the extra parameters 29921 CFLAGS="$EXTRA_CFLAGS" 29922 CXXFLAGS="$EXTRA_CXXFLAGS" 29923 LDFLAGS="$EXTRA_LDFLAGS" 29924 CPPFLAGS="" 29925 29926 # The sysroot cflags are needed for configure to be able to run the compilers 29927 29928 if test "x$SYSROOT" != "x"; then 29929 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 29930 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 29931 # Solaris Studio does not have a concept of sysroot. Instead we must 29932 # make sure the default include and lib dirs are appended to each 29933 # compile and link command line. 29934 SYSROOT_CFLAGS="-I$SYSROOT/usr/include" 29935 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 29936 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 29937 -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 29938 fi 29939 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 29940 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 29941 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 29942 elif test "x$TOOLCHAIN_TYPE" = xclang; then 29943 SYSROOT_CFLAGS="-isysroot $SYSROOT" 29944 SYSROOT_LDFLAGS="-isysroot $SYSROOT" 29945 fi 29946 # Propagate the sysroot args to hotspot 29947 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS" 29948 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS" 29949 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS" 29950 # The global CFLAGS and LDFLAGS variables need these for configure to function 29951 CFLAGS="$CFLAGS $SYSROOT_CFLAGS" 29952 CPPFLAGS="$CPPFLAGS $SYSROOT_CFLAGS" 29953 CXXFLAGS="$CXXFLAGS $SYSROOT_CFLAGS" 29954 LDFLAGS="$LDFLAGS $SYSROOT_LDFLAGS" 29955 fi 29956 29957 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 29958 # We also need -iframework<path>/System/Library/Frameworks 29959 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -iframework $SYSROOT/System/Library/Frameworks" 29960 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -iframework $SYSROOT/System/Library/Frameworks" 29961 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 29962 # set this here so it doesn't have to be peppered throughout the forest 29963 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 29964 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 29965 fi 29966 29967 29968 29969 29970 29971 # Then detect the actual binaries needed 29972 29973 # FIXME: Is this needed? 29974 ac_ext=cpp 29975 ac_cpp='$CXXCPP $CPPFLAGS' 29976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29979 29980 29981 # Store the CFLAGS etc passed to the configure script. 29982 ORG_CFLAGS="$CFLAGS" 29983 ORG_CXXFLAGS="$CXXFLAGS" 29984 29985 # autoconf magic only relies on PATH, so update it if tools dir is specified 29986 OLD_PATH="$PATH" 29987 29988 # On Windows, we need to detect the visual studio installation first. 29989 # This will change the PATH, but we need to keep that new PATH even 29990 # after toolchain detection is done, since the compiler (on x86) uses 29991 # it for DLL resolution in runtime. 29992 if test "x$OPENJDK_BUILD_OS" = "xwindows" \ 29993 && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 29994 29995 # Store path to cygwin link.exe to help excluding it when searching for 29996 # VS linker. This must be done before changing the PATH when looking for VS. 29997 # Extract the first word of "link", so it can be a program name with args. 29998 set dummy link; ac_word=$2 29999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30000 $as_echo_n "checking for $ac_word... " >&6; } 30001 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 30002 $as_echo_n "(cached) " >&6 30003 else 30004 case $CYGWIN_LINK in 30005 [\\/]* | ?:[\\/]*) 30006 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 30007 ;; 30008 *) 30009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30010 for as_dir in $PATH 30011 do 30012 IFS=$as_save_IFS 30013 test -z "$as_dir" && as_dir=. 30014 for ac_exec_ext in '' $ac_executable_extensions; do 30015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30016 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 30017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30018 break 2 30019 fi 30020 done 30021 done 30022 IFS=$as_save_IFS 30023 30024 ;; 30025 esac 30026 fi 30027 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 30028 if test -n "$CYGWIN_LINK"; then 30029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 30030 $as_echo "$CYGWIN_LINK" >&6; } 30031 else 30032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30033 $as_echo "no" >&6; } 30034 fi 30035 30036 30037 if test "x$CYGWIN_LINK" != x; then 30038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 30039 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 30040 "$CYGWIN_LINK" --version > /dev/null 30041 if test $? -eq 0 ; then 30042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30043 $as_echo "yes" >&6; } 30044 else 30045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30046 $as_echo "no" >&6; } 30047 # This might be the VS linker. Don't exclude it later on. 30048 CYGWIN_LINK="" 30049 fi 30050 fi 30051 30052 # First-hand choice is to locate and run the vsvars bat file. 30053 30054 30055 # Check whether --with-toolchain-version was given. 30056 if test "${with_toolchain_version+set}" = set; then : 30057 withval=$with_toolchain_version; 30058 fi 30059 30060 30061 if test "x$with_toolchain_version" = xlist; then 30062 # List all toolchains 30063 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 30064 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 30065 for version in $VALID_VS_VERSIONS; do 30066 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 30067 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 30068 done 30069 30070 exit 0 30071 elif test "x$DEVKIT_VS_VERSION" != x; then 30072 VS_VERSION=$DEVKIT_VS_VERSION 30073 TOOLCHAIN_VERSION=$VS_VERSION 30074 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 30075 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 30076 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 30077 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 30078 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 30079 VS_PATH="$TOOLCHAIN_PATH:$PATH" 30080 30081 # Convert DEVKIT_VS_INCLUDE into windows style VS_INCLUDE so that it 30082 # can still be exported as INCLUDE for compiler invocations without 30083 # SYSROOT_CFLAGS 30084 OLDIFS="$IFS" 30085 IFS=";" 30086 for i in $DEVKIT_VS_INCLUDE; do 30087 ipath=$i 30088 30089 unix_path="$ipath" 30090 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30091 windows_path=`$CYGPATH -m "$unix_path"` 30092 ipath="$windows_path" 30093 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30094 windows_path=`cmd //c echo $unix_path` 30095 ipath="$windows_path" 30096 fi 30097 30098 VS_INCLUDE="$VS_INCLUDE;$ipath" 30099 done 30100 # Convert DEVKIT_VS_LIB into VS_LIB so that it can still be exported 30101 # as LIB for compiler invocations without SYSROOT_LDFLAGS 30102 for i in $DEVKIT_VS_LIB; do 30103 libpath=$i 30104 30105 unix_path="$libpath" 30106 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30107 windows_path=`$CYGPATH -m "$unix_path"` 30108 libpath="$windows_path" 30109 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30110 windows_path=`cmd //c echo $unix_path` 30111 libpath="$windows_path" 30112 fi 30113 30114 VS_LIB="$VS_LIB;$libpath" 30115 done 30116 IFS="$OLDIFS" 30117 30118 { $as_echo "$as_me:${as_lineno-$LINENO}: Found devkit $VS_DESCRIPTION" >&5 30119 $as_echo "$as_me: Found devkit $VS_DESCRIPTION" >&6;} 30120 30121 elif test "x$with_toolchain_version" != x; then 30122 # User override; check that it is valid 30123 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 30124 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 30125 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 30126 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 30127 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 30128 as_fn_error $? "Cannot continue." "$LINENO" 5 30129 fi 30130 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 30131 else 30132 # No flag given, use default 30133 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 30134 fi 30135 30136 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 30137 30138 VS_VERSION="$VS_VERSION" 30139 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 30140 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 30141 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 30142 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 30143 30144 # When using --with-tools-dir, assume it points to the correct and default 30145 # version of Visual Studio or that --with-toolchain-version was also set. 30146 if test "x$with_tools_dir" != x; then 30147 30148 if test "x$VS_ENV_CMD" = x; then 30149 VS_VERSION="${VS_VERSION}" 30150 VS_BASE="$with_tools_dir/../.." 30151 METHOD="--with-tools-dir" 30152 30153 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 30154 VCVARSFILE="vc/bin/vcvars32.bat" 30155 else 30156 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 30157 fi 30158 30159 30160 windows_path="$VS_BASE" 30161 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30162 unix_path=`$CYGPATH -u "$windows_path"` 30163 VS_BASE="$unix_path" 30164 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30165 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30166 VS_BASE="$unix_path" 30167 fi 30168 30169 if test -d "$VS_BASE"; then 30170 if test -f "$VS_BASE/$VCVARSFILE"; then 30171 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30172 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30173 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 30174 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 30175 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 30176 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 30177 else 30178 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30179 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30180 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 30181 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 30182 fi 30183 fi 30184 fi 30185 30186 30187 if test "x$VS_ENV_CMD" = x; then 30188 VS_VERSION="${VS_VERSION}" 30189 VS_BASE="$with_tools_dir/../../.." 30190 METHOD="--with-tools-dir" 30191 30192 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 30193 VCVARSFILE="vc/bin/vcvars32.bat" 30194 else 30195 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 30196 fi 30197 30198 30199 windows_path="$VS_BASE" 30200 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30201 unix_path=`$CYGPATH -u "$windows_path"` 30202 VS_BASE="$unix_path" 30203 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30204 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30205 VS_BASE="$unix_path" 30206 fi 30207 30208 if test -d "$VS_BASE"; then 30209 if test -f "$VS_BASE/$VCVARSFILE"; then 30210 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30211 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30212 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 30213 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 30214 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 30215 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 30216 else 30217 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30218 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30219 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 30220 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 30221 fi 30222 fi 30223 fi 30224 30225 if test "x$VS_ENV_CMD" = x; then 30226 # Having specified an argument which is incorrect will produce an instant failure; 30227 # we should not go on looking 30228 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 30229 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 30230 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 30231 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 30232 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 30233 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 30234 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 30235 fi 30236 fi 30237 30238 VS_ENV_CMD="" 30239 VS_ENV_ARGS="" 30240 30241 if test "x$VS_COMNTOOLS" != x; then 30242 30243 if test "x$VS_ENV_CMD" = x; then 30244 VS_VERSION="${VS_VERSION}" 30245 VS_BASE="$VS_COMNTOOLS/../.." 30246 METHOD="$VS_COMNTOOLS_VAR variable" 30247 30248 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 30249 VCVARSFILE="vc/bin/vcvars32.bat" 30250 else 30251 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 30252 fi 30253 30254 30255 windows_path="$VS_BASE" 30256 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30257 unix_path=`$CYGPATH -u "$windows_path"` 30258 VS_BASE="$unix_path" 30259 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30260 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30261 VS_BASE="$unix_path" 30262 fi 30263 30264 if test -d "$VS_BASE"; then 30265 if test -f "$VS_BASE/$VCVARSFILE"; then 30266 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30267 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30268 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 30269 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 30270 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 30271 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 30272 else 30273 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30274 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30275 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 30276 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 30277 fi 30278 fi 30279 fi 30280 30281 fi 30282 if test "x$PROGRAMFILES" != x; then 30283 30284 if test "x$VS_ENV_CMD" = x; then 30285 VS_VERSION="${VS_VERSION}" 30286 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 30287 METHOD="well-known name" 30288 30289 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 30290 VCVARSFILE="vc/bin/vcvars32.bat" 30291 else 30292 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 30293 fi 30294 30295 30296 windows_path="$VS_BASE" 30297 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30298 unix_path=`$CYGPATH -u "$windows_path"` 30299 VS_BASE="$unix_path" 30300 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30301 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30302 VS_BASE="$unix_path" 30303 fi 30304 30305 if test -d "$VS_BASE"; then 30306 if test -f "$VS_BASE/$VCVARSFILE"; then 30307 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30308 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30309 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 30310 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 30311 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 30312 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 30313 else 30314 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30315 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30316 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 30317 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 30318 fi 30319 fi 30320 fi 30321 30322 fi 30323 # Work around the insanely named ProgramFiles(x86) env variable 30324 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 30325 if test "x$PROGRAMFILES_X86" != x; then 30326 30327 if test "x$VS_ENV_CMD" = x; then 30328 VS_VERSION="${VS_VERSION}" 30329 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 30330 METHOD="well-known name" 30331 30332 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 30333 VCVARSFILE="vc/bin/vcvars32.bat" 30334 else 30335 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 30336 fi 30337 30338 30339 windows_path="$VS_BASE" 30340 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30341 unix_path=`$CYGPATH -u "$windows_path"` 30342 VS_BASE="$unix_path" 30343 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30344 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30345 VS_BASE="$unix_path" 30346 fi 30347 30348 if test -d "$VS_BASE"; then 30349 if test -f "$VS_BASE/$VCVARSFILE"; then 30350 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30351 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30352 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 30353 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 30354 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 30355 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 30356 else 30357 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30358 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30359 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 30360 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 30361 fi 30362 fi 30363 fi 30364 30365 fi 30366 30367 if test "x$VS_ENV_CMD" = x; then 30368 VS_VERSION="${VS_VERSION}" 30369 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 30370 METHOD="well-known name" 30371 30372 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 30373 VCVARSFILE="vc/bin/vcvars32.bat" 30374 else 30375 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 30376 fi 30377 30378 30379 windows_path="$VS_BASE" 30380 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30381 unix_path=`$CYGPATH -u "$windows_path"` 30382 VS_BASE="$unix_path" 30383 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30384 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30385 VS_BASE="$unix_path" 30386 fi 30387 30388 if test -d "$VS_BASE"; then 30389 if test -f "$VS_BASE/$VCVARSFILE"; then 30390 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30391 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30392 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 30393 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 30394 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 30395 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 30396 else 30397 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30398 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30399 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 30400 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 30401 fi 30402 fi 30403 fi 30404 30405 30406 if test "x$VS_ENV_CMD" = x; then 30407 VS_VERSION="${VS_VERSION}" 30408 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 30409 METHOD="well-known name" 30410 30411 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 30412 VCVARSFILE="vc/bin/vcvars32.bat" 30413 else 30414 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 30415 fi 30416 30417 30418 windows_path="$VS_BASE" 30419 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30420 unix_path=`$CYGPATH -u "$windows_path"` 30421 VS_BASE="$unix_path" 30422 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30423 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30424 VS_BASE="$unix_path" 30425 fi 30426 30427 if test -d "$VS_BASE"; then 30428 if test -f "$VS_BASE/$VCVARSFILE"; then 30429 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30430 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30431 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 30432 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 30433 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 30434 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 30435 else 30436 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30437 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30438 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 30439 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 30440 fi 30441 fi 30442 fi 30443 30444 30445 if test "x$SDK_INSTALL_DIR" != x; then 30446 if test "x$ProgramW6432" != x; then 30447 30448 if test "x$VS_ENV_CMD" = x; then 30449 VS_VERSION="${VS_VERSION}" 30450 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 30451 METHOD="well-known name" 30452 30453 windows_path="$WIN_SDK_BASE" 30454 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30455 unix_path=`$CYGPATH -u "$windows_path"` 30456 WIN_SDK_BASE="$unix_path" 30457 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30458 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30459 WIN_SDK_BASE="$unix_path" 30460 fi 30461 30462 if test -d "$WIN_SDK_BASE"; then 30463 # There have been cases of partial or broken SDK installations. A missing 30464 # lib dir is not going to work. 30465 if test ! -d "$WIN_SDK_BASE/lib"; then 30466 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30467 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30468 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 30469 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 30470 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 30471 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30472 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30473 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 30474 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 30475 VS_ENV_ARGS="/x86" 30476 else 30477 VS_ENV_ARGS="/x64" 30478 fi 30479 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 30480 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 30481 # TODO: improve detection for other versions of SDK 30482 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 30483 else 30484 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30485 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30486 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 30487 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 30488 fi 30489 fi 30490 fi 30491 30492 fi 30493 if test "x$PROGRAMW6432" != x; then 30494 30495 if test "x$VS_ENV_CMD" = x; then 30496 VS_VERSION="${VS_VERSION}" 30497 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 30498 METHOD="well-known name" 30499 30500 windows_path="$WIN_SDK_BASE" 30501 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30502 unix_path=`$CYGPATH -u "$windows_path"` 30503 WIN_SDK_BASE="$unix_path" 30504 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30505 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30506 WIN_SDK_BASE="$unix_path" 30507 fi 30508 30509 if test -d "$WIN_SDK_BASE"; then 30510 # There have been cases of partial or broken SDK installations. A missing 30511 # lib dir is not going to work. 30512 if test ! -d "$WIN_SDK_BASE/lib"; then 30513 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30514 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30515 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 30516 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 30517 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 30518 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30519 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30520 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 30521 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 30522 VS_ENV_ARGS="/x86" 30523 else 30524 VS_ENV_ARGS="/x64" 30525 fi 30526 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 30527 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 30528 # TODO: improve detection for other versions of SDK 30529 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 30530 else 30531 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30532 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30533 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 30534 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 30535 fi 30536 fi 30537 fi 30538 30539 fi 30540 if test "x$PROGRAMFILES" != x; then 30541 30542 if test "x$VS_ENV_CMD" = x; then 30543 VS_VERSION="${VS_VERSION}" 30544 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 30545 METHOD="well-known name" 30546 30547 windows_path="$WIN_SDK_BASE" 30548 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30549 unix_path=`$CYGPATH -u "$windows_path"` 30550 WIN_SDK_BASE="$unix_path" 30551 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30552 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30553 WIN_SDK_BASE="$unix_path" 30554 fi 30555 30556 if test -d "$WIN_SDK_BASE"; then 30557 # There have been cases of partial or broken SDK installations. A missing 30558 # lib dir is not going to work. 30559 if test ! -d "$WIN_SDK_BASE/lib"; then 30560 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30561 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30562 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 30563 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 30564 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 30565 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30566 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30567 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 30568 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 30569 VS_ENV_ARGS="/x86" 30570 else 30571 VS_ENV_ARGS="/x64" 30572 fi 30573 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 30574 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 30575 # TODO: improve detection for other versions of SDK 30576 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 30577 else 30578 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30579 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30580 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 30581 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 30582 fi 30583 fi 30584 fi 30585 30586 fi 30587 30588 if test "x$VS_ENV_CMD" = x; then 30589 VS_VERSION="${VS_VERSION}" 30590 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 30591 METHOD="well-known name" 30592 30593 windows_path="$WIN_SDK_BASE" 30594 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30595 unix_path=`$CYGPATH -u "$windows_path"` 30596 WIN_SDK_BASE="$unix_path" 30597 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30598 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30599 WIN_SDK_BASE="$unix_path" 30600 fi 30601 30602 if test -d "$WIN_SDK_BASE"; then 30603 # There have been cases of partial or broken SDK installations. A missing 30604 # lib dir is not going to work. 30605 if test ! -d "$WIN_SDK_BASE/lib"; then 30606 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30607 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30608 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 30609 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 30610 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 30611 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30612 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30613 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 30614 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 30615 VS_ENV_ARGS="/x86" 30616 else 30617 VS_ENV_ARGS="/x64" 30618 fi 30619 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 30620 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 30621 # TODO: improve detection for other versions of SDK 30622 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 30623 else 30624 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30625 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30626 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 30627 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 30628 fi 30629 fi 30630 fi 30631 30632 30633 if test "x$VS_ENV_CMD" = x; then 30634 VS_VERSION="${VS_VERSION}" 30635 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 30636 METHOD="well-known name" 30637 30638 windows_path="$WIN_SDK_BASE" 30639 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30640 unix_path=`$CYGPATH -u "$windows_path"` 30641 WIN_SDK_BASE="$unix_path" 30642 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30643 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30644 WIN_SDK_BASE="$unix_path" 30645 fi 30646 30647 if test -d "$WIN_SDK_BASE"; then 30648 # There have been cases of partial or broken SDK installations. A missing 30649 # lib dir is not going to work. 30650 if test ! -d "$WIN_SDK_BASE/lib"; then 30651 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30652 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30653 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 30654 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 30655 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 30656 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30657 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30658 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 30659 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 30660 VS_ENV_ARGS="/x86" 30661 else 30662 VS_ENV_ARGS="/x64" 30663 fi 30664 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 30665 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 30666 # TODO: improve detection for other versions of SDK 30667 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 30668 else 30669 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30670 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30671 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 30672 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 30673 fi 30674 fi 30675 fi 30676 30677 fi 30678 30679 if test "x$VS_ENV_CMD" != x; then 30680 TOOLCHAIN_VERSION=$VS_VERSION 30681 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 30682 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 30683 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 30684 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 30685 # The rest of the variables are already evaled while probing 30686 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 30687 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 30688 break 30689 fi 30690 done 30691 30692 30693 # If we have a devkit, skip all of the below. 30694 if test "x$DEVKIT_VS_VERSION" = x; then 30695 if test "x$VS_ENV_CMD" != x; then 30696 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 30697 30698 # Only process if variable expands to non-empty 30699 30700 if test "x$VS_ENV_CMD" != x; then 30701 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30702 30703 # First separate the path from the arguments. This will split at the first 30704 # space. 30705 complete="$VS_ENV_CMD" 30706 path="${complete%% *}" 30707 tmp="$complete EOL" 30708 arguments="${tmp#* }" 30709 30710 # Input might be given as Windows format, start by converting to 30711 # unix format. 30712 new_path=`$CYGPATH -u "$path"` 30713 30714 # Now try to locate executable using which 30715 new_path=`$WHICH "$new_path" 2> /dev/null` 30716 # bat and cmd files are not always considered executable in cygwin causing which 30717 # to not find them 30718 if test "x$new_path" = x \ 30719 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30720 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30721 new_path=`$CYGPATH -u "$path"` 30722 fi 30723 if test "x$new_path" = x; then 30724 # Oops. Which didn't find the executable. 30725 # The splitting of arguments from the executable at a space might have been incorrect, 30726 # since paths with space are more likely in Windows. Give it another try with the whole 30727 # argument. 30728 path="$complete" 30729 arguments="EOL" 30730 new_path=`$CYGPATH -u "$path"` 30731 new_path=`$WHICH "$new_path" 2> /dev/null` 30732 # bat and cmd files are not always considered executable in cygwin causing which 30733 # to not find them 30734 if test "x$new_path" = x \ 30735 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30736 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30737 new_path=`$CYGPATH -u "$path"` 30738 fi 30739 if test "x$new_path" = x; then 30740 # It's still not found. Now this is an unrecoverable error. 30741 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 30742 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 30743 has_space=`$ECHO "$complete" | $GREP " "` 30744 if test "x$has_space" != x; then 30745 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30746 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30747 fi 30748 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 30749 fi 30750 fi 30751 30752 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30753 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30754 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30755 # "foo.exe" is OK but "foo" is an error. 30756 # 30757 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30758 # It is also a way to make sure we got the proper file name for the real test later on. 30759 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30760 if test "x$test_shortpath" = x; then 30761 # Short path failed, file does not exist as specified. 30762 # Try adding .exe or .cmd 30763 if test -f "${new_path}.exe"; then 30764 input_to_shortpath="${new_path}.exe" 30765 elif test -f "${new_path}.cmd"; then 30766 input_to_shortpath="${new_path}.cmd" 30767 else 30768 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 30769 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 30770 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30771 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30772 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 30773 fi 30774 else 30775 input_to_shortpath="$new_path" 30776 fi 30777 30778 # Call helper function which possibly converts this using DOS-style short mode. 30779 # If so, the updated path is stored in $new_path. 30780 new_path="$input_to_shortpath" 30781 30782 input_path="$input_to_shortpath" 30783 # Check if we need to convert this using DOS-style short mode. If the path 30784 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30785 # take no chances and rewrite it. 30786 # Note: m4 eats our [], so we need to use [ and ] instead. 30787 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30788 if test "x$has_forbidden_chars" != x; then 30789 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30790 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30791 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30792 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30793 # Going to short mode and back again did indeed matter. Since short mode is 30794 # case insensitive, let's make it lowercase to improve readability. 30795 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30796 # Now convert it back to Unix-style (cygpath) 30797 input_path=`$CYGPATH -u "$shortmode_path"` 30798 new_path="$input_path" 30799 fi 30800 fi 30801 30802 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30803 if test "x$test_cygdrive_prefix" = x; then 30804 # As a simple fix, exclude /usr/bin since it's not a real path. 30805 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30806 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30807 # a path prefixed by /cygdrive for fixpath to work. 30808 new_path="$CYGWIN_ROOT_PATH$input_path" 30809 fi 30810 fi 30811 30812 # remove trailing .exe if any 30813 new_path="${new_path/%.exe/}" 30814 30815 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30816 30817 # First separate the path from the arguments. This will split at the first 30818 # space. 30819 complete="$VS_ENV_CMD" 30820 path="${complete%% *}" 30821 tmp="$complete EOL" 30822 arguments="${tmp#* }" 30823 30824 # Input might be given as Windows format, start by converting to 30825 # unix format. 30826 new_path="$path" 30827 30828 windows_path="$new_path" 30829 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30830 unix_path=`$CYGPATH -u "$windows_path"` 30831 new_path="$unix_path" 30832 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30833 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30834 new_path="$unix_path" 30835 fi 30836 30837 30838 # Now try to locate executable using which 30839 new_path=`$WHICH "$new_path" 2> /dev/null` 30840 30841 if test "x$new_path" = x; then 30842 # Oops. Which didn't find the executable. 30843 # The splitting of arguments from the executable at a space might have been incorrect, 30844 # since paths with space are more likely in Windows. Give it another try with the whole 30845 # argument. 30846 path="$complete" 30847 arguments="EOL" 30848 new_path="$path" 30849 30850 windows_path="$new_path" 30851 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30852 unix_path=`$CYGPATH -u "$windows_path"` 30853 new_path="$unix_path" 30854 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30855 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30856 new_path="$unix_path" 30857 fi 30858 30859 30860 new_path=`$WHICH "$new_path" 2> /dev/null` 30861 # bat and cmd files are not always considered executable in MSYS causing which 30862 # to not find them 30863 if test "x$new_path" = x \ 30864 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30865 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30866 new_path="$path" 30867 30868 windows_path="$new_path" 30869 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30870 unix_path=`$CYGPATH -u "$windows_path"` 30871 new_path="$unix_path" 30872 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30873 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30874 new_path="$unix_path" 30875 fi 30876 30877 fi 30878 30879 if test "x$new_path" = x; then 30880 # It's still not found. Now this is an unrecoverable error. 30881 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 30882 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 30883 has_space=`$ECHO "$complete" | $GREP " "` 30884 if test "x$has_space" != x; then 30885 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30886 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30887 fi 30888 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 30889 fi 30890 fi 30891 30892 # Now new_path has a complete unix path to the binary 30893 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30894 # Keep paths in /bin as-is, but remove trailing .exe if any 30895 new_path="${new_path/%.exe/}" 30896 # Do not save /bin paths to all_fixpath_prefixes! 30897 else 30898 # Not in mixed or Windows style, start by that. 30899 new_path=`cmd //c echo $new_path` 30900 30901 input_path="$new_path" 30902 # Check if we need to convert this using DOS-style short mode. If the path 30903 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30904 # take no chances and rewrite it. 30905 # Note: m4 eats our [], so we need to use [ and ] instead. 30906 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30907 if test "x$has_forbidden_chars" != x; then 30908 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30909 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30910 fi 30911 30912 # Output is in $new_path 30913 30914 windows_path="$new_path" 30915 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30916 unix_path=`$CYGPATH -u "$windows_path"` 30917 new_path="$unix_path" 30918 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30919 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30920 new_path="$unix_path" 30921 fi 30922 30923 # remove trailing .exe if any 30924 new_path="${new_path/%.exe/}" 30925 30926 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30927 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30928 fi 30929 30930 else 30931 # We're on a unix platform. Hooray! :) 30932 # First separate the path from the arguments. This will split at the first 30933 # space. 30934 complete="$VS_ENV_CMD" 30935 path="${complete%% *}" 30936 tmp="$complete EOL" 30937 arguments="${tmp#* }" 30938 30939 # Cannot rely on the command "which" here since it doesn't always work. 30940 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30941 if test -z "$is_absolute_path"; then 30942 # Path to executable is not absolute. Find it. 30943 IFS_save="$IFS" 30944 IFS=: 30945 for p in $PATH; do 30946 if test -f "$p/$path" && test -x "$p/$path"; then 30947 new_path="$p/$path" 30948 break 30949 fi 30950 done 30951 IFS="$IFS_save" 30952 else 30953 # This is an absolute path, we can use it without further modifications. 30954 new_path="$path" 30955 fi 30956 30957 if test "x$new_path" = x; then 30958 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 30959 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 30960 has_space=`$ECHO "$complete" | $GREP " "` 30961 if test "x$has_space" != x; then 30962 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30963 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30964 fi 30965 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 30966 fi 30967 fi 30968 30969 # Now join together the path and the arguments once again 30970 if test "x$arguments" != xEOL; then 30971 new_complete="$new_path ${arguments% *}" 30972 else 30973 new_complete="$new_path" 30974 fi 30975 30976 if test "x$complete" != "x$new_complete"; then 30977 VS_ENV_CMD="$new_complete" 30978 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 30979 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 30980 fi 30981 fi 30982 30983 30984 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 30985 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 30986 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 30987 30988 # We need to create a couple of temporary files. 30989 VS_ENV_TMP_DIR="$CONFIGURESUPPORT_OUTPUTDIR/vs-env" 30990 $MKDIR -p $VS_ENV_TMP_DIR 30991 30992 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 30993 # Instead create a shell script which will set the relevant variables when run. 30994 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 30995 30996 unix_path="$WINPATH_VS_ENV_CMD" 30997 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30998 windows_path=`$CYGPATH -m "$unix_path"` 30999 WINPATH_VS_ENV_CMD="$windows_path" 31000 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31001 windows_path=`cmd //c echo $unix_path` 31002 WINPATH_VS_ENV_CMD="$windows_path" 31003 fi 31004 31005 WINPATH_BASH="$BASH" 31006 31007 unix_path="$WINPATH_BASH" 31008 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31009 windows_path=`$CYGPATH -m "$unix_path"` 31010 WINPATH_BASH="$windows_path" 31011 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31012 windows_path=`cmd //c echo $unix_path` 31013 WINPATH_BASH="$windows_path" 31014 fi 31015 31016 31017 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 31018 # script (executable by bash) that will setup the important variables. 31019 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 31020 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 31021 # This will end up something like: 31022 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 31023 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 31024 # These will end up something like: 31025 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 31026 # The trailing space for everyone except PATH is no typo, but is needed due 31027 # to trailing \ in the Windows paths. These will be stripped later. 31028 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' \ 31029 >> $EXTRACT_VC_ENV_BAT_FILE 31030 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' \ 31031 >> $EXTRACT_VC_ENV_BAT_FILE 31032 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' \ 31033 >> $EXTRACT_VC_ENV_BAT_FILE 31034 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' \ 31035 >> $EXTRACT_VC_ENV_BAT_FILE 31036 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' \ 31037 >> $EXTRACT_VC_ENV_BAT_FILE 31038 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' \ 31039 >> $EXTRACT_VC_ENV_BAT_FILE 31040 31041 # Now execute the newly created bat file. 31042 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 31043 # Change directory so we don't need to mess with Windows paths in redirects. 31044 cd $VS_ENV_TMP_DIR 31045 cmd /c extract-vs-env.bat | $CAT 31046 cd $CURDIR 31047 31048 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 31049 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 31050 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 31051 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 31052 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 31053 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 31054 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 31055 as_fn_error $? "Cannot continue" "$LINENO" 5 31056 fi 31057 31058 # Now set all paths and other env variables. This will allow the rest of 31059 # the configure script to find and run the compiler in the proper way. 31060 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 31061 $as_echo "$as_me: Setting extracted environment variables" >&6;} 31062 . $VS_ENV_TMP_DIR/set-vs-env.sh 31063 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 31064 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 31065 else 31066 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 31067 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 31068 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 31069 fi 31070 fi 31071 31072 # At this point, we should have correct variables in the environment, or we can't continue. 31073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 31074 $as_echo_n "checking for Visual Studio variables... " >&6; } 31075 31076 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x \ 31077 || test "x$WINDOWSSDKDIR" != x || test "x$DEVKIT_NAME" != x; then 31078 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 31079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 31080 $as_echo "present but broken" >&6; } 31081 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 31082 else 31083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31084 $as_echo "ok" >&6; } 31085 # Remove any trailing "\" ";" and " " from the variables. 31086 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED -e 's/\\\\*;* *$//'` 31087 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\*;* *$//'` 31088 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 31089 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 31090 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 31091 # Remove any paths containing # (typically F#) as that messes up make. This 31092 # is needed if visual studio was installed with F# support. 31093 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 31094 31095 31096 31097 31098 31099 # Convert VS_INCLUDE into SYSROOT_CFLAGS 31100 OLDIFS="$IFS" 31101 IFS=";" 31102 for i in $VS_INCLUDE; do 31103 ipath=$i 31104 # Only process non-empty elements 31105 if test "x$ipath" != x; then 31106 IFS="$OLDIFS" 31107 # Check that directory exists before calling fixup_path 31108 testpath=$ipath 31109 31110 windows_path="$testpath" 31111 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31112 unix_path=`$CYGPATH -u "$windows_path"` 31113 testpath="$unix_path" 31114 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31115 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31116 testpath="$unix_path" 31117 fi 31118 31119 if test -d "$testpath"; then 31120 31121 # Only process if variable expands to non-empty 31122 31123 if test "x$ipath" != x; then 31124 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31125 31126 # Input might be given as Windows format, start by converting to 31127 # unix format. 31128 path="$ipath" 31129 new_path=`$CYGPATH -u "$path"` 31130 31131 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31132 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31133 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31134 # "foo.exe" is OK but "foo" is an error. 31135 # 31136 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31137 # It is also a way to make sure we got the proper file name for the real test later on. 31138 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31139 if test "x$test_shortpath" = x; then 31140 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 31141 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 31142 as_fn_error $? "Cannot locate the the path of ipath" "$LINENO" 5 31143 fi 31144 31145 # Call helper function which possibly converts this using DOS-style short mode. 31146 # If so, the updated path is stored in $new_path. 31147 31148 input_path="$new_path" 31149 # Check if we need to convert this using DOS-style short mode. If the path 31150 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31151 # take no chances and rewrite it. 31152 # Note: m4 eats our [], so we need to use [ and ] instead. 31153 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31154 if test "x$has_forbidden_chars" != x; then 31155 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31156 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31157 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31158 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31159 # Going to short mode and back again did indeed matter. Since short mode is 31160 # case insensitive, let's make it lowercase to improve readability. 31161 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31162 # Now convert it back to Unix-style (cygpath) 31163 input_path=`$CYGPATH -u "$shortmode_path"` 31164 new_path="$input_path" 31165 fi 31166 fi 31167 31168 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31169 if test "x$test_cygdrive_prefix" = x; then 31170 # As a simple fix, exclude /usr/bin since it's not a real path. 31171 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31172 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31173 # a path prefixed by /cygdrive for fixpath to work. 31174 new_path="$CYGWIN_ROOT_PATH$input_path" 31175 fi 31176 fi 31177 31178 31179 if test "x$path" != "x$new_path"; then 31180 ipath="$new_path" 31181 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 31182 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 31183 fi 31184 31185 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31186 31187 path="$ipath" 31188 has_colon=`$ECHO $path | $GREP ^.:` 31189 new_path="$path" 31190 if test "x$has_colon" = x; then 31191 # Not in mixed or Windows style, start by that. 31192 new_path=`cmd //c echo $path` 31193 fi 31194 31195 31196 input_path="$new_path" 31197 # Check if we need to convert this using DOS-style short mode. If the path 31198 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31199 # take no chances and rewrite it. 31200 # Note: m4 eats our [], so we need to use [ and ] instead. 31201 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31202 if test "x$has_forbidden_chars" != x; then 31203 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31204 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31205 fi 31206 31207 31208 windows_path="$new_path" 31209 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31210 unix_path=`$CYGPATH -u "$windows_path"` 31211 new_path="$unix_path" 31212 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31213 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31214 new_path="$unix_path" 31215 fi 31216 31217 if test "x$path" != "x$new_path"; then 31218 ipath="$new_path" 31219 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 31220 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 31221 fi 31222 31223 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31224 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31225 31226 else 31227 # We're on a unix platform. Hooray! :) 31228 path="$ipath" 31229 has_space=`$ECHO "$path" | $GREP " "` 31230 if test "x$has_space" != x; then 31231 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 31232 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 31233 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 31234 fi 31235 31236 # Use eval to expand a potential ~ 31237 eval path="$path" 31238 if test ! -f "$path" && test ! -d "$path"; then 31239 as_fn_error $? "The path of ipath, which resolves as \"$path\", is not found." "$LINENO" 5 31240 fi 31241 31242 if test -d "$path"; then 31243 ipath="`cd "$path"; $THEPWDCMD -L`" 31244 else 31245 dir="`$DIRNAME "$path"`" 31246 base="`$BASENAME "$path"`" 31247 ipath="`cd "$dir"; $THEPWDCMD -L`/$base" 31248 fi 31249 fi 31250 fi 31251 31252 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath" 31253 fi 31254 IFS=";" 31255 fi 31256 done 31257 # Convert VS_LIB into SYSROOT_LDFLAGS 31258 for i in $VS_LIB; do 31259 libpath=$i 31260 # Only process non-empty elements 31261 if test "x$libpath" != x; then 31262 IFS="$OLDIFS" 31263 # Check that directory exists before calling fixup_path 31264 testpath=$libpath 31265 31266 windows_path="$testpath" 31267 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31268 unix_path=`$CYGPATH -u "$windows_path"` 31269 testpath="$unix_path" 31270 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31271 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31272 testpath="$unix_path" 31273 fi 31274 31275 if test -d "$testpath"; then 31276 31277 # Only process if variable expands to non-empty 31278 31279 if test "x$libpath" != x; then 31280 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31281 31282 # Input might be given as Windows format, start by converting to 31283 # unix format. 31284 path="$libpath" 31285 new_path=`$CYGPATH -u "$path"` 31286 31287 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31288 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31289 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31290 # "foo.exe" is OK but "foo" is an error. 31291 # 31292 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31293 # It is also a way to make sure we got the proper file name for the real test later on. 31294 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31295 if test "x$test_shortpath" = x; then 31296 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 31297 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 31298 as_fn_error $? "Cannot locate the the path of libpath" "$LINENO" 5 31299 fi 31300 31301 # Call helper function which possibly converts this using DOS-style short mode. 31302 # If so, the updated path is stored in $new_path. 31303 31304 input_path="$new_path" 31305 # Check if we need to convert this using DOS-style short mode. If the path 31306 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31307 # take no chances and rewrite it. 31308 # Note: m4 eats our [], so we need to use [ and ] instead. 31309 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31310 if test "x$has_forbidden_chars" != x; then 31311 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31312 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31313 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31314 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31315 # Going to short mode and back again did indeed matter. Since short mode is 31316 # case insensitive, let's make it lowercase to improve readability. 31317 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31318 # Now convert it back to Unix-style (cygpath) 31319 input_path=`$CYGPATH -u "$shortmode_path"` 31320 new_path="$input_path" 31321 fi 31322 fi 31323 31324 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31325 if test "x$test_cygdrive_prefix" = x; then 31326 # As a simple fix, exclude /usr/bin since it's not a real path. 31327 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31328 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31329 # a path prefixed by /cygdrive for fixpath to work. 31330 new_path="$CYGWIN_ROOT_PATH$input_path" 31331 fi 31332 fi 31333 31334 31335 if test "x$path" != "x$new_path"; then 31336 libpath="$new_path" 31337 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 31338 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 31339 fi 31340 31341 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31342 31343 path="$libpath" 31344 has_colon=`$ECHO $path | $GREP ^.:` 31345 new_path="$path" 31346 if test "x$has_colon" = x; then 31347 # Not in mixed or Windows style, start by that. 31348 new_path=`cmd //c echo $path` 31349 fi 31350 31351 31352 input_path="$new_path" 31353 # Check if we need to convert this using DOS-style short mode. If the path 31354 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31355 # take no chances and rewrite it. 31356 # Note: m4 eats our [], so we need to use [ and ] instead. 31357 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31358 if test "x$has_forbidden_chars" != x; then 31359 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31360 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31361 fi 31362 31363 31364 windows_path="$new_path" 31365 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31366 unix_path=`$CYGPATH -u "$windows_path"` 31367 new_path="$unix_path" 31368 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31369 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31370 new_path="$unix_path" 31371 fi 31372 31373 if test "x$path" != "x$new_path"; then 31374 libpath="$new_path" 31375 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 31376 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 31377 fi 31378 31379 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31380 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31381 31382 else 31383 # We're on a unix platform. Hooray! :) 31384 path="$libpath" 31385 has_space=`$ECHO "$path" | $GREP " "` 31386 if test "x$has_space" != x; then 31387 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 31388 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 31389 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 31390 fi 31391 31392 # Use eval to expand a potential ~ 31393 eval path="$path" 31394 if test ! -f "$path" && test ! -d "$path"; then 31395 as_fn_error $? "The path of libpath, which resolves as \"$path\", is not found." "$LINENO" 5 31396 fi 31397 31398 if test -d "$path"; then 31399 libpath="`cd "$path"; $THEPWDCMD -L`" 31400 else 31401 dir="`$DIRNAME "$path"`" 31402 base="`$BASENAME "$path"`" 31403 libpath="`cd "$dir"; $THEPWDCMD -L`/$base" 31404 fi 31405 fi 31406 fi 31407 31408 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath" 31409 fi 31410 IFS=";" 31411 fi 31412 done 31413 IFS="$OLDIFS" 31414 fi 31415 else 31416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31417 $as_echo "not found" >&6; } 31418 31419 if test "x$VS_ENV_CMD" = x; then 31420 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 31421 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 31422 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 31423 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 31424 else 31425 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 31426 $as_echo "$as_me: Running the extraction script failed." >&6;} 31427 fi 31428 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 31429 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 31430 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 31431 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 31432 as_fn_error $? "Cannot continue" "$LINENO" 5 31433 fi 31434 31435 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 31436 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 31437 PATH="$VS_PATH" 31438 # The microsoft toolchain also requires INCLUDE and LIB to be set. 31439 export INCLUDE="$VS_INCLUDE" 31440 export LIB="$VS_LIB" 31441 else 31442 # Currently we do not define this for other toolchains. This might change as the need arise. 31443 TOOLCHAIN_VERSION= 31444 fi 31445 31446 31447 # For solaris we really need solaris tools, and not the GNU equivalent. 31448 # The build tools on Solaris reside in /usr/ccs (C Compilation System), 31449 # so add that to path before starting to probe. 31450 # FIXME: This was originally only done for AS,NM,GNM,STRIP,OBJCOPY,OBJDUMP. 31451 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 31452 PATH="/usr/ccs/bin:$PATH" 31453 fi 31454 31455 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 31456 # override all other locations. 31457 if test "x$TOOLCHAIN_PATH" != x; then 31458 PATH=$TOOLCHAIN_PATH:$PATH 31459 fi 31460 31461 31462 # 31463 # Setup the compilers (CC and CXX) 31464 # 31465 31466 COMPILER_NAME=C 31467 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 31468 31469 if test "x$CC" != x; then 31470 # User has supplied compiler name already, always let that override. 31471 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 31472 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 31473 if test "x`basename $CC`" = "x$CC"; then 31474 # A command without a complete path is provided, search $PATH. 31475 31476 for ac_prog in $CC 31477 do 31478 # Extract the first word of "$ac_prog", so it can be a program name with args. 31479 set dummy $ac_prog; ac_word=$2 31480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31481 $as_echo_n "checking for $ac_word... " >&6; } 31482 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 31483 $as_echo_n "(cached) " >&6 31484 else 31485 case $POTENTIAL_CC in 31486 [\\/]* | ?:[\\/]*) 31487 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 31488 ;; 31489 *) 31490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31491 for as_dir in $PATH 31492 do 31493 IFS=$as_save_IFS 31494 test -z "$as_dir" && as_dir=. 31495 for ac_exec_ext in '' $ac_executable_extensions; do 31496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31497 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 31498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31499 break 2 31500 fi 31501 done 31502 done 31503 IFS=$as_save_IFS 31504 31505 ;; 31506 esac 31507 fi 31508 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 31509 if test -n "$POTENTIAL_CC"; then 31510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 31511 $as_echo "$POTENTIAL_CC" >&6; } 31512 else 31513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31514 $as_echo "no" >&6; } 31515 fi 31516 31517 31518 test -n "$POTENTIAL_CC" && break 31519 done 31520 31521 if test "x$POTENTIAL_CC" != x; then 31522 CC=$POTENTIAL_CC 31523 else 31524 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 31525 fi 31526 else 31527 # Otherwise it might already be a complete path 31528 if test ! -x "$CC"; then 31529 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 31530 fi 31531 fi 31532 else 31533 # No user supplied value. Locate compiler ourselves. 31534 31535 # If we are cross compiling, assume cross compilation tools follows the 31536 # cross compilation standard where they are prefixed with the autoconf 31537 # standard name for the target. For example the binary 31538 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 31539 # If we are not cross compiling, then the default compiler name will be 31540 # used. 31541 31542 CC= 31543 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 31544 # before checking the rest of the PATH. 31545 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 31546 # step, this should not be necessary. 31547 if test -n "$TOOLCHAIN_PATH"; then 31548 PATH_save="$PATH" 31549 PATH="$TOOLCHAIN_PATH" 31550 for ac_prog in $SEARCH_LIST 31551 do 31552 # Extract the first word of "$ac_prog", so it can be a program name with args. 31553 set dummy $ac_prog; ac_word=$2 31554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31555 $as_echo_n "checking for $ac_word... " >&6; } 31556 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 31557 $as_echo_n "(cached) " >&6 31558 else 31559 case $TOOLCHAIN_PATH_CC in 31560 [\\/]* | ?:[\\/]*) 31561 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 31562 ;; 31563 *) 31564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31565 for as_dir in $PATH 31566 do 31567 IFS=$as_save_IFS 31568 test -z "$as_dir" && as_dir=. 31569 for ac_exec_ext in '' $ac_executable_extensions; do 31570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31571 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 31572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31573 break 2 31574 fi 31575 done 31576 done 31577 IFS=$as_save_IFS 31578 31579 ;; 31580 esac 31581 fi 31582 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 31583 if test -n "$TOOLCHAIN_PATH_CC"; then 31584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 31585 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 31586 else 31587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31588 $as_echo "no" >&6; } 31589 fi 31590 31591 31592 test -n "$TOOLCHAIN_PATH_CC" && break 31593 done 31594 31595 CC=$TOOLCHAIN_PATH_CC 31596 PATH="$PATH_save" 31597 fi 31598 31599 # AC_PATH_PROGS can't be run multiple times with the same variable, 31600 # so create a new name for this run. 31601 if test "x$CC" = x; then 31602 for ac_prog in $SEARCH_LIST 31603 do 31604 # Extract the first word of "$ac_prog", so it can be a program name with args. 31605 set dummy $ac_prog; ac_word=$2 31606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31607 $as_echo_n "checking for $ac_word... " >&6; } 31608 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 31609 $as_echo_n "(cached) " >&6 31610 else 31611 case $POTENTIAL_CC in 31612 [\\/]* | ?:[\\/]*) 31613 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 31614 ;; 31615 *) 31616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31617 for as_dir in $PATH 31618 do 31619 IFS=$as_save_IFS 31620 test -z "$as_dir" && as_dir=. 31621 for ac_exec_ext in '' $ac_executable_extensions; do 31622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31623 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 31624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31625 break 2 31626 fi 31627 done 31628 done 31629 IFS=$as_save_IFS 31630 31631 ;; 31632 esac 31633 fi 31634 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 31635 if test -n "$POTENTIAL_CC"; then 31636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 31637 $as_echo "$POTENTIAL_CC" >&6; } 31638 else 31639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31640 $as_echo "no" >&6; } 31641 fi 31642 31643 31644 test -n "$POTENTIAL_CC" && break 31645 done 31646 31647 CC=$POTENTIAL_CC 31648 fi 31649 31650 if test "x$CC" = x; then 31651 31652 # Print a helpful message on how to acquire the necessary build dependency. 31653 # devkit is the help tag: freetype, cups, alsa etc 31654 MISSING_DEPENDENCY=devkit 31655 31656 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31657 cygwin_help $MISSING_DEPENDENCY 31658 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31659 msys_help $MISSING_DEPENDENCY 31660 else 31661 PKGHANDLER_COMMAND= 31662 31663 case $PKGHANDLER in 31664 apt-get) 31665 apt_help $MISSING_DEPENDENCY ;; 31666 yum) 31667 yum_help $MISSING_DEPENDENCY ;; 31668 port) 31669 port_help $MISSING_DEPENDENCY ;; 31670 pkgutil) 31671 pkgutil_help $MISSING_DEPENDENCY ;; 31672 pkgadd) 31673 pkgadd_help $MISSING_DEPENDENCY ;; 31674 esac 31675 31676 if test "x$PKGHANDLER_COMMAND" != x; then 31677 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 31678 fi 31679 fi 31680 31681 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 31682 fi 31683 fi 31684 31685 # Now we have a compiler binary in CC. Make sure it's okay. 31686 31687 # Only process if variable expands to non-empty 31688 31689 if test "x$CC" != x; then 31690 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31691 31692 # First separate the path from the arguments. This will split at the first 31693 # space. 31694 complete="$CC" 31695 path="${complete%% *}" 31696 tmp="$complete EOL" 31697 arguments="${tmp#* }" 31698 31699 # Input might be given as Windows format, start by converting to 31700 # unix format. 31701 new_path=`$CYGPATH -u "$path"` 31702 31703 # Now try to locate executable using which 31704 new_path=`$WHICH "$new_path" 2> /dev/null` 31705 # bat and cmd files are not always considered executable in cygwin causing which 31706 # to not find them 31707 if test "x$new_path" = x \ 31708 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31709 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31710 new_path=`$CYGPATH -u "$path"` 31711 fi 31712 if test "x$new_path" = x; then 31713 # Oops. Which didn't find the executable. 31714 # The splitting of arguments from the executable at a space might have been incorrect, 31715 # since paths with space are more likely in Windows. Give it another try with the whole 31716 # argument. 31717 path="$complete" 31718 arguments="EOL" 31719 new_path=`$CYGPATH -u "$path"` 31720 new_path=`$WHICH "$new_path" 2> /dev/null` 31721 # bat and cmd files are not always considered executable in cygwin causing which 31722 # to not find them 31723 if test "x$new_path" = x \ 31724 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31725 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31726 new_path=`$CYGPATH -u "$path"` 31727 fi 31728 if test "x$new_path" = x; then 31729 # It's still not found. Now this is an unrecoverable error. 31730 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 31731 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 31732 has_space=`$ECHO "$complete" | $GREP " "` 31733 if test "x$has_space" != x; then 31734 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31735 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31736 fi 31737 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 31738 fi 31739 fi 31740 31741 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31742 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31743 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31744 # "foo.exe" is OK but "foo" is an error. 31745 # 31746 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31747 # It is also a way to make sure we got the proper file name for the real test later on. 31748 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31749 if test "x$test_shortpath" = x; then 31750 # Short path failed, file does not exist as specified. 31751 # Try adding .exe or .cmd 31752 if test -f "${new_path}.exe"; then 31753 input_to_shortpath="${new_path}.exe" 31754 elif test -f "${new_path}.cmd"; then 31755 input_to_shortpath="${new_path}.cmd" 31756 else 31757 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 31758 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 31759 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31760 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31761 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 31762 fi 31763 else 31764 input_to_shortpath="$new_path" 31765 fi 31766 31767 # Call helper function which possibly converts this using DOS-style short mode. 31768 # If so, the updated path is stored in $new_path. 31769 new_path="$input_to_shortpath" 31770 31771 input_path="$input_to_shortpath" 31772 # Check if we need to convert this using DOS-style short mode. If the path 31773 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31774 # take no chances and rewrite it. 31775 # Note: m4 eats our [], so we need to use [ and ] instead. 31776 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31777 if test "x$has_forbidden_chars" != x; then 31778 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31779 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31780 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31781 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31782 # Going to short mode and back again did indeed matter. Since short mode is 31783 # case insensitive, let's make it lowercase to improve readability. 31784 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31785 # Now convert it back to Unix-style (cygpath) 31786 input_path=`$CYGPATH -u "$shortmode_path"` 31787 new_path="$input_path" 31788 fi 31789 fi 31790 31791 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31792 if test "x$test_cygdrive_prefix" = x; then 31793 # As a simple fix, exclude /usr/bin since it's not a real path. 31794 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31795 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31796 # a path prefixed by /cygdrive for fixpath to work. 31797 new_path="$CYGWIN_ROOT_PATH$input_path" 31798 fi 31799 fi 31800 31801 # remove trailing .exe if any 31802 new_path="${new_path/%.exe/}" 31803 31804 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31805 31806 # First separate the path from the arguments. This will split at the first 31807 # space. 31808 complete="$CC" 31809 path="${complete%% *}" 31810 tmp="$complete EOL" 31811 arguments="${tmp#* }" 31812 31813 # Input might be given as Windows format, start by converting to 31814 # unix format. 31815 new_path="$path" 31816 31817 windows_path="$new_path" 31818 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31819 unix_path=`$CYGPATH -u "$windows_path"` 31820 new_path="$unix_path" 31821 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31822 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31823 new_path="$unix_path" 31824 fi 31825 31826 31827 # Now try to locate executable using which 31828 new_path=`$WHICH "$new_path" 2> /dev/null` 31829 31830 if test "x$new_path" = x; then 31831 # Oops. Which didn't find the executable. 31832 # The splitting of arguments from the executable at a space might have been incorrect, 31833 # since paths with space are more likely in Windows. Give it another try with the whole 31834 # argument. 31835 path="$complete" 31836 arguments="EOL" 31837 new_path="$path" 31838 31839 windows_path="$new_path" 31840 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31841 unix_path=`$CYGPATH -u "$windows_path"` 31842 new_path="$unix_path" 31843 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31844 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31845 new_path="$unix_path" 31846 fi 31847 31848 31849 new_path=`$WHICH "$new_path" 2> /dev/null` 31850 # bat and cmd files are not always considered executable in MSYS causing which 31851 # to not find them 31852 if test "x$new_path" = x \ 31853 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31854 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31855 new_path="$path" 31856 31857 windows_path="$new_path" 31858 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31859 unix_path=`$CYGPATH -u "$windows_path"` 31860 new_path="$unix_path" 31861 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31862 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31863 new_path="$unix_path" 31864 fi 31865 31866 fi 31867 31868 if test "x$new_path" = x; then 31869 # It's still not found. Now this is an unrecoverable error. 31870 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 31871 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 31872 has_space=`$ECHO "$complete" | $GREP " "` 31873 if test "x$has_space" != x; then 31874 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31875 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31876 fi 31877 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 31878 fi 31879 fi 31880 31881 # Now new_path has a complete unix path to the binary 31882 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31883 # Keep paths in /bin as-is, but remove trailing .exe if any 31884 new_path="${new_path/%.exe/}" 31885 # Do not save /bin paths to all_fixpath_prefixes! 31886 else 31887 # Not in mixed or Windows style, start by that. 31888 new_path=`cmd //c echo $new_path` 31889 31890 input_path="$new_path" 31891 # Check if we need to convert this using DOS-style short mode. If the path 31892 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31893 # take no chances and rewrite it. 31894 # Note: m4 eats our [], so we need to use [ and ] instead. 31895 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31896 if test "x$has_forbidden_chars" != x; then 31897 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31898 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31899 fi 31900 31901 # Output is in $new_path 31902 31903 windows_path="$new_path" 31904 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31905 unix_path=`$CYGPATH -u "$windows_path"` 31906 new_path="$unix_path" 31907 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31908 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31909 new_path="$unix_path" 31910 fi 31911 31912 # remove trailing .exe if any 31913 new_path="${new_path/%.exe/}" 31914 31915 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31916 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31917 fi 31918 31919 else 31920 # We're on a unix platform. Hooray! :) 31921 # First separate the path from the arguments. This will split at the first 31922 # space. 31923 complete="$CC" 31924 path="${complete%% *}" 31925 tmp="$complete EOL" 31926 arguments="${tmp#* }" 31927 31928 # Cannot rely on the command "which" here since it doesn't always work. 31929 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31930 if test -z "$is_absolute_path"; then 31931 # Path to executable is not absolute. Find it. 31932 IFS_save="$IFS" 31933 IFS=: 31934 for p in $PATH; do 31935 if test -f "$p/$path" && test -x "$p/$path"; then 31936 new_path="$p/$path" 31937 break 31938 fi 31939 done 31940 IFS="$IFS_save" 31941 else 31942 # This is an absolute path, we can use it without further modifications. 31943 new_path="$path" 31944 fi 31945 31946 if test "x$new_path" = x; then 31947 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 31948 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 31949 has_space=`$ECHO "$complete" | $GREP " "` 31950 if test "x$has_space" != x; then 31951 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31952 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31953 fi 31954 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 31955 fi 31956 fi 31957 31958 # Now join together the path and the arguments once again 31959 if test "x$arguments" != xEOL; then 31960 new_complete="$new_path ${arguments% *}" 31961 else 31962 new_complete="$new_path" 31963 fi 31964 31965 if test "x$complete" != "x$new_complete"; then 31966 CC="$new_complete" 31967 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 31968 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 31969 fi 31970 fi 31971 31972 TEST_COMPILER="$CC" 31973 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 31974 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 31975 if test "x$OPENJDK_BUILD_OS" != xaix; then 31976 # FIXME: This test should not be needed anymore; we don't do that for any platform. 31977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 31978 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 31979 31980 if test "x$OPENJDK_BUILD_OS" != xwindows; then 31981 # Follow a chain of symbolic links. Use readlink 31982 # where it exists, else fall back to horribly 31983 # complicated shell code. 31984 if test "x$READLINK_TESTED" != yes; then 31985 # On MacOSX there is a readlink tool with a different 31986 # purpose than the GNU readlink tool. Check the found readlink. 31987 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 31988 if test "x$ISGNU" = x; then 31989 # A readlink that we do not know how to use. 31990 # Are there other non-GNU readlinks out there? 31991 READLINK_TESTED=yes 31992 READLINK= 31993 fi 31994 fi 31995 31996 if test "x$READLINK" != x; then 31997 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 31998 else 31999 # Save the current directory for restoring afterwards 32000 STARTDIR=$PWD 32001 COUNTER=0 32002 sym_link_dir=`$DIRNAME $TEST_COMPILER` 32003 sym_link_file=`$BASENAME $TEST_COMPILER` 32004 cd $sym_link_dir 32005 # Use -P flag to resolve symlinks in directories. 32006 cd `$THEPWDCMD -P` 32007 sym_link_dir=`$THEPWDCMD -P` 32008 # Resolve file symlinks 32009 while test $COUNTER -lt 20; do 32010 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 32011 if test "x$ISLINK" == x; then 32012 # This is not a symbolic link! We are done! 32013 break 32014 fi 32015 # Again resolve directory symlinks since the target of the just found 32016 # link could be in a different directory 32017 cd `$DIRNAME $ISLINK` 32018 sym_link_dir=`$THEPWDCMD -P` 32019 sym_link_file=`$BASENAME $ISLINK` 32020 let COUNTER=COUNTER+1 32021 done 32022 cd $STARTDIR 32023 TEST_COMPILER=$sym_link_dir/$sym_link_file 32024 fi 32025 fi 32026 32027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 32028 $as_echo "$TEST_COMPILER" >&6; } 32029 fi 32030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5 32031 $as_echo_n "checking if CC is disguised ccache... " >&6; } 32032 32033 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 32034 if test "x$COMPILER_BASENAME" = "xccache"; then 32035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 32036 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 32037 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 32038 # We want to control ccache invocation ourselves, so ignore this cc and try 32039 # searching again. 32040 32041 # Remove the path to the fake ccache cc from the PATH 32042 RETRY_COMPILER_SAVED_PATH="$PATH" 32043 COMPILER_DIRNAME=`$DIRNAME $CC` 32044 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 32045 32046 # Try again looking for our compiler 32047 if test -n "$ac_tool_prefix"; then 32048 for ac_prog in $TOOLCHAIN_CC_BINARY 32049 do 32050 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32051 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32053 $as_echo_n "checking for $ac_word... " >&6; } 32054 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then : 32055 $as_echo_n "(cached) " >&6 32056 else 32057 if test -n "$PROPER_COMPILER_CC"; then 32058 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test. 32059 else 32060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32061 for as_dir in $PATH 32062 do 32063 IFS=$as_save_IFS 32064 test -z "$as_dir" && as_dir=. 32065 for ac_exec_ext in '' $ac_executable_extensions; do 32066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32067 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog" 32068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32069 break 2 32070 fi 32071 done 32072 done 32073 IFS=$as_save_IFS 32074 32075 fi 32076 fi 32077 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC 32078 if test -n "$PROPER_COMPILER_CC"; then 32079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 32080 $as_echo "$PROPER_COMPILER_CC" >&6; } 32081 else 32082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32083 $as_echo "no" >&6; } 32084 fi 32085 32086 32087 test -n "$PROPER_COMPILER_CC" && break 32088 done 32089 fi 32090 if test -z "$PROPER_COMPILER_CC"; then 32091 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC 32092 for ac_prog in $TOOLCHAIN_CC_BINARY 32093 do 32094 # Extract the first word of "$ac_prog", so it can be a program name with args. 32095 set dummy $ac_prog; ac_word=$2 32096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32097 $as_echo_n "checking for $ac_word... " >&6; } 32098 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then : 32099 $as_echo_n "(cached) " >&6 32100 else 32101 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 32102 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test. 32103 else 32104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32105 for as_dir in $PATH 32106 do 32107 IFS=$as_save_IFS 32108 test -z "$as_dir" && as_dir=. 32109 for ac_exec_ext in '' $ac_executable_extensions; do 32110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32111 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog" 32112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32113 break 2 32114 fi 32115 done 32116 done 32117 IFS=$as_save_IFS 32118 32119 fi 32120 fi 32121 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC 32122 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 32123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5 32124 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; } 32125 else 32126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32127 $as_echo "no" >&6; } 32128 fi 32129 32130 32131 test -n "$ac_ct_PROPER_COMPILER_CC" && break 32132 done 32133 32134 if test "x$ac_ct_PROPER_COMPILER_CC" = x; then 32135 PROPER_COMPILER_CC="" 32136 else 32137 case $cross_compiling:$ac_tool_warned in 32138 yes:) 32139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32141 ac_tool_warned=yes ;; 32142 esac 32143 PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC 32144 fi 32145 fi 32146 32147 32148 # Only process if variable expands to non-empty 32149 32150 if test "x$PROPER_COMPILER_CC" != x; then 32151 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32152 32153 # First separate the path from the arguments. This will split at the first 32154 # space. 32155 complete="$PROPER_COMPILER_CC" 32156 path="${complete%% *}" 32157 tmp="$complete EOL" 32158 arguments="${tmp#* }" 32159 32160 # Input might be given as Windows format, start by converting to 32161 # unix format. 32162 new_path=`$CYGPATH -u "$path"` 32163 32164 # Now try to locate executable using which 32165 new_path=`$WHICH "$new_path" 2> /dev/null` 32166 # bat and cmd files are not always considered executable in cygwin causing which 32167 # to not find them 32168 if test "x$new_path" = x \ 32169 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32170 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32171 new_path=`$CYGPATH -u "$path"` 32172 fi 32173 if test "x$new_path" = x; then 32174 # Oops. Which didn't find the executable. 32175 # The splitting of arguments from the executable at a space might have been incorrect, 32176 # since paths with space are more likely in Windows. Give it another try with the whole 32177 # argument. 32178 path="$complete" 32179 arguments="EOL" 32180 new_path=`$CYGPATH -u "$path"` 32181 new_path=`$WHICH "$new_path" 2> /dev/null` 32182 # bat and cmd files are not always considered executable in cygwin causing which 32183 # to not find them 32184 if test "x$new_path" = x \ 32185 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32186 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32187 new_path=`$CYGPATH -u "$path"` 32188 fi 32189 if test "x$new_path" = x; then 32190 # It's still not found. Now this is an unrecoverable error. 32191 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 32192 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 32193 has_space=`$ECHO "$complete" | $GREP " "` 32194 if test "x$has_space" != x; then 32195 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32196 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32197 fi 32198 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 32199 fi 32200 fi 32201 32202 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32203 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32204 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32205 # "foo.exe" is OK but "foo" is an error. 32206 # 32207 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32208 # It is also a way to make sure we got the proper file name for the real test later on. 32209 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32210 if test "x$test_shortpath" = x; then 32211 # Short path failed, file does not exist as specified. 32212 # Try adding .exe or .cmd 32213 if test -f "${new_path}.exe"; then 32214 input_to_shortpath="${new_path}.exe" 32215 elif test -f "${new_path}.cmd"; then 32216 input_to_shortpath="${new_path}.cmd" 32217 else 32218 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5 32219 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;} 32220 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32221 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32222 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 32223 fi 32224 else 32225 input_to_shortpath="$new_path" 32226 fi 32227 32228 # Call helper function which possibly converts this using DOS-style short mode. 32229 # If so, the updated path is stored in $new_path. 32230 new_path="$input_to_shortpath" 32231 32232 input_path="$input_to_shortpath" 32233 # Check if we need to convert this using DOS-style short mode. If the path 32234 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32235 # take no chances and rewrite it. 32236 # Note: m4 eats our [], so we need to use [ and ] instead. 32237 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32238 if test "x$has_forbidden_chars" != x; then 32239 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32240 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32241 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32242 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32243 # Going to short mode and back again did indeed matter. Since short mode is 32244 # case insensitive, let's make it lowercase to improve readability. 32245 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32246 # Now convert it back to Unix-style (cygpath) 32247 input_path=`$CYGPATH -u "$shortmode_path"` 32248 new_path="$input_path" 32249 fi 32250 fi 32251 32252 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32253 if test "x$test_cygdrive_prefix" = x; then 32254 # As a simple fix, exclude /usr/bin since it's not a real path. 32255 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32256 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32257 # a path prefixed by /cygdrive for fixpath to work. 32258 new_path="$CYGWIN_ROOT_PATH$input_path" 32259 fi 32260 fi 32261 32262 # remove trailing .exe if any 32263 new_path="${new_path/%.exe/}" 32264 32265 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32266 32267 # First separate the path from the arguments. This will split at the first 32268 # space. 32269 complete="$PROPER_COMPILER_CC" 32270 path="${complete%% *}" 32271 tmp="$complete EOL" 32272 arguments="${tmp#* }" 32273 32274 # Input might be given as Windows format, start by converting to 32275 # unix format. 32276 new_path="$path" 32277 32278 windows_path="$new_path" 32279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32280 unix_path=`$CYGPATH -u "$windows_path"` 32281 new_path="$unix_path" 32282 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32283 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32284 new_path="$unix_path" 32285 fi 32286 32287 32288 # Now try to locate executable using which 32289 new_path=`$WHICH "$new_path" 2> /dev/null` 32290 32291 if test "x$new_path" = x; then 32292 # Oops. Which didn't find the executable. 32293 # The splitting of arguments from the executable at a space might have been incorrect, 32294 # since paths with space are more likely in Windows. Give it another try with the whole 32295 # argument. 32296 path="$complete" 32297 arguments="EOL" 32298 new_path="$path" 32299 32300 windows_path="$new_path" 32301 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32302 unix_path=`$CYGPATH -u "$windows_path"` 32303 new_path="$unix_path" 32304 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32305 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32306 new_path="$unix_path" 32307 fi 32308 32309 32310 new_path=`$WHICH "$new_path" 2> /dev/null` 32311 # bat and cmd files are not always considered executable in MSYS causing which 32312 # to not find them 32313 if test "x$new_path" = x \ 32314 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32315 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32316 new_path="$path" 32317 32318 windows_path="$new_path" 32319 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32320 unix_path=`$CYGPATH -u "$windows_path"` 32321 new_path="$unix_path" 32322 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32323 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32324 new_path="$unix_path" 32325 fi 32326 32327 fi 32328 32329 if test "x$new_path" = x; then 32330 # It's still not found. Now this is an unrecoverable error. 32331 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 32332 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 32333 has_space=`$ECHO "$complete" | $GREP " "` 32334 if test "x$has_space" != x; then 32335 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32336 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32337 fi 32338 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 32339 fi 32340 fi 32341 32342 # Now new_path has a complete unix path to the binary 32343 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32344 # Keep paths in /bin as-is, but remove trailing .exe if any 32345 new_path="${new_path/%.exe/}" 32346 # Do not save /bin paths to all_fixpath_prefixes! 32347 else 32348 # Not in mixed or Windows style, start by that. 32349 new_path=`cmd //c echo $new_path` 32350 32351 input_path="$new_path" 32352 # Check if we need to convert this using DOS-style short mode. If the path 32353 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32354 # take no chances and rewrite it. 32355 # Note: m4 eats our [], so we need to use [ and ] instead. 32356 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32357 if test "x$has_forbidden_chars" != x; then 32358 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32359 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32360 fi 32361 32362 # Output is in $new_path 32363 32364 windows_path="$new_path" 32365 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32366 unix_path=`$CYGPATH -u "$windows_path"` 32367 new_path="$unix_path" 32368 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32369 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32370 new_path="$unix_path" 32371 fi 32372 32373 # remove trailing .exe if any 32374 new_path="${new_path/%.exe/}" 32375 32376 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32377 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32378 fi 32379 32380 else 32381 # We're on a unix platform. Hooray! :) 32382 # First separate the path from the arguments. This will split at the first 32383 # space. 32384 complete="$PROPER_COMPILER_CC" 32385 path="${complete%% *}" 32386 tmp="$complete EOL" 32387 arguments="${tmp#* }" 32388 32389 # Cannot rely on the command "which" here since it doesn't always work. 32390 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32391 if test -z "$is_absolute_path"; then 32392 # Path to executable is not absolute. Find it. 32393 IFS_save="$IFS" 32394 IFS=: 32395 for p in $PATH; do 32396 if test -f "$p/$path" && test -x "$p/$path"; then 32397 new_path="$p/$path" 32398 break 32399 fi 32400 done 32401 IFS="$IFS_save" 32402 else 32403 # This is an absolute path, we can use it without further modifications. 32404 new_path="$path" 32405 fi 32406 32407 if test "x$new_path" = x; then 32408 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 32409 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 32410 has_space=`$ECHO "$complete" | $GREP " "` 32411 if test "x$has_space" != x; then 32412 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32413 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32414 fi 32415 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 32416 fi 32417 fi 32418 32419 # Now join together the path and the arguments once again 32420 if test "x$arguments" != xEOL; then 32421 new_complete="$new_path ${arguments% *}" 32422 else 32423 new_complete="$new_path" 32424 fi 32425 32426 if test "x$complete" != "x$new_complete"; then 32427 PROPER_COMPILER_CC="$new_complete" 32428 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5 32429 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;} 32430 fi 32431 fi 32432 32433 PATH="$RETRY_COMPILER_SAVED_PATH" 32434 32435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5 32436 $as_echo_n "checking for resolved symbolic links for CC... " >&6; } 32437 32438 if test "x$OPENJDK_BUILD_OS" != xwindows; then 32439 # Follow a chain of symbolic links. Use readlink 32440 # where it exists, else fall back to horribly 32441 # complicated shell code. 32442 if test "x$READLINK_TESTED" != yes; then 32443 # On MacOSX there is a readlink tool with a different 32444 # purpose than the GNU readlink tool. Check the found readlink. 32445 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 32446 if test "x$ISGNU" = x; then 32447 # A readlink that we do not know how to use. 32448 # Are there other non-GNU readlinks out there? 32449 READLINK_TESTED=yes 32450 READLINK= 32451 fi 32452 fi 32453 32454 if test "x$READLINK" != x; then 32455 PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC` 32456 else 32457 # Save the current directory for restoring afterwards 32458 STARTDIR=$PWD 32459 COUNTER=0 32460 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC` 32461 sym_link_file=`$BASENAME $PROPER_COMPILER_CC` 32462 cd $sym_link_dir 32463 # Use -P flag to resolve symlinks in directories. 32464 cd `$THEPWDCMD -P` 32465 sym_link_dir=`$THEPWDCMD -P` 32466 # Resolve file symlinks 32467 while test $COUNTER -lt 20; do 32468 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 32469 if test "x$ISLINK" == x; then 32470 # This is not a symbolic link! We are done! 32471 break 32472 fi 32473 # Again resolve directory symlinks since the target of the just found 32474 # link could be in a different directory 32475 cd `$DIRNAME $ISLINK` 32476 sym_link_dir=`$THEPWDCMD -P` 32477 sym_link_file=`$BASENAME $ISLINK` 32478 let COUNTER=COUNTER+1 32479 done 32480 cd $STARTDIR 32481 PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file 32482 fi 32483 fi 32484 32485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 32486 $as_echo "$PROPER_COMPILER_CC" >&6; } 32487 CC="$PROPER_COMPILER_CC" 32488 else 32489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5 32490 $as_echo "no, keeping CC" >&6; } 32491 fi 32492 32493 32494 COMPILER=$CC 32495 COMPILER_NAME=$COMPILER_NAME 32496 32497 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 32498 # cc -V output typically looks like 32499 # cc: Sun C 5.12 Linux_i386 2011/11/16 32500 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 32501 # Check that this is likely to be the Solaris Studio cc. 32502 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 32503 if test $? -ne 0; then 32504 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 32505 { $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 32506 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 32507 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 32508 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 32509 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 32510 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 32511 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 32512 fi 32513 # Remove usage instructions (if present), and 32514 # collapse compiler output into a single line 32515 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 32516 $SED -e 's/ *[Uu]sage:.*//'` 32517 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 32518 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 32519 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 32520 # xlc -qversion output typically looks like 32521 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 32522 # Version: 11.01.0000.0015 32523 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 32524 # Check that this is likely to be the IBM XL C compiler. 32525 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 32526 if test $? -ne 0; then 32527 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 32528 { $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 32529 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 32530 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 32531 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 32532 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 32533 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 32534 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 32535 fi 32536 # Collapse compiler output into a single line 32537 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 32538 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 32539 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 32540 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 32541 # There is no specific version flag, but all output starts with a version string. 32542 # First line typically looks something like: 32543 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 32544 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 32545 # Check that this is likely to be Microsoft CL.EXE. 32546 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 32547 if test $? -ne 0; then 32548 { $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 32549 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 32550 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 32551 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 32552 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 32553 fi 32554 # Collapse compiler output into a single line 32555 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 32556 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 32557 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 32558 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 32559 # gcc --version output typically looks like 32560 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 32561 # Copyright (C) 2013 Free Software Foundation, Inc. 32562 # This is free software; see the source for copying conditions. There is NO 32563 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 32564 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 32565 # Check that this is likely to be GCC. 32566 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 32567 if test $? -ne 0; then 32568 { $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 32569 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 32570 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 32571 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 32572 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 32573 fi 32574 # Remove Copyright and legalese from version string, and 32575 # collapse into a single line 32576 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 32577 $SED -e 's/ *Copyright .*//'` 32578 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 32579 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 32580 elif test "x$TOOLCHAIN_TYPE" = xclang; then 32581 # clang --version output typically looks like 32582 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 32583 # clang version 3.3 (tags/RELEASE_33/final) 32584 # or 32585 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 32586 # Target: x86_64-pc-linux-gnu 32587 # Thread model: posix 32588 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 32589 # Check that this is likely to be clang 32590 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 32591 if test $? -ne 0; then 32592 { $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 32593 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 32594 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 32595 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 32596 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 32597 fi 32598 # Collapse compiler output into a single line 32599 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 32600 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 32601 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 32602 else 32603 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 32604 fi 32605 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 32606 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 32607 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 32608 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 32609 32610 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 32611 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 32612 32613 32614 # Now that we have resolved CC ourself, let autoconf have its go at it 32615 ac_ext=c 32616 ac_cpp='$CPP $CPPFLAGS' 32617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32619 ac_compiler_gnu=$ac_cv_c_compiler_gnu 32620 if test -n "$ac_tool_prefix"; then 32621 for ac_prog in $CC 32622 do 32623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32624 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32626 $as_echo_n "checking for $ac_word... " >&6; } 32627 if ${ac_cv_prog_CC+:} false; then : 32628 $as_echo_n "(cached) " >&6 32629 else 32630 if test -n "$CC"; then 32631 ac_cv_prog_CC="$CC" # Let the user override the test. 32632 else 32633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32634 for as_dir in $PATH 32635 do 32636 IFS=$as_save_IFS 32637 test -z "$as_dir" && as_dir=. 32638 for ac_exec_ext in '' $ac_executable_extensions; do 32639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32640 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 32641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32642 break 2 32643 fi 32644 done 32645 done 32646 IFS=$as_save_IFS 32647 32648 fi 32649 fi 32650 CC=$ac_cv_prog_CC 32651 if test -n "$CC"; then 32652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 32653 $as_echo "$CC" >&6; } 32654 else 32655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32656 $as_echo "no" >&6; } 32657 fi 32658 32659 32660 test -n "$CC" && break 32661 done 32662 fi 32663 if test -z "$CC"; then 32664 ac_ct_CC=$CC 32665 for ac_prog in $CC 32666 do 32667 # Extract the first word of "$ac_prog", so it can be a program name with args. 32668 set dummy $ac_prog; ac_word=$2 32669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32670 $as_echo_n "checking for $ac_word... " >&6; } 32671 if ${ac_cv_prog_ac_ct_CC+:} false; then : 32672 $as_echo_n "(cached) " >&6 32673 else 32674 if test -n "$ac_ct_CC"; then 32675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 32676 else 32677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32678 for as_dir in $PATH 32679 do 32680 IFS=$as_save_IFS 32681 test -z "$as_dir" && as_dir=. 32682 for ac_exec_ext in '' $ac_executable_extensions; do 32683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32684 ac_cv_prog_ac_ct_CC="$ac_prog" 32685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32686 break 2 32687 fi 32688 done 32689 done 32690 IFS=$as_save_IFS 32691 32692 fi 32693 fi 32694 ac_ct_CC=$ac_cv_prog_ac_ct_CC 32695 if test -n "$ac_ct_CC"; then 32696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 32697 $as_echo "$ac_ct_CC" >&6; } 32698 else 32699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32700 $as_echo "no" >&6; } 32701 fi 32702 32703 32704 test -n "$ac_ct_CC" && break 32705 done 32706 32707 if test "x$ac_ct_CC" = x; then 32708 CC="" 32709 else 32710 case $cross_compiling:$ac_tool_warned in 32711 yes:) 32712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32714 ac_tool_warned=yes ;; 32715 esac 32716 CC=$ac_ct_CC 32717 fi 32718 fi 32719 32720 32721 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32723 as_fn_error $? "no acceptable C compiler found in \$PATH 32724 See \`config.log' for more details" "$LINENO" 5; } 32725 32726 # Provide some information about the compiler. 32727 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 32728 set X $ac_compile 32729 ac_compiler=$2 32730 for ac_option in --version -v -V -qversion; do 32731 { { ac_try="$ac_compiler $ac_option >&5" 32732 case "(($ac_try" in 32733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32734 *) ac_try_echo=$ac_try;; 32735 esac 32736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32737 $as_echo "$ac_try_echo"; } >&5 32738 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 32739 ac_status=$? 32740 if test -s conftest.err; then 32741 sed '10a\ 32742 ... rest of stderr output deleted ... 32743 10q' conftest.err >conftest.er1 32744 cat conftest.er1 >&5 32745 fi 32746 rm -f conftest.er1 conftest.err 32747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32748 test $ac_status = 0; } 32749 done 32750 32751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32752 /* end confdefs.h. */ 32753 32754 int 32755 main () 32756 { 32757 32758 ; 32759 return 0; 32760 } 32761 _ACEOF 32762 ac_clean_files_save=$ac_clean_files 32763 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 32764 # Try to create an executable without -o first, disregard a.out. 32765 # It will help us diagnose broken compilers, and finding out an intuition 32766 # of exeext. 32767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 32768 $as_echo_n "checking whether the C compiler works... " >&6; } 32769 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 32770 32771 # The possible output files: 32772 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 32773 32774 ac_rmfiles= 32775 for ac_file in $ac_files 32776 do 32777 case $ac_file in 32778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 32779 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 32780 esac 32781 done 32782 rm -f $ac_rmfiles 32783 32784 if { { ac_try="$ac_link_default" 32785 case "(($ac_try" in 32786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32787 *) ac_try_echo=$ac_try;; 32788 esac 32789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32790 $as_echo "$ac_try_echo"; } >&5 32791 (eval "$ac_link_default") 2>&5 32792 ac_status=$? 32793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32794 test $ac_status = 0; }; then : 32795 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 32796 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 32797 # in a Makefile. We should not override ac_cv_exeext if it was cached, 32798 # so that the user can short-circuit this test for compilers unknown to 32799 # Autoconf. 32800 for ac_file in $ac_files '' 32801 do 32802 test -f "$ac_file" || continue 32803 case $ac_file in 32804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 32805 ;; 32806 [ab].out ) 32807 # We found the default executable, but exeext='' is most 32808 # certainly right. 32809 break;; 32810 *.* ) 32811 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 32812 then :; else 32813 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 32814 fi 32815 # We set ac_cv_exeext here because the later test for it is not 32816 # safe: cross compilers may not add the suffix if given an `-o' 32817 # argument, so we may need to know it at that point already. 32818 # Even if this section looks crufty: it has the advantage of 32819 # actually working. 32820 break;; 32821 * ) 32822 break;; 32823 esac 32824 done 32825 test "$ac_cv_exeext" = no && ac_cv_exeext= 32826 32827 else 32828 ac_file='' 32829 fi 32830 if test -z "$ac_file"; then : 32831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32832 $as_echo "no" >&6; } 32833 $as_echo "$as_me: failed program was:" >&5 32834 sed 's/^/| /' conftest.$ac_ext >&5 32835 32836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32838 as_fn_error 77 "C compiler cannot create executables 32839 See \`config.log' for more details" "$LINENO" 5; } 32840 else 32841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32842 $as_echo "yes" >&6; } 32843 fi 32844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 32845 $as_echo_n "checking for C compiler default output file name... " >&6; } 32846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 32847 $as_echo "$ac_file" >&6; } 32848 ac_exeext=$ac_cv_exeext 32849 32850 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 32851 ac_clean_files=$ac_clean_files_save 32852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 32853 $as_echo_n "checking for suffix of executables... " >&6; } 32854 if { { ac_try="$ac_link" 32855 case "(($ac_try" in 32856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32857 *) ac_try_echo=$ac_try;; 32858 esac 32859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32860 $as_echo "$ac_try_echo"; } >&5 32861 (eval "$ac_link") 2>&5 32862 ac_status=$? 32863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32864 test $ac_status = 0; }; then : 32865 # If both `conftest.exe' and `conftest' are `present' (well, observable) 32866 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 32867 # work properly (i.e., refer to `conftest.exe'), while it won't with 32868 # `rm'. 32869 for ac_file in conftest.exe conftest conftest.*; do 32870 test -f "$ac_file" || continue 32871 case $ac_file in 32872 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 32873 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 32874 break;; 32875 * ) break;; 32876 esac 32877 done 32878 else 32879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32881 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 32882 See \`config.log' for more details" "$LINENO" 5; } 32883 fi 32884 rm -f conftest conftest$ac_cv_exeext 32885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 32886 $as_echo "$ac_cv_exeext" >&6; } 32887 32888 rm -f conftest.$ac_ext 32889 EXEEXT=$ac_cv_exeext 32890 ac_exeext=$EXEEXT 32891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32892 /* end confdefs.h. */ 32893 #include <stdio.h> 32894 int 32895 main () 32896 { 32897 FILE *f = fopen ("conftest.out", "w"); 32898 return ferror (f) || fclose (f) != 0; 32899 32900 ; 32901 return 0; 32902 } 32903 _ACEOF 32904 ac_clean_files="$ac_clean_files conftest.out" 32905 # Check that the compiler produces executables we can run. If not, either 32906 # the compiler is broken, or we cross compile. 32907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 32908 $as_echo_n "checking whether we are cross compiling... " >&6; } 32909 if test "$cross_compiling" != yes; then 32910 { { ac_try="$ac_link" 32911 case "(($ac_try" in 32912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32913 *) ac_try_echo=$ac_try;; 32914 esac 32915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32916 $as_echo "$ac_try_echo"; } >&5 32917 (eval "$ac_link") 2>&5 32918 ac_status=$? 32919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32920 test $ac_status = 0; } 32921 if { ac_try='./conftest$ac_cv_exeext' 32922 { { case "(($ac_try" in 32923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32924 *) ac_try_echo=$ac_try;; 32925 esac 32926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32927 $as_echo "$ac_try_echo"; } >&5 32928 (eval "$ac_try") 2>&5 32929 ac_status=$? 32930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32931 test $ac_status = 0; }; }; then 32932 cross_compiling=no 32933 else 32934 if test "$cross_compiling" = maybe; then 32935 cross_compiling=yes 32936 else 32937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32939 as_fn_error $? "cannot run C compiled programs. 32940 If you meant to cross compile, use \`--host'. 32941 See \`config.log' for more details" "$LINENO" 5; } 32942 fi 32943 fi 32944 fi 32945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 32946 $as_echo "$cross_compiling" >&6; } 32947 32948 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 32949 ac_clean_files=$ac_clean_files_save 32950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 32951 $as_echo_n "checking for suffix of object files... " >&6; } 32952 if ${ac_cv_objext+:} false; then : 32953 $as_echo_n "(cached) " >&6 32954 else 32955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32956 /* end confdefs.h. */ 32957 32958 int 32959 main () 32960 { 32961 32962 ; 32963 return 0; 32964 } 32965 _ACEOF 32966 rm -f conftest.o conftest.obj 32967 if { { ac_try="$ac_compile" 32968 case "(($ac_try" in 32969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32970 *) ac_try_echo=$ac_try;; 32971 esac 32972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32973 $as_echo "$ac_try_echo"; } >&5 32974 (eval "$ac_compile") 2>&5 32975 ac_status=$? 32976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32977 test $ac_status = 0; }; then : 32978 for ac_file in conftest.o conftest.obj conftest.*; do 32979 test -f "$ac_file" || continue; 32980 case $ac_file in 32981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 32982 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 32983 break;; 32984 esac 32985 done 32986 else 32987 $as_echo "$as_me: failed program was:" >&5 32988 sed 's/^/| /' conftest.$ac_ext >&5 32989 32990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32992 as_fn_error $? "cannot compute suffix of object files: cannot compile 32993 See \`config.log' for more details" "$LINENO" 5; } 32994 fi 32995 rm -f conftest.$ac_cv_objext conftest.$ac_ext 32996 fi 32997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 32998 $as_echo "$ac_cv_objext" >&6; } 32999 OBJEXT=$ac_cv_objext 33000 ac_objext=$OBJEXT 33001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 33002 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 33003 if ${ac_cv_c_compiler_gnu+:} false; then : 33004 $as_echo_n "(cached) " >&6 33005 else 33006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33007 /* end confdefs.h. */ 33008 33009 int 33010 main () 33011 { 33012 #ifndef __GNUC__ 33013 choke me 33014 #endif 33015 33016 ; 33017 return 0; 33018 } 33019 _ACEOF 33020 if ac_fn_c_try_compile "$LINENO"; then : 33021 ac_compiler_gnu=yes 33022 else 33023 ac_compiler_gnu=no 33024 fi 33025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33026 ac_cv_c_compiler_gnu=$ac_compiler_gnu 33027 33028 fi 33029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 33030 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 33031 if test $ac_compiler_gnu = yes; then 33032 GCC=yes 33033 else 33034 GCC= 33035 fi 33036 ac_test_CFLAGS=${CFLAGS+set} 33037 ac_save_CFLAGS=$CFLAGS 33038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 33039 $as_echo_n "checking whether $CC accepts -g... " >&6; } 33040 if ${ac_cv_prog_cc_g+:} false; then : 33041 $as_echo_n "(cached) " >&6 33042 else 33043 ac_save_c_werror_flag=$ac_c_werror_flag 33044 ac_c_werror_flag=yes 33045 ac_cv_prog_cc_g=no 33046 CFLAGS="-g" 33047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33048 /* end confdefs.h. */ 33049 33050 int 33051 main () 33052 { 33053 33054 ; 33055 return 0; 33056 } 33057 _ACEOF 33058 if ac_fn_c_try_compile "$LINENO"; then : 33059 ac_cv_prog_cc_g=yes 33060 else 33061 CFLAGS="" 33062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33063 /* end confdefs.h. */ 33064 33065 int 33066 main () 33067 { 33068 33069 ; 33070 return 0; 33071 } 33072 _ACEOF 33073 if ac_fn_c_try_compile "$LINENO"; then : 33074 33075 else 33076 ac_c_werror_flag=$ac_save_c_werror_flag 33077 CFLAGS="-g" 33078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33079 /* end confdefs.h. */ 33080 33081 int 33082 main () 33083 { 33084 33085 ; 33086 return 0; 33087 } 33088 _ACEOF 33089 if ac_fn_c_try_compile "$LINENO"; then : 33090 ac_cv_prog_cc_g=yes 33091 fi 33092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33093 fi 33094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33095 fi 33096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33097 ac_c_werror_flag=$ac_save_c_werror_flag 33098 fi 33099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 33100 $as_echo "$ac_cv_prog_cc_g" >&6; } 33101 if test "$ac_test_CFLAGS" = set; then 33102 CFLAGS=$ac_save_CFLAGS 33103 elif test $ac_cv_prog_cc_g = yes; then 33104 if test "$GCC" = yes; then 33105 CFLAGS="-g -O2" 33106 else 33107 CFLAGS="-g" 33108 fi 33109 else 33110 if test "$GCC" = yes; then 33111 CFLAGS="-O2" 33112 else 33113 CFLAGS= 33114 fi 33115 fi 33116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 33117 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 33118 if ${ac_cv_prog_cc_c89+:} false; then : 33119 $as_echo_n "(cached) " >&6 33120 else 33121 ac_cv_prog_cc_c89=no 33122 ac_save_CC=$CC 33123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33124 /* end confdefs.h. */ 33125 #include <stdarg.h> 33126 #include <stdio.h> 33127 struct stat; 33128 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 33129 struct buf { int x; }; 33130 FILE * (*rcsopen) (struct buf *, struct stat *, int); 33131 static char *e (p, i) 33132 char **p; 33133 int i; 33134 { 33135 return p[i]; 33136 } 33137 static char *f (char * (*g) (char **, int), char **p, ...) 33138 { 33139 char *s; 33140 va_list v; 33141 va_start (v,p); 33142 s = g (p, va_arg (v,int)); 33143 va_end (v); 33144 return s; 33145 } 33146 33147 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 33148 function prototypes and stuff, but not '\xHH' hex character constants. 33149 These don't provoke an error unfortunately, instead are silently treated 33150 as 'x'. The following induces an error, until -std is added to get 33151 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 33152 array size at least. It's necessary to write '\x00'==0 to get something 33153 that's true only with -std. */ 33154 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 33155 33156 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 33157 inside strings and character constants. */ 33158 #define FOO(x) 'x' 33159 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 33160 33161 int test (int i, double x); 33162 struct s1 {int (*f) (int a);}; 33163 struct s2 {int (*f) (double a);}; 33164 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 33165 int argc; 33166 char **argv; 33167 int 33168 main () 33169 { 33170 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 33171 ; 33172 return 0; 33173 } 33174 _ACEOF 33175 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 33176 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 33177 do 33178 CC="$ac_save_CC $ac_arg" 33179 if ac_fn_c_try_compile "$LINENO"; then : 33180 ac_cv_prog_cc_c89=$ac_arg 33181 fi 33182 rm -f core conftest.err conftest.$ac_objext 33183 test "x$ac_cv_prog_cc_c89" != "xno" && break 33184 done 33185 rm -f conftest.$ac_ext 33186 CC=$ac_save_CC 33187 33188 fi 33189 # AC_CACHE_VAL 33190 case "x$ac_cv_prog_cc_c89" in 33191 x) 33192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 33193 $as_echo "none needed" >&6; } ;; 33194 xno) 33195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 33196 $as_echo "unsupported" >&6; } ;; 33197 *) 33198 CC="$CC $ac_cv_prog_cc_c89" 33199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 33200 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 33201 esac 33202 if test "x$ac_cv_prog_cc_c89" != xno; then : 33203 33204 fi 33205 33206 ac_ext=cpp 33207 ac_cpp='$CXXCPP $CPPFLAGS' 33208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 33211 33212 33213 33214 COMPILER_NAME=C++ 33215 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 33216 33217 if test "x$CXX" != x; then 33218 # User has supplied compiler name already, always let that override. 33219 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 33220 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 33221 if test "x`basename $CXX`" = "x$CXX"; then 33222 # A command without a complete path is provided, search $PATH. 33223 33224 for ac_prog in $CXX 33225 do 33226 # Extract the first word of "$ac_prog", so it can be a program name with args. 33227 set dummy $ac_prog; ac_word=$2 33228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33229 $as_echo_n "checking for $ac_word... " >&6; } 33230 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 33231 $as_echo_n "(cached) " >&6 33232 else 33233 case $POTENTIAL_CXX in 33234 [\\/]* | ?:[\\/]*) 33235 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 33236 ;; 33237 *) 33238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33239 for as_dir in $PATH 33240 do 33241 IFS=$as_save_IFS 33242 test -z "$as_dir" && as_dir=. 33243 for ac_exec_ext in '' $ac_executable_extensions; do 33244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33245 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 33246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33247 break 2 33248 fi 33249 done 33250 done 33251 IFS=$as_save_IFS 33252 33253 ;; 33254 esac 33255 fi 33256 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 33257 if test -n "$POTENTIAL_CXX"; then 33258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 33259 $as_echo "$POTENTIAL_CXX" >&6; } 33260 else 33261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33262 $as_echo "no" >&6; } 33263 fi 33264 33265 33266 test -n "$POTENTIAL_CXX" && break 33267 done 33268 33269 if test "x$POTENTIAL_CXX" != x; then 33270 CXX=$POTENTIAL_CXX 33271 else 33272 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 33273 fi 33274 else 33275 # Otherwise it might already be a complete path 33276 if test ! -x "$CXX"; then 33277 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 33278 fi 33279 fi 33280 else 33281 # No user supplied value. Locate compiler ourselves. 33282 33283 # If we are cross compiling, assume cross compilation tools follows the 33284 # cross compilation standard where they are prefixed with the autoconf 33285 # standard name for the target. For example the binary 33286 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 33287 # If we are not cross compiling, then the default compiler name will be 33288 # used. 33289 33290 CXX= 33291 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 33292 # before checking the rest of the PATH. 33293 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 33294 # step, this should not be necessary. 33295 if test -n "$TOOLCHAIN_PATH"; then 33296 PATH_save="$PATH" 33297 PATH="$TOOLCHAIN_PATH" 33298 for ac_prog in $SEARCH_LIST 33299 do 33300 # Extract the first word of "$ac_prog", so it can be a program name with args. 33301 set dummy $ac_prog; ac_word=$2 33302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33303 $as_echo_n "checking for $ac_word... " >&6; } 33304 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 33305 $as_echo_n "(cached) " >&6 33306 else 33307 case $TOOLCHAIN_PATH_CXX in 33308 [\\/]* | ?:[\\/]*) 33309 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 33310 ;; 33311 *) 33312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33313 for as_dir in $PATH 33314 do 33315 IFS=$as_save_IFS 33316 test -z "$as_dir" && as_dir=. 33317 for ac_exec_ext in '' $ac_executable_extensions; do 33318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33319 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 33320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33321 break 2 33322 fi 33323 done 33324 done 33325 IFS=$as_save_IFS 33326 33327 ;; 33328 esac 33329 fi 33330 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 33331 if test -n "$TOOLCHAIN_PATH_CXX"; then 33332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 33333 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 33334 else 33335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33336 $as_echo "no" >&6; } 33337 fi 33338 33339 33340 test -n "$TOOLCHAIN_PATH_CXX" && break 33341 done 33342 33343 CXX=$TOOLCHAIN_PATH_CXX 33344 PATH="$PATH_save" 33345 fi 33346 33347 # AC_PATH_PROGS can't be run multiple times with the same variable, 33348 # so create a new name for this run. 33349 if test "x$CXX" = x; then 33350 for ac_prog in $SEARCH_LIST 33351 do 33352 # Extract the first word of "$ac_prog", so it can be a program name with args. 33353 set dummy $ac_prog; ac_word=$2 33354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33355 $as_echo_n "checking for $ac_word... " >&6; } 33356 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 33357 $as_echo_n "(cached) " >&6 33358 else 33359 case $POTENTIAL_CXX in 33360 [\\/]* | ?:[\\/]*) 33361 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 33362 ;; 33363 *) 33364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33365 for as_dir in $PATH 33366 do 33367 IFS=$as_save_IFS 33368 test -z "$as_dir" && as_dir=. 33369 for ac_exec_ext in '' $ac_executable_extensions; do 33370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33371 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 33372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33373 break 2 33374 fi 33375 done 33376 done 33377 IFS=$as_save_IFS 33378 33379 ;; 33380 esac 33381 fi 33382 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 33383 if test -n "$POTENTIAL_CXX"; then 33384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 33385 $as_echo "$POTENTIAL_CXX" >&6; } 33386 else 33387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33388 $as_echo "no" >&6; } 33389 fi 33390 33391 33392 test -n "$POTENTIAL_CXX" && break 33393 done 33394 33395 CXX=$POTENTIAL_CXX 33396 fi 33397 33398 if test "x$CXX" = x; then 33399 33400 # Print a helpful message on how to acquire the necessary build dependency. 33401 # devkit is the help tag: freetype, cups, alsa etc 33402 MISSING_DEPENDENCY=devkit 33403 33404 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33405 cygwin_help $MISSING_DEPENDENCY 33406 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33407 msys_help $MISSING_DEPENDENCY 33408 else 33409 PKGHANDLER_COMMAND= 33410 33411 case $PKGHANDLER in 33412 apt-get) 33413 apt_help $MISSING_DEPENDENCY ;; 33414 yum) 33415 yum_help $MISSING_DEPENDENCY ;; 33416 port) 33417 port_help $MISSING_DEPENDENCY ;; 33418 pkgutil) 33419 pkgutil_help $MISSING_DEPENDENCY ;; 33420 pkgadd) 33421 pkgadd_help $MISSING_DEPENDENCY ;; 33422 esac 33423 33424 if test "x$PKGHANDLER_COMMAND" != x; then 33425 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 33426 fi 33427 fi 33428 33429 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 33430 fi 33431 fi 33432 33433 # Now we have a compiler binary in CXX. Make sure it's okay. 33434 33435 # Only process if variable expands to non-empty 33436 33437 if test "x$CXX" != x; then 33438 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33439 33440 # First separate the path from the arguments. This will split at the first 33441 # space. 33442 complete="$CXX" 33443 path="${complete%% *}" 33444 tmp="$complete EOL" 33445 arguments="${tmp#* }" 33446 33447 # Input might be given as Windows format, start by converting to 33448 # unix format. 33449 new_path=`$CYGPATH -u "$path"` 33450 33451 # Now try to locate executable using which 33452 new_path=`$WHICH "$new_path" 2> /dev/null` 33453 # bat and cmd files are not always considered executable in cygwin causing which 33454 # to not find them 33455 if test "x$new_path" = x \ 33456 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33457 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33458 new_path=`$CYGPATH -u "$path"` 33459 fi 33460 if test "x$new_path" = x; then 33461 # Oops. Which didn't find the executable. 33462 # The splitting of arguments from the executable at a space might have been incorrect, 33463 # since paths with space are more likely in Windows. Give it another try with the whole 33464 # argument. 33465 path="$complete" 33466 arguments="EOL" 33467 new_path=`$CYGPATH -u "$path"` 33468 new_path=`$WHICH "$new_path" 2> /dev/null` 33469 # bat and cmd files are not always considered executable in cygwin causing which 33470 # to not find them 33471 if test "x$new_path" = x \ 33472 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33473 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33474 new_path=`$CYGPATH -u "$path"` 33475 fi 33476 if test "x$new_path" = x; then 33477 # It's still not found. Now this is an unrecoverable error. 33478 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 33479 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 33480 has_space=`$ECHO "$complete" | $GREP " "` 33481 if test "x$has_space" != x; then 33482 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33483 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33484 fi 33485 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 33486 fi 33487 fi 33488 33489 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33490 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33491 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33492 # "foo.exe" is OK but "foo" is an error. 33493 # 33494 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33495 # It is also a way to make sure we got the proper file name for the real test later on. 33496 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33497 if test "x$test_shortpath" = x; then 33498 # Short path failed, file does not exist as specified. 33499 # Try adding .exe or .cmd 33500 if test -f "${new_path}.exe"; then 33501 input_to_shortpath="${new_path}.exe" 33502 elif test -f "${new_path}.cmd"; then 33503 input_to_shortpath="${new_path}.cmd" 33504 else 33505 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 33506 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 33507 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33508 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33509 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 33510 fi 33511 else 33512 input_to_shortpath="$new_path" 33513 fi 33514 33515 # Call helper function which possibly converts this using DOS-style short mode. 33516 # If so, the updated path is stored in $new_path. 33517 new_path="$input_to_shortpath" 33518 33519 input_path="$input_to_shortpath" 33520 # Check if we need to convert this using DOS-style short mode. If the path 33521 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33522 # take no chances and rewrite it. 33523 # Note: m4 eats our [], so we need to use [ and ] instead. 33524 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33525 if test "x$has_forbidden_chars" != x; then 33526 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33527 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33528 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33529 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33530 # Going to short mode and back again did indeed matter. Since short mode is 33531 # case insensitive, let's make it lowercase to improve readability. 33532 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33533 # Now convert it back to Unix-style (cygpath) 33534 input_path=`$CYGPATH -u "$shortmode_path"` 33535 new_path="$input_path" 33536 fi 33537 fi 33538 33539 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33540 if test "x$test_cygdrive_prefix" = x; then 33541 # As a simple fix, exclude /usr/bin since it's not a real path. 33542 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33543 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33544 # a path prefixed by /cygdrive for fixpath to work. 33545 new_path="$CYGWIN_ROOT_PATH$input_path" 33546 fi 33547 fi 33548 33549 # remove trailing .exe if any 33550 new_path="${new_path/%.exe/}" 33551 33552 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33553 33554 # First separate the path from the arguments. This will split at the first 33555 # space. 33556 complete="$CXX" 33557 path="${complete%% *}" 33558 tmp="$complete EOL" 33559 arguments="${tmp#* }" 33560 33561 # Input might be given as Windows format, start by converting to 33562 # unix format. 33563 new_path="$path" 33564 33565 windows_path="$new_path" 33566 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33567 unix_path=`$CYGPATH -u "$windows_path"` 33568 new_path="$unix_path" 33569 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33570 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33571 new_path="$unix_path" 33572 fi 33573 33574 33575 # Now try to locate executable using which 33576 new_path=`$WHICH "$new_path" 2> /dev/null` 33577 33578 if test "x$new_path" = x; then 33579 # Oops. Which didn't find the executable. 33580 # The splitting of arguments from the executable at a space might have been incorrect, 33581 # since paths with space are more likely in Windows. Give it another try with the whole 33582 # argument. 33583 path="$complete" 33584 arguments="EOL" 33585 new_path="$path" 33586 33587 windows_path="$new_path" 33588 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33589 unix_path=`$CYGPATH -u "$windows_path"` 33590 new_path="$unix_path" 33591 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33592 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33593 new_path="$unix_path" 33594 fi 33595 33596 33597 new_path=`$WHICH "$new_path" 2> /dev/null` 33598 # bat and cmd files are not always considered executable in MSYS causing which 33599 # to not find them 33600 if test "x$new_path" = x \ 33601 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33602 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33603 new_path="$path" 33604 33605 windows_path="$new_path" 33606 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33607 unix_path=`$CYGPATH -u "$windows_path"` 33608 new_path="$unix_path" 33609 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33610 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33611 new_path="$unix_path" 33612 fi 33613 33614 fi 33615 33616 if test "x$new_path" = x; then 33617 # It's still not found. Now this is an unrecoverable error. 33618 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 33619 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 33620 has_space=`$ECHO "$complete" | $GREP " "` 33621 if test "x$has_space" != x; then 33622 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33623 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33624 fi 33625 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 33626 fi 33627 fi 33628 33629 # Now new_path has a complete unix path to the binary 33630 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33631 # Keep paths in /bin as-is, but remove trailing .exe if any 33632 new_path="${new_path/%.exe/}" 33633 # Do not save /bin paths to all_fixpath_prefixes! 33634 else 33635 # Not in mixed or Windows style, start by that. 33636 new_path=`cmd //c echo $new_path` 33637 33638 input_path="$new_path" 33639 # Check if we need to convert this using DOS-style short mode. If the path 33640 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33641 # take no chances and rewrite it. 33642 # Note: m4 eats our [], so we need to use [ and ] instead. 33643 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33644 if test "x$has_forbidden_chars" != x; then 33645 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33646 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33647 fi 33648 33649 # Output is in $new_path 33650 33651 windows_path="$new_path" 33652 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33653 unix_path=`$CYGPATH -u "$windows_path"` 33654 new_path="$unix_path" 33655 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33656 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33657 new_path="$unix_path" 33658 fi 33659 33660 # remove trailing .exe if any 33661 new_path="${new_path/%.exe/}" 33662 33663 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33664 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33665 fi 33666 33667 else 33668 # We're on a unix platform. Hooray! :) 33669 # First separate the path from the arguments. This will split at the first 33670 # space. 33671 complete="$CXX" 33672 path="${complete%% *}" 33673 tmp="$complete EOL" 33674 arguments="${tmp#* }" 33675 33676 # Cannot rely on the command "which" here since it doesn't always work. 33677 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33678 if test -z "$is_absolute_path"; then 33679 # Path to executable is not absolute. Find it. 33680 IFS_save="$IFS" 33681 IFS=: 33682 for p in $PATH; do 33683 if test -f "$p/$path" && test -x "$p/$path"; then 33684 new_path="$p/$path" 33685 break 33686 fi 33687 done 33688 IFS="$IFS_save" 33689 else 33690 # This is an absolute path, we can use it without further modifications. 33691 new_path="$path" 33692 fi 33693 33694 if test "x$new_path" = x; then 33695 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 33696 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 33697 has_space=`$ECHO "$complete" | $GREP " "` 33698 if test "x$has_space" != x; then 33699 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33700 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33701 fi 33702 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 33703 fi 33704 fi 33705 33706 # Now join together the path and the arguments once again 33707 if test "x$arguments" != xEOL; then 33708 new_complete="$new_path ${arguments% *}" 33709 else 33710 new_complete="$new_path" 33711 fi 33712 33713 if test "x$complete" != "x$new_complete"; then 33714 CXX="$new_complete" 33715 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 33716 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 33717 fi 33718 fi 33719 33720 TEST_COMPILER="$CXX" 33721 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 33722 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 33723 if test "x$OPENJDK_BUILD_OS" != xaix; then 33724 # FIXME: This test should not be needed anymore; we don't do that for any platform. 33725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 33726 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 33727 33728 if test "x$OPENJDK_BUILD_OS" != xwindows; then 33729 # Follow a chain of symbolic links. Use readlink 33730 # where it exists, else fall back to horribly 33731 # complicated shell code. 33732 if test "x$READLINK_TESTED" != yes; then 33733 # On MacOSX there is a readlink tool with a different 33734 # purpose than the GNU readlink tool. Check the found readlink. 33735 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 33736 if test "x$ISGNU" = x; then 33737 # A readlink that we do not know how to use. 33738 # Are there other non-GNU readlinks out there? 33739 READLINK_TESTED=yes 33740 READLINK= 33741 fi 33742 fi 33743 33744 if test "x$READLINK" != x; then 33745 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 33746 else 33747 # Save the current directory for restoring afterwards 33748 STARTDIR=$PWD 33749 COUNTER=0 33750 sym_link_dir=`$DIRNAME $TEST_COMPILER` 33751 sym_link_file=`$BASENAME $TEST_COMPILER` 33752 cd $sym_link_dir 33753 # Use -P flag to resolve symlinks in directories. 33754 cd `$THEPWDCMD -P` 33755 sym_link_dir=`$THEPWDCMD -P` 33756 # Resolve file symlinks 33757 while test $COUNTER -lt 20; do 33758 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 33759 if test "x$ISLINK" == x; then 33760 # This is not a symbolic link! We are done! 33761 break 33762 fi 33763 # Again resolve directory symlinks since the target of the just found 33764 # link could be in a different directory 33765 cd `$DIRNAME $ISLINK` 33766 sym_link_dir=`$THEPWDCMD -P` 33767 sym_link_file=`$BASENAME $ISLINK` 33768 let COUNTER=COUNTER+1 33769 done 33770 cd $STARTDIR 33771 TEST_COMPILER=$sym_link_dir/$sym_link_file 33772 fi 33773 fi 33774 33775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 33776 $as_echo "$TEST_COMPILER" >&6; } 33777 fi 33778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5 33779 $as_echo_n "checking if CXX is disguised ccache... " >&6; } 33780 33781 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 33782 if test "x$COMPILER_BASENAME" = "xccache"; then 33783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 33784 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 33785 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 33786 # We want to control ccache invocation ourselves, so ignore this cc and try 33787 # searching again. 33788 33789 # Remove the path to the fake ccache cc from the PATH 33790 RETRY_COMPILER_SAVED_PATH="$PATH" 33791 COMPILER_DIRNAME=`$DIRNAME $CXX` 33792 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 33793 33794 # Try again looking for our compiler 33795 if test -n "$ac_tool_prefix"; then 33796 for ac_prog in $TOOLCHAIN_CXX_BINARY 33797 do 33798 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 33799 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 33800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33801 $as_echo_n "checking for $ac_word... " >&6; } 33802 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then : 33803 $as_echo_n "(cached) " >&6 33804 else 33805 if test -n "$PROPER_COMPILER_CXX"; then 33806 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test. 33807 else 33808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33809 for as_dir in $PATH 33810 do 33811 IFS=$as_save_IFS 33812 test -z "$as_dir" && as_dir=. 33813 for ac_exec_ext in '' $ac_executable_extensions; do 33814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33815 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog" 33816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33817 break 2 33818 fi 33819 done 33820 done 33821 IFS=$as_save_IFS 33822 33823 fi 33824 fi 33825 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX 33826 if test -n "$PROPER_COMPILER_CXX"; then 33827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 33828 $as_echo "$PROPER_COMPILER_CXX" >&6; } 33829 else 33830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33831 $as_echo "no" >&6; } 33832 fi 33833 33834 33835 test -n "$PROPER_COMPILER_CXX" && break 33836 done 33837 fi 33838 if test -z "$PROPER_COMPILER_CXX"; then 33839 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX 33840 for ac_prog in $TOOLCHAIN_CXX_BINARY 33841 do 33842 # Extract the first word of "$ac_prog", so it can be a program name with args. 33843 set dummy $ac_prog; ac_word=$2 33844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33845 $as_echo_n "checking for $ac_word... " >&6; } 33846 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then : 33847 $as_echo_n "(cached) " >&6 33848 else 33849 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 33850 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test. 33851 else 33852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33853 for as_dir in $PATH 33854 do 33855 IFS=$as_save_IFS 33856 test -z "$as_dir" && as_dir=. 33857 for ac_exec_ext in '' $ac_executable_extensions; do 33858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33859 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog" 33860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33861 break 2 33862 fi 33863 done 33864 done 33865 IFS=$as_save_IFS 33866 33867 fi 33868 fi 33869 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX 33870 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 33871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5 33872 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; } 33873 else 33874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33875 $as_echo "no" >&6; } 33876 fi 33877 33878 33879 test -n "$ac_ct_PROPER_COMPILER_CXX" && break 33880 done 33881 33882 if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then 33883 PROPER_COMPILER_CXX="" 33884 else 33885 case $cross_compiling:$ac_tool_warned in 33886 yes:) 33887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33889 ac_tool_warned=yes ;; 33890 esac 33891 PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX 33892 fi 33893 fi 33894 33895 33896 # Only process if variable expands to non-empty 33897 33898 if test "x$PROPER_COMPILER_CXX" != x; then 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="$PROPER_COMPILER_CXX" 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 PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 33940 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, 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 PROPER_COMPILER_CXX" "$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 PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5 33967 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, 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 PROPER_COMPILER_CXX" "$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-style (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="$PROPER_COMPILER_CXX" 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 PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 34080 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, 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 PROPER_COMPILER_CXX" "$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 unix platform. Hooray! :) 34130 # First separate the path from the arguments. This will split at the first 34131 # space. 34132 complete="$PROPER_COMPILER_CXX" 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 PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 34157 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, 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 PROPER_COMPILER_CXX" "$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 PROPER_COMPILER_CXX="$new_complete" 34176 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5 34177 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;} 34178 fi 34179 fi 34180 34181 PATH="$RETRY_COMPILER_SAVED_PATH" 34182 34183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5 34184 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; } 34185 34186 if test "x$OPENJDK_BUILD_OS" != xwindows; then 34187 # Follow a chain of symbolic links. Use readlink 34188 # where it exists, else fall back to horribly 34189 # complicated shell code. 34190 if test "x$READLINK_TESTED" != yes; then 34191 # On MacOSX there is a readlink tool with a different 34192 # purpose than the GNU readlink tool. Check the found readlink. 34193 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 34194 if test "x$ISGNU" = x; then 34195 # A readlink that we do not know how to use. 34196 # Are there other non-GNU readlinks out there? 34197 READLINK_TESTED=yes 34198 READLINK= 34199 fi 34200 fi 34201 34202 if test "x$READLINK" != x; then 34203 PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX` 34204 else 34205 # Save the current directory for restoring afterwards 34206 STARTDIR=$PWD 34207 COUNTER=0 34208 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX` 34209 sym_link_file=`$BASENAME $PROPER_COMPILER_CXX` 34210 cd $sym_link_dir 34211 # Use -P flag to resolve symlinks in directories. 34212 cd `$THEPWDCMD -P` 34213 sym_link_dir=`$THEPWDCMD -P` 34214 # Resolve file symlinks 34215 while test $COUNTER -lt 20; do 34216 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 34217 if test "x$ISLINK" == x; then 34218 # This is not a symbolic link! We are done! 34219 break 34220 fi 34221 # Again resolve directory symlinks since the target of the just found 34222 # link could be in a different directory 34223 cd `$DIRNAME $ISLINK` 34224 sym_link_dir=`$THEPWDCMD -P` 34225 sym_link_file=`$BASENAME $ISLINK` 34226 let COUNTER=COUNTER+1 34227 done 34228 cd $STARTDIR 34229 PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file 34230 fi 34231 fi 34232 34233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 34234 $as_echo "$PROPER_COMPILER_CXX" >&6; } 34235 CXX="$PROPER_COMPILER_CXX" 34236 else 34237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5 34238 $as_echo "no, keeping CXX" >&6; } 34239 fi 34240 34241 34242 COMPILER=$CXX 34243 COMPILER_NAME=$COMPILER_NAME 34244 34245 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 34246 # cc -V output typically looks like 34247 # cc: Sun C 5.12 Linux_i386 2011/11/16 34248 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 34249 # Check that this is likely to be the Solaris Studio cc. 34250 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 34251 if test $? -ne 0; then 34252 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34253 { $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 34254 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34255 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34256 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34257 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34258 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34259 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34260 fi 34261 # Remove usage instructions (if present), and 34262 # collapse compiler output into a single line 34263 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34264 $SED -e 's/ *[Uu]sage:.*//'` 34265 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34266 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 34267 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 34268 # xlc -qversion output typically looks like 34269 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 34270 # Version: 11.01.0000.0015 34271 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 34272 # Check that this is likely to be the IBM XL C compiler. 34273 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 34274 if test $? -ne 0; then 34275 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34276 { $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 34277 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34278 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34279 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34280 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34281 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34282 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34283 fi 34284 # Collapse compiler output into a single line 34285 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34286 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34287 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 34288 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 34289 # There is no specific version flag, but all output starts with a version string. 34290 # First line typically looks something like: 34291 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 34292 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 34293 # Check that this is likely to be Microsoft CL.EXE. 34294 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 34295 if test $? -ne 0; then 34296 { $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 34297 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34298 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34299 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34300 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34301 fi 34302 # Collapse compiler output into a single line 34303 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34304 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34305 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 34306 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 34307 # gcc --version output typically looks like 34308 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 34309 # Copyright (C) 2013 Free Software Foundation, Inc. 34310 # This is free software; see the source for copying conditions. There is NO 34311 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 34312 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34313 # Check that this is likely to be GCC. 34314 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 34315 if test $? -ne 0; then 34316 { $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 34317 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34318 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 34319 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 34320 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34321 fi 34322 # Remove Copyright and legalese from version string, and 34323 # collapse into a single line 34324 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34325 $SED -e 's/ *Copyright .*//'` 34326 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34327 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 34328 elif test "x$TOOLCHAIN_TYPE" = xclang; then 34329 # clang --version output typically looks like 34330 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 34331 # clang version 3.3 (tags/RELEASE_33/final) 34332 # or 34333 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 34334 # Target: x86_64-pc-linux-gnu 34335 # Thread model: posix 34336 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34337 # Check that this is likely to be clang 34338 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 34339 if test $? -ne 0; then 34340 { $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 34341 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34342 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34343 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34344 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34345 fi 34346 # Collapse compiler output into a single line 34347 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34348 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34349 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 34350 else 34351 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 34352 fi 34353 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 34354 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 34355 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 34356 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 34357 34358 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 34359 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 34360 34361 34362 # Now that we have resolved CXX ourself, let autoconf have its go at it 34363 ac_ext=cpp 34364 ac_cpp='$CXXCPP $CPPFLAGS' 34365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 34368 if test -z "$CXX"; then 34369 if test -n "$CCC"; then 34370 CXX=$CCC 34371 else 34372 if test -n "$ac_tool_prefix"; then 34373 for ac_prog in $CXX 34374 do 34375 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 34376 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 34377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34378 $as_echo_n "checking for $ac_word... " >&6; } 34379 if ${ac_cv_prog_CXX+:} false; then : 34380 $as_echo_n "(cached) " >&6 34381 else 34382 if test -n "$CXX"; then 34383 ac_cv_prog_CXX="$CXX" # Let the user override the test. 34384 else 34385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34386 for as_dir in $PATH 34387 do 34388 IFS=$as_save_IFS 34389 test -z "$as_dir" && as_dir=. 34390 for ac_exec_ext in '' $ac_executable_extensions; do 34391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34392 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 34393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34394 break 2 34395 fi 34396 done 34397 done 34398 IFS=$as_save_IFS 34399 34400 fi 34401 fi 34402 CXX=$ac_cv_prog_CXX 34403 if test -n "$CXX"; then 34404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 34405 $as_echo "$CXX" >&6; } 34406 else 34407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34408 $as_echo "no" >&6; } 34409 fi 34410 34411 34412 test -n "$CXX" && break 34413 done 34414 fi 34415 if test -z "$CXX"; then 34416 ac_ct_CXX=$CXX 34417 for ac_prog in $CXX 34418 do 34419 # Extract the first word of "$ac_prog", so it can be a program name with args. 34420 set dummy $ac_prog; ac_word=$2 34421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34422 $as_echo_n "checking for $ac_word... " >&6; } 34423 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 34424 $as_echo_n "(cached) " >&6 34425 else 34426 if test -n "$ac_ct_CXX"; then 34427 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 34428 else 34429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34430 for as_dir in $PATH 34431 do 34432 IFS=$as_save_IFS 34433 test -z "$as_dir" && as_dir=. 34434 for ac_exec_ext in '' $ac_executable_extensions; do 34435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34436 ac_cv_prog_ac_ct_CXX="$ac_prog" 34437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34438 break 2 34439 fi 34440 done 34441 done 34442 IFS=$as_save_IFS 34443 34444 fi 34445 fi 34446 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 34447 if test -n "$ac_ct_CXX"; then 34448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 34449 $as_echo "$ac_ct_CXX" >&6; } 34450 else 34451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34452 $as_echo "no" >&6; } 34453 fi 34454 34455 34456 test -n "$ac_ct_CXX" && break 34457 done 34458 34459 if test "x$ac_ct_CXX" = x; then 34460 CXX="g++" 34461 else 34462 case $cross_compiling:$ac_tool_warned in 34463 yes:) 34464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 34465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 34466 ac_tool_warned=yes ;; 34467 esac 34468 CXX=$ac_ct_CXX 34469 fi 34470 fi 34471 34472 fi 34473 fi 34474 # Provide some information about the compiler. 34475 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 34476 set X $ac_compile 34477 ac_compiler=$2 34478 for ac_option in --version -v -V -qversion; do 34479 { { ac_try="$ac_compiler $ac_option >&5" 34480 case "(($ac_try" in 34481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34482 *) ac_try_echo=$ac_try;; 34483 esac 34484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34485 $as_echo "$ac_try_echo"; } >&5 34486 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 34487 ac_status=$? 34488 if test -s conftest.err; then 34489 sed '10a\ 34490 ... rest of stderr output deleted ... 34491 10q' conftest.err >conftest.er1 34492 cat conftest.er1 >&5 34493 fi 34494 rm -f conftest.er1 conftest.err 34495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34496 test $ac_status = 0; } 34497 done 34498 34499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 34500 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 34501 if ${ac_cv_cxx_compiler_gnu+:} false; then : 34502 $as_echo_n "(cached) " >&6 34503 else 34504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34505 /* end confdefs.h. */ 34506 34507 int 34508 main () 34509 { 34510 #ifndef __GNUC__ 34511 choke me 34512 #endif 34513 34514 ; 34515 return 0; 34516 } 34517 _ACEOF 34518 if ac_fn_cxx_try_compile "$LINENO"; then : 34519 ac_compiler_gnu=yes 34520 else 34521 ac_compiler_gnu=no 34522 fi 34523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34524 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 34525 34526 fi 34527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 34528 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 34529 if test $ac_compiler_gnu = yes; then 34530 GXX=yes 34531 else 34532 GXX= 34533 fi 34534 ac_test_CXXFLAGS=${CXXFLAGS+set} 34535 ac_save_CXXFLAGS=$CXXFLAGS 34536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 34537 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 34538 if ${ac_cv_prog_cxx_g+:} false; then : 34539 $as_echo_n "(cached) " >&6 34540 else 34541 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 34542 ac_cxx_werror_flag=yes 34543 ac_cv_prog_cxx_g=no 34544 CXXFLAGS="-g" 34545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34546 /* end confdefs.h. */ 34547 34548 int 34549 main () 34550 { 34551 34552 ; 34553 return 0; 34554 } 34555 _ACEOF 34556 if ac_fn_cxx_try_compile "$LINENO"; then : 34557 ac_cv_prog_cxx_g=yes 34558 else 34559 CXXFLAGS="" 34560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34561 /* end confdefs.h. */ 34562 34563 int 34564 main () 34565 { 34566 34567 ; 34568 return 0; 34569 } 34570 _ACEOF 34571 if ac_fn_cxx_try_compile "$LINENO"; then : 34572 34573 else 34574 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 34575 CXXFLAGS="-g" 34576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34577 /* end confdefs.h. */ 34578 34579 int 34580 main () 34581 { 34582 34583 ; 34584 return 0; 34585 } 34586 _ACEOF 34587 if ac_fn_cxx_try_compile "$LINENO"; then : 34588 ac_cv_prog_cxx_g=yes 34589 fi 34590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34591 fi 34592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34593 fi 34594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34595 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 34596 fi 34597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 34598 $as_echo "$ac_cv_prog_cxx_g" >&6; } 34599 if test "$ac_test_CXXFLAGS" = set; then 34600 CXXFLAGS=$ac_save_CXXFLAGS 34601 elif test $ac_cv_prog_cxx_g = yes; then 34602 if test "$GXX" = yes; then 34603 CXXFLAGS="-g -O2" 34604 else 34605 CXXFLAGS="-g" 34606 fi 34607 else 34608 if test "$GXX" = yes; then 34609 CXXFLAGS="-O2" 34610 else 34611 CXXFLAGS= 34612 fi 34613 fi 34614 ac_ext=cpp 34615 ac_cpp='$CXXCPP $CPPFLAGS' 34616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 34619 34620 34621 # 34622 # Setup the preprocessor (CPP and CXXCPP) 34623 # 34624 ac_ext=c 34625 ac_cpp='$CPP $CPPFLAGS' 34626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34628 ac_compiler_gnu=$ac_cv_c_compiler_gnu 34629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 34630 $as_echo_n "checking how to run the C preprocessor... " >&6; } 34631 # On Suns, sometimes $CPP names a directory. 34632 if test -n "$CPP" && test -d "$CPP"; then 34633 CPP= 34634 fi 34635 if test -z "$CPP"; then 34636 if ${ac_cv_prog_CPP+:} false; then : 34637 $as_echo_n "(cached) " >&6 34638 else 34639 # Double quotes because CPP needs to be expanded 34640 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 34641 do 34642 ac_preproc_ok=false 34643 for ac_c_preproc_warn_flag in '' yes 34644 do 34645 # Use a header file that comes with gcc, so configuring glibc 34646 # with a fresh cross-compiler works. 34647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 34648 # <limits.h> exists even on freestanding compilers. 34649 # On the NeXT, cc -E runs the code through the compiler's parser, 34650 # not just through cpp. "Syntax error" is here to catch this case. 34651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34652 /* end confdefs.h. */ 34653 #ifdef __STDC__ 34654 # include <limits.h> 34655 #else 34656 # include <assert.h> 34657 #endif 34658 Syntax error 34659 _ACEOF 34660 if ac_fn_c_try_cpp "$LINENO"; then : 34661 34662 else 34663 # Broken: fails on valid input. 34664 continue 34665 fi 34666 rm -f conftest.err conftest.i conftest.$ac_ext 34667 34668 # OK, works on sane cases. Now check whether nonexistent headers 34669 # can be detected and how. 34670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34671 /* end confdefs.h. */ 34672 #include <ac_nonexistent.h> 34673 _ACEOF 34674 if ac_fn_c_try_cpp "$LINENO"; then : 34675 # Broken: success on invalid input. 34676 continue 34677 else 34678 # Passes both tests. 34679 ac_preproc_ok=: 34680 break 34681 fi 34682 rm -f conftest.err conftest.i conftest.$ac_ext 34683 34684 done 34685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 34686 rm -f conftest.i conftest.err conftest.$ac_ext 34687 if $ac_preproc_ok; then : 34688 break 34689 fi 34690 34691 done 34692 ac_cv_prog_CPP=$CPP 34693 34694 fi 34695 CPP=$ac_cv_prog_CPP 34696 else 34697 ac_cv_prog_CPP=$CPP 34698 fi 34699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 34700 $as_echo "$CPP" >&6; } 34701 ac_preproc_ok=false 34702 for ac_c_preproc_warn_flag in '' yes 34703 do 34704 # Use a header file that comes with gcc, so configuring glibc 34705 # with a fresh cross-compiler works. 34706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 34707 # <limits.h> exists even on freestanding compilers. 34708 # On the NeXT, cc -E runs the code through the compiler's parser, 34709 # not just through cpp. "Syntax error" is here to catch this case. 34710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34711 /* end confdefs.h. */ 34712 #ifdef __STDC__ 34713 # include <limits.h> 34714 #else 34715 # include <assert.h> 34716 #endif 34717 Syntax error 34718 _ACEOF 34719 if ac_fn_c_try_cpp "$LINENO"; then : 34720 34721 else 34722 # Broken: fails on valid input. 34723 continue 34724 fi 34725 rm -f conftest.err conftest.i conftest.$ac_ext 34726 34727 # OK, works on sane cases. Now check whether nonexistent headers 34728 # can be detected and how. 34729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34730 /* end confdefs.h. */ 34731 #include <ac_nonexistent.h> 34732 _ACEOF 34733 if ac_fn_c_try_cpp "$LINENO"; then : 34734 # Broken: success on invalid input. 34735 continue 34736 else 34737 # Passes both tests. 34738 ac_preproc_ok=: 34739 break 34740 fi 34741 rm -f conftest.err conftest.i conftest.$ac_ext 34742 34743 done 34744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 34745 rm -f conftest.i conftest.err conftest.$ac_ext 34746 if $ac_preproc_ok; then : 34747 34748 else 34749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34751 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 34752 See \`config.log' for more details" "$LINENO" 5; } 34753 fi 34754 34755 ac_ext=cpp 34756 ac_cpp='$CXXCPP $CPPFLAGS' 34757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 34760 34761 34762 # Only process if variable expands to non-empty 34763 34764 if test "x$CPP" != x; then 34765 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34766 34767 # First separate the path from the arguments. This will split at the first 34768 # space. 34769 complete="$CPP" 34770 path="${complete%% *}" 34771 tmp="$complete EOL" 34772 arguments="${tmp#* }" 34773 34774 # Input might be given as Windows format, start by converting to 34775 # unix format. 34776 new_path=`$CYGPATH -u "$path"` 34777 34778 # Now try to locate executable using which 34779 new_path=`$WHICH "$new_path" 2> /dev/null` 34780 # bat and cmd files are not always considered executable in cygwin causing which 34781 # to not find them 34782 if test "x$new_path" = x \ 34783 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34784 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34785 new_path=`$CYGPATH -u "$path"` 34786 fi 34787 if test "x$new_path" = x; then 34788 # Oops. Which didn't find the executable. 34789 # The splitting of arguments from the executable at a space might have been incorrect, 34790 # since paths with space are more likely in Windows. Give it another try with the whole 34791 # argument. 34792 path="$complete" 34793 arguments="EOL" 34794 new_path=`$CYGPATH -u "$path"` 34795 new_path=`$WHICH "$new_path" 2> /dev/null` 34796 # bat and cmd files are not always considered executable in cygwin causing which 34797 # to not find them 34798 if test "x$new_path" = x \ 34799 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34800 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34801 new_path=`$CYGPATH -u "$path"` 34802 fi 34803 if test "x$new_path" = x; then 34804 # It's still not found. Now this is an unrecoverable error. 34805 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 34806 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 34807 has_space=`$ECHO "$complete" | $GREP " "` 34808 if test "x$has_space" != x; then 34809 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34810 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34811 fi 34812 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 34813 fi 34814 fi 34815 34816 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34817 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34818 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34819 # "foo.exe" is OK but "foo" is an error. 34820 # 34821 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34822 # It is also a way to make sure we got the proper file name for the real test later on. 34823 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34824 if test "x$test_shortpath" = x; then 34825 # Short path failed, file does not exist as specified. 34826 # Try adding .exe or .cmd 34827 if test -f "${new_path}.exe"; then 34828 input_to_shortpath="${new_path}.exe" 34829 elif test -f "${new_path}.cmd"; then 34830 input_to_shortpath="${new_path}.cmd" 34831 else 34832 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 34833 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 34834 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34835 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34836 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 34837 fi 34838 else 34839 input_to_shortpath="$new_path" 34840 fi 34841 34842 # Call helper function which possibly converts this using DOS-style short mode. 34843 # If so, the updated path is stored in $new_path. 34844 new_path="$input_to_shortpath" 34845 34846 input_path="$input_to_shortpath" 34847 # Check if we need to convert this using DOS-style short mode. If the path 34848 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34849 # take no chances and rewrite it. 34850 # Note: m4 eats our [], so we need to use [ and ] instead. 34851 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34852 if test "x$has_forbidden_chars" != x; then 34853 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34854 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34855 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34856 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34857 # Going to short mode and back again did indeed matter. Since short mode is 34858 # case insensitive, let's make it lowercase to improve readability. 34859 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34860 # Now convert it back to Unix-style (cygpath) 34861 input_path=`$CYGPATH -u "$shortmode_path"` 34862 new_path="$input_path" 34863 fi 34864 fi 34865 34866 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34867 if test "x$test_cygdrive_prefix" = x; then 34868 # As a simple fix, exclude /usr/bin since it's not a real path. 34869 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34870 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34871 # a path prefixed by /cygdrive for fixpath to work. 34872 new_path="$CYGWIN_ROOT_PATH$input_path" 34873 fi 34874 fi 34875 34876 # remove trailing .exe if any 34877 new_path="${new_path/%.exe/}" 34878 34879 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34880 34881 # First separate the path from the arguments. This will split at the first 34882 # space. 34883 complete="$CPP" 34884 path="${complete%% *}" 34885 tmp="$complete EOL" 34886 arguments="${tmp#* }" 34887 34888 # Input might be given as Windows format, start by converting to 34889 # unix format. 34890 new_path="$path" 34891 34892 windows_path="$new_path" 34893 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34894 unix_path=`$CYGPATH -u "$windows_path"` 34895 new_path="$unix_path" 34896 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34897 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34898 new_path="$unix_path" 34899 fi 34900 34901 34902 # Now try to locate executable using which 34903 new_path=`$WHICH "$new_path" 2> /dev/null` 34904 34905 if test "x$new_path" = x; then 34906 # Oops. Which didn't find the executable. 34907 # The splitting of arguments from the executable at a space might have been incorrect, 34908 # since paths with space are more likely in Windows. Give it another try with the whole 34909 # argument. 34910 path="$complete" 34911 arguments="EOL" 34912 new_path="$path" 34913 34914 windows_path="$new_path" 34915 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34916 unix_path=`$CYGPATH -u "$windows_path"` 34917 new_path="$unix_path" 34918 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34919 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34920 new_path="$unix_path" 34921 fi 34922 34923 34924 new_path=`$WHICH "$new_path" 2> /dev/null` 34925 # bat and cmd files are not always considered executable in MSYS causing which 34926 # to not find them 34927 if test "x$new_path" = x \ 34928 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34929 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34930 new_path="$path" 34931 34932 windows_path="$new_path" 34933 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34934 unix_path=`$CYGPATH -u "$windows_path"` 34935 new_path="$unix_path" 34936 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34937 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34938 new_path="$unix_path" 34939 fi 34940 34941 fi 34942 34943 if test "x$new_path" = x; then 34944 # It's still not found. Now this is an unrecoverable error. 34945 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 34946 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 34947 has_space=`$ECHO "$complete" | $GREP " "` 34948 if test "x$has_space" != x; then 34949 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34950 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34951 fi 34952 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 34953 fi 34954 fi 34955 34956 # Now new_path has a complete unix path to the binary 34957 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34958 # Keep paths in /bin as-is, but remove trailing .exe if any 34959 new_path="${new_path/%.exe/}" 34960 # Do not save /bin paths to all_fixpath_prefixes! 34961 else 34962 # Not in mixed or Windows style, start by that. 34963 new_path=`cmd //c echo $new_path` 34964 34965 input_path="$new_path" 34966 # Check if we need to convert this using DOS-style short mode. If the path 34967 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34968 # take no chances and rewrite it. 34969 # Note: m4 eats our [], so we need to use [ and ] instead. 34970 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34971 if test "x$has_forbidden_chars" != x; then 34972 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34973 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34974 fi 34975 34976 # Output is in $new_path 34977 34978 windows_path="$new_path" 34979 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34980 unix_path=`$CYGPATH -u "$windows_path"` 34981 new_path="$unix_path" 34982 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34983 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34984 new_path="$unix_path" 34985 fi 34986 34987 # remove trailing .exe if any 34988 new_path="${new_path/%.exe/}" 34989 34990 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34991 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34992 fi 34993 34994 else 34995 # We're on a unix platform. Hooray! :) 34996 # First separate the path from the arguments. This will split at the first 34997 # space. 34998 complete="$CPP" 34999 path="${complete%% *}" 35000 tmp="$complete EOL" 35001 arguments="${tmp#* }" 35002 35003 # Cannot rely on the command "which" here since it doesn't always work. 35004 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35005 if test -z "$is_absolute_path"; then 35006 # Path to executable is not absolute. Find it. 35007 IFS_save="$IFS" 35008 IFS=: 35009 for p in $PATH; do 35010 if test -f "$p/$path" && test -x "$p/$path"; then 35011 new_path="$p/$path" 35012 break 35013 fi 35014 done 35015 IFS="$IFS_save" 35016 else 35017 # This is an absolute path, we can use it without further modifications. 35018 new_path="$path" 35019 fi 35020 35021 if test "x$new_path" = x; then 35022 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 35023 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 35024 has_space=`$ECHO "$complete" | $GREP " "` 35025 if test "x$has_space" != x; then 35026 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35027 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35028 fi 35029 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35030 fi 35031 fi 35032 35033 # Now join together the path and the arguments once again 35034 if test "x$arguments" != xEOL; then 35035 new_complete="$new_path ${arguments% *}" 35036 else 35037 new_complete="$new_path" 35038 fi 35039 35040 if test "x$complete" != "x$new_complete"; then 35041 CPP="$new_complete" 35042 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 35043 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 35044 fi 35045 fi 35046 35047 ac_ext=cpp 35048 ac_cpp='$CXXCPP $CPPFLAGS' 35049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 35053 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 35054 if test -z "$CXXCPP"; then 35055 if ${ac_cv_prog_CXXCPP+:} false; then : 35056 $as_echo_n "(cached) " >&6 35057 else 35058 # Double quotes because CXXCPP needs to be expanded 35059 for CXXCPP in "$CXX -E" "/lib/cpp" 35060 do 35061 ac_preproc_ok=false 35062 for ac_cxx_preproc_warn_flag in '' yes 35063 do 35064 # Use a header file that comes with gcc, so configuring glibc 35065 # with a fresh cross-compiler works. 35066 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35067 # <limits.h> exists even on freestanding compilers. 35068 # On the NeXT, cc -E runs the code through the compiler's parser, 35069 # not just through cpp. "Syntax error" is here to catch this case. 35070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35071 /* end confdefs.h. */ 35072 #ifdef __STDC__ 35073 # include <limits.h> 35074 #else 35075 # include <assert.h> 35076 #endif 35077 Syntax error 35078 _ACEOF 35079 if ac_fn_cxx_try_cpp "$LINENO"; then : 35080 35081 else 35082 # Broken: fails on valid input. 35083 continue 35084 fi 35085 rm -f conftest.err conftest.i conftest.$ac_ext 35086 35087 # OK, works on sane cases. Now check whether nonexistent headers 35088 # can be detected and how. 35089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35090 /* end confdefs.h. */ 35091 #include <ac_nonexistent.h> 35092 _ACEOF 35093 if ac_fn_cxx_try_cpp "$LINENO"; then : 35094 # Broken: success on invalid input. 35095 continue 35096 else 35097 # Passes both tests. 35098 ac_preproc_ok=: 35099 break 35100 fi 35101 rm -f conftest.err conftest.i conftest.$ac_ext 35102 35103 done 35104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35105 rm -f conftest.i conftest.err conftest.$ac_ext 35106 if $ac_preproc_ok; then : 35107 break 35108 fi 35109 35110 done 35111 ac_cv_prog_CXXCPP=$CXXCPP 35112 35113 fi 35114 CXXCPP=$ac_cv_prog_CXXCPP 35115 else 35116 ac_cv_prog_CXXCPP=$CXXCPP 35117 fi 35118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 35119 $as_echo "$CXXCPP" >&6; } 35120 ac_preproc_ok=false 35121 for ac_cxx_preproc_warn_flag in '' yes 35122 do 35123 # Use a header file that comes with gcc, so configuring glibc 35124 # with a fresh cross-compiler works. 35125 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35126 # <limits.h> exists even on freestanding compilers. 35127 # On the NeXT, cc -E runs the code through the compiler's parser, 35128 # not just through cpp. "Syntax error" is here to catch this case. 35129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35130 /* end confdefs.h. */ 35131 #ifdef __STDC__ 35132 # include <limits.h> 35133 #else 35134 # include <assert.h> 35135 #endif 35136 Syntax error 35137 _ACEOF 35138 if ac_fn_cxx_try_cpp "$LINENO"; then : 35139 35140 else 35141 # Broken: fails on valid input. 35142 continue 35143 fi 35144 rm -f conftest.err conftest.i conftest.$ac_ext 35145 35146 # OK, works on sane cases. Now check whether nonexistent headers 35147 # can be detected and how. 35148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35149 /* end confdefs.h. */ 35150 #include <ac_nonexistent.h> 35151 _ACEOF 35152 if ac_fn_cxx_try_cpp "$LINENO"; then : 35153 # Broken: success on invalid input. 35154 continue 35155 else 35156 # Passes both tests. 35157 ac_preproc_ok=: 35158 break 35159 fi 35160 rm -f conftest.err conftest.i conftest.$ac_ext 35161 35162 done 35163 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35164 rm -f conftest.i conftest.err conftest.$ac_ext 35165 if $ac_preproc_ok; then : 35166 35167 else 35168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 35170 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 35171 See \`config.log' for more details" "$LINENO" 5; } 35172 fi 35173 35174 ac_ext=cpp 35175 ac_cpp='$CXXCPP $CPPFLAGS' 35176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35179 35180 35181 # Only process if variable expands to non-empty 35182 35183 if test "x$CXXCPP" != x; then 35184 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35185 35186 # First separate the path from the arguments. This will split at the first 35187 # space. 35188 complete="$CXXCPP" 35189 path="${complete%% *}" 35190 tmp="$complete EOL" 35191 arguments="${tmp#* }" 35192 35193 # Input might be given as Windows format, start by converting to 35194 # unix format. 35195 new_path=`$CYGPATH -u "$path"` 35196 35197 # Now try to locate executable using which 35198 new_path=`$WHICH "$new_path" 2> /dev/null` 35199 # bat and cmd files are not always considered executable in cygwin causing which 35200 # to not find them 35201 if test "x$new_path" = x \ 35202 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35203 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35204 new_path=`$CYGPATH -u "$path"` 35205 fi 35206 if test "x$new_path" = x; then 35207 # Oops. Which didn't find the executable. 35208 # The splitting of arguments from the executable at a space might have been incorrect, 35209 # since paths with space are more likely in Windows. Give it another try with the whole 35210 # argument. 35211 path="$complete" 35212 arguments="EOL" 35213 new_path=`$CYGPATH -u "$path"` 35214 new_path=`$WHICH "$new_path" 2> /dev/null` 35215 # bat and cmd files are not always considered executable in cygwin causing which 35216 # to not find them 35217 if test "x$new_path" = x \ 35218 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35219 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35220 new_path=`$CYGPATH -u "$path"` 35221 fi 35222 if test "x$new_path" = x; then 35223 # It's still not found. Now this is an unrecoverable error. 35224 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 35225 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 35226 has_space=`$ECHO "$complete" | $GREP " "` 35227 if test "x$has_space" != x; then 35228 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35229 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35230 fi 35231 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 35232 fi 35233 fi 35234 35235 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35236 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35237 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35238 # "foo.exe" is OK but "foo" is an error. 35239 # 35240 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35241 # It is also a way to make sure we got the proper file name for the real test later on. 35242 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35243 if test "x$test_shortpath" = x; then 35244 # Short path failed, file does not exist as specified. 35245 # Try adding .exe or .cmd 35246 if test -f "${new_path}.exe"; then 35247 input_to_shortpath="${new_path}.exe" 35248 elif test -f "${new_path}.cmd"; then 35249 input_to_shortpath="${new_path}.cmd" 35250 else 35251 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 35252 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 35253 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35254 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35255 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 35256 fi 35257 else 35258 input_to_shortpath="$new_path" 35259 fi 35260 35261 # Call helper function which possibly converts this using DOS-style short mode. 35262 # If so, the updated path is stored in $new_path. 35263 new_path="$input_to_shortpath" 35264 35265 input_path="$input_to_shortpath" 35266 # Check if we need to convert this using DOS-style short mode. If the path 35267 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35268 # take no chances and rewrite it. 35269 # Note: m4 eats our [], so we need to use [ and ] instead. 35270 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35271 if test "x$has_forbidden_chars" != x; then 35272 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35273 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35274 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35275 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35276 # Going to short mode and back again did indeed matter. Since short mode is 35277 # case insensitive, let's make it lowercase to improve readability. 35278 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35279 # Now convert it back to Unix-style (cygpath) 35280 input_path=`$CYGPATH -u "$shortmode_path"` 35281 new_path="$input_path" 35282 fi 35283 fi 35284 35285 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35286 if test "x$test_cygdrive_prefix" = x; then 35287 # As a simple fix, exclude /usr/bin since it's not a real path. 35288 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35289 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35290 # a path prefixed by /cygdrive for fixpath to work. 35291 new_path="$CYGWIN_ROOT_PATH$input_path" 35292 fi 35293 fi 35294 35295 # remove trailing .exe if any 35296 new_path="${new_path/%.exe/}" 35297 35298 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35299 35300 # First separate the path from the arguments. This will split at the first 35301 # space. 35302 complete="$CXXCPP" 35303 path="${complete%% *}" 35304 tmp="$complete EOL" 35305 arguments="${tmp#* }" 35306 35307 # Input might be given as Windows format, start by converting to 35308 # unix format. 35309 new_path="$path" 35310 35311 windows_path="$new_path" 35312 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35313 unix_path=`$CYGPATH -u "$windows_path"` 35314 new_path="$unix_path" 35315 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35316 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35317 new_path="$unix_path" 35318 fi 35319 35320 35321 # Now try to locate executable using which 35322 new_path=`$WHICH "$new_path" 2> /dev/null` 35323 35324 if test "x$new_path" = x; then 35325 # Oops. Which didn't find the executable. 35326 # The splitting of arguments from the executable at a space might have been incorrect, 35327 # since paths with space are more likely in Windows. Give it another try with the whole 35328 # argument. 35329 path="$complete" 35330 arguments="EOL" 35331 new_path="$path" 35332 35333 windows_path="$new_path" 35334 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35335 unix_path=`$CYGPATH -u "$windows_path"` 35336 new_path="$unix_path" 35337 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35338 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35339 new_path="$unix_path" 35340 fi 35341 35342 35343 new_path=`$WHICH "$new_path" 2> /dev/null` 35344 # bat and cmd files are not always considered executable in MSYS causing which 35345 # to not find them 35346 if test "x$new_path" = x \ 35347 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35348 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35349 new_path="$path" 35350 35351 windows_path="$new_path" 35352 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35353 unix_path=`$CYGPATH -u "$windows_path"` 35354 new_path="$unix_path" 35355 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35356 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35357 new_path="$unix_path" 35358 fi 35359 35360 fi 35361 35362 if test "x$new_path" = x; then 35363 # It's still not found. Now this is an unrecoverable error. 35364 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 35365 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 35366 has_space=`$ECHO "$complete" | $GREP " "` 35367 if test "x$has_space" != x; then 35368 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35369 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35370 fi 35371 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 35372 fi 35373 fi 35374 35375 # Now new_path has a complete unix path to the binary 35376 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35377 # Keep paths in /bin as-is, but remove trailing .exe if any 35378 new_path="${new_path/%.exe/}" 35379 # Do not save /bin paths to all_fixpath_prefixes! 35380 else 35381 # Not in mixed or Windows style, start by that. 35382 new_path=`cmd //c echo $new_path` 35383 35384 input_path="$new_path" 35385 # Check if we need to convert this using DOS-style short mode. If the path 35386 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35387 # take no chances and rewrite it. 35388 # Note: m4 eats our [], so we need to use [ and ] instead. 35389 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35390 if test "x$has_forbidden_chars" != x; then 35391 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35392 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35393 fi 35394 35395 # Output is in $new_path 35396 35397 windows_path="$new_path" 35398 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35399 unix_path=`$CYGPATH -u "$windows_path"` 35400 new_path="$unix_path" 35401 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35402 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35403 new_path="$unix_path" 35404 fi 35405 35406 # remove trailing .exe if any 35407 new_path="${new_path/%.exe/}" 35408 35409 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35410 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35411 fi 35412 35413 else 35414 # We're on a unix platform. Hooray! :) 35415 # First separate the path from the arguments. This will split at the first 35416 # space. 35417 complete="$CXXCPP" 35418 path="${complete%% *}" 35419 tmp="$complete EOL" 35420 arguments="${tmp#* }" 35421 35422 # Cannot rely on the command "which" here since it doesn't always work. 35423 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35424 if test -z "$is_absolute_path"; then 35425 # Path to executable is not absolute. Find it. 35426 IFS_save="$IFS" 35427 IFS=: 35428 for p in $PATH; do 35429 if test -f "$p/$path" && test -x "$p/$path"; then 35430 new_path="$p/$path" 35431 break 35432 fi 35433 done 35434 IFS="$IFS_save" 35435 else 35436 # This is an absolute path, we can use it without further modifications. 35437 new_path="$path" 35438 fi 35439 35440 if test "x$new_path" = x; then 35441 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 35442 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 35443 has_space=`$ECHO "$complete" | $GREP " "` 35444 if test "x$has_space" != x; then 35445 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35446 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35447 fi 35448 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 35449 fi 35450 fi 35451 35452 # Now join together the path and the arguments once again 35453 if test "x$arguments" != xEOL; then 35454 new_complete="$new_path ${arguments% *}" 35455 else 35456 new_complete="$new_path" 35457 fi 35458 35459 if test "x$complete" != "x$new_complete"; then 35460 CXXCPP="$new_complete" 35461 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 35462 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 35463 fi 35464 fi 35465 35466 35467 # 35468 # Setup the linker (LD) 35469 # 35470 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 35471 # In the Microsoft toolchain we have a separate LD command "link". 35472 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 35473 # a cygwin program for something completely different. 35474 # Extract the first word of "link", so it can be a program name with args. 35475 set dummy link; ac_word=$2 35476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35477 $as_echo_n "checking for $ac_word... " >&6; } 35478 if ${ac_cv_prog_LD+:} false; then : 35479 $as_echo_n "(cached) " >&6 35480 else 35481 if test -n "$LD"; then 35482 ac_cv_prog_LD="$LD" # Let the user override the test. 35483 else 35484 ac_prog_rejected=no 35485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35486 for as_dir in $PATH 35487 do 35488 IFS=$as_save_IFS 35489 test -z "$as_dir" && as_dir=. 35490 for ac_exec_ext in '' $ac_executable_extensions; do 35491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35492 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 35493 ac_prog_rejected=yes 35494 continue 35495 fi 35496 ac_cv_prog_LD="link" 35497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35498 break 2 35499 fi 35500 done 35501 done 35502 IFS=$as_save_IFS 35503 35504 if test $ac_prog_rejected = yes; then 35505 # We found a bogon in the path, so make sure we never use it. 35506 set dummy $ac_cv_prog_LD 35507 shift 35508 if test $# != 0; then 35509 # We chose a different compiler from the bogus one. 35510 # However, it has the same basename, so the bogon will be chosen 35511 # first if we set LD to just the basename; use the full file name. 35512 shift 35513 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 35514 fi 35515 fi 35516 fi 35517 fi 35518 LD=$ac_cv_prog_LD 35519 if test -n "$LD"; then 35520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 35521 $as_echo "$LD" >&6; } 35522 else 35523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35524 $as_echo "no" >&6; } 35525 fi 35526 35527 35528 35529 # Only process if variable expands to non-empty 35530 35531 if test "x$LD" != x; then 35532 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35533 35534 # First separate the path from the arguments. This will split at the first 35535 # space. 35536 complete="$LD" 35537 path="${complete%% *}" 35538 tmp="$complete EOL" 35539 arguments="${tmp#* }" 35540 35541 # Input might be given as Windows format, start by converting to 35542 # unix format. 35543 new_path=`$CYGPATH -u "$path"` 35544 35545 # Now try to locate executable using which 35546 new_path=`$WHICH "$new_path" 2> /dev/null` 35547 # bat and cmd files are not always considered executable in cygwin causing which 35548 # to not find them 35549 if test "x$new_path" = x \ 35550 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35551 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35552 new_path=`$CYGPATH -u "$path"` 35553 fi 35554 if test "x$new_path" = x; then 35555 # Oops. Which didn't find the executable. 35556 # The splitting of arguments from the executable at a space might have been incorrect, 35557 # since paths with space are more likely in Windows. Give it another try with the whole 35558 # argument. 35559 path="$complete" 35560 arguments="EOL" 35561 new_path=`$CYGPATH -u "$path"` 35562 new_path=`$WHICH "$new_path" 2> /dev/null` 35563 # bat and cmd files are not always considered executable in cygwin causing which 35564 # to not find them 35565 if test "x$new_path" = x \ 35566 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35567 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35568 new_path=`$CYGPATH -u "$path"` 35569 fi 35570 if test "x$new_path" = x; then 35571 # It's still not found. Now this is an unrecoverable error. 35572 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 35573 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 35574 has_space=`$ECHO "$complete" | $GREP " "` 35575 if test "x$has_space" != x; then 35576 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35577 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35578 fi 35579 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 35580 fi 35581 fi 35582 35583 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35584 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35585 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35586 # "foo.exe" is OK but "foo" is an error. 35587 # 35588 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35589 # It is also a way to make sure we got the proper file name for the real test later on. 35590 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35591 if test "x$test_shortpath" = x; then 35592 # Short path failed, file does not exist as specified. 35593 # Try adding .exe or .cmd 35594 if test -f "${new_path}.exe"; then 35595 input_to_shortpath="${new_path}.exe" 35596 elif test -f "${new_path}.cmd"; then 35597 input_to_shortpath="${new_path}.cmd" 35598 else 35599 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 35600 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 35601 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35602 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35603 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 35604 fi 35605 else 35606 input_to_shortpath="$new_path" 35607 fi 35608 35609 # Call helper function which possibly converts this using DOS-style short mode. 35610 # If so, the updated path is stored in $new_path. 35611 new_path="$input_to_shortpath" 35612 35613 input_path="$input_to_shortpath" 35614 # Check if we need to convert this using DOS-style short mode. If the path 35615 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35616 # take no chances and rewrite it. 35617 # Note: m4 eats our [], so we need to use [ and ] instead. 35618 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35619 if test "x$has_forbidden_chars" != x; then 35620 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35621 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35622 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35623 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35624 # Going to short mode and back again did indeed matter. Since short mode is 35625 # case insensitive, let's make it lowercase to improve readability. 35626 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35627 # Now convert it back to Unix-style (cygpath) 35628 input_path=`$CYGPATH -u "$shortmode_path"` 35629 new_path="$input_path" 35630 fi 35631 fi 35632 35633 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35634 if test "x$test_cygdrive_prefix" = x; then 35635 # As a simple fix, exclude /usr/bin since it's not a real path. 35636 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35637 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35638 # a path prefixed by /cygdrive for fixpath to work. 35639 new_path="$CYGWIN_ROOT_PATH$input_path" 35640 fi 35641 fi 35642 35643 # remove trailing .exe if any 35644 new_path="${new_path/%.exe/}" 35645 35646 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35647 35648 # First separate the path from the arguments. This will split at the first 35649 # space. 35650 complete="$LD" 35651 path="${complete%% *}" 35652 tmp="$complete EOL" 35653 arguments="${tmp#* }" 35654 35655 # Input might be given as Windows format, start by converting to 35656 # unix format. 35657 new_path="$path" 35658 35659 windows_path="$new_path" 35660 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35661 unix_path=`$CYGPATH -u "$windows_path"` 35662 new_path="$unix_path" 35663 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35664 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35665 new_path="$unix_path" 35666 fi 35667 35668 35669 # Now try to locate executable using which 35670 new_path=`$WHICH "$new_path" 2> /dev/null` 35671 35672 if test "x$new_path" = x; then 35673 # Oops. Which didn't find the executable. 35674 # The splitting of arguments from the executable at a space might have been incorrect, 35675 # since paths with space are more likely in Windows. Give it another try with the whole 35676 # argument. 35677 path="$complete" 35678 arguments="EOL" 35679 new_path="$path" 35680 35681 windows_path="$new_path" 35682 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35683 unix_path=`$CYGPATH -u "$windows_path"` 35684 new_path="$unix_path" 35685 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35686 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35687 new_path="$unix_path" 35688 fi 35689 35690 35691 new_path=`$WHICH "$new_path" 2> /dev/null` 35692 # bat and cmd files are not always considered executable in MSYS causing which 35693 # to not find them 35694 if test "x$new_path" = x \ 35695 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35696 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35697 new_path="$path" 35698 35699 windows_path="$new_path" 35700 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35701 unix_path=`$CYGPATH -u "$windows_path"` 35702 new_path="$unix_path" 35703 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35704 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35705 new_path="$unix_path" 35706 fi 35707 35708 fi 35709 35710 if test "x$new_path" = x; then 35711 # It's still not found. Now this is an unrecoverable error. 35712 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 35713 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 35714 has_space=`$ECHO "$complete" | $GREP " "` 35715 if test "x$has_space" != x; then 35716 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35717 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35718 fi 35719 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 35720 fi 35721 fi 35722 35723 # Now new_path has a complete unix path to the binary 35724 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35725 # Keep paths in /bin as-is, but remove trailing .exe if any 35726 new_path="${new_path/%.exe/}" 35727 # Do not save /bin paths to all_fixpath_prefixes! 35728 else 35729 # Not in mixed or Windows style, start by that. 35730 new_path=`cmd //c echo $new_path` 35731 35732 input_path="$new_path" 35733 # Check if we need to convert this using DOS-style short mode. If the path 35734 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35735 # take no chances and rewrite it. 35736 # Note: m4 eats our [], so we need to use [ and ] instead. 35737 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35738 if test "x$has_forbidden_chars" != x; then 35739 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35740 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35741 fi 35742 35743 # Output is in $new_path 35744 35745 windows_path="$new_path" 35746 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35747 unix_path=`$CYGPATH -u "$windows_path"` 35748 new_path="$unix_path" 35749 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35750 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35751 new_path="$unix_path" 35752 fi 35753 35754 # remove trailing .exe if any 35755 new_path="${new_path/%.exe/}" 35756 35757 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35758 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35759 fi 35760 35761 else 35762 # We're on a unix platform. Hooray! :) 35763 # First separate the path from the arguments. This will split at the first 35764 # space. 35765 complete="$LD" 35766 path="${complete%% *}" 35767 tmp="$complete EOL" 35768 arguments="${tmp#* }" 35769 35770 # Cannot rely on the command "which" here since it doesn't always work. 35771 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35772 if test -z "$is_absolute_path"; then 35773 # Path to executable is not absolute. Find it. 35774 IFS_save="$IFS" 35775 IFS=: 35776 for p in $PATH; do 35777 if test -f "$p/$path" && test -x "$p/$path"; then 35778 new_path="$p/$path" 35779 break 35780 fi 35781 done 35782 IFS="$IFS_save" 35783 else 35784 # This is an absolute path, we can use it without further modifications. 35785 new_path="$path" 35786 fi 35787 35788 if test "x$new_path" = x; then 35789 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 35790 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 35791 has_space=`$ECHO "$complete" | $GREP " "` 35792 if test "x$has_space" != x; then 35793 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35794 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35795 fi 35796 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 35797 fi 35798 fi 35799 35800 # Now join together the path and the arguments once again 35801 if test "x$arguments" != xEOL; then 35802 new_complete="$new_path ${arguments% *}" 35803 else 35804 new_complete="$new_path" 35805 fi 35806 35807 if test "x$complete" != "x$new_complete"; then 35808 LD="$new_complete" 35809 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 35810 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 35811 fi 35812 fi 35813 35814 # Verify that we indeed succeeded with this trick. 35815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 35816 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 35817 "$LD" --version > /dev/null 35818 if test $? -eq 0 ; then 35819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35820 $as_echo "no" >&6; } 35821 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 35822 else 35823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35824 $as_echo "yes" >&6; } 35825 fi 35826 LDCXX="$LD" 35827 else 35828 # All other toolchains use the compiler to link. 35829 LD="$CC" 35830 LDCXX="$CXX" 35831 fi 35832 35833 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 35834 35835 35836 # 35837 # Setup the assembler (AS) 35838 # 35839 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 35840 # FIXME: should this really be solaris, or solstudio? 35841 35842 35843 # Publish this variable in the help. 35844 35845 35846 if [ -z "${AS+x}" ]; then 35847 # The variable is not set by user, try to locate tool using the code snippet 35848 for ac_prog in as 35849 do 35850 # Extract the first word of "$ac_prog", so it can be a program name with args. 35851 set dummy $ac_prog; ac_word=$2 35852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35853 $as_echo_n "checking for $ac_word... " >&6; } 35854 if ${ac_cv_path_AS+:} false; then : 35855 $as_echo_n "(cached) " >&6 35856 else 35857 case $AS in 35858 [\\/]* | ?:[\\/]*) 35859 ac_cv_path_AS="$AS" # Let the user override the test with a path. 35860 ;; 35861 *) 35862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35863 for as_dir in $PATH 35864 do 35865 IFS=$as_save_IFS 35866 test -z "$as_dir" && as_dir=. 35867 for ac_exec_ext in '' $ac_executable_extensions; do 35868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35869 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 35870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35871 break 2 35872 fi 35873 done 35874 done 35875 IFS=$as_save_IFS 35876 35877 ;; 35878 esac 35879 fi 35880 AS=$ac_cv_path_AS 35881 if test -n "$AS"; then 35882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 35883 $as_echo "$AS" >&6; } 35884 else 35885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35886 $as_echo "no" >&6; } 35887 fi 35888 35889 35890 test -n "$AS" && break 35891 done 35892 35893 else 35894 # The variable is set, but is it from the command line or the environment? 35895 35896 # Try to remove the string !AS! from our list. 35897 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 35898 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35899 # If it failed, the variable was not from the command line. Ignore it, 35900 # but warn the user (except for BASH, which is always set by the calling BASH). 35901 if test "xAS" != xBASH; then 35902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 35903 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 35904 fi 35905 # Try to locate tool using the code snippet 35906 for ac_prog in as 35907 do 35908 # Extract the first word of "$ac_prog", so it can be a program name with args. 35909 set dummy $ac_prog; ac_word=$2 35910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35911 $as_echo_n "checking for $ac_word... " >&6; } 35912 if ${ac_cv_path_AS+:} false; then : 35913 $as_echo_n "(cached) " >&6 35914 else 35915 case $AS in 35916 [\\/]* | ?:[\\/]*) 35917 ac_cv_path_AS="$AS" # Let the user override the test with a path. 35918 ;; 35919 *) 35920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35921 for as_dir in $PATH 35922 do 35923 IFS=$as_save_IFS 35924 test -z "$as_dir" && as_dir=. 35925 for ac_exec_ext in '' $ac_executable_extensions; do 35926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35927 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 35928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35929 break 2 35930 fi 35931 done 35932 done 35933 IFS=$as_save_IFS 35934 35935 ;; 35936 esac 35937 fi 35938 AS=$ac_cv_path_AS 35939 if test -n "$AS"; then 35940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 35941 $as_echo "$AS" >&6; } 35942 else 35943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35944 $as_echo "no" >&6; } 35945 fi 35946 35947 35948 test -n "$AS" && break 35949 done 35950 35951 else 35952 # If it succeeded, then it was overridden by the user. We will use it 35953 # for the tool. 35954 35955 # First remove it from the list of overridden variables, so we can test 35956 # for unknown variables in the end. 35957 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35958 35959 # Check if we try to supply an empty value 35960 if test "x$AS" = x; then 35961 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AS= (no value)" >&5 35962 $as_echo "$as_me: Setting user supplied tool AS= (no value)" >&6;} 35963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 35964 $as_echo_n "checking for AS... " >&6; } 35965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 35966 $as_echo "disabled" >&6; } 35967 else 35968 # Check if the provided tool contains a complete path. 35969 tool_specified="$AS" 35970 tool_basename="${tool_specified##*/}" 35971 if test "x$tool_basename" = "x$tool_specified"; then 35972 # A command without a complete path is provided, search $PATH. 35973 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 35974 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 35975 # Extract the first word of "$tool_basename", so it can be a program name with args. 35976 set dummy $tool_basename; ac_word=$2 35977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35978 $as_echo_n "checking for $ac_word... " >&6; } 35979 if ${ac_cv_path_AS+:} false; then : 35980 $as_echo_n "(cached) " >&6 35981 else 35982 case $AS in 35983 [\\/]* | ?:[\\/]*) 35984 ac_cv_path_AS="$AS" # Let the user override the test with a path. 35985 ;; 35986 *) 35987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35988 for as_dir in $PATH 35989 do 35990 IFS=$as_save_IFS 35991 test -z "$as_dir" && as_dir=. 35992 for ac_exec_ext in '' $ac_executable_extensions; do 35993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35994 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 35995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35996 break 2 35997 fi 35998 done 35999 done 36000 IFS=$as_save_IFS 36001 36002 ;; 36003 esac 36004 fi 36005 AS=$ac_cv_path_AS 36006 if test -n "$AS"; then 36007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 36008 $as_echo "$AS" >&6; } 36009 else 36010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36011 $as_echo "no" >&6; } 36012 fi 36013 36014 36015 if test "x$AS" = x; then 36016 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36017 fi 36018 else 36019 # Otherwise we believe it is a complete path. Use it as it is. 36020 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 36021 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 36022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 36023 $as_echo_n "checking for AS... " >&6; } 36024 if test ! -x "$tool_specified"; then 36025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36026 $as_echo "not found" >&6; } 36027 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 36028 fi 36029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36030 $as_echo "$tool_specified" >&6; } 36031 fi 36032 fi 36033 fi 36034 36035 fi 36036 36037 36038 36039 # Only process if variable expands to non-empty 36040 36041 if test "x$AS" != x; then 36042 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36043 36044 # First separate the path from the arguments. This will split at the first 36045 # space. 36046 complete="$AS" 36047 path="${complete%% *}" 36048 tmp="$complete EOL" 36049 arguments="${tmp#* }" 36050 36051 # Input might be given as Windows format, start by converting to 36052 # unix format. 36053 new_path=`$CYGPATH -u "$path"` 36054 36055 # Now try to locate executable using which 36056 new_path=`$WHICH "$new_path" 2> /dev/null` 36057 # bat and cmd files are not always considered executable in cygwin causing which 36058 # to not find them 36059 if test "x$new_path" = x \ 36060 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36061 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36062 new_path=`$CYGPATH -u "$path"` 36063 fi 36064 if test "x$new_path" = x; then 36065 # Oops. Which didn't find the executable. 36066 # The splitting of arguments from the executable at a space might have been incorrect, 36067 # since paths with space are more likely in Windows. Give it another try with the whole 36068 # argument. 36069 path="$complete" 36070 arguments="EOL" 36071 new_path=`$CYGPATH -u "$path"` 36072 new_path=`$WHICH "$new_path" 2> /dev/null` 36073 # bat and cmd files are not always considered executable in cygwin causing which 36074 # to not find them 36075 if test "x$new_path" = x \ 36076 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36077 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36078 new_path=`$CYGPATH -u "$path"` 36079 fi 36080 if test "x$new_path" = x; then 36081 # It's still not found. Now this is an unrecoverable error. 36082 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 36083 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 36084 has_space=`$ECHO "$complete" | $GREP " "` 36085 if test "x$has_space" != x; then 36086 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36087 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36088 fi 36089 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 36090 fi 36091 fi 36092 36093 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36094 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36095 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36096 # "foo.exe" is OK but "foo" is an error. 36097 # 36098 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36099 # It is also a way to make sure we got the proper file name for the real test later on. 36100 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36101 if test "x$test_shortpath" = x; then 36102 # Short path failed, file does not exist as specified. 36103 # Try adding .exe or .cmd 36104 if test -f "${new_path}.exe"; then 36105 input_to_shortpath="${new_path}.exe" 36106 elif test -f "${new_path}.cmd"; then 36107 input_to_shortpath="${new_path}.cmd" 36108 else 36109 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 36110 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 36111 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36112 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36113 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 36114 fi 36115 else 36116 input_to_shortpath="$new_path" 36117 fi 36118 36119 # Call helper function which possibly converts this using DOS-style short mode. 36120 # If so, the updated path is stored in $new_path. 36121 new_path="$input_to_shortpath" 36122 36123 input_path="$input_to_shortpath" 36124 # Check if we need to convert this using DOS-style short mode. If the path 36125 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36126 # take no chances and rewrite it. 36127 # Note: m4 eats our [], so we need to use [ and ] instead. 36128 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36129 if test "x$has_forbidden_chars" != x; then 36130 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36131 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36132 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36133 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36134 # Going to short mode and back again did indeed matter. Since short mode is 36135 # case insensitive, let's make it lowercase to improve readability. 36136 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36137 # Now convert it back to Unix-style (cygpath) 36138 input_path=`$CYGPATH -u "$shortmode_path"` 36139 new_path="$input_path" 36140 fi 36141 fi 36142 36143 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36144 if test "x$test_cygdrive_prefix" = x; then 36145 # As a simple fix, exclude /usr/bin since it's not a real path. 36146 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36147 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36148 # a path prefixed by /cygdrive for fixpath to work. 36149 new_path="$CYGWIN_ROOT_PATH$input_path" 36150 fi 36151 fi 36152 36153 # remove trailing .exe if any 36154 new_path="${new_path/%.exe/}" 36155 36156 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36157 36158 # First separate the path from the arguments. This will split at the first 36159 # space. 36160 complete="$AS" 36161 path="${complete%% *}" 36162 tmp="$complete EOL" 36163 arguments="${tmp#* }" 36164 36165 # Input might be given as Windows format, start by converting to 36166 # unix format. 36167 new_path="$path" 36168 36169 windows_path="$new_path" 36170 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36171 unix_path=`$CYGPATH -u "$windows_path"` 36172 new_path="$unix_path" 36173 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36174 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36175 new_path="$unix_path" 36176 fi 36177 36178 36179 # Now try to locate executable using which 36180 new_path=`$WHICH "$new_path" 2> /dev/null` 36181 36182 if test "x$new_path" = x; then 36183 # Oops. Which didn't find the executable. 36184 # The splitting of arguments from the executable at a space might have been incorrect, 36185 # since paths with space are more likely in Windows. Give it another try with the whole 36186 # argument. 36187 path="$complete" 36188 arguments="EOL" 36189 new_path="$path" 36190 36191 windows_path="$new_path" 36192 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36193 unix_path=`$CYGPATH -u "$windows_path"` 36194 new_path="$unix_path" 36195 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36196 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36197 new_path="$unix_path" 36198 fi 36199 36200 36201 new_path=`$WHICH "$new_path" 2> /dev/null` 36202 # bat and cmd files are not always considered executable in MSYS causing which 36203 # to not find them 36204 if test "x$new_path" = x \ 36205 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36206 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36207 new_path="$path" 36208 36209 windows_path="$new_path" 36210 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36211 unix_path=`$CYGPATH -u "$windows_path"` 36212 new_path="$unix_path" 36213 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36214 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36215 new_path="$unix_path" 36216 fi 36217 36218 fi 36219 36220 if test "x$new_path" = x; then 36221 # It's still not found. Now this is an unrecoverable error. 36222 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 36223 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 36224 has_space=`$ECHO "$complete" | $GREP " "` 36225 if test "x$has_space" != x; then 36226 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36227 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36228 fi 36229 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 36230 fi 36231 fi 36232 36233 # Now new_path has a complete unix path to the binary 36234 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36235 # Keep paths in /bin as-is, but remove trailing .exe if any 36236 new_path="${new_path/%.exe/}" 36237 # Do not save /bin paths to all_fixpath_prefixes! 36238 else 36239 # Not in mixed or Windows style, start by that. 36240 new_path=`cmd //c echo $new_path` 36241 36242 input_path="$new_path" 36243 # Check if we need to convert this using DOS-style short mode. If the path 36244 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36245 # take no chances and rewrite it. 36246 # Note: m4 eats our [], so we need to use [ and ] instead. 36247 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36248 if test "x$has_forbidden_chars" != x; then 36249 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36250 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36251 fi 36252 36253 # Output is in $new_path 36254 36255 windows_path="$new_path" 36256 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36257 unix_path=`$CYGPATH -u "$windows_path"` 36258 new_path="$unix_path" 36259 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36260 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36261 new_path="$unix_path" 36262 fi 36263 36264 # remove trailing .exe if any 36265 new_path="${new_path/%.exe/}" 36266 36267 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36268 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36269 fi 36270 36271 else 36272 # We're on a unix platform. Hooray! :) 36273 # First separate the path from the arguments. This will split at the first 36274 # space. 36275 complete="$AS" 36276 path="${complete%% *}" 36277 tmp="$complete EOL" 36278 arguments="${tmp#* }" 36279 36280 # Cannot rely on the command "which" here since it doesn't always work. 36281 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36282 if test -z "$is_absolute_path"; then 36283 # Path to executable is not absolute. Find it. 36284 IFS_save="$IFS" 36285 IFS=: 36286 for p in $PATH; do 36287 if test -f "$p/$path" && test -x "$p/$path"; then 36288 new_path="$p/$path" 36289 break 36290 fi 36291 done 36292 IFS="$IFS_save" 36293 else 36294 # This is an absolute path, we can use it without further modifications. 36295 new_path="$path" 36296 fi 36297 36298 if test "x$new_path" = x; then 36299 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 36300 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 36301 has_space=`$ECHO "$complete" | $GREP " "` 36302 if test "x$has_space" != x; then 36303 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36304 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36305 fi 36306 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 36307 fi 36308 fi 36309 36310 # Now join together the path and the arguments once again 36311 if test "x$arguments" != xEOL; then 36312 new_complete="$new_path ${arguments% *}" 36313 else 36314 new_complete="$new_path" 36315 fi 36316 36317 if test "x$complete" != "x$new_complete"; then 36318 AS="$new_complete" 36319 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 36320 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 36321 fi 36322 fi 36323 36324 else 36325 # FIXME: is this correct for microsoft? 36326 AS="$CC -c" 36327 fi 36328 36329 36330 # 36331 # Setup the archiver (AR) 36332 # 36333 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 36334 # The corresponding ar tool is lib.exe (used to create static libraries) 36335 # Extract the first word of "lib", so it can be a program name with args. 36336 set dummy lib; ac_word=$2 36337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36338 $as_echo_n "checking for $ac_word... " >&6; } 36339 if ${ac_cv_prog_AR+:} false; then : 36340 $as_echo_n "(cached) " >&6 36341 else 36342 if test -n "$AR"; then 36343 ac_cv_prog_AR="$AR" # Let the user override the test. 36344 else 36345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36346 for as_dir in $PATH 36347 do 36348 IFS=$as_save_IFS 36349 test -z "$as_dir" && as_dir=. 36350 for ac_exec_ext in '' $ac_executable_extensions; do 36351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36352 ac_cv_prog_AR="lib" 36353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36354 break 2 36355 fi 36356 done 36357 done 36358 IFS=$as_save_IFS 36359 36360 fi 36361 fi 36362 AR=$ac_cv_prog_AR 36363 if test -n "$AR"; then 36364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 36365 $as_echo "$AR" >&6; } 36366 else 36367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36368 $as_echo "no" >&6; } 36369 fi 36370 36371 36372 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 36373 36374 36375 # Publish this variable in the help. 36376 36377 36378 if [ -z "${AR+x}" ]; then 36379 # The variable is not set by user, try to locate tool using the code snippet 36380 if test -n "$ac_tool_prefix"; then 36381 for ac_prog in ar gcc-ar 36382 do 36383 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36384 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36386 $as_echo_n "checking for $ac_word... " >&6; } 36387 if ${ac_cv_prog_AR+:} false; then : 36388 $as_echo_n "(cached) " >&6 36389 else 36390 if test -n "$AR"; then 36391 ac_cv_prog_AR="$AR" # Let the user override the test. 36392 else 36393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36394 for as_dir in $PATH 36395 do 36396 IFS=$as_save_IFS 36397 test -z "$as_dir" && as_dir=. 36398 for ac_exec_ext in '' $ac_executable_extensions; do 36399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36400 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 36401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36402 break 2 36403 fi 36404 done 36405 done 36406 IFS=$as_save_IFS 36407 36408 fi 36409 fi 36410 AR=$ac_cv_prog_AR 36411 if test -n "$AR"; then 36412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 36413 $as_echo "$AR" >&6; } 36414 else 36415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36416 $as_echo "no" >&6; } 36417 fi 36418 36419 36420 test -n "$AR" && break 36421 done 36422 fi 36423 if test -z "$AR"; then 36424 ac_ct_AR=$AR 36425 for ac_prog in ar gcc-ar 36426 do 36427 # Extract the first word of "$ac_prog", so it can be a program name with args. 36428 set dummy $ac_prog; ac_word=$2 36429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36430 $as_echo_n "checking for $ac_word... " >&6; } 36431 if ${ac_cv_prog_ac_ct_AR+:} false; then : 36432 $as_echo_n "(cached) " >&6 36433 else 36434 if test -n "$ac_ct_AR"; then 36435 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 36436 else 36437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36438 for as_dir in $PATH 36439 do 36440 IFS=$as_save_IFS 36441 test -z "$as_dir" && as_dir=. 36442 for ac_exec_ext in '' $ac_executable_extensions; do 36443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36444 ac_cv_prog_ac_ct_AR="$ac_prog" 36445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36446 break 2 36447 fi 36448 done 36449 done 36450 IFS=$as_save_IFS 36451 36452 fi 36453 fi 36454 ac_ct_AR=$ac_cv_prog_ac_ct_AR 36455 if test -n "$ac_ct_AR"; then 36456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 36457 $as_echo "$ac_ct_AR" >&6; } 36458 else 36459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36460 $as_echo "no" >&6; } 36461 fi 36462 36463 36464 test -n "$ac_ct_AR" && break 36465 done 36466 36467 if test "x$ac_ct_AR" = x; then 36468 AR="" 36469 else 36470 case $cross_compiling:$ac_tool_warned in 36471 yes:) 36472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36474 ac_tool_warned=yes ;; 36475 esac 36476 AR=$ac_ct_AR 36477 fi 36478 fi 36479 36480 else 36481 # The variable is set, but is it from the command line or the environment? 36482 36483 # Try to remove the string !AR! from our list. 36484 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 36485 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36486 # If it failed, the variable was not from the command line. Ignore it, 36487 # but warn the user (except for BASH, which is always set by the calling BASH). 36488 if test "xAR" != xBASH; then 36489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 36490 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 36491 fi 36492 # Try to locate tool using the code snippet 36493 if test -n "$ac_tool_prefix"; then 36494 for ac_prog in ar gcc-ar 36495 do 36496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36499 $as_echo_n "checking for $ac_word... " >&6; } 36500 if ${ac_cv_prog_AR+:} false; then : 36501 $as_echo_n "(cached) " >&6 36502 else 36503 if test -n "$AR"; then 36504 ac_cv_prog_AR="$AR" # Let the user override the test. 36505 else 36506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36507 for as_dir in $PATH 36508 do 36509 IFS=$as_save_IFS 36510 test -z "$as_dir" && as_dir=. 36511 for ac_exec_ext in '' $ac_executable_extensions; do 36512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36513 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 36514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36515 break 2 36516 fi 36517 done 36518 done 36519 IFS=$as_save_IFS 36520 36521 fi 36522 fi 36523 AR=$ac_cv_prog_AR 36524 if test -n "$AR"; then 36525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 36526 $as_echo "$AR" >&6; } 36527 else 36528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36529 $as_echo "no" >&6; } 36530 fi 36531 36532 36533 test -n "$AR" && break 36534 done 36535 fi 36536 if test -z "$AR"; then 36537 ac_ct_AR=$AR 36538 for ac_prog in ar gcc-ar 36539 do 36540 # Extract the first word of "$ac_prog", so it can be a program name with args. 36541 set dummy $ac_prog; ac_word=$2 36542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36543 $as_echo_n "checking for $ac_word... " >&6; } 36544 if ${ac_cv_prog_ac_ct_AR+:} false; then : 36545 $as_echo_n "(cached) " >&6 36546 else 36547 if test -n "$ac_ct_AR"; then 36548 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 36549 else 36550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36551 for as_dir in $PATH 36552 do 36553 IFS=$as_save_IFS 36554 test -z "$as_dir" && as_dir=. 36555 for ac_exec_ext in '' $ac_executable_extensions; do 36556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36557 ac_cv_prog_ac_ct_AR="$ac_prog" 36558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36559 break 2 36560 fi 36561 done 36562 done 36563 IFS=$as_save_IFS 36564 36565 fi 36566 fi 36567 ac_ct_AR=$ac_cv_prog_ac_ct_AR 36568 if test -n "$ac_ct_AR"; then 36569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 36570 $as_echo "$ac_ct_AR" >&6; } 36571 else 36572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36573 $as_echo "no" >&6; } 36574 fi 36575 36576 36577 test -n "$ac_ct_AR" && break 36578 done 36579 36580 if test "x$ac_ct_AR" = x; then 36581 AR="" 36582 else 36583 case $cross_compiling:$ac_tool_warned in 36584 yes:) 36585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36587 ac_tool_warned=yes ;; 36588 esac 36589 AR=$ac_ct_AR 36590 fi 36591 fi 36592 36593 else 36594 # If it succeeded, then it was overridden by the user. We will use it 36595 # for the tool. 36596 36597 # First remove it from the list of overridden variables, so we can test 36598 # for unknown variables in the end. 36599 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36600 36601 # Check if we try to supply an empty value 36602 if test "x$AR" = x; then 36603 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 36604 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 36605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 36606 $as_echo_n "checking for AR... " >&6; } 36607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 36608 $as_echo "disabled" >&6; } 36609 else 36610 # Check if the provided tool contains a complete path. 36611 tool_specified="$AR" 36612 tool_basename="${tool_specified##*/}" 36613 if test "x$tool_basename" = "x$tool_specified"; then 36614 # A command without a complete path is provided, search $PATH. 36615 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 36616 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 36617 # Extract the first word of "$tool_basename", so it can be a program name with args. 36618 set dummy $tool_basename; ac_word=$2 36619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36620 $as_echo_n "checking for $ac_word... " >&6; } 36621 if ${ac_cv_path_AR+:} false; then : 36622 $as_echo_n "(cached) " >&6 36623 else 36624 case $AR in 36625 [\\/]* | ?:[\\/]*) 36626 ac_cv_path_AR="$AR" # Let the user override the test with a path. 36627 ;; 36628 *) 36629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36630 for as_dir in $PATH 36631 do 36632 IFS=$as_save_IFS 36633 test -z "$as_dir" && as_dir=. 36634 for ac_exec_ext in '' $ac_executable_extensions; do 36635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36636 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 36637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36638 break 2 36639 fi 36640 done 36641 done 36642 IFS=$as_save_IFS 36643 36644 ;; 36645 esac 36646 fi 36647 AR=$ac_cv_path_AR 36648 if test -n "$AR"; then 36649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 36650 $as_echo "$AR" >&6; } 36651 else 36652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36653 $as_echo "no" >&6; } 36654 fi 36655 36656 36657 if test "x$AR" = x; then 36658 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36659 fi 36660 else 36661 # Otherwise we believe it is a complete path. Use it as it is. 36662 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 36663 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 36664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 36665 $as_echo_n "checking for AR... " >&6; } 36666 if test ! -x "$tool_specified"; then 36667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36668 $as_echo "not found" >&6; } 36669 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 36670 fi 36671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36672 $as_echo "$tool_specified" >&6; } 36673 fi 36674 fi 36675 fi 36676 36677 fi 36678 36679 36680 else 36681 36682 36683 # Publish this variable in the help. 36684 36685 36686 if [ -z "${AR+x}" ]; then 36687 # The variable is not set by user, try to locate tool using the code snippet 36688 if test -n "$ac_tool_prefix"; then 36689 for ac_prog in ar 36690 do 36691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36694 $as_echo_n "checking for $ac_word... " >&6; } 36695 if ${ac_cv_prog_AR+:} false; then : 36696 $as_echo_n "(cached) " >&6 36697 else 36698 if test -n "$AR"; then 36699 ac_cv_prog_AR="$AR" # Let the user override the test. 36700 else 36701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36702 for as_dir in $PATH 36703 do 36704 IFS=$as_save_IFS 36705 test -z "$as_dir" && as_dir=. 36706 for ac_exec_ext in '' $ac_executable_extensions; do 36707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36708 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 36709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36710 break 2 36711 fi 36712 done 36713 done 36714 IFS=$as_save_IFS 36715 36716 fi 36717 fi 36718 AR=$ac_cv_prog_AR 36719 if test -n "$AR"; then 36720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 36721 $as_echo "$AR" >&6; } 36722 else 36723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36724 $as_echo "no" >&6; } 36725 fi 36726 36727 36728 test -n "$AR" && break 36729 done 36730 fi 36731 if test -z "$AR"; then 36732 ac_ct_AR=$AR 36733 for ac_prog in ar 36734 do 36735 # Extract the first word of "$ac_prog", so it can be a program name with args. 36736 set dummy $ac_prog; ac_word=$2 36737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36738 $as_echo_n "checking for $ac_word... " >&6; } 36739 if ${ac_cv_prog_ac_ct_AR+:} false; then : 36740 $as_echo_n "(cached) " >&6 36741 else 36742 if test -n "$ac_ct_AR"; then 36743 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 36744 else 36745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36746 for as_dir in $PATH 36747 do 36748 IFS=$as_save_IFS 36749 test -z "$as_dir" && as_dir=. 36750 for ac_exec_ext in '' $ac_executable_extensions; do 36751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36752 ac_cv_prog_ac_ct_AR="$ac_prog" 36753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36754 break 2 36755 fi 36756 done 36757 done 36758 IFS=$as_save_IFS 36759 36760 fi 36761 fi 36762 ac_ct_AR=$ac_cv_prog_ac_ct_AR 36763 if test -n "$ac_ct_AR"; then 36764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 36765 $as_echo "$ac_ct_AR" >&6; } 36766 else 36767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36768 $as_echo "no" >&6; } 36769 fi 36770 36771 36772 test -n "$ac_ct_AR" && break 36773 done 36774 36775 if test "x$ac_ct_AR" = x; then 36776 AR="" 36777 else 36778 case $cross_compiling:$ac_tool_warned in 36779 yes:) 36780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36782 ac_tool_warned=yes ;; 36783 esac 36784 AR=$ac_ct_AR 36785 fi 36786 fi 36787 36788 else 36789 # The variable is set, but is it from the command line or the environment? 36790 36791 # Try to remove the string !AR! from our list. 36792 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 36793 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36794 # If it failed, the variable was not from the command line. Ignore it, 36795 # but warn the user (except for BASH, which is always set by the calling BASH). 36796 if test "xAR" != xBASH; then 36797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 36798 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 36799 fi 36800 # Try to locate tool using the code snippet 36801 if test -n "$ac_tool_prefix"; then 36802 for ac_prog in ar 36803 do 36804 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36805 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36807 $as_echo_n "checking for $ac_word... " >&6; } 36808 if ${ac_cv_prog_AR+:} false; then : 36809 $as_echo_n "(cached) " >&6 36810 else 36811 if test -n "$AR"; then 36812 ac_cv_prog_AR="$AR" # Let the user override the test. 36813 else 36814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36815 for as_dir in $PATH 36816 do 36817 IFS=$as_save_IFS 36818 test -z "$as_dir" && as_dir=. 36819 for ac_exec_ext in '' $ac_executable_extensions; do 36820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36821 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 36822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36823 break 2 36824 fi 36825 done 36826 done 36827 IFS=$as_save_IFS 36828 36829 fi 36830 fi 36831 AR=$ac_cv_prog_AR 36832 if test -n "$AR"; then 36833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 36834 $as_echo "$AR" >&6; } 36835 else 36836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36837 $as_echo "no" >&6; } 36838 fi 36839 36840 36841 test -n "$AR" && break 36842 done 36843 fi 36844 if test -z "$AR"; then 36845 ac_ct_AR=$AR 36846 for ac_prog in ar 36847 do 36848 # Extract the first word of "$ac_prog", so it can be a program name with args. 36849 set dummy $ac_prog; ac_word=$2 36850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36851 $as_echo_n "checking for $ac_word... " >&6; } 36852 if ${ac_cv_prog_ac_ct_AR+:} false; then : 36853 $as_echo_n "(cached) " >&6 36854 else 36855 if test -n "$ac_ct_AR"; then 36856 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 36857 else 36858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36859 for as_dir in $PATH 36860 do 36861 IFS=$as_save_IFS 36862 test -z "$as_dir" && as_dir=. 36863 for ac_exec_ext in '' $ac_executable_extensions; do 36864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36865 ac_cv_prog_ac_ct_AR="$ac_prog" 36866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36867 break 2 36868 fi 36869 done 36870 done 36871 IFS=$as_save_IFS 36872 36873 fi 36874 fi 36875 ac_ct_AR=$ac_cv_prog_ac_ct_AR 36876 if test -n "$ac_ct_AR"; then 36877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 36878 $as_echo "$ac_ct_AR" >&6; } 36879 else 36880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36881 $as_echo "no" >&6; } 36882 fi 36883 36884 36885 test -n "$ac_ct_AR" && break 36886 done 36887 36888 if test "x$ac_ct_AR" = x; then 36889 AR="" 36890 else 36891 case $cross_compiling:$ac_tool_warned in 36892 yes:) 36893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36895 ac_tool_warned=yes ;; 36896 esac 36897 AR=$ac_ct_AR 36898 fi 36899 fi 36900 36901 else 36902 # If it succeeded, then it was overridden by the user. We will use it 36903 # for the tool. 36904 36905 # First remove it from the list of overridden variables, so we can test 36906 # for unknown variables in the end. 36907 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36908 36909 # Check if we try to supply an empty value 36910 if test "x$AR" = x; then 36911 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 36912 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 36913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 36914 $as_echo_n "checking for AR... " >&6; } 36915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 36916 $as_echo "disabled" >&6; } 36917 else 36918 # Check if the provided tool contains a complete path. 36919 tool_specified="$AR" 36920 tool_basename="${tool_specified##*/}" 36921 if test "x$tool_basename" = "x$tool_specified"; then 36922 # A command without a complete path is provided, search $PATH. 36923 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 36924 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 36925 # Extract the first word of "$tool_basename", so it can be a program name with args. 36926 set dummy $tool_basename; ac_word=$2 36927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36928 $as_echo_n "checking for $ac_word... " >&6; } 36929 if ${ac_cv_path_AR+:} false; then : 36930 $as_echo_n "(cached) " >&6 36931 else 36932 case $AR in 36933 [\\/]* | ?:[\\/]*) 36934 ac_cv_path_AR="$AR" # Let the user override the test with a path. 36935 ;; 36936 *) 36937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36938 for as_dir in $PATH 36939 do 36940 IFS=$as_save_IFS 36941 test -z "$as_dir" && as_dir=. 36942 for ac_exec_ext in '' $ac_executable_extensions; do 36943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36944 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 36945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36946 break 2 36947 fi 36948 done 36949 done 36950 IFS=$as_save_IFS 36951 36952 ;; 36953 esac 36954 fi 36955 AR=$ac_cv_path_AR 36956 if test -n "$AR"; then 36957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 36958 $as_echo "$AR" >&6; } 36959 else 36960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36961 $as_echo "no" >&6; } 36962 fi 36963 36964 36965 if test "x$AR" = x; then 36966 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36967 fi 36968 else 36969 # Otherwise we believe it is a complete path. Use it as it is. 36970 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 36971 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 36972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 36973 $as_echo_n "checking for AR... " >&6; } 36974 if test ! -x "$tool_specified"; then 36975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36976 $as_echo "not found" >&6; } 36977 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 36978 fi 36979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36980 $as_echo "$tool_specified" >&6; } 36981 fi 36982 fi 36983 fi 36984 36985 fi 36986 36987 36988 fi 36989 36990 # Only process if variable expands to non-empty 36991 36992 if test "x$AR" != x; then 36993 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36994 36995 # First separate the path from the arguments. This will split at the first 36996 # space. 36997 complete="$AR" 36998 path="${complete%% *}" 36999 tmp="$complete EOL" 37000 arguments="${tmp#* }" 37001 37002 # Input might be given as Windows format, start by converting to 37003 # unix format. 37004 new_path=`$CYGPATH -u "$path"` 37005 37006 # Now try to locate executable using which 37007 new_path=`$WHICH "$new_path" 2> /dev/null` 37008 # bat and cmd files are not always considered executable in cygwin causing which 37009 # to not find them 37010 if test "x$new_path" = x \ 37011 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37012 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37013 new_path=`$CYGPATH -u "$path"` 37014 fi 37015 if test "x$new_path" = x; then 37016 # Oops. Which didn't find the executable. 37017 # The splitting of arguments from the executable at a space might have been incorrect, 37018 # since paths with space are more likely in Windows. Give it another try with the whole 37019 # argument. 37020 path="$complete" 37021 arguments="EOL" 37022 new_path=`$CYGPATH -u "$path"` 37023 new_path=`$WHICH "$new_path" 2> /dev/null` 37024 # bat and cmd files are not always considered executable in cygwin causing which 37025 # to not find them 37026 if test "x$new_path" = x \ 37027 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37028 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37029 new_path=`$CYGPATH -u "$path"` 37030 fi 37031 if test "x$new_path" = x; then 37032 # It's still not found. Now this is an unrecoverable error. 37033 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 37034 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 37035 has_space=`$ECHO "$complete" | $GREP " "` 37036 if test "x$has_space" != x; then 37037 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37038 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37039 fi 37040 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 37041 fi 37042 fi 37043 37044 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37045 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37046 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37047 # "foo.exe" is OK but "foo" is an error. 37048 # 37049 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37050 # It is also a way to make sure we got the proper file name for the real test later on. 37051 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37052 if test "x$test_shortpath" = x; then 37053 # Short path failed, file does not exist as specified. 37054 # Try adding .exe or .cmd 37055 if test -f "${new_path}.exe"; then 37056 input_to_shortpath="${new_path}.exe" 37057 elif test -f "${new_path}.cmd"; then 37058 input_to_shortpath="${new_path}.cmd" 37059 else 37060 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 37061 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 37062 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37063 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37064 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 37065 fi 37066 else 37067 input_to_shortpath="$new_path" 37068 fi 37069 37070 # Call helper function which possibly converts this using DOS-style short mode. 37071 # If so, the updated path is stored in $new_path. 37072 new_path="$input_to_shortpath" 37073 37074 input_path="$input_to_shortpath" 37075 # Check if we need to convert this using DOS-style short mode. If the path 37076 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37077 # take no chances and rewrite it. 37078 # Note: m4 eats our [], so we need to use [ and ] instead. 37079 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37080 if test "x$has_forbidden_chars" != x; then 37081 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37082 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37083 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37084 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37085 # Going to short mode and back again did indeed matter. Since short mode is 37086 # case insensitive, let's make it lowercase to improve readability. 37087 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37088 # Now convert it back to Unix-style (cygpath) 37089 input_path=`$CYGPATH -u "$shortmode_path"` 37090 new_path="$input_path" 37091 fi 37092 fi 37093 37094 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37095 if test "x$test_cygdrive_prefix" = x; then 37096 # As a simple fix, exclude /usr/bin since it's not a real path. 37097 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37098 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37099 # a path prefixed by /cygdrive for fixpath to work. 37100 new_path="$CYGWIN_ROOT_PATH$input_path" 37101 fi 37102 fi 37103 37104 # remove trailing .exe if any 37105 new_path="${new_path/%.exe/}" 37106 37107 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37108 37109 # First separate the path from the arguments. This will split at the first 37110 # space. 37111 complete="$AR" 37112 path="${complete%% *}" 37113 tmp="$complete EOL" 37114 arguments="${tmp#* }" 37115 37116 # Input might be given as Windows format, start by converting to 37117 # unix format. 37118 new_path="$path" 37119 37120 windows_path="$new_path" 37121 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37122 unix_path=`$CYGPATH -u "$windows_path"` 37123 new_path="$unix_path" 37124 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37125 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37126 new_path="$unix_path" 37127 fi 37128 37129 37130 # Now try to locate executable using which 37131 new_path=`$WHICH "$new_path" 2> /dev/null` 37132 37133 if test "x$new_path" = x; then 37134 # Oops. Which didn't find the executable. 37135 # The splitting of arguments from the executable at a space might have been incorrect, 37136 # since paths with space are more likely in Windows. Give it another try with the whole 37137 # argument. 37138 path="$complete" 37139 arguments="EOL" 37140 new_path="$path" 37141 37142 windows_path="$new_path" 37143 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37144 unix_path=`$CYGPATH -u "$windows_path"` 37145 new_path="$unix_path" 37146 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37147 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37148 new_path="$unix_path" 37149 fi 37150 37151 37152 new_path=`$WHICH "$new_path" 2> /dev/null` 37153 # bat and cmd files are not always considered executable in MSYS causing which 37154 # to not find them 37155 if test "x$new_path" = x \ 37156 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37157 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37158 new_path="$path" 37159 37160 windows_path="$new_path" 37161 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37162 unix_path=`$CYGPATH -u "$windows_path"` 37163 new_path="$unix_path" 37164 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37165 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37166 new_path="$unix_path" 37167 fi 37168 37169 fi 37170 37171 if test "x$new_path" = x; then 37172 # It's still not found. Now this is an unrecoverable error. 37173 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 37174 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 37175 has_space=`$ECHO "$complete" | $GREP " "` 37176 if test "x$has_space" != x; then 37177 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37178 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37179 fi 37180 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 37181 fi 37182 fi 37183 37184 # Now new_path has a complete unix path to the binary 37185 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37186 # Keep paths in /bin as-is, but remove trailing .exe if any 37187 new_path="${new_path/%.exe/}" 37188 # Do not save /bin paths to all_fixpath_prefixes! 37189 else 37190 # Not in mixed or Windows style, start by that. 37191 new_path=`cmd //c echo $new_path` 37192 37193 input_path="$new_path" 37194 # Check if we need to convert this using DOS-style short mode. If the path 37195 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37196 # take no chances and rewrite it. 37197 # Note: m4 eats our [], so we need to use [ and ] instead. 37198 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37199 if test "x$has_forbidden_chars" != x; then 37200 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37201 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37202 fi 37203 37204 # Output is in $new_path 37205 37206 windows_path="$new_path" 37207 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37208 unix_path=`$CYGPATH -u "$windows_path"` 37209 new_path="$unix_path" 37210 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37211 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37212 new_path="$unix_path" 37213 fi 37214 37215 # remove trailing .exe if any 37216 new_path="${new_path/%.exe/}" 37217 37218 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37219 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37220 fi 37221 37222 else 37223 # We're on a unix platform. Hooray! :) 37224 # First separate the path from the arguments. This will split at the first 37225 # space. 37226 complete="$AR" 37227 path="${complete%% *}" 37228 tmp="$complete EOL" 37229 arguments="${tmp#* }" 37230 37231 # Cannot rely on the command "which" here since it doesn't always work. 37232 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37233 if test -z "$is_absolute_path"; then 37234 # Path to executable is not absolute. Find it. 37235 IFS_save="$IFS" 37236 IFS=: 37237 for p in $PATH; do 37238 if test -f "$p/$path" && test -x "$p/$path"; then 37239 new_path="$p/$path" 37240 break 37241 fi 37242 done 37243 IFS="$IFS_save" 37244 else 37245 # This is an absolute path, we can use it without further modifications. 37246 new_path="$path" 37247 fi 37248 37249 if test "x$new_path" = x; then 37250 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 37251 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 37252 has_space=`$ECHO "$complete" | $GREP " "` 37253 if test "x$has_space" != x; then 37254 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37255 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37256 fi 37257 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 37258 fi 37259 fi 37260 37261 # Now join together the path and the arguments once again 37262 if test "x$arguments" != xEOL; then 37263 new_complete="$new_path ${arguments% *}" 37264 else 37265 new_complete="$new_path" 37266 fi 37267 37268 if test "x$complete" != "x$new_complete"; then 37269 AR="$new_complete" 37270 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 37271 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 37272 fi 37273 fi 37274 37275 37276 37277 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 37278 37279 37280 # Publish this variable in the help. 37281 37282 37283 if [ -z "${LIPO+x}" ]; then 37284 # The variable is not set by user, try to locate tool using the code snippet 37285 for ac_prog in lipo 37286 do 37287 # Extract the first word of "$ac_prog", so it can be a program name with args. 37288 set dummy $ac_prog; ac_word=$2 37289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37290 $as_echo_n "checking for $ac_word... " >&6; } 37291 if ${ac_cv_path_LIPO+:} false; then : 37292 $as_echo_n "(cached) " >&6 37293 else 37294 case $LIPO in 37295 [\\/]* | ?:[\\/]*) 37296 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 37297 ;; 37298 *) 37299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37300 for as_dir in $PATH 37301 do 37302 IFS=$as_save_IFS 37303 test -z "$as_dir" && as_dir=. 37304 for ac_exec_ext in '' $ac_executable_extensions; do 37305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37306 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 37307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37308 break 2 37309 fi 37310 done 37311 done 37312 IFS=$as_save_IFS 37313 37314 ;; 37315 esac 37316 fi 37317 LIPO=$ac_cv_path_LIPO 37318 if test -n "$LIPO"; then 37319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 37320 $as_echo "$LIPO" >&6; } 37321 else 37322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37323 $as_echo "no" >&6; } 37324 fi 37325 37326 37327 test -n "$LIPO" && break 37328 done 37329 37330 else 37331 # The variable is set, but is it from the command line or the environment? 37332 37333 # Try to remove the string !LIPO! from our list. 37334 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 37335 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37336 # If it failed, the variable was not from the command line. Ignore it, 37337 # but warn the user (except for BASH, which is always set by the calling BASH). 37338 if test "xLIPO" != xBASH; then 37339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 37340 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 37341 fi 37342 # Try to locate tool using the code snippet 37343 for ac_prog in lipo 37344 do 37345 # Extract the first word of "$ac_prog", so it can be a program name with args. 37346 set dummy $ac_prog; ac_word=$2 37347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37348 $as_echo_n "checking for $ac_word... " >&6; } 37349 if ${ac_cv_path_LIPO+:} false; then : 37350 $as_echo_n "(cached) " >&6 37351 else 37352 case $LIPO in 37353 [\\/]* | ?:[\\/]*) 37354 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 37355 ;; 37356 *) 37357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37358 for as_dir in $PATH 37359 do 37360 IFS=$as_save_IFS 37361 test -z "$as_dir" && as_dir=. 37362 for ac_exec_ext in '' $ac_executable_extensions; do 37363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37364 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 37365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37366 break 2 37367 fi 37368 done 37369 done 37370 IFS=$as_save_IFS 37371 37372 ;; 37373 esac 37374 fi 37375 LIPO=$ac_cv_path_LIPO 37376 if test -n "$LIPO"; then 37377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 37378 $as_echo "$LIPO" >&6; } 37379 else 37380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37381 $as_echo "no" >&6; } 37382 fi 37383 37384 37385 test -n "$LIPO" && break 37386 done 37387 37388 else 37389 # If it succeeded, then it was overridden by the user. We will use it 37390 # for the tool. 37391 37392 # First remove it from the list of overridden variables, so we can test 37393 # for unknown variables in the end. 37394 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37395 37396 # Check if we try to supply an empty value 37397 if test "x$LIPO" = x; then 37398 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LIPO= (no value)" >&5 37399 $as_echo "$as_me: Setting user supplied tool LIPO= (no value)" >&6;} 37400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 37401 $as_echo_n "checking for LIPO... " >&6; } 37402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 37403 $as_echo "disabled" >&6; } 37404 else 37405 # Check if the provided tool contains a complete path. 37406 tool_specified="$LIPO" 37407 tool_basename="${tool_specified##*/}" 37408 if test "x$tool_basename" = "x$tool_specified"; then 37409 # A command without a complete path is provided, search $PATH. 37410 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 37411 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 37412 # Extract the first word of "$tool_basename", so it can be a program name with args. 37413 set dummy $tool_basename; ac_word=$2 37414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37415 $as_echo_n "checking for $ac_word... " >&6; } 37416 if ${ac_cv_path_LIPO+:} false; then : 37417 $as_echo_n "(cached) " >&6 37418 else 37419 case $LIPO in 37420 [\\/]* | ?:[\\/]*) 37421 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 37422 ;; 37423 *) 37424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37425 for as_dir in $PATH 37426 do 37427 IFS=$as_save_IFS 37428 test -z "$as_dir" && as_dir=. 37429 for ac_exec_ext in '' $ac_executable_extensions; do 37430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37431 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 37432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37433 break 2 37434 fi 37435 done 37436 done 37437 IFS=$as_save_IFS 37438 37439 ;; 37440 esac 37441 fi 37442 LIPO=$ac_cv_path_LIPO 37443 if test -n "$LIPO"; then 37444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 37445 $as_echo "$LIPO" >&6; } 37446 else 37447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37448 $as_echo "no" >&6; } 37449 fi 37450 37451 37452 if test "x$LIPO" = x; then 37453 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37454 fi 37455 else 37456 # Otherwise we believe it is a complete path. Use it as it is. 37457 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 37458 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 37459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 37460 $as_echo_n "checking for LIPO... " >&6; } 37461 if test ! -x "$tool_specified"; then 37462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37463 $as_echo "not found" >&6; } 37464 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 37465 fi 37466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37467 $as_echo "$tool_specified" >&6; } 37468 fi 37469 fi 37470 fi 37471 37472 fi 37473 37474 37475 37476 # Only process if variable expands to non-empty 37477 37478 if test "x$LIPO" != x; then 37479 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37480 37481 # First separate the path from the arguments. This will split at the first 37482 # space. 37483 complete="$LIPO" 37484 path="${complete%% *}" 37485 tmp="$complete EOL" 37486 arguments="${tmp#* }" 37487 37488 # Input might be given as Windows format, start by converting to 37489 # unix format. 37490 new_path=`$CYGPATH -u "$path"` 37491 37492 # Now try to locate executable using which 37493 new_path=`$WHICH "$new_path" 2> /dev/null` 37494 # bat and cmd files are not always considered executable in cygwin causing which 37495 # to not find them 37496 if test "x$new_path" = x \ 37497 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37498 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37499 new_path=`$CYGPATH -u "$path"` 37500 fi 37501 if test "x$new_path" = x; then 37502 # Oops. Which didn't find the executable. 37503 # The splitting of arguments from the executable at a space might have been incorrect, 37504 # since paths with space are more likely in Windows. Give it another try with the whole 37505 # argument. 37506 path="$complete" 37507 arguments="EOL" 37508 new_path=`$CYGPATH -u "$path"` 37509 new_path=`$WHICH "$new_path" 2> /dev/null` 37510 # bat and cmd files are not always considered executable in cygwin causing which 37511 # to not find them 37512 if test "x$new_path" = x \ 37513 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37514 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37515 new_path=`$CYGPATH -u "$path"` 37516 fi 37517 if test "x$new_path" = x; then 37518 # It's still not found. Now this is an unrecoverable error. 37519 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 37520 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 37521 has_space=`$ECHO "$complete" | $GREP " "` 37522 if test "x$has_space" != x; then 37523 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37524 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37525 fi 37526 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 37527 fi 37528 fi 37529 37530 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37531 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37532 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37533 # "foo.exe" is OK but "foo" is an error. 37534 # 37535 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37536 # It is also a way to make sure we got the proper file name for the real test later on. 37537 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37538 if test "x$test_shortpath" = x; then 37539 # Short path failed, file does not exist as specified. 37540 # Try adding .exe or .cmd 37541 if test -f "${new_path}.exe"; then 37542 input_to_shortpath="${new_path}.exe" 37543 elif test -f "${new_path}.cmd"; then 37544 input_to_shortpath="${new_path}.cmd" 37545 else 37546 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 37547 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 37548 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37549 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37550 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 37551 fi 37552 else 37553 input_to_shortpath="$new_path" 37554 fi 37555 37556 # Call helper function which possibly converts this using DOS-style short mode. 37557 # If so, the updated path is stored in $new_path. 37558 new_path="$input_to_shortpath" 37559 37560 input_path="$input_to_shortpath" 37561 # Check if we need to convert this using DOS-style short mode. If the path 37562 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37563 # take no chances and rewrite it. 37564 # Note: m4 eats our [], so we need to use [ and ] instead. 37565 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37566 if test "x$has_forbidden_chars" != x; then 37567 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37568 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37569 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37570 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37571 # Going to short mode and back again did indeed matter. Since short mode is 37572 # case insensitive, let's make it lowercase to improve readability. 37573 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37574 # Now convert it back to Unix-style (cygpath) 37575 input_path=`$CYGPATH -u "$shortmode_path"` 37576 new_path="$input_path" 37577 fi 37578 fi 37579 37580 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37581 if test "x$test_cygdrive_prefix" = x; then 37582 # As a simple fix, exclude /usr/bin since it's not a real path. 37583 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37584 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37585 # a path prefixed by /cygdrive for fixpath to work. 37586 new_path="$CYGWIN_ROOT_PATH$input_path" 37587 fi 37588 fi 37589 37590 # remove trailing .exe if any 37591 new_path="${new_path/%.exe/}" 37592 37593 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37594 37595 # First separate the path from the arguments. This will split at the first 37596 # space. 37597 complete="$LIPO" 37598 path="${complete%% *}" 37599 tmp="$complete EOL" 37600 arguments="${tmp#* }" 37601 37602 # Input might be given as Windows format, start by converting to 37603 # unix format. 37604 new_path="$path" 37605 37606 windows_path="$new_path" 37607 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37608 unix_path=`$CYGPATH -u "$windows_path"` 37609 new_path="$unix_path" 37610 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37611 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37612 new_path="$unix_path" 37613 fi 37614 37615 37616 # Now try to locate executable using which 37617 new_path=`$WHICH "$new_path" 2> /dev/null` 37618 37619 if test "x$new_path" = x; then 37620 # Oops. Which didn't find the executable. 37621 # The splitting of arguments from the executable at a space might have been incorrect, 37622 # since paths with space are more likely in Windows. Give it another try with the whole 37623 # argument. 37624 path="$complete" 37625 arguments="EOL" 37626 new_path="$path" 37627 37628 windows_path="$new_path" 37629 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37630 unix_path=`$CYGPATH -u "$windows_path"` 37631 new_path="$unix_path" 37632 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37633 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37634 new_path="$unix_path" 37635 fi 37636 37637 37638 new_path=`$WHICH "$new_path" 2> /dev/null` 37639 # bat and cmd files are not always considered executable in MSYS causing which 37640 # to not find them 37641 if test "x$new_path" = x \ 37642 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37643 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37644 new_path="$path" 37645 37646 windows_path="$new_path" 37647 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37648 unix_path=`$CYGPATH -u "$windows_path"` 37649 new_path="$unix_path" 37650 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37651 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37652 new_path="$unix_path" 37653 fi 37654 37655 fi 37656 37657 if test "x$new_path" = x; then 37658 # It's still not found. Now this is an unrecoverable error. 37659 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 37660 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 37661 has_space=`$ECHO "$complete" | $GREP " "` 37662 if test "x$has_space" != x; then 37663 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37664 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37665 fi 37666 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 37667 fi 37668 fi 37669 37670 # Now new_path has a complete unix path to the binary 37671 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37672 # Keep paths in /bin as-is, but remove trailing .exe if any 37673 new_path="${new_path/%.exe/}" 37674 # Do not save /bin paths to all_fixpath_prefixes! 37675 else 37676 # Not in mixed or Windows style, start by that. 37677 new_path=`cmd //c echo $new_path` 37678 37679 input_path="$new_path" 37680 # Check if we need to convert this using DOS-style short mode. If the path 37681 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37682 # take no chances and rewrite it. 37683 # Note: m4 eats our [], so we need to use [ and ] instead. 37684 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37685 if test "x$has_forbidden_chars" != x; then 37686 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37687 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37688 fi 37689 37690 # Output is in $new_path 37691 37692 windows_path="$new_path" 37693 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37694 unix_path=`$CYGPATH -u "$windows_path"` 37695 new_path="$unix_path" 37696 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37697 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37698 new_path="$unix_path" 37699 fi 37700 37701 # remove trailing .exe if any 37702 new_path="${new_path/%.exe/}" 37703 37704 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37705 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37706 fi 37707 37708 else 37709 # We're on a unix platform. Hooray! :) 37710 # First separate the path from the arguments. This will split at the first 37711 # space. 37712 complete="$LIPO" 37713 path="${complete%% *}" 37714 tmp="$complete EOL" 37715 arguments="${tmp#* }" 37716 37717 # Cannot rely on the command "which" here since it doesn't always work. 37718 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37719 if test -z "$is_absolute_path"; then 37720 # Path to executable is not absolute. Find it. 37721 IFS_save="$IFS" 37722 IFS=: 37723 for p in $PATH; do 37724 if test -f "$p/$path" && test -x "$p/$path"; then 37725 new_path="$p/$path" 37726 break 37727 fi 37728 done 37729 IFS="$IFS_save" 37730 else 37731 # This is an absolute path, we can use it without further modifications. 37732 new_path="$path" 37733 fi 37734 37735 if test "x$new_path" = x; then 37736 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 37737 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 37738 has_space=`$ECHO "$complete" | $GREP " "` 37739 if test "x$has_space" != x; then 37740 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37741 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37742 fi 37743 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 37744 fi 37745 fi 37746 37747 # Now join together the path and the arguments once again 37748 if test "x$arguments" != xEOL; then 37749 new_complete="$new_path ${arguments% *}" 37750 else 37751 new_complete="$new_path" 37752 fi 37753 37754 if test "x$complete" != "x$new_complete"; then 37755 LIPO="$new_complete" 37756 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 37757 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 37758 fi 37759 fi 37760 37761 fi 37762 37763 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 37764 # Extract the first word of "mt", so it can be a program name with args. 37765 set dummy mt; ac_word=$2 37766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37767 $as_echo_n "checking for $ac_word... " >&6; } 37768 if ${ac_cv_prog_MT+:} false; then : 37769 $as_echo_n "(cached) " >&6 37770 else 37771 if test -n "$MT"; then 37772 ac_cv_prog_MT="$MT" # Let the user override the test. 37773 else 37774 ac_prog_rejected=no 37775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37776 for as_dir in $PATH 37777 do 37778 IFS=$as_save_IFS 37779 test -z "$as_dir" && as_dir=. 37780 for ac_exec_ext in '' $ac_executable_extensions; do 37781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37782 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 37783 ac_prog_rejected=yes 37784 continue 37785 fi 37786 ac_cv_prog_MT="mt" 37787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37788 break 2 37789 fi 37790 done 37791 done 37792 IFS=$as_save_IFS 37793 37794 if test $ac_prog_rejected = yes; then 37795 # We found a bogon in the path, so make sure we never use it. 37796 set dummy $ac_cv_prog_MT 37797 shift 37798 if test $# != 0; then 37799 # We chose a different compiler from the bogus one. 37800 # However, it has the same basename, so the bogon will be chosen 37801 # first if we set MT to just the basename; use the full file name. 37802 shift 37803 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 37804 fi 37805 fi 37806 fi 37807 fi 37808 MT=$ac_cv_prog_MT 37809 if test -n "$MT"; then 37810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 37811 $as_echo "$MT" >&6; } 37812 else 37813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37814 $as_echo "no" >&6; } 37815 fi 37816 37817 37818 37819 # Only process if variable expands to non-empty 37820 37821 if test "x$MT" != x; then 37822 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37823 37824 # First separate the path from the arguments. This will split at the first 37825 # space. 37826 complete="$MT" 37827 path="${complete%% *}" 37828 tmp="$complete EOL" 37829 arguments="${tmp#* }" 37830 37831 # Input might be given as Windows format, start by converting to 37832 # unix format. 37833 new_path=`$CYGPATH -u "$path"` 37834 37835 # Now try to locate executable using which 37836 new_path=`$WHICH "$new_path" 2> /dev/null` 37837 # bat and cmd files are not always considered executable in cygwin causing which 37838 # to not find them 37839 if test "x$new_path" = x \ 37840 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37841 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37842 new_path=`$CYGPATH -u "$path"` 37843 fi 37844 if test "x$new_path" = x; then 37845 # Oops. Which didn't find the executable. 37846 # The splitting of arguments from the executable at a space might have been incorrect, 37847 # since paths with space are more likely in Windows. Give it another try with the whole 37848 # argument. 37849 path="$complete" 37850 arguments="EOL" 37851 new_path=`$CYGPATH -u "$path"` 37852 new_path=`$WHICH "$new_path" 2> /dev/null` 37853 # bat and cmd files are not always considered executable in cygwin causing which 37854 # to not find them 37855 if test "x$new_path" = x \ 37856 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37857 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37858 new_path=`$CYGPATH -u "$path"` 37859 fi 37860 if test "x$new_path" = x; then 37861 # It's still not found. Now this is an unrecoverable error. 37862 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 37863 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 37864 has_space=`$ECHO "$complete" | $GREP " "` 37865 if test "x$has_space" != x; then 37866 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37867 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37868 fi 37869 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 37870 fi 37871 fi 37872 37873 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37874 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37875 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37876 # "foo.exe" is OK but "foo" is an error. 37877 # 37878 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37879 # It is also a way to make sure we got the proper file name for the real test later on. 37880 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37881 if test "x$test_shortpath" = x; then 37882 # Short path failed, file does not exist as specified. 37883 # Try adding .exe or .cmd 37884 if test -f "${new_path}.exe"; then 37885 input_to_shortpath="${new_path}.exe" 37886 elif test -f "${new_path}.cmd"; then 37887 input_to_shortpath="${new_path}.cmd" 37888 else 37889 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 37890 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 37891 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37892 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37893 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 37894 fi 37895 else 37896 input_to_shortpath="$new_path" 37897 fi 37898 37899 # Call helper function which possibly converts this using DOS-style short mode. 37900 # If so, the updated path is stored in $new_path. 37901 new_path="$input_to_shortpath" 37902 37903 input_path="$input_to_shortpath" 37904 # Check if we need to convert this using DOS-style short mode. If the path 37905 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37906 # take no chances and rewrite it. 37907 # Note: m4 eats our [], so we need to use [ and ] instead. 37908 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37909 if test "x$has_forbidden_chars" != x; then 37910 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37911 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37912 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37913 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37914 # Going to short mode and back again did indeed matter. Since short mode is 37915 # case insensitive, let's make it lowercase to improve readability. 37916 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37917 # Now convert it back to Unix-style (cygpath) 37918 input_path=`$CYGPATH -u "$shortmode_path"` 37919 new_path="$input_path" 37920 fi 37921 fi 37922 37923 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37924 if test "x$test_cygdrive_prefix" = x; then 37925 # As a simple fix, exclude /usr/bin since it's not a real path. 37926 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37927 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37928 # a path prefixed by /cygdrive for fixpath to work. 37929 new_path="$CYGWIN_ROOT_PATH$input_path" 37930 fi 37931 fi 37932 37933 # remove trailing .exe if any 37934 new_path="${new_path/%.exe/}" 37935 37936 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37937 37938 # First separate the path from the arguments. This will split at the first 37939 # space. 37940 complete="$MT" 37941 path="${complete%% *}" 37942 tmp="$complete EOL" 37943 arguments="${tmp#* }" 37944 37945 # Input might be given as Windows format, start by converting to 37946 # unix format. 37947 new_path="$path" 37948 37949 windows_path="$new_path" 37950 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37951 unix_path=`$CYGPATH -u "$windows_path"` 37952 new_path="$unix_path" 37953 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37954 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37955 new_path="$unix_path" 37956 fi 37957 37958 37959 # Now try to locate executable using which 37960 new_path=`$WHICH "$new_path" 2> /dev/null` 37961 37962 if test "x$new_path" = x; then 37963 # Oops. Which didn't find the executable. 37964 # The splitting of arguments from the executable at a space might have been incorrect, 37965 # since paths with space are more likely in Windows. Give it another try with the whole 37966 # argument. 37967 path="$complete" 37968 arguments="EOL" 37969 new_path="$path" 37970 37971 windows_path="$new_path" 37972 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37973 unix_path=`$CYGPATH -u "$windows_path"` 37974 new_path="$unix_path" 37975 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37976 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37977 new_path="$unix_path" 37978 fi 37979 37980 37981 new_path=`$WHICH "$new_path" 2> /dev/null` 37982 # bat and cmd files are not always considered executable in MSYS causing which 37983 # to not find them 37984 if test "x$new_path" = x \ 37985 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37986 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37987 new_path="$path" 37988 37989 windows_path="$new_path" 37990 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37991 unix_path=`$CYGPATH -u "$windows_path"` 37992 new_path="$unix_path" 37993 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37994 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37995 new_path="$unix_path" 37996 fi 37997 37998 fi 37999 38000 if test "x$new_path" = x; then 38001 # It's still not found. Now this is an unrecoverable error. 38002 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 38003 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 38004 has_space=`$ECHO "$complete" | $GREP " "` 38005 if test "x$has_space" != x; then 38006 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38007 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38008 fi 38009 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 38010 fi 38011 fi 38012 38013 # Now new_path has a complete unix path to the binary 38014 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38015 # Keep paths in /bin as-is, but remove trailing .exe if any 38016 new_path="${new_path/%.exe/}" 38017 # Do not save /bin paths to all_fixpath_prefixes! 38018 else 38019 # Not in mixed or Windows style, start by that. 38020 new_path=`cmd //c echo $new_path` 38021 38022 input_path="$new_path" 38023 # Check if we need to convert this using DOS-style short mode. If the path 38024 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38025 # take no chances and rewrite it. 38026 # Note: m4 eats our [], so we need to use [ and ] instead. 38027 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38028 if test "x$has_forbidden_chars" != x; then 38029 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38030 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38031 fi 38032 38033 # Output is in $new_path 38034 38035 windows_path="$new_path" 38036 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38037 unix_path=`$CYGPATH -u "$windows_path"` 38038 new_path="$unix_path" 38039 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38040 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38041 new_path="$unix_path" 38042 fi 38043 38044 # remove trailing .exe if any 38045 new_path="${new_path/%.exe/}" 38046 38047 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38048 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38049 fi 38050 38051 else 38052 # We're on a unix platform. Hooray! :) 38053 # First separate the path from the arguments. This will split at the first 38054 # space. 38055 complete="$MT" 38056 path="${complete%% *}" 38057 tmp="$complete EOL" 38058 arguments="${tmp#* }" 38059 38060 # Cannot rely on the command "which" here since it doesn't always work. 38061 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38062 if test -z "$is_absolute_path"; then 38063 # Path to executable is not absolute. Find it. 38064 IFS_save="$IFS" 38065 IFS=: 38066 for p in $PATH; do 38067 if test -f "$p/$path" && test -x "$p/$path"; then 38068 new_path="$p/$path" 38069 break 38070 fi 38071 done 38072 IFS="$IFS_save" 38073 else 38074 # This is an absolute path, we can use it without further modifications. 38075 new_path="$path" 38076 fi 38077 38078 if test "x$new_path" = x; then 38079 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 38080 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 38081 has_space=`$ECHO "$complete" | $GREP " "` 38082 if test "x$has_space" != x; then 38083 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38084 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38085 fi 38086 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 38087 fi 38088 fi 38089 38090 # Now join together the path and the arguments once again 38091 if test "x$arguments" != xEOL; then 38092 new_complete="$new_path ${arguments% *}" 38093 else 38094 new_complete="$new_path" 38095 fi 38096 38097 if test "x$complete" != "x$new_complete"; then 38098 MT="$new_complete" 38099 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 38100 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 38101 fi 38102 fi 38103 38104 # Setup the resource compiler (RC) 38105 # Extract the first word of "rc", so it can be a program name with args. 38106 set dummy rc; ac_word=$2 38107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38108 $as_echo_n "checking for $ac_word... " >&6; } 38109 if ${ac_cv_prog_RC+:} false; then : 38110 $as_echo_n "(cached) " >&6 38111 else 38112 if test -n "$RC"; then 38113 ac_cv_prog_RC="$RC" # Let the user override the test. 38114 else 38115 ac_prog_rejected=no 38116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38117 for as_dir in $PATH 38118 do 38119 IFS=$as_save_IFS 38120 test -z "$as_dir" && as_dir=. 38121 for ac_exec_ext in '' $ac_executable_extensions; do 38122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38123 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 38124 ac_prog_rejected=yes 38125 continue 38126 fi 38127 ac_cv_prog_RC="rc" 38128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38129 break 2 38130 fi 38131 done 38132 done 38133 IFS=$as_save_IFS 38134 38135 if test $ac_prog_rejected = yes; then 38136 # We found a bogon in the path, so make sure we never use it. 38137 set dummy $ac_cv_prog_RC 38138 shift 38139 if test $# != 0; then 38140 # We chose a different compiler from the bogus one. 38141 # However, it has the same basename, so the bogon will be chosen 38142 # first if we set RC to just the basename; use the full file name. 38143 shift 38144 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 38145 fi 38146 fi 38147 fi 38148 fi 38149 RC=$ac_cv_prog_RC 38150 if test -n "$RC"; then 38151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 38152 $as_echo "$RC" >&6; } 38153 else 38154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38155 $as_echo "no" >&6; } 38156 fi 38157 38158 38159 38160 # Only process if variable expands to non-empty 38161 38162 if test "x$RC" != x; then 38163 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38164 38165 # First separate the path from the arguments. This will split at the first 38166 # space. 38167 complete="$RC" 38168 path="${complete%% *}" 38169 tmp="$complete EOL" 38170 arguments="${tmp#* }" 38171 38172 # Input might be given as Windows format, start by converting to 38173 # unix format. 38174 new_path=`$CYGPATH -u "$path"` 38175 38176 # Now try to locate executable using which 38177 new_path=`$WHICH "$new_path" 2> /dev/null` 38178 # bat and cmd files are not always considered executable in cygwin causing which 38179 # to not find them 38180 if test "x$new_path" = x \ 38181 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38182 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38183 new_path=`$CYGPATH -u "$path"` 38184 fi 38185 if test "x$new_path" = x; then 38186 # Oops. Which didn't find the executable. 38187 # The splitting of arguments from the executable at a space might have been incorrect, 38188 # since paths with space are more likely in Windows. Give it another try with the whole 38189 # argument. 38190 path="$complete" 38191 arguments="EOL" 38192 new_path=`$CYGPATH -u "$path"` 38193 new_path=`$WHICH "$new_path" 2> /dev/null` 38194 # bat and cmd files are not always considered executable in cygwin causing which 38195 # to not find them 38196 if test "x$new_path" = x \ 38197 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38198 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38199 new_path=`$CYGPATH -u "$path"` 38200 fi 38201 if test "x$new_path" = x; then 38202 # It's still not found. Now this is an unrecoverable error. 38203 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 38204 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 38205 has_space=`$ECHO "$complete" | $GREP " "` 38206 if test "x$has_space" != x; then 38207 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38208 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38209 fi 38210 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 38211 fi 38212 fi 38213 38214 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38215 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38216 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38217 # "foo.exe" is OK but "foo" is an error. 38218 # 38219 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38220 # It is also a way to make sure we got the proper file name for the real test later on. 38221 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38222 if test "x$test_shortpath" = x; then 38223 # Short path failed, file does not exist as specified. 38224 # Try adding .exe or .cmd 38225 if test -f "${new_path}.exe"; then 38226 input_to_shortpath="${new_path}.exe" 38227 elif test -f "${new_path}.cmd"; then 38228 input_to_shortpath="${new_path}.cmd" 38229 else 38230 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 38231 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 38232 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38233 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38234 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 38235 fi 38236 else 38237 input_to_shortpath="$new_path" 38238 fi 38239 38240 # Call helper function which possibly converts this using DOS-style short mode. 38241 # If so, the updated path is stored in $new_path. 38242 new_path="$input_to_shortpath" 38243 38244 input_path="$input_to_shortpath" 38245 # Check if we need to convert this using DOS-style short mode. If the path 38246 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38247 # take no chances and rewrite it. 38248 # Note: m4 eats our [], so we need to use [ and ] instead. 38249 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38250 if test "x$has_forbidden_chars" != x; then 38251 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38252 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38253 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38254 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38255 # Going to short mode and back again did indeed matter. Since short mode is 38256 # case insensitive, let's make it lowercase to improve readability. 38257 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38258 # Now convert it back to Unix-style (cygpath) 38259 input_path=`$CYGPATH -u "$shortmode_path"` 38260 new_path="$input_path" 38261 fi 38262 fi 38263 38264 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38265 if test "x$test_cygdrive_prefix" = x; then 38266 # As a simple fix, exclude /usr/bin since it's not a real path. 38267 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38268 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38269 # a path prefixed by /cygdrive for fixpath to work. 38270 new_path="$CYGWIN_ROOT_PATH$input_path" 38271 fi 38272 fi 38273 38274 # remove trailing .exe if any 38275 new_path="${new_path/%.exe/}" 38276 38277 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38278 38279 # First separate the path from the arguments. This will split at the first 38280 # space. 38281 complete="$RC" 38282 path="${complete%% *}" 38283 tmp="$complete EOL" 38284 arguments="${tmp#* }" 38285 38286 # Input might be given as Windows format, start by converting to 38287 # unix format. 38288 new_path="$path" 38289 38290 windows_path="$new_path" 38291 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38292 unix_path=`$CYGPATH -u "$windows_path"` 38293 new_path="$unix_path" 38294 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38295 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38296 new_path="$unix_path" 38297 fi 38298 38299 38300 # Now try to locate executable using which 38301 new_path=`$WHICH "$new_path" 2> /dev/null` 38302 38303 if test "x$new_path" = x; then 38304 # Oops. Which didn't find the executable. 38305 # The splitting of arguments from the executable at a space might have been incorrect, 38306 # since paths with space are more likely in Windows. Give it another try with the whole 38307 # argument. 38308 path="$complete" 38309 arguments="EOL" 38310 new_path="$path" 38311 38312 windows_path="$new_path" 38313 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38314 unix_path=`$CYGPATH -u "$windows_path"` 38315 new_path="$unix_path" 38316 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38317 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38318 new_path="$unix_path" 38319 fi 38320 38321 38322 new_path=`$WHICH "$new_path" 2> /dev/null` 38323 # bat and cmd files are not always considered executable in MSYS causing which 38324 # to not find them 38325 if test "x$new_path" = x \ 38326 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38327 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38328 new_path="$path" 38329 38330 windows_path="$new_path" 38331 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38332 unix_path=`$CYGPATH -u "$windows_path"` 38333 new_path="$unix_path" 38334 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38335 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38336 new_path="$unix_path" 38337 fi 38338 38339 fi 38340 38341 if test "x$new_path" = x; then 38342 # It's still not found. Now this is an unrecoverable error. 38343 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 38344 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 38345 has_space=`$ECHO "$complete" | $GREP " "` 38346 if test "x$has_space" != x; then 38347 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38348 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38349 fi 38350 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 38351 fi 38352 fi 38353 38354 # Now new_path has a complete unix path to the binary 38355 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38356 # Keep paths in /bin as-is, but remove trailing .exe if any 38357 new_path="${new_path/%.exe/}" 38358 # Do not save /bin paths to all_fixpath_prefixes! 38359 else 38360 # Not in mixed or Windows style, start by that. 38361 new_path=`cmd //c echo $new_path` 38362 38363 input_path="$new_path" 38364 # Check if we need to convert this using DOS-style short mode. If the path 38365 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38366 # take no chances and rewrite it. 38367 # Note: m4 eats our [], so we need to use [ and ] instead. 38368 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38369 if test "x$has_forbidden_chars" != x; then 38370 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38371 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38372 fi 38373 38374 # Output is in $new_path 38375 38376 windows_path="$new_path" 38377 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38378 unix_path=`$CYGPATH -u "$windows_path"` 38379 new_path="$unix_path" 38380 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38381 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38382 new_path="$unix_path" 38383 fi 38384 38385 # remove trailing .exe if any 38386 new_path="${new_path/%.exe/}" 38387 38388 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38389 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38390 fi 38391 38392 else 38393 # We're on a unix platform. Hooray! :) 38394 # First separate the path from the arguments. This will split at the first 38395 # space. 38396 complete="$RC" 38397 path="${complete%% *}" 38398 tmp="$complete EOL" 38399 arguments="${tmp#* }" 38400 38401 # Cannot rely on the command "which" here since it doesn't always work. 38402 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38403 if test -z "$is_absolute_path"; then 38404 # Path to executable is not absolute. Find it. 38405 IFS_save="$IFS" 38406 IFS=: 38407 for p in $PATH; do 38408 if test -f "$p/$path" && test -x "$p/$path"; then 38409 new_path="$p/$path" 38410 break 38411 fi 38412 done 38413 IFS="$IFS_save" 38414 else 38415 # This is an absolute path, we can use it without further modifications. 38416 new_path="$path" 38417 fi 38418 38419 if test "x$new_path" = x; then 38420 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 38421 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 38422 has_space=`$ECHO "$complete" | $GREP " "` 38423 if test "x$has_space" != x; then 38424 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38425 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38426 fi 38427 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 38428 fi 38429 fi 38430 38431 # Now join together the path and the arguments once again 38432 if test "x$arguments" != xEOL; then 38433 new_complete="$new_path ${arguments% *}" 38434 else 38435 new_complete="$new_path" 38436 fi 38437 38438 if test "x$complete" != "x$new_complete"; then 38439 RC="$new_complete" 38440 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 38441 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 38442 fi 38443 fi 38444 38445 # Extract the first word of "dumpbin", so it can be a program name with args. 38446 set dummy dumpbin; ac_word=$2 38447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38448 $as_echo_n "checking for $ac_word... " >&6; } 38449 if ${ac_cv_prog_DUMPBIN+:} false; then : 38450 $as_echo_n "(cached) " >&6 38451 else 38452 if test -n "$DUMPBIN"; then 38453 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 38454 else 38455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38456 for as_dir in $PATH 38457 do 38458 IFS=$as_save_IFS 38459 test -z "$as_dir" && as_dir=. 38460 for ac_exec_ext in '' $ac_executable_extensions; do 38461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38462 ac_cv_prog_DUMPBIN="dumpbin" 38463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38464 break 2 38465 fi 38466 done 38467 done 38468 IFS=$as_save_IFS 38469 38470 fi 38471 fi 38472 DUMPBIN=$ac_cv_prog_DUMPBIN 38473 if test -n "$DUMPBIN"; then 38474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 38475 $as_echo "$DUMPBIN" >&6; } 38476 else 38477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38478 $as_echo "no" >&6; } 38479 fi 38480 38481 38482 38483 # Only process if variable expands to non-empty 38484 38485 if test "x$DUMPBIN" != x; then 38486 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38487 38488 # First separate the path from the arguments. This will split at the first 38489 # space. 38490 complete="$DUMPBIN" 38491 path="${complete%% *}" 38492 tmp="$complete EOL" 38493 arguments="${tmp#* }" 38494 38495 # Input might be given as Windows format, start by converting to 38496 # unix format. 38497 new_path=`$CYGPATH -u "$path"` 38498 38499 # Now try to locate executable using which 38500 new_path=`$WHICH "$new_path" 2> /dev/null` 38501 # bat and cmd files are not always considered executable in cygwin causing which 38502 # to not find them 38503 if test "x$new_path" = x \ 38504 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38505 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38506 new_path=`$CYGPATH -u "$path"` 38507 fi 38508 if test "x$new_path" = x; then 38509 # Oops. Which didn't find the executable. 38510 # The splitting of arguments from the executable at a space might have been incorrect, 38511 # since paths with space are more likely in Windows. Give it another try with the whole 38512 # argument. 38513 path="$complete" 38514 arguments="EOL" 38515 new_path=`$CYGPATH -u "$path"` 38516 new_path=`$WHICH "$new_path" 2> /dev/null` 38517 # bat and cmd files are not always considered executable in cygwin causing which 38518 # to not find them 38519 if test "x$new_path" = x \ 38520 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38521 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38522 new_path=`$CYGPATH -u "$path"` 38523 fi 38524 if test "x$new_path" = x; then 38525 # It's still not found. Now this is an unrecoverable error. 38526 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 38527 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 38528 has_space=`$ECHO "$complete" | $GREP " "` 38529 if test "x$has_space" != x; then 38530 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38531 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38532 fi 38533 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 38534 fi 38535 fi 38536 38537 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38538 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38539 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38540 # "foo.exe" is OK but "foo" is an error. 38541 # 38542 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38543 # It is also a way to make sure we got the proper file name for the real test later on. 38544 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38545 if test "x$test_shortpath" = x; then 38546 # Short path failed, file does not exist as specified. 38547 # Try adding .exe or .cmd 38548 if test -f "${new_path}.exe"; then 38549 input_to_shortpath="${new_path}.exe" 38550 elif test -f "${new_path}.cmd"; then 38551 input_to_shortpath="${new_path}.cmd" 38552 else 38553 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 38554 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 38555 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38556 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38557 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 38558 fi 38559 else 38560 input_to_shortpath="$new_path" 38561 fi 38562 38563 # Call helper function which possibly converts this using DOS-style short mode. 38564 # If so, the updated path is stored in $new_path. 38565 new_path="$input_to_shortpath" 38566 38567 input_path="$input_to_shortpath" 38568 # Check if we need to convert this using DOS-style short mode. If the path 38569 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38570 # take no chances and rewrite it. 38571 # Note: m4 eats our [], so we need to use [ and ] instead. 38572 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38573 if test "x$has_forbidden_chars" != x; then 38574 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38575 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38576 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38577 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38578 # Going to short mode and back again did indeed matter. Since short mode is 38579 # case insensitive, let's make it lowercase to improve readability. 38580 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38581 # Now convert it back to Unix-style (cygpath) 38582 input_path=`$CYGPATH -u "$shortmode_path"` 38583 new_path="$input_path" 38584 fi 38585 fi 38586 38587 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38588 if test "x$test_cygdrive_prefix" = x; then 38589 # As a simple fix, exclude /usr/bin since it's not a real path. 38590 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38591 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38592 # a path prefixed by /cygdrive for fixpath to work. 38593 new_path="$CYGWIN_ROOT_PATH$input_path" 38594 fi 38595 fi 38596 38597 # remove trailing .exe if any 38598 new_path="${new_path/%.exe/}" 38599 38600 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38601 38602 # First separate the path from the arguments. This will split at the first 38603 # space. 38604 complete="$DUMPBIN" 38605 path="${complete%% *}" 38606 tmp="$complete EOL" 38607 arguments="${tmp#* }" 38608 38609 # Input might be given as Windows format, start by converting to 38610 # unix format. 38611 new_path="$path" 38612 38613 windows_path="$new_path" 38614 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38615 unix_path=`$CYGPATH -u "$windows_path"` 38616 new_path="$unix_path" 38617 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38618 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38619 new_path="$unix_path" 38620 fi 38621 38622 38623 # Now try to locate executable using which 38624 new_path=`$WHICH "$new_path" 2> /dev/null` 38625 38626 if test "x$new_path" = x; then 38627 # Oops. Which didn't find the executable. 38628 # The splitting of arguments from the executable at a space might have been incorrect, 38629 # since paths with space are more likely in Windows. Give it another try with the whole 38630 # argument. 38631 path="$complete" 38632 arguments="EOL" 38633 new_path="$path" 38634 38635 windows_path="$new_path" 38636 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38637 unix_path=`$CYGPATH -u "$windows_path"` 38638 new_path="$unix_path" 38639 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38640 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38641 new_path="$unix_path" 38642 fi 38643 38644 38645 new_path=`$WHICH "$new_path" 2> /dev/null` 38646 # bat and cmd files are not always considered executable in MSYS causing which 38647 # to not find them 38648 if test "x$new_path" = x \ 38649 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38650 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38651 new_path="$path" 38652 38653 windows_path="$new_path" 38654 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38655 unix_path=`$CYGPATH -u "$windows_path"` 38656 new_path="$unix_path" 38657 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38658 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38659 new_path="$unix_path" 38660 fi 38661 38662 fi 38663 38664 if test "x$new_path" = x; then 38665 # It's still not found. Now this is an unrecoverable error. 38666 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 38667 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 38668 has_space=`$ECHO "$complete" | $GREP " "` 38669 if test "x$has_space" != x; then 38670 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38671 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38672 fi 38673 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 38674 fi 38675 fi 38676 38677 # Now new_path has a complete unix path to the binary 38678 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38679 # Keep paths in /bin as-is, but remove trailing .exe if any 38680 new_path="${new_path/%.exe/}" 38681 # Do not save /bin paths to all_fixpath_prefixes! 38682 else 38683 # Not in mixed or Windows style, start by that. 38684 new_path=`cmd //c echo $new_path` 38685 38686 input_path="$new_path" 38687 # Check if we need to convert this using DOS-style short mode. If the path 38688 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38689 # take no chances and rewrite it. 38690 # Note: m4 eats our [], so we need to use [ and ] instead. 38691 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38692 if test "x$has_forbidden_chars" != x; then 38693 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38694 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38695 fi 38696 38697 # Output is in $new_path 38698 38699 windows_path="$new_path" 38700 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38701 unix_path=`$CYGPATH -u "$windows_path"` 38702 new_path="$unix_path" 38703 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38704 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38705 new_path="$unix_path" 38706 fi 38707 38708 # remove trailing .exe if any 38709 new_path="${new_path/%.exe/}" 38710 38711 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38712 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38713 fi 38714 38715 else 38716 # We're on a unix platform. Hooray! :) 38717 # First separate the path from the arguments. This will split at the first 38718 # space. 38719 complete="$DUMPBIN" 38720 path="${complete%% *}" 38721 tmp="$complete EOL" 38722 arguments="${tmp#* }" 38723 38724 # Cannot rely on the command "which" here since it doesn't always work. 38725 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38726 if test -z "$is_absolute_path"; then 38727 # Path to executable is not absolute. Find it. 38728 IFS_save="$IFS" 38729 IFS=: 38730 for p in $PATH; do 38731 if test -f "$p/$path" && test -x "$p/$path"; then 38732 new_path="$p/$path" 38733 break 38734 fi 38735 done 38736 IFS="$IFS_save" 38737 else 38738 # This is an absolute path, we can use it without further modifications. 38739 new_path="$path" 38740 fi 38741 38742 if test "x$new_path" = x; then 38743 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 38744 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 38745 has_space=`$ECHO "$complete" | $GREP " "` 38746 if test "x$has_space" != x; then 38747 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38748 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38749 fi 38750 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 38751 fi 38752 fi 38753 38754 # Now join together the path and the arguments once again 38755 if test "x$arguments" != xEOL; then 38756 new_complete="$new_path ${arguments% *}" 38757 else 38758 new_complete="$new_path" 38759 fi 38760 38761 if test "x$complete" != "x$new_complete"; then 38762 DUMPBIN="$new_complete" 38763 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 38764 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 38765 fi 38766 fi 38767 38768 # We need to check for 'msbuild.exe' because at the place where we expect to 38769 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 38770 # won't find the 'msbuild.exe' executable in that case (and the 38771 # 'ac_executable_extensions' is unusable due to performance reasons). 38772 # Notice that we intentionally don't fix up the path to MSBUILD because we 38773 # will call it in a DOS shell during freetype detection on Windows (see 38774 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 38775 # Extract the first word of "msbuild.exe", so it can be a program name with args. 38776 set dummy msbuild.exe; ac_word=$2 38777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38778 $as_echo_n "checking for $ac_word... " >&6; } 38779 if ${ac_cv_prog_MSBUILD+:} false; then : 38780 $as_echo_n "(cached) " >&6 38781 else 38782 if test -n "$MSBUILD"; then 38783 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 38784 else 38785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38786 for as_dir in $PATH 38787 do 38788 IFS=$as_save_IFS 38789 test -z "$as_dir" && as_dir=. 38790 for ac_exec_ext in '' $ac_executable_extensions; do 38791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38792 ac_cv_prog_MSBUILD="msbuild.exe" 38793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38794 break 2 38795 fi 38796 done 38797 done 38798 IFS=$as_save_IFS 38799 38800 fi 38801 fi 38802 MSBUILD=$ac_cv_prog_MSBUILD 38803 if test -n "$MSBUILD"; then 38804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 38805 $as_echo "$MSBUILD" >&6; } 38806 else 38807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38808 $as_echo "no" >&6; } 38809 fi 38810 38811 38812 fi 38813 38814 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 38815 38816 38817 # Publish this variable in the help. 38818 38819 38820 if [ -z "${STRIP+x}" ]; then 38821 # The variable is not set by user, try to locate tool using the code snippet 38822 for ac_prog in strip 38823 do 38824 # Extract the first word of "$ac_prog", so it can be a program name with args. 38825 set dummy $ac_prog; ac_word=$2 38826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38827 $as_echo_n "checking for $ac_word... " >&6; } 38828 if ${ac_cv_path_STRIP+:} false; then : 38829 $as_echo_n "(cached) " >&6 38830 else 38831 case $STRIP in 38832 [\\/]* | ?:[\\/]*) 38833 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 38834 ;; 38835 *) 38836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38837 for as_dir in $PATH 38838 do 38839 IFS=$as_save_IFS 38840 test -z "$as_dir" && as_dir=. 38841 for ac_exec_ext in '' $ac_executable_extensions; do 38842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38843 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 38844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38845 break 2 38846 fi 38847 done 38848 done 38849 IFS=$as_save_IFS 38850 38851 ;; 38852 esac 38853 fi 38854 STRIP=$ac_cv_path_STRIP 38855 if test -n "$STRIP"; then 38856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 38857 $as_echo "$STRIP" >&6; } 38858 else 38859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38860 $as_echo "no" >&6; } 38861 fi 38862 38863 38864 test -n "$STRIP" && break 38865 done 38866 38867 else 38868 # The variable is set, but is it from the command line or the environment? 38869 38870 # Try to remove the string !STRIP! from our list. 38871 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 38872 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38873 # If it failed, the variable was not from the command line. Ignore it, 38874 # but warn the user (except for BASH, which is always set by the calling BASH). 38875 if test "xSTRIP" != xBASH; then 38876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 38877 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 38878 fi 38879 # Try to locate tool using the code snippet 38880 for ac_prog in strip 38881 do 38882 # Extract the first word of "$ac_prog", so it can be a program name with args. 38883 set dummy $ac_prog; ac_word=$2 38884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38885 $as_echo_n "checking for $ac_word... " >&6; } 38886 if ${ac_cv_path_STRIP+:} false; then : 38887 $as_echo_n "(cached) " >&6 38888 else 38889 case $STRIP in 38890 [\\/]* | ?:[\\/]*) 38891 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 38892 ;; 38893 *) 38894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38895 for as_dir in $PATH 38896 do 38897 IFS=$as_save_IFS 38898 test -z "$as_dir" && as_dir=. 38899 for ac_exec_ext in '' $ac_executable_extensions; do 38900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38901 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 38902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38903 break 2 38904 fi 38905 done 38906 done 38907 IFS=$as_save_IFS 38908 38909 ;; 38910 esac 38911 fi 38912 STRIP=$ac_cv_path_STRIP 38913 if test -n "$STRIP"; then 38914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 38915 $as_echo "$STRIP" >&6; } 38916 else 38917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38918 $as_echo "no" >&6; } 38919 fi 38920 38921 38922 test -n "$STRIP" && break 38923 done 38924 38925 else 38926 # If it succeeded, then it was overridden by the user. We will use it 38927 # for the tool. 38928 38929 # First remove it from the list of overridden variables, so we can test 38930 # for unknown variables in the end. 38931 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38932 38933 # Check if we try to supply an empty value 38934 if test "x$STRIP" = x; then 38935 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 38936 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 38937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 38938 $as_echo_n "checking for STRIP... " >&6; } 38939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38940 $as_echo "disabled" >&6; } 38941 else 38942 # Check if the provided tool contains a complete path. 38943 tool_specified="$STRIP" 38944 tool_basename="${tool_specified##*/}" 38945 if test "x$tool_basename" = "x$tool_specified"; then 38946 # A command without a complete path is provided, search $PATH. 38947 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 38948 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 38949 # Extract the first word of "$tool_basename", so it can be a program name with args. 38950 set dummy $tool_basename; ac_word=$2 38951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38952 $as_echo_n "checking for $ac_word... " >&6; } 38953 if ${ac_cv_path_STRIP+:} false; then : 38954 $as_echo_n "(cached) " >&6 38955 else 38956 case $STRIP in 38957 [\\/]* | ?:[\\/]*) 38958 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 38959 ;; 38960 *) 38961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38962 for as_dir in $PATH 38963 do 38964 IFS=$as_save_IFS 38965 test -z "$as_dir" && as_dir=. 38966 for ac_exec_ext in '' $ac_executable_extensions; do 38967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38968 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 38969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38970 break 2 38971 fi 38972 done 38973 done 38974 IFS=$as_save_IFS 38975 38976 ;; 38977 esac 38978 fi 38979 STRIP=$ac_cv_path_STRIP 38980 if test -n "$STRIP"; then 38981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 38982 $as_echo "$STRIP" >&6; } 38983 else 38984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38985 $as_echo "no" >&6; } 38986 fi 38987 38988 38989 if test "x$STRIP" = x; then 38990 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38991 fi 38992 else 38993 # Otherwise we believe it is a complete path. Use it as it is. 38994 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 38995 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 38996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 38997 $as_echo_n "checking for STRIP... " >&6; } 38998 if test ! -x "$tool_specified"; then 38999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39000 $as_echo "not found" >&6; } 39001 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 39002 fi 39003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39004 $as_echo "$tool_specified" >&6; } 39005 fi 39006 fi 39007 fi 39008 39009 fi 39010 39011 39012 39013 # Only process if variable expands to non-empty 39014 39015 if test "x$STRIP" != x; then 39016 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39017 39018 # First separate the path from the arguments. This will split at the first 39019 # space. 39020 complete="$STRIP" 39021 path="${complete%% *}" 39022 tmp="$complete EOL" 39023 arguments="${tmp#* }" 39024 39025 # Input might be given as Windows format, start by converting to 39026 # unix format. 39027 new_path=`$CYGPATH -u "$path"` 39028 39029 # Now try to locate executable using which 39030 new_path=`$WHICH "$new_path" 2> /dev/null` 39031 # bat and cmd files are not always considered executable in cygwin causing which 39032 # to not find them 39033 if test "x$new_path" = x \ 39034 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39035 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39036 new_path=`$CYGPATH -u "$path"` 39037 fi 39038 if test "x$new_path" = x; then 39039 # Oops. Which didn't find the executable. 39040 # The splitting of arguments from the executable at a space might have been incorrect, 39041 # since paths with space are more likely in Windows. Give it another try with the whole 39042 # argument. 39043 path="$complete" 39044 arguments="EOL" 39045 new_path=`$CYGPATH -u "$path"` 39046 new_path=`$WHICH "$new_path" 2> /dev/null` 39047 # bat and cmd files are not always considered executable in cygwin causing which 39048 # to not find them 39049 if test "x$new_path" = x \ 39050 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39051 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39052 new_path=`$CYGPATH -u "$path"` 39053 fi 39054 if test "x$new_path" = x; then 39055 # It's still not found. Now this is an unrecoverable error. 39056 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 39057 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 39058 has_space=`$ECHO "$complete" | $GREP " "` 39059 if test "x$has_space" != x; then 39060 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39061 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39062 fi 39063 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39064 fi 39065 fi 39066 39067 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39068 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39069 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39070 # "foo.exe" is OK but "foo" is an error. 39071 # 39072 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39073 # It is also a way to make sure we got the proper file name for the real test later on. 39074 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39075 if test "x$test_shortpath" = x; then 39076 # Short path failed, file does not exist as specified. 39077 # Try adding .exe or .cmd 39078 if test -f "${new_path}.exe"; then 39079 input_to_shortpath="${new_path}.exe" 39080 elif test -f "${new_path}.cmd"; then 39081 input_to_shortpath="${new_path}.cmd" 39082 else 39083 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 39084 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 39085 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39086 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39087 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39088 fi 39089 else 39090 input_to_shortpath="$new_path" 39091 fi 39092 39093 # Call helper function which possibly converts this using DOS-style short mode. 39094 # If so, the updated path is stored in $new_path. 39095 new_path="$input_to_shortpath" 39096 39097 input_path="$input_to_shortpath" 39098 # Check if we need to convert this using DOS-style short mode. If the path 39099 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39100 # take no chances and rewrite it. 39101 # Note: m4 eats our [], so we need to use [ and ] instead. 39102 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39103 if test "x$has_forbidden_chars" != x; then 39104 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39105 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39106 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39107 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39108 # Going to short mode and back again did indeed matter. Since short mode is 39109 # case insensitive, let's make it lowercase to improve readability. 39110 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39111 # Now convert it back to Unix-style (cygpath) 39112 input_path=`$CYGPATH -u "$shortmode_path"` 39113 new_path="$input_path" 39114 fi 39115 fi 39116 39117 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39118 if test "x$test_cygdrive_prefix" = x; then 39119 # As a simple fix, exclude /usr/bin since it's not a real path. 39120 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39121 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39122 # a path prefixed by /cygdrive for fixpath to work. 39123 new_path="$CYGWIN_ROOT_PATH$input_path" 39124 fi 39125 fi 39126 39127 # remove trailing .exe if any 39128 new_path="${new_path/%.exe/}" 39129 39130 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39131 39132 # First separate the path from the arguments. This will split at the first 39133 # space. 39134 complete="$STRIP" 39135 path="${complete%% *}" 39136 tmp="$complete EOL" 39137 arguments="${tmp#* }" 39138 39139 # Input might be given as Windows format, start by converting to 39140 # unix format. 39141 new_path="$path" 39142 39143 windows_path="$new_path" 39144 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39145 unix_path=`$CYGPATH -u "$windows_path"` 39146 new_path="$unix_path" 39147 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39148 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39149 new_path="$unix_path" 39150 fi 39151 39152 39153 # Now try to locate executable using which 39154 new_path=`$WHICH "$new_path" 2> /dev/null` 39155 39156 if test "x$new_path" = x; then 39157 # Oops. Which didn't find the executable. 39158 # The splitting of arguments from the executable at a space might have been incorrect, 39159 # since paths with space are more likely in Windows. Give it another try with the whole 39160 # argument. 39161 path="$complete" 39162 arguments="EOL" 39163 new_path="$path" 39164 39165 windows_path="$new_path" 39166 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39167 unix_path=`$CYGPATH -u "$windows_path"` 39168 new_path="$unix_path" 39169 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39170 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39171 new_path="$unix_path" 39172 fi 39173 39174 39175 new_path=`$WHICH "$new_path" 2> /dev/null` 39176 # bat and cmd files are not always considered executable in MSYS 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="$path" 39182 39183 windows_path="$new_path" 39184 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39185 unix_path=`$CYGPATH -u "$windows_path"` 39186 new_path="$unix_path" 39187 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39188 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39189 new_path="$unix_path" 39190 fi 39191 39192 fi 39193 39194 if test "x$new_path" = x; then 39195 # It's still not found. Now this is an unrecoverable error. 39196 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 39197 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 39198 has_space=`$ECHO "$complete" | $GREP " "` 39199 if test "x$has_space" != x; then 39200 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39201 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39202 fi 39203 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39204 fi 39205 fi 39206 39207 # Now new_path has a complete unix path to the binary 39208 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39209 # Keep paths in /bin as-is, but remove trailing .exe if any 39210 new_path="${new_path/%.exe/}" 39211 # Do not save /bin paths to all_fixpath_prefixes! 39212 else 39213 # Not in mixed or Windows style, start by that. 39214 new_path=`cmd //c echo $new_path` 39215 39216 input_path="$new_path" 39217 # Check if we need to convert this using DOS-style short mode. If the path 39218 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39219 # take no chances and rewrite it. 39220 # Note: m4 eats our [], so we need to use [ and ] instead. 39221 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39222 if test "x$has_forbidden_chars" != x; then 39223 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39224 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39225 fi 39226 39227 # Output is in $new_path 39228 39229 windows_path="$new_path" 39230 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39231 unix_path=`$CYGPATH -u "$windows_path"` 39232 new_path="$unix_path" 39233 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39234 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39235 new_path="$unix_path" 39236 fi 39237 39238 # remove trailing .exe if any 39239 new_path="${new_path/%.exe/}" 39240 39241 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39242 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39243 fi 39244 39245 else 39246 # We're on a unix platform. Hooray! :) 39247 # First separate the path from the arguments. This will split at the first 39248 # space. 39249 complete="$STRIP" 39250 path="${complete%% *}" 39251 tmp="$complete EOL" 39252 arguments="${tmp#* }" 39253 39254 # Cannot rely on the command "which" here since it doesn't always work. 39255 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39256 if test -z "$is_absolute_path"; then 39257 # Path to executable is not absolute. Find it. 39258 IFS_save="$IFS" 39259 IFS=: 39260 for p in $PATH; do 39261 if test -f "$p/$path" && test -x "$p/$path"; then 39262 new_path="$p/$path" 39263 break 39264 fi 39265 done 39266 IFS="$IFS_save" 39267 else 39268 # This is an absolute path, we can use it without further modifications. 39269 new_path="$path" 39270 fi 39271 39272 if test "x$new_path" = x; then 39273 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 39274 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 39275 has_space=`$ECHO "$complete" | $GREP " "` 39276 if test "x$has_space" != x; then 39277 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39278 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39279 fi 39280 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39281 fi 39282 fi 39283 39284 # Now join together the path and the arguments once again 39285 if test "x$arguments" != xEOL; then 39286 new_complete="$new_path ${arguments% *}" 39287 else 39288 new_complete="$new_path" 39289 fi 39290 39291 if test "x$complete" != "x$new_complete"; then 39292 STRIP="$new_complete" 39293 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 39294 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 39295 fi 39296 fi 39297 39298 39299 39300 # Publish this variable in the help. 39301 39302 39303 if [ -z "${NM+x}" ]; then 39304 # The variable is not set by user, try to locate tool using the code snippet 39305 for ac_prog in nm 39306 do 39307 # Extract the first word of "$ac_prog", so it can be a program name with args. 39308 set dummy $ac_prog; ac_word=$2 39309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39310 $as_echo_n "checking for $ac_word... " >&6; } 39311 if ${ac_cv_path_NM+:} false; then : 39312 $as_echo_n "(cached) " >&6 39313 else 39314 case $NM in 39315 [\\/]* | ?:[\\/]*) 39316 ac_cv_path_NM="$NM" # Let the user override the test with a path. 39317 ;; 39318 *) 39319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39320 for as_dir in $PATH 39321 do 39322 IFS=$as_save_IFS 39323 test -z "$as_dir" && as_dir=. 39324 for ac_exec_ext in '' $ac_executable_extensions; do 39325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39326 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 39327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39328 break 2 39329 fi 39330 done 39331 done 39332 IFS=$as_save_IFS 39333 39334 ;; 39335 esac 39336 fi 39337 NM=$ac_cv_path_NM 39338 if test -n "$NM"; then 39339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 39340 $as_echo "$NM" >&6; } 39341 else 39342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39343 $as_echo "no" >&6; } 39344 fi 39345 39346 39347 test -n "$NM" && break 39348 done 39349 39350 else 39351 # The variable is set, but is it from the command line or the environment? 39352 39353 # Try to remove the string !NM! from our list. 39354 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 39355 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39356 # If it failed, the variable was not from the command line. Ignore it, 39357 # but warn the user (except for BASH, which is always set by the calling BASH). 39358 if test "xNM" != xBASH; then 39359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 39360 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 39361 fi 39362 # Try to locate tool using the code snippet 39363 for ac_prog in nm 39364 do 39365 # Extract the first word of "$ac_prog", so it can be a program name with args. 39366 set dummy $ac_prog; ac_word=$2 39367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39368 $as_echo_n "checking for $ac_word... " >&6; } 39369 if ${ac_cv_path_NM+:} false; then : 39370 $as_echo_n "(cached) " >&6 39371 else 39372 case $NM in 39373 [\\/]* | ?:[\\/]*) 39374 ac_cv_path_NM="$NM" # Let the user override the test with a path. 39375 ;; 39376 *) 39377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39378 for as_dir in $PATH 39379 do 39380 IFS=$as_save_IFS 39381 test -z "$as_dir" && as_dir=. 39382 for ac_exec_ext in '' $ac_executable_extensions; do 39383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39384 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 39385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39386 break 2 39387 fi 39388 done 39389 done 39390 IFS=$as_save_IFS 39391 39392 ;; 39393 esac 39394 fi 39395 NM=$ac_cv_path_NM 39396 if test -n "$NM"; then 39397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 39398 $as_echo "$NM" >&6; } 39399 else 39400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39401 $as_echo "no" >&6; } 39402 fi 39403 39404 39405 test -n "$NM" && break 39406 done 39407 39408 else 39409 # If it succeeded, then it was overridden by the user. We will use it 39410 # for the tool. 39411 39412 # First remove it from the list of overridden variables, so we can test 39413 # for unknown variables in the end. 39414 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39415 39416 # Check if we try to supply an empty value 39417 if test "x$NM" = x; then 39418 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 39419 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 39420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 39421 $as_echo_n "checking for NM... " >&6; } 39422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 39423 $as_echo "disabled" >&6; } 39424 else 39425 # Check if the provided tool contains a complete path. 39426 tool_specified="$NM" 39427 tool_basename="${tool_specified##*/}" 39428 if test "x$tool_basename" = "x$tool_specified"; then 39429 # A command without a complete path is provided, search $PATH. 39430 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 39431 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 39432 # Extract the first word of "$tool_basename", so it can be a program name with args. 39433 set dummy $tool_basename; ac_word=$2 39434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39435 $as_echo_n "checking for $ac_word... " >&6; } 39436 if ${ac_cv_path_NM+:} false; then : 39437 $as_echo_n "(cached) " >&6 39438 else 39439 case $NM in 39440 [\\/]* | ?:[\\/]*) 39441 ac_cv_path_NM="$NM" # Let the user override the test with a path. 39442 ;; 39443 *) 39444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39445 for as_dir in $PATH 39446 do 39447 IFS=$as_save_IFS 39448 test -z "$as_dir" && as_dir=. 39449 for ac_exec_ext in '' $ac_executable_extensions; do 39450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39451 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 39452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39453 break 2 39454 fi 39455 done 39456 done 39457 IFS=$as_save_IFS 39458 39459 ;; 39460 esac 39461 fi 39462 NM=$ac_cv_path_NM 39463 if test -n "$NM"; then 39464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 39465 $as_echo "$NM" >&6; } 39466 else 39467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39468 $as_echo "no" >&6; } 39469 fi 39470 39471 39472 if test "x$NM" = x; then 39473 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39474 fi 39475 else 39476 # Otherwise we believe it is a complete path. Use it as it is. 39477 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 39478 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 39479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 39480 $as_echo_n "checking for NM... " >&6; } 39481 if test ! -x "$tool_specified"; then 39482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39483 $as_echo "not found" >&6; } 39484 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 39485 fi 39486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39487 $as_echo "$tool_specified" >&6; } 39488 fi 39489 fi 39490 fi 39491 39492 fi 39493 39494 39495 39496 # Only process if variable expands to non-empty 39497 39498 if test "x$NM" != x; then 39499 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39500 39501 # First separate the path from the arguments. This will split at the first 39502 # space. 39503 complete="$NM" 39504 path="${complete%% *}" 39505 tmp="$complete EOL" 39506 arguments="${tmp#* }" 39507 39508 # Input might be given as Windows format, start by converting to 39509 # unix format. 39510 new_path=`$CYGPATH -u "$path"` 39511 39512 # Now try to locate executable using which 39513 new_path=`$WHICH "$new_path" 2> /dev/null` 39514 # bat and cmd files are not always considered executable in cygwin causing which 39515 # to not find them 39516 if test "x$new_path" = x \ 39517 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39518 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39519 new_path=`$CYGPATH -u "$path"` 39520 fi 39521 if test "x$new_path" = x; then 39522 # Oops. Which didn't find the executable. 39523 # The splitting of arguments from the executable at a space might have been incorrect, 39524 # since paths with space are more likely in Windows. Give it another try with the whole 39525 # argument. 39526 path="$complete" 39527 arguments="EOL" 39528 new_path=`$CYGPATH -u "$path"` 39529 new_path=`$WHICH "$new_path" 2> /dev/null` 39530 # bat and cmd files are not always considered executable in cygwin causing which 39531 # to not find them 39532 if test "x$new_path" = x \ 39533 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39534 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39535 new_path=`$CYGPATH -u "$path"` 39536 fi 39537 if test "x$new_path" = x; then 39538 # It's still not found. Now this is an unrecoverable error. 39539 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 39540 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 39541 has_space=`$ECHO "$complete" | $GREP " "` 39542 if test "x$has_space" != x; then 39543 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39544 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39545 fi 39546 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 39547 fi 39548 fi 39549 39550 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39551 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39552 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39553 # "foo.exe" is OK but "foo" is an error. 39554 # 39555 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39556 # It is also a way to make sure we got the proper file name for the real test later on. 39557 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39558 if test "x$test_shortpath" = x; then 39559 # Short path failed, file does not exist as specified. 39560 # Try adding .exe or .cmd 39561 if test -f "${new_path}.exe"; then 39562 input_to_shortpath="${new_path}.exe" 39563 elif test -f "${new_path}.cmd"; then 39564 input_to_shortpath="${new_path}.cmd" 39565 else 39566 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 39567 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 39568 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39569 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39570 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 39571 fi 39572 else 39573 input_to_shortpath="$new_path" 39574 fi 39575 39576 # Call helper function which possibly converts this using DOS-style short mode. 39577 # If so, the updated path is stored in $new_path. 39578 new_path="$input_to_shortpath" 39579 39580 input_path="$input_to_shortpath" 39581 # Check if we need to convert this using DOS-style short mode. If the path 39582 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39583 # take no chances and rewrite it. 39584 # Note: m4 eats our [], so we need to use [ and ] instead. 39585 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39586 if test "x$has_forbidden_chars" != x; then 39587 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39588 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39589 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39590 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39591 # Going to short mode and back again did indeed matter. Since short mode is 39592 # case insensitive, let's make it lowercase to improve readability. 39593 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39594 # Now convert it back to Unix-style (cygpath) 39595 input_path=`$CYGPATH -u "$shortmode_path"` 39596 new_path="$input_path" 39597 fi 39598 fi 39599 39600 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39601 if test "x$test_cygdrive_prefix" = x; then 39602 # As a simple fix, exclude /usr/bin since it's not a real path. 39603 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39604 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39605 # a path prefixed by /cygdrive for fixpath to work. 39606 new_path="$CYGWIN_ROOT_PATH$input_path" 39607 fi 39608 fi 39609 39610 # remove trailing .exe if any 39611 new_path="${new_path/%.exe/}" 39612 39613 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39614 39615 # First separate the path from the arguments. This will split at the first 39616 # space. 39617 complete="$NM" 39618 path="${complete%% *}" 39619 tmp="$complete EOL" 39620 arguments="${tmp#* }" 39621 39622 # Input might be given as Windows format, start by converting to 39623 # unix format. 39624 new_path="$path" 39625 39626 windows_path="$new_path" 39627 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39628 unix_path=`$CYGPATH -u "$windows_path"` 39629 new_path="$unix_path" 39630 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39631 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39632 new_path="$unix_path" 39633 fi 39634 39635 39636 # Now try to locate executable using which 39637 new_path=`$WHICH "$new_path" 2> /dev/null` 39638 39639 if test "x$new_path" = x; then 39640 # Oops. Which didn't find the executable. 39641 # The splitting of arguments from the executable at a space might have been incorrect, 39642 # since paths with space are more likely in Windows. Give it another try with the whole 39643 # argument. 39644 path="$complete" 39645 arguments="EOL" 39646 new_path="$path" 39647 39648 windows_path="$new_path" 39649 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39650 unix_path=`$CYGPATH -u "$windows_path"` 39651 new_path="$unix_path" 39652 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39653 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39654 new_path="$unix_path" 39655 fi 39656 39657 39658 new_path=`$WHICH "$new_path" 2> /dev/null` 39659 # bat and cmd files are not always considered executable in MSYS causing which 39660 # to not find them 39661 if test "x$new_path" = x \ 39662 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39663 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39664 new_path="$path" 39665 39666 windows_path="$new_path" 39667 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39668 unix_path=`$CYGPATH -u "$windows_path"` 39669 new_path="$unix_path" 39670 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39671 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39672 new_path="$unix_path" 39673 fi 39674 39675 fi 39676 39677 if test "x$new_path" = x; then 39678 # It's still not found. Now this is an unrecoverable error. 39679 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 39680 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 39681 has_space=`$ECHO "$complete" | $GREP " "` 39682 if test "x$has_space" != x; then 39683 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39684 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39685 fi 39686 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 39687 fi 39688 fi 39689 39690 # Now new_path has a complete unix path to the binary 39691 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39692 # Keep paths in /bin as-is, but remove trailing .exe if any 39693 new_path="${new_path/%.exe/}" 39694 # Do not save /bin paths to all_fixpath_prefixes! 39695 else 39696 # Not in mixed or Windows style, start by that. 39697 new_path=`cmd //c echo $new_path` 39698 39699 input_path="$new_path" 39700 # Check if we need to convert this using DOS-style short mode. If the path 39701 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39702 # take no chances and rewrite it. 39703 # Note: m4 eats our [], so we need to use [ and ] instead. 39704 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39705 if test "x$has_forbidden_chars" != x; then 39706 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39707 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39708 fi 39709 39710 # Output is in $new_path 39711 39712 windows_path="$new_path" 39713 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39714 unix_path=`$CYGPATH -u "$windows_path"` 39715 new_path="$unix_path" 39716 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39717 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39718 new_path="$unix_path" 39719 fi 39720 39721 # remove trailing .exe if any 39722 new_path="${new_path/%.exe/}" 39723 39724 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39725 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39726 fi 39727 39728 else 39729 # We're on a unix platform. Hooray! :) 39730 # First separate the path from the arguments. This will split at the first 39731 # space. 39732 complete="$NM" 39733 path="${complete%% *}" 39734 tmp="$complete EOL" 39735 arguments="${tmp#* }" 39736 39737 # Cannot rely on the command "which" here since it doesn't always work. 39738 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39739 if test -z "$is_absolute_path"; then 39740 # Path to executable is not absolute. Find it. 39741 IFS_save="$IFS" 39742 IFS=: 39743 for p in $PATH; do 39744 if test -f "$p/$path" && test -x "$p/$path"; then 39745 new_path="$p/$path" 39746 break 39747 fi 39748 done 39749 IFS="$IFS_save" 39750 else 39751 # This is an absolute path, we can use it without further modifications. 39752 new_path="$path" 39753 fi 39754 39755 if test "x$new_path" = x; then 39756 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 39757 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 39758 has_space=`$ECHO "$complete" | $GREP " "` 39759 if test "x$has_space" != x; then 39760 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39761 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39762 fi 39763 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 39764 fi 39765 fi 39766 39767 # Now join together the path and the arguments once again 39768 if test "x$arguments" != xEOL; then 39769 new_complete="$new_path ${arguments% *}" 39770 else 39771 new_complete="$new_path" 39772 fi 39773 39774 if test "x$complete" != "x$new_complete"; then 39775 NM="$new_complete" 39776 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 39777 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 39778 fi 39779 fi 39780 39781 39782 39783 # Publish this variable in the help. 39784 39785 39786 if [ -z "${GNM+x}" ]; then 39787 # The variable is not set by user, try to locate tool using the code snippet 39788 for ac_prog in gnm 39789 do 39790 # Extract the first word of "$ac_prog", so it can be a program name with args. 39791 set dummy $ac_prog; ac_word=$2 39792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39793 $as_echo_n "checking for $ac_word... " >&6; } 39794 if ${ac_cv_path_GNM+:} false; then : 39795 $as_echo_n "(cached) " >&6 39796 else 39797 case $GNM in 39798 [\\/]* | ?:[\\/]*) 39799 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 39800 ;; 39801 *) 39802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39803 for as_dir in $PATH 39804 do 39805 IFS=$as_save_IFS 39806 test -z "$as_dir" && as_dir=. 39807 for ac_exec_ext in '' $ac_executable_extensions; do 39808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39809 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 39810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39811 break 2 39812 fi 39813 done 39814 done 39815 IFS=$as_save_IFS 39816 39817 ;; 39818 esac 39819 fi 39820 GNM=$ac_cv_path_GNM 39821 if test -n "$GNM"; then 39822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 39823 $as_echo "$GNM" >&6; } 39824 else 39825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39826 $as_echo "no" >&6; } 39827 fi 39828 39829 39830 test -n "$GNM" && break 39831 done 39832 39833 else 39834 # The variable is set, but is it from the command line or the environment? 39835 39836 # Try to remove the string !GNM! from our list. 39837 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 39838 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39839 # If it failed, the variable was not from the command line. Ignore it, 39840 # but warn the user (except for BASH, which is always set by the calling BASH). 39841 if test "xGNM" != xBASH; then 39842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 39843 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 39844 fi 39845 # Try to locate tool using the code snippet 39846 for ac_prog in gnm 39847 do 39848 # Extract the first word of "$ac_prog", so it can be a program name with args. 39849 set dummy $ac_prog; ac_word=$2 39850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39851 $as_echo_n "checking for $ac_word... " >&6; } 39852 if ${ac_cv_path_GNM+:} false; then : 39853 $as_echo_n "(cached) " >&6 39854 else 39855 case $GNM in 39856 [\\/]* | ?:[\\/]*) 39857 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 39858 ;; 39859 *) 39860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39861 for as_dir in $PATH 39862 do 39863 IFS=$as_save_IFS 39864 test -z "$as_dir" && as_dir=. 39865 for ac_exec_ext in '' $ac_executable_extensions; do 39866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39867 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 39868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39869 break 2 39870 fi 39871 done 39872 done 39873 IFS=$as_save_IFS 39874 39875 ;; 39876 esac 39877 fi 39878 GNM=$ac_cv_path_GNM 39879 if test -n "$GNM"; then 39880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 39881 $as_echo "$GNM" >&6; } 39882 else 39883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39884 $as_echo "no" >&6; } 39885 fi 39886 39887 39888 test -n "$GNM" && break 39889 done 39890 39891 else 39892 # If it succeeded, then it was overridden by the user. We will use it 39893 # for the tool. 39894 39895 # First remove it from the list of overridden variables, so we can test 39896 # for unknown variables in the end. 39897 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39898 39899 # Check if we try to supply an empty value 39900 if test "x$GNM" = x; then 39901 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GNM= (no value)" >&5 39902 $as_echo "$as_me: Setting user supplied tool GNM= (no value)" >&6;} 39903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 39904 $as_echo_n "checking for GNM... " >&6; } 39905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 39906 $as_echo "disabled" >&6; } 39907 else 39908 # Check if the provided tool contains a complete path. 39909 tool_specified="$GNM" 39910 tool_basename="${tool_specified##*/}" 39911 if test "x$tool_basename" = "x$tool_specified"; then 39912 # A command without a complete path is provided, search $PATH. 39913 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 39914 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 39915 # Extract the first word of "$tool_basename", so it can be a program name with args. 39916 set dummy $tool_basename; ac_word=$2 39917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39918 $as_echo_n "checking for $ac_word... " >&6; } 39919 if ${ac_cv_path_GNM+:} false; then : 39920 $as_echo_n "(cached) " >&6 39921 else 39922 case $GNM in 39923 [\\/]* | ?:[\\/]*) 39924 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 39925 ;; 39926 *) 39927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39928 for as_dir in $PATH 39929 do 39930 IFS=$as_save_IFS 39931 test -z "$as_dir" && as_dir=. 39932 for ac_exec_ext in '' $ac_executable_extensions; do 39933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39934 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 39935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39936 break 2 39937 fi 39938 done 39939 done 39940 IFS=$as_save_IFS 39941 39942 ;; 39943 esac 39944 fi 39945 GNM=$ac_cv_path_GNM 39946 if test -n "$GNM"; then 39947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 39948 $as_echo "$GNM" >&6; } 39949 else 39950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39951 $as_echo "no" >&6; } 39952 fi 39953 39954 39955 if test "x$GNM" = x; then 39956 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39957 fi 39958 else 39959 # Otherwise we believe it is a complete path. Use it as it is. 39960 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 39961 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 39962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 39963 $as_echo_n "checking for GNM... " >&6; } 39964 if test ! -x "$tool_specified"; then 39965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39966 $as_echo "not found" >&6; } 39967 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 39968 fi 39969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39970 $as_echo "$tool_specified" >&6; } 39971 fi 39972 fi 39973 fi 39974 39975 fi 39976 39977 39978 39979 # Only process if variable expands to non-empty 39980 39981 if test "x$GNM" != x; then 39982 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39983 39984 # First separate the path from the arguments. This will split at the first 39985 # space. 39986 complete="$GNM" 39987 path="${complete%% *}" 39988 tmp="$complete EOL" 39989 arguments="${tmp#* }" 39990 39991 # Input might be given as Windows format, start by converting to 39992 # unix format. 39993 new_path=`$CYGPATH -u "$path"` 39994 39995 # Now try to locate executable using which 39996 new_path=`$WHICH "$new_path" 2> /dev/null` 39997 # bat and cmd files are not always considered executable in cygwin causing which 39998 # to not find them 39999 if test "x$new_path" = x \ 40000 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40001 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40002 new_path=`$CYGPATH -u "$path"` 40003 fi 40004 if test "x$new_path" = x; then 40005 # Oops. Which didn't find the executable. 40006 # The splitting of arguments from the executable at a space might have been incorrect, 40007 # since paths with space are more likely in Windows. Give it another try with the whole 40008 # argument. 40009 path="$complete" 40010 arguments="EOL" 40011 new_path=`$CYGPATH -u "$path"` 40012 new_path=`$WHICH "$new_path" 2> /dev/null` 40013 # bat and cmd files are not always considered executable in cygwin causing which 40014 # to not find them 40015 if test "x$new_path" = x \ 40016 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40017 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40018 new_path=`$CYGPATH -u "$path"` 40019 fi 40020 if test "x$new_path" = x; then 40021 # It's still not found. Now this is an unrecoverable error. 40022 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 40023 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 40024 has_space=`$ECHO "$complete" | $GREP " "` 40025 if test "x$has_space" != x; then 40026 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40027 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40028 fi 40029 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 40030 fi 40031 fi 40032 40033 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40034 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40035 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40036 # "foo.exe" is OK but "foo" is an error. 40037 # 40038 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40039 # It is also a way to make sure we got the proper file name for the real test later on. 40040 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40041 if test "x$test_shortpath" = x; then 40042 # Short path failed, file does not exist as specified. 40043 # Try adding .exe or .cmd 40044 if test -f "${new_path}.exe"; then 40045 input_to_shortpath="${new_path}.exe" 40046 elif test -f "${new_path}.cmd"; then 40047 input_to_shortpath="${new_path}.cmd" 40048 else 40049 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 40050 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 40051 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40052 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40053 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 40054 fi 40055 else 40056 input_to_shortpath="$new_path" 40057 fi 40058 40059 # Call helper function which possibly converts this using DOS-style short mode. 40060 # If so, the updated path is stored in $new_path. 40061 new_path="$input_to_shortpath" 40062 40063 input_path="$input_to_shortpath" 40064 # Check if we need to convert this using DOS-style short mode. If the path 40065 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40066 # take no chances and rewrite it. 40067 # Note: m4 eats our [], so we need to use [ and ] instead. 40068 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40069 if test "x$has_forbidden_chars" != x; then 40070 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40071 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40072 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40073 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40074 # Going to short mode and back again did indeed matter. Since short mode is 40075 # case insensitive, let's make it lowercase to improve readability. 40076 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40077 # Now convert it back to Unix-style (cygpath) 40078 input_path=`$CYGPATH -u "$shortmode_path"` 40079 new_path="$input_path" 40080 fi 40081 fi 40082 40083 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40084 if test "x$test_cygdrive_prefix" = x; then 40085 # As a simple fix, exclude /usr/bin since it's not a real path. 40086 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40087 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40088 # a path prefixed by /cygdrive for fixpath to work. 40089 new_path="$CYGWIN_ROOT_PATH$input_path" 40090 fi 40091 fi 40092 40093 # remove trailing .exe if any 40094 new_path="${new_path/%.exe/}" 40095 40096 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40097 40098 # First separate the path from the arguments. This will split at the first 40099 # space. 40100 complete="$GNM" 40101 path="${complete%% *}" 40102 tmp="$complete EOL" 40103 arguments="${tmp#* }" 40104 40105 # Input might be given as Windows format, start by converting to 40106 # unix format. 40107 new_path="$path" 40108 40109 windows_path="$new_path" 40110 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40111 unix_path=`$CYGPATH -u "$windows_path"` 40112 new_path="$unix_path" 40113 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40114 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40115 new_path="$unix_path" 40116 fi 40117 40118 40119 # Now try to locate executable using which 40120 new_path=`$WHICH "$new_path" 2> /dev/null` 40121 40122 if test "x$new_path" = x; then 40123 # Oops. Which didn't find the executable. 40124 # The splitting of arguments from the executable at a space might have been incorrect, 40125 # since paths with space are more likely in Windows. Give it another try with the whole 40126 # argument. 40127 path="$complete" 40128 arguments="EOL" 40129 new_path="$path" 40130 40131 windows_path="$new_path" 40132 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40133 unix_path=`$CYGPATH -u "$windows_path"` 40134 new_path="$unix_path" 40135 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40136 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40137 new_path="$unix_path" 40138 fi 40139 40140 40141 new_path=`$WHICH "$new_path" 2> /dev/null` 40142 # bat and cmd files are not always considered executable in MSYS causing which 40143 # to not find them 40144 if test "x$new_path" = x \ 40145 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40146 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40147 new_path="$path" 40148 40149 windows_path="$new_path" 40150 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40151 unix_path=`$CYGPATH -u "$windows_path"` 40152 new_path="$unix_path" 40153 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40154 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40155 new_path="$unix_path" 40156 fi 40157 40158 fi 40159 40160 if test "x$new_path" = x; then 40161 # It's still not found. Now this is an unrecoverable error. 40162 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 40163 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 40164 has_space=`$ECHO "$complete" | $GREP " "` 40165 if test "x$has_space" != x; then 40166 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40167 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40168 fi 40169 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 40170 fi 40171 fi 40172 40173 # Now new_path has a complete unix path to the binary 40174 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40175 # Keep paths in /bin as-is, but remove trailing .exe if any 40176 new_path="${new_path/%.exe/}" 40177 # Do not save /bin paths to all_fixpath_prefixes! 40178 else 40179 # Not in mixed or Windows style, start by that. 40180 new_path=`cmd //c echo $new_path` 40181 40182 input_path="$new_path" 40183 # Check if we need to convert this using DOS-style short mode. If the path 40184 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40185 # take no chances and rewrite it. 40186 # Note: m4 eats our [], so we need to use [ and ] instead. 40187 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40188 if test "x$has_forbidden_chars" != x; then 40189 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40190 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40191 fi 40192 40193 # Output is in $new_path 40194 40195 windows_path="$new_path" 40196 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40197 unix_path=`$CYGPATH -u "$windows_path"` 40198 new_path="$unix_path" 40199 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40200 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40201 new_path="$unix_path" 40202 fi 40203 40204 # remove trailing .exe if any 40205 new_path="${new_path/%.exe/}" 40206 40207 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40208 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40209 fi 40210 40211 else 40212 # We're on a unix platform. Hooray! :) 40213 # First separate the path from the arguments. This will split at the first 40214 # space. 40215 complete="$GNM" 40216 path="${complete%% *}" 40217 tmp="$complete EOL" 40218 arguments="${tmp#* }" 40219 40220 # Cannot rely on the command "which" here since it doesn't always work. 40221 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40222 if test -z "$is_absolute_path"; then 40223 # Path to executable is not absolute. Find it. 40224 IFS_save="$IFS" 40225 IFS=: 40226 for p in $PATH; do 40227 if test -f "$p/$path" && test -x "$p/$path"; then 40228 new_path="$p/$path" 40229 break 40230 fi 40231 done 40232 IFS="$IFS_save" 40233 else 40234 # This is an absolute path, we can use it without further modifications. 40235 new_path="$path" 40236 fi 40237 40238 if test "x$new_path" = x; then 40239 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 40240 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 40241 has_space=`$ECHO "$complete" | $GREP " "` 40242 if test "x$has_space" != x; then 40243 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40244 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40245 fi 40246 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 40247 fi 40248 fi 40249 40250 # Now join together the path and the arguments once again 40251 if test "x$arguments" != xEOL; then 40252 new_complete="$new_path ${arguments% *}" 40253 else 40254 new_complete="$new_path" 40255 fi 40256 40257 if test "x$complete" != "x$new_complete"; then 40258 GNM="$new_complete" 40259 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 40260 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 40261 fi 40262 fi 40263 40264 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 40265 # FIXME: we should unify this with the solaris case above. 40266 40267 40268 # Publish this variable in the help. 40269 40270 40271 if [ -z "${STRIP+x}" ]; then 40272 # The variable is not set by user, try to locate tool using the code snippet 40273 if test -n "$ac_tool_prefix"; then 40274 for ac_prog in strip 40275 do 40276 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 40277 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 40278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40279 $as_echo_n "checking for $ac_word... " >&6; } 40280 if ${ac_cv_prog_STRIP+:} false; then : 40281 $as_echo_n "(cached) " >&6 40282 else 40283 if test -n "$STRIP"; then 40284 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 40285 else 40286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40287 for as_dir in $PATH 40288 do 40289 IFS=$as_save_IFS 40290 test -z "$as_dir" && as_dir=. 40291 for ac_exec_ext in '' $ac_executable_extensions; do 40292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40293 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 40294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40295 break 2 40296 fi 40297 done 40298 done 40299 IFS=$as_save_IFS 40300 40301 fi 40302 fi 40303 STRIP=$ac_cv_prog_STRIP 40304 if test -n "$STRIP"; then 40305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 40306 $as_echo "$STRIP" >&6; } 40307 else 40308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40309 $as_echo "no" >&6; } 40310 fi 40311 40312 40313 test -n "$STRIP" && break 40314 done 40315 fi 40316 if test -z "$STRIP"; then 40317 ac_ct_STRIP=$STRIP 40318 for ac_prog in strip 40319 do 40320 # Extract the first word of "$ac_prog", so it can be a program name with args. 40321 set dummy $ac_prog; ac_word=$2 40322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40323 $as_echo_n "checking for $ac_word... " >&6; } 40324 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 40325 $as_echo_n "(cached) " >&6 40326 else 40327 if test -n "$ac_ct_STRIP"; then 40328 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 40329 else 40330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40331 for as_dir in $PATH 40332 do 40333 IFS=$as_save_IFS 40334 test -z "$as_dir" && as_dir=. 40335 for ac_exec_ext in '' $ac_executable_extensions; do 40336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40337 ac_cv_prog_ac_ct_STRIP="$ac_prog" 40338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40339 break 2 40340 fi 40341 done 40342 done 40343 IFS=$as_save_IFS 40344 40345 fi 40346 fi 40347 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 40348 if test -n "$ac_ct_STRIP"; then 40349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 40350 $as_echo "$ac_ct_STRIP" >&6; } 40351 else 40352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40353 $as_echo "no" >&6; } 40354 fi 40355 40356 40357 test -n "$ac_ct_STRIP" && break 40358 done 40359 40360 if test "x$ac_ct_STRIP" = x; then 40361 STRIP="" 40362 else 40363 case $cross_compiling:$ac_tool_warned in 40364 yes:) 40365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 40366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 40367 ac_tool_warned=yes ;; 40368 esac 40369 STRIP=$ac_ct_STRIP 40370 fi 40371 fi 40372 40373 else 40374 # The variable is set, but is it from the command line or the environment? 40375 40376 # Try to remove the string !STRIP! from our list. 40377 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 40378 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40379 # If it failed, the variable was not from the command line. Ignore it, 40380 # but warn the user (except for BASH, which is always set by the calling BASH). 40381 if test "xSTRIP" != xBASH; then 40382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 40383 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 40384 fi 40385 # Try to locate tool using the code snippet 40386 if test -n "$ac_tool_prefix"; then 40387 for ac_prog in strip 40388 do 40389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 40390 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 40391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40392 $as_echo_n "checking for $ac_word... " >&6; } 40393 if ${ac_cv_prog_STRIP+:} false; then : 40394 $as_echo_n "(cached) " >&6 40395 else 40396 if test -n "$STRIP"; then 40397 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 40398 else 40399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40400 for as_dir in $PATH 40401 do 40402 IFS=$as_save_IFS 40403 test -z "$as_dir" && as_dir=. 40404 for ac_exec_ext in '' $ac_executable_extensions; do 40405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40406 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 40407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40408 break 2 40409 fi 40410 done 40411 done 40412 IFS=$as_save_IFS 40413 40414 fi 40415 fi 40416 STRIP=$ac_cv_prog_STRIP 40417 if test -n "$STRIP"; then 40418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 40419 $as_echo "$STRIP" >&6; } 40420 else 40421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40422 $as_echo "no" >&6; } 40423 fi 40424 40425 40426 test -n "$STRIP" && break 40427 done 40428 fi 40429 if test -z "$STRIP"; then 40430 ac_ct_STRIP=$STRIP 40431 for ac_prog in strip 40432 do 40433 # Extract the first word of "$ac_prog", so it can be a program name with args. 40434 set dummy $ac_prog; ac_word=$2 40435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40436 $as_echo_n "checking for $ac_word... " >&6; } 40437 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 40438 $as_echo_n "(cached) " >&6 40439 else 40440 if test -n "$ac_ct_STRIP"; then 40441 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 40442 else 40443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40444 for as_dir in $PATH 40445 do 40446 IFS=$as_save_IFS 40447 test -z "$as_dir" && as_dir=. 40448 for ac_exec_ext in '' $ac_executable_extensions; do 40449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40450 ac_cv_prog_ac_ct_STRIP="$ac_prog" 40451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40452 break 2 40453 fi 40454 done 40455 done 40456 IFS=$as_save_IFS 40457 40458 fi 40459 fi 40460 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 40461 if test -n "$ac_ct_STRIP"; then 40462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 40463 $as_echo "$ac_ct_STRIP" >&6; } 40464 else 40465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40466 $as_echo "no" >&6; } 40467 fi 40468 40469 40470 test -n "$ac_ct_STRIP" && break 40471 done 40472 40473 if test "x$ac_ct_STRIP" = x; then 40474 STRIP="" 40475 else 40476 case $cross_compiling:$ac_tool_warned in 40477 yes:) 40478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 40479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 40480 ac_tool_warned=yes ;; 40481 esac 40482 STRIP=$ac_ct_STRIP 40483 fi 40484 fi 40485 40486 else 40487 # If it succeeded, then it was overridden by the user. We will use it 40488 # for the tool. 40489 40490 # First remove it from the list of overridden variables, so we can test 40491 # for unknown variables in the end. 40492 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40493 40494 # Check if we try to supply an empty value 40495 if test "x$STRIP" = x; then 40496 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 40497 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 40498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 40499 $as_echo_n "checking for STRIP... " >&6; } 40500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40501 $as_echo "disabled" >&6; } 40502 else 40503 # Check if the provided tool contains a complete path. 40504 tool_specified="$STRIP" 40505 tool_basename="${tool_specified##*/}" 40506 if test "x$tool_basename" = "x$tool_specified"; then 40507 # A command without a complete path is provided, search $PATH. 40508 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 40509 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 40510 # Extract the first word of "$tool_basename", so it can be a program name with args. 40511 set dummy $tool_basename; ac_word=$2 40512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40513 $as_echo_n "checking for $ac_word... " >&6; } 40514 if ${ac_cv_path_STRIP+:} false; then : 40515 $as_echo_n "(cached) " >&6 40516 else 40517 case $STRIP in 40518 [\\/]* | ?:[\\/]*) 40519 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 40520 ;; 40521 *) 40522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40523 for as_dir in $PATH 40524 do 40525 IFS=$as_save_IFS 40526 test -z "$as_dir" && as_dir=. 40527 for ac_exec_ext in '' $ac_executable_extensions; do 40528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40529 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 40530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40531 break 2 40532 fi 40533 done 40534 done 40535 IFS=$as_save_IFS 40536 40537 ;; 40538 esac 40539 fi 40540 STRIP=$ac_cv_path_STRIP 40541 if test -n "$STRIP"; then 40542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 40543 $as_echo "$STRIP" >&6; } 40544 else 40545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40546 $as_echo "no" >&6; } 40547 fi 40548 40549 40550 if test "x$STRIP" = x; then 40551 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40552 fi 40553 else 40554 # Otherwise we believe it is a complete path. Use it as it is. 40555 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 40556 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 40557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 40558 $as_echo_n "checking for STRIP... " >&6; } 40559 if test ! -x "$tool_specified"; then 40560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40561 $as_echo "not found" >&6; } 40562 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 40563 fi 40564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40565 $as_echo "$tool_specified" >&6; } 40566 fi 40567 fi 40568 fi 40569 40570 fi 40571 40572 40573 40574 # Only process if variable expands to non-empty 40575 40576 if test "x$STRIP" != x; then 40577 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40578 40579 # First separate the path from the arguments. This will split at the first 40580 # space. 40581 complete="$STRIP" 40582 path="${complete%% *}" 40583 tmp="$complete EOL" 40584 arguments="${tmp#* }" 40585 40586 # Input might be given as Windows format, start by converting to 40587 # unix format. 40588 new_path=`$CYGPATH -u "$path"` 40589 40590 # Now try to locate executable using which 40591 new_path=`$WHICH "$new_path" 2> /dev/null` 40592 # bat and cmd files are not always considered executable in cygwin causing which 40593 # to not find them 40594 if test "x$new_path" = x \ 40595 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40596 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40597 new_path=`$CYGPATH -u "$path"` 40598 fi 40599 if test "x$new_path" = x; then 40600 # Oops. Which didn't find the executable. 40601 # The splitting of arguments from the executable at a space might have been incorrect, 40602 # since paths with space are more likely in Windows. Give it another try with the whole 40603 # argument. 40604 path="$complete" 40605 arguments="EOL" 40606 new_path=`$CYGPATH -u "$path"` 40607 new_path=`$WHICH "$new_path" 2> /dev/null` 40608 # bat and cmd files are not always considered executable in cygwin causing which 40609 # to not find them 40610 if test "x$new_path" = x \ 40611 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40612 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40613 new_path=`$CYGPATH -u "$path"` 40614 fi 40615 if test "x$new_path" = x; then 40616 # It's still not found. Now this is an unrecoverable error. 40617 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 40618 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 40619 has_space=`$ECHO "$complete" | $GREP " "` 40620 if test "x$has_space" != x; then 40621 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40622 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40623 fi 40624 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40625 fi 40626 fi 40627 40628 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40629 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40630 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40631 # "foo.exe" is OK but "foo" is an error. 40632 # 40633 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40634 # It is also a way to make sure we got the proper file name for the real test later on. 40635 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40636 if test "x$test_shortpath" = x; then 40637 # Short path failed, file does not exist as specified. 40638 # Try adding .exe or .cmd 40639 if test -f "${new_path}.exe"; then 40640 input_to_shortpath="${new_path}.exe" 40641 elif test -f "${new_path}.cmd"; then 40642 input_to_shortpath="${new_path}.cmd" 40643 else 40644 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 40645 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 40646 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40647 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40648 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40649 fi 40650 else 40651 input_to_shortpath="$new_path" 40652 fi 40653 40654 # Call helper function which possibly converts this using DOS-style short mode. 40655 # If so, the updated path is stored in $new_path. 40656 new_path="$input_to_shortpath" 40657 40658 input_path="$input_to_shortpath" 40659 # Check if we need to convert this using DOS-style short mode. If the path 40660 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40661 # take no chances and rewrite it. 40662 # Note: m4 eats our [], so we need to use [ and ] instead. 40663 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40664 if test "x$has_forbidden_chars" != x; then 40665 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40666 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40667 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40668 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40669 # Going to short mode and back again did indeed matter. Since short mode is 40670 # case insensitive, let's make it lowercase to improve readability. 40671 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40672 # Now convert it back to Unix-style (cygpath) 40673 input_path=`$CYGPATH -u "$shortmode_path"` 40674 new_path="$input_path" 40675 fi 40676 fi 40677 40678 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40679 if test "x$test_cygdrive_prefix" = x; then 40680 # As a simple fix, exclude /usr/bin since it's not a real path. 40681 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40682 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40683 # a path prefixed by /cygdrive for fixpath to work. 40684 new_path="$CYGWIN_ROOT_PATH$input_path" 40685 fi 40686 fi 40687 40688 # remove trailing .exe if any 40689 new_path="${new_path/%.exe/}" 40690 40691 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40692 40693 # First separate the path from the arguments. This will split at the first 40694 # space. 40695 complete="$STRIP" 40696 path="${complete%% *}" 40697 tmp="$complete EOL" 40698 arguments="${tmp#* }" 40699 40700 # Input might be given as Windows format, start by converting to 40701 # unix format. 40702 new_path="$path" 40703 40704 windows_path="$new_path" 40705 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40706 unix_path=`$CYGPATH -u "$windows_path"` 40707 new_path="$unix_path" 40708 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40709 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40710 new_path="$unix_path" 40711 fi 40712 40713 40714 # Now try to locate executable using which 40715 new_path=`$WHICH "$new_path" 2> /dev/null` 40716 40717 if test "x$new_path" = x; then 40718 # Oops. Which didn't find the executable. 40719 # The splitting of arguments from the executable at a space might have been incorrect, 40720 # since paths with space are more likely in Windows. Give it another try with the whole 40721 # argument. 40722 path="$complete" 40723 arguments="EOL" 40724 new_path="$path" 40725 40726 windows_path="$new_path" 40727 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40728 unix_path=`$CYGPATH -u "$windows_path"` 40729 new_path="$unix_path" 40730 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40731 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40732 new_path="$unix_path" 40733 fi 40734 40735 40736 new_path=`$WHICH "$new_path" 2> /dev/null` 40737 # bat and cmd files are not always considered executable in MSYS causing which 40738 # to not find them 40739 if test "x$new_path" = x \ 40740 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40741 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40742 new_path="$path" 40743 40744 windows_path="$new_path" 40745 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40746 unix_path=`$CYGPATH -u "$windows_path"` 40747 new_path="$unix_path" 40748 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40749 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40750 new_path="$unix_path" 40751 fi 40752 40753 fi 40754 40755 if test "x$new_path" = x; then 40756 # It's still not found. Now this is an unrecoverable error. 40757 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 40758 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 40759 has_space=`$ECHO "$complete" | $GREP " "` 40760 if test "x$has_space" != x; then 40761 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40762 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40763 fi 40764 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40765 fi 40766 fi 40767 40768 # Now new_path has a complete unix path to the binary 40769 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40770 # Keep paths in /bin as-is, but remove trailing .exe if any 40771 new_path="${new_path/%.exe/}" 40772 # Do not save /bin paths to all_fixpath_prefixes! 40773 else 40774 # Not in mixed or Windows style, start by that. 40775 new_path=`cmd //c echo $new_path` 40776 40777 input_path="$new_path" 40778 # Check if we need to convert this using DOS-style short mode. If the path 40779 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40780 # take no chances and rewrite it. 40781 # Note: m4 eats our [], so we need to use [ and ] instead. 40782 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40783 if test "x$has_forbidden_chars" != x; then 40784 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40785 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40786 fi 40787 40788 # Output is in $new_path 40789 40790 windows_path="$new_path" 40791 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40792 unix_path=`$CYGPATH -u "$windows_path"` 40793 new_path="$unix_path" 40794 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40795 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40796 new_path="$unix_path" 40797 fi 40798 40799 # remove trailing .exe if any 40800 new_path="${new_path/%.exe/}" 40801 40802 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40803 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40804 fi 40805 40806 else 40807 # We're on a unix platform. Hooray! :) 40808 # First separate the path from the arguments. This will split at the first 40809 # space. 40810 complete="$STRIP" 40811 path="${complete%% *}" 40812 tmp="$complete EOL" 40813 arguments="${tmp#* }" 40814 40815 # Cannot rely on the command "which" here since it doesn't always work. 40816 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40817 if test -z "$is_absolute_path"; then 40818 # Path to executable is not absolute. Find it. 40819 IFS_save="$IFS" 40820 IFS=: 40821 for p in $PATH; do 40822 if test -f "$p/$path" && test -x "$p/$path"; then 40823 new_path="$p/$path" 40824 break 40825 fi 40826 done 40827 IFS="$IFS_save" 40828 else 40829 # This is an absolute path, we can use it without further modifications. 40830 new_path="$path" 40831 fi 40832 40833 if test "x$new_path" = x; then 40834 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 40835 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 40836 has_space=`$ECHO "$complete" | $GREP " "` 40837 if test "x$has_space" != x; then 40838 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40839 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40840 fi 40841 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40842 fi 40843 fi 40844 40845 # Now join together the path and the arguments once again 40846 if test "x$arguments" != xEOL; then 40847 new_complete="$new_path ${arguments% *}" 40848 else 40849 new_complete="$new_path" 40850 fi 40851 40852 if test "x$complete" != "x$new_complete"; then 40853 STRIP="$new_complete" 40854 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 40855 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 40856 fi 40857 fi 40858 40859 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40860 40861 40862 # Publish this variable in the help. 40863 40864 40865 if [ -z "${NM+x}" ]; then 40866 # The variable is not set by user, try to locate tool using the code snippet 40867 if test -n "$ac_tool_prefix"; then 40868 for ac_prog in nm gcc-nm 40869 do 40870 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 40871 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 40872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40873 $as_echo_n "checking for $ac_word... " >&6; } 40874 if ${ac_cv_prog_NM+:} false; then : 40875 $as_echo_n "(cached) " >&6 40876 else 40877 if test -n "$NM"; then 40878 ac_cv_prog_NM="$NM" # Let the user override the test. 40879 else 40880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40881 for as_dir in $PATH 40882 do 40883 IFS=$as_save_IFS 40884 test -z "$as_dir" && as_dir=. 40885 for ac_exec_ext in '' $ac_executable_extensions; do 40886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40887 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 40888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40889 break 2 40890 fi 40891 done 40892 done 40893 IFS=$as_save_IFS 40894 40895 fi 40896 fi 40897 NM=$ac_cv_prog_NM 40898 if test -n "$NM"; then 40899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 40900 $as_echo "$NM" >&6; } 40901 else 40902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40903 $as_echo "no" >&6; } 40904 fi 40905 40906 40907 test -n "$NM" && break 40908 done 40909 fi 40910 if test -z "$NM"; then 40911 ac_ct_NM=$NM 40912 for ac_prog in nm gcc-nm 40913 do 40914 # Extract the first word of "$ac_prog", so it can be a program name with args. 40915 set dummy $ac_prog; ac_word=$2 40916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40917 $as_echo_n "checking for $ac_word... " >&6; } 40918 if ${ac_cv_prog_ac_ct_NM+:} false; then : 40919 $as_echo_n "(cached) " >&6 40920 else 40921 if test -n "$ac_ct_NM"; then 40922 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 40923 else 40924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40925 for as_dir in $PATH 40926 do 40927 IFS=$as_save_IFS 40928 test -z "$as_dir" && as_dir=. 40929 for ac_exec_ext in '' $ac_executable_extensions; do 40930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40931 ac_cv_prog_ac_ct_NM="$ac_prog" 40932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40933 break 2 40934 fi 40935 done 40936 done 40937 IFS=$as_save_IFS 40938 40939 fi 40940 fi 40941 ac_ct_NM=$ac_cv_prog_ac_ct_NM 40942 if test -n "$ac_ct_NM"; then 40943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 40944 $as_echo "$ac_ct_NM" >&6; } 40945 else 40946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40947 $as_echo "no" >&6; } 40948 fi 40949 40950 40951 test -n "$ac_ct_NM" && break 40952 done 40953 40954 if test "x$ac_ct_NM" = x; then 40955 NM="" 40956 else 40957 case $cross_compiling:$ac_tool_warned in 40958 yes:) 40959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 40960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 40961 ac_tool_warned=yes ;; 40962 esac 40963 NM=$ac_ct_NM 40964 fi 40965 fi 40966 40967 else 40968 # The variable is set, but is it from the command line or the environment? 40969 40970 # Try to remove the string !NM! from our list. 40971 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 40972 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40973 # If it failed, the variable was not from the command line. Ignore it, 40974 # but warn the user (except for BASH, which is always set by the calling BASH). 40975 if test "xNM" != xBASH; then 40976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 40977 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 40978 fi 40979 # Try to locate tool using the code snippet 40980 if test -n "$ac_tool_prefix"; then 40981 for ac_prog in nm gcc-nm 40982 do 40983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 40984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 40985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40986 $as_echo_n "checking for $ac_word... " >&6; } 40987 if ${ac_cv_prog_NM+:} false; then : 40988 $as_echo_n "(cached) " >&6 40989 else 40990 if test -n "$NM"; then 40991 ac_cv_prog_NM="$NM" # Let the user override the test. 40992 else 40993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40994 for as_dir in $PATH 40995 do 40996 IFS=$as_save_IFS 40997 test -z "$as_dir" && as_dir=. 40998 for ac_exec_ext in '' $ac_executable_extensions; do 40999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41000 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 41001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41002 break 2 41003 fi 41004 done 41005 done 41006 IFS=$as_save_IFS 41007 41008 fi 41009 fi 41010 NM=$ac_cv_prog_NM 41011 if test -n "$NM"; then 41012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41013 $as_echo "$NM" >&6; } 41014 else 41015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41016 $as_echo "no" >&6; } 41017 fi 41018 41019 41020 test -n "$NM" && break 41021 done 41022 fi 41023 if test -z "$NM"; then 41024 ac_ct_NM=$NM 41025 for ac_prog in nm gcc-nm 41026 do 41027 # Extract the first word of "$ac_prog", so it can be a program name with args. 41028 set dummy $ac_prog; ac_word=$2 41029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41030 $as_echo_n "checking for $ac_word... " >&6; } 41031 if ${ac_cv_prog_ac_ct_NM+:} false; then : 41032 $as_echo_n "(cached) " >&6 41033 else 41034 if test -n "$ac_ct_NM"; then 41035 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 41036 else 41037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41038 for as_dir in $PATH 41039 do 41040 IFS=$as_save_IFS 41041 test -z "$as_dir" && as_dir=. 41042 for ac_exec_ext in '' $ac_executable_extensions; do 41043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41044 ac_cv_prog_ac_ct_NM="$ac_prog" 41045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41046 break 2 41047 fi 41048 done 41049 done 41050 IFS=$as_save_IFS 41051 41052 fi 41053 fi 41054 ac_ct_NM=$ac_cv_prog_ac_ct_NM 41055 if test -n "$ac_ct_NM"; then 41056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 41057 $as_echo "$ac_ct_NM" >&6; } 41058 else 41059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41060 $as_echo "no" >&6; } 41061 fi 41062 41063 41064 test -n "$ac_ct_NM" && break 41065 done 41066 41067 if test "x$ac_ct_NM" = x; then 41068 NM="" 41069 else 41070 case $cross_compiling:$ac_tool_warned in 41071 yes:) 41072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41074 ac_tool_warned=yes ;; 41075 esac 41076 NM=$ac_ct_NM 41077 fi 41078 fi 41079 41080 else 41081 # If it succeeded, then it was overridden by the user. We will use it 41082 # for the tool. 41083 41084 # First remove it from the list of overridden variables, so we can test 41085 # for unknown variables in the end. 41086 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41087 41088 # Check if we try to supply an empty value 41089 if test "x$NM" = x; then 41090 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 41091 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 41092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 41093 $as_echo_n "checking for NM... " >&6; } 41094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41095 $as_echo "disabled" >&6; } 41096 else 41097 # Check if the provided tool contains a complete path. 41098 tool_specified="$NM" 41099 tool_basename="${tool_specified##*/}" 41100 if test "x$tool_basename" = "x$tool_specified"; then 41101 # A command without a complete path is provided, search $PATH. 41102 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 41103 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 41104 # Extract the first word of "$tool_basename", so it can be a program name with args. 41105 set dummy $tool_basename; ac_word=$2 41106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41107 $as_echo_n "checking for $ac_word... " >&6; } 41108 if ${ac_cv_path_NM+:} false; then : 41109 $as_echo_n "(cached) " >&6 41110 else 41111 case $NM in 41112 [\\/]* | ?:[\\/]*) 41113 ac_cv_path_NM="$NM" # Let the user override the test with a path. 41114 ;; 41115 *) 41116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41117 for as_dir in $PATH 41118 do 41119 IFS=$as_save_IFS 41120 test -z "$as_dir" && as_dir=. 41121 for ac_exec_ext in '' $ac_executable_extensions; do 41122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41123 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 41124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41125 break 2 41126 fi 41127 done 41128 done 41129 IFS=$as_save_IFS 41130 41131 ;; 41132 esac 41133 fi 41134 NM=$ac_cv_path_NM 41135 if test -n "$NM"; then 41136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41137 $as_echo "$NM" >&6; } 41138 else 41139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41140 $as_echo "no" >&6; } 41141 fi 41142 41143 41144 if test "x$NM" = x; then 41145 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41146 fi 41147 else 41148 # Otherwise we believe it is a complete path. Use it as it is. 41149 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 41150 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 41151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 41152 $as_echo_n "checking for NM... " >&6; } 41153 if test ! -x "$tool_specified"; then 41154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41155 $as_echo "not found" >&6; } 41156 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 41157 fi 41158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41159 $as_echo "$tool_specified" >&6; } 41160 fi 41161 fi 41162 fi 41163 41164 fi 41165 41166 41167 else 41168 41169 41170 # Publish this variable in the help. 41171 41172 41173 if [ -z "${NM+x}" ]; then 41174 # The variable is not set by user, try to locate tool using the code snippet 41175 if test -n "$ac_tool_prefix"; then 41176 for ac_prog in nm 41177 do 41178 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41179 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41181 $as_echo_n "checking for $ac_word... " >&6; } 41182 if ${ac_cv_prog_NM+:} false; then : 41183 $as_echo_n "(cached) " >&6 41184 else 41185 if test -n "$NM"; then 41186 ac_cv_prog_NM="$NM" # Let the user override the test. 41187 else 41188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41189 for as_dir in $PATH 41190 do 41191 IFS=$as_save_IFS 41192 test -z "$as_dir" && as_dir=. 41193 for ac_exec_ext in '' $ac_executable_extensions; do 41194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41195 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 41196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41197 break 2 41198 fi 41199 done 41200 done 41201 IFS=$as_save_IFS 41202 41203 fi 41204 fi 41205 NM=$ac_cv_prog_NM 41206 if test -n "$NM"; then 41207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41208 $as_echo "$NM" >&6; } 41209 else 41210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41211 $as_echo "no" >&6; } 41212 fi 41213 41214 41215 test -n "$NM" && break 41216 done 41217 fi 41218 if test -z "$NM"; then 41219 ac_ct_NM=$NM 41220 for ac_prog in nm 41221 do 41222 # Extract the first word of "$ac_prog", so it can be a program name with args. 41223 set dummy $ac_prog; ac_word=$2 41224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41225 $as_echo_n "checking for $ac_word... " >&6; } 41226 if ${ac_cv_prog_ac_ct_NM+:} false; then : 41227 $as_echo_n "(cached) " >&6 41228 else 41229 if test -n "$ac_ct_NM"; then 41230 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 41231 else 41232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41233 for as_dir in $PATH 41234 do 41235 IFS=$as_save_IFS 41236 test -z "$as_dir" && as_dir=. 41237 for ac_exec_ext in '' $ac_executable_extensions; do 41238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41239 ac_cv_prog_ac_ct_NM="$ac_prog" 41240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41241 break 2 41242 fi 41243 done 41244 done 41245 IFS=$as_save_IFS 41246 41247 fi 41248 fi 41249 ac_ct_NM=$ac_cv_prog_ac_ct_NM 41250 if test -n "$ac_ct_NM"; then 41251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 41252 $as_echo "$ac_ct_NM" >&6; } 41253 else 41254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41255 $as_echo "no" >&6; } 41256 fi 41257 41258 41259 test -n "$ac_ct_NM" && break 41260 done 41261 41262 if test "x$ac_ct_NM" = x; then 41263 NM="" 41264 else 41265 case $cross_compiling:$ac_tool_warned in 41266 yes:) 41267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41269 ac_tool_warned=yes ;; 41270 esac 41271 NM=$ac_ct_NM 41272 fi 41273 fi 41274 41275 else 41276 # The variable is set, but is it from the command line or the environment? 41277 41278 # Try to remove the string !NM! from our list. 41279 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 41280 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41281 # If it failed, the variable was not from the command line. Ignore it, 41282 # but warn the user (except for BASH, which is always set by the calling BASH). 41283 if test "xNM" != xBASH; then 41284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 41285 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 41286 fi 41287 # Try to locate tool using the code snippet 41288 if test -n "$ac_tool_prefix"; then 41289 for ac_prog in nm 41290 do 41291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41294 $as_echo_n "checking for $ac_word... " >&6; } 41295 if ${ac_cv_prog_NM+:} false; then : 41296 $as_echo_n "(cached) " >&6 41297 else 41298 if test -n "$NM"; then 41299 ac_cv_prog_NM="$NM" # Let the user override the test. 41300 else 41301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41302 for as_dir in $PATH 41303 do 41304 IFS=$as_save_IFS 41305 test -z "$as_dir" && as_dir=. 41306 for ac_exec_ext in '' $ac_executable_extensions; do 41307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41308 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 41309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41310 break 2 41311 fi 41312 done 41313 done 41314 IFS=$as_save_IFS 41315 41316 fi 41317 fi 41318 NM=$ac_cv_prog_NM 41319 if test -n "$NM"; then 41320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41321 $as_echo "$NM" >&6; } 41322 else 41323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41324 $as_echo "no" >&6; } 41325 fi 41326 41327 41328 test -n "$NM" && break 41329 done 41330 fi 41331 if test -z "$NM"; then 41332 ac_ct_NM=$NM 41333 for ac_prog in nm 41334 do 41335 # Extract the first word of "$ac_prog", so it can be a program name with args. 41336 set dummy $ac_prog; ac_word=$2 41337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41338 $as_echo_n "checking for $ac_word... " >&6; } 41339 if ${ac_cv_prog_ac_ct_NM+:} false; then : 41340 $as_echo_n "(cached) " >&6 41341 else 41342 if test -n "$ac_ct_NM"; then 41343 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 41344 else 41345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41346 for as_dir in $PATH 41347 do 41348 IFS=$as_save_IFS 41349 test -z "$as_dir" && as_dir=. 41350 for ac_exec_ext in '' $ac_executable_extensions; do 41351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41352 ac_cv_prog_ac_ct_NM="$ac_prog" 41353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41354 break 2 41355 fi 41356 done 41357 done 41358 IFS=$as_save_IFS 41359 41360 fi 41361 fi 41362 ac_ct_NM=$ac_cv_prog_ac_ct_NM 41363 if test -n "$ac_ct_NM"; then 41364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 41365 $as_echo "$ac_ct_NM" >&6; } 41366 else 41367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41368 $as_echo "no" >&6; } 41369 fi 41370 41371 41372 test -n "$ac_ct_NM" && break 41373 done 41374 41375 if test "x$ac_ct_NM" = x; then 41376 NM="" 41377 else 41378 case $cross_compiling:$ac_tool_warned in 41379 yes:) 41380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41382 ac_tool_warned=yes ;; 41383 esac 41384 NM=$ac_ct_NM 41385 fi 41386 fi 41387 41388 else 41389 # If it succeeded, then it was overridden by the user. We will use it 41390 # for the tool. 41391 41392 # First remove it from the list of overridden variables, so we can test 41393 # for unknown variables in the end. 41394 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41395 41396 # Check if we try to supply an empty value 41397 if test "x$NM" = x; then 41398 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 41399 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 41400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 41401 $as_echo_n "checking for NM... " >&6; } 41402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41403 $as_echo "disabled" >&6; } 41404 else 41405 # Check if the provided tool contains a complete path. 41406 tool_specified="$NM" 41407 tool_basename="${tool_specified##*/}" 41408 if test "x$tool_basename" = "x$tool_specified"; then 41409 # A command without a complete path is provided, search $PATH. 41410 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 41411 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 41412 # Extract the first word of "$tool_basename", so it can be a program name with args. 41413 set dummy $tool_basename; ac_word=$2 41414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41415 $as_echo_n "checking for $ac_word... " >&6; } 41416 if ${ac_cv_path_NM+:} false; then : 41417 $as_echo_n "(cached) " >&6 41418 else 41419 case $NM in 41420 [\\/]* | ?:[\\/]*) 41421 ac_cv_path_NM="$NM" # Let the user override the test with a path. 41422 ;; 41423 *) 41424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41425 for as_dir in $PATH 41426 do 41427 IFS=$as_save_IFS 41428 test -z "$as_dir" && as_dir=. 41429 for ac_exec_ext in '' $ac_executable_extensions; do 41430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41431 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 41432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41433 break 2 41434 fi 41435 done 41436 done 41437 IFS=$as_save_IFS 41438 41439 ;; 41440 esac 41441 fi 41442 NM=$ac_cv_path_NM 41443 if test -n "$NM"; then 41444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41445 $as_echo "$NM" >&6; } 41446 else 41447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41448 $as_echo "no" >&6; } 41449 fi 41450 41451 41452 if test "x$NM" = x; then 41453 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41454 fi 41455 else 41456 # Otherwise we believe it is a complete path. Use it as it is. 41457 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 41458 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 41459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 41460 $as_echo_n "checking for NM... " >&6; } 41461 if test ! -x "$tool_specified"; then 41462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41463 $as_echo "not found" >&6; } 41464 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 41465 fi 41466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41467 $as_echo "$tool_specified" >&6; } 41468 fi 41469 fi 41470 fi 41471 41472 fi 41473 41474 41475 fi 41476 41477 # Only process if variable expands to non-empty 41478 41479 if test "x$NM" != x; then 41480 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41481 41482 # First separate the path from the arguments. This will split at the first 41483 # space. 41484 complete="$NM" 41485 path="${complete%% *}" 41486 tmp="$complete EOL" 41487 arguments="${tmp#* }" 41488 41489 # Input might be given as Windows format, start by converting to 41490 # unix format. 41491 new_path=`$CYGPATH -u "$path"` 41492 41493 # Now try to locate executable using which 41494 new_path=`$WHICH "$new_path" 2> /dev/null` 41495 # bat and cmd files are not always considered executable in cygwin causing which 41496 # to not find them 41497 if test "x$new_path" = x \ 41498 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41499 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41500 new_path=`$CYGPATH -u "$path"` 41501 fi 41502 if test "x$new_path" = x; then 41503 # Oops. Which didn't find the executable. 41504 # The splitting of arguments from the executable at a space might have been incorrect, 41505 # since paths with space are more likely in Windows. Give it another try with the whole 41506 # argument. 41507 path="$complete" 41508 arguments="EOL" 41509 new_path=`$CYGPATH -u "$path"` 41510 new_path=`$WHICH "$new_path" 2> /dev/null` 41511 # bat and cmd files are not always considered executable in cygwin causing which 41512 # to not find them 41513 if test "x$new_path" = x \ 41514 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41515 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41516 new_path=`$CYGPATH -u "$path"` 41517 fi 41518 if test "x$new_path" = x; then 41519 # It's still not found. Now this is an unrecoverable error. 41520 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 41521 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 41522 has_space=`$ECHO "$complete" | $GREP " "` 41523 if test "x$has_space" != x; then 41524 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41525 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41526 fi 41527 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 41528 fi 41529 fi 41530 41531 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41532 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41533 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41534 # "foo.exe" is OK but "foo" is an error. 41535 # 41536 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41537 # It is also a way to make sure we got the proper file name for the real test later on. 41538 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41539 if test "x$test_shortpath" = x; then 41540 # Short path failed, file does not exist as specified. 41541 # Try adding .exe or .cmd 41542 if test -f "${new_path}.exe"; then 41543 input_to_shortpath="${new_path}.exe" 41544 elif test -f "${new_path}.cmd"; then 41545 input_to_shortpath="${new_path}.cmd" 41546 else 41547 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 41548 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 41549 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41550 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41551 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 41552 fi 41553 else 41554 input_to_shortpath="$new_path" 41555 fi 41556 41557 # Call helper function which possibly converts this using DOS-style short mode. 41558 # If so, the updated path is stored in $new_path. 41559 new_path="$input_to_shortpath" 41560 41561 input_path="$input_to_shortpath" 41562 # Check if we need to convert this using DOS-style short mode. If the path 41563 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41564 # take no chances and rewrite it. 41565 # Note: m4 eats our [], so we need to use [ and ] instead. 41566 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41567 if test "x$has_forbidden_chars" != x; then 41568 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41569 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41570 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41571 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41572 # Going to short mode and back again did indeed matter. Since short mode is 41573 # case insensitive, let's make it lowercase to improve readability. 41574 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41575 # Now convert it back to Unix-style (cygpath) 41576 input_path=`$CYGPATH -u "$shortmode_path"` 41577 new_path="$input_path" 41578 fi 41579 fi 41580 41581 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41582 if test "x$test_cygdrive_prefix" = x; then 41583 # As a simple fix, exclude /usr/bin since it's not a real path. 41584 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41585 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41586 # a path prefixed by /cygdrive for fixpath to work. 41587 new_path="$CYGWIN_ROOT_PATH$input_path" 41588 fi 41589 fi 41590 41591 # remove trailing .exe if any 41592 new_path="${new_path/%.exe/}" 41593 41594 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41595 41596 # First separate the path from the arguments. This will split at the first 41597 # space. 41598 complete="$NM" 41599 path="${complete%% *}" 41600 tmp="$complete EOL" 41601 arguments="${tmp#* }" 41602 41603 # Input might be given as Windows format, start by converting to 41604 # unix format. 41605 new_path="$path" 41606 41607 windows_path="$new_path" 41608 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41609 unix_path=`$CYGPATH -u "$windows_path"` 41610 new_path="$unix_path" 41611 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41612 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41613 new_path="$unix_path" 41614 fi 41615 41616 41617 # Now try to locate executable using which 41618 new_path=`$WHICH "$new_path" 2> /dev/null` 41619 41620 if test "x$new_path" = x; then 41621 # Oops. Which didn't find the executable. 41622 # The splitting of arguments from the executable at a space might have been incorrect, 41623 # since paths with space are more likely in Windows. Give it another try with the whole 41624 # argument. 41625 path="$complete" 41626 arguments="EOL" 41627 new_path="$path" 41628 41629 windows_path="$new_path" 41630 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41631 unix_path=`$CYGPATH -u "$windows_path"` 41632 new_path="$unix_path" 41633 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41634 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41635 new_path="$unix_path" 41636 fi 41637 41638 41639 new_path=`$WHICH "$new_path" 2> /dev/null` 41640 # bat and cmd files are not always considered executable in MSYS causing which 41641 # to not find them 41642 if test "x$new_path" = x \ 41643 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41644 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41645 new_path="$path" 41646 41647 windows_path="$new_path" 41648 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41649 unix_path=`$CYGPATH -u "$windows_path"` 41650 new_path="$unix_path" 41651 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41652 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41653 new_path="$unix_path" 41654 fi 41655 41656 fi 41657 41658 if test "x$new_path" = x; then 41659 # It's still not found. Now this is an unrecoverable error. 41660 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 41661 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 41662 has_space=`$ECHO "$complete" | $GREP " "` 41663 if test "x$has_space" != x; then 41664 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41665 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41666 fi 41667 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 41668 fi 41669 fi 41670 41671 # Now new_path has a complete unix path to the binary 41672 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41673 # Keep paths in /bin as-is, but remove trailing .exe if any 41674 new_path="${new_path/%.exe/}" 41675 # Do not save /bin paths to all_fixpath_prefixes! 41676 else 41677 # Not in mixed or Windows style, start by that. 41678 new_path=`cmd //c echo $new_path` 41679 41680 input_path="$new_path" 41681 # Check if we need to convert this using DOS-style short mode. If the path 41682 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41683 # take no chances and rewrite it. 41684 # Note: m4 eats our [], so we need to use [ and ] instead. 41685 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41686 if test "x$has_forbidden_chars" != x; then 41687 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41688 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41689 fi 41690 41691 # Output is in $new_path 41692 41693 windows_path="$new_path" 41694 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41695 unix_path=`$CYGPATH -u "$windows_path"` 41696 new_path="$unix_path" 41697 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41698 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41699 new_path="$unix_path" 41700 fi 41701 41702 # remove trailing .exe if any 41703 new_path="${new_path/%.exe/}" 41704 41705 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41706 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41707 fi 41708 41709 else 41710 # We're on a unix platform. Hooray! :) 41711 # First separate the path from the arguments. This will split at the first 41712 # space. 41713 complete="$NM" 41714 path="${complete%% *}" 41715 tmp="$complete EOL" 41716 arguments="${tmp#* }" 41717 41718 # Cannot rely on the command "which" here since it doesn't always work. 41719 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41720 if test -z "$is_absolute_path"; then 41721 # Path to executable is not absolute. Find it. 41722 IFS_save="$IFS" 41723 IFS=: 41724 for p in $PATH; do 41725 if test -f "$p/$path" && test -x "$p/$path"; then 41726 new_path="$p/$path" 41727 break 41728 fi 41729 done 41730 IFS="$IFS_save" 41731 else 41732 # This is an absolute path, we can use it without further modifications. 41733 new_path="$path" 41734 fi 41735 41736 if test "x$new_path" = x; then 41737 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 41738 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 41739 has_space=`$ECHO "$complete" | $GREP " "` 41740 if test "x$has_space" != x; then 41741 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41742 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41743 fi 41744 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 41745 fi 41746 fi 41747 41748 # Now join together the path and the arguments once again 41749 if test "x$arguments" != xEOL; then 41750 new_complete="$new_path ${arguments% *}" 41751 else 41752 new_complete="$new_path" 41753 fi 41754 41755 if test "x$complete" != "x$new_complete"; then 41756 NM="$new_complete" 41757 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 41758 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 41759 fi 41760 fi 41761 41762 GNM="$NM" 41763 41764 fi 41765 41766 # objcopy is used for moving debug symbols to separate files when 41767 # full debug symbols are enabled. 41768 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 41769 41770 41771 # Publish this variable in the help. 41772 41773 41774 if [ -z "${OBJCOPY+x}" ]; then 41775 # The variable is not set by user, try to locate tool using the code snippet 41776 if test -n "$ac_tool_prefix"; then 41777 for ac_prog in gobjcopy objcopy 41778 do 41779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41782 $as_echo_n "checking for $ac_word... " >&6; } 41783 if ${ac_cv_prog_OBJCOPY+:} false; then : 41784 $as_echo_n "(cached) " >&6 41785 else 41786 if test -n "$OBJCOPY"; then 41787 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 41788 else 41789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41790 for as_dir in $PATH 41791 do 41792 IFS=$as_save_IFS 41793 test -z "$as_dir" && as_dir=. 41794 for ac_exec_ext in '' $ac_executable_extensions; do 41795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41796 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 41797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41798 break 2 41799 fi 41800 done 41801 done 41802 IFS=$as_save_IFS 41803 41804 fi 41805 fi 41806 OBJCOPY=$ac_cv_prog_OBJCOPY 41807 if test -n "$OBJCOPY"; then 41808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 41809 $as_echo "$OBJCOPY" >&6; } 41810 else 41811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41812 $as_echo "no" >&6; } 41813 fi 41814 41815 41816 test -n "$OBJCOPY" && break 41817 done 41818 fi 41819 if test -z "$OBJCOPY"; then 41820 ac_ct_OBJCOPY=$OBJCOPY 41821 for ac_prog in gobjcopy objcopy 41822 do 41823 # Extract the first word of "$ac_prog", so it can be a program name with args. 41824 set dummy $ac_prog; ac_word=$2 41825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41826 $as_echo_n "checking for $ac_word... " >&6; } 41827 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 41828 $as_echo_n "(cached) " >&6 41829 else 41830 if test -n "$ac_ct_OBJCOPY"; then 41831 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 41832 else 41833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41834 for as_dir in $PATH 41835 do 41836 IFS=$as_save_IFS 41837 test -z "$as_dir" && as_dir=. 41838 for ac_exec_ext in '' $ac_executable_extensions; do 41839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41840 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 41841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41842 break 2 41843 fi 41844 done 41845 done 41846 IFS=$as_save_IFS 41847 41848 fi 41849 fi 41850 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 41851 if test -n "$ac_ct_OBJCOPY"; then 41852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 41853 $as_echo "$ac_ct_OBJCOPY" >&6; } 41854 else 41855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41856 $as_echo "no" >&6; } 41857 fi 41858 41859 41860 test -n "$ac_ct_OBJCOPY" && break 41861 done 41862 41863 if test "x$ac_ct_OBJCOPY" = x; then 41864 OBJCOPY="" 41865 else 41866 case $cross_compiling:$ac_tool_warned in 41867 yes:) 41868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41870 ac_tool_warned=yes ;; 41871 esac 41872 OBJCOPY=$ac_ct_OBJCOPY 41873 fi 41874 fi 41875 41876 else 41877 # The variable is set, but is it from the command line or the environment? 41878 41879 # Try to remove the string !OBJCOPY! from our list. 41880 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 41881 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41882 # If it failed, the variable was not from the command line. Ignore it, 41883 # but warn the user (except for BASH, which is always set by the calling BASH). 41884 if test "xOBJCOPY" != xBASH; then 41885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 41886 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 41887 fi 41888 # Try to locate tool using the code snippet 41889 if test -n "$ac_tool_prefix"; then 41890 for ac_prog in gobjcopy objcopy 41891 do 41892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41893 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41895 $as_echo_n "checking for $ac_word... " >&6; } 41896 if ${ac_cv_prog_OBJCOPY+:} false; then : 41897 $as_echo_n "(cached) " >&6 41898 else 41899 if test -n "$OBJCOPY"; then 41900 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 41901 else 41902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41903 for as_dir in $PATH 41904 do 41905 IFS=$as_save_IFS 41906 test -z "$as_dir" && as_dir=. 41907 for ac_exec_ext in '' $ac_executable_extensions; do 41908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41909 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 41910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41911 break 2 41912 fi 41913 done 41914 done 41915 IFS=$as_save_IFS 41916 41917 fi 41918 fi 41919 OBJCOPY=$ac_cv_prog_OBJCOPY 41920 if test -n "$OBJCOPY"; then 41921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 41922 $as_echo "$OBJCOPY" >&6; } 41923 else 41924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41925 $as_echo "no" >&6; } 41926 fi 41927 41928 41929 test -n "$OBJCOPY" && break 41930 done 41931 fi 41932 if test -z "$OBJCOPY"; then 41933 ac_ct_OBJCOPY=$OBJCOPY 41934 for ac_prog in gobjcopy objcopy 41935 do 41936 # Extract the first word of "$ac_prog", so it can be a program name with args. 41937 set dummy $ac_prog; ac_word=$2 41938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41939 $as_echo_n "checking for $ac_word... " >&6; } 41940 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 41941 $as_echo_n "(cached) " >&6 41942 else 41943 if test -n "$ac_ct_OBJCOPY"; then 41944 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 41945 else 41946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41947 for as_dir in $PATH 41948 do 41949 IFS=$as_save_IFS 41950 test -z "$as_dir" && as_dir=. 41951 for ac_exec_ext in '' $ac_executable_extensions; do 41952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41953 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 41954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41955 break 2 41956 fi 41957 done 41958 done 41959 IFS=$as_save_IFS 41960 41961 fi 41962 fi 41963 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 41964 if test -n "$ac_ct_OBJCOPY"; then 41965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 41966 $as_echo "$ac_ct_OBJCOPY" >&6; } 41967 else 41968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41969 $as_echo "no" >&6; } 41970 fi 41971 41972 41973 test -n "$ac_ct_OBJCOPY" && break 41974 done 41975 41976 if test "x$ac_ct_OBJCOPY" = x; then 41977 OBJCOPY="" 41978 else 41979 case $cross_compiling:$ac_tool_warned in 41980 yes:) 41981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41983 ac_tool_warned=yes ;; 41984 esac 41985 OBJCOPY=$ac_ct_OBJCOPY 41986 fi 41987 fi 41988 41989 else 41990 # If it succeeded, then it was overridden by the user. We will use it 41991 # for the tool. 41992 41993 # First remove it from the list of overridden variables, so we can test 41994 # for unknown variables in the end. 41995 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41996 41997 # Check if we try to supply an empty value 41998 if test "x$OBJCOPY" = x; then 41999 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJCOPY= (no value)" >&5 42000 $as_echo "$as_me: Setting user supplied tool OBJCOPY= (no value)" >&6;} 42001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 42002 $as_echo_n "checking for OBJCOPY... " >&6; } 42003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42004 $as_echo "disabled" >&6; } 42005 else 42006 # Check if the provided tool contains a complete path. 42007 tool_specified="$OBJCOPY" 42008 tool_basename="${tool_specified##*/}" 42009 if test "x$tool_basename" = "x$tool_specified"; then 42010 # A command without a complete path is provided, search $PATH. 42011 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 42012 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 42013 # Extract the first word of "$tool_basename", so it can be a program name with args. 42014 set dummy $tool_basename; ac_word=$2 42015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42016 $as_echo_n "checking for $ac_word... " >&6; } 42017 if ${ac_cv_path_OBJCOPY+:} false; then : 42018 $as_echo_n "(cached) " >&6 42019 else 42020 case $OBJCOPY in 42021 [\\/]* | ?:[\\/]*) 42022 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 42023 ;; 42024 *) 42025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42026 for as_dir in $PATH 42027 do 42028 IFS=$as_save_IFS 42029 test -z "$as_dir" && as_dir=. 42030 for ac_exec_ext in '' $ac_executable_extensions; do 42031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42032 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 42033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42034 break 2 42035 fi 42036 done 42037 done 42038 IFS=$as_save_IFS 42039 42040 ;; 42041 esac 42042 fi 42043 OBJCOPY=$ac_cv_path_OBJCOPY 42044 if test -n "$OBJCOPY"; then 42045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 42046 $as_echo "$OBJCOPY" >&6; } 42047 else 42048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42049 $as_echo "no" >&6; } 42050 fi 42051 42052 42053 if test "x$OBJCOPY" = x; then 42054 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42055 fi 42056 else 42057 # Otherwise we believe it is a complete path. Use it as it is. 42058 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 42059 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 42060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 42061 $as_echo_n "checking for OBJCOPY... " >&6; } 42062 if test ! -x "$tool_specified"; then 42063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42064 $as_echo "not found" >&6; } 42065 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 42066 fi 42067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42068 $as_echo "$tool_specified" >&6; } 42069 fi 42070 fi 42071 fi 42072 42073 fi 42074 42075 42076 # Only call fixup if objcopy was found. 42077 if test -n "$OBJCOPY"; then 42078 42079 # Only process if variable expands to non-empty 42080 42081 if test "x$OBJCOPY" != x; then 42082 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42083 42084 # First separate the path from the arguments. This will split at the first 42085 # space. 42086 complete="$OBJCOPY" 42087 path="${complete%% *}" 42088 tmp="$complete EOL" 42089 arguments="${tmp#* }" 42090 42091 # Input might be given as Windows format, start by converting to 42092 # unix format. 42093 new_path=`$CYGPATH -u "$path"` 42094 42095 # Now try to locate executable using which 42096 new_path=`$WHICH "$new_path" 2> /dev/null` 42097 # bat and cmd files are not always considered executable in cygwin causing which 42098 # to not find them 42099 if test "x$new_path" = x \ 42100 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42101 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42102 new_path=`$CYGPATH -u "$path"` 42103 fi 42104 if test "x$new_path" = x; then 42105 # Oops. Which didn't find the executable. 42106 # The splitting of arguments from the executable at a space might have been incorrect, 42107 # since paths with space are more likely in Windows. Give it another try with the whole 42108 # argument. 42109 path="$complete" 42110 arguments="EOL" 42111 new_path=`$CYGPATH -u "$path"` 42112 new_path=`$WHICH "$new_path" 2> /dev/null` 42113 # bat and cmd files are not always considered executable in cygwin causing which 42114 # to not find them 42115 if test "x$new_path" = x \ 42116 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42117 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42118 new_path=`$CYGPATH -u "$path"` 42119 fi 42120 if test "x$new_path" = x; then 42121 # It's still not found. Now this is an unrecoverable error. 42122 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 42123 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 42124 has_space=`$ECHO "$complete" | $GREP " "` 42125 if test "x$has_space" != x; then 42126 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42127 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42128 fi 42129 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 42130 fi 42131 fi 42132 42133 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42134 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42135 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42136 # "foo.exe" is OK but "foo" is an error. 42137 # 42138 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42139 # It is also a way to make sure we got the proper file name for the real test later on. 42140 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42141 if test "x$test_shortpath" = x; then 42142 # Short path failed, file does not exist as specified. 42143 # Try adding .exe or .cmd 42144 if test -f "${new_path}.exe"; then 42145 input_to_shortpath="${new_path}.exe" 42146 elif test -f "${new_path}.cmd"; then 42147 input_to_shortpath="${new_path}.cmd" 42148 else 42149 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 42150 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 42151 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42152 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42153 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 42154 fi 42155 else 42156 input_to_shortpath="$new_path" 42157 fi 42158 42159 # Call helper function which possibly converts this using DOS-style short mode. 42160 # If so, the updated path is stored in $new_path. 42161 new_path="$input_to_shortpath" 42162 42163 input_path="$input_to_shortpath" 42164 # Check if we need to convert this using DOS-style short mode. If the path 42165 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42166 # take no chances and rewrite it. 42167 # Note: m4 eats our [], so we need to use [ and ] instead. 42168 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42169 if test "x$has_forbidden_chars" != x; then 42170 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42171 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42172 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42173 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42174 # Going to short mode and back again did indeed matter. Since short mode is 42175 # case insensitive, let's make it lowercase to improve readability. 42176 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42177 # Now convert it back to Unix-style (cygpath) 42178 input_path=`$CYGPATH -u "$shortmode_path"` 42179 new_path="$input_path" 42180 fi 42181 fi 42182 42183 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42184 if test "x$test_cygdrive_prefix" = x; then 42185 # As a simple fix, exclude /usr/bin since it's not a real path. 42186 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42187 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42188 # a path prefixed by /cygdrive for fixpath to work. 42189 new_path="$CYGWIN_ROOT_PATH$input_path" 42190 fi 42191 fi 42192 42193 # remove trailing .exe if any 42194 new_path="${new_path/%.exe/}" 42195 42196 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42197 42198 # First separate the path from the arguments. This will split at the first 42199 # space. 42200 complete="$OBJCOPY" 42201 path="${complete%% *}" 42202 tmp="$complete EOL" 42203 arguments="${tmp#* }" 42204 42205 # Input might be given as Windows format, start by converting to 42206 # unix format. 42207 new_path="$path" 42208 42209 windows_path="$new_path" 42210 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42211 unix_path=`$CYGPATH -u "$windows_path"` 42212 new_path="$unix_path" 42213 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42214 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42215 new_path="$unix_path" 42216 fi 42217 42218 42219 # Now try to locate executable using which 42220 new_path=`$WHICH "$new_path" 2> /dev/null` 42221 42222 if test "x$new_path" = x; then 42223 # Oops. Which didn't find the executable. 42224 # The splitting of arguments from the executable at a space might have been incorrect, 42225 # since paths with space are more likely in Windows. Give it another try with the whole 42226 # argument. 42227 path="$complete" 42228 arguments="EOL" 42229 new_path="$path" 42230 42231 windows_path="$new_path" 42232 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42233 unix_path=`$CYGPATH -u "$windows_path"` 42234 new_path="$unix_path" 42235 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42236 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42237 new_path="$unix_path" 42238 fi 42239 42240 42241 new_path=`$WHICH "$new_path" 2> /dev/null` 42242 # bat and cmd files are not always considered executable in MSYS causing which 42243 # to not find them 42244 if test "x$new_path" = x \ 42245 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42246 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42247 new_path="$path" 42248 42249 windows_path="$new_path" 42250 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42251 unix_path=`$CYGPATH -u "$windows_path"` 42252 new_path="$unix_path" 42253 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42254 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42255 new_path="$unix_path" 42256 fi 42257 42258 fi 42259 42260 if test "x$new_path" = x; then 42261 # It's still not found. Now this is an unrecoverable error. 42262 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 42263 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 42264 has_space=`$ECHO "$complete" | $GREP " "` 42265 if test "x$has_space" != x; then 42266 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42267 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42268 fi 42269 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 42270 fi 42271 fi 42272 42273 # Now new_path has a complete unix path to the binary 42274 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 42275 # Keep paths in /bin as-is, but remove trailing .exe if any 42276 new_path="${new_path/%.exe/}" 42277 # Do not save /bin paths to all_fixpath_prefixes! 42278 else 42279 # Not in mixed or Windows style, start by that. 42280 new_path=`cmd //c echo $new_path` 42281 42282 input_path="$new_path" 42283 # Check if we need to convert this using DOS-style short mode. If the path 42284 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42285 # take no chances and rewrite it. 42286 # Note: m4 eats our [], so we need to use [ and ] instead. 42287 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42288 if test "x$has_forbidden_chars" != x; then 42289 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42290 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42291 fi 42292 42293 # Output is in $new_path 42294 42295 windows_path="$new_path" 42296 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42297 unix_path=`$CYGPATH -u "$windows_path"` 42298 new_path="$unix_path" 42299 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42300 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42301 new_path="$unix_path" 42302 fi 42303 42304 # remove trailing .exe if any 42305 new_path="${new_path/%.exe/}" 42306 42307 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42308 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42309 fi 42310 42311 else 42312 # We're on a unix platform. Hooray! :) 42313 # First separate the path from the arguments. This will split at the first 42314 # space. 42315 complete="$OBJCOPY" 42316 path="${complete%% *}" 42317 tmp="$complete EOL" 42318 arguments="${tmp#* }" 42319 42320 # Cannot rely on the command "which" here since it doesn't always work. 42321 is_absolute_path=`$ECHO "$path" | $GREP ^/` 42322 if test -z "$is_absolute_path"; then 42323 # Path to executable is not absolute. Find it. 42324 IFS_save="$IFS" 42325 IFS=: 42326 for p in $PATH; do 42327 if test -f "$p/$path" && test -x "$p/$path"; then 42328 new_path="$p/$path" 42329 break 42330 fi 42331 done 42332 IFS="$IFS_save" 42333 else 42334 # This is an absolute path, we can use it without further modifications. 42335 new_path="$path" 42336 fi 42337 42338 if test "x$new_path" = x; then 42339 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 42340 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 42341 has_space=`$ECHO "$complete" | $GREP " "` 42342 if test "x$has_space" != x; then 42343 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42344 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42345 fi 42346 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 42347 fi 42348 fi 42349 42350 # Now join together the path and the arguments once again 42351 if test "x$arguments" != xEOL; then 42352 new_complete="$new_path ${arguments% *}" 42353 else 42354 new_complete="$new_path" 42355 fi 42356 42357 if test "x$complete" != "x$new_complete"; then 42358 OBJCOPY="$new_complete" 42359 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 42360 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 42361 fi 42362 fi 42363 42364 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 42365 # objcopy prior to 2.21.1 on solaris is broken and is not usable. 42366 # Rewrite objcopy version output to VALID_VERSION or BAD_VERSION. 42367 # - version number is last blank separate word on first line 42368 # - version number formats that have been seen: 42369 # - <major>.<minor> 42370 # - <major>.<minor>.<micro> 42371 OBJCOPY_VERSION=`$OBJCOPY --version | $HEAD -n 1` 42372 # The outer [ ] is to prevent m4 from eating the [] in the sed expression. 42373 OBJCOPY_VERSION_CHECK=`$ECHO $OBJCOPY_VERSION | $SED -n \ 42374 -e 's/.* //' \ 42375 -e '/^[01]\./b bad' \ 42376 -e '/^2\./{' \ 42377 -e ' s/^2\.//' \ 42378 -e ' /^[0-9]$/b bad' \ 42379 -e ' /^[0-9]\./b bad' \ 42380 -e ' /^1[0-9]$/b bad' \ 42381 -e ' /^1[0-9]\./b bad' \ 42382 -e ' /^20\./b bad' \ 42383 -e ' /^21\.0$/b bad' \ 42384 -e ' /^21\.0\./b bad' \ 42385 -e '}' \ 42386 -e ':good' \ 42387 -e 's/.*/VALID_VERSION/p' \ 42388 -e 'q' \ 42389 -e ':bad' \ 42390 -e 's/.*/BAD_VERSION/p' \ 42391 -e 'q'` 42392 if test "x$OBJCOPY_VERSION_CHECK" = xBAD_VERSION; then 42393 OBJCOPY= 42394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring found objcopy since it is broken (prior to 2.21.1). No debug symbols will be generated." >&5 42395 $as_echo "$as_me: WARNING: Ignoring found objcopy since it is broken (prior to 2.21.1). No debug symbols will be generated." >&2;} 42396 { $as_echo "$as_me:${as_lineno-$LINENO}: objcopy reports version $OBJCOPY_VERSION" >&5 42397 $as_echo "$as_me: objcopy reports version $OBJCOPY_VERSION" >&6;} 42398 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&5 42399 $as_echo "$as_me: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&6;} 42400 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&5 42401 $as_echo "$as_me: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&6;} 42402 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: Solaris 11 Update 1 contains the correct version" >&5 42403 $as_echo "$as_me: Note: Solaris 11 Update 1 contains the correct version" >&6;} 42404 fi 42405 fi 42406 fi 42407 fi 42408 42409 42410 42411 # Publish this variable in the help. 42412 42413 42414 if [ -z "${OBJDUMP+x}" ]; then 42415 # The variable is not set by user, try to locate tool using the code snippet 42416 if test -n "$ac_tool_prefix"; then 42417 for ac_prog in gobjdump objdump 42418 do 42419 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42420 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42422 $as_echo_n "checking for $ac_word... " >&6; } 42423 if ${ac_cv_prog_OBJDUMP+:} false; then : 42424 $as_echo_n "(cached) " >&6 42425 else 42426 if test -n "$OBJDUMP"; then 42427 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 42428 else 42429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42430 for as_dir in $PATH 42431 do 42432 IFS=$as_save_IFS 42433 test -z "$as_dir" && as_dir=. 42434 for ac_exec_ext in '' $ac_executable_extensions; do 42435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42436 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 42437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42438 break 2 42439 fi 42440 done 42441 done 42442 IFS=$as_save_IFS 42443 42444 fi 42445 fi 42446 OBJDUMP=$ac_cv_prog_OBJDUMP 42447 if test -n "$OBJDUMP"; then 42448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 42449 $as_echo "$OBJDUMP" >&6; } 42450 else 42451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42452 $as_echo "no" >&6; } 42453 fi 42454 42455 42456 test -n "$OBJDUMP" && break 42457 done 42458 fi 42459 if test -z "$OBJDUMP"; then 42460 ac_ct_OBJDUMP=$OBJDUMP 42461 for ac_prog in gobjdump objdump 42462 do 42463 # Extract the first word of "$ac_prog", so it can be a program name with args. 42464 set dummy $ac_prog; ac_word=$2 42465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42466 $as_echo_n "checking for $ac_word... " >&6; } 42467 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 42468 $as_echo_n "(cached) " >&6 42469 else 42470 if test -n "$ac_ct_OBJDUMP"; then 42471 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 42472 else 42473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42474 for as_dir in $PATH 42475 do 42476 IFS=$as_save_IFS 42477 test -z "$as_dir" && as_dir=. 42478 for ac_exec_ext in '' $ac_executable_extensions; do 42479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42480 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 42481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42482 break 2 42483 fi 42484 done 42485 done 42486 IFS=$as_save_IFS 42487 42488 fi 42489 fi 42490 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 42491 if test -n "$ac_ct_OBJDUMP"; then 42492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 42493 $as_echo "$ac_ct_OBJDUMP" >&6; } 42494 else 42495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42496 $as_echo "no" >&6; } 42497 fi 42498 42499 42500 test -n "$ac_ct_OBJDUMP" && break 42501 done 42502 42503 if test "x$ac_ct_OBJDUMP" = x; then 42504 OBJDUMP="" 42505 else 42506 case $cross_compiling:$ac_tool_warned in 42507 yes:) 42508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42510 ac_tool_warned=yes ;; 42511 esac 42512 OBJDUMP=$ac_ct_OBJDUMP 42513 fi 42514 fi 42515 42516 else 42517 # The variable is set, but is it from the command line or the environment? 42518 42519 # Try to remove the string !OBJDUMP! from our list. 42520 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 42521 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42522 # If it failed, the variable was not from the command line. Ignore it, 42523 # but warn the user (except for BASH, which is always set by the calling BASH). 42524 if test "xOBJDUMP" != xBASH; then 42525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 42526 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 42527 fi 42528 # Try to locate tool using the code snippet 42529 if test -n "$ac_tool_prefix"; then 42530 for ac_prog in gobjdump objdump 42531 do 42532 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42533 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42535 $as_echo_n "checking for $ac_word... " >&6; } 42536 if ${ac_cv_prog_OBJDUMP+:} false; then : 42537 $as_echo_n "(cached) " >&6 42538 else 42539 if test -n "$OBJDUMP"; then 42540 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 42541 else 42542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42543 for as_dir in $PATH 42544 do 42545 IFS=$as_save_IFS 42546 test -z "$as_dir" && as_dir=. 42547 for ac_exec_ext in '' $ac_executable_extensions; do 42548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42549 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 42550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42551 break 2 42552 fi 42553 done 42554 done 42555 IFS=$as_save_IFS 42556 42557 fi 42558 fi 42559 OBJDUMP=$ac_cv_prog_OBJDUMP 42560 if test -n "$OBJDUMP"; then 42561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 42562 $as_echo "$OBJDUMP" >&6; } 42563 else 42564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42565 $as_echo "no" >&6; } 42566 fi 42567 42568 42569 test -n "$OBJDUMP" && break 42570 done 42571 fi 42572 if test -z "$OBJDUMP"; then 42573 ac_ct_OBJDUMP=$OBJDUMP 42574 for ac_prog in gobjdump objdump 42575 do 42576 # Extract the first word of "$ac_prog", so it can be a program name with args. 42577 set dummy $ac_prog; ac_word=$2 42578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42579 $as_echo_n "checking for $ac_word... " >&6; } 42580 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 42581 $as_echo_n "(cached) " >&6 42582 else 42583 if test -n "$ac_ct_OBJDUMP"; then 42584 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 42585 else 42586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42587 for as_dir in $PATH 42588 do 42589 IFS=$as_save_IFS 42590 test -z "$as_dir" && as_dir=. 42591 for ac_exec_ext in '' $ac_executable_extensions; do 42592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42593 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 42594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42595 break 2 42596 fi 42597 done 42598 done 42599 IFS=$as_save_IFS 42600 42601 fi 42602 fi 42603 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 42604 if test -n "$ac_ct_OBJDUMP"; then 42605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 42606 $as_echo "$ac_ct_OBJDUMP" >&6; } 42607 else 42608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42609 $as_echo "no" >&6; } 42610 fi 42611 42612 42613 test -n "$ac_ct_OBJDUMP" && break 42614 done 42615 42616 if test "x$ac_ct_OBJDUMP" = x; then 42617 OBJDUMP="" 42618 else 42619 case $cross_compiling:$ac_tool_warned in 42620 yes:) 42621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42623 ac_tool_warned=yes ;; 42624 esac 42625 OBJDUMP=$ac_ct_OBJDUMP 42626 fi 42627 fi 42628 42629 else 42630 # If it succeeded, then it was overridden by the user. We will use it 42631 # for the tool. 42632 42633 # First remove it from the list of overridden variables, so we can test 42634 # for unknown variables in the end. 42635 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42636 42637 # Check if we try to supply an empty value 42638 if test "x$OBJDUMP" = x; then 42639 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJDUMP= (no value)" >&5 42640 $as_echo "$as_me: Setting user supplied tool OBJDUMP= (no value)" >&6;} 42641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 42642 $as_echo_n "checking for OBJDUMP... " >&6; } 42643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42644 $as_echo "disabled" >&6; } 42645 else 42646 # Check if the provided tool contains a complete path. 42647 tool_specified="$OBJDUMP" 42648 tool_basename="${tool_specified##*/}" 42649 if test "x$tool_basename" = "x$tool_specified"; then 42650 # A command without a complete path is provided, search $PATH. 42651 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 42652 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 42653 # Extract the first word of "$tool_basename", so it can be a program name with args. 42654 set dummy $tool_basename; ac_word=$2 42655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42656 $as_echo_n "checking for $ac_word... " >&6; } 42657 if ${ac_cv_path_OBJDUMP+:} false; then : 42658 $as_echo_n "(cached) " >&6 42659 else 42660 case $OBJDUMP in 42661 [\\/]* | ?:[\\/]*) 42662 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 42663 ;; 42664 *) 42665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42666 for as_dir in $PATH 42667 do 42668 IFS=$as_save_IFS 42669 test -z "$as_dir" && as_dir=. 42670 for ac_exec_ext in '' $ac_executable_extensions; do 42671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42672 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 42673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42674 break 2 42675 fi 42676 done 42677 done 42678 IFS=$as_save_IFS 42679 42680 ;; 42681 esac 42682 fi 42683 OBJDUMP=$ac_cv_path_OBJDUMP 42684 if test -n "$OBJDUMP"; then 42685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 42686 $as_echo "$OBJDUMP" >&6; } 42687 else 42688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42689 $as_echo "no" >&6; } 42690 fi 42691 42692 42693 if test "x$OBJDUMP" = x; then 42694 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42695 fi 42696 else 42697 # Otherwise we believe it is a complete path. Use it as it is. 42698 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 42699 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 42700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 42701 $as_echo_n "checking for OBJDUMP... " >&6; } 42702 if test ! -x "$tool_specified"; then 42703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42704 $as_echo "not found" >&6; } 42705 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 42706 fi 42707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42708 $as_echo "$tool_specified" >&6; } 42709 fi 42710 fi 42711 fi 42712 42713 fi 42714 42715 42716 if test "x$OBJDUMP" != x; then 42717 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 42718 # bails if argument is missing. 42719 42720 # Only process if variable expands to non-empty 42721 42722 if test "x$OBJDUMP" != x; then 42723 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42724 42725 # First separate the path from the arguments. This will split at the first 42726 # space. 42727 complete="$OBJDUMP" 42728 path="${complete%% *}" 42729 tmp="$complete EOL" 42730 arguments="${tmp#* }" 42731 42732 # Input might be given as Windows format, start by converting to 42733 # unix format. 42734 new_path=`$CYGPATH -u "$path"` 42735 42736 # Now try to locate executable using which 42737 new_path=`$WHICH "$new_path" 2> /dev/null` 42738 # bat and cmd files are not always considered executable in cygwin causing which 42739 # to not find them 42740 if test "x$new_path" = x \ 42741 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42742 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42743 new_path=`$CYGPATH -u "$path"` 42744 fi 42745 if test "x$new_path" = x; then 42746 # Oops. Which didn't find the executable. 42747 # The splitting of arguments from the executable at a space might have been incorrect, 42748 # since paths with space are more likely in Windows. Give it another try with the whole 42749 # argument. 42750 path="$complete" 42751 arguments="EOL" 42752 new_path=`$CYGPATH -u "$path"` 42753 new_path=`$WHICH "$new_path" 2> /dev/null` 42754 # bat and cmd files are not always considered executable in cygwin causing which 42755 # to not find them 42756 if test "x$new_path" = x \ 42757 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42758 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42759 new_path=`$CYGPATH -u "$path"` 42760 fi 42761 if test "x$new_path" = x; then 42762 # It's still not found. Now this is an unrecoverable error. 42763 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 42764 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 42765 has_space=`$ECHO "$complete" | $GREP " "` 42766 if test "x$has_space" != x; then 42767 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42768 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42769 fi 42770 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 42771 fi 42772 fi 42773 42774 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42775 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42776 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42777 # "foo.exe" is OK but "foo" is an error. 42778 # 42779 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42780 # It is also a way to make sure we got the proper file name for the real test later on. 42781 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42782 if test "x$test_shortpath" = x; then 42783 # Short path failed, file does not exist as specified. 42784 # Try adding .exe or .cmd 42785 if test -f "${new_path}.exe"; then 42786 input_to_shortpath="${new_path}.exe" 42787 elif test -f "${new_path}.cmd"; then 42788 input_to_shortpath="${new_path}.cmd" 42789 else 42790 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 42791 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 42792 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42793 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42794 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 42795 fi 42796 else 42797 input_to_shortpath="$new_path" 42798 fi 42799 42800 # Call helper function which possibly converts this using DOS-style short mode. 42801 # If so, the updated path is stored in $new_path. 42802 new_path="$input_to_shortpath" 42803 42804 input_path="$input_to_shortpath" 42805 # Check if we need to convert this using DOS-style short mode. If the path 42806 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42807 # take no chances and rewrite it. 42808 # Note: m4 eats our [], so we need to use [ and ] instead. 42809 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42810 if test "x$has_forbidden_chars" != x; then 42811 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42812 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42813 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42814 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42815 # Going to short mode and back again did indeed matter. Since short mode is 42816 # case insensitive, let's make it lowercase to improve readability. 42817 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42818 # Now convert it back to Unix-style (cygpath) 42819 input_path=`$CYGPATH -u "$shortmode_path"` 42820 new_path="$input_path" 42821 fi 42822 fi 42823 42824 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42825 if test "x$test_cygdrive_prefix" = x; then 42826 # As a simple fix, exclude /usr/bin since it's not a real path. 42827 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42828 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42829 # a path prefixed by /cygdrive for fixpath to work. 42830 new_path="$CYGWIN_ROOT_PATH$input_path" 42831 fi 42832 fi 42833 42834 # remove trailing .exe if any 42835 new_path="${new_path/%.exe/}" 42836 42837 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42838 42839 # First separate the path from the arguments. This will split at the first 42840 # space. 42841 complete="$OBJDUMP" 42842 path="${complete%% *}" 42843 tmp="$complete EOL" 42844 arguments="${tmp#* }" 42845 42846 # Input might be given as Windows format, start by converting to 42847 # unix format. 42848 new_path="$path" 42849 42850 windows_path="$new_path" 42851 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42852 unix_path=`$CYGPATH -u "$windows_path"` 42853 new_path="$unix_path" 42854 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42855 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42856 new_path="$unix_path" 42857 fi 42858 42859 42860 # Now try to locate executable using which 42861 new_path=`$WHICH "$new_path" 2> /dev/null` 42862 42863 if test "x$new_path" = x; then 42864 # Oops. Which didn't find the executable. 42865 # The splitting of arguments from the executable at a space might have been incorrect, 42866 # since paths with space are more likely in Windows. Give it another try with the whole 42867 # argument. 42868 path="$complete" 42869 arguments="EOL" 42870 new_path="$path" 42871 42872 windows_path="$new_path" 42873 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42874 unix_path=`$CYGPATH -u "$windows_path"` 42875 new_path="$unix_path" 42876 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42877 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42878 new_path="$unix_path" 42879 fi 42880 42881 42882 new_path=`$WHICH "$new_path" 2> /dev/null` 42883 # bat and cmd files are not always considered executable in MSYS causing which 42884 # to not find them 42885 if test "x$new_path" = x \ 42886 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42887 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42888 new_path="$path" 42889 42890 windows_path="$new_path" 42891 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42892 unix_path=`$CYGPATH -u "$windows_path"` 42893 new_path="$unix_path" 42894 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42895 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42896 new_path="$unix_path" 42897 fi 42898 42899 fi 42900 42901 if test "x$new_path" = x; then 42902 # It's still not found. Now this is an unrecoverable error. 42903 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 42904 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 42905 has_space=`$ECHO "$complete" | $GREP " "` 42906 if test "x$has_space" != x; then 42907 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42908 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42909 fi 42910 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 42911 fi 42912 fi 42913 42914 # Now new_path has a complete unix path to the binary 42915 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 42916 # Keep paths in /bin as-is, but remove trailing .exe if any 42917 new_path="${new_path/%.exe/}" 42918 # Do not save /bin paths to all_fixpath_prefixes! 42919 else 42920 # Not in mixed or Windows style, start by that. 42921 new_path=`cmd //c echo $new_path` 42922 42923 input_path="$new_path" 42924 # Check if we need to convert this using DOS-style short mode. If the path 42925 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42926 # take no chances and rewrite it. 42927 # Note: m4 eats our [], so we need to use [ and ] instead. 42928 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42929 if test "x$has_forbidden_chars" != x; then 42930 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42931 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42932 fi 42933 42934 # Output is in $new_path 42935 42936 windows_path="$new_path" 42937 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42938 unix_path=`$CYGPATH -u "$windows_path"` 42939 new_path="$unix_path" 42940 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42941 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42942 new_path="$unix_path" 42943 fi 42944 42945 # remove trailing .exe if any 42946 new_path="${new_path/%.exe/}" 42947 42948 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42949 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42950 fi 42951 42952 else 42953 # We're on a unix platform. Hooray! :) 42954 # First separate the path from the arguments. This will split at the first 42955 # space. 42956 complete="$OBJDUMP" 42957 path="${complete%% *}" 42958 tmp="$complete EOL" 42959 arguments="${tmp#* }" 42960 42961 # Cannot rely on the command "which" here since it doesn't always work. 42962 is_absolute_path=`$ECHO "$path" | $GREP ^/` 42963 if test -z "$is_absolute_path"; then 42964 # Path to executable is not absolute. Find it. 42965 IFS_save="$IFS" 42966 IFS=: 42967 for p in $PATH; do 42968 if test -f "$p/$path" && test -x "$p/$path"; then 42969 new_path="$p/$path" 42970 break 42971 fi 42972 done 42973 IFS="$IFS_save" 42974 else 42975 # This is an absolute path, we can use it without further modifications. 42976 new_path="$path" 42977 fi 42978 42979 if test "x$new_path" = x; then 42980 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 42981 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 42982 has_space=`$ECHO "$complete" | $GREP " "` 42983 if test "x$has_space" != x; then 42984 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42985 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42986 fi 42987 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 42988 fi 42989 fi 42990 42991 # Now join together the path and the arguments once again 42992 if test "x$arguments" != xEOL; then 42993 new_complete="$new_path ${arguments% *}" 42994 else 42995 new_complete="$new_path" 42996 fi 42997 42998 if test "x$complete" != "x$new_complete"; then 42999 OBJDUMP="$new_complete" 43000 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 43001 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 43002 fi 43003 fi 43004 43005 fi 43006 43007 43008 # Restore old path. 43009 PATH="$OLD_PATH" 43010 43011 # Restore the flags to the user specified values. 43012 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 43013 CFLAGS="$ORG_CFLAGS" 43014 CXXFLAGS="$ORG_CXXFLAGS" 43015 43016 43017 # Finally do some processing after the detection phase 43018 43019 if test "x$COMPILE_TYPE" = "xcross"; then 43020 # Now we need to find a C/C++ compiler that can build executables for the 43021 # build platform. We can't use the AC_PROG_CC macro, since it can only be 43022 # used once. Also, we need to do this without adding a tools dir to the 43023 # path, otherwise we might pick up cross-compilers which don't use standard 43024 # naming. 43025 43026 OLDPATH="$PATH" 43027 43028 43029 # Check whether --with-build-devkit was given. 43030 if test "${with_build_devkit+set}" = set; then : 43031 withval=$with_build_devkit; 43032 fi 43033 43034 if test "x$with_build_devkit" = "xyes"; then 43035 as_fn_error $? "--with-build-devkit must have a value" "$LINENO" 5 43036 elif test -n "$with_build_devkit"; then 43037 if test ! -d "$with_build_devkit"; then 43038 as_fn_error $? "--with-build-devkit points to non existing dir: $with_build_devkit" "$LINENO" 5 43039 else 43040 43041 # Only process if variable expands to non-empty 43042 43043 if test "x$with_build_devkit" != x; then 43044 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43045 43046 # Input might be given as Windows format, start by converting to 43047 # unix format. 43048 path="$with_build_devkit" 43049 new_path=`$CYGPATH -u "$path"` 43050 43051 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43052 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43053 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43054 # "foo.exe" is OK but "foo" is an error. 43055 # 43056 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43057 # It is also a way to make sure we got the proper file name for the real test later on. 43058 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43059 if test "x$test_shortpath" = x; then 43060 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 43061 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 43062 as_fn_error $? "Cannot locate the the path of with_build_devkit" "$LINENO" 5 43063 fi 43064 43065 # Call helper function which possibly converts this using DOS-style short mode. 43066 # If so, the updated path is stored in $new_path. 43067 43068 input_path="$new_path" 43069 # Check if we need to convert this using DOS-style short mode. If the path 43070 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43071 # take no chances and rewrite it. 43072 # Note: m4 eats our [], so we need to use [ and ] instead. 43073 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43074 if test "x$has_forbidden_chars" != x; then 43075 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43076 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43077 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43078 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43079 # Going to short mode and back again did indeed matter. Since short mode is 43080 # case insensitive, let's make it lowercase to improve readability. 43081 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43082 # Now convert it back to Unix-style (cygpath) 43083 input_path=`$CYGPATH -u "$shortmode_path"` 43084 new_path="$input_path" 43085 fi 43086 fi 43087 43088 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43089 if test "x$test_cygdrive_prefix" = x; then 43090 # As a simple fix, exclude /usr/bin since it's not a real path. 43091 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43092 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43093 # a path prefixed by /cygdrive for fixpath to work. 43094 new_path="$CYGWIN_ROOT_PATH$input_path" 43095 fi 43096 fi 43097 43098 43099 if test "x$path" != "x$new_path"; then 43100 with_build_devkit="$new_path" 43101 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 43102 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 43103 fi 43104 43105 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43106 43107 path="$with_build_devkit" 43108 has_colon=`$ECHO $path | $GREP ^.:` 43109 new_path="$path" 43110 if test "x$has_colon" = x; then 43111 # Not in mixed or Windows style, start by that. 43112 new_path=`cmd //c echo $path` 43113 fi 43114 43115 43116 input_path="$new_path" 43117 # Check if we need to convert this using DOS-style short mode. If the path 43118 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43119 # take no chances and rewrite it. 43120 # Note: m4 eats our [], so we need to use [ and ] instead. 43121 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43122 if test "x$has_forbidden_chars" != x; then 43123 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43124 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43125 fi 43126 43127 43128 windows_path="$new_path" 43129 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43130 unix_path=`$CYGPATH -u "$windows_path"` 43131 new_path="$unix_path" 43132 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43133 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43134 new_path="$unix_path" 43135 fi 43136 43137 if test "x$path" != "x$new_path"; then 43138 with_build_devkit="$new_path" 43139 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 43140 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 43141 fi 43142 43143 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43144 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43145 43146 else 43147 # We're on a unix platform. Hooray! :) 43148 path="$with_build_devkit" 43149 has_space=`$ECHO "$path" | $GREP " "` 43150 if test "x$has_space" != x; then 43151 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 43152 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 43153 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43154 fi 43155 43156 # Use eval to expand a potential ~ 43157 eval path="$path" 43158 if test ! -f "$path" && test ! -d "$path"; then 43159 as_fn_error $? "The path of with_build_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 43160 fi 43161 43162 if test -d "$path"; then 43163 with_build_devkit="`cd "$path"; $THEPWDCMD -L`" 43164 else 43165 dir="`$DIRNAME "$path"`" 43166 base="`$BASENAME "$path"`" 43167 with_build_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 43168 fi 43169 fi 43170 fi 43171 43172 BUILD_DEVKIT_ROOT="$with_build_devkit" 43173 # Check for a meta data info file in the root of the devkit 43174 if test -f "$BUILD_DEVKIT_ROOT/devkit.info"; then 43175 # Process devkit.info so that existing devkit variables are not 43176 # modified by this 43177 $SED -e "s/^DEVKIT_/BUILD_DEVKIT_/g" \ 43178 -e "s/\$DEVKIT_ROOT/\$BUILD_DEVKIT_ROOT/g" \ 43179 -e "s/\$host/\$build/g" \ 43180 $BUILD_DEVKIT_ROOT/devkit.info \ 43181 > $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 43182 . $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 43183 # This potentially sets the following: 43184 # A descriptive name of the devkit 43185 43186 if test "x$BUILD_DEVKIT_NAME" = x; then 43187 eval BUILD_DEVKIT_NAME="\${BUILD_DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 43188 fi 43189 43190 # Corresponds to --with-extra-path 43191 43192 if test "x$BUILD_DEVKIT_EXTRA_PATH" = x; then 43193 eval BUILD_DEVKIT_EXTRA_PATH="\${BUILD_DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 43194 fi 43195 43196 # Corresponds to --with-toolchain-path 43197 43198 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 43199 eval BUILD_DEVKIT_TOOLCHAIN_PATH="\${BUILD_DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 43200 fi 43201 43202 # Corresponds to --with-sysroot 43203 43204 if test "x$BUILD_DEVKIT_SYSROOT" = x; then 43205 eval BUILD_DEVKIT_SYSROOT="\${BUILD_DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 43206 fi 43207 43208 # Skip the Window specific parts 43209 fi 43210 43211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build platform devkit" >&5 43212 $as_echo_n "checking for build platform devkit... " >&6; } 43213 if test "x$BUILD_DEVKIT_NAME" != x; then 43214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&5 43215 $as_echo "$BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&6; } 43216 else 43217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_ROOT" >&5 43218 $as_echo "$BUILD_DEVKIT_ROOT" >&6; } 43219 fi 43220 43221 BUILD_SYSROOT="$BUILD_DEVKIT_SYSROOT" 43222 43223 if test "x$BUILD_SYSROOT" != "x"; then 43224 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 43225 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 43226 # Solaris Studio does not have a concept of sysroot. Instead we must 43227 # make sure the default include and lib dirs are appended to each 43228 # compile and link command line. 43229 BUILD_SYSROOT_CFLAGS="-I$BUILD_SYSROOT/usr/include" 43230 BUILD_SYSROOT_LDFLAGS="-L$BUILD_SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 43231 -L$BUILD_SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 43232 -L$BUILD_SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 43233 fi 43234 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 43235 BUILD_SYSROOT_CFLAGS="--sysroot=$BUILD_SYSROOT" 43236 BUILD_SYSROOT_LDFLAGS="--sysroot=$BUILD_SYSROOT" 43237 elif test "x$TOOLCHAIN_TYPE" = xclang; then 43238 BUILD_SYSROOT_CFLAGS="-isysroot $BUILD_SYSROOT" 43239 BUILD_SYSROOT_LDFLAGS="-isysroot $BUILD_SYSROOT" 43240 fi 43241 # Propagate the sysroot args to hotspot 43242 BUILD_LEGACY_EXTRA_CFLAGS="$BUILD_LEGACY_EXTRA_CFLAGS $BUILD_SYSROOT_CFLAGS" 43243 BUILD_LEGACY_EXTRA_CXXFLAGS="$BUILD_LEGACY_EXTRA_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 43244 BUILD_LEGACY_EXTRA_LDFLAGS="$BUILD_LEGACY_EXTRA_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 43245 # The global CFLAGS and LDFLAGS variables need these for configure to function 43246 BUILD_CFLAGS="$BUILD_CFLAGS $BUILD_SYSROOT_CFLAGS" 43247 BUILD_CPPFLAGS="$BUILD_CPPFLAGS $BUILD_SYSROOT_CFLAGS" 43248 BUILD_CXXFLAGS="$BUILD_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 43249 BUILD_LDFLAGS="$BUILD_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 43250 fi 43251 43252 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 43253 # We also need -iframework<path>/System/Library/Frameworks 43254 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 43255 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 43256 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 43257 # set this here so it doesn't have to be peppered throughout the forest 43258 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 43259 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 43260 fi 43261 43262 43263 43264 43265 43266 # Fallback default of just /bin if DEVKIT_PATH is not defined 43267 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 43268 BUILD_DEVKIT_TOOLCHAIN_PATH="$BUILD_DEVKIT_ROOT/bin" 43269 fi 43270 PATH="$BUILD_DEVKIT_TOOLCHAIN_PATH:$BUILD_DEVKIT_EXTRA_PATH" 43271 fi 43272 fi 43273 43274 # FIXME: we should list the discovered compilers as an exclude pattern! 43275 # If we do that, we can do this detection before POST_DETECTION, and still 43276 # find the build compilers in the tools dir, if needed. 43277 43278 43279 43280 # Publish this variable in the help. 43281 43282 43283 if [ -z "${BUILD_CC+x}" ]; then 43284 # The variable is not set by user, try to locate tool using the code snippet 43285 for ac_prog in cl cc gcc 43286 do 43287 # Extract the first word of "$ac_prog", so it can be a program name with args. 43288 set dummy $ac_prog; ac_word=$2 43289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43290 $as_echo_n "checking for $ac_word... " >&6; } 43291 if ${ac_cv_path_BUILD_CC+:} false; then : 43292 $as_echo_n "(cached) " >&6 43293 else 43294 case $BUILD_CC in 43295 [\\/]* | ?:[\\/]*) 43296 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 43297 ;; 43298 *) 43299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43300 for as_dir in $PATH 43301 do 43302 IFS=$as_save_IFS 43303 test -z "$as_dir" && as_dir=. 43304 for ac_exec_ext in '' $ac_executable_extensions; do 43305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43306 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 43307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43308 break 2 43309 fi 43310 done 43311 done 43312 IFS=$as_save_IFS 43313 43314 ;; 43315 esac 43316 fi 43317 BUILD_CC=$ac_cv_path_BUILD_CC 43318 if test -n "$BUILD_CC"; then 43319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 43320 $as_echo "$BUILD_CC" >&6; } 43321 else 43322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43323 $as_echo "no" >&6; } 43324 fi 43325 43326 43327 test -n "$BUILD_CC" && break 43328 done 43329 43330 else 43331 # The variable is set, but is it from the command line or the environment? 43332 43333 # Try to remove the string !BUILD_CC! from our list. 43334 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 43335 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43336 # If it failed, the variable was not from the command line. Ignore it, 43337 # but warn the user (except for BASH, which is always set by the calling BASH). 43338 if test "xBUILD_CC" != xBASH; then 43339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 43340 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 43341 fi 43342 # Try to locate tool using the code snippet 43343 for ac_prog in cl cc gcc 43344 do 43345 # Extract the first word of "$ac_prog", so it can be a program name with args. 43346 set dummy $ac_prog; ac_word=$2 43347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43348 $as_echo_n "checking for $ac_word... " >&6; } 43349 if ${ac_cv_path_BUILD_CC+:} false; then : 43350 $as_echo_n "(cached) " >&6 43351 else 43352 case $BUILD_CC in 43353 [\\/]* | ?:[\\/]*) 43354 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 43355 ;; 43356 *) 43357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43358 for as_dir in $PATH 43359 do 43360 IFS=$as_save_IFS 43361 test -z "$as_dir" && as_dir=. 43362 for ac_exec_ext in '' $ac_executable_extensions; do 43363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43364 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 43365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43366 break 2 43367 fi 43368 done 43369 done 43370 IFS=$as_save_IFS 43371 43372 ;; 43373 esac 43374 fi 43375 BUILD_CC=$ac_cv_path_BUILD_CC 43376 if test -n "$BUILD_CC"; then 43377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 43378 $as_echo "$BUILD_CC" >&6; } 43379 else 43380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43381 $as_echo "no" >&6; } 43382 fi 43383 43384 43385 test -n "$BUILD_CC" && break 43386 done 43387 43388 else 43389 # If it succeeded, then it was overridden by the user. We will use it 43390 # for the tool. 43391 43392 # First remove it from the list of overridden variables, so we can test 43393 # for unknown variables in the end. 43394 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43395 43396 # Check if we try to supply an empty value 43397 if test "x$BUILD_CC" = x; then 43398 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CC= (no value)" >&5 43399 $as_echo "$as_me: Setting user supplied tool BUILD_CC= (no value)" >&6;} 43400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 43401 $as_echo_n "checking for BUILD_CC... " >&6; } 43402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43403 $as_echo "disabled" >&6; } 43404 else 43405 # Check if the provided tool contains a complete path. 43406 tool_specified="$BUILD_CC" 43407 tool_basename="${tool_specified##*/}" 43408 if test "x$tool_basename" = "x$tool_specified"; then 43409 # A command without a complete path is provided, search $PATH. 43410 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 43411 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 43412 # Extract the first word of "$tool_basename", so it can be a program name with args. 43413 set dummy $tool_basename; ac_word=$2 43414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43415 $as_echo_n "checking for $ac_word... " >&6; } 43416 if ${ac_cv_path_BUILD_CC+:} false; then : 43417 $as_echo_n "(cached) " >&6 43418 else 43419 case $BUILD_CC in 43420 [\\/]* | ?:[\\/]*) 43421 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 43422 ;; 43423 *) 43424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43425 for as_dir in $PATH 43426 do 43427 IFS=$as_save_IFS 43428 test -z "$as_dir" && as_dir=. 43429 for ac_exec_ext in '' $ac_executable_extensions; do 43430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43431 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 43432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43433 break 2 43434 fi 43435 done 43436 done 43437 IFS=$as_save_IFS 43438 43439 ;; 43440 esac 43441 fi 43442 BUILD_CC=$ac_cv_path_BUILD_CC 43443 if test -n "$BUILD_CC"; then 43444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 43445 $as_echo "$BUILD_CC" >&6; } 43446 else 43447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43448 $as_echo "no" >&6; } 43449 fi 43450 43451 43452 if test "x$BUILD_CC" = x; then 43453 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43454 fi 43455 else 43456 # Otherwise we believe it is a complete path. Use it as it is. 43457 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 43458 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 43459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 43460 $as_echo_n "checking for BUILD_CC... " >&6; } 43461 if test ! -x "$tool_specified"; then 43462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43463 $as_echo "not found" >&6; } 43464 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 43465 fi 43466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43467 $as_echo "$tool_specified" >&6; } 43468 fi 43469 fi 43470 fi 43471 43472 fi 43473 43474 43475 43476 if test "x$BUILD_CC" = x; then 43477 as_fn_error $? "Could not find required tool for BUILD_CC" "$LINENO" 5 43478 fi 43479 43480 43481 43482 # Only process if variable expands to non-empty 43483 43484 if test "x$BUILD_CC" != x; then 43485 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43486 43487 # First separate the path from the arguments. This will split at the first 43488 # space. 43489 complete="$BUILD_CC" 43490 path="${complete%% *}" 43491 tmp="$complete EOL" 43492 arguments="${tmp#* }" 43493 43494 # Input might be given as Windows format, start by converting to 43495 # unix format. 43496 new_path=`$CYGPATH -u "$path"` 43497 43498 # Now try to locate executable using which 43499 new_path=`$WHICH "$new_path" 2> /dev/null` 43500 # bat and cmd files are not always considered executable in cygwin causing which 43501 # to not find them 43502 if test "x$new_path" = x \ 43503 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43504 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43505 new_path=`$CYGPATH -u "$path"` 43506 fi 43507 if test "x$new_path" = x; then 43508 # Oops. Which didn't find the executable. 43509 # The splitting of arguments from the executable at a space might have been incorrect, 43510 # since paths with space are more likely in Windows. Give it another try with the whole 43511 # argument. 43512 path="$complete" 43513 arguments="EOL" 43514 new_path=`$CYGPATH -u "$path"` 43515 new_path=`$WHICH "$new_path" 2> /dev/null` 43516 # bat and cmd files are not always considered executable in cygwin causing which 43517 # to not find them 43518 if test "x$new_path" = x \ 43519 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43520 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43521 new_path=`$CYGPATH -u "$path"` 43522 fi 43523 if test "x$new_path" = x; then 43524 # It's still not found. Now this is an unrecoverable error. 43525 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 43526 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 43527 has_space=`$ECHO "$complete" | $GREP " "` 43528 if test "x$has_space" != x; then 43529 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43530 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43531 fi 43532 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 43533 fi 43534 fi 43535 43536 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43537 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43538 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43539 # "foo.exe" is OK but "foo" is an error. 43540 # 43541 # This test is therefore slightly more accurate than "test -f" to check for file presence. 43542 # It is also a way to make sure we got the proper file name for the real test later on. 43543 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43544 if test "x$test_shortpath" = x; then 43545 # Short path failed, file does not exist as specified. 43546 # Try adding .exe or .cmd 43547 if test -f "${new_path}.exe"; then 43548 input_to_shortpath="${new_path}.exe" 43549 elif test -f "${new_path}.cmd"; then 43550 input_to_shortpath="${new_path}.cmd" 43551 else 43552 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 43553 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 43554 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 43555 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 43556 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 43557 fi 43558 else 43559 input_to_shortpath="$new_path" 43560 fi 43561 43562 # Call helper function which possibly converts this using DOS-style short mode. 43563 # If so, the updated path is stored in $new_path. 43564 new_path="$input_to_shortpath" 43565 43566 input_path="$input_to_shortpath" 43567 # Check if we need to convert this using DOS-style short mode. If the path 43568 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43569 # take no chances and rewrite it. 43570 # Note: m4 eats our [], so we need to use [ and ] instead. 43571 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43572 if test "x$has_forbidden_chars" != x; then 43573 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43574 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43575 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43576 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43577 # Going to short mode and back again did indeed matter. Since short mode is 43578 # case insensitive, let's make it lowercase to improve readability. 43579 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43580 # Now convert it back to Unix-style (cygpath) 43581 input_path=`$CYGPATH -u "$shortmode_path"` 43582 new_path="$input_path" 43583 fi 43584 fi 43585 43586 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43587 if test "x$test_cygdrive_prefix" = x; then 43588 # As a simple fix, exclude /usr/bin since it's not a real path. 43589 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 43590 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43591 # a path prefixed by /cygdrive for fixpath to work. 43592 new_path="$CYGWIN_ROOT_PATH$input_path" 43593 fi 43594 fi 43595 43596 # remove trailing .exe if any 43597 new_path="${new_path/%.exe/}" 43598 43599 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43600 43601 # First separate the path from the arguments. This will split at the first 43602 # space. 43603 complete="$BUILD_CC" 43604 path="${complete%% *}" 43605 tmp="$complete EOL" 43606 arguments="${tmp#* }" 43607 43608 # Input might be given as Windows format, start by converting to 43609 # unix format. 43610 new_path="$path" 43611 43612 windows_path="$new_path" 43613 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43614 unix_path=`$CYGPATH -u "$windows_path"` 43615 new_path="$unix_path" 43616 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43617 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43618 new_path="$unix_path" 43619 fi 43620 43621 43622 # Now try to locate executable using which 43623 new_path=`$WHICH "$new_path" 2> /dev/null` 43624 43625 if test "x$new_path" = x; then 43626 # Oops. Which didn't find the executable. 43627 # The splitting of arguments from the executable at a space might have been incorrect, 43628 # since paths with space are more likely in Windows. Give it another try with the whole 43629 # argument. 43630 path="$complete" 43631 arguments="EOL" 43632 new_path="$path" 43633 43634 windows_path="$new_path" 43635 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43636 unix_path=`$CYGPATH -u "$windows_path"` 43637 new_path="$unix_path" 43638 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43639 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43640 new_path="$unix_path" 43641 fi 43642 43643 43644 new_path=`$WHICH "$new_path" 2> /dev/null` 43645 # bat and cmd files are not always considered executable in MSYS causing which 43646 # to not find them 43647 if test "x$new_path" = x \ 43648 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43649 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43650 new_path="$path" 43651 43652 windows_path="$new_path" 43653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43654 unix_path=`$CYGPATH -u "$windows_path"` 43655 new_path="$unix_path" 43656 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43657 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43658 new_path="$unix_path" 43659 fi 43660 43661 fi 43662 43663 if test "x$new_path" = x; then 43664 # It's still not found. Now this is an unrecoverable error. 43665 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 43666 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 43667 has_space=`$ECHO "$complete" | $GREP " "` 43668 if test "x$has_space" != x; then 43669 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43670 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43671 fi 43672 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 43673 fi 43674 fi 43675 43676 # Now new_path has a complete unix path to the binary 43677 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 43678 # Keep paths in /bin as-is, but remove trailing .exe if any 43679 new_path="${new_path/%.exe/}" 43680 # Do not save /bin paths to all_fixpath_prefixes! 43681 else 43682 # Not in mixed or Windows style, start by that. 43683 new_path=`cmd //c echo $new_path` 43684 43685 input_path="$new_path" 43686 # Check if we need to convert this using DOS-style short mode. If the path 43687 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43688 # take no chances and rewrite it. 43689 # Note: m4 eats our [], so we need to use [ and ] instead. 43690 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43691 if test "x$has_forbidden_chars" != x; then 43692 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43693 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43694 fi 43695 43696 # Output is in $new_path 43697 43698 windows_path="$new_path" 43699 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43700 unix_path=`$CYGPATH -u "$windows_path"` 43701 new_path="$unix_path" 43702 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43703 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43704 new_path="$unix_path" 43705 fi 43706 43707 # remove trailing .exe if any 43708 new_path="${new_path/%.exe/}" 43709 43710 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43711 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43712 fi 43713 43714 else 43715 # We're on a unix platform. Hooray! :) 43716 # First separate the path from the arguments. This will split at the first 43717 # space. 43718 complete="$BUILD_CC" 43719 path="${complete%% *}" 43720 tmp="$complete EOL" 43721 arguments="${tmp#* }" 43722 43723 # Cannot rely on the command "which" here since it doesn't always work. 43724 is_absolute_path=`$ECHO "$path" | $GREP ^/` 43725 if test -z "$is_absolute_path"; then 43726 # Path to executable is not absolute. Find it. 43727 IFS_save="$IFS" 43728 IFS=: 43729 for p in $PATH; do 43730 if test -f "$p/$path" && test -x "$p/$path"; then 43731 new_path="$p/$path" 43732 break 43733 fi 43734 done 43735 IFS="$IFS_save" 43736 else 43737 # This is an absolute path, we can use it without further modifications. 43738 new_path="$path" 43739 fi 43740 43741 if test "x$new_path" = x; then 43742 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 43743 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 43744 has_space=`$ECHO "$complete" | $GREP " "` 43745 if test "x$has_space" != x; then 43746 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 43747 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 43748 fi 43749 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 43750 fi 43751 fi 43752 43753 # Now join together the path and the arguments once again 43754 if test "x$arguments" != xEOL; then 43755 new_complete="$new_path ${arguments% *}" 43756 else 43757 new_complete="$new_path" 43758 fi 43759 43760 if test "x$complete" != "x$new_complete"; then 43761 BUILD_CC="$new_complete" 43762 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 43763 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 43764 fi 43765 fi 43766 43767 43768 43769 43770 # Publish this variable in the help. 43771 43772 43773 if [ -z "${BUILD_CXX+x}" ]; then 43774 # The variable is not set by user, try to locate tool using the code snippet 43775 for ac_prog in cl CC g++ 43776 do 43777 # Extract the first word of "$ac_prog", so it can be a program name with args. 43778 set dummy $ac_prog; ac_word=$2 43779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43780 $as_echo_n "checking for $ac_word... " >&6; } 43781 if ${ac_cv_path_BUILD_CXX+:} false; then : 43782 $as_echo_n "(cached) " >&6 43783 else 43784 case $BUILD_CXX in 43785 [\\/]* | ?:[\\/]*) 43786 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 43787 ;; 43788 *) 43789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43790 for as_dir in $PATH 43791 do 43792 IFS=$as_save_IFS 43793 test -z "$as_dir" && as_dir=. 43794 for ac_exec_ext in '' $ac_executable_extensions; do 43795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43796 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 43797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43798 break 2 43799 fi 43800 done 43801 done 43802 IFS=$as_save_IFS 43803 43804 ;; 43805 esac 43806 fi 43807 BUILD_CXX=$ac_cv_path_BUILD_CXX 43808 if test -n "$BUILD_CXX"; then 43809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 43810 $as_echo "$BUILD_CXX" >&6; } 43811 else 43812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43813 $as_echo "no" >&6; } 43814 fi 43815 43816 43817 test -n "$BUILD_CXX" && break 43818 done 43819 43820 else 43821 # The variable is set, but is it from the command line or the environment? 43822 43823 # Try to remove the string !BUILD_CXX! from our list. 43824 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 43825 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43826 # If it failed, the variable was not from the command line. Ignore it, 43827 # but warn the user (except for BASH, which is always set by the calling BASH). 43828 if test "xBUILD_CXX" != xBASH; then 43829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 43830 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 43831 fi 43832 # Try to locate tool using the code snippet 43833 for ac_prog in cl CC g++ 43834 do 43835 # Extract the first word of "$ac_prog", so it can be a program name with args. 43836 set dummy $ac_prog; ac_word=$2 43837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43838 $as_echo_n "checking for $ac_word... " >&6; } 43839 if ${ac_cv_path_BUILD_CXX+:} false; then : 43840 $as_echo_n "(cached) " >&6 43841 else 43842 case $BUILD_CXX in 43843 [\\/]* | ?:[\\/]*) 43844 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 43845 ;; 43846 *) 43847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43848 for as_dir in $PATH 43849 do 43850 IFS=$as_save_IFS 43851 test -z "$as_dir" && as_dir=. 43852 for ac_exec_ext in '' $ac_executable_extensions; do 43853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43854 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 43855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43856 break 2 43857 fi 43858 done 43859 done 43860 IFS=$as_save_IFS 43861 43862 ;; 43863 esac 43864 fi 43865 BUILD_CXX=$ac_cv_path_BUILD_CXX 43866 if test -n "$BUILD_CXX"; then 43867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 43868 $as_echo "$BUILD_CXX" >&6; } 43869 else 43870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43871 $as_echo "no" >&6; } 43872 fi 43873 43874 43875 test -n "$BUILD_CXX" && break 43876 done 43877 43878 else 43879 # If it succeeded, then it was overridden by the user. We will use it 43880 # for the tool. 43881 43882 # First remove it from the list of overridden variables, so we can test 43883 # for unknown variables in the end. 43884 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43885 43886 # Check if we try to supply an empty value 43887 if test "x$BUILD_CXX" = x; then 43888 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CXX= (no value)" >&5 43889 $as_echo "$as_me: Setting user supplied tool BUILD_CXX= (no value)" >&6;} 43890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 43891 $as_echo_n "checking for BUILD_CXX... " >&6; } 43892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43893 $as_echo "disabled" >&6; } 43894 else 43895 # Check if the provided tool contains a complete path. 43896 tool_specified="$BUILD_CXX" 43897 tool_basename="${tool_specified##*/}" 43898 if test "x$tool_basename" = "x$tool_specified"; then 43899 # A command without a complete path is provided, search $PATH. 43900 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 43901 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 43902 # Extract the first word of "$tool_basename", so it can be a program name with args. 43903 set dummy $tool_basename; ac_word=$2 43904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43905 $as_echo_n "checking for $ac_word... " >&6; } 43906 if ${ac_cv_path_BUILD_CXX+:} false; then : 43907 $as_echo_n "(cached) " >&6 43908 else 43909 case $BUILD_CXX in 43910 [\\/]* | ?:[\\/]*) 43911 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 43912 ;; 43913 *) 43914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43915 for as_dir in $PATH 43916 do 43917 IFS=$as_save_IFS 43918 test -z "$as_dir" && as_dir=. 43919 for ac_exec_ext in '' $ac_executable_extensions; do 43920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43921 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 43922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43923 break 2 43924 fi 43925 done 43926 done 43927 IFS=$as_save_IFS 43928 43929 ;; 43930 esac 43931 fi 43932 BUILD_CXX=$ac_cv_path_BUILD_CXX 43933 if test -n "$BUILD_CXX"; then 43934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 43935 $as_echo "$BUILD_CXX" >&6; } 43936 else 43937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43938 $as_echo "no" >&6; } 43939 fi 43940 43941 43942 if test "x$BUILD_CXX" = x; then 43943 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43944 fi 43945 else 43946 # Otherwise we believe it is a complete path. Use it as it is. 43947 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 43948 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 43949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 43950 $as_echo_n "checking for BUILD_CXX... " >&6; } 43951 if test ! -x "$tool_specified"; then 43952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43953 $as_echo "not found" >&6; } 43954 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 43955 fi 43956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43957 $as_echo "$tool_specified" >&6; } 43958 fi 43959 fi 43960 fi 43961 43962 fi 43963 43964 43965 43966 if test "x$BUILD_CXX" = x; then 43967 as_fn_error $? "Could not find required tool for BUILD_CXX" "$LINENO" 5 43968 fi 43969 43970 43971 43972 # Only process if variable expands to non-empty 43973 43974 if test "x$BUILD_CXX" != x; then 43975 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43976 43977 # First separate the path from the arguments. This will split at the first 43978 # space. 43979 complete="$BUILD_CXX" 43980 path="${complete%% *}" 43981 tmp="$complete EOL" 43982 arguments="${tmp#* }" 43983 43984 # Input might be given as Windows format, start by converting to 43985 # unix format. 43986 new_path=`$CYGPATH -u "$path"` 43987 43988 # Now try to locate executable using which 43989 new_path=`$WHICH "$new_path" 2> /dev/null` 43990 # bat and cmd files are not always considered executable in cygwin causing which 43991 # to not find them 43992 if test "x$new_path" = x \ 43993 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43994 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43995 new_path=`$CYGPATH -u "$path"` 43996 fi 43997 if test "x$new_path" = x; then 43998 # Oops. Which didn't find the executable. 43999 # The splitting of arguments from the executable at a space might have been incorrect, 44000 # since paths with space are more likely in Windows. Give it another try with the whole 44001 # argument. 44002 path="$complete" 44003 arguments="EOL" 44004 new_path=`$CYGPATH -u "$path"` 44005 new_path=`$WHICH "$new_path" 2> /dev/null` 44006 # bat and cmd files are not always considered executable in cygwin causing which 44007 # to not find them 44008 if test "x$new_path" = x \ 44009 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44010 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44011 new_path=`$CYGPATH -u "$path"` 44012 fi 44013 if test "x$new_path" = x; then 44014 # It's still not found. Now this is an unrecoverable error. 44015 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 44016 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 44017 has_space=`$ECHO "$complete" | $GREP " "` 44018 if test "x$has_space" != x; then 44019 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44020 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44021 fi 44022 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 44023 fi 44024 fi 44025 44026 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44027 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44028 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44029 # "foo.exe" is OK but "foo" is an error. 44030 # 44031 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44032 # It is also a way to make sure we got the proper file name for the real test later on. 44033 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44034 if test "x$test_shortpath" = x; then 44035 # Short path failed, file does not exist as specified. 44036 # Try adding .exe or .cmd 44037 if test -f "${new_path}.exe"; then 44038 input_to_shortpath="${new_path}.exe" 44039 elif test -f "${new_path}.cmd"; then 44040 input_to_shortpath="${new_path}.cmd" 44041 else 44042 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 44043 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 44044 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44045 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44046 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 44047 fi 44048 else 44049 input_to_shortpath="$new_path" 44050 fi 44051 44052 # Call helper function which possibly converts this using DOS-style short mode. 44053 # If so, the updated path is stored in $new_path. 44054 new_path="$input_to_shortpath" 44055 44056 input_path="$input_to_shortpath" 44057 # Check if we need to convert this using DOS-style short mode. If the path 44058 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44059 # take no chances and rewrite it. 44060 # Note: m4 eats our [], so we need to use [ and ] instead. 44061 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44062 if test "x$has_forbidden_chars" != x; then 44063 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44064 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44065 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44066 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44067 # Going to short mode and back again did indeed matter. Since short mode is 44068 # case insensitive, let's make it lowercase to improve readability. 44069 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44070 # Now convert it back to Unix-style (cygpath) 44071 input_path=`$CYGPATH -u "$shortmode_path"` 44072 new_path="$input_path" 44073 fi 44074 fi 44075 44076 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44077 if test "x$test_cygdrive_prefix" = x; then 44078 # As a simple fix, exclude /usr/bin since it's not a real path. 44079 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44080 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44081 # a path prefixed by /cygdrive for fixpath to work. 44082 new_path="$CYGWIN_ROOT_PATH$input_path" 44083 fi 44084 fi 44085 44086 # remove trailing .exe if any 44087 new_path="${new_path/%.exe/}" 44088 44089 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44090 44091 # First separate the path from the arguments. This will split at the first 44092 # space. 44093 complete="$BUILD_CXX" 44094 path="${complete%% *}" 44095 tmp="$complete EOL" 44096 arguments="${tmp#* }" 44097 44098 # Input might be given as Windows format, start by converting to 44099 # unix format. 44100 new_path="$path" 44101 44102 windows_path="$new_path" 44103 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44104 unix_path=`$CYGPATH -u "$windows_path"` 44105 new_path="$unix_path" 44106 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44107 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44108 new_path="$unix_path" 44109 fi 44110 44111 44112 # Now try to locate executable using which 44113 new_path=`$WHICH "$new_path" 2> /dev/null` 44114 44115 if test "x$new_path" = x; then 44116 # Oops. Which didn't find the executable. 44117 # The splitting of arguments from the executable at a space might have been incorrect, 44118 # since paths with space are more likely in Windows. Give it another try with the whole 44119 # argument. 44120 path="$complete" 44121 arguments="EOL" 44122 new_path="$path" 44123 44124 windows_path="$new_path" 44125 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44126 unix_path=`$CYGPATH -u "$windows_path"` 44127 new_path="$unix_path" 44128 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44129 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44130 new_path="$unix_path" 44131 fi 44132 44133 44134 new_path=`$WHICH "$new_path" 2> /dev/null` 44135 # bat and cmd files are not always considered executable in MSYS causing which 44136 # to not find them 44137 if test "x$new_path" = x \ 44138 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44139 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44140 new_path="$path" 44141 44142 windows_path="$new_path" 44143 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44144 unix_path=`$CYGPATH -u "$windows_path"` 44145 new_path="$unix_path" 44146 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44147 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44148 new_path="$unix_path" 44149 fi 44150 44151 fi 44152 44153 if test "x$new_path" = x; then 44154 # It's still not found. Now this is an unrecoverable error. 44155 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 44156 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 44157 has_space=`$ECHO "$complete" | $GREP " "` 44158 if test "x$has_space" != x; then 44159 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44160 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44161 fi 44162 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 44163 fi 44164 fi 44165 44166 # Now new_path has a complete unix path to the binary 44167 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44168 # Keep paths in /bin as-is, but remove trailing .exe if any 44169 new_path="${new_path/%.exe/}" 44170 # Do not save /bin paths to all_fixpath_prefixes! 44171 else 44172 # Not in mixed or Windows style, start by that. 44173 new_path=`cmd //c echo $new_path` 44174 44175 input_path="$new_path" 44176 # Check if we need to convert this using DOS-style short mode. If the path 44177 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44178 # take no chances and rewrite it. 44179 # Note: m4 eats our [], so we need to use [ and ] instead. 44180 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44181 if test "x$has_forbidden_chars" != x; then 44182 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44183 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44184 fi 44185 44186 # Output is in $new_path 44187 44188 windows_path="$new_path" 44189 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44190 unix_path=`$CYGPATH -u "$windows_path"` 44191 new_path="$unix_path" 44192 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44193 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44194 new_path="$unix_path" 44195 fi 44196 44197 # remove trailing .exe if any 44198 new_path="${new_path/%.exe/}" 44199 44200 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44201 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44202 fi 44203 44204 else 44205 # We're on a unix platform. Hooray! :) 44206 # First separate the path from the arguments. This will split at the first 44207 # space. 44208 complete="$BUILD_CXX" 44209 path="${complete%% *}" 44210 tmp="$complete EOL" 44211 arguments="${tmp#* }" 44212 44213 # Cannot rely on the command "which" here since it doesn't always work. 44214 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44215 if test -z "$is_absolute_path"; then 44216 # Path to executable is not absolute. Find it. 44217 IFS_save="$IFS" 44218 IFS=: 44219 for p in $PATH; do 44220 if test -f "$p/$path" && test -x "$p/$path"; then 44221 new_path="$p/$path" 44222 break 44223 fi 44224 done 44225 IFS="$IFS_save" 44226 else 44227 # This is an absolute path, we can use it without further modifications. 44228 new_path="$path" 44229 fi 44230 44231 if test "x$new_path" = x; then 44232 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 44233 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 44234 has_space=`$ECHO "$complete" | $GREP " "` 44235 if test "x$has_space" != x; then 44236 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44237 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44238 fi 44239 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 44240 fi 44241 fi 44242 44243 # Now join together the path and the arguments once again 44244 if test "x$arguments" != xEOL; then 44245 new_complete="$new_path ${arguments% *}" 44246 else 44247 new_complete="$new_path" 44248 fi 44249 44250 if test "x$complete" != "x$new_complete"; then 44251 BUILD_CXX="$new_complete" 44252 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 44253 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 44254 fi 44255 fi 44256 44257 44258 44259 # Publish this variable in the help. 44260 44261 44262 if [ -z "${BUILD_NM+x}" ]; then 44263 # The variable is not set by user, try to locate tool using the code snippet 44264 for ac_prog in nm gcc-nm 44265 do 44266 # Extract the first word of "$ac_prog", so it can be a program name with args. 44267 set dummy $ac_prog; ac_word=$2 44268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44269 $as_echo_n "checking for $ac_word... " >&6; } 44270 if ${ac_cv_path_BUILD_NM+:} false; then : 44271 $as_echo_n "(cached) " >&6 44272 else 44273 case $BUILD_NM in 44274 [\\/]* | ?:[\\/]*) 44275 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 44276 ;; 44277 *) 44278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44279 for as_dir in $PATH 44280 do 44281 IFS=$as_save_IFS 44282 test -z "$as_dir" && as_dir=. 44283 for ac_exec_ext in '' $ac_executable_extensions; do 44284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44285 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 44286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44287 break 2 44288 fi 44289 done 44290 done 44291 IFS=$as_save_IFS 44292 44293 ;; 44294 esac 44295 fi 44296 BUILD_NM=$ac_cv_path_BUILD_NM 44297 if test -n "$BUILD_NM"; then 44298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 44299 $as_echo "$BUILD_NM" >&6; } 44300 else 44301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44302 $as_echo "no" >&6; } 44303 fi 44304 44305 44306 test -n "$BUILD_NM" && break 44307 done 44308 44309 else 44310 # The variable is set, but is it from the command line or the environment? 44311 44312 # Try to remove the string !BUILD_NM! from our list. 44313 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_NM!/} 44314 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 44315 # If it failed, the variable was not from the command line. Ignore it, 44316 # but warn the user (except for BASH, which is always set by the calling BASH). 44317 if test "xBUILD_NM" != xBASH; then 44318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&5 44319 $as_echo "$as_me: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&2;} 44320 fi 44321 # Try to locate tool using the code snippet 44322 for ac_prog in nm gcc-nm 44323 do 44324 # Extract the first word of "$ac_prog", so it can be a program name with args. 44325 set dummy $ac_prog; ac_word=$2 44326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44327 $as_echo_n "checking for $ac_word... " >&6; } 44328 if ${ac_cv_path_BUILD_NM+:} false; then : 44329 $as_echo_n "(cached) " >&6 44330 else 44331 case $BUILD_NM in 44332 [\\/]* | ?:[\\/]*) 44333 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 44334 ;; 44335 *) 44336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44337 for as_dir in $PATH 44338 do 44339 IFS=$as_save_IFS 44340 test -z "$as_dir" && as_dir=. 44341 for ac_exec_ext in '' $ac_executable_extensions; do 44342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44343 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 44344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44345 break 2 44346 fi 44347 done 44348 done 44349 IFS=$as_save_IFS 44350 44351 ;; 44352 esac 44353 fi 44354 BUILD_NM=$ac_cv_path_BUILD_NM 44355 if test -n "$BUILD_NM"; then 44356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 44357 $as_echo "$BUILD_NM" >&6; } 44358 else 44359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44360 $as_echo "no" >&6; } 44361 fi 44362 44363 44364 test -n "$BUILD_NM" && break 44365 done 44366 44367 else 44368 # If it succeeded, then it was overridden by the user. We will use it 44369 # for the tool. 44370 44371 # First remove it from the list of overridden variables, so we can test 44372 # for unknown variables in the end. 44373 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44374 44375 # Check if we try to supply an empty value 44376 if test "x$BUILD_NM" = x; then 44377 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_NM= (no value)" >&5 44378 $as_echo "$as_me: Setting user supplied tool BUILD_NM= (no value)" >&6;} 44379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 44380 $as_echo_n "checking for BUILD_NM... " >&6; } 44381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44382 $as_echo "disabled" >&6; } 44383 else 44384 # Check if the provided tool contains a complete path. 44385 tool_specified="$BUILD_NM" 44386 tool_basename="${tool_specified##*/}" 44387 if test "x$tool_basename" = "x$tool_specified"; then 44388 # A command without a complete path is provided, search $PATH. 44389 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_NM=$tool_basename" >&5 44390 $as_echo "$as_me: Will search for user supplied tool BUILD_NM=$tool_basename" >&6;} 44391 # Extract the first word of "$tool_basename", so it can be a program name with args. 44392 set dummy $tool_basename; ac_word=$2 44393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44394 $as_echo_n "checking for $ac_word... " >&6; } 44395 if ${ac_cv_path_BUILD_NM+:} false; then : 44396 $as_echo_n "(cached) " >&6 44397 else 44398 case $BUILD_NM in 44399 [\\/]* | ?:[\\/]*) 44400 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 44401 ;; 44402 *) 44403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44404 for as_dir in $PATH 44405 do 44406 IFS=$as_save_IFS 44407 test -z "$as_dir" && as_dir=. 44408 for ac_exec_ext in '' $ac_executable_extensions; do 44409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44410 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 44411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44412 break 2 44413 fi 44414 done 44415 done 44416 IFS=$as_save_IFS 44417 44418 ;; 44419 esac 44420 fi 44421 BUILD_NM=$ac_cv_path_BUILD_NM 44422 if test -n "$BUILD_NM"; then 44423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 44424 $as_echo "$BUILD_NM" >&6; } 44425 else 44426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44427 $as_echo "no" >&6; } 44428 fi 44429 44430 44431 if test "x$BUILD_NM" = x; then 44432 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44433 fi 44434 else 44435 # Otherwise we believe it is a complete path. Use it as it is. 44436 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_NM=$tool_specified" >&5 44437 $as_echo "$as_me: Will use user supplied tool BUILD_NM=$tool_specified" >&6;} 44438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 44439 $as_echo_n "checking for BUILD_NM... " >&6; } 44440 if test ! -x "$tool_specified"; then 44441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44442 $as_echo "not found" >&6; } 44443 as_fn_error $? "User supplied tool BUILD_NM=$tool_specified does not exist or is not executable" "$LINENO" 5 44444 fi 44445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44446 $as_echo "$tool_specified" >&6; } 44447 fi 44448 fi 44449 fi 44450 44451 fi 44452 44453 44454 44455 # Only process if variable expands to non-empty 44456 44457 if test "x$BUILD_NM" != x; then 44458 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44459 44460 # First separate the path from the arguments. This will split at the first 44461 # space. 44462 complete="$BUILD_NM" 44463 path="${complete%% *}" 44464 tmp="$complete EOL" 44465 arguments="${tmp#* }" 44466 44467 # Input might be given as Windows format, start by converting to 44468 # unix format. 44469 new_path=`$CYGPATH -u "$path"` 44470 44471 # Now try to locate executable using which 44472 new_path=`$WHICH "$new_path" 2> /dev/null` 44473 # bat and cmd files are not always considered executable in cygwin causing which 44474 # to not find them 44475 if test "x$new_path" = x \ 44476 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44477 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44478 new_path=`$CYGPATH -u "$path"` 44479 fi 44480 if test "x$new_path" = x; then 44481 # Oops. Which didn't find the executable. 44482 # The splitting of arguments from the executable at a space might have been incorrect, 44483 # since paths with space are more likely in Windows. Give it another try with the whole 44484 # argument. 44485 path="$complete" 44486 arguments="EOL" 44487 new_path=`$CYGPATH -u "$path"` 44488 new_path=`$WHICH "$new_path" 2> /dev/null` 44489 # bat and cmd files are not always considered executable in cygwin causing which 44490 # to not find them 44491 if test "x$new_path" = x \ 44492 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44493 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44494 new_path=`$CYGPATH -u "$path"` 44495 fi 44496 if test "x$new_path" = x; then 44497 # It's still not found. Now this is an unrecoverable error. 44498 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 44499 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 44500 has_space=`$ECHO "$complete" | $GREP " "` 44501 if test "x$has_space" != x; then 44502 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44503 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44504 fi 44505 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 44506 fi 44507 fi 44508 44509 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44510 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44511 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44512 # "foo.exe" is OK but "foo" is an error. 44513 # 44514 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44515 # It is also a way to make sure we got the proper file name for the real test later on. 44516 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44517 if test "x$test_shortpath" = x; then 44518 # Short path failed, file does not exist as specified. 44519 # Try adding .exe or .cmd 44520 if test -f "${new_path}.exe"; then 44521 input_to_shortpath="${new_path}.exe" 44522 elif test -f "${new_path}.cmd"; then 44523 input_to_shortpath="${new_path}.cmd" 44524 else 44525 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&5 44526 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&6;} 44527 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44528 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44529 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 44530 fi 44531 else 44532 input_to_shortpath="$new_path" 44533 fi 44534 44535 # Call helper function which possibly converts this using DOS-style short mode. 44536 # If so, the updated path is stored in $new_path. 44537 new_path="$input_to_shortpath" 44538 44539 input_path="$input_to_shortpath" 44540 # Check if we need to convert this using DOS-style short mode. If the path 44541 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44542 # take no chances and rewrite it. 44543 # Note: m4 eats our [], so we need to use [ and ] instead. 44544 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44545 if test "x$has_forbidden_chars" != x; then 44546 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44547 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44548 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44549 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44550 # Going to short mode and back again did indeed matter. Since short mode is 44551 # case insensitive, let's make it lowercase to improve readability. 44552 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44553 # Now convert it back to Unix-style (cygpath) 44554 input_path=`$CYGPATH -u "$shortmode_path"` 44555 new_path="$input_path" 44556 fi 44557 fi 44558 44559 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44560 if test "x$test_cygdrive_prefix" = x; then 44561 # As a simple fix, exclude /usr/bin since it's not a real path. 44562 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44563 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44564 # a path prefixed by /cygdrive for fixpath to work. 44565 new_path="$CYGWIN_ROOT_PATH$input_path" 44566 fi 44567 fi 44568 44569 # remove trailing .exe if any 44570 new_path="${new_path/%.exe/}" 44571 44572 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44573 44574 # First separate the path from the arguments. This will split at the first 44575 # space. 44576 complete="$BUILD_NM" 44577 path="${complete%% *}" 44578 tmp="$complete EOL" 44579 arguments="${tmp#* }" 44580 44581 # Input might be given as Windows format, start by converting to 44582 # unix format. 44583 new_path="$path" 44584 44585 windows_path="$new_path" 44586 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44587 unix_path=`$CYGPATH -u "$windows_path"` 44588 new_path="$unix_path" 44589 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44590 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44591 new_path="$unix_path" 44592 fi 44593 44594 44595 # Now try to locate executable using which 44596 new_path=`$WHICH "$new_path" 2> /dev/null` 44597 44598 if test "x$new_path" = x; then 44599 # Oops. Which didn't find the executable. 44600 # The splitting of arguments from the executable at a space might have been incorrect, 44601 # since paths with space are more likely in Windows. Give it another try with the whole 44602 # argument. 44603 path="$complete" 44604 arguments="EOL" 44605 new_path="$path" 44606 44607 windows_path="$new_path" 44608 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44609 unix_path=`$CYGPATH -u "$windows_path"` 44610 new_path="$unix_path" 44611 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44612 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44613 new_path="$unix_path" 44614 fi 44615 44616 44617 new_path=`$WHICH "$new_path" 2> /dev/null` 44618 # bat and cmd files are not always considered executable in MSYS causing which 44619 # to not find them 44620 if test "x$new_path" = x \ 44621 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44622 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44623 new_path="$path" 44624 44625 windows_path="$new_path" 44626 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44627 unix_path=`$CYGPATH -u "$windows_path"` 44628 new_path="$unix_path" 44629 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44630 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44631 new_path="$unix_path" 44632 fi 44633 44634 fi 44635 44636 if test "x$new_path" = x; then 44637 # It's still not found. Now this is an unrecoverable error. 44638 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 44639 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 44640 has_space=`$ECHO "$complete" | $GREP " "` 44641 if test "x$has_space" != x; then 44642 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44643 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44644 fi 44645 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 44646 fi 44647 fi 44648 44649 # Now new_path has a complete unix path to the binary 44650 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44651 # Keep paths in /bin as-is, but remove trailing .exe if any 44652 new_path="${new_path/%.exe/}" 44653 # Do not save /bin paths to all_fixpath_prefixes! 44654 else 44655 # Not in mixed or Windows style, start by that. 44656 new_path=`cmd //c echo $new_path` 44657 44658 input_path="$new_path" 44659 # Check if we need to convert this using DOS-style short mode. If the path 44660 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44661 # take no chances and rewrite it. 44662 # Note: m4 eats our [], so we need to use [ and ] instead. 44663 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44664 if test "x$has_forbidden_chars" != x; then 44665 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44666 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44667 fi 44668 44669 # Output is in $new_path 44670 44671 windows_path="$new_path" 44672 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44673 unix_path=`$CYGPATH -u "$windows_path"` 44674 new_path="$unix_path" 44675 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44676 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44677 new_path="$unix_path" 44678 fi 44679 44680 # remove trailing .exe if any 44681 new_path="${new_path/%.exe/}" 44682 44683 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44684 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44685 fi 44686 44687 else 44688 # We're on a unix platform. Hooray! :) 44689 # First separate the path from the arguments. This will split at the first 44690 # space. 44691 complete="$BUILD_NM" 44692 path="${complete%% *}" 44693 tmp="$complete EOL" 44694 arguments="${tmp#* }" 44695 44696 # Cannot rely on the command "which" here since it doesn't always work. 44697 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44698 if test -z "$is_absolute_path"; then 44699 # Path to executable is not absolute. Find it. 44700 IFS_save="$IFS" 44701 IFS=: 44702 for p in $PATH; do 44703 if test -f "$p/$path" && test -x "$p/$path"; then 44704 new_path="$p/$path" 44705 break 44706 fi 44707 done 44708 IFS="$IFS_save" 44709 else 44710 # This is an absolute path, we can use it without further modifications. 44711 new_path="$path" 44712 fi 44713 44714 if test "x$new_path" = x; then 44715 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 44716 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 44717 has_space=`$ECHO "$complete" | $GREP " "` 44718 if test "x$has_space" != x; then 44719 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44720 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44721 fi 44722 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 44723 fi 44724 fi 44725 44726 # Now join together the path and the arguments once again 44727 if test "x$arguments" != xEOL; then 44728 new_complete="$new_path ${arguments% *}" 44729 else 44730 new_complete="$new_path" 44731 fi 44732 44733 if test "x$complete" != "x$new_complete"; then 44734 BUILD_NM="$new_complete" 44735 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_NM to \"$new_complete\"" >&5 44736 $as_echo "$as_me: Rewriting BUILD_NM to \"$new_complete\"" >&6;} 44737 fi 44738 fi 44739 44740 44741 44742 # Publish this variable in the help. 44743 44744 44745 if [ -z "${BUILD_AR+x}" ]; then 44746 # The variable is not set by user, try to locate tool using the code snippet 44747 for ac_prog in ar gcc-ar 44748 do 44749 # Extract the first word of "$ac_prog", so it can be a program name with args. 44750 set dummy $ac_prog; ac_word=$2 44751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44752 $as_echo_n "checking for $ac_word... " >&6; } 44753 if ${ac_cv_path_BUILD_AR+:} false; then : 44754 $as_echo_n "(cached) " >&6 44755 else 44756 case $BUILD_AR in 44757 [\\/]* | ?:[\\/]*) 44758 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 44759 ;; 44760 *) 44761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44762 for as_dir in $PATH 44763 do 44764 IFS=$as_save_IFS 44765 test -z "$as_dir" && as_dir=. 44766 for ac_exec_ext in '' $ac_executable_extensions; do 44767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44768 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 44769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44770 break 2 44771 fi 44772 done 44773 done 44774 IFS=$as_save_IFS 44775 44776 ;; 44777 esac 44778 fi 44779 BUILD_AR=$ac_cv_path_BUILD_AR 44780 if test -n "$BUILD_AR"; then 44781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 44782 $as_echo "$BUILD_AR" >&6; } 44783 else 44784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44785 $as_echo "no" >&6; } 44786 fi 44787 44788 44789 test -n "$BUILD_AR" && break 44790 done 44791 44792 else 44793 # The variable is set, but is it from the command line or the environment? 44794 44795 # Try to remove the string !BUILD_AR! from our list. 44796 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_AR!/} 44797 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 44798 # If it failed, the variable was not from the command line. Ignore it, 44799 # but warn the user (except for BASH, which is always set by the calling BASH). 44800 if test "xBUILD_AR" != xBASH; then 44801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&5 44802 $as_echo "$as_me: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&2;} 44803 fi 44804 # Try to locate tool using the code snippet 44805 for ac_prog in ar gcc-ar 44806 do 44807 # Extract the first word of "$ac_prog", so it can be a program name with args. 44808 set dummy $ac_prog; ac_word=$2 44809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44810 $as_echo_n "checking for $ac_word... " >&6; } 44811 if ${ac_cv_path_BUILD_AR+:} false; then : 44812 $as_echo_n "(cached) " >&6 44813 else 44814 case $BUILD_AR in 44815 [\\/]* | ?:[\\/]*) 44816 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 44817 ;; 44818 *) 44819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44820 for as_dir in $PATH 44821 do 44822 IFS=$as_save_IFS 44823 test -z "$as_dir" && as_dir=. 44824 for ac_exec_ext in '' $ac_executable_extensions; do 44825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44826 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 44827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44828 break 2 44829 fi 44830 done 44831 done 44832 IFS=$as_save_IFS 44833 44834 ;; 44835 esac 44836 fi 44837 BUILD_AR=$ac_cv_path_BUILD_AR 44838 if test -n "$BUILD_AR"; then 44839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 44840 $as_echo "$BUILD_AR" >&6; } 44841 else 44842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44843 $as_echo "no" >&6; } 44844 fi 44845 44846 44847 test -n "$BUILD_AR" && break 44848 done 44849 44850 else 44851 # If it succeeded, then it was overridden by the user. We will use it 44852 # for the tool. 44853 44854 # First remove it from the list of overridden variables, so we can test 44855 # for unknown variables in the end. 44856 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44857 44858 # Check if we try to supply an empty value 44859 if test "x$BUILD_AR" = x; then 44860 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_AR= (no value)" >&5 44861 $as_echo "$as_me: Setting user supplied tool BUILD_AR= (no value)" >&6;} 44862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 44863 $as_echo_n "checking for BUILD_AR... " >&6; } 44864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44865 $as_echo "disabled" >&6; } 44866 else 44867 # Check if the provided tool contains a complete path. 44868 tool_specified="$BUILD_AR" 44869 tool_basename="${tool_specified##*/}" 44870 if test "x$tool_basename" = "x$tool_specified"; then 44871 # A command without a complete path is provided, search $PATH. 44872 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_AR=$tool_basename" >&5 44873 $as_echo "$as_me: Will search for user supplied tool BUILD_AR=$tool_basename" >&6;} 44874 # Extract the first word of "$tool_basename", so it can be a program name with args. 44875 set dummy $tool_basename; ac_word=$2 44876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44877 $as_echo_n "checking for $ac_word... " >&6; } 44878 if ${ac_cv_path_BUILD_AR+:} false; then : 44879 $as_echo_n "(cached) " >&6 44880 else 44881 case $BUILD_AR in 44882 [\\/]* | ?:[\\/]*) 44883 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 44884 ;; 44885 *) 44886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44887 for as_dir in $PATH 44888 do 44889 IFS=$as_save_IFS 44890 test -z "$as_dir" && as_dir=. 44891 for ac_exec_ext in '' $ac_executable_extensions; do 44892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44893 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 44894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44895 break 2 44896 fi 44897 done 44898 done 44899 IFS=$as_save_IFS 44900 44901 ;; 44902 esac 44903 fi 44904 BUILD_AR=$ac_cv_path_BUILD_AR 44905 if test -n "$BUILD_AR"; then 44906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 44907 $as_echo "$BUILD_AR" >&6; } 44908 else 44909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44910 $as_echo "no" >&6; } 44911 fi 44912 44913 44914 if test "x$BUILD_AR" = x; then 44915 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44916 fi 44917 else 44918 # Otherwise we believe it is a complete path. Use it as it is. 44919 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_AR=$tool_specified" >&5 44920 $as_echo "$as_me: Will use user supplied tool BUILD_AR=$tool_specified" >&6;} 44921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 44922 $as_echo_n "checking for BUILD_AR... " >&6; } 44923 if test ! -x "$tool_specified"; then 44924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44925 $as_echo "not found" >&6; } 44926 as_fn_error $? "User supplied tool BUILD_AR=$tool_specified does not exist or is not executable" "$LINENO" 5 44927 fi 44928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44929 $as_echo "$tool_specified" >&6; } 44930 fi 44931 fi 44932 fi 44933 44934 fi 44935 44936 44937 44938 # Only process if variable expands to non-empty 44939 44940 if test "x$BUILD_AR" != x; then 44941 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44942 44943 # First separate the path from the arguments. This will split at the first 44944 # space. 44945 complete="$BUILD_AR" 44946 path="${complete%% *}" 44947 tmp="$complete EOL" 44948 arguments="${tmp#* }" 44949 44950 # Input might be given as Windows format, start by converting to 44951 # unix format. 44952 new_path=`$CYGPATH -u "$path"` 44953 44954 # Now try to locate executable using which 44955 new_path=`$WHICH "$new_path" 2> /dev/null` 44956 # bat and cmd files are not always considered executable in cygwin causing which 44957 # to not find them 44958 if test "x$new_path" = x \ 44959 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44960 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44961 new_path=`$CYGPATH -u "$path"` 44962 fi 44963 if test "x$new_path" = x; then 44964 # Oops. Which didn't find the executable. 44965 # The splitting of arguments from the executable at a space might have been incorrect, 44966 # since paths with space are more likely in Windows. Give it another try with the whole 44967 # argument. 44968 path="$complete" 44969 arguments="EOL" 44970 new_path=`$CYGPATH -u "$path"` 44971 new_path=`$WHICH "$new_path" 2> /dev/null` 44972 # bat and cmd files are not always considered executable in cygwin causing which 44973 # to not find them 44974 if test "x$new_path" = x \ 44975 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44976 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44977 new_path=`$CYGPATH -u "$path"` 44978 fi 44979 if test "x$new_path" = x; then 44980 # It's still not found. Now this is an unrecoverable error. 44981 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 44982 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 44983 has_space=`$ECHO "$complete" | $GREP " "` 44984 if test "x$has_space" != x; then 44985 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44986 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44987 fi 44988 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 44989 fi 44990 fi 44991 44992 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44993 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44994 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44995 # "foo.exe" is OK but "foo" is an error. 44996 # 44997 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44998 # It is also a way to make sure we got the proper file name for the real test later on. 44999 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45000 if test "x$test_shortpath" = x; then 45001 # Short path failed, file does not exist as specified. 45002 # Try adding .exe or .cmd 45003 if test -f "${new_path}.exe"; then 45004 input_to_shortpath="${new_path}.exe" 45005 elif test -f "${new_path}.cmd"; then 45006 input_to_shortpath="${new_path}.cmd" 45007 else 45008 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&5 45009 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&6;} 45010 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45011 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45012 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 45013 fi 45014 else 45015 input_to_shortpath="$new_path" 45016 fi 45017 45018 # Call helper function which possibly converts this using DOS-style short mode. 45019 # If so, the updated path is stored in $new_path. 45020 new_path="$input_to_shortpath" 45021 45022 input_path="$input_to_shortpath" 45023 # Check if we need to convert this using DOS-style short mode. If the path 45024 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45025 # take no chances and rewrite it. 45026 # Note: m4 eats our [], so we need to use [ and ] instead. 45027 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45028 if test "x$has_forbidden_chars" != x; then 45029 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45030 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45031 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45032 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45033 # Going to short mode and back again did indeed matter. Since short mode is 45034 # case insensitive, let's make it lowercase to improve readability. 45035 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45036 # Now convert it back to Unix-style (cygpath) 45037 input_path=`$CYGPATH -u "$shortmode_path"` 45038 new_path="$input_path" 45039 fi 45040 fi 45041 45042 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45043 if test "x$test_cygdrive_prefix" = x; then 45044 # As a simple fix, exclude /usr/bin since it's not a real path. 45045 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45046 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45047 # a path prefixed by /cygdrive for fixpath to work. 45048 new_path="$CYGWIN_ROOT_PATH$input_path" 45049 fi 45050 fi 45051 45052 # remove trailing .exe if any 45053 new_path="${new_path/%.exe/}" 45054 45055 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45056 45057 # First separate the path from the arguments. This will split at the first 45058 # space. 45059 complete="$BUILD_AR" 45060 path="${complete%% *}" 45061 tmp="$complete EOL" 45062 arguments="${tmp#* }" 45063 45064 # Input might be given as Windows format, start by converting to 45065 # unix format. 45066 new_path="$path" 45067 45068 windows_path="$new_path" 45069 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45070 unix_path=`$CYGPATH -u "$windows_path"` 45071 new_path="$unix_path" 45072 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45073 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45074 new_path="$unix_path" 45075 fi 45076 45077 45078 # Now try to locate executable using which 45079 new_path=`$WHICH "$new_path" 2> /dev/null` 45080 45081 if test "x$new_path" = x; then 45082 # Oops. Which didn't find the executable. 45083 # The splitting of arguments from the executable at a space might have been incorrect, 45084 # since paths with space are more likely in Windows. Give it another try with the whole 45085 # argument. 45086 path="$complete" 45087 arguments="EOL" 45088 new_path="$path" 45089 45090 windows_path="$new_path" 45091 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45092 unix_path=`$CYGPATH -u "$windows_path"` 45093 new_path="$unix_path" 45094 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45095 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45096 new_path="$unix_path" 45097 fi 45098 45099 45100 new_path=`$WHICH "$new_path" 2> /dev/null` 45101 # bat and cmd files are not always considered executable in MSYS causing which 45102 # to not find them 45103 if test "x$new_path" = x \ 45104 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45105 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45106 new_path="$path" 45107 45108 windows_path="$new_path" 45109 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45110 unix_path=`$CYGPATH -u "$windows_path"` 45111 new_path="$unix_path" 45112 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45113 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45114 new_path="$unix_path" 45115 fi 45116 45117 fi 45118 45119 if test "x$new_path" = x; then 45120 # It's still not found. Now this is an unrecoverable error. 45121 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 45122 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 45123 has_space=`$ECHO "$complete" | $GREP " "` 45124 if test "x$has_space" != x; then 45125 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45126 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45127 fi 45128 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 45129 fi 45130 fi 45131 45132 # Now new_path has a complete unix path to the binary 45133 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45134 # Keep paths in /bin as-is, but remove trailing .exe if any 45135 new_path="${new_path/%.exe/}" 45136 # Do not save /bin paths to all_fixpath_prefixes! 45137 else 45138 # Not in mixed or Windows style, start by that. 45139 new_path=`cmd //c echo $new_path` 45140 45141 input_path="$new_path" 45142 # Check if we need to convert this using DOS-style short mode. If the path 45143 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45144 # take no chances and rewrite it. 45145 # Note: m4 eats our [], so we need to use [ and ] instead. 45146 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45147 if test "x$has_forbidden_chars" != x; then 45148 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45149 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45150 fi 45151 45152 # Output is in $new_path 45153 45154 windows_path="$new_path" 45155 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45156 unix_path=`$CYGPATH -u "$windows_path"` 45157 new_path="$unix_path" 45158 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45159 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45160 new_path="$unix_path" 45161 fi 45162 45163 # remove trailing .exe if any 45164 new_path="${new_path/%.exe/}" 45165 45166 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45167 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45168 fi 45169 45170 else 45171 # We're on a unix platform. Hooray! :) 45172 # First separate the path from the arguments. This will split at the first 45173 # space. 45174 complete="$BUILD_AR" 45175 path="${complete%% *}" 45176 tmp="$complete EOL" 45177 arguments="${tmp#* }" 45178 45179 # Cannot rely on the command "which" here since it doesn't always work. 45180 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45181 if test -z "$is_absolute_path"; then 45182 # Path to executable is not absolute. Find it. 45183 IFS_save="$IFS" 45184 IFS=: 45185 for p in $PATH; do 45186 if test -f "$p/$path" && test -x "$p/$path"; then 45187 new_path="$p/$path" 45188 break 45189 fi 45190 done 45191 IFS="$IFS_save" 45192 else 45193 # This is an absolute path, we can use it without further modifications. 45194 new_path="$path" 45195 fi 45196 45197 if test "x$new_path" = x; then 45198 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 45199 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 45200 has_space=`$ECHO "$complete" | $GREP " "` 45201 if test "x$has_space" != x; then 45202 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45203 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45204 fi 45205 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 45206 fi 45207 fi 45208 45209 # Now join together the path and the arguments once again 45210 if test "x$arguments" != xEOL; then 45211 new_complete="$new_path ${arguments% *}" 45212 else 45213 new_complete="$new_path" 45214 fi 45215 45216 if test "x$complete" != "x$new_complete"; then 45217 BUILD_AR="$new_complete" 45218 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_AR to \"$new_complete\"" >&5 45219 $as_echo "$as_me: Rewriting BUILD_AR to \"$new_complete\"" >&6;} 45220 fi 45221 fi 45222 45223 # Assume the C compiler is the assembler 45224 BUILD_AS="$BUILD_CC -c" 45225 # Just like for the target compiler, use the compiler as linker 45226 BUILD_LD="$BUILD_CC" 45227 BUILD_LDCXX="$BUILD_CXX" 45228 45229 PATH="$OLDPATH" 45230 else 45231 # If we are not cross compiling, use the normal target compilers for 45232 # building the build platform executables. 45233 BUILD_CC="$CC" 45234 BUILD_CXX="$CXX" 45235 BUILD_LD="$LD" 45236 BUILD_LDCXX="$LDCXX" 45237 BUILD_NM="$NM" 45238 BUILD_AS="$AS" 45239 BUILD_SYSROOT_CFLAGS="$SYSROOT_CFLAGS" 45240 BUILD_SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS" 45241 BUILD_AR="$AR" 45242 fi 45243 45244 45245 45246 45247 45248 45249 45250 45251 45252 45253 45254 45255 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 45256 # For hotspot, we need these in Windows mixed path, 45257 # so rewrite them all. Need added .exe suffix. 45258 HOTSPOT_CXX="$CXX.exe" 45259 HOTSPOT_LD="$LD.exe" 45260 HOTSPOT_MT="$MT.exe" 45261 HOTSPOT_RC="$RC.exe" 45262 45263 unix_path="$HOTSPOT_CXX" 45264 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45265 windows_path=`$CYGPATH -m "$unix_path"` 45266 HOTSPOT_CXX="$windows_path" 45267 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45268 windows_path=`cmd //c echo $unix_path` 45269 HOTSPOT_CXX="$windows_path" 45270 fi 45271 45272 45273 unix_path="$HOTSPOT_LD" 45274 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45275 windows_path=`$CYGPATH -m "$unix_path"` 45276 HOTSPOT_LD="$windows_path" 45277 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45278 windows_path=`cmd //c echo $unix_path` 45279 HOTSPOT_LD="$windows_path" 45280 fi 45281 45282 45283 unix_path="$HOTSPOT_MT" 45284 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45285 windows_path=`$CYGPATH -m "$unix_path"` 45286 HOTSPOT_MT="$windows_path" 45287 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45288 windows_path=`cmd //c echo $unix_path` 45289 HOTSPOT_MT="$windows_path" 45290 fi 45291 45292 45293 unix_path="$HOTSPOT_RC" 45294 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45295 windows_path=`$CYGPATH -m "$unix_path"` 45296 HOTSPOT_RC="$windows_path" 45297 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45298 windows_path=`cmd //c echo $unix_path` 45299 HOTSPOT_RC="$windows_path" 45300 fi 45301 45302 45303 45304 else 45305 HOTSPOT_CXX="$CXX" 45306 HOTSPOT_LD="$LD" 45307 fi 45308 45309 45310 45311 if test "x$TOOLCHAIN_TYPE" = xclang; then 45312 USE_CLANG=true 45313 fi 45314 45315 45316 45317 45318 45319 # The package path is used only on macosx? 45320 # FIXME: clean this up, and/or move it elsewhere. 45321 PACKAGE_PATH=/opt/local 45322 45323 45324 # Check for extra potential brokenness. 45325 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 45326 # On Windows, double-check that we got the right compiler. 45327 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 45328 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 45329 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 45330 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 45331 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\" or \"x86\"." "$LINENO" 5 45332 fi 45333 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 45334 if test "x$COMPILER_CPU_TEST" != "xx64"; then 45335 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 45336 fi 45337 fi 45338 fi 45339 45340 if test "x$TOOLCHAIN_TYPE" = xgcc; then 45341 # If this is a --hash-style=gnu system, use --hash-style=both, why? 45342 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 45343 # This is later checked when setting flags. 45344 45345 # "-Og" suppported for GCC 4.8 and later 45346 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 45347 45348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 45349 $as_echo_n "checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 45350 supports=yes 45351 45352 saved_cflags="$CFLAGS" 45353 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 45354 ac_ext=c 45355 ac_cpp='$CPP $CPPFLAGS' 45356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 45357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 45358 ac_compiler_gnu=$ac_cv_c_compiler_gnu 45359 45360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45361 /* end confdefs.h. */ 45362 int i; 45363 _ACEOF 45364 if ac_fn_c_try_compile "$LINENO"; then : 45365 45366 else 45367 supports=no 45368 fi 45369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 45370 ac_ext=cpp 45371 ac_cpp='$CXXCPP $CPPFLAGS' 45372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 45373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 45374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 45375 45376 CFLAGS="$saved_cflags" 45377 45378 saved_cxxflags="$CXXFLAGS" 45379 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 45380 ac_ext=cpp 45381 ac_cpp='$CXXCPP $CPPFLAGS' 45382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 45383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 45384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 45385 45386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45387 /* end confdefs.h. */ 45388 int i; 45389 _ACEOF 45390 if ac_fn_cxx_try_compile "$LINENO"; then : 45391 45392 else 45393 supports=no 45394 fi 45395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 45396 ac_ext=cpp 45397 ac_cpp='$CXXCPP $CPPFLAGS' 45398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 45399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 45400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 45401 45402 CXXFLAGS="$saved_cxxflags" 45403 45404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 45405 $as_echo "$supports" >&6; } 45406 if test "x$supports" = "xyes" ; then 45407 HAS_CFLAG_OPTIMIZE_DEBUG=true 45408 else 45409 HAS_CFLAG_OPTIMIZE_DEBUG=false 45410 fi 45411 45412 45413 # "-z relro" supported in GNU binutils 2.17 and later 45414 LINKER_RELRO_FLAG="-Wl,-z,relro" 45415 45416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 45417 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 45418 supports=yes 45419 45420 saved_ldflags="$LDFLAGS" 45421 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 45422 ac_ext=c 45423 ac_cpp='$CPP $CPPFLAGS' 45424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 45425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 45426 ac_compiler_gnu=$ac_cv_c_compiler_gnu 45427 45428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45429 /* end confdefs.h. */ 45430 45431 int 45432 main () 45433 { 45434 45435 ; 45436 return 0; 45437 } 45438 _ACEOF 45439 if ac_fn_c_try_link "$LINENO"; then : 45440 45441 else 45442 supports=no 45443 fi 45444 rm -f core conftest.err conftest.$ac_objext \ 45445 conftest$ac_exeext conftest.$ac_ext 45446 ac_ext=cpp 45447 ac_cpp='$CXXCPP $CPPFLAGS' 45448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 45449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 45450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 45451 45452 LDFLAGS="$saved_ldflags" 45453 45454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 45455 $as_echo "$supports" >&6; } 45456 if test "x$supports" = "xyes" ; then 45457 HAS_LINKER_RELRO=true 45458 else 45459 HAS_LINKER_RELRO=false 45460 fi 45461 45462 45463 # "-z now" supported in GNU binutils 2.11 and later 45464 LINKER_NOW_FLAG="-Wl,-z,now" 45465 45466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 45467 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 45468 supports=yes 45469 45470 saved_ldflags="$LDFLAGS" 45471 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 45472 ac_ext=c 45473 ac_cpp='$CPP $CPPFLAGS' 45474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 45475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 45476 ac_compiler_gnu=$ac_cv_c_compiler_gnu 45477 45478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45479 /* end confdefs.h. */ 45480 45481 int 45482 main () 45483 { 45484 45485 ; 45486 return 0; 45487 } 45488 _ACEOF 45489 if ac_fn_c_try_link "$LINENO"; then : 45490 45491 else 45492 supports=no 45493 fi 45494 rm -f core conftest.err conftest.$ac_objext \ 45495 conftest$ac_exeext conftest.$ac_ext 45496 ac_ext=cpp 45497 ac_cpp='$CXXCPP $CPPFLAGS' 45498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 45499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 45500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 45501 45502 LDFLAGS="$saved_ldflags" 45503 45504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 45505 $as_echo "$supports" >&6; } 45506 if test "x$supports" = "xyes" ; then 45507 HAS_LINKER_NOW=true 45508 else 45509 HAS_LINKER_NOW=false 45510 fi 45511 45512 fi 45513 45514 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 45515 # in executable.' 45516 USING_BROKEN_SUSE_LD=no 45517 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 45518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 45519 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 45520 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 45521 $ECHO "int main() { }" > main.c 45522 if $CXX -Wl,-version-script=version-script.map main.c 2>&5 >&5; then 45523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45524 $as_echo "no" >&6; } 45525 USING_BROKEN_SUSE_LD=no 45526 else 45527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45528 $as_echo "yes" >&6; } 45529 USING_BROKEN_SUSE_LD=yes 45530 fi 45531 rm -rf version-script.map main.c a.out 45532 fi 45533 45534 45535 45536 # Setup the JTReg Regression Test Harness. 45537 45538 45539 # Check whether --with-jtreg was given. 45540 if test "${with_jtreg+set}" = set; then : 45541 withval=$with_jtreg; 45542 else 45543 with_jtreg=no 45544 fi 45545 45546 45547 if test "x$with_jtreg" = xno; then 45548 # jtreg disabled 45549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 45550 $as_echo_n "checking for jtreg... " >&6; } 45551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45552 $as_echo "no" >&6; } 45553 else 45554 if test "x$with_jtreg" != xyes; then 45555 # with path specified. 45556 JT_HOME="$with_jtreg" 45557 fi 45558 45559 if test "x$JT_HOME" != x; then 45560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 45561 $as_echo_n "checking for jtreg... " >&6; } 45562 45563 # use JT_HOME enviroment var. 45564 45565 # Only process if variable expands to non-empty 45566 45567 if test "x$JT_HOME" != x; then 45568 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45569 45570 # Input might be given as Windows format, start by converting to 45571 # unix format. 45572 path="$JT_HOME" 45573 new_path=`$CYGPATH -u "$path"` 45574 45575 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45576 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45577 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45578 # "foo.exe" is OK but "foo" is an error. 45579 # 45580 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45581 # It is also a way to make sure we got the proper file name for the real test later on. 45582 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45583 if test "x$test_shortpath" = x; then 45584 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 45585 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 45586 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 45587 fi 45588 45589 # Call helper function which possibly converts this using DOS-style short mode. 45590 # If so, the updated path is stored in $new_path. 45591 45592 input_path="$new_path" 45593 # Check if we need to convert this using DOS-style short mode. If the path 45594 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45595 # take no chances and rewrite it. 45596 # Note: m4 eats our [], so we need to use [ and ] instead. 45597 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45598 if test "x$has_forbidden_chars" != x; then 45599 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45600 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45601 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45602 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45603 # Going to short mode and back again did indeed matter. Since short mode is 45604 # case insensitive, let's make it lowercase to improve readability. 45605 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45606 # Now convert it back to Unix-style (cygpath) 45607 input_path=`$CYGPATH -u "$shortmode_path"` 45608 new_path="$input_path" 45609 fi 45610 fi 45611 45612 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45613 if test "x$test_cygdrive_prefix" = x; then 45614 # As a simple fix, exclude /usr/bin since it's not a real path. 45615 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45616 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45617 # a path prefixed by /cygdrive for fixpath to work. 45618 new_path="$CYGWIN_ROOT_PATH$input_path" 45619 fi 45620 fi 45621 45622 45623 if test "x$path" != "x$new_path"; then 45624 JT_HOME="$new_path" 45625 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 45626 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 45627 fi 45628 45629 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45630 45631 path="$JT_HOME" 45632 has_colon=`$ECHO $path | $GREP ^.:` 45633 new_path="$path" 45634 if test "x$has_colon" = x; then 45635 # Not in mixed or Windows style, start by that. 45636 new_path=`cmd //c echo $path` 45637 fi 45638 45639 45640 input_path="$new_path" 45641 # Check if we need to convert this using DOS-style short mode. If the path 45642 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45643 # take no chances and rewrite it. 45644 # Note: m4 eats our [], so we need to use [ and ] instead. 45645 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45646 if test "x$has_forbidden_chars" != x; then 45647 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45648 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45649 fi 45650 45651 45652 windows_path="$new_path" 45653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45654 unix_path=`$CYGPATH -u "$windows_path"` 45655 new_path="$unix_path" 45656 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45657 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45658 new_path="$unix_path" 45659 fi 45660 45661 if test "x$path" != "x$new_path"; then 45662 JT_HOME="$new_path" 45663 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 45664 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 45665 fi 45666 45667 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45668 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45669 45670 else 45671 # We're on a unix platform. Hooray! :) 45672 path="$JT_HOME" 45673 has_space=`$ECHO "$path" | $GREP " "` 45674 if test "x$has_space" != x; then 45675 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 45676 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 45677 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45678 fi 45679 45680 # Use eval to expand a potential ~ 45681 eval path="$path" 45682 if test ! -f "$path" && test ! -d "$path"; then 45683 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 45684 fi 45685 45686 if test -d "$path"; then 45687 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 45688 else 45689 dir="`$DIRNAME "$path"`" 45690 base="`$BASENAME "$path"`" 45691 JT_HOME="`cd "$dir"; $THEPWDCMD -L`/$base" 45692 fi 45693 fi 45694 fi 45695 45696 45697 # jtreg win32 script works for everybody 45698 JTREGEXE="$JT_HOME/bin/jtreg" 45699 45700 if test ! -f "$JTREGEXE"; then 45701 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 45702 fi 45703 45704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 45705 $as_echo "$JTREGEXE" >&6; } 45706 else 45707 # try to find jtreg on path 45708 45709 45710 45711 # Publish this variable in the help. 45712 45713 45714 if [ -z "${JTREGEXE+x}" ]; then 45715 # The variable is not set by user, try to locate tool using the code snippet 45716 for ac_prog in jtreg 45717 do 45718 # Extract the first word of "$ac_prog", so it can be a program name with args. 45719 set dummy $ac_prog; ac_word=$2 45720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45721 $as_echo_n "checking for $ac_word... " >&6; } 45722 if ${ac_cv_path_JTREGEXE+:} false; then : 45723 $as_echo_n "(cached) " >&6 45724 else 45725 case $JTREGEXE in 45726 [\\/]* | ?:[\\/]*) 45727 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 45728 ;; 45729 *) 45730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45731 for as_dir in $PATH 45732 do 45733 IFS=$as_save_IFS 45734 test -z "$as_dir" && as_dir=. 45735 for ac_exec_ext in '' $ac_executable_extensions; do 45736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45737 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 45738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45739 break 2 45740 fi 45741 done 45742 done 45743 IFS=$as_save_IFS 45744 45745 ;; 45746 esac 45747 fi 45748 JTREGEXE=$ac_cv_path_JTREGEXE 45749 if test -n "$JTREGEXE"; then 45750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 45751 $as_echo "$JTREGEXE" >&6; } 45752 else 45753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45754 $as_echo "no" >&6; } 45755 fi 45756 45757 45758 test -n "$JTREGEXE" && break 45759 done 45760 45761 else 45762 # The variable is set, but is it from the command line or the environment? 45763 45764 # Try to remove the string !JTREGEXE! from our list. 45765 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 45766 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45767 # If it failed, the variable was not from the command line. Ignore it, 45768 # but warn the user (except for BASH, which is always set by the calling BASH). 45769 if test "xJTREGEXE" != xBASH; then 45770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 45771 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 45772 fi 45773 # Try to locate tool using the code snippet 45774 for ac_prog in jtreg 45775 do 45776 # Extract the first word of "$ac_prog", so it can be a program name with args. 45777 set dummy $ac_prog; ac_word=$2 45778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45779 $as_echo_n "checking for $ac_word... " >&6; } 45780 if ${ac_cv_path_JTREGEXE+:} false; then : 45781 $as_echo_n "(cached) " >&6 45782 else 45783 case $JTREGEXE in 45784 [\\/]* | ?:[\\/]*) 45785 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 45786 ;; 45787 *) 45788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45789 for as_dir in $PATH 45790 do 45791 IFS=$as_save_IFS 45792 test -z "$as_dir" && as_dir=. 45793 for ac_exec_ext in '' $ac_executable_extensions; do 45794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45795 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 45796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45797 break 2 45798 fi 45799 done 45800 done 45801 IFS=$as_save_IFS 45802 45803 ;; 45804 esac 45805 fi 45806 JTREGEXE=$ac_cv_path_JTREGEXE 45807 if test -n "$JTREGEXE"; then 45808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 45809 $as_echo "$JTREGEXE" >&6; } 45810 else 45811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45812 $as_echo "no" >&6; } 45813 fi 45814 45815 45816 test -n "$JTREGEXE" && break 45817 done 45818 45819 else 45820 # If it succeeded, then it was overridden by the user. We will use it 45821 # for the tool. 45822 45823 # First remove it from the list of overridden variables, so we can test 45824 # for unknown variables in the end. 45825 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45826 45827 # Check if we try to supply an empty value 45828 if test "x$JTREGEXE" = x; then 45829 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JTREGEXE= (no value)" >&5 45830 $as_echo "$as_me: Setting user supplied tool JTREGEXE= (no value)" >&6;} 45831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 45832 $as_echo_n "checking for JTREGEXE... " >&6; } 45833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45834 $as_echo "disabled" >&6; } 45835 else 45836 # Check if the provided tool contains a complete path. 45837 tool_specified="$JTREGEXE" 45838 tool_basename="${tool_specified##*/}" 45839 if test "x$tool_basename" = "x$tool_specified"; then 45840 # A command without a complete path is provided, search $PATH. 45841 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 45842 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 45843 # Extract the first word of "$tool_basename", so it can be a program name with args. 45844 set dummy $tool_basename; ac_word=$2 45845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45846 $as_echo_n "checking for $ac_word... " >&6; } 45847 if ${ac_cv_path_JTREGEXE+:} false; then : 45848 $as_echo_n "(cached) " >&6 45849 else 45850 case $JTREGEXE in 45851 [\\/]* | ?:[\\/]*) 45852 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 45853 ;; 45854 *) 45855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45856 for as_dir in $PATH 45857 do 45858 IFS=$as_save_IFS 45859 test -z "$as_dir" && as_dir=. 45860 for ac_exec_ext in '' $ac_executable_extensions; do 45861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45862 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 45863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45864 break 2 45865 fi 45866 done 45867 done 45868 IFS=$as_save_IFS 45869 45870 ;; 45871 esac 45872 fi 45873 JTREGEXE=$ac_cv_path_JTREGEXE 45874 if test -n "$JTREGEXE"; then 45875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 45876 $as_echo "$JTREGEXE" >&6; } 45877 else 45878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45879 $as_echo "no" >&6; } 45880 fi 45881 45882 45883 if test "x$JTREGEXE" = x; then 45884 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45885 fi 45886 else 45887 # Otherwise we believe it is a complete path. Use it as it is. 45888 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 45889 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 45890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 45891 $as_echo_n "checking for JTREGEXE... " >&6; } 45892 if test ! -x "$tool_specified"; then 45893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45894 $as_echo "not found" >&6; } 45895 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 45896 fi 45897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45898 $as_echo "$tool_specified" >&6; } 45899 fi 45900 fi 45901 fi 45902 45903 fi 45904 45905 45906 45907 if test "x$JTREGEXE" = x; then 45908 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 45909 fi 45910 45911 45912 JT_HOME="`$DIRNAME $JTREGEXE`" 45913 fi 45914 fi 45915 45916 45917 45918 45919 45920 45921 # COMPILER_TARGET_BITS_FLAG : option for selecting 32- or 64-bit output 45922 # COMPILER_COMMAND_FILE_FLAG : option for passing a command file to the compiler 45923 if test "x$TOOLCHAIN_TYPE" = xxlc; then 45924 COMPILER_TARGET_BITS_FLAG="-q" 45925 COMPILER_COMMAND_FILE_FLAG="-f" 45926 else 45927 COMPILER_TARGET_BITS_FLAG="-m" 45928 COMPILER_COMMAND_FILE_FLAG="@" 45929 fi 45930 45931 45932 45933 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 45934 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 45935 ARFLAGS="-r" 45936 elif test "x$OPENJDK_TARGET_OS" = xaix; then 45937 ARFLAGS="-X64" 45938 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 45939 # lib.exe is used as AR to create static libraries. 45940 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 45941 else 45942 ARFLAGS="" 45943 fi 45944 45945 45946 ## Setup strip. 45947 # FIXME: should this really be per platform, or should it be per toolchain type? 45948 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 45949 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 45950 if test "x$OPENJDK_TARGET_OS" = xlinux; then 45951 STRIPFLAGS="-g" 45952 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 45953 STRIPFLAGS="-x" 45954 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 45955 STRIPFLAGS="-S" 45956 elif test "x$OPENJDK_TARGET_OS" = xaix; then 45957 STRIPFLAGS="-X32_64" 45958 fi 45959 45960 45961 45962 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 45963 CC_OUT_OPTION=-Fo 45964 EXE_OUT_OPTION=-out: 45965 LD_OUT_OPTION=-out: 45966 AR_OUT_OPTION=-out: 45967 else 45968 # The option used to specify the target .o,.a or .so file. 45969 # When compiling, how to specify the to be created object file. 45970 CC_OUT_OPTION='-o$(SPACE)' 45971 # When linking, how to specify the to be created executable. 45972 EXE_OUT_OPTION='-o$(SPACE)' 45973 # When linking, how to specify the to be created dynamically linkable library. 45974 LD_OUT_OPTION='-o$(SPACE)' 45975 # When archiving, how to specify the to be create static archive for object files. 45976 AR_OUT_OPTION='rcs$(SPACE)' 45977 fi 45978 45979 45980 45981 45982 45983 # On Windows, we need to set RC flags. 45984 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 45985 RC_FLAGS="-nologo -l0x409" 45986 if test "x$VARIANT" = xOPT; then 45987 RC_FLAGS="$RC_FLAGS -DNDEBUG" 45988 fi 45989 45990 # The version variables used to create RC_FLAGS may be overridden 45991 # in a custom configure script, or possibly the command line. 45992 # Let those variables be expanded at make time in spec.gmk. 45993 # The \$ are escaped to the shell, and the $(...) variables 45994 # are evaluated by make. 45995 RC_FLAGS="$RC_FLAGS \ 45996 -D\"JDK_VERSION_STRING=\$(VERSION_STRING)\" \ 45997 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \ 45998 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 45999 -D\"JDK_VER=\$(VERSION_NUMBER)\" \ 46000 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 46001 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(VERSION_MAJOR)\" \ 46002 -D\"JDK_FVER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\"" 46003 fi 46004 46005 46006 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 46007 # silence copyright notice and other headers. 46008 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 46009 fi 46010 46011 46012 # FIXME: Currently we must test this after toolchain but before flags. Fix! 46013 46014 # Now we can test some aspects on the target using configure macros. 46015 46016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 46017 $as_echo_n "checking for ANSI C header files... " >&6; } 46018 if ${ac_cv_header_stdc+:} false; then : 46019 $as_echo_n "(cached) " >&6 46020 else 46021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46022 /* end confdefs.h. */ 46023 #include <stdlib.h> 46024 #include <stdarg.h> 46025 #include <string.h> 46026 #include <float.h> 46027 46028 int 46029 main () 46030 { 46031 46032 ; 46033 return 0; 46034 } 46035 _ACEOF 46036 if ac_fn_cxx_try_compile "$LINENO"; then : 46037 ac_cv_header_stdc=yes 46038 else 46039 ac_cv_header_stdc=no 46040 fi 46041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46042 46043 if test $ac_cv_header_stdc = yes; then 46044 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 46045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46046 /* end confdefs.h. */ 46047 #include <string.h> 46048 46049 _ACEOF 46050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 46051 $EGREP "memchr" >/dev/null 2>&1; then : 46052 46053 else 46054 ac_cv_header_stdc=no 46055 fi 46056 rm -f conftest* 46057 46058 fi 46059 46060 if test $ac_cv_header_stdc = yes; then 46061 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 46062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46063 /* end confdefs.h. */ 46064 #include <stdlib.h> 46065 46066 _ACEOF 46067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 46068 $EGREP "free" >/dev/null 2>&1; then : 46069 46070 else 46071 ac_cv_header_stdc=no 46072 fi 46073 rm -f conftest* 46074 46075 fi 46076 46077 if test $ac_cv_header_stdc = yes; then 46078 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 46079 if test "$cross_compiling" = yes; then : 46080 : 46081 else 46082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46083 /* end confdefs.h. */ 46084 #include <ctype.h> 46085 #include <stdlib.h> 46086 #if ((' ' & 0x0FF) == 0x020) 46087 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 46088 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 46089 #else 46090 # define ISLOWER(c) \ 46091 (('a' <= (c) && (c) <= 'i') \ 46092 || ('j' <= (c) && (c) <= 'r') \ 46093 || ('s' <= (c) && (c) <= 'z')) 46094 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 46095 #endif 46096 46097 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 46098 int 46099 main () 46100 { 46101 int i; 46102 for (i = 0; i < 256; i++) 46103 if (XOR (islower (i), ISLOWER (i)) 46104 || toupper (i) != TOUPPER (i)) 46105 return 2; 46106 return 0; 46107 } 46108 _ACEOF 46109 if ac_fn_cxx_try_run "$LINENO"; then : 46110 46111 else 46112 ac_cv_header_stdc=no 46113 fi 46114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 46115 conftest.$ac_objext conftest.beam conftest.$ac_ext 46116 fi 46117 46118 fi 46119 fi 46120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 46121 $as_echo "$ac_cv_header_stdc" >&6; } 46122 if test $ac_cv_header_stdc = yes; then 46123 46124 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 46125 46126 fi 46127 46128 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 46129 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 46130 inttypes.h stdint.h unistd.h 46131 do : 46132 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 46133 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 46134 " 46135 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 46136 cat >>confdefs.h <<_ACEOF 46137 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 46138 _ACEOF 46139 46140 fi 46141 46142 done 46143 46144 46145 46146 ############################################################################### 46147 # 46148 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 46149 # (The JVM can use 32 or 64 bit Java pointers but that decision 46150 # is made at runtime.) 46151 # 46152 46153 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 46154 # Always specify -m flag on Solaris 46155 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 46156 46157 # When we add flags to the "official" CFLAGS etc, we need to 46158 # keep track of these additions in ADDED_CFLAGS etc. These 46159 # will later be checked to make sure only controlled additions 46160 # have been made to CFLAGS etc. 46161 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 46162 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 46163 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 46164 46165 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 46166 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 46167 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 46168 46169 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 46170 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 46171 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 46172 46173 elif test "x$COMPILE_TYPE" = xreduced; then 46174 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 46175 # Specify -m if running reduced on unix platforms 46176 46177 # When we add flags to the "official" CFLAGS etc, we need to 46178 # keep track of these additions in ADDED_CFLAGS etc. These 46179 # will later be checked to make sure only controlled additions 46180 # have been made to CFLAGS etc. 46181 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 46182 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 46183 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 46184 46185 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 46186 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 46187 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 46188 46189 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 46190 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 46191 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 46192 46193 fi 46194 fi 46195 46196 # Make compilation sanity check 46197 for ac_header in stdio.h 46198 do : 46199 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 46200 if test "x$ac_cv_header_stdio_h" = xyes; then : 46201 cat >>confdefs.h <<_ACEOF 46202 #define HAVE_STDIO_H 1 46203 _ACEOF 46204 46205 else 46206 46207 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 46208 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 46209 if test "x$COMPILE_TYPE" = xreduced; then 46210 46211 # Print a helpful message on how to acquire the necessary build dependency. 46212 # reduced is the help tag: freetype, cups, alsa etc 46213 MISSING_DEPENDENCY=reduced 46214 46215 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46216 cygwin_help $MISSING_DEPENDENCY 46217 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46218 msys_help $MISSING_DEPENDENCY 46219 else 46220 PKGHANDLER_COMMAND= 46221 46222 case $PKGHANDLER in 46223 apt-get) 46224 apt_help $MISSING_DEPENDENCY ;; 46225 yum) 46226 yum_help $MISSING_DEPENDENCY ;; 46227 port) 46228 port_help $MISSING_DEPENDENCY ;; 46229 pkgutil) 46230 pkgutil_help $MISSING_DEPENDENCY ;; 46231 pkgadd) 46232 pkgadd_help $MISSING_DEPENDENCY ;; 46233 esac 46234 46235 if test "x$PKGHANDLER_COMMAND" != x; then 46236 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 46237 fi 46238 fi 46239 46240 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 46241 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 46242 elif test "x$COMPILE_TYPE" = xcross; then 46243 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 46244 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 46245 fi 46246 as_fn_error $? "Cannot continue." "$LINENO" 5 46247 46248 fi 46249 46250 done 46251 46252 46253 # The cast to long int works around a bug in the HP C Compiler 46254 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 46255 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 46256 # This bug is HP SR number 8606223364. 46257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 46258 $as_echo_n "checking size of int *... " >&6; } 46259 if ${ac_cv_sizeof_int_p+:} false; then : 46260 $as_echo_n "(cached) " >&6 46261 else 46262 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 46263 46264 else 46265 if test "$ac_cv_type_int_p" = yes; then 46266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 46267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 46268 as_fn_error 77 "cannot compute sizeof (int *) 46269 See \`config.log' for more details" "$LINENO" 5; } 46270 else 46271 ac_cv_sizeof_int_p=0 46272 fi 46273 fi 46274 46275 fi 46276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 46277 $as_echo "$ac_cv_sizeof_int_p" >&6; } 46278 46279 46280 46281 cat >>confdefs.h <<_ACEOF 46282 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 46283 _ACEOF 46284 46285 46286 46287 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 46288 if test "x$ac_cv_sizeof_int_p" = x; then 46289 # The test failed, lets stick to the assumed value. 46290 { $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 46291 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 46292 else 46293 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 46294 46295 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 46296 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 46297 # Let's try to implicitely set the compilers target architecture and retry the test 46298 { $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 46299 $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;} 46300 { $as_echo "$as_me:${as_lineno-$LINENO}: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5 46301 $as_echo "$as_me: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;} 46302 46303 # When we add flags to the "official" CFLAGS etc, we need to 46304 # keep track of these additions in ADDED_CFLAGS etc. These 46305 # will later be checked to make sure only controlled additions 46306 # have been made to CFLAGS etc. 46307 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 46308 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 46309 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 46310 46311 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 46312 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 46313 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 46314 46315 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 46316 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 46317 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 46318 46319 46320 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 46321 unset ac_cv_sizeof_int_p 46322 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 46323 cat >>confdefs.h <<_ACEOF 46324 #undef SIZEOF_INT_P 46325 _ACEOF 46326 46327 # The cast to long int works around a bug in the HP C Compiler 46328 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 46329 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 46330 # This bug is HP SR number 8606223364. 46331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 46332 $as_echo_n "checking size of int *... " >&6; } 46333 if ${ac_cv_sizeof_int_p+:} false; then : 46334 $as_echo_n "(cached) " >&6 46335 else 46336 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 46337 46338 else 46339 if test "$ac_cv_type_int_p" = yes; then 46340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 46341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 46342 as_fn_error 77 "cannot compute sizeof (int *) 46343 See \`config.log' for more details" "$LINENO" 5; } 46344 else 46345 ac_cv_sizeof_int_p=0 46346 fi 46347 fi 46348 46349 fi 46350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 46351 $as_echo "$ac_cv_sizeof_int_p" >&6; } 46352 46353 46354 46355 cat >>confdefs.h <<_ACEOF 46356 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 46357 _ACEOF 46358 46359 46360 46361 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 46362 46363 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 46364 { $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 46365 $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;} 46366 if test "x$COMPILE_TYPE" = xreduced; then 46367 46368 # Print a helpful message on how to acquire the necessary build dependency. 46369 # reduced is the help tag: freetype, cups, alsa etc 46370 MISSING_DEPENDENCY=reduced 46371 46372 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46373 cygwin_help $MISSING_DEPENDENCY 46374 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46375 msys_help $MISSING_DEPENDENCY 46376 else 46377 PKGHANDLER_COMMAND= 46378 46379 case $PKGHANDLER in 46380 apt-get) 46381 apt_help $MISSING_DEPENDENCY ;; 46382 yum) 46383 yum_help $MISSING_DEPENDENCY ;; 46384 port) 46385 port_help $MISSING_DEPENDENCY ;; 46386 pkgutil) 46387 pkgutil_help $MISSING_DEPENDENCY ;; 46388 pkgadd) 46389 pkgadd_help $MISSING_DEPENDENCY ;; 46390 esac 46391 46392 if test "x$PKGHANDLER_COMMAND" != x; then 46393 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 46394 fi 46395 fi 46396 46397 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 46398 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 46399 elif test "x$COMPILE_TYPE" = xcross; then 46400 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 46401 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 46402 fi 46403 as_fn_error $? "Cannot continue." "$LINENO" 5 46404 fi 46405 fi 46406 fi 46407 46408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 46409 $as_echo_n "checking for target address size... " >&6; } 46410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 46411 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 46412 46413 46414 ############################################################################### 46415 # 46416 # Is the target little of big endian? 46417 # 46418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 46419 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 46420 if ${ac_cv_c_bigendian+:} false; then : 46421 $as_echo_n "(cached) " >&6 46422 else 46423 ac_cv_c_bigendian=unknown 46424 # See if we're dealing with a universal compiler. 46425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46426 /* end confdefs.h. */ 46427 #ifndef __APPLE_CC__ 46428 not a universal capable compiler 46429 #endif 46430 typedef int dummy; 46431 46432 _ACEOF 46433 if ac_fn_cxx_try_compile "$LINENO"; then : 46434 46435 # Check for potential -arch flags. It is not universal unless 46436 # there are at least two -arch flags with different values. 46437 ac_arch= 46438 ac_prev= 46439 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 46440 if test -n "$ac_prev"; then 46441 case $ac_word in 46442 i?86 | x86_64 | ppc | ppc64) 46443 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 46444 ac_arch=$ac_word 46445 else 46446 ac_cv_c_bigendian=universal 46447 break 46448 fi 46449 ;; 46450 esac 46451 ac_prev= 46452 elif test "x$ac_word" = "x-arch"; then 46453 ac_prev=arch 46454 fi 46455 done 46456 fi 46457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46458 if test $ac_cv_c_bigendian = unknown; then 46459 # See if sys/param.h defines the BYTE_ORDER macro. 46460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46461 /* end confdefs.h. */ 46462 #include <sys/types.h> 46463 #include <sys/param.h> 46464 46465 int 46466 main () 46467 { 46468 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 46469 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 46470 && LITTLE_ENDIAN) 46471 bogus endian macros 46472 #endif 46473 46474 ; 46475 return 0; 46476 } 46477 _ACEOF 46478 if ac_fn_cxx_try_compile "$LINENO"; then : 46479 # It does; now see whether it defined to BIG_ENDIAN or not. 46480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46481 /* end confdefs.h. */ 46482 #include <sys/types.h> 46483 #include <sys/param.h> 46484 46485 int 46486 main () 46487 { 46488 #if BYTE_ORDER != BIG_ENDIAN 46489 not big endian 46490 #endif 46491 46492 ; 46493 return 0; 46494 } 46495 _ACEOF 46496 if ac_fn_cxx_try_compile "$LINENO"; then : 46497 ac_cv_c_bigendian=yes 46498 else 46499 ac_cv_c_bigendian=no 46500 fi 46501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46502 fi 46503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46504 fi 46505 if test $ac_cv_c_bigendian = unknown; then 46506 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 46507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46508 /* end confdefs.h. */ 46509 #include <limits.h> 46510 46511 int 46512 main () 46513 { 46514 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 46515 bogus endian macros 46516 #endif 46517 46518 ; 46519 return 0; 46520 } 46521 _ACEOF 46522 if ac_fn_cxx_try_compile "$LINENO"; then : 46523 # It does; now see whether it defined to _BIG_ENDIAN or not. 46524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46525 /* end confdefs.h. */ 46526 #include <limits.h> 46527 46528 int 46529 main () 46530 { 46531 #ifndef _BIG_ENDIAN 46532 not big endian 46533 #endif 46534 46535 ; 46536 return 0; 46537 } 46538 _ACEOF 46539 if ac_fn_cxx_try_compile "$LINENO"; then : 46540 ac_cv_c_bigendian=yes 46541 else 46542 ac_cv_c_bigendian=no 46543 fi 46544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46545 fi 46546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46547 fi 46548 if test $ac_cv_c_bigendian = unknown; then 46549 # Compile a test program. 46550 if test "$cross_compiling" = yes; then : 46551 # Try to guess by grepping values from an object file. 46552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46553 /* end confdefs.h. */ 46554 short int ascii_mm[] = 46555 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 46556 short int ascii_ii[] = 46557 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 46558 int use_ascii (int i) { 46559 return ascii_mm[i] + ascii_ii[i]; 46560 } 46561 short int ebcdic_ii[] = 46562 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 46563 short int ebcdic_mm[] = 46564 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 46565 int use_ebcdic (int i) { 46566 return ebcdic_mm[i] + ebcdic_ii[i]; 46567 } 46568 extern int foo; 46569 46570 int 46571 main () 46572 { 46573 return use_ascii (foo) == use_ebcdic (foo); 46574 ; 46575 return 0; 46576 } 46577 _ACEOF 46578 if ac_fn_cxx_try_compile "$LINENO"; then : 46579 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 46580 ac_cv_c_bigendian=yes 46581 fi 46582 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 46583 if test "$ac_cv_c_bigendian" = unknown; then 46584 ac_cv_c_bigendian=no 46585 else 46586 # finding both strings is unlikely to happen, but who knows? 46587 ac_cv_c_bigendian=unknown 46588 fi 46589 fi 46590 fi 46591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46592 else 46593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46594 /* end confdefs.h. */ 46595 $ac_includes_default 46596 int 46597 main () 46598 { 46599 46600 /* Are we little or big endian? From Harbison&Steele. */ 46601 union 46602 { 46603 long int l; 46604 char c[sizeof (long int)]; 46605 } u; 46606 u.l = 1; 46607 return u.c[sizeof (long int) - 1] == 1; 46608 46609 ; 46610 return 0; 46611 } 46612 _ACEOF 46613 if ac_fn_cxx_try_run "$LINENO"; then : 46614 ac_cv_c_bigendian=no 46615 else 46616 ac_cv_c_bigendian=yes 46617 fi 46618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 46619 conftest.$ac_objext conftest.beam conftest.$ac_ext 46620 fi 46621 46622 fi 46623 fi 46624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 46625 $as_echo "$ac_cv_c_bigendian" >&6; } 46626 case $ac_cv_c_bigendian in #( 46627 yes) 46628 ENDIAN="big";; #( 46629 no) 46630 ENDIAN="little" ;; #( 46631 universal) 46632 ENDIAN="universal_endianness" 46633 ;; #( 46634 *) 46635 ENDIAN="unknown" ;; 46636 esac 46637 46638 46639 if test "x$ENDIAN" = xuniversal_endianness; then 46640 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 46641 fi 46642 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 46643 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 46644 fi 46645 46646 46647 # Configure flags for the tools 46648 46649 ############################################################################### 46650 # 46651 # How to compile shared libraries. 46652 # 46653 46654 if test "x$TOOLCHAIN_TYPE" = xgcc; then 46655 PICFLAG="-fPIC" 46656 C_FLAG_REORDER='' 46657 CXX_FLAG_REORDER='' 46658 46659 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 46660 # Linking is different on MacOSX 46661 if test "x$STATIC_BUILD" = xtrue; then 46662 SHARED_LIBRARY_FLAGS ='-undefined dynamic_lookup' 46663 else 46664 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 46665 fi 46666 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path/.' 46667 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 46668 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 46669 SET_SHARED_LIBRARY_MAPFILE='' 46670 else 46671 # Default works for linux, might work on other platforms as well. 46672 SHARED_LIBRARY_FLAGS='-shared' 46673 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$$$ORIGIN$1' 46674 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 46675 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 46676 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 46677 fi 46678 elif test "x$TOOLCHAIN_TYPE" = xclang; then 46679 C_FLAG_REORDER='' 46680 CXX_FLAG_REORDER='' 46681 46682 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 46683 # Linking is different on MacOSX 46684 PICFLAG='' 46685 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 46686 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path/.' 46687 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 46688 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 46689 SET_SHARED_LIBRARY_MAPFILE='' 46690 else 46691 # Default works for linux, might work on other platforms as well. 46692 PICFLAG='-fPIC' 46693 SHARED_LIBRARY_FLAGS='-shared' 46694 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$$$ORIGIN$1' 46695 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 46696 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 46697 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 46698 fi 46699 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 46700 PICFLAG="-KPIC" 46701 C_FLAG_REORDER='-xF' 46702 CXX_FLAG_REORDER='-xF' 46703 SHARED_LIBRARY_FLAGS="-G" 46704 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 46705 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 46706 SET_SHARED_LIBRARY_NAME='-h $1' 46707 SET_SHARED_LIBRARY_MAPFILE='-M$1' 46708 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 46709 PICFLAG="-qpic=large" 46710 C_FLAG_REORDER='' 46711 CXX_FLAG_REORDER='' 46712 SHARED_LIBRARY_FLAGS="-qmkshrobj" 46713 SET_EXECUTABLE_ORIGIN="" 46714 SET_SHARED_LIBRARY_ORIGIN='' 46715 SET_SHARED_LIBRARY_NAME='' 46716 SET_SHARED_LIBRARY_MAPFILE='' 46717 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 46718 PICFLAG="" 46719 C_FLAG_REORDER='' 46720 CXX_FLAG_REORDER='' 46721 SHARED_LIBRARY_FLAGS="-dll" 46722 SET_EXECUTABLE_ORIGIN='' 46723 SET_SHARED_LIBRARY_ORIGIN='' 46724 SET_SHARED_LIBRARY_NAME='' 46725 SET_SHARED_LIBRARY_MAPFILE='' 46726 fi 46727 46728 46729 46730 46731 46732 46733 46734 46735 46736 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 46737 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 46738 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 46739 CFLAGS_JDKLIB_EXTRA='-xstrconst' 46740 fi 46741 # The (cross) compiler is now configured, we can now test capabilities 46742 # of the target platform. 46743 46744 46745 46746 ############################################################################### 46747 # 46748 # Setup the opt flags for different compilers 46749 # and different operating systems. 46750 # 46751 46752 # FIXME: this was indirectly the old default, but just inherited. 46753 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 46754 # C_FLAG_DEPS="-MMD -MF" 46755 # fi 46756 46757 # Generate make dependency files 46758 if test "x$TOOLCHAIN_TYPE" = xgcc; then 46759 C_FLAG_DEPS="-MMD -MF" 46760 elif test "x$TOOLCHAIN_TYPE" = xclang; then 46761 C_FLAG_DEPS="-MMD -MF" 46762 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 46763 C_FLAG_DEPS="-xMMD -xMF" 46764 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 46765 C_FLAG_DEPS="-qmakedep=gcc -MF" 46766 fi 46767 CXX_FLAG_DEPS="$C_FLAG_DEPS" 46768 46769 46770 46771 # Debug symbols 46772 if test "x$TOOLCHAIN_TYPE" = xgcc; then 46773 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 46774 # reduce from default "-g2" option to save space 46775 CFLAGS_DEBUG_SYMBOLS="-g1" 46776 CXXFLAGS_DEBUG_SYMBOLS="-g1" 46777 else 46778 CFLAGS_DEBUG_SYMBOLS="-g" 46779 CXXFLAGS_DEBUG_SYMBOLS="-g" 46780 fi 46781 elif test "x$TOOLCHAIN_TYPE" = xclang; then 46782 CFLAGS_DEBUG_SYMBOLS="-g" 46783 CXXFLAGS_DEBUG_SYMBOLS="-g" 46784 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 46785 CFLAGS_DEBUG_SYMBOLS="-g -xs" 46786 # FIXME: likely a bug, this disables debug symbols rather than enables them 46787 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 46788 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 46789 CFLAGS_DEBUG_SYMBOLS="-g" 46790 CXXFLAGS_DEBUG_SYMBOLS="-g" 46791 fi 46792 46793 46794 46795 # bounds, memory and behavior checking options 46796 if test "x$TOOLCHAIN_TYPE" = xgcc; then 46797 case $DEBUG_LEVEL in 46798 release ) 46799 # no adjustment 46800 ;; 46801 fastdebug ) 46802 # no adjustment 46803 ;; 46804 slowdebug ) 46805 # Add runtime stack smashing and undefined behavior checks. 46806 # Not all versions of gcc support -fstack-protector 46807 STACK_PROTECTOR_CFLAG="-fstack-protector-all" 46808 46809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$STACK_PROTECTOR_CFLAG\"" >&5 46810 $as_echo_n "checking if compiler supports \"$STACK_PROTECTOR_CFLAG\"... " >&6; } 46811 supports=yes 46812 46813 saved_cflags="$CFLAGS" 46814 CFLAGS="$CFLAGS $STACK_PROTECTOR_CFLAG" 46815 ac_ext=c 46816 ac_cpp='$CPP $CPPFLAGS' 46817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46819 ac_compiler_gnu=$ac_cv_c_compiler_gnu 46820 46821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46822 /* end confdefs.h. */ 46823 int i; 46824 _ACEOF 46825 if ac_fn_c_try_compile "$LINENO"; then : 46826 46827 else 46828 supports=no 46829 fi 46830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46831 ac_ext=cpp 46832 ac_cpp='$CXXCPP $CPPFLAGS' 46833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46836 46837 CFLAGS="$saved_cflags" 46838 46839 saved_cxxflags="$CXXFLAGS" 46840 CXXFLAGS="$CXXFLAG $STACK_PROTECTOR_CFLAG" 46841 ac_ext=cpp 46842 ac_cpp='$CXXCPP $CPPFLAGS' 46843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46846 46847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46848 /* end confdefs.h. */ 46849 int i; 46850 _ACEOF 46851 if ac_fn_cxx_try_compile "$LINENO"; then : 46852 46853 else 46854 supports=no 46855 fi 46856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46857 ac_ext=cpp 46858 ac_cpp='$CXXCPP $CPPFLAGS' 46859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46862 46863 CXXFLAGS="$saved_cxxflags" 46864 46865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 46866 $as_echo "$supports" >&6; } 46867 if test "x$supports" = "xyes" ; then 46868 : 46869 else 46870 STACK_PROTECTOR_CFLAG="" 46871 fi 46872 46873 46874 CFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 46875 CXXFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 46876 ;; 46877 esac 46878 fi 46879 46880 # Optimization levels 46881 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 46882 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 46883 46884 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 46885 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 46886 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 46887 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 46888 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 46889 C_O_FLAG_DEBUG="-xregs=no%frameptr" 46890 C_O_FLAG_NONE="-xregs=no%frameptr" 46891 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 46892 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 46893 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 46894 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 46895 CXX_O_FLAG_NONE="-xregs=no%frameptr" 46896 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 46897 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 46898 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 46899 fi 46900 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 46901 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 46902 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 46903 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 46904 C_O_FLAG_DEBUG="" 46905 C_O_FLAG_NONE="" 46906 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 46907 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 46908 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 46909 C_O_FLAG_DEBUG="" 46910 CXX_O_FLAG_NONE="" 46911 fi 46912 else 46913 # The remaining toolchains share opt flags between CC and CXX; 46914 # setup for C and duplicate afterwards. 46915 if test "x$TOOLCHAIN_TYPE" = xgcc; then 46916 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 46917 # On MacOSX we optimize for size, something 46918 # we should do for all platforms? 46919 C_O_FLAG_HIGHEST="-Os" 46920 C_O_FLAG_HI="-Os" 46921 C_O_FLAG_NORM="-Os" 46922 else 46923 C_O_FLAG_HIGHEST="-O3" 46924 C_O_FLAG_HI="-O3" 46925 C_O_FLAG_NORM="-O2" 46926 fi 46927 C_O_FLAG_DEBUG="-O0" 46928 C_O_FLAG_NONE="-O0" 46929 elif test "x$TOOLCHAIN_TYPE" = xclang; then 46930 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 46931 # On MacOSX we optimize for size, something 46932 # we should do for all platforms? 46933 C_O_FLAG_HIGHEST="-Os" 46934 C_O_FLAG_HI="-Os" 46935 C_O_FLAG_NORM="-Os" 46936 else 46937 C_O_FLAG_HIGHEST="-O3" 46938 C_O_FLAG_HI="-O3" 46939 C_O_FLAG_NORM="-O2" 46940 fi 46941 C_O_FLAG_DEBUG="-O0" 46942 C_O_FLAG_NONE="-O0" 46943 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 46944 C_O_FLAG_HIGHEST="-O3" 46945 C_O_FLAG_HI="-O3 -qstrict" 46946 C_O_FLAG_NORM="-O2" 46947 C_O_FLAG_DEBUG="-qnoopt" 46948 C_O_FLAG_NONE="-qnoop" 46949 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 46950 C_O_FLAG_HIGHEST="-O2" 46951 C_O_FLAG_HI="-O1" 46952 C_O_FLAG_NORM="-O1" 46953 C_O_FLAG_DEBUG="-Od" 46954 C_O_FLAG_NONE="-Od" 46955 fi 46956 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 46957 CXX_O_FLAG_HI="$C_O_FLAG_HI" 46958 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 46959 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 46960 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 46961 fi 46962 46963 # Adjust optimization flags according to debug level. 46964 case $DEBUG_LEVEL in 46965 release ) 46966 # no adjustment 46967 ;; 46968 fastdebug ) 46969 # Not quite so much optimization 46970 C_O_FLAG_HI="$C_O_FLAG_NORM" 46971 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 46972 ;; 46973 slowdebug ) 46974 # Disable optimization 46975 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 46976 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 46977 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 46978 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 46979 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 46980 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 46981 ;; 46982 esac 46983 46984 46985 46986 46987 46988 46989 46990 46991 46992 46993 46994 46995 46996 # Special extras... 46997 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 46998 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 46999 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 47000 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 47001 fi 47002 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 47003 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 47004 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 47005 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 47006 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 47007 fi 47008 47009 CFLAGS_JDK="${CFLAGS_JDK} $EXTRA_CFLAGS" 47010 CXXFLAGS_JDK="${CXXFLAGS_JDK} $EXTRA_CXXFLAGS" 47011 LDFLAGS_JDK="${LDFLAGS_JDK} $EXTRA_LDFLAGS" 47012 47013 ############################################################################### 47014 # 47015 # Now setup the CFLAGS and LDFLAGS for the JDK build. 47016 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 47017 # 47018 47019 # Setup compiler/platform specific flags into 47020 # CFLAGS_JDK - C Compiler flags 47021 # CXXFLAGS_JDK - C++ Compiler flags 47022 # COMMON_CCXXFLAGS_JDK - common to C and C++ 47023 if test "x$TOOLCHAIN_TYPE" = xgcc; then 47024 if test "x$OPENJDK_TARGET_CPU" = xx86; then 47025 # Force compatibility with i586 on 32 bit intel platforms. 47026 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 47027 fi 47028 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 47029 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 47030 case $OPENJDK_TARGET_CPU_ARCH in 47031 arm ) 47032 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 47033 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 47034 ;; 47035 ppc ) 47036 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 47037 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 47038 ;; 47039 * ) 47040 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 47041 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 47042 ;; 47043 esac 47044 elif test "x$TOOLCHAIN_TYPE" = xclang; then 47045 if test "x$OPENJDK_TARGET_OS" = xlinux; then 47046 if test "x$OPENJDK_TARGET_CPU" = xx86; then 47047 # Force compatibility with i586 on 32 bit intel platforms. 47048 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 47049 fi 47050 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 47051 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 47052 case $OPENJDK_TARGET_CPU_ARCH in 47053 ppc ) 47054 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 47055 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 47056 ;; 47057 * ) 47058 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 47059 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 47060 ;; 47061 esac 47062 fi 47063 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 47064 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 47065 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 47066 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 47067 fi 47068 47069 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 47070 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 47071 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 47072 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 47073 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 47074 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47075 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \ 47076 -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 47077 -DWIN32_LEAN_AND_MEAN \ 47078 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 47079 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 47080 -DWIN32 -DIAL" 47081 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 47082 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 47083 else 47084 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 47085 fi 47086 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 47087 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 47088 # studio. 47089 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 47090 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 47091 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 47092 fi 47093 fi 47094 47095 ############################################################################### 47096 47097 # Adjust flags according to debug level. 47098 case $DEBUG_LEVEL in 47099 fastdebug | slowdebug ) 47100 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 47101 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 47102 JAVAC_FLAGS="$JAVAC_FLAGS -g" 47103 ;; 47104 release ) 47105 ;; 47106 * ) 47107 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 47108 ;; 47109 esac 47110 47111 # Setup LP64 47112 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $ADD_LP64" 47113 47114 # Set some common defines. These works for all compilers, but assume 47115 # -D is universally accepted. 47116 47117 # Setup endianness 47118 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 47119 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 47120 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 47121 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 47122 # Note: -Dmacro is the same as #define macro 1 47123 # -Dmacro= is the same as #define macro 47124 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 47125 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 47126 else 47127 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 47128 fi 47129 else 47130 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 47131 # are defined in the system? 47132 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 47133 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 47134 else 47135 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 47136 fi 47137 fi 47138 47139 # Setup target OS define. Use OS target name but in upper case. 47140 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 47141 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 47142 47143 # Setup target CPU 47144 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 47145 47146 # Setup debug/release defines 47147 if test "x$DEBUG_LEVEL" = xrelease; then 47148 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 47149 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 47150 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 47151 fi 47152 else 47153 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 47154 fi 47155 47156 # Set some additional per-OS defines. 47157 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 47158 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 47159 elif test "x$OPENJDK_TARGET_OS" = xaix; then 47160 # FIXME: PPC64 should not be here. 47161 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DPPC64" 47162 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 47163 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 47164 fi 47165 47166 # Additional macosx handling 47167 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 47168 # Setting these parameters makes it an error to link to macosx APIs that are 47169 # newer than the given OS version and makes the linked binaries compatible 47170 # even if built on a newer version of the OS. 47171 # The expected format is X.Y.Z 47172 MACOSX_VERSION_MIN=10.7.0 47173 47174 47175 # The macro takes the version with no dots, ex: 1070 47176 # Let the flags variables get resolved in make for easier override on make 47177 # command line. 47178 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 47179 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 47180 fi 47181 47182 # Setup some hard coded includes 47183 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 47184 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 47185 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS/native/include \ 47186 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/include \ 47187 -I${JDK_TOPDIR}/src/java.base/share/native/libjava \ 47188 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/libjava" 47189 47190 # The shared libraries are compiled using the picflag. 47191 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 47192 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 47193 47194 # Executable flags 47195 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 47196 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 47197 47198 47199 47200 47201 47202 47203 # Flags for compiling test libraries 47204 CFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 47205 CXXFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 47206 47207 # Flags for compiling test executables 47208 CFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 47209 CXXFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 47210 47211 47212 47213 47214 47215 47216 # Setup LDFLAGS et al. 47217 # 47218 47219 # Now this is odd. The JDK native libraries have to link against libjvm.so 47220 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. 47221 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library 47222 # is identical for client and server? Yes. Which is picked at runtime (client or server)? 47223 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following 47224 # libraries will link to whatever is in memory. Yuck. 47225 # 47226 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh. 47227 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47228 LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no" 47229 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 47230 LDFLAGS_JDK="$LDFLAGS_JDK -safeseh" 47231 fi 47232 # TODO: make -debug optional "--disable-full-debug-symbols" 47233 LDFLAGS_JDK="$LDFLAGS_JDK -debug" 47234 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 47235 # If this is a --hash-style=gnu system, use --hash-style=both, why? 47236 # We have previously set HAS_GNU_HASH if this is the case 47237 if test -n "$HAS_GNU_HASH"; then 47238 LDFLAGS_JDK="${LDFLAGS_JDK} -Wl,--hash-style=both" 47239 fi 47240 if test "x$OPENJDK_TARGET_OS" = xlinux; then 47241 # And since we now know that the linker is gnu, then add -z defs, to forbid 47242 # undefined symbols in object files. 47243 LDFLAGS_JDK="${LDFLAGS_JDK} -Wl,-z,defs" 47244 case $DEBUG_LEVEL in 47245 release ) 47246 # tell linker to optimize libraries. 47247 # Should this be supplied to the OSS linker as well? 47248 LDFLAGS_JDK="${LDFLAGS_JDK} -Wl,-O1" 47249 ;; 47250 slowdebug ) 47251 if test "x$HAS_LINKER_NOW" = "xtrue"; then 47252 # do relocations at load 47253 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 47254 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 47255 fi 47256 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 47257 # mark relocations read only 47258 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 47259 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 47260 fi 47261 ;; 47262 fastdebug ) 47263 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 47264 # mark relocations read only 47265 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 47266 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 47267 fi 47268 ;; 47269 * ) 47270 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 47271 ;; 47272 esac 47273 fi 47274 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 47275 LDFLAGS_JDK="$LDFLAGS_JDK -Wl,-z,defs -xildoff -ztext" 47276 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib" 47277 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 47278 LDFLAGS_JDK="${LDFLAGS_JDK} -brtl -bnolibpath -bexpall -bernotok" 47279 fi 47280 47281 # Customize LDFLAGS for executables 47282 47283 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 47284 47285 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47286 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 47287 LDFLAGS_STACK_SIZE=1048576 47288 else 47289 LDFLAGS_STACK_SIZE=327680 47290 fi 47291 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 47292 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 47293 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 47294 fi 47295 47296 # Customize LDFLAGS for libs 47297 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 47298 47299 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 47300 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47301 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} \ 47302 -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 47303 JDKLIB_LIBS="" 47304 else 47305 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} \ 47306 -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}" 47307 47308 # On some platforms (mac) the linker warns about non existing -L dirs. 47309 # Add server first if available. Linking aginst client does not always produce the same results. 47310 # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1. 47311 # Default to server for other variants. 47312 if test "x$JVM_VARIANT_SERVER" = xtrue; then 47313 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/server" 47314 elif test "x$JVM_VARIANT_CLIENT" = xtrue; then 47315 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/client" 47316 elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 47317 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/minimal" 47318 else 47319 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/server" 47320 fi 47321 47322 JDKLIB_LIBS="-ljava -ljvm" 47323 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 47324 JDKLIB_LIBS="$JDKLIB_LIBS -lc" 47325 fi 47326 fi 47327 47328 47329 47330 47331 47332 47333 47334 LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB" 47335 LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE" 47336 47337 47338 47339 47340 47341 # Some Zero and Shark settings. 47342 # ZERO_ARCHFLAG tells the compiler which mode to build for 47343 case "${OPENJDK_TARGET_CPU}" in 47344 s390) 47345 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 47346 ;; 47347 *) 47348 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 47349 esac 47350 47351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5 47352 $as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 47353 supports=yes 47354 47355 saved_cflags="$CFLAGS" 47356 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 47357 ac_ext=c 47358 ac_cpp='$CPP $CPPFLAGS' 47359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47361 ac_compiler_gnu=$ac_cv_c_compiler_gnu 47362 47363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47364 /* end confdefs.h. */ 47365 int i; 47366 _ACEOF 47367 if ac_fn_c_try_compile "$LINENO"; then : 47368 47369 else 47370 supports=no 47371 fi 47372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47373 ac_ext=cpp 47374 ac_cpp='$CXXCPP $CPPFLAGS' 47375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47378 47379 CFLAGS="$saved_cflags" 47380 47381 saved_cxxflags="$CXXFLAGS" 47382 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 47383 ac_ext=cpp 47384 ac_cpp='$CXXCPP $CPPFLAGS' 47385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47388 47389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47390 /* end confdefs.h. */ 47391 int i; 47392 _ACEOF 47393 if ac_fn_cxx_try_compile "$LINENO"; then : 47394 47395 else 47396 supports=no 47397 fi 47398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47399 ac_ext=cpp 47400 ac_cpp='$CXXCPP $CPPFLAGS' 47401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47404 47405 CXXFLAGS="$saved_cxxflags" 47406 47407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47408 $as_echo "$supports" >&6; } 47409 if test "x$supports" = "xyes" ; then 47410 : 47411 else 47412 ZERO_ARCHFLAG="" 47413 fi 47414 47415 47416 47417 # Check that the compiler supports -mX (or -qX on AIX) flags 47418 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 47419 47420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 47421 $as_echo_n "checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 47422 supports=yes 47423 47424 saved_cflags="$CFLAGS" 47425 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 47426 ac_ext=c 47427 ac_cpp='$CPP $CPPFLAGS' 47428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47430 ac_compiler_gnu=$ac_cv_c_compiler_gnu 47431 47432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47433 /* end confdefs.h. */ 47434 int i; 47435 _ACEOF 47436 if ac_fn_c_try_compile "$LINENO"; then : 47437 47438 else 47439 supports=no 47440 fi 47441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47442 ac_ext=cpp 47443 ac_cpp='$CXXCPP $CPPFLAGS' 47444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47447 47448 CFLAGS="$saved_cflags" 47449 47450 saved_cxxflags="$CXXFLAGS" 47451 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 47452 ac_ext=cpp 47453 ac_cpp='$CXXCPP $CPPFLAGS' 47454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47457 47458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47459 /* end confdefs.h. */ 47460 int i; 47461 _ACEOF 47462 if ac_fn_cxx_try_compile "$LINENO"; then : 47463 47464 else 47465 supports=no 47466 fi 47467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47468 ac_ext=cpp 47469 ac_cpp='$CXXCPP $CPPFLAGS' 47470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47473 47474 CXXFLAGS="$saved_cxxflags" 47475 47476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47477 $as_echo "$supports" >&6; } 47478 if test "x$supports" = "xyes" ; then 47479 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 47480 else 47481 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 47482 fi 47483 47484 47485 47486 # Check whether --enable-warnings-as-errors was given. 47487 if test "${enable_warnings_as_errors+set}" = set; then : 47488 enableval=$enable_warnings_as_errors; 47489 fi 47490 47491 47492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native warnings are errors" >&5 47493 $as_echo_n "checking if native warnings are errors... " >&6; } 47494 if test "x$enable_warnings_as_errors" = "xyes"; then 47495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (explicitely set)" >&5 47496 $as_echo "yes (explicitely set)" >&6; } 47497 WARNINGS_AS_ERRORS=true 47498 elif test "x$enable_warnings_as_errors" = "xno"; then 47499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47500 $as_echo "no" >&6; } 47501 WARNINGS_AS_ERRORS=false 47502 elif test "x$enable_warnings_as_errors" = "x"; then 47503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 47504 $as_echo "yes (default)" >&6; } 47505 WARNINGS_AS_ERRORS=true 47506 else 47507 as_fn_error $? "--enable-warnings-as-errors accepts no argument" "$LINENO" 5 47508 fi 47509 47510 if test "x$WARNINGS_AS_ERRORS" = "xfalse"; then 47511 # Set legacy hotspot variable 47512 HOTSPOT_SET_WARNINGS_AS_ERRORS="WARNINGS_ARE_ERRORS=" 47513 else 47514 HOTSPOT_SET_WARNINGS_AS_ERRORS="" 47515 fi 47516 47517 47518 47519 47520 case "${TOOLCHAIN_TYPE}" in 47521 microsoft) 47522 DISABLE_WARNING_PREFIX="-wd" 47523 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 47524 ;; 47525 solstudio) 47526 DISABLE_WARNING_PREFIX="-erroff=" 47527 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 47528 ;; 47529 gcc) 47530 # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error 47531 47532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 47533 $as_echo_n "checking if compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 47534 supports=yes 47535 47536 saved_cflags="$CFLAGS" 47537 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 47538 ac_ext=c 47539 ac_cpp='$CPP $CPPFLAGS' 47540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47542 ac_compiler_gnu=$ac_cv_c_compiler_gnu 47543 47544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47545 /* end confdefs.h. */ 47546 int i; 47547 _ACEOF 47548 if ac_fn_c_try_compile "$LINENO"; then : 47549 47550 else 47551 supports=no 47552 fi 47553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47554 ac_ext=cpp 47555 ac_cpp='$CXXCPP $CPPFLAGS' 47556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47559 47560 CFLAGS="$saved_cflags" 47561 47562 saved_cxxflags="$CXXFLAGS" 47563 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 47564 ac_ext=cpp 47565 ac_cpp='$CXXCPP $CPPFLAGS' 47566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47569 47570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47571 /* end confdefs.h. */ 47572 int i; 47573 _ACEOF 47574 if ac_fn_cxx_try_compile "$LINENO"; then : 47575 47576 else 47577 supports=no 47578 fi 47579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47580 ac_ext=cpp 47581 ac_cpp='$CXXCPP $CPPFLAGS' 47582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47585 47586 CXXFLAGS="$saved_cxxflags" 47587 47588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47589 $as_echo "$supports" >&6; } 47590 if test "x$supports" = "xyes" ; then 47591 GCC_CAN_DISABLE_WARNINGS=true 47592 else 47593 GCC_CAN_DISABLE_WARNINGS=false 47594 47595 fi 47596 47597 if test "x$GCC_CAN_DISABLE_WARNINGS" = "xtrue"; then 47598 DISABLE_WARNING_PREFIX="-Wno-" 47599 else 47600 DISABLE_WARNING_PREFIX= 47601 fi 47602 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 47603 # Repeate the check for the BUILD_CC 47604 CC_OLD="$CC" 47605 CC="$BUILD_CC" 47606 47607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 47608 $as_echo_n "checking if compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 47609 supports=yes 47610 47611 saved_cflags="$CFLAGS" 47612 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 47613 ac_ext=c 47614 ac_cpp='$CPP $CPPFLAGS' 47615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47617 ac_compiler_gnu=$ac_cv_c_compiler_gnu 47618 47619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47620 /* end confdefs.h. */ 47621 int i; 47622 _ACEOF 47623 if ac_fn_c_try_compile "$LINENO"; then : 47624 47625 else 47626 supports=no 47627 fi 47628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47629 ac_ext=cpp 47630 ac_cpp='$CXXCPP $CPPFLAGS' 47631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47634 47635 CFLAGS="$saved_cflags" 47636 47637 saved_cxxflags="$CXXFLAGS" 47638 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 47639 ac_ext=cpp 47640 ac_cpp='$CXXCPP $CPPFLAGS' 47641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47644 47645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47646 /* end confdefs.h. */ 47647 int i; 47648 _ACEOF 47649 if ac_fn_cxx_try_compile "$LINENO"; then : 47650 47651 else 47652 supports=no 47653 fi 47654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47655 ac_ext=cpp 47656 ac_cpp='$CXXCPP $CPPFLAGS' 47657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47660 47661 CXXFLAGS="$saved_cxxflags" 47662 47663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47664 $as_echo "$supports" >&6; } 47665 if test "x$supports" = "xyes" ; then 47666 BUILD_CC_CAN_DISABLE_WARNINGS=true 47667 else 47668 BUILD_CC_CAN_DISABLE_WARNINGS=false 47669 47670 fi 47671 47672 if test "x$BUILD_CC_CAN_DISABLE_WARNINGS" = "xtrue"; then 47673 BUILD_CC_DISABLE_WARNING_PREFIX="-Wno-" 47674 else 47675 BUILD_CC_DISABLE_WARNING_PREFIX= 47676 fi 47677 CC="$CC_OLD" 47678 ;; 47679 clang) 47680 DISABLE_WARNING_PREFIX="-Wno-" 47681 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 47682 ;; 47683 esac 47684 47685 47686 47687 47688 # Setup debug symbols (need objcopy from the toolchain for that) 47689 47690 # 47691 # NATIVE_DEBUG_SYMBOLS 47692 # This must be done after the toolchain is setup, since we're looking at objcopy. 47693 # 47694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of native debug symbols to use" >&5 47695 $as_echo_n "checking what type of native debug symbols to use... " >&6; } 47696 47697 # Check whether --with-native-debug-symbols was given. 47698 if test "${with_native_debug_symbols+set}" = set; then : 47699 withval=$with_native_debug_symbols; 47700 if test "x$OPENJDK_TARGET_OS" = xaix; then 47701 if test "x$withval" = xexternal || test "x$withval" = xzipped; then 47702 as_fn_error $? "AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols" "$LINENO" 5 47703 fi 47704 fi 47705 47706 else 47707 47708 if test "x$OPENJDK_TARGET_OS" = xaix; then 47709 # AIX doesn't support 'zipped' so use 'internal' as default 47710 with_native_debug_symbols="internal" 47711 else 47712 with_native_debug_symbols="zipped" 47713 fi 47714 47715 fi 47716 47717 NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols 47718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE_DEBUG_SYMBOLS" >&5 47719 $as_echo "$NATIVE_DEBUG_SYMBOLS" >&6; } 47720 47721 if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then 47722 47723 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 47724 if test "x$OBJCOPY" = x; then 47725 # enabling of enable-debug-symbols and can't find objcopy 47726 # this is an error 47727 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 47728 fi 47729 fi 47730 47731 ENABLE_DEBUG_SYMBOLS=true 47732 ZIP_DEBUGINFO_FILES=true 47733 DEBUG_BINARIES=true 47734 STRIP_POLICY=min_strip 47735 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then 47736 ENABLE_DEBUG_SYMBOLS=false 47737 ZIP_DEBUGINFO_FILES=false 47738 DEBUG_BINARIES=false 47739 STRIP_POLICY=no_strip 47740 elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then 47741 ENABLE_DEBUG_SYMBOLS=false # -g option only 47742 ZIP_DEBUGINFO_FILES=false 47743 DEBUG_BINARIES=true 47744 STRIP_POLICY=no_strip 47745 STRIP="" 47746 elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then 47747 47748 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 47749 if test "x$OBJCOPY" = x; then 47750 # enabling of enable-debug-symbols and can't find objcopy 47751 # this is an error 47752 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 47753 fi 47754 fi 47755 47756 ENABLE_DEBUG_SYMBOLS=true 47757 ZIP_DEBUGINFO_FILES=false 47758 DEBUG_BINARIES=true 47759 STRIP_POLICY=min_strip 47760 else 47761 as_fn_error $? "Allowed native debug symbols are: none, internal, external, zipped" "$LINENO" 5 47762 fi 47763 47764 # --enable-debug-symbols is deprecated. 47765 # Please use --with-native-debug-symbols=[internal,external,zipped] . 47766 47767 # Check whether --enable-debug-symbols was given. 47768 if test "${enable_debug_symbols+set}" = set; then : 47769 enableval=$enable_debug_symbols; 47770 fi 47771 47772 if test "x$enable_debug_symbols" != x; then 47773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&5 47774 $as_echo "$as_me: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&2;} 47775 47776 if test "xPlease use --with-native-debug-symbols=[internal,external,zipped] ." != x; then 47777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&5 47778 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&2;} 47779 fi 47780 47781 fi 47782 47783 47784 # --enable-zip-debug-info is deprecated. 47785 # Please use --with-native-debug-symbols=zipped . 47786 47787 # Check whether --enable-zip-debug-info was given. 47788 if test "${enable_zip_debug_info+set}" = set; then : 47789 enableval=$enable_zip_debug_info; 47790 fi 47791 47792 if test "x$enable_zip_debug_info" != x; then 47793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&5 47794 $as_echo "$as_me: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&2;} 47795 47796 if test "xPlease use --with-native-debug-symbols=zipped ." != x; then 47797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=zipped ." >&5 47798 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=zipped ." >&2;} 47799 fi 47800 47801 fi 47802 47803 47804 47805 47806 47807 47808 47809 47810 47811 # Check whether --enable-native-coverage was given. 47812 if test "${enable_native_coverage+set}" = set; then : 47813 enableval=$enable_native_coverage; 47814 fi 47815 47816 GCOV_ENABLED="false" 47817 if test "x$enable_native_coverage" = "xyes"; then 47818 if test "x$TOOLCHAIN_TYPE" = "xgcc"; then 47819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 47820 $as_echo_n "checking if native coverage is enabled... " >&6; } 47821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47822 $as_echo "yes" >&6; } 47823 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" 47824 GCOV_LDFLAGS="-fprofile-arcs" 47825 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $GCOV_CFLAGS" 47826 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $GCOV_CFLAGS" 47827 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $GCOV_LDFLAGS" 47828 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $GCOV_CFLAGS" 47829 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $GCOV_CFLAGS" 47830 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $GCOV_CFLAGS" 47831 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS" 47832 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS" 47833 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS" 47834 GCOV_ENABLED="true" 47835 else 47836 as_fn_error $? "--enable-native-coverage only works with toolchain type gcc" "$LINENO" 5 47837 fi 47838 elif test "x$enable_native_coverage" = "xno"; then 47839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 47840 $as_echo_n "checking if native coverage is enabled... " >&6; } 47841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47842 $as_echo "no" >&6; } 47843 elif test "x$enable_native_coverage" != "x"; then 47844 as_fn_error $? "--enable-native-coverage can only be assigned \"yes\" or \"no\"" "$LINENO" 5 47845 fi 47846 47847 47848 47849 47850 ############################################################################### 47851 # 47852 # Check dependencies for external and internal libraries. 47853 # 47854 ############################################################################### 47855 47856 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 47857 47858 # When using cygwin or msys, we need a wrapper binary that renames 47859 # /cygdrive/c/ arguments into c:/ arguments and peeks into 47860 # @files and rewrites these too! This wrapper binary is 47861 # called fixpath. 47862 FIXPATH= 47863 if test "x$OPENJDK_BUILD_OS" = xwindows; then 47864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 47865 $as_echo_n "checking if fixpath can be created... " >&6; } 47866 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 47867 FIXPATH_BIN="$CONFIGURESUPPORT_OUTPUTDIR/bin/fixpath.exe" 47868 FIXPATH_DIR="$CONFIGURESUPPORT_OUTPUTDIR/fixpath" 47869 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 47870 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 47871 FIXPATH="$FIXPATH_BIN -c" 47872 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 47873 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 47874 # @ was chosen as separator to minimize risk of other tools messing around with it 47875 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" \ 47876 | tr ' ' '\n' | grep '^/./' | sort | uniq` 47877 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 47878 FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list" 47879 fi 47880 FIXPATH_SRC_W="$FIXPATH_SRC" 47881 FIXPATH_BIN_W="$FIXPATH_BIN" 47882 47883 unix_path="$FIXPATH_SRC_W" 47884 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47885 windows_path=`$CYGPATH -m "$unix_path"` 47886 FIXPATH_SRC_W="$windows_path" 47887 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47888 windows_path=`cmd //c echo $unix_path` 47889 FIXPATH_SRC_W="$windows_path" 47890 fi 47891 47892 47893 unix_path="$FIXPATH_BIN_W" 47894 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47895 windows_path=`$CYGPATH -m "$unix_path"` 47896 FIXPATH_BIN_W="$windows_path" 47897 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47898 windows_path=`cmd //c echo $unix_path` 47899 FIXPATH_BIN_W="$windows_path" 47900 fi 47901 47902 $RM -rf $FIXPATH_BIN $FIXPATH_DIR 47903 $MKDIR -p $FIXPATH_DIR $CONFIGURESUPPORT_OUTPUTDIR/bin 47904 cd $FIXPATH_DIR 47905 $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1 47906 cd $CURDIR 47907 47908 if test ! -x $FIXPATH_BIN; then 47909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47910 $as_echo "no" >&6; } 47911 cat $FIXPATH_DIR/fixpath1.log 47912 as_fn_error $? "Could not create $FIXPATH_BIN" "$LINENO" 5 47913 fi 47914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47915 $as_echo "yes" >&6; } 47916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 47917 $as_echo_n "checking if fixpath.exe works... " >&6; } 47918 cd $FIXPATH_DIR 47919 $FIXPATH $CC $FIXPATH_SRC -Fe$FIXPATH_DIR/fixpath2.exe \ 47920 > $FIXPATH_DIR/fixpath2.log 2>&1 47921 cd $CURDIR 47922 if test ! -x $FIXPATH_DIR/fixpath2.exe; then 47923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47924 $as_echo "no" >&6; } 47925 cat $FIXPATH_DIR/fixpath2.log 47926 as_fn_error $? "fixpath did not work!" "$LINENO" 5 47927 fi 47928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47929 $as_echo "yes" >&6; } 47930 47931 FIXPATH_DETACH_FLAG="--detach" 47932 fi 47933 47934 47935 47936 47937 47938 47939 # Check if X11 is needed 47940 if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then 47941 # No X11 support on windows or macosx 47942 NEEDS_LIB_X11=false 47943 else 47944 if test "x$SUPPORT_HEADFUL" = xno; then 47945 # No X11 support if building headless-only 47946 NEEDS_LIB_X11=false 47947 else 47948 # All other instances need X11 47949 NEEDS_LIB_X11=true 47950 fi 47951 fi 47952 47953 # Check if cups is needed 47954 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47955 # Windows have a separate print system 47956 NEEDS_LIB_CUPS=false 47957 else 47958 NEEDS_LIB_CUPS=true 47959 fi 47960 47961 # Check if freetype is needed 47962 if test "x$OPENJDK" = "xtrue"; then 47963 NEEDS_LIB_FREETYPE=true 47964 else 47965 NEEDS_LIB_FREETYPE=false 47966 fi 47967 47968 # Check if alsa is needed 47969 if test "x$OPENJDK_TARGET_OS" = xlinux; then 47970 NEEDS_LIB_ALSA=true 47971 else 47972 NEEDS_LIB_ALSA=false 47973 fi 47974 47975 # Check if ffi is needed 47976 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 47977 NEEDS_LIB_FFI=true 47978 else 47979 NEEDS_LIB_FFI=false 47980 fi 47981 47982 47983 # statically link libstdc++ before C++ ABI is stablized on Linux unless 47984 # dynamic build is configured on command line. 47985 47986 # Check whether --with-stdc++lib was given. 47987 if test "${with_stdc__lib+set}" = set; then : 47988 withval=$with_stdc__lib; 47989 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 47990 && test "x$with_stdc__lib" != xdefault; then 47991 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 47992 fi 47993 47994 else 47995 with_stdc__lib=default 47996 47997 fi 47998 47999 48000 if test "x$OPENJDK_TARGET_OS" = xlinux; then 48001 # Test if -lstdc++ works. 48002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 48003 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 48004 ac_ext=cpp 48005 ac_cpp='$CXXCPP $CPPFLAGS' 48006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48009 48010 OLD_CXXFLAGS="$CXXFLAGS" 48011 CXXFLAGS="$CXXFLAGS -lstdc++" 48012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48013 /* end confdefs.h. */ 48014 48015 int 48016 main () 48017 { 48018 return 0; 48019 ; 48020 return 0; 48021 } 48022 _ACEOF 48023 if ac_fn_cxx_try_link "$LINENO"; then : 48024 has_dynamic_libstdcxx=yes 48025 else 48026 has_dynamic_libstdcxx=no 48027 fi 48028 rm -f core conftest.err conftest.$ac_objext \ 48029 conftest$ac_exeext conftest.$ac_ext 48030 CXXFLAGS="$OLD_CXXFLAGS" 48031 ac_ext=cpp 48032 ac_cpp='$CXXCPP $CPPFLAGS' 48033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48036 48037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 48038 $as_echo "$has_dynamic_libstdcxx" >&6; } 48039 48040 # Test if stdc++ can be linked statically. 48041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 48042 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 48043 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 48044 ac_ext=cpp 48045 ac_cpp='$CXXCPP $CPPFLAGS' 48046 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48047 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48048 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48049 48050 OLD_LIBS="$LIBS" 48051 OLD_CXX="$CXX" 48052 LIBS="$STATIC_STDCXX_FLAGS" 48053 CXX="$CC" 48054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48055 /* end confdefs.h. */ 48056 48057 int 48058 main () 48059 { 48060 return 0; 48061 ; 48062 return 0; 48063 } 48064 _ACEOF 48065 if ac_fn_cxx_try_link "$LINENO"; then : 48066 has_static_libstdcxx=yes 48067 else 48068 has_static_libstdcxx=no 48069 fi 48070 rm -f core conftest.err conftest.$ac_objext \ 48071 conftest$ac_exeext conftest.$ac_ext 48072 LIBS="$OLD_LIBS" 48073 CXX="$OLD_CXX" 48074 ac_ext=cpp 48075 ac_cpp='$CXXCPP $CPPFLAGS' 48076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48079 48080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 48081 $as_echo "$has_static_libstdcxx" >&6; } 48082 48083 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 48084 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 48085 fi 48086 48087 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 48088 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 48089 fi 48090 48091 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 48092 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 48093 fi 48094 48095 # If dynamic was requested, it's available since it would fail above otherwise. 48096 # If dynamic wasn't requested, go with static unless it isn't available. 48097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 48098 $as_echo_n "checking how to link with libstdc++... " >&6; } 48099 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 48100 LIBCXX="$LIBCXX -lstdc++" 48101 LDCXX="$CXX" 48102 STATIC_CXX_SETTING="STATIC_CXX=false" 48103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 48104 $as_echo "dynamic" >&6; } 48105 else 48106 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 48107 LDCXX="$CC" 48108 STATIC_CXX_SETTING="STATIC_CXX=true" 48109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 48110 $as_echo "static" >&6; } 48111 fi 48112 fi 48113 48114 48115 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 48116 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 48117 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 48118 fi 48119 48120 # TODO better (platform agnostic) test 48121 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then 48122 LIBCXX="-lstdc++" 48123 fi 48124 48125 48126 # Setup Windows runtime dlls 48127 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 48128 48129 48130 # Check whether --with-msvcr-dll was given. 48131 if test "${with_msvcr_dll+set}" = set; then : 48132 withval=$with_msvcr_dll; 48133 fi 48134 48135 48136 if test "x$with_msvcr_dll" != x; then 48137 # If given explicitely by user, do not probe. If not present, fail directly. 48138 48139 DLL_NAME="$MSVCR_NAME" 48140 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 48141 METHOD="--with-msvcr-dll" 48142 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 48143 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 48144 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 48145 48146 # Need to check if the found msvcr is correct architecture 48147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 48148 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 48149 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 48150 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48151 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 48152 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 48153 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48154 CORRECT_MSVCR_ARCH="PE32 executable" 48155 else 48156 CORRECT_MSVCR_ARCH="PE32+ executable" 48157 fi 48158 else 48159 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48160 CORRECT_MSVCR_ARCH=386 48161 else 48162 CORRECT_MSVCR_ARCH=x86-64 48163 fi 48164 fi 48165 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 48166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 48167 $as_echo "ok" >&6; } 48168 MSVC_DLL="$POSSIBLE_MSVC_DLL" 48169 48170 # Only process if variable expands to non-empty 48171 48172 if test "x$MSVC_DLL" != x; then 48173 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48174 48175 # Input might be given as Windows format, start by converting to 48176 # unix format. 48177 path="$MSVC_DLL" 48178 new_path=`$CYGPATH -u "$path"` 48179 48180 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48181 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48182 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48183 # "foo.exe" is OK but "foo" is an error. 48184 # 48185 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48186 # It is also a way to make sure we got the proper file name for the real test later on. 48187 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48188 if test "x$test_shortpath" = x; then 48189 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 48190 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 48191 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 48192 fi 48193 48194 # Call helper function which possibly converts this using DOS-style short mode. 48195 # If so, the updated path is stored in $new_path. 48196 48197 input_path="$new_path" 48198 # Check if we need to convert this using DOS-style short mode. If the path 48199 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48200 # take no chances and rewrite it. 48201 # Note: m4 eats our [], so we need to use [ and ] instead. 48202 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48203 if test "x$has_forbidden_chars" != x; then 48204 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48205 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48206 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48207 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48208 # Going to short mode and back again did indeed matter. Since short mode is 48209 # case insensitive, let's make it lowercase to improve readability. 48210 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48211 # Now convert it back to Unix-style (cygpath) 48212 input_path=`$CYGPATH -u "$shortmode_path"` 48213 new_path="$input_path" 48214 fi 48215 fi 48216 48217 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48218 if test "x$test_cygdrive_prefix" = x; then 48219 # As a simple fix, exclude /usr/bin since it's not a real path. 48220 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48221 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48222 # a path prefixed by /cygdrive for fixpath to work. 48223 new_path="$CYGWIN_ROOT_PATH$input_path" 48224 fi 48225 fi 48226 48227 48228 if test "x$path" != "x$new_path"; then 48229 MSVC_DLL="$new_path" 48230 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 48231 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 48232 fi 48233 48234 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48235 48236 path="$MSVC_DLL" 48237 has_colon=`$ECHO $path | $GREP ^.:` 48238 new_path="$path" 48239 if test "x$has_colon" = x; then 48240 # Not in mixed or Windows style, start by that. 48241 new_path=`cmd //c echo $path` 48242 fi 48243 48244 48245 input_path="$new_path" 48246 # Check if we need to convert this using DOS-style short mode. If the path 48247 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48248 # take no chances and rewrite it. 48249 # Note: m4 eats our [], so we need to use [ and ] instead. 48250 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48251 if test "x$has_forbidden_chars" != x; then 48252 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48253 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48254 fi 48255 48256 48257 windows_path="$new_path" 48258 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48259 unix_path=`$CYGPATH -u "$windows_path"` 48260 new_path="$unix_path" 48261 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48262 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48263 new_path="$unix_path" 48264 fi 48265 48266 if test "x$path" != "x$new_path"; then 48267 MSVC_DLL="$new_path" 48268 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 48269 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 48270 fi 48271 48272 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48273 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48274 48275 else 48276 # We're on a unix platform. Hooray! :) 48277 path="$MSVC_DLL" 48278 has_space=`$ECHO "$path" | $GREP " "` 48279 if test "x$has_space" != x; then 48280 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 48281 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 48282 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48283 fi 48284 48285 # Use eval to expand a potential ~ 48286 eval path="$path" 48287 if test ! -f "$path" && test ! -d "$path"; then 48288 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 48289 fi 48290 48291 if test -d "$path"; then 48292 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 48293 else 48294 dir="`$DIRNAME "$path"`" 48295 base="`$BASENAME "$path"`" 48296 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 48297 fi 48298 fi 48299 fi 48300 48301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 48302 $as_echo_n "checking for $DLL_NAME... " >&6; } 48303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 48304 $as_echo "$MSVC_DLL" >&6; } 48305 else 48306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 48307 $as_echo "incorrect, ignoring" >&6; } 48308 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 48309 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 48310 fi 48311 fi 48312 48313 if test "x$MSVC_DLL" = x; then 48314 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 48315 fi 48316 MSVCR_DLL="$MSVC_DLL" 48317 elif test "x$DEVKIT_MSVCR_DLL" != x; then 48318 48319 DLL_NAME="$MSVCR_NAME" 48320 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCR_DLL" 48321 METHOD="devkit" 48322 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 48323 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 48324 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 48325 48326 # Need to check if the found msvcr is correct architecture 48327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 48328 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 48329 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 48330 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48331 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 48332 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 48333 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48334 CORRECT_MSVCR_ARCH="PE32 executable" 48335 else 48336 CORRECT_MSVCR_ARCH="PE32+ executable" 48337 fi 48338 else 48339 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48340 CORRECT_MSVCR_ARCH=386 48341 else 48342 CORRECT_MSVCR_ARCH=x86-64 48343 fi 48344 fi 48345 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 48346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 48347 $as_echo "ok" >&6; } 48348 MSVC_DLL="$POSSIBLE_MSVC_DLL" 48349 48350 # Only process if variable expands to non-empty 48351 48352 if test "x$MSVC_DLL" != x; then 48353 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48354 48355 # Input might be given as Windows format, start by converting to 48356 # unix format. 48357 path="$MSVC_DLL" 48358 new_path=`$CYGPATH -u "$path"` 48359 48360 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48361 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48362 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48363 # "foo.exe" is OK but "foo" is an error. 48364 # 48365 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48366 # It is also a way to make sure we got the proper file name for the real test later on. 48367 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48368 if test "x$test_shortpath" = x; then 48369 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 48370 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 48371 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 48372 fi 48373 48374 # Call helper function which possibly converts this using DOS-style short mode. 48375 # If so, the updated path is stored in $new_path. 48376 48377 input_path="$new_path" 48378 # Check if we need to convert this using DOS-style short mode. If the path 48379 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48380 # take no chances and rewrite it. 48381 # Note: m4 eats our [], so we need to use [ and ] instead. 48382 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48383 if test "x$has_forbidden_chars" != x; then 48384 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48385 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48386 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48387 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48388 # Going to short mode and back again did indeed matter. Since short mode is 48389 # case insensitive, let's make it lowercase to improve readability. 48390 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48391 # Now convert it back to Unix-style (cygpath) 48392 input_path=`$CYGPATH -u "$shortmode_path"` 48393 new_path="$input_path" 48394 fi 48395 fi 48396 48397 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48398 if test "x$test_cygdrive_prefix" = x; then 48399 # As a simple fix, exclude /usr/bin since it's not a real path. 48400 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48401 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48402 # a path prefixed by /cygdrive for fixpath to work. 48403 new_path="$CYGWIN_ROOT_PATH$input_path" 48404 fi 48405 fi 48406 48407 48408 if test "x$path" != "x$new_path"; then 48409 MSVC_DLL="$new_path" 48410 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 48411 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 48412 fi 48413 48414 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48415 48416 path="$MSVC_DLL" 48417 has_colon=`$ECHO $path | $GREP ^.:` 48418 new_path="$path" 48419 if test "x$has_colon" = x; then 48420 # Not in mixed or Windows style, start by that. 48421 new_path=`cmd //c echo $path` 48422 fi 48423 48424 48425 input_path="$new_path" 48426 # Check if we need to convert this using DOS-style short mode. If the path 48427 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48428 # take no chances and rewrite it. 48429 # Note: m4 eats our [], so we need to use [ and ] instead. 48430 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48431 if test "x$has_forbidden_chars" != x; then 48432 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48433 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48434 fi 48435 48436 48437 windows_path="$new_path" 48438 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48439 unix_path=`$CYGPATH -u "$windows_path"` 48440 new_path="$unix_path" 48441 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48442 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48443 new_path="$unix_path" 48444 fi 48445 48446 if test "x$path" != "x$new_path"; then 48447 MSVC_DLL="$new_path" 48448 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 48449 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 48450 fi 48451 48452 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48453 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48454 48455 else 48456 # We're on a unix platform. Hooray! :) 48457 path="$MSVC_DLL" 48458 has_space=`$ECHO "$path" | $GREP " "` 48459 if test "x$has_space" != x; then 48460 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 48461 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 48462 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48463 fi 48464 48465 # Use eval to expand a potential ~ 48466 eval path="$path" 48467 if test ! -f "$path" && test ! -d "$path"; then 48468 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 48469 fi 48470 48471 if test -d "$path"; then 48472 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 48473 else 48474 dir="`$DIRNAME "$path"`" 48475 base="`$BASENAME "$path"`" 48476 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 48477 fi 48478 fi 48479 fi 48480 48481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 48482 $as_echo_n "checking for $DLL_NAME... " >&6; } 48483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 48484 $as_echo "$MSVC_DLL" >&6; } 48485 else 48486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 48487 $as_echo "incorrect, ignoring" >&6; } 48488 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 48489 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 48490 fi 48491 fi 48492 48493 if test "x$MSVC_DLL" = x; then 48494 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by devkit" "$LINENO" 5 48495 fi 48496 MSVCR_DLL="$MSVC_DLL" 48497 else 48498 48499 DLL_NAME="${MSVCR_NAME}" 48500 MSVC_DLL= 48501 48502 if test "x$MSVC_DLL" = x; then 48503 # Probe: Using well-known location from Visual Studio 10.0 48504 if test "x$VCINSTALLDIR" != x; then 48505 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 48506 48507 windows_path="$CYGWIN_VC_INSTALL_DIR" 48508 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48509 unix_path=`$CYGPATH -u "$windows_path"` 48510 CYGWIN_VC_INSTALL_DIR="$unix_path" 48511 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48512 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48513 CYGWIN_VC_INSTALL_DIR="$unix_path" 48514 fi 48515 48516 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 48517 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 48518 else 48519 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 48520 fi 48521 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 48522 48523 DLL_NAME="$DLL_NAME" 48524 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 48525 METHOD="well-known location in VCINSTALLDIR" 48526 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 48527 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 48528 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 48529 48530 # Need to check if the found msvcr is correct architecture 48531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 48532 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 48533 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 48534 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48535 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 48536 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 48537 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48538 CORRECT_MSVCR_ARCH="PE32 executable" 48539 else 48540 CORRECT_MSVCR_ARCH="PE32+ executable" 48541 fi 48542 else 48543 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48544 CORRECT_MSVCR_ARCH=386 48545 else 48546 CORRECT_MSVCR_ARCH=x86-64 48547 fi 48548 fi 48549 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 48550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 48551 $as_echo "ok" >&6; } 48552 MSVC_DLL="$POSSIBLE_MSVC_DLL" 48553 48554 # Only process if variable expands to non-empty 48555 48556 if test "x$MSVC_DLL" != x; then 48557 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48558 48559 # Input might be given as Windows format, start by converting to 48560 # unix format. 48561 path="$MSVC_DLL" 48562 new_path=`$CYGPATH -u "$path"` 48563 48564 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48565 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48566 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48567 # "foo.exe" is OK but "foo" is an error. 48568 # 48569 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48570 # It is also a way to make sure we got the proper file name for the real test later on. 48571 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48572 if test "x$test_shortpath" = x; then 48573 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 48574 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 48575 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 48576 fi 48577 48578 # Call helper function which possibly converts this using DOS-style short mode. 48579 # If so, the updated path is stored in $new_path. 48580 48581 input_path="$new_path" 48582 # Check if we need to convert this using DOS-style short mode. If the path 48583 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48584 # take no chances and rewrite it. 48585 # Note: m4 eats our [], so we need to use [ and ] instead. 48586 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48587 if test "x$has_forbidden_chars" != x; then 48588 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48589 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48590 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48591 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48592 # Going to short mode and back again did indeed matter. Since short mode is 48593 # case insensitive, let's make it lowercase to improve readability. 48594 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48595 # Now convert it back to Unix-style (cygpath) 48596 input_path=`$CYGPATH -u "$shortmode_path"` 48597 new_path="$input_path" 48598 fi 48599 fi 48600 48601 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48602 if test "x$test_cygdrive_prefix" = x; then 48603 # As a simple fix, exclude /usr/bin since it's not a real path. 48604 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48605 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48606 # a path prefixed by /cygdrive for fixpath to work. 48607 new_path="$CYGWIN_ROOT_PATH$input_path" 48608 fi 48609 fi 48610 48611 48612 if test "x$path" != "x$new_path"; then 48613 MSVC_DLL="$new_path" 48614 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 48615 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 48616 fi 48617 48618 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48619 48620 path="$MSVC_DLL" 48621 has_colon=`$ECHO $path | $GREP ^.:` 48622 new_path="$path" 48623 if test "x$has_colon" = x; then 48624 # Not in mixed or Windows style, start by that. 48625 new_path=`cmd //c echo $path` 48626 fi 48627 48628 48629 input_path="$new_path" 48630 # Check if we need to convert this using DOS-style short mode. If the path 48631 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48632 # take no chances and rewrite it. 48633 # Note: m4 eats our [], so we need to use [ and ] instead. 48634 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48635 if test "x$has_forbidden_chars" != x; then 48636 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48637 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48638 fi 48639 48640 48641 windows_path="$new_path" 48642 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48643 unix_path=`$CYGPATH -u "$windows_path"` 48644 new_path="$unix_path" 48645 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48646 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48647 new_path="$unix_path" 48648 fi 48649 48650 if test "x$path" != "x$new_path"; then 48651 MSVC_DLL="$new_path" 48652 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 48653 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 48654 fi 48655 48656 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48657 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48658 48659 else 48660 # We're on a unix platform. Hooray! :) 48661 path="$MSVC_DLL" 48662 has_space=`$ECHO "$path" | $GREP " "` 48663 if test "x$has_space" != x; then 48664 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 48665 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 48666 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48667 fi 48668 48669 # Use eval to expand a potential ~ 48670 eval path="$path" 48671 if test ! -f "$path" && test ! -d "$path"; then 48672 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 48673 fi 48674 48675 if test -d "$path"; then 48676 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 48677 else 48678 dir="`$DIRNAME "$path"`" 48679 base="`$BASENAME "$path"`" 48680 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 48681 fi 48682 fi 48683 fi 48684 48685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 48686 $as_echo_n "checking for $DLL_NAME... " >&6; } 48687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 48688 $as_echo "$MSVC_DLL" >&6; } 48689 else 48690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 48691 $as_echo "incorrect, ignoring" >&6; } 48692 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 48693 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 48694 fi 48695 fi 48696 48697 fi 48698 fi 48699 48700 if test "x$MSVC_DLL" = x; then 48701 # Probe: Check in the Boot JDK directory. 48702 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 48703 48704 DLL_NAME="$DLL_NAME" 48705 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 48706 METHOD="well-known location in Boot JDK" 48707 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 48708 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 48709 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 48710 48711 # Need to check if the found msvcr is correct architecture 48712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 48713 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 48714 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 48715 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48716 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 48717 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 48718 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48719 CORRECT_MSVCR_ARCH="PE32 executable" 48720 else 48721 CORRECT_MSVCR_ARCH="PE32+ executable" 48722 fi 48723 else 48724 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48725 CORRECT_MSVCR_ARCH=386 48726 else 48727 CORRECT_MSVCR_ARCH=x86-64 48728 fi 48729 fi 48730 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 48731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 48732 $as_echo "ok" >&6; } 48733 MSVC_DLL="$POSSIBLE_MSVC_DLL" 48734 48735 # Only process if variable expands to non-empty 48736 48737 if test "x$MSVC_DLL" != x; then 48738 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48739 48740 # Input might be given as Windows format, start by converting to 48741 # unix format. 48742 path="$MSVC_DLL" 48743 new_path=`$CYGPATH -u "$path"` 48744 48745 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48746 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48747 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48748 # "foo.exe" is OK but "foo" is an error. 48749 # 48750 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48751 # It is also a way to make sure we got the proper file name for the real test later on. 48752 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48753 if test "x$test_shortpath" = x; then 48754 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 48755 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 48756 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 48757 fi 48758 48759 # Call helper function which possibly converts this using DOS-style short mode. 48760 # If so, the updated path is stored in $new_path. 48761 48762 input_path="$new_path" 48763 # Check if we need to convert this using DOS-style short mode. If the path 48764 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48765 # take no chances and rewrite it. 48766 # Note: m4 eats our [], so we need to use [ and ] instead. 48767 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48768 if test "x$has_forbidden_chars" != x; then 48769 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48770 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48771 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48772 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48773 # Going to short mode and back again did indeed matter. Since short mode is 48774 # case insensitive, let's make it lowercase to improve readability. 48775 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48776 # Now convert it back to Unix-style (cygpath) 48777 input_path=`$CYGPATH -u "$shortmode_path"` 48778 new_path="$input_path" 48779 fi 48780 fi 48781 48782 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48783 if test "x$test_cygdrive_prefix" = x; then 48784 # As a simple fix, exclude /usr/bin since it's not a real path. 48785 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48786 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48787 # a path prefixed by /cygdrive for fixpath to work. 48788 new_path="$CYGWIN_ROOT_PATH$input_path" 48789 fi 48790 fi 48791 48792 48793 if test "x$path" != "x$new_path"; then 48794 MSVC_DLL="$new_path" 48795 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 48796 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 48797 fi 48798 48799 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48800 48801 path="$MSVC_DLL" 48802 has_colon=`$ECHO $path | $GREP ^.:` 48803 new_path="$path" 48804 if test "x$has_colon" = x; then 48805 # Not in mixed or Windows style, start by that. 48806 new_path=`cmd //c echo $path` 48807 fi 48808 48809 48810 input_path="$new_path" 48811 # Check if we need to convert this using DOS-style short mode. If the path 48812 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48813 # take no chances and rewrite it. 48814 # Note: m4 eats our [], so we need to use [ and ] instead. 48815 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48816 if test "x$has_forbidden_chars" != x; then 48817 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48818 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48819 fi 48820 48821 48822 windows_path="$new_path" 48823 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48824 unix_path=`$CYGPATH -u "$windows_path"` 48825 new_path="$unix_path" 48826 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48827 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48828 new_path="$unix_path" 48829 fi 48830 48831 if test "x$path" != "x$new_path"; then 48832 MSVC_DLL="$new_path" 48833 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 48834 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 48835 fi 48836 48837 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48838 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48839 48840 else 48841 # We're on a unix platform. Hooray! :) 48842 path="$MSVC_DLL" 48843 has_space=`$ECHO "$path" | $GREP " "` 48844 if test "x$has_space" != x; then 48845 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 48846 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 48847 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48848 fi 48849 48850 # Use eval to expand a potential ~ 48851 eval path="$path" 48852 if test ! -f "$path" && test ! -d "$path"; then 48853 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 48854 fi 48855 48856 if test -d "$path"; then 48857 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 48858 else 48859 dir="`$DIRNAME "$path"`" 48860 base="`$BASENAME "$path"`" 48861 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 48862 fi 48863 fi 48864 fi 48865 48866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 48867 $as_echo_n "checking for $DLL_NAME... " >&6; } 48868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 48869 $as_echo "$MSVC_DLL" >&6; } 48870 else 48871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 48872 $as_echo "incorrect, ignoring" >&6; } 48873 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 48874 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 48875 fi 48876 fi 48877 48878 fi 48879 48880 if test "x$MSVC_DLL" = x; then 48881 # Probe: Look in the Windows system32 directory 48882 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 48883 48884 windows_path="$CYGWIN_SYSTEMROOT" 48885 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48886 unix_path=`$CYGPATH -u "$windows_path"` 48887 CYGWIN_SYSTEMROOT="$unix_path" 48888 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48889 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48890 CYGWIN_SYSTEMROOT="$unix_path" 48891 fi 48892 48893 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 48894 48895 DLL_NAME="$DLL_NAME" 48896 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 48897 METHOD="well-known location in SYSTEMROOT" 48898 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 48899 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 48900 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 48901 48902 # Need to check if the found msvcr is correct architecture 48903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 48904 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 48905 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 48906 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48907 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 48908 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 48909 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48910 CORRECT_MSVCR_ARCH="PE32 executable" 48911 else 48912 CORRECT_MSVCR_ARCH="PE32+ executable" 48913 fi 48914 else 48915 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48916 CORRECT_MSVCR_ARCH=386 48917 else 48918 CORRECT_MSVCR_ARCH=x86-64 48919 fi 48920 fi 48921 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 48922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 48923 $as_echo "ok" >&6; } 48924 MSVC_DLL="$POSSIBLE_MSVC_DLL" 48925 48926 # Only process if variable expands to non-empty 48927 48928 if test "x$MSVC_DLL" != x; then 48929 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48930 48931 # Input might be given as Windows format, start by converting to 48932 # unix format. 48933 path="$MSVC_DLL" 48934 new_path=`$CYGPATH -u "$path"` 48935 48936 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48937 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48938 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48939 # "foo.exe" is OK but "foo" is an error. 48940 # 48941 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48942 # It is also a way to make sure we got the proper file name for the real test later on. 48943 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48944 if test "x$test_shortpath" = x; then 48945 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 48946 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 48947 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 48948 fi 48949 48950 # Call helper function which possibly converts this using DOS-style short mode. 48951 # If so, the updated path is stored in $new_path. 48952 48953 input_path="$new_path" 48954 # Check if we need to convert this using DOS-style short mode. If the path 48955 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48956 # take no chances and rewrite it. 48957 # Note: m4 eats our [], so we need to use [ and ] instead. 48958 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48959 if test "x$has_forbidden_chars" != x; then 48960 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48961 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48962 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48963 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48964 # Going to short mode and back again did indeed matter. Since short mode is 48965 # case insensitive, let's make it lowercase to improve readability. 48966 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48967 # Now convert it back to Unix-style (cygpath) 48968 input_path=`$CYGPATH -u "$shortmode_path"` 48969 new_path="$input_path" 48970 fi 48971 fi 48972 48973 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48974 if test "x$test_cygdrive_prefix" = x; then 48975 # As a simple fix, exclude /usr/bin since it's not a real path. 48976 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48977 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48978 # a path prefixed by /cygdrive for fixpath to work. 48979 new_path="$CYGWIN_ROOT_PATH$input_path" 48980 fi 48981 fi 48982 48983 48984 if test "x$path" != "x$new_path"; then 48985 MSVC_DLL="$new_path" 48986 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 48987 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 48988 fi 48989 48990 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48991 48992 path="$MSVC_DLL" 48993 has_colon=`$ECHO $path | $GREP ^.:` 48994 new_path="$path" 48995 if test "x$has_colon" = x; then 48996 # Not in mixed or Windows style, start by that. 48997 new_path=`cmd //c echo $path` 48998 fi 48999 49000 49001 input_path="$new_path" 49002 # Check if we need to convert this using DOS-style short mode. If the path 49003 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49004 # take no chances and rewrite it. 49005 # Note: m4 eats our [], so we need to use [ and ] instead. 49006 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49007 if test "x$has_forbidden_chars" != x; then 49008 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49009 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49010 fi 49011 49012 49013 windows_path="$new_path" 49014 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49015 unix_path=`$CYGPATH -u "$windows_path"` 49016 new_path="$unix_path" 49017 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49018 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49019 new_path="$unix_path" 49020 fi 49021 49022 if test "x$path" != "x$new_path"; then 49023 MSVC_DLL="$new_path" 49024 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49025 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49026 fi 49027 49028 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49029 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49030 49031 else 49032 # We're on a unix platform. Hooray! :) 49033 path="$MSVC_DLL" 49034 has_space=`$ECHO "$path" | $GREP " "` 49035 if test "x$has_space" != x; then 49036 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49037 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49038 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49039 fi 49040 49041 # Use eval to expand a potential ~ 49042 eval path="$path" 49043 if test ! -f "$path" && test ! -d "$path"; then 49044 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49045 fi 49046 49047 if test -d "$path"; then 49048 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49049 else 49050 dir="`$DIRNAME "$path"`" 49051 base="`$BASENAME "$path"`" 49052 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 49053 fi 49054 fi 49055 fi 49056 49057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49058 $as_echo_n "checking for $DLL_NAME... " >&6; } 49059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49060 $as_echo "$MSVC_DLL" >&6; } 49061 else 49062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49063 $as_echo "incorrect, ignoring" >&6; } 49064 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49065 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49066 fi 49067 fi 49068 49069 fi 49070 49071 if test "x$MSVC_DLL" = x; then 49072 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 49073 if test "x$VS100COMNTOOLS" != x; then 49074 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 49075 49076 windows_path="$CYGWIN_VS_TOOLS_DIR" 49077 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49078 unix_path=`$CYGPATH -u "$windows_path"` 49079 CYGWIN_VS_TOOLS_DIR="$unix_path" 49080 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49081 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49082 CYGWIN_VS_TOOLS_DIR="$unix_path" 49083 fi 49084 49085 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49086 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 49087 | $GREP -i /x64/ | $HEAD --lines 1` 49088 else 49089 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 49090 | $GREP -i /x86/ | $HEAD --lines 1` 49091 fi 49092 49093 DLL_NAME="$DLL_NAME" 49094 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 49095 METHOD="search of VS100COMNTOOLS" 49096 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49097 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49098 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49099 49100 # Need to check if the found msvcr is correct architecture 49101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49102 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49103 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49104 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49105 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49106 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49107 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49108 CORRECT_MSVCR_ARCH="PE32 executable" 49109 else 49110 CORRECT_MSVCR_ARCH="PE32+ executable" 49111 fi 49112 else 49113 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49114 CORRECT_MSVCR_ARCH=386 49115 else 49116 CORRECT_MSVCR_ARCH=x86-64 49117 fi 49118 fi 49119 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49121 $as_echo "ok" >&6; } 49122 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49123 49124 # Only process if variable expands to non-empty 49125 49126 if test "x$MSVC_DLL" != x; then 49127 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49128 49129 # Input might be given as Windows format, start by converting to 49130 # unix format. 49131 path="$MSVC_DLL" 49132 new_path=`$CYGPATH -u "$path"` 49133 49134 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49135 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49136 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49137 # "foo.exe" is OK but "foo" is an error. 49138 # 49139 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49140 # It is also a way to make sure we got the proper file name for the real test later on. 49141 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49142 if test "x$test_shortpath" = x; then 49143 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49144 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49145 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49146 fi 49147 49148 # Call helper function which possibly converts this using DOS-style short mode. 49149 # If so, the updated path is stored in $new_path. 49150 49151 input_path="$new_path" 49152 # Check if we need to convert this using DOS-style short mode. If the path 49153 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49154 # take no chances and rewrite it. 49155 # Note: m4 eats our [], so we need to use [ and ] instead. 49156 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49157 if test "x$has_forbidden_chars" != x; then 49158 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49159 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49160 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49161 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49162 # Going to short mode and back again did indeed matter. Since short mode is 49163 # case insensitive, let's make it lowercase to improve readability. 49164 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49165 # Now convert it back to Unix-style (cygpath) 49166 input_path=`$CYGPATH -u "$shortmode_path"` 49167 new_path="$input_path" 49168 fi 49169 fi 49170 49171 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49172 if test "x$test_cygdrive_prefix" = x; then 49173 # As a simple fix, exclude /usr/bin since it's not a real path. 49174 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49175 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49176 # a path prefixed by /cygdrive for fixpath to work. 49177 new_path="$CYGWIN_ROOT_PATH$input_path" 49178 fi 49179 fi 49180 49181 49182 if test "x$path" != "x$new_path"; then 49183 MSVC_DLL="$new_path" 49184 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49185 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49186 fi 49187 49188 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49189 49190 path="$MSVC_DLL" 49191 has_colon=`$ECHO $path | $GREP ^.:` 49192 new_path="$path" 49193 if test "x$has_colon" = x; then 49194 # Not in mixed or Windows style, start by that. 49195 new_path=`cmd //c echo $path` 49196 fi 49197 49198 49199 input_path="$new_path" 49200 # Check if we need to convert this using DOS-style short mode. If the path 49201 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49202 # take no chances and rewrite it. 49203 # Note: m4 eats our [], so we need to use [ and ] instead. 49204 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49205 if test "x$has_forbidden_chars" != x; then 49206 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49207 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49208 fi 49209 49210 49211 windows_path="$new_path" 49212 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49213 unix_path=`$CYGPATH -u "$windows_path"` 49214 new_path="$unix_path" 49215 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49216 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49217 new_path="$unix_path" 49218 fi 49219 49220 if test "x$path" != "x$new_path"; then 49221 MSVC_DLL="$new_path" 49222 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49223 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49224 fi 49225 49226 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49227 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49228 49229 else 49230 # We're on a unix platform. Hooray! :) 49231 path="$MSVC_DLL" 49232 has_space=`$ECHO "$path" | $GREP " "` 49233 if test "x$has_space" != x; then 49234 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49235 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49236 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49237 fi 49238 49239 # Use eval to expand a potential ~ 49240 eval path="$path" 49241 if test ! -f "$path" && test ! -d "$path"; then 49242 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49243 fi 49244 49245 if test -d "$path"; then 49246 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49247 else 49248 dir="`$DIRNAME "$path"`" 49249 base="`$BASENAME "$path"`" 49250 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 49251 fi 49252 fi 49253 fi 49254 49255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49256 $as_echo_n "checking for $DLL_NAME... " >&6; } 49257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49258 $as_echo "$MSVC_DLL" >&6; } 49259 else 49260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49261 $as_echo "incorrect, ignoring" >&6; } 49262 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49263 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49264 fi 49265 fi 49266 49267 fi 49268 fi 49269 49270 if test "x$MSVC_DLL" = x; then 49271 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 49272 # (This was the original behaviour; kept since it might turn something up) 49273 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 49274 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49275 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 49276 | $GREP x64 | $HEAD --lines 1` 49277 else 49278 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 49279 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 49280 if test "x$POSSIBLE_MSVC_DLL" = x; then 49281 # We're grasping at straws now... 49282 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 49283 | $HEAD --lines 1` 49284 fi 49285 fi 49286 49287 49288 DLL_NAME="$DLL_NAME" 49289 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 49290 METHOD="search of VCINSTALLDIR" 49291 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49292 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49293 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49294 49295 # Need to check if the found msvcr is correct architecture 49296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49297 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49298 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49299 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49300 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49301 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49302 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49303 CORRECT_MSVCR_ARCH="PE32 executable" 49304 else 49305 CORRECT_MSVCR_ARCH="PE32+ executable" 49306 fi 49307 else 49308 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49309 CORRECT_MSVCR_ARCH=386 49310 else 49311 CORRECT_MSVCR_ARCH=x86-64 49312 fi 49313 fi 49314 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49316 $as_echo "ok" >&6; } 49317 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49318 49319 # Only process if variable expands to non-empty 49320 49321 if test "x$MSVC_DLL" != x; then 49322 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49323 49324 # Input might be given as Windows format, start by converting to 49325 # unix format. 49326 path="$MSVC_DLL" 49327 new_path=`$CYGPATH -u "$path"` 49328 49329 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49330 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49331 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49332 # "foo.exe" is OK but "foo" is an error. 49333 # 49334 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49335 # It is also a way to make sure we got the proper file name for the real test later on. 49336 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49337 if test "x$test_shortpath" = x; then 49338 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49339 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49340 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49341 fi 49342 49343 # Call helper function which possibly converts this using DOS-style short mode. 49344 # If so, the updated path is stored in $new_path. 49345 49346 input_path="$new_path" 49347 # Check if we need to convert this using DOS-style short mode. If the path 49348 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49349 # take no chances and rewrite it. 49350 # Note: m4 eats our [], so we need to use [ and ] instead. 49351 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49352 if test "x$has_forbidden_chars" != x; then 49353 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49354 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49355 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49356 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49357 # Going to short mode and back again did indeed matter. Since short mode is 49358 # case insensitive, let's make it lowercase to improve readability. 49359 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49360 # Now convert it back to Unix-style (cygpath) 49361 input_path=`$CYGPATH -u "$shortmode_path"` 49362 new_path="$input_path" 49363 fi 49364 fi 49365 49366 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49367 if test "x$test_cygdrive_prefix" = x; then 49368 # As a simple fix, exclude /usr/bin since it's not a real path. 49369 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49370 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49371 # a path prefixed by /cygdrive for fixpath to work. 49372 new_path="$CYGWIN_ROOT_PATH$input_path" 49373 fi 49374 fi 49375 49376 49377 if test "x$path" != "x$new_path"; then 49378 MSVC_DLL="$new_path" 49379 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49380 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49381 fi 49382 49383 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49384 49385 path="$MSVC_DLL" 49386 has_colon=`$ECHO $path | $GREP ^.:` 49387 new_path="$path" 49388 if test "x$has_colon" = x; then 49389 # Not in mixed or Windows style, start by that. 49390 new_path=`cmd //c echo $path` 49391 fi 49392 49393 49394 input_path="$new_path" 49395 # Check if we need to convert this using DOS-style short mode. If the path 49396 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49397 # take no chances and rewrite it. 49398 # Note: m4 eats our [], so we need to use [ and ] instead. 49399 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49400 if test "x$has_forbidden_chars" != x; then 49401 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49402 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49403 fi 49404 49405 49406 windows_path="$new_path" 49407 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49408 unix_path=`$CYGPATH -u "$windows_path"` 49409 new_path="$unix_path" 49410 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49411 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49412 new_path="$unix_path" 49413 fi 49414 49415 if test "x$path" != "x$new_path"; then 49416 MSVC_DLL="$new_path" 49417 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49418 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49419 fi 49420 49421 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49422 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49423 49424 else 49425 # We're on a unix platform. Hooray! :) 49426 path="$MSVC_DLL" 49427 has_space=`$ECHO "$path" | $GREP " "` 49428 if test "x$has_space" != x; then 49429 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49430 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49431 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49432 fi 49433 49434 # Use eval to expand a potential ~ 49435 eval path="$path" 49436 if test ! -f "$path" && test ! -d "$path"; then 49437 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49438 fi 49439 49440 if test -d "$path"; then 49441 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49442 else 49443 dir="`$DIRNAME "$path"`" 49444 base="`$BASENAME "$path"`" 49445 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 49446 fi 49447 fi 49448 fi 49449 49450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49451 $as_echo_n "checking for $DLL_NAME... " >&6; } 49452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49453 $as_echo "$MSVC_DLL" >&6; } 49454 else 49455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49456 $as_echo "incorrect, ignoring" >&6; } 49457 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49458 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49459 fi 49460 fi 49461 49462 fi 49463 fi 49464 49465 if test "x$MSVC_DLL" = x; then 49466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49467 $as_echo_n "checking for $DLL_NAME... " >&6; } 49468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49469 $as_echo "no" >&6; } 49470 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 49471 fi 49472 49473 MSVCR_DLL="$MSVC_DLL" 49474 fi 49475 49476 49477 49478 # Check whether --with-msvcp-dll was given. 49479 if test "${with_msvcp_dll+set}" = set; then : 49480 withval=$with_msvcp_dll; 49481 fi 49482 49483 49484 if test "x$MSVCP_NAME" != "x"; then 49485 if test "x$with_msvcp_dll" != x; then 49486 # If given explicitely by user, do not probe. If not present, fail directly. 49487 49488 DLL_NAME="$MSVCP_NAME" 49489 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 49490 METHOD="--with-msvcp-dll" 49491 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49492 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49493 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49494 49495 # Need to check if the found msvcr is correct architecture 49496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49497 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49498 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49499 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49500 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49501 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49502 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49503 CORRECT_MSVCR_ARCH="PE32 executable" 49504 else 49505 CORRECT_MSVCR_ARCH="PE32+ executable" 49506 fi 49507 else 49508 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49509 CORRECT_MSVCR_ARCH=386 49510 else 49511 CORRECT_MSVCR_ARCH=x86-64 49512 fi 49513 fi 49514 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49516 $as_echo "ok" >&6; } 49517 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49518 49519 # Only process if variable expands to non-empty 49520 49521 if test "x$MSVC_DLL" != x; then 49522 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49523 49524 # Input might be given as Windows format, start by converting to 49525 # unix format. 49526 path="$MSVC_DLL" 49527 new_path=`$CYGPATH -u "$path"` 49528 49529 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49530 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49531 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49532 # "foo.exe" is OK but "foo" is an error. 49533 # 49534 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49535 # It is also a way to make sure we got the proper file name for the real test later on. 49536 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49537 if test "x$test_shortpath" = x; then 49538 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49539 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49540 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49541 fi 49542 49543 # Call helper function which possibly converts this using DOS-style short mode. 49544 # If so, the updated path is stored in $new_path. 49545 49546 input_path="$new_path" 49547 # Check if we need to convert this using DOS-style short mode. If the path 49548 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49549 # take no chances and rewrite it. 49550 # Note: m4 eats our [], so we need to use [ and ] instead. 49551 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49552 if test "x$has_forbidden_chars" != x; then 49553 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49554 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49555 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49556 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49557 # Going to short mode and back again did indeed matter. Since short mode is 49558 # case insensitive, let's make it lowercase to improve readability. 49559 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49560 # Now convert it back to Unix-style (cygpath) 49561 input_path=`$CYGPATH -u "$shortmode_path"` 49562 new_path="$input_path" 49563 fi 49564 fi 49565 49566 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49567 if test "x$test_cygdrive_prefix" = x; then 49568 # As a simple fix, exclude /usr/bin since it's not a real path. 49569 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49570 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49571 # a path prefixed by /cygdrive for fixpath to work. 49572 new_path="$CYGWIN_ROOT_PATH$input_path" 49573 fi 49574 fi 49575 49576 49577 if test "x$path" != "x$new_path"; then 49578 MSVC_DLL="$new_path" 49579 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49580 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49581 fi 49582 49583 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49584 49585 path="$MSVC_DLL" 49586 has_colon=`$ECHO $path | $GREP ^.:` 49587 new_path="$path" 49588 if test "x$has_colon" = x; then 49589 # Not in mixed or Windows style, start by that. 49590 new_path=`cmd //c echo $path` 49591 fi 49592 49593 49594 input_path="$new_path" 49595 # Check if we need to convert this using DOS-style short mode. If the path 49596 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49597 # take no chances and rewrite it. 49598 # Note: m4 eats our [], so we need to use [ and ] instead. 49599 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49600 if test "x$has_forbidden_chars" != x; then 49601 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49602 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49603 fi 49604 49605 49606 windows_path="$new_path" 49607 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49608 unix_path=`$CYGPATH -u "$windows_path"` 49609 new_path="$unix_path" 49610 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49611 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49612 new_path="$unix_path" 49613 fi 49614 49615 if test "x$path" != "x$new_path"; then 49616 MSVC_DLL="$new_path" 49617 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49618 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49619 fi 49620 49621 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49622 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49623 49624 else 49625 # We're on a unix platform. Hooray! :) 49626 path="$MSVC_DLL" 49627 has_space=`$ECHO "$path" | $GREP " "` 49628 if test "x$has_space" != x; then 49629 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49630 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49631 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49632 fi 49633 49634 # Use eval to expand a potential ~ 49635 eval path="$path" 49636 if test ! -f "$path" && test ! -d "$path"; then 49637 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49638 fi 49639 49640 if test -d "$path"; then 49641 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49642 else 49643 dir="`$DIRNAME "$path"`" 49644 base="`$BASENAME "$path"`" 49645 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 49646 fi 49647 fi 49648 fi 49649 49650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49651 $as_echo_n "checking for $DLL_NAME... " >&6; } 49652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49653 $as_echo "$MSVC_DLL" >&6; } 49654 else 49655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49656 $as_echo "incorrect, ignoring" >&6; } 49657 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49658 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49659 fi 49660 fi 49661 49662 if test "x$MSVC_DLL" = x; then 49663 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 49664 fi 49665 MSVCP_DLL="$MSVC_DLL" 49666 elif test "x$DEVKIT_MSVCP_DLL" != x; then 49667 49668 DLL_NAME="$MSVCP_NAME" 49669 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCP_DLL" 49670 METHOD="devkit" 49671 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49672 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49673 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49674 49675 # Need to check if the found msvcr is correct architecture 49676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49677 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49678 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49679 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49680 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49681 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49682 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49683 CORRECT_MSVCR_ARCH="PE32 executable" 49684 else 49685 CORRECT_MSVCR_ARCH="PE32+ executable" 49686 fi 49687 else 49688 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49689 CORRECT_MSVCR_ARCH=386 49690 else 49691 CORRECT_MSVCR_ARCH=x86-64 49692 fi 49693 fi 49694 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49696 $as_echo "ok" >&6; } 49697 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49698 49699 # Only process if variable expands to non-empty 49700 49701 if test "x$MSVC_DLL" != x; then 49702 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49703 49704 # Input might be given as Windows format, start by converting to 49705 # unix format. 49706 path="$MSVC_DLL" 49707 new_path=`$CYGPATH -u "$path"` 49708 49709 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49710 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49711 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49712 # "foo.exe" is OK but "foo" is an error. 49713 # 49714 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49715 # It is also a way to make sure we got the proper file name for the real test later on. 49716 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49717 if test "x$test_shortpath" = x; then 49718 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49719 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49720 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49721 fi 49722 49723 # Call helper function which possibly converts this using DOS-style short mode. 49724 # If so, the updated path is stored in $new_path. 49725 49726 input_path="$new_path" 49727 # Check if we need to convert this using DOS-style short mode. If the path 49728 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49729 # take no chances and rewrite it. 49730 # Note: m4 eats our [], so we need to use [ and ] instead. 49731 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49732 if test "x$has_forbidden_chars" != x; then 49733 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49734 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49735 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49736 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49737 # Going to short mode and back again did indeed matter. Since short mode is 49738 # case insensitive, let's make it lowercase to improve readability. 49739 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49740 # Now convert it back to Unix-style (cygpath) 49741 input_path=`$CYGPATH -u "$shortmode_path"` 49742 new_path="$input_path" 49743 fi 49744 fi 49745 49746 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49747 if test "x$test_cygdrive_prefix" = x; then 49748 # As a simple fix, exclude /usr/bin since it's not a real path. 49749 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49750 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49751 # a path prefixed by /cygdrive for fixpath to work. 49752 new_path="$CYGWIN_ROOT_PATH$input_path" 49753 fi 49754 fi 49755 49756 49757 if test "x$path" != "x$new_path"; then 49758 MSVC_DLL="$new_path" 49759 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49760 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49761 fi 49762 49763 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49764 49765 path="$MSVC_DLL" 49766 has_colon=`$ECHO $path | $GREP ^.:` 49767 new_path="$path" 49768 if test "x$has_colon" = x; then 49769 # Not in mixed or Windows style, start by that. 49770 new_path=`cmd //c echo $path` 49771 fi 49772 49773 49774 input_path="$new_path" 49775 # Check if we need to convert this using DOS-style short mode. If the path 49776 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49777 # take no chances and rewrite it. 49778 # Note: m4 eats our [], so we need to use [ and ] instead. 49779 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49780 if test "x$has_forbidden_chars" != x; then 49781 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49782 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49783 fi 49784 49785 49786 windows_path="$new_path" 49787 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49788 unix_path=`$CYGPATH -u "$windows_path"` 49789 new_path="$unix_path" 49790 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49791 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49792 new_path="$unix_path" 49793 fi 49794 49795 if test "x$path" != "x$new_path"; then 49796 MSVC_DLL="$new_path" 49797 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49798 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49799 fi 49800 49801 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49802 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49803 49804 else 49805 # We're on a unix platform. Hooray! :) 49806 path="$MSVC_DLL" 49807 has_space=`$ECHO "$path" | $GREP " "` 49808 if test "x$has_space" != x; then 49809 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49810 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49811 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49812 fi 49813 49814 # Use eval to expand a potential ~ 49815 eval path="$path" 49816 if test ! -f "$path" && test ! -d "$path"; then 49817 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49818 fi 49819 49820 if test -d "$path"; then 49821 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49822 else 49823 dir="`$DIRNAME "$path"`" 49824 base="`$BASENAME "$path"`" 49825 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 49826 fi 49827 fi 49828 fi 49829 49830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49831 $as_echo_n "checking for $DLL_NAME... " >&6; } 49832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49833 $as_echo "$MSVC_DLL" >&6; } 49834 else 49835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49836 $as_echo "incorrect, ignoring" >&6; } 49837 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49838 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49839 fi 49840 fi 49841 49842 if test "x$MSVC_DLL" = x; then 49843 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by devkit" "$LINENO" 5 49844 fi 49845 MSVCP_DLL="$MSVC_DLL" 49846 else 49847 49848 DLL_NAME="${MSVCP_NAME}" 49849 MSVC_DLL= 49850 49851 if test "x$MSVC_DLL" = x; then 49852 # Probe: Using well-known location from Visual Studio 10.0 49853 if test "x$VCINSTALLDIR" != x; then 49854 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 49855 49856 windows_path="$CYGWIN_VC_INSTALL_DIR" 49857 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49858 unix_path=`$CYGPATH -u "$windows_path"` 49859 CYGWIN_VC_INSTALL_DIR="$unix_path" 49860 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49861 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49862 CYGWIN_VC_INSTALL_DIR="$unix_path" 49863 fi 49864 49865 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49866 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 49867 else 49868 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 49869 fi 49870 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 49871 49872 DLL_NAME="$DLL_NAME" 49873 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 49874 METHOD="well-known location in VCINSTALLDIR" 49875 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49876 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49877 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49878 49879 # Need to check if the found msvcr is correct architecture 49880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49881 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49882 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49883 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49884 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49885 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49886 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49887 CORRECT_MSVCR_ARCH="PE32 executable" 49888 else 49889 CORRECT_MSVCR_ARCH="PE32+ executable" 49890 fi 49891 else 49892 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49893 CORRECT_MSVCR_ARCH=386 49894 else 49895 CORRECT_MSVCR_ARCH=x86-64 49896 fi 49897 fi 49898 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49900 $as_echo "ok" >&6; } 49901 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49902 49903 # Only process if variable expands to non-empty 49904 49905 if test "x$MSVC_DLL" != x; then 49906 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49907 49908 # Input might be given as Windows format, start by converting to 49909 # unix format. 49910 path="$MSVC_DLL" 49911 new_path=`$CYGPATH -u "$path"` 49912 49913 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49914 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49915 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49916 # "foo.exe" is OK but "foo" is an error. 49917 # 49918 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49919 # It is also a way to make sure we got the proper file name for the real test later on. 49920 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49921 if test "x$test_shortpath" = x; then 49922 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49923 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49924 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49925 fi 49926 49927 # Call helper function which possibly converts this using DOS-style short mode. 49928 # If so, the updated path is stored in $new_path. 49929 49930 input_path="$new_path" 49931 # Check if we need to convert this using DOS-style short mode. If the path 49932 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49933 # take no chances and rewrite it. 49934 # Note: m4 eats our [], so we need to use [ and ] instead. 49935 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49936 if test "x$has_forbidden_chars" != x; then 49937 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49938 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49939 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49940 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49941 # Going to short mode and back again did indeed matter. Since short mode is 49942 # case insensitive, let's make it lowercase to improve readability. 49943 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49944 # Now convert it back to Unix-style (cygpath) 49945 input_path=`$CYGPATH -u "$shortmode_path"` 49946 new_path="$input_path" 49947 fi 49948 fi 49949 49950 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49951 if test "x$test_cygdrive_prefix" = x; then 49952 # As a simple fix, exclude /usr/bin since it's not a real path. 49953 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49954 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49955 # a path prefixed by /cygdrive for fixpath to work. 49956 new_path="$CYGWIN_ROOT_PATH$input_path" 49957 fi 49958 fi 49959 49960 49961 if test "x$path" != "x$new_path"; then 49962 MSVC_DLL="$new_path" 49963 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49964 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49965 fi 49966 49967 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49968 49969 path="$MSVC_DLL" 49970 has_colon=`$ECHO $path | $GREP ^.:` 49971 new_path="$path" 49972 if test "x$has_colon" = x; then 49973 # Not in mixed or Windows style, start by that. 49974 new_path=`cmd //c echo $path` 49975 fi 49976 49977 49978 input_path="$new_path" 49979 # Check if we need to convert this using DOS-style short mode. If the path 49980 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49981 # take no chances and rewrite it. 49982 # Note: m4 eats our [], so we need to use [ and ] instead. 49983 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49984 if test "x$has_forbidden_chars" != x; then 49985 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49986 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49987 fi 49988 49989 49990 windows_path="$new_path" 49991 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49992 unix_path=`$CYGPATH -u "$windows_path"` 49993 new_path="$unix_path" 49994 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49995 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49996 new_path="$unix_path" 49997 fi 49998 49999 if test "x$path" != "x$new_path"; then 50000 MSVC_DLL="$new_path" 50001 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50002 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50003 fi 50004 50005 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50006 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50007 50008 else 50009 # We're on a unix platform. Hooray! :) 50010 path="$MSVC_DLL" 50011 has_space=`$ECHO "$path" | $GREP " "` 50012 if test "x$has_space" != x; then 50013 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50014 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50015 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50016 fi 50017 50018 # Use eval to expand a potential ~ 50019 eval path="$path" 50020 if test ! -f "$path" && test ! -d "$path"; then 50021 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50022 fi 50023 50024 if test -d "$path"; then 50025 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50026 else 50027 dir="`$DIRNAME "$path"`" 50028 base="`$BASENAME "$path"`" 50029 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 50030 fi 50031 fi 50032 fi 50033 50034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50035 $as_echo_n "checking for $DLL_NAME... " >&6; } 50036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50037 $as_echo "$MSVC_DLL" >&6; } 50038 else 50039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50040 $as_echo "incorrect, ignoring" >&6; } 50041 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50042 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50043 fi 50044 fi 50045 50046 fi 50047 fi 50048 50049 if test "x$MSVC_DLL" = x; then 50050 # Probe: Check in the Boot JDK directory. 50051 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 50052 50053 DLL_NAME="$DLL_NAME" 50054 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50055 METHOD="well-known location in Boot JDK" 50056 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50057 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50058 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50059 50060 # Need to check if the found msvcr is correct architecture 50061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50062 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50063 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50064 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50065 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50066 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50067 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50068 CORRECT_MSVCR_ARCH="PE32 executable" 50069 else 50070 CORRECT_MSVCR_ARCH="PE32+ executable" 50071 fi 50072 else 50073 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50074 CORRECT_MSVCR_ARCH=386 50075 else 50076 CORRECT_MSVCR_ARCH=x86-64 50077 fi 50078 fi 50079 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50081 $as_echo "ok" >&6; } 50082 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50083 50084 # Only process if variable expands to non-empty 50085 50086 if test "x$MSVC_DLL" != x; then 50087 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50088 50089 # Input might be given as Windows format, start by converting to 50090 # unix format. 50091 path="$MSVC_DLL" 50092 new_path=`$CYGPATH -u "$path"` 50093 50094 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50095 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50096 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50097 # "foo.exe" is OK but "foo" is an error. 50098 # 50099 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50100 # It is also a way to make sure we got the proper file name for the real test later on. 50101 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50102 if test "x$test_shortpath" = x; then 50103 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50104 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50105 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50106 fi 50107 50108 # Call helper function which possibly converts this using DOS-style short mode. 50109 # If so, the updated path is stored in $new_path. 50110 50111 input_path="$new_path" 50112 # Check if we need to convert this using DOS-style short mode. If the path 50113 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50114 # take no chances and rewrite it. 50115 # Note: m4 eats our [], so we need to use [ and ] instead. 50116 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50117 if test "x$has_forbidden_chars" != x; then 50118 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50119 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50120 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50121 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50122 # Going to short mode and back again did indeed matter. Since short mode is 50123 # case insensitive, let's make it lowercase to improve readability. 50124 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50125 # Now convert it back to Unix-style (cygpath) 50126 input_path=`$CYGPATH -u "$shortmode_path"` 50127 new_path="$input_path" 50128 fi 50129 fi 50130 50131 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50132 if test "x$test_cygdrive_prefix" = x; then 50133 # As a simple fix, exclude /usr/bin since it's not a real path. 50134 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50135 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50136 # a path prefixed by /cygdrive for fixpath to work. 50137 new_path="$CYGWIN_ROOT_PATH$input_path" 50138 fi 50139 fi 50140 50141 50142 if test "x$path" != "x$new_path"; then 50143 MSVC_DLL="$new_path" 50144 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50145 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50146 fi 50147 50148 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50149 50150 path="$MSVC_DLL" 50151 has_colon=`$ECHO $path | $GREP ^.:` 50152 new_path="$path" 50153 if test "x$has_colon" = x; then 50154 # Not in mixed or Windows style, start by that. 50155 new_path=`cmd //c echo $path` 50156 fi 50157 50158 50159 input_path="$new_path" 50160 # Check if we need to convert this using DOS-style short mode. If the path 50161 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50162 # take no chances and rewrite it. 50163 # Note: m4 eats our [], so we need to use [ and ] instead. 50164 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50165 if test "x$has_forbidden_chars" != x; then 50166 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50167 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50168 fi 50169 50170 50171 windows_path="$new_path" 50172 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50173 unix_path=`$CYGPATH -u "$windows_path"` 50174 new_path="$unix_path" 50175 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50176 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50177 new_path="$unix_path" 50178 fi 50179 50180 if test "x$path" != "x$new_path"; then 50181 MSVC_DLL="$new_path" 50182 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50183 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50184 fi 50185 50186 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50187 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50188 50189 else 50190 # We're on a unix platform. Hooray! :) 50191 path="$MSVC_DLL" 50192 has_space=`$ECHO "$path" | $GREP " "` 50193 if test "x$has_space" != x; then 50194 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50195 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50196 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50197 fi 50198 50199 # Use eval to expand a potential ~ 50200 eval path="$path" 50201 if test ! -f "$path" && test ! -d "$path"; then 50202 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50203 fi 50204 50205 if test -d "$path"; then 50206 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50207 else 50208 dir="`$DIRNAME "$path"`" 50209 base="`$BASENAME "$path"`" 50210 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 50211 fi 50212 fi 50213 fi 50214 50215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50216 $as_echo_n "checking for $DLL_NAME... " >&6; } 50217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50218 $as_echo "$MSVC_DLL" >&6; } 50219 else 50220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50221 $as_echo "incorrect, ignoring" >&6; } 50222 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50223 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50224 fi 50225 fi 50226 50227 fi 50228 50229 if test "x$MSVC_DLL" = x; then 50230 # Probe: Look in the Windows system32 directory 50231 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 50232 50233 windows_path="$CYGWIN_SYSTEMROOT" 50234 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50235 unix_path=`$CYGPATH -u "$windows_path"` 50236 CYGWIN_SYSTEMROOT="$unix_path" 50237 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50238 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50239 CYGWIN_SYSTEMROOT="$unix_path" 50240 fi 50241 50242 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 50243 50244 DLL_NAME="$DLL_NAME" 50245 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50246 METHOD="well-known location in SYSTEMROOT" 50247 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50248 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50249 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50250 50251 # Need to check if the found msvcr is correct architecture 50252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50253 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50254 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50255 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50256 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50257 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50258 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50259 CORRECT_MSVCR_ARCH="PE32 executable" 50260 else 50261 CORRECT_MSVCR_ARCH="PE32+ executable" 50262 fi 50263 else 50264 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50265 CORRECT_MSVCR_ARCH=386 50266 else 50267 CORRECT_MSVCR_ARCH=x86-64 50268 fi 50269 fi 50270 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50272 $as_echo "ok" >&6; } 50273 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50274 50275 # Only process if variable expands to non-empty 50276 50277 if test "x$MSVC_DLL" != x; then 50278 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50279 50280 # Input might be given as Windows format, start by converting to 50281 # unix format. 50282 path="$MSVC_DLL" 50283 new_path=`$CYGPATH -u "$path"` 50284 50285 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50286 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50287 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50288 # "foo.exe" is OK but "foo" is an error. 50289 # 50290 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50291 # It is also a way to make sure we got the proper file name for the real test later on. 50292 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50293 if test "x$test_shortpath" = x; then 50294 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50295 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50296 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50297 fi 50298 50299 # Call helper function which possibly converts this using DOS-style short mode. 50300 # If so, the updated path is stored in $new_path. 50301 50302 input_path="$new_path" 50303 # Check if we need to convert this using DOS-style short mode. If the path 50304 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50305 # take no chances and rewrite it. 50306 # Note: m4 eats our [], so we need to use [ and ] instead. 50307 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50308 if test "x$has_forbidden_chars" != x; then 50309 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50310 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50311 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50312 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50313 # Going to short mode and back again did indeed matter. Since short mode is 50314 # case insensitive, let's make it lowercase to improve readability. 50315 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50316 # Now convert it back to Unix-style (cygpath) 50317 input_path=`$CYGPATH -u "$shortmode_path"` 50318 new_path="$input_path" 50319 fi 50320 fi 50321 50322 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50323 if test "x$test_cygdrive_prefix" = x; then 50324 # As a simple fix, exclude /usr/bin since it's not a real path. 50325 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50326 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50327 # a path prefixed by /cygdrive for fixpath to work. 50328 new_path="$CYGWIN_ROOT_PATH$input_path" 50329 fi 50330 fi 50331 50332 50333 if test "x$path" != "x$new_path"; then 50334 MSVC_DLL="$new_path" 50335 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50336 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50337 fi 50338 50339 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50340 50341 path="$MSVC_DLL" 50342 has_colon=`$ECHO $path | $GREP ^.:` 50343 new_path="$path" 50344 if test "x$has_colon" = x; then 50345 # Not in mixed or Windows style, start by that. 50346 new_path=`cmd //c echo $path` 50347 fi 50348 50349 50350 input_path="$new_path" 50351 # Check if we need to convert this using DOS-style short mode. If the path 50352 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50353 # take no chances and rewrite it. 50354 # Note: m4 eats our [], so we need to use [ and ] instead. 50355 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50356 if test "x$has_forbidden_chars" != x; then 50357 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50358 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50359 fi 50360 50361 50362 windows_path="$new_path" 50363 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50364 unix_path=`$CYGPATH -u "$windows_path"` 50365 new_path="$unix_path" 50366 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50367 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50368 new_path="$unix_path" 50369 fi 50370 50371 if test "x$path" != "x$new_path"; then 50372 MSVC_DLL="$new_path" 50373 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50374 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50375 fi 50376 50377 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50378 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50379 50380 else 50381 # We're on a unix platform. Hooray! :) 50382 path="$MSVC_DLL" 50383 has_space=`$ECHO "$path" | $GREP " "` 50384 if test "x$has_space" != x; then 50385 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50386 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50387 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50388 fi 50389 50390 # Use eval to expand a potential ~ 50391 eval path="$path" 50392 if test ! -f "$path" && test ! -d "$path"; then 50393 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50394 fi 50395 50396 if test -d "$path"; then 50397 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50398 else 50399 dir="`$DIRNAME "$path"`" 50400 base="`$BASENAME "$path"`" 50401 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 50402 fi 50403 fi 50404 fi 50405 50406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50407 $as_echo_n "checking for $DLL_NAME... " >&6; } 50408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50409 $as_echo "$MSVC_DLL" >&6; } 50410 else 50411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50412 $as_echo "incorrect, ignoring" >&6; } 50413 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50414 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50415 fi 50416 fi 50417 50418 fi 50419 50420 if test "x$MSVC_DLL" = x; then 50421 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 50422 if test "x$VS100COMNTOOLS" != x; then 50423 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 50424 50425 windows_path="$CYGWIN_VS_TOOLS_DIR" 50426 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50427 unix_path=`$CYGPATH -u "$windows_path"` 50428 CYGWIN_VS_TOOLS_DIR="$unix_path" 50429 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50430 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50431 CYGWIN_VS_TOOLS_DIR="$unix_path" 50432 fi 50433 50434 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50435 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 50436 | $GREP -i /x64/ | $HEAD --lines 1` 50437 else 50438 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 50439 | $GREP -i /x86/ | $HEAD --lines 1` 50440 fi 50441 50442 DLL_NAME="$DLL_NAME" 50443 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50444 METHOD="search of VS100COMNTOOLS" 50445 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50446 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50447 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50448 50449 # Need to check if the found msvcr is correct architecture 50450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50451 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50452 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50453 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50454 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50455 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50456 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50457 CORRECT_MSVCR_ARCH="PE32 executable" 50458 else 50459 CORRECT_MSVCR_ARCH="PE32+ executable" 50460 fi 50461 else 50462 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50463 CORRECT_MSVCR_ARCH=386 50464 else 50465 CORRECT_MSVCR_ARCH=x86-64 50466 fi 50467 fi 50468 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50470 $as_echo "ok" >&6; } 50471 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50472 50473 # Only process if variable expands to non-empty 50474 50475 if test "x$MSVC_DLL" != x; then 50476 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50477 50478 # Input might be given as Windows format, start by converting to 50479 # unix format. 50480 path="$MSVC_DLL" 50481 new_path=`$CYGPATH -u "$path"` 50482 50483 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50484 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50485 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50486 # "foo.exe" is OK but "foo" is an error. 50487 # 50488 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50489 # It is also a way to make sure we got the proper file name for the real test later on. 50490 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50491 if test "x$test_shortpath" = x; then 50492 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50493 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50494 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50495 fi 50496 50497 # Call helper function which possibly converts this using DOS-style short mode. 50498 # If so, the updated path is stored in $new_path. 50499 50500 input_path="$new_path" 50501 # Check if we need to convert this using DOS-style short mode. If the path 50502 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50503 # take no chances and rewrite it. 50504 # Note: m4 eats our [], so we need to use [ and ] instead. 50505 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50506 if test "x$has_forbidden_chars" != x; then 50507 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50508 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50509 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50510 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50511 # Going to short mode and back again did indeed matter. Since short mode is 50512 # case insensitive, let's make it lowercase to improve readability. 50513 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50514 # Now convert it back to Unix-style (cygpath) 50515 input_path=`$CYGPATH -u "$shortmode_path"` 50516 new_path="$input_path" 50517 fi 50518 fi 50519 50520 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50521 if test "x$test_cygdrive_prefix" = x; then 50522 # As a simple fix, exclude /usr/bin since it's not a real path. 50523 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50524 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50525 # a path prefixed by /cygdrive for fixpath to work. 50526 new_path="$CYGWIN_ROOT_PATH$input_path" 50527 fi 50528 fi 50529 50530 50531 if test "x$path" != "x$new_path"; then 50532 MSVC_DLL="$new_path" 50533 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50534 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50535 fi 50536 50537 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50538 50539 path="$MSVC_DLL" 50540 has_colon=`$ECHO $path | $GREP ^.:` 50541 new_path="$path" 50542 if test "x$has_colon" = x; then 50543 # Not in mixed or Windows style, start by that. 50544 new_path=`cmd //c echo $path` 50545 fi 50546 50547 50548 input_path="$new_path" 50549 # Check if we need to convert this using DOS-style short mode. If the path 50550 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50551 # take no chances and rewrite it. 50552 # Note: m4 eats our [], so we need to use [ and ] instead. 50553 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50554 if test "x$has_forbidden_chars" != x; then 50555 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50556 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50557 fi 50558 50559 50560 windows_path="$new_path" 50561 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50562 unix_path=`$CYGPATH -u "$windows_path"` 50563 new_path="$unix_path" 50564 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50565 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50566 new_path="$unix_path" 50567 fi 50568 50569 if test "x$path" != "x$new_path"; then 50570 MSVC_DLL="$new_path" 50571 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50572 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50573 fi 50574 50575 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50576 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50577 50578 else 50579 # We're on a unix platform. Hooray! :) 50580 path="$MSVC_DLL" 50581 has_space=`$ECHO "$path" | $GREP " "` 50582 if test "x$has_space" != x; then 50583 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50584 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50585 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50586 fi 50587 50588 # Use eval to expand a potential ~ 50589 eval path="$path" 50590 if test ! -f "$path" && test ! -d "$path"; then 50591 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50592 fi 50593 50594 if test -d "$path"; then 50595 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50596 else 50597 dir="`$DIRNAME "$path"`" 50598 base="`$BASENAME "$path"`" 50599 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 50600 fi 50601 fi 50602 fi 50603 50604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50605 $as_echo_n "checking for $DLL_NAME... " >&6; } 50606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50607 $as_echo "$MSVC_DLL" >&6; } 50608 else 50609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50610 $as_echo "incorrect, ignoring" >&6; } 50611 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50612 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50613 fi 50614 fi 50615 50616 fi 50617 fi 50618 50619 if test "x$MSVC_DLL" = x; then 50620 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 50621 # (This was the original behaviour; kept since it might turn something up) 50622 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 50623 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50624 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50625 | $GREP x64 | $HEAD --lines 1` 50626 else 50627 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50628 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 50629 if test "x$POSSIBLE_MSVC_DLL" = x; then 50630 # We're grasping at straws now... 50631 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50632 | $HEAD --lines 1` 50633 fi 50634 fi 50635 50636 50637 DLL_NAME="$DLL_NAME" 50638 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50639 METHOD="search of VCINSTALLDIR" 50640 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50641 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50642 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50643 50644 # Need to check if the found msvcr is correct architecture 50645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50646 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50647 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50648 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50649 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50650 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50651 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50652 CORRECT_MSVCR_ARCH="PE32 executable" 50653 else 50654 CORRECT_MSVCR_ARCH="PE32+ executable" 50655 fi 50656 else 50657 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50658 CORRECT_MSVCR_ARCH=386 50659 else 50660 CORRECT_MSVCR_ARCH=x86-64 50661 fi 50662 fi 50663 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50665 $as_echo "ok" >&6; } 50666 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50667 50668 # Only process if variable expands to non-empty 50669 50670 if test "x$MSVC_DLL" != x; then 50671 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50672 50673 # Input might be given as Windows format, start by converting to 50674 # unix format. 50675 path="$MSVC_DLL" 50676 new_path=`$CYGPATH -u "$path"` 50677 50678 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50679 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50680 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50681 # "foo.exe" is OK but "foo" is an error. 50682 # 50683 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50684 # It is also a way to make sure we got the proper file name for the real test later on. 50685 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50686 if test "x$test_shortpath" = x; then 50687 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50688 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50689 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50690 fi 50691 50692 # Call helper function which possibly converts this using DOS-style short mode. 50693 # If so, the updated path is stored in $new_path. 50694 50695 input_path="$new_path" 50696 # Check if we need to convert this using DOS-style short mode. If the path 50697 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50698 # take no chances and rewrite it. 50699 # Note: m4 eats our [], so we need to use [ and ] instead. 50700 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50701 if test "x$has_forbidden_chars" != x; then 50702 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50703 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50704 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50705 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50706 # Going to short mode and back again did indeed matter. Since short mode is 50707 # case insensitive, let's make it lowercase to improve readability. 50708 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50709 # Now convert it back to Unix-style (cygpath) 50710 input_path=`$CYGPATH -u "$shortmode_path"` 50711 new_path="$input_path" 50712 fi 50713 fi 50714 50715 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50716 if test "x$test_cygdrive_prefix" = x; then 50717 # As a simple fix, exclude /usr/bin since it's not a real path. 50718 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50719 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50720 # a path prefixed by /cygdrive for fixpath to work. 50721 new_path="$CYGWIN_ROOT_PATH$input_path" 50722 fi 50723 fi 50724 50725 50726 if test "x$path" != "x$new_path"; then 50727 MSVC_DLL="$new_path" 50728 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50729 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50730 fi 50731 50732 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50733 50734 path="$MSVC_DLL" 50735 has_colon=`$ECHO $path | $GREP ^.:` 50736 new_path="$path" 50737 if test "x$has_colon" = x; then 50738 # Not in mixed or Windows style, start by that. 50739 new_path=`cmd //c echo $path` 50740 fi 50741 50742 50743 input_path="$new_path" 50744 # Check if we need to convert this using DOS-style short mode. If the path 50745 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50746 # take no chances and rewrite it. 50747 # Note: m4 eats our [], so we need to use [ and ] instead. 50748 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50749 if test "x$has_forbidden_chars" != x; then 50750 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50751 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50752 fi 50753 50754 50755 windows_path="$new_path" 50756 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50757 unix_path=`$CYGPATH -u "$windows_path"` 50758 new_path="$unix_path" 50759 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50760 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50761 new_path="$unix_path" 50762 fi 50763 50764 if test "x$path" != "x$new_path"; then 50765 MSVC_DLL="$new_path" 50766 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50767 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50768 fi 50769 50770 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50771 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50772 50773 else 50774 # We're on a unix platform. Hooray! :) 50775 path="$MSVC_DLL" 50776 has_space=`$ECHO "$path" | $GREP " "` 50777 if test "x$has_space" != x; then 50778 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50779 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50780 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50781 fi 50782 50783 # Use eval to expand a potential ~ 50784 eval path="$path" 50785 if test ! -f "$path" && test ! -d "$path"; then 50786 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50787 fi 50788 50789 if test -d "$path"; then 50790 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50791 else 50792 dir="`$DIRNAME "$path"`" 50793 base="`$BASENAME "$path"`" 50794 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 50795 fi 50796 fi 50797 fi 50798 50799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50800 $as_echo_n "checking for $DLL_NAME... " >&6; } 50801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50802 $as_echo "$MSVC_DLL" >&6; } 50803 else 50804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50805 $as_echo "incorrect, ignoring" >&6; } 50806 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50807 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50808 fi 50809 fi 50810 50811 fi 50812 fi 50813 50814 if test "x$MSVC_DLL" = x; then 50815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50816 $as_echo_n "checking for $DLL_NAME... " >&6; } 50817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50818 $as_echo "no" >&6; } 50819 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 50820 fi 50821 50822 MSVCP_DLL="$MSVC_DLL" 50823 fi 50824 50825 fi 50826 50827 fi 50828 50829 50830 if test "x$NEEDS_LIB_X11" = xfalse; then 50831 if (test "x${with_x}" != x && test "x${with_x}" != xno); then 50832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 is not used, so --with-x is ignored" >&5 50833 $as_echo "$as_me: WARNING: X11 is not used, so --with-x is ignored" >&2;} 50834 fi 50835 X_CFLAGS= 50836 X_LIBS= 50837 else 50838 50839 if test "x${with_x}" = xno; then 50840 as_fn_error $? "It is not possible to disable the use of X11. Remove the --without-x option." "$LINENO" 5 50841 fi 50842 50843 if test "x${with_x}" != x && test "x${with_x}" != xyes; then 50844 # The user has specified a X11 base directory. Use it for includes and 50845 # libraries, unless explicitely overridden. 50846 if test "x$x_includes" = xNONE; then 50847 x_includes="${with_x}/include" 50848 fi 50849 if test "x$x_libraries" = xNONE; then 50850 x_libraries="${with_x}/lib" 50851 fi 50852 else 50853 # Check if the user has specified sysroot, but not --with-x, --x-includes or --x-libraries. 50854 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 50855 # --x-libraries for the sysroot, if that seems to be correct. 50856 if test "x$SYSROOT" != "x"; then 50857 if test "x$x_includes" = xNONE; then 50858 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 50859 x_includes="$SYSROOT/usr/X11R6/include" 50860 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 50861 x_includes="$SYSROOT/usr/include" 50862 fi 50863 fi 50864 if test "x$x_libraries" = xNONE; then 50865 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 50866 x_libraries="$SYSROOT/usr/X11R6/lib" 50867 elif test -f "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50868 x_libraries="$SYSROOT/usr/lib64" 50869 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 50870 x_libraries="$SYSROOT/usr/lib" 50871 fi 50872 fi 50873 fi 50874 fi 50875 50876 # Now let autoconf do it's magic 50877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 50878 $as_echo_n "checking for X... " >&6; } 50879 50880 50881 # Check whether --with-x was given. 50882 if test "${with_x+set}" = set; then : 50883 withval=$with_x; 50884 fi 50885 50886 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 50887 if test "x$with_x" = xno; then 50888 # The user explicitly disabled X. 50889 have_x=disabled 50890 else 50891 case $x_includes,$x_libraries in #( 50892 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 50893 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 50894 $as_echo_n "(cached) " >&6 50895 else 50896 # One or both of the vars are not set, and there is no cached value. 50897 ac_x_includes=no ac_x_libraries=no 50898 rm -f -r conftest.dir 50899 if mkdir conftest.dir; then 50900 cd conftest.dir 50901 cat >Imakefile <<'_ACEOF' 50902 incroot: 50903 @echo incroot='${INCROOT}' 50904 usrlibdir: 50905 @echo usrlibdir='${USRLIBDIR}' 50906 libdir: 50907 @echo libdir='${LIBDIR}' 50908 _ACEOF 50909 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 50910 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 50911 for ac_var in incroot usrlibdir libdir; do 50912 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 50913 done 50914 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 50915 for ac_extension in a so sl dylib la dll; do 50916 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 50917 test -f "$ac_im_libdir/libX11.$ac_extension"; then 50918 ac_im_usrlibdir=$ac_im_libdir; break 50919 fi 50920 done 50921 # Screen out bogus values from the imake configuration. They are 50922 # bogus both because they are the default anyway, and because 50923 # using them would break gcc on systems where it needs fixed includes. 50924 case $ac_im_incroot in 50925 /usr/include) ac_x_includes= ;; 50926 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 50927 esac 50928 case $ac_im_usrlibdir in 50929 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 50930 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 50931 esac 50932 fi 50933 cd .. 50934 rm -f -r conftest.dir 50935 fi 50936 50937 # Standard set of common directories for X headers. 50938 # Check X11 before X11Rn because it is often a symlink to the current release. 50939 ac_x_header_dirs=' 50940 /usr/X11/include 50941 /usr/X11R7/include 50942 /usr/X11R6/include 50943 /usr/X11R5/include 50944 /usr/X11R4/include 50945 50946 /usr/include/X11 50947 /usr/include/X11R7 50948 /usr/include/X11R6 50949 /usr/include/X11R5 50950 /usr/include/X11R4 50951 50952 /usr/local/X11/include 50953 /usr/local/X11R7/include 50954 /usr/local/X11R6/include 50955 /usr/local/X11R5/include 50956 /usr/local/X11R4/include 50957 50958 /usr/local/include/X11 50959 /usr/local/include/X11R7 50960 /usr/local/include/X11R6 50961 /usr/local/include/X11R5 50962 /usr/local/include/X11R4 50963 50964 /usr/X386/include 50965 /usr/x386/include 50966 /usr/XFree86/include/X11 50967 50968 /usr/include 50969 /usr/local/include 50970 /usr/unsupported/include 50971 /usr/athena/include 50972 /usr/local/x11r5/include 50973 /usr/lpp/Xamples/include 50974 50975 /usr/openwin/include 50976 /usr/openwin/share/include' 50977 50978 if test "$ac_x_includes" = no; then 50979 # Guess where to find include files, by looking for Xlib.h. 50980 # First, try using that file with no special directory specified. 50981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50982 /* end confdefs.h. */ 50983 #include <X11/Xlib.h> 50984 _ACEOF 50985 if ac_fn_cxx_try_cpp "$LINENO"; then : 50986 # We can compile using X headers with no special include directory. 50987 ac_x_includes= 50988 else 50989 for ac_dir in $ac_x_header_dirs; do 50990 if test -r "$ac_dir/X11/Xlib.h"; then 50991 ac_x_includes=$ac_dir 50992 break 50993 fi 50994 done 50995 fi 50996 rm -f conftest.err conftest.i conftest.$ac_ext 50997 fi # $ac_x_includes = no 50998 50999 if test "$ac_x_libraries" = no; then 51000 # Check for the libraries. 51001 # See if we find them without any special options. 51002 # Don't add to $LIBS permanently. 51003 ac_save_LIBS=$LIBS 51004 LIBS="-lX11 $LIBS" 51005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51006 /* end confdefs.h. */ 51007 #include <X11/Xlib.h> 51008 int 51009 main () 51010 { 51011 XrmInitialize () 51012 ; 51013 return 0; 51014 } 51015 _ACEOF 51016 if ac_fn_cxx_try_link "$LINENO"; then : 51017 LIBS=$ac_save_LIBS 51018 # We can link X programs with no special library path. 51019 ac_x_libraries= 51020 else 51021 LIBS=$ac_save_LIBS 51022 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 51023 do 51024 # Don't even attempt the hair of trying to link an X program! 51025 for ac_extension in a so sl dylib la dll; do 51026 if test -r "$ac_dir/libX11.$ac_extension"; then 51027 ac_x_libraries=$ac_dir 51028 break 2 51029 fi 51030 done 51031 done 51032 fi 51033 rm -f core conftest.err conftest.$ac_objext \ 51034 conftest$ac_exeext conftest.$ac_ext 51035 fi # $ac_x_libraries = no 51036 51037 case $ac_x_includes,$ac_x_libraries in #( 51038 no,* | *,no | *\'*) 51039 # Didn't find X, or a directory has "'" in its name. 51040 ac_cv_have_x="have_x=no";; #( 51041 *) 51042 # Record where we found X for the cache. 51043 ac_cv_have_x="have_x=yes\ 51044 ac_x_includes='$ac_x_includes'\ 51045 ac_x_libraries='$ac_x_libraries'" 51046 esac 51047 fi 51048 ;; #( 51049 *) have_x=yes;; 51050 esac 51051 eval "$ac_cv_have_x" 51052 fi # $with_x != no 51053 51054 if test "$have_x" != yes; then 51055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 51056 $as_echo "$have_x" >&6; } 51057 no_x=yes 51058 else 51059 # If each of the values was on the command line, it overrides each guess. 51060 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 51061 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 51062 # Update the cache value to reflect the command line values. 51063 ac_cv_have_x="have_x=yes\ 51064 ac_x_includes='$x_includes'\ 51065 ac_x_libraries='$x_libraries'" 51066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 51067 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 51068 fi 51069 51070 if test "$no_x" = yes; then 51071 # Not all programs may use this symbol, but it does not hurt to define it. 51072 51073 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 51074 51075 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 51076 else 51077 if test -n "$x_includes"; then 51078 X_CFLAGS="$X_CFLAGS -I$x_includes" 51079 fi 51080 51081 # It would also be nice to do this for all -L options, not just this one. 51082 if test -n "$x_libraries"; then 51083 X_LIBS="$X_LIBS -L$x_libraries" 51084 # For Solaris; some versions of Sun CC require a space after -R and 51085 # others require no space. Words are not sufficient . . . . 51086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 51087 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 51088 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 51089 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 51090 ac_cxx_werror_flag=yes 51091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51092 /* end confdefs.h. */ 51093 51094 int 51095 main () 51096 { 51097 51098 ; 51099 return 0; 51100 } 51101 _ACEOF 51102 if ac_fn_cxx_try_link "$LINENO"; then : 51103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51104 $as_echo "no" >&6; } 51105 X_LIBS="$X_LIBS -R$x_libraries" 51106 else 51107 LIBS="$ac_xsave_LIBS -R $x_libraries" 51108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51109 /* end confdefs.h. */ 51110 51111 int 51112 main () 51113 { 51114 51115 ; 51116 return 0; 51117 } 51118 _ACEOF 51119 if ac_fn_cxx_try_link "$LINENO"; then : 51120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51121 $as_echo "yes" >&6; } 51122 X_LIBS="$X_LIBS -R $x_libraries" 51123 else 51124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 51125 $as_echo "neither works" >&6; } 51126 fi 51127 rm -f core conftest.err conftest.$ac_objext \ 51128 conftest$ac_exeext conftest.$ac_ext 51129 fi 51130 rm -f core conftest.err conftest.$ac_objext \ 51131 conftest$ac_exeext conftest.$ac_ext 51132 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 51133 LIBS=$ac_xsave_LIBS 51134 fi 51135 51136 # Check for system-dependent libraries X programs must link with. 51137 # Do this before checking for the system-independent R6 libraries 51138 # (-lICE), since we may need -lsocket or whatever for X linking. 51139 51140 if test "$ISC" = yes; then 51141 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 51142 else 51143 # Martyn Johnson says this is needed for Ultrix, if the X 51144 # libraries were built with DECnet support. And Karl Berry says 51145 # the Alpha needs dnet_stub (dnet does not exist). 51146 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 51147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51148 /* end confdefs.h. */ 51149 51150 /* Override any GCC internal prototype to avoid an error. 51151 Use char because int might match the return type of a GCC 51152 builtin and then its argument prototype would still apply. */ 51153 #ifdef __cplusplus 51154 extern "C" 51155 #endif 51156 char XOpenDisplay (); 51157 int 51158 main () 51159 { 51160 return XOpenDisplay (); 51161 ; 51162 return 0; 51163 } 51164 _ACEOF 51165 if ac_fn_cxx_try_link "$LINENO"; then : 51166 51167 else 51168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 51169 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 51170 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 51171 $as_echo_n "(cached) " >&6 51172 else 51173 ac_check_lib_save_LIBS=$LIBS 51174 LIBS="-ldnet $LIBS" 51175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51176 /* end confdefs.h. */ 51177 51178 /* Override any GCC internal prototype to avoid an error. 51179 Use char because int might match the return type of a GCC 51180 builtin and then its argument prototype would still apply. */ 51181 #ifdef __cplusplus 51182 extern "C" 51183 #endif 51184 char dnet_ntoa (); 51185 int 51186 main () 51187 { 51188 return dnet_ntoa (); 51189 ; 51190 return 0; 51191 } 51192 _ACEOF 51193 if ac_fn_cxx_try_link "$LINENO"; then : 51194 ac_cv_lib_dnet_dnet_ntoa=yes 51195 else 51196 ac_cv_lib_dnet_dnet_ntoa=no 51197 fi 51198 rm -f core conftest.err conftest.$ac_objext \ 51199 conftest$ac_exeext conftest.$ac_ext 51200 LIBS=$ac_check_lib_save_LIBS 51201 fi 51202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 51203 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 51204 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 51205 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 51206 fi 51207 51208 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 51209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 51210 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 51211 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 51212 $as_echo_n "(cached) " >&6 51213 else 51214 ac_check_lib_save_LIBS=$LIBS 51215 LIBS="-ldnet_stub $LIBS" 51216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51217 /* end confdefs.h. */ 51218 51219 /* Override any GCC internal prototype to avoid an error. 51220 Use char because int might match the return type of a GCC 51221 builtin and then its argument prototype would still apply. */ 51222 #ifdef __cplusplus 51223 extern "C" 51224 #endif 51225 char dnet_ntoa (); 51226 int 51227 main () 51228 { 51229 return dnet_ntoa (); 51230 ; 51231 return 0; 51232 } 51233 _ACEOF 51234 if ac_fn_cxx_try_link "$LINENO"; then : 51235 ac_cv_lib_dnet_stub_dnet_ntoa=yes 51236 else 51237 ac_cv_lib_dnet_stub_dnet_ntoa=no 51238 fi 51239 rm -f core conftest.err conftest.$ac_objext \ 51240 conftest$ac_exeext conftest.$ac_ext 51241 LIBS=$ac_check_lib_save_LIBS 51242 fi 51243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 51244 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 51245 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 51246 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 51247 fi 51248 51249 fi 51250 fi 51251 rm -f core conftest.err conftest.$ac_objext \ 51252 conftest$ac_exeext conftest.$ac_ext 51253 LIBS="$ac_xsave_LIBS" 51254 51255 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 51256 # to get the SysV transport functions. 51257 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 51258 # needs -lnsl. 51259 # The nsl library prevents programs from opening the X display 51260 # on Irix 5.2, according to T.E. Dickey. 51261 # The functions gethostbyname, getservbyname, and inet_addr are 51262 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 51263 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 51264 if test "x$ac_cv_func_gethostbyname" = xyes; then : 51265 51266 fi 51267 51268 if test $ac_cv_func_gethostbyname = no; then 51269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 51270 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 51271 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 51272 $as_echo_n "(cached) " >&6 51273 else 51274 ac_check_lib_save_LIBS=$LIBS 51275 LIBS="-lnsl $LIBS" 51276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51277 /* end confdefs.h. */ 51278 51279 /* Override any GCC internal prototype to avoid an error. 51280 Use char because int might match the return type of a GCC 51281 builtin and then its argument prototype would still apply. */ 51282 #ifdef __cplusplus 51283 extern "C" 51284 #endif 51285 char gethostbyname (); 51286 int 51287 main () 51288 { 51289 return gethostbyname (); 51290 ; 51291 return 0; 51292 } 51293 _ACEOF 51294 if ac_fn_cxx_try_link "$LINENO"; then : 51295 ac_cv_lib_nsl_gethostbyname=yes 51296 else 51297 ac_cv_lib_nsl_gethostbyname=no 51298 fi 51299 rm -f core conftest.err conftest.$ac_objext \ 51300 conftest$ac_exeext conftest.$ac_ext 51301 LIBS=$ac_check_lib_save_LIBS 51302 fi 51303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 51304 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 51305 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 51306 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 51307 fi 51308 51309 if test $ac_cv_lib_nsl_gethostbyname = no; then 51310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 51311 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 51312 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 51313 $as_echo_n "(cached) " >&6 51314 else 51315 ac_check_lib_save_LIBS=$LIBS 51316 LIBS="-lbsd $LIBS" 51317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51318 /* end confdefs.h. */ 51319 51320 /* Override any GCC internal prototype to avoid an error. 51321 Use char because int might match the return type of a GCC 51322 builtin and then its argument prototype would still apply. */ 51323 #ifdef __cplusplus 51324 extern "C" 51325 #endif 51326 char gethostbyname (); 51327 int 51328 main () 51329 { 51330 return gethostbyname (); 51331 ; 51332 return 0; 51333 } 51334 _ACEOF 51335 if ac_fn_cxx_try_link "$LINENO"; then : 51336 ac_cv_lib_bsd_gethostbyname=yes 51337 else 51338 ac_cv_lib_bsd_gethostbyname=no 51339 fi 51340 rm -f core conftest.err conftest.$ac_objext \ 51341 conftest$ac_exeext conftest.$ac_ext 51342 LIBS=$ac_check_lib_save_LIBS 51343 fi 51344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 51345 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 51346 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 51347 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 51348 fi 51349 51350 fi 51351 fi 51352 51353 # lieder@skyler.mavd.honeywell.com says without -lsocket, 51354 # socket/setsockopt and other routines are undefined under SCO ODT 51355 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 51356 # on later versions), says Simon Leinen: it contains gethostby* 51357 # variants that don't use the name server (or something). -lsocket 51358 # must be given before -lnsl if both are needed. We assume that 51359 # if connect needs -lnsl, so does gethostbyname. 51360 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 51361 if test "x$ac_cv_func_connect" = xyes; then : 51362 51363 fi 51364 51365 if test $ac_cv_func_connect = no; then 51366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 51367 $as_echo_n "checking for connect in -lsocket... " >&6; } 51368 if ${ac_cv_lib_socket_connect+:} false; then : 51369 $as_echo_n "(cached) " >&6 51370 else 51371 ac_check_lib_save_LIBS=$LIBS 51372 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 51373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51374 /* end confdefs.h. */ 51375 51376 /* Override any GCC internal prototype to avoid an error. 51377 Use char because int might match the return type of a GCC 51378 builtin and then its argument prototype would still apply. */ 51379 #ifdef __cplusplus 51380 extern "C" 51381 #endif 51382 char connect (); 51383 int 51384 main () 51385 { 51386 return connect (); 51387 ; 51388 return 0; 51389 } 51390 _ACEOF 51391 if ac_fn_cxx_try_link "$LINENO"; then : 51392 ac_cv_lib_socket_connect=yes 51393 else 51394 ac_cv_lib_socket_connect=no 51395 fi 51396 rm -f core conftest.err conftest.$ac_objext \ 51397 conftest$ac_exeext conftest.$ac_ext 51398 LIBS=$ac_check_lib_save_LIBS 51399 fi 51400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 51401 $as_echo "$ac_cv_lib_socket_connect" >&6; } 51402 if test "x$ac_cv_lib_socket_connect" = xyes; then : 51403 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 51404 fi 51405 51406 fi 51407 51408 # Guillermo Gomez says -lposix is necessary on A/UX. 51409 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 51410 if test "x$ac_cv_func_remove" = xyes; then : 51411 51412 fi 51413 51414 if test $ac_cv_func_remove = no; then 51415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 51416 $as_echo_n "checking for remove in -lposix... " >&6; } 51417 if ${ac_cv_lib_posix_remove+:} false; then : 51418 $as_echo_n "(cached) " >&6 51419 else 51420 ac_check_lib_save_LIBS=$LIBS 51421 LIBS="-lposix $LIBS" 51422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51423 /* end confdefs.h. */ 51424 51425 /* Override any GCC internal prototype to avoid an error. 51426 Use char because int might match the return type of a GCC 51427 builtin and then its argument prototype would still apply. */ 51428 #ifdef __cplusplus 51429 extern "C" 51430 #endif 51431 char remove (); 51432 int 51433 main () 51434 { 51435 return remove (); 51436 ; 51437 return 0; 51438 } 51439 _ACEOF 51440 if ac_fn_cxx_try_link "$LINENO"; then : 51441 ac_cv_lib_posix_remove=yes 51442 else 51443 ac_cv_lib_posix_remove=no 51444 fi 51445 rm -f core conftest.err conftest.$ac_objext \ 51446 conftest$ac_exeext conftest.$ac_ext 51447 LIBS=$ac_check_lib_save_LIBS 51448 fi 51449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 51450 $as_echo "$ac_cv_lib_posix_remove" >&6; } 51451 if test "x$ac_cv_lib_posix_remove" = xyes; then : 51452 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 51453 fi 51454 51455 fi 51456 51457 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 51458 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 51459 if test "x$ac_cv_func_shmat" = xyes; then : 51460 51461 fi 51462 51463 if test $ac_cv_func_shmat = no; then 51464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 51465 $as_echo_n "checking for shmat in -lipc... " >&6; } 51466 if ${ac_cv_lib_ipc_shmat+:} false; then : 51467 $as_echo_n "(cached) " >&6 51468 else 51469 ac_check_lib_save_LIBS=$LIBS 51470 LIBS="-lipc $LIBS" 51471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51472 /* end confdefs.h. */ 51473 51474 /* Override any GCC internal prototype to avoid an error. 51475 Use char because int might match the return type of a GCC 51476 builtin and then its argument prototype would still apply. */ 51477 #ifdef __cplusplus 51478 extern "C" 51479 #endif 51480 char shmat (); 51481 int 51482 main () 51483 { 51484 return shmat (); 51485 ; 51486 return 0; 51487 } 51488 _ACEOF 51489 if ac_fn_cxx_try_link "$LINENO"; then : 51490 ac_cv_lib_ipc_shmat=yes 51491 else 51492 ac_cv_lib_ipc_shmat=no 51493 fi 51494 rm -f core conftest.err conftest.$ac_objext \ 51495 conftest$ac_exeext conftest.$ac_ext 51496 LIBS=$ac_check_lib_save_LIBS 51497 fi 51498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 51499 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 51500 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 51501 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 51502 fi 51503 51504 fi 51505 fi 51506 51507 # Check for libraries that X11R6 Xt/Xaw programs need. 51508 ac_save_LDFLAGS=$LDFLAGS 51509 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 51510 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 51511 # check for ICE first), but we must link in the order -lSM -lICE or 51512 # we get undefined symbols. So assume we have SM if we have ICE. 51513 # These have to be linked with before -lX11, unlike the other 51514 # libraries we check for below, so use a different variable. 51515 # John Interrante, Karl Berry 51516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 51517 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 51518 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 51519 $as_echo_n "(cached) " >&6 51520 else 51521 ac_check_lib_save_LIBS=$LIBS 51522 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 51523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51524 /* end confdefs.h. */ 51525 51526 /* Override any GCC internal prototype to avoid an error. 51527 Use char because int might match the return type of a GCC 51528 builtin and then its argument prototype would still apply. */ 51529 #ifdef __cplusplus 51530 extern "C" 51531 #endif 51532 char IceConnectionNumber (); 51533 int 51534 main () 51535 { 51536 return IceConnectionNumber (); 51537 ; 51538 return 0; 51539 } 51540 _ACEOF 51541 if ac_fn_cxx_try_link "$LINENO"; then : 51542 ac_cv_lib_ICE_IceConnectionNumber=yes 51543 else 51544 ac_cv_lib_ICE_IceConnectionNumber=no 51545 fi 51546 rm -f core conftest.err conftest.$ac_objext \ 51547 conftest$ac_exeext conftest.$ac_ext 51548 LIBS=$ac_check_lib_save_LIBS 51549 fi 51550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 51551 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 51552 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 51553 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 51554 fi 51555 51556 LDFLAGS=$ac_save_LDFLAGS 51557 51558 fi 51559 51560 51561 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 51562 # this doesn't make sense so we remove it. 51563 if test "x$COMPILE_TYPE" = xcross; then 51564 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 51565 fi 51566 51567 if test "x$no_x" = xyes; then 51568 51569 # Print a helpful message on how to acquire the necessary build dependency. 51570 # x11 is the help tag: freetype, cups, alsa etc 51571 MISSING_DEPENDENCY=x11 51572 51573 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51574 cygwin_help $MISSING_DEPENDENCY 51575 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51576 msys_help $MISSING_DEPENDENCY 51577 else 51578 PKGHANDLER_COMMAND= 51579 51580 case $PKGHANDLER in 51581 apt-get) 51582 apt_help $MISSING_DEPENDENCY ;; 51583 yum) 51584 yum_help $MISSING_DEPENDENCY ;; 51585 port) 51586 port_help $MISSING_DEPENDENCY ;; 51587 pkgutil) 51588 pkgutil_help $MISSING_DEPENDENCY ;; 51589 pkgadd) 51590 pkgadd_help $MISSING_DEPENDENCY ;; 51591 esac 51592 51593 if test "x$PKGHANDLER_COMMAND" != x; then 51594 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 51595 fi 51596 fi 51597 51598 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 51599 fi 51600 51601 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 51602 OPENWIN_HOME="/usr/openwin" 51603 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 51604 X_LIBS="-L$SYSROOT$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 51605 -L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 51606 -R$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 51607 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 51608 fi 51609 51610 ac_ext=c 51611 ac_cpp='$CPP $CPPFLAGS' 51612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51614 ac_compiler_gnu=$ac_cv_c_compiler_gnu 51615 51616 OLD_CFLAGS="$CFLAGS" 51617 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 51618 51619 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 51620 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 51621 do : 51622 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 51623 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 51624 # include <X11/Xlib.h> 51625 # include <X11/Xutil.h> 51626 51627 51628 " 51629 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 51630 cat >>confdefs.h <<_ACEOF 51631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 51632 _ACEOF 51633 X11_HEADERS_OK=yes 51634 else 51635 X11_HEADERS_OK=no; break 51636 fi 51637 51638 done 51639 51640 51641 if test "x$X11_HEADERS_OK" = xno; then 51642 51643 # Print a helpful message on how to acquire the necessary build dependency. 51644 # x11 is the help tag: freetype, cups, alsa etc 51645 MISSING_DEPENDENCY=x11 51646 51647 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51648 cygwin_help $MISSING_DEPENDENCY 51649 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51650 msys_help $MISSING_DEPENDENCY 51651 else 51652 PKGHANDLER_COMMAND= 51653 51654 case $PKGHANDLER in 51655 apt-get) 51656 apt_help $MISSING_DEPENDENCY ;; 51657 yum) 51658 yum_help $MISSING_DEPENDENCY ;; 51659 port) 51660 port_help $MISSING_DEPENDENCY ;; 51661 pkgutil) 51662 pkgutil_help $MISSING_DEPENDENCY ;; 51663 pkgadd) 51664 pkgadd_help $MISSING_DEPENDENCY ;; 51665 esac 51666 51667 if test "x$PKGHANDLER_COMMAND" != x; then 51668 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 51669 fi 51670 fi 51671 51672 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 51673 fi 51674 51675 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 51676 # defined in libawt_xawt. 51677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 51678 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 51679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51680 /* end confdefs.h. */ 51681 #include <X11/extensions/Xrender.h> 51682 int 51683 main () 51684 { 51685 XLinearGradient x; 51686 ; 51687 return 0; 51688 } 51689 _ACEOF 51690 if ac_fn_c_try_compile "$LINENO"; then : 51691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51692 $as_echo "yes" >&6; } 51693 else 51694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51695 $as_echo "no" >&6; } 51696 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 51697 fi 51698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51699 51700 CFLAGS="$OLD_CFLAGS" 51701 ac_ext=cpp 51702 ac_cpp='$CXXCPP $CPPFLAGS' 51703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51706 51707 fi # NEEDS_LIB_X11 51708 51709 51710 51711 51712 51713 51714 # Check whether --with-cups was given. 51715 if test "${with_cups+set}" = set; then : 51716 withval=$with_cups; 51717 fi 51718 51719 51720 # Check whether --with-cups-include was given. 51721 if test "${with_cups_include+set}" = set; then : 51722 withval=$with_cups_include; 51723 fi 51724 51725 51726 if test "x$NEEDS_LIB_CUPS" = xfalse; then 51727 if (test "x${with_cups}" != x && test "x${with_cups}" != xno) || \ 51728 (test "x${with_cups_include}" != x && test "x${with_cups_include}" != xno); then 51729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups[-*] is ignored" >&5 51730 $as_echo "$as_me: WARNING: cups not used, so --with-cups[-*] is ignored" >&2;} 51731 fi 51732 CUPS_CFLAGS= 51733 else 51734 CUPS_FOUND=no 51735 51736 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 51737 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 51738 fi 51739 51740 if test "x${with_cups}" != x; then 51741 CUPS_CFLAGS="-I${with_cups}/include" 51742 CUPS_FOUND=yes 51743 fi 51744 if test "x${with_cups_include}" != x; then 51745 CUPS_CFLAGS="-I${with_cups_include}" 51746 CUPS_FOUND=yes 51747 fi 51748 if test "x$CUPS_FOUND" = xno; then 51749 # Are the cups headers installed in the default /usr/include location? 51750 for ac_header in cups/cups.h cups/ppd.h 51751 do : 51752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 51753 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 51754 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 51755 cat >>confdefs.h <<_ACEOF 51756 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 51757 _ACEOF 51758 51759 CUPS_FOUND=yes 51760 CUPS_CFLAGS= 51761 DEFAULT_CUPS=yes 51762 51763 fi 51764 51765 done 51766 51767 fi 51768 if test "x$CUPS_FOUND" = xno; then 51769 # Getting nervous now? Lets poke around for standard Solaris third-party 51770 # package installation locations. 51771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 51772 $as_echo_n "checking for cups headers... " >&6; } 51773 if test -s $SYSROOT/opt/sfw/cups/include/cups/cups.h; then 51774 # An SFW package seems to be installed! 51775 CUPS_FOUND=yes 51776 CUPS_CFLAGS="-I$SYSROOT/opt/sfw/cups/include" 51777 elif test -s $SYSROOT/opt/csw/include/cups/cups.h; then 51778 # A CSW package seems to be installed! 51779 CUPS_FOUND=yes 51780 CUPS_CFLAGS="-I$SYSROOT/opt/csw/include" 51781 fi 51782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 51783 $as_echo "$CUPS_FOUND" >&6; } 51784 fi 51785 if test "x$CUPS_FOUND" = xno; then 51786 51787 # Print a helpful message on how to acquire the necessary build dependency. 51788 # cups is the help tag: freetype, cups, alsa etc 51789 MISSING_DEPENDENCY=cups 51790 51791 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51792 cygwin_help $MISSING_DEPENDENCY 51793 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51794 msys_help $MISSING_DEPENDENCY 51795 else 51796 PKGHANDLER_COMMAND= 51797 51798 case $PKGHANDLER in 51799 apt-get) 51800 apt_help $MISSING_DEPENDENCY ;; 51801 yum) 51802 yum_help $MISSING_DEPENDENCY ;; 51803 port) 51804 port_help $MISSING_DEPENDENCY ;; 51805 pkgutil) 51806 pkgutil_help $MISSING_DEPENDENCY ;; 51807 pkgadd) 51808 pkgadd_help $MISSING_DEPENDENCY ;; 51809 esac 51810 51811 if test "x$PKGHANDLER_COMMAND" != x; then 51812 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 51813 fi 51814 fi 51815 51816 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 51817 fi 51818 fi 51819 51820 51821 51822 51823 51824 # Check whether --with-freetype was given. 51825 if test "${with_freetype+set}" = set; then : 51826 withval=$with_freetype; 51827 fi 51828 51829 51830 # Check whether --with-freetype-include was given. 51831 if test "${with_freetype_include+set}" = set; then : 51832 withval=$with_freetype_include; 51833 fi 51834 51835 51836 # Check whether --with-freetype-lib was given. 51837 if test "${with_freetype_lib+set}" = set; then : 51838 withval=$with_freetype_lib; 51839 fi 51840 51841 51842 # Check whether --with-freetype-src was given. 51843 if test "${with_freetype_src+set}" = set; then : 51844 withval=$with_freetype_src; 51845 fi 51846 51847 # Check whether --enable-freetype-bundling was given. 51848 if test "${enable_freetype_bundling+set}" = set; then : 51849 enableval=$enable_freetype_bundling; 51850 fi 51851 51852 51853 # Need to specify explicitly since it needs to be overridden on some versions of macosx 51854 FREETYPE_BASE_NAME=freetype 51855 FREETYPE_CFLAGS= 51856 FREETYPE_LIBS= 51857 FREETYPE_BUNDLE_LIB_PATH= 51858 51859 if test "x$NEEDS_LIB_FREETYPE" = xfalse; then 51860 if (test "x$with_freetype" != x && test "x$with_freetype" != xno) || \ 51861 (test "x$with_freetype_include" != x && test "x$with_freetype_include" != xno) || \ 51862 (test "x$with_freetype_lib" != x && test "x$with_freetype_lib" != xno) || \ 51863 (test "x$with_freetype_src" != x && test "x$with_freetype_src" != xno); then 51864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&5 51865 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&2;} 51866 fi 51867 if (test "x$enable_freetype_bundling" != x && test "x$enable_freetype_bundling" != xno); then 51868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 51869 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 51870 fi 51871 else 51872 # freetype is needed to build; go get it! 51873 51874 BUNDLE_FREETYPE="$enable_freetype_bundling" 51875 51876 if test "x$with_freetype_src" != x; then 51877 if test "x$OPENJDK_TARGET_OS" = xwindows; then 51878 # Try to build freetype if --with-freetype-src was given on Windows 51879 51880 FREETYPE_SRC_PATH="$with_freetype_src" 51881 BUILD_FREETYPE=yes 51882 51883 # Check if the freetype sources are acessible.. 51884 if ! test -d $FREETYPE_SRC_PATH; then 51885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&5 51886 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 51887 BUILD_FREETYPE=no 51888 fi 51889 # ..and contain a vc2010 project file 51890 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 51891 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 51892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&5 51893 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 51894 BUILD_FREETYPE=no 51895 fi 51896 # Now check if configure found a version of 'msbuild.exe' 51897 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 51898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find an msbuild.exe executable (you may try to install .NET 4.0) - ignoring --with-freetype-src" >&5 51899 $as_echo "$as_me: WARNING: Can not find an msbuild.exe executable (you may try to install .NET 4.0) - ignoring --with-freetype-src" >&2;} 51900 BUILD_FREETYPE=no 51901 fi 51902 51903 # Ready to go.. 51904 if test "x$BUILD_FREETYPE" = xyes; then 51905 # msbuild requires trailing slashes for output directories 51906 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 51907 freetype_lib_path_unix="$freetype_lib_path" 51908 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 51909 51910 unix_path="$vcxproj_path" 51911 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51912 windows_path=`$CYGPATH -m "$unix_path"` 51913 vcxproj_path="$windows_path" 51914 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51915 windows_path=`cmd //c echo $unix_path` 51916 vcxproj_path="$windows_path" 51917 fi 51918 51919 51920 unix_path="$freetype_lib_path" 51921 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51922 windows_path=`$CYGPATH -m "$unix_path"` 51923 freetype_lib_path="$windows_path" 51924 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51925 windows_path=`cmd //c echo $unix_path` 51926 freetype_lib_path="$windows_path" 51927 fi 51928 51929 51930 unix_path="$freetype_obj_path" 51931 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51932 windows_path=`$CYGPATH -m "$unix_path"` 51933 freetype_obj_path="$windows_path" 51934 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51935 windows_path=`cmd //c echo $unix_path` 51936 freetype_obj_path="$windows_path" 51937 fi 51938 51939 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 51940 freetype_platform=x64 51941 else 51942 freetype_platform=win32 51943 fi 51944 51945 # The original freetype project file is for VS 2010 (i.e. 'v100'), 51946 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 51947 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 51948 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 51949 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 51950 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 51951 51952 # First we try to build the freetype.dll 51953 $ECHO -e "@echo off\n"\ 51954 "$MSBUILD $vcxproj_path "\ 51955 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 51956 "/p:Configuration=\"Release Multithreaded\" "\ 51957 "/p:Platform=$freetype_platform "\ 51958 "/p:ConfigurationType=DynamicLibrary "\ 51959 "/p:TargetName=freetype "\ 51960 "/p:OutDir=\"$freetype_lib_path\" "\ 51961 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 51962 cmd /c freetype.bat 51963 51964 if test -s "$freetype_lib_path_unix/freetype.dll"; then 51965 # If that succeeds we also build freetype.lib 51966 $ECHO -e "@echo off\n"\ 51967 "$MSBUILD $vcxproj_path "\ 51968 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 51969 "/p:Configuration=\"Release Multithreaded\" "\ 51970 "/p:Platform=$freetype_platform "\ 51971 "/p:ConfigurationType=StaticLibrary "\ 51972 "/p:TargetName=freetype "\ 51973 "/p:OutDir=\"$freetype_lib_path\" "\ 51974 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 51975 cmd /c freetype.bat 51976 51977 if test -s "$freetype_lib_path_unix/freetype.lib"; then 51978 # Once we build both, lib and dll, set freetype lib and include path appropriately 51979 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 51980 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 51981 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 51982 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 51983 else 51984 BUILD_FREETYPE=no 51985 fi 51986 else 51987 BUILD_FREETYPE=no 51988 fi 51989 fi 51990 51991 if test "x$BUILD_FREETYPE" = xyes; then 51992 # Okay, we built it. Check that it works. 51993 51994 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 51995 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 51996 METHOD="--with-freetype-src" 51997 51998 # Let's start with an optimistic view of the world :-) 51999 FOUND_FREETYPE=yes 52000 52001 # First look for the canonical freetype main include file ft2build.h. 52002 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 52003 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 52004 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 52005 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 52006 # Fail. 52007 FOUND_FREETYPE=no 52008 fi 52009 fi 52010 52011 if test "x$FOUND_FREETYPE" = xyes; then 52012 # Include file found, let's continue the sanity check. 52013 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 52014 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 52015 52016 # Reset to default value 52017 FREETYPE_BASE_NAME=freetype 52018 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 52019 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 52020 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 52021 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 52022 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 52023 # for the .6 version explicitly. 52024 FREETYPE_BASE_NAME=freetype.6 52025 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 52026 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 52027 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 52028 else 52029 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 52030 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 52031 FOUND_FREETYPE=no 52032 fi 52033 else 52034 if test "x$OPENJDK_TARGET_OS" = xwindows; then 52035 # On Windows, we will need both .lib and .dll file. 52036 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 52037 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 52038 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 52039 FOUND_FREETYPE=no 52040 fi 52041 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 52042 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 52043 # Found lib in isa dir, use that instead. 52044 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 52045 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 52046 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 52047 fi 52048 fi 52049 fi 52050 52051 if test "x$FOUND_FREETYPE" = xyes; then 52052 52053 # Only process if variable expands to non-empty 52054 52055 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 52056 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52057 52058 # Input might be given as Windows format, start by converting to 52059 # unix format. 52060 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 52061 new_path=`$CYGPATH -u "$path"` 52062 52063 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 52064 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 52065 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 52066 # "foo.exe" is OK but "foo" is an error. 52067 # 52068 # This test is therefore slightly more accurate than "test -f" to check for file precense. 52069 # It is also a way to make sure we got the proper file name for the real test later on. 52070 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 52071 if test "x$test_shortpath" = x; then 52072 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 52073 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 52074 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 52075 fi 52076 52077 # Call helper function which possibly converts this using DOS-style short mode. 52078 # If so, the updated path is stored in $new_path. 52079 52080 input_path="$new_path" 52081 # Check if we need to convert this using DOS-style short mode. If the path 52082 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52083 # take no chances and rewrite it. 52084 # Note: m4 eats our [], so we need to use [ and ] instead. 52085 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 52086 if test "x$has_forbidden_chars" != x; then 52087 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52088 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 52089 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 52090 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 52091 # Going to short mode and back again did indeed matter. Since short mode is 52092 # case insensitive, let's make it lowercase to improve readability. 52093 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52094 # Now convert it back to Unix-style (cygpath) 52095 input_path=`$CYGPATH -u "$shortmode_path"` 52096 new_path="$input_path" 52097 fi 52098 fi 52099 52100 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 52101 if test "x$test_cygdrive_prefix" = x; then 52102 # As a simple fix, exclude /usr/bin since it's not a real path. 52103 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 52104 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 52105 # a path prefixed by /cygdrive for fixpath to work. 52106 new_path="$CYGWIN_ROOT_PATH$input_path" 52107 fi 52108 fi 52109 52110 52111 if test "x$path" != "x$new_path"; then 52112 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 52113 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 52114 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 52115 fi 52116 52117 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52118 52119 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 52120 has_colon=`$ECHO $path | $GREP ^.:` 52121 new_path="$path" 52122 if test "x$has_colon" = x; then 52123 # Not in mixed or Windows style, start by that. 52124 new_path=`cmd //c echo $path` 52125 fi 52126 52127 52128 input_path="$new_path" 52129 # Check if we need to convert this using DOS-style short mode. If the path 52130 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52131 # take no chances and rewrite it. 52132 # Note: m4 eats our [], so we need to use [ and ] instead. 52133 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 52134 if test "x$has_forbidden_chars" != x; then 52135 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52136 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52137 fi 52138 52139 52140 windows_path="$new_path" 52141 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52142 unix_path=`$CYGPATH -u "$windows_path"` 52143 new_path="$unix_path" 52144 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52145 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 52146 new_path="$unix_path" 52147 fi 52148 52149 if test "x$path" != "x$new_path"; then 52150 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 52151 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 52152 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 52153 fi 52154 52155 # Save the first 10 bytes of this path to the storage, so fixpath can work. 52156 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 52157 52158 else 52159 # We're on a unix platform. Hooray! :) 52160 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 52161 has_space=`$ECHO "$path" | $GREP " "` 52162 if test "x$has_space" != x; then 52163 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 52164 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 52165 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 52166 fi 52167 52168 # Use eval to expand a potential ~ 52169 eval path="$path" 52170 if test ! -f "$path" && test ! -d "$path"; then 52171 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 52172 fi 52173 52174 if test -d "$path"; then 52175 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 52176 else 52177 dir="`$DIRNAME "$path"`" 52178 base="`$BASENAME "$path"`" 52179 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 52180 fi 52181 fi 52182 fi 52183 52184 52185 # Only process if variable expands to non-empty 52186 52187 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 52188 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52189 52190 # Input might be given as Windows format, start by converting to 52191 # unix format. 52192 path="$POTENTIAL_FREETYPE_LIB_PATH" 52193 new_path=`$CYGPATH -u "$path"` 52194 52195 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 52196 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 52197 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 52198 # "foo.exe" is OK but "foo" is an error. 52199 # 52200 # This test is therefore slightly more accurate than "test -f" to check for file precense. 52201 # It is also a way to make sure we got the proper file name for the real test later on. 52202 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 52203 if test "x$test_shortpath" = x; then 52204 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 52205 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 52206 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 52207 fi 52208 52209 # Call helper function which possibly converts this using DOS-style short mode. 52210 # If so, the updated path is stored in $new_path. 52211 52212 input_path="$new_path" 52213 # Check if we need to convert this using DOS-style short mode. If the path 52214 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52215 # take no chances and rewrite it. 52216 # Note: m4 eats our [], so we need to use [ and ] instead. 52217 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 52218 if test "x$has_forbidden_chars" != x; then 52219 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52220 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 52221 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 52222 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 52223 # Going to short mode and back again did indeed matter. Since short mode is 52224 # case insensitive, let's make it lowercase to improve readability. 52225 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52226 # Now convert it back to Unix-style (cygpath) 52227 input_path=`$CYGPATH -u "$shortmode_path"` 52228 new_path="$input_path" 52229 fi 52230 fi 52231 52232 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 52233 if test "x$test_cygdrive_prefix" = x; then 52234 # As a simple fix, exclude /usr/bin since it's not a real path. 52235 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 52236 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 52237 # a path prefixed by /cygdrive for fixpath to work. 52238 new_path="$CYGWIN_ROOT_PATH$input_path" 52239 fi 52240 fi 52241 52242 52243 if test "x$path" != "x$new_path"; then 52244 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 52245 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 52246 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 52247 fi 52248 52249 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52250 52251 path="$POTENTIAL_FREETYPE_LIB_PATH" 52252 has_colon=`$ECHO $path | $GREP ^.:` 52253 new_path="$path" 52254 if test "x$has_colon" = x; then 52255 # Not in mixed or Windows style, start by that. 52256 new_path=`cmd //c echo $path` 52257 fi 52258 52259 52260 input_path="$new_path" 52261 # Check if we need to convert this using DOS-style short mode. If the path 52262 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52263 # take no chances and rewrite it. 52264 # Note: m4 eats our [], so we need to use [ and ] instead. 52265 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 52266 if test "x$has_forbidden_chars" != x; then 52267 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52268 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52269 fi 52270 52271 52272 windows_path="$new_path" 52273 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52274 unix_path=`$CYGPATH -u "$windows_path"` 52275 new_path="$unix_path" 52276 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52277 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 52278 new_path="$unix_path" 52279 fi 52280 52281 if test "x$path" != "x$new_path"; then 52282 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 52283 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 52284 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 52285 fi 52286 52287 # Save the first 10 bytes of this path to the storage, so fixpath can work. 52288 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 52289 52290 else 52291 # We're on a unix platform. Hooray! :) 52292 path="$POTENTIAL_FREETYPE_LIB_PATH" 52293 has_space=`$ECHO "$path" | $GREP " "` 52294 if test "x$has_space" != x; then 52295 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 52296 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 52297 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 52298 fi 52299 52300 # Use eval to expand a potential ~ 52301 eval path="$path" 52302 if test ! -f "$path" && test ! -d "$path"; then 52303 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 52304 fi 52305 52306 if test -d "$path"; then 52307 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 52308 else 52309 dir="`$DIRNAME "$path"`" 52310 base="`$BASENAME "$path"`" 52311 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 52312 fi 52313 fi 52314 fi 52315 52316 52317 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 52318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 52319 $as_echo_n "checking for freetype includes... " >&6; } 52320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 52321 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 52322 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 52323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 52324 $as_echo_n "checking for freetype libraries... " >&6; } 52325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 52326 $as_echo "$FREETYPE_LIB_PATH" >&6; } 52327 fi 52328 52329 if test "x$FOUND_FREETYPE" != xyes; then 52330 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 52331 fi 52332 else 52333 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 52334 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 52335 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 52336 fi 52337 else 52338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 52339 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 52340 fi 52341 fi 52342 52343 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 52344 # User has specified settings 52345 52346 if test "x$BUNDLE_FREETYPE" = x; then 52347 # If not specified, default is to bundle freetype 52348 BUNDLE_FREETYPE=yes 52349 fi 52350 52351 if test "x$with_freetype" != x; then 52352 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 52353 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 52354 fi 52355 52356 # Allow --with-freetype-lib and --with-freetype-include to override 52357 if test "x$with_freetype_include" != x; then 52358 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 52359 fi 52360 if test "x$with_freetype_lib" != x; then 52361 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 52362 fi 52363 52364 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 52365 # Okay, we got it. Check that it works. 52366 52367 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 52368 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 52369 METHOD="--with-freetype" 52370 52371 # Let's start with an optimistic view of the world :-) 52372 FOUND_FREETYPE=yes 52373 52374 # First look for the canonical freetype main include file ft2build.h. 52375 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 52376 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 52377 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 52378 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 52379 # Fail. 52380 FOUND_FREETYPE=no 52381 fi 52382 fi 52383 52384 if test "x$FOUND_FREETYPE" = xyes; then 52385 # Include file found, let's continue the sanity check. 52386 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 52387 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 52388 52389 # Reset to default value 52390 FREETYPE_BASE_NAME=freetype 52391 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 52392 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 52393 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 52394 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 52395 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 52396 # for the .6 version explicitly. 52397 FREETYPE_BASE_NAME=freetype.6 52398 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 52399 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 52400 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 52401 else 52402 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 52403 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 52404 FOUND_FREETYPE=no 52405 fi 52406 else 52407 if test "x$OPENJDK_TARGET_OS" = xwindows; then 52408 # On Windows, we will need both .lib and .dll file. 52409 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 52410 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 52411 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 52412 FOUND_FREETYPE=no 52413 fi 52414 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 52415 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 52416 # Found lib in isa dir, use that instead. 52417 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 52418 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 52419 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 52420 fi 52421 fi 52422 fi 52423 52424 if test "x$FOUND_FREETYPE" = xyes; then 52425 52426 # Only process if variable expands to non-empty 52427 52428 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 52429 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52430 52431 # Input might be given as Windows format, start by converting to 52432 # unix format. 52433 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 52434 new_path=`$CYGPATH -u "$path"` 52435 52436 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 52437 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 52438 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 52439 # "foo.exe" is OK but "foo" is an error. 52440 # 52441 # This test is therefore slightly more accurate than "test -f" to check for file precense. 52442 # It is also a way to make sure we got the proper file name for the real test later on. 52443 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 52444 if test "x$test_shortpath" = x; then 52445 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 52446 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 52447 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 52448 fi 52449 52450 # Call helper function which possibly converts this using DOS-style short mode. 52451 # If so, the updated path is stored in $new_path. 52452 52453 input_path="$new_path" 52454 # Check if we need to convert this using DOS-style short mode. If the path 52455 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52456 # take no chances and rewrite it. 52457 # Note: m4 eats our [], so we need to use [ and ] instead. 52458 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 52459 if test "x$has_forbidden_chars" != x; then 52460 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52461 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 52462 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 52463 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 52464 # Going to short mode and back again did indeed matter. Since short mode is 52465 # case insensitive, let's make it lowercase to improve readability. 52466 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52467 # Now convert it back to Unix-style (cygpath) 52468 input_path=`$CYGPATH -u "$shortmode_path"` 52469 new_path="$input_path" 52470 fi 52471 fi 52472 52473 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 52474 if test "x$test_cygdrive_prefix" = x; then 52475 # As a simple fix, exclude /usr/bin since it's not a real path. 52476 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 52477 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 52478 # a path prefixed by /cygdrive for fixpath to work. 52479 new_path="$CYGWIN_ROOT_PATH$input_path" 52480 fi 52481 fi 52482 52483 52484 if test "x$path" != "x$new_path"; then 52485 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 52486 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 52487 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 52488 fi 52489 52490 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52491 52492 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 52493 has_colon=`$ECHO $path | $GREP ^.:` 52494 new_path="$path" 52495 if test "x$has_colon" = x; then 52496 # Not in mixed or Windows style, start by that. 52497 new_path=`cmd //c echo $path` 52498 fi 52499 52500 52501 input_path="$new_path" 52502 # Check if we need to convert this using DOS-style short mode. If the path 52503 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52504 # take no chances and rewrite it. 52505 # Note: m4 eats our [], so we need to use [ and ] instead. 52506 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 52507 if test "x$has_forbidden_chars" != x; then 52508 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52509 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52510 fi 52511 52512 52513 windows_path="$new_path" 52514 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52515 unix_path=`$CYGPATH -u "$windows_path"` 52516 new_path="$unix_path" 52517 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52518 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 52519 new_path="$unix_path" 52520 fi 52521 52522 if test "x$path" != "x$new_path"; then 52523 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 52524 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 52525 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 52526 fi 52527 52528 # Save the first 10 bytes of this path to the storage, so fixpath can work. 52529 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 52530 52531 else 52532 # We're on a unix platform. Hooray! :) 52533 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 52534 has_space=`$ECHO "$path" | $GREP " "` 52535 if test "x$has_space" != x; then 52536 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 52537 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 52538 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 52539 fi 52540 52541 # Use eval to expand a potential ~ 52542 eval path="$path" 52543 if test ! -f "$path" && test ! -d "$path"; then 52544 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 52545 fi 52546 52547 if test -d "$path"; then 52548 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 52549 else 52550 dir="`$DIRNAME "$path"`" 52551 base="`$BASENAME "$path"`" 52552 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 52553 fi 52554 fi 52555 fi 52556 52557 52558 # Only process if variable expands to non-empty 52559 52560 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 52561 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52562 52563 # Input might be given as Windows format, start by converting to 52564 # unix format. 52565 path="$POTENTIAL_FREETYPE_LIB_PATH" 52566 new_path=`$CYGPATH -u "$path"` 52567 52568 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 52569 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 52570 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 52571 # "foo.exe" is OK but "foo" is an error. 52572 # 52573 # This test is therefore slightly more accurate than "test -f" to check for file precense. 52574 # It is also a way to make sure we got the proper file name for the real test later on. 52575 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 52576 if test "x$test_shortpath" = x; then 52577 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 52578 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 52579 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 52580 fi 52581 52582 # Call helper function which possibly converts this using DOS-style short mode. 52583 # If so, the updated path is stored in $new_path. 52584 52585 input_path="$new_path" 52586 # Check if we need to convert this using DOS-style short mode. If the path 52587 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52588 # take no chances and rewrite it. 52589 # Note: m4 eats our [], so we need to use [ and ] instead. 52590 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 52591 if test "x$has_forbidden_chars" != x; then 52592 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52593 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 52594 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 52595 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 52596 # Going to short mode and back again did indeed matter. Since short mode is 52597 # case insensitive, let's make it lowercase to improve readability. 52598 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52599 # Now convert it back to Unix-style (cygpath) 52600 input_path=`$CYGPATH -u "$shortmode_path"` 52601 new_path="$input_path" 52602 fi 52603 fi 52604 52605 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 52606 if test "x$test_cygdrive_prefix" = x; then 52607 # As a simple fix, exclude /usr/bin since it's not a real path. 52608 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 52609 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 52610 # a path prefixed by /cygdrive for fixpath to work. 52611 new_path="$CYGWIN_ROOT_PATH$input_path" 52612 fi 52613 fi 52614 52615 52616 if test "x$path" != "x$new_path"; then 52617 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 52618 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 52619 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 52620 fi 52621 52622 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52623 52624 path="$POTENTIAL_FREETYPE_LIB_PATH" 52625 has_colon=`$ECHO $path | $GREP ^.:` 52626 new_path="$path" 52627 if test "x$has_colon" = x; then 52628 # Not in mixed or Windows style, start by that. 52629 new_path=`cmd //c echo $path` 52630 fi 52631 52632 52633 input_path="$new_path" 52634 # Check if we need to convert this using DOS-style short mode. If the path 52635 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52636 # take no chances and rewrite it. 52637 # Note: m4 eats our [], so we need to use [ and ] instead. 52638 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 52639 if test "x$has_forbidden_chars" != x; then 52640 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52641 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52642 fi 52643 52644 52645 windows_path="$new_path" 52646 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52647 unix_path=`$CYGPATH -u "$windows_path"` 52648 new_path="$unix_path" 52649 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52650 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 52651 new_path="$unix_path" 52652 fi 52653 52654 if test "x$path" != "x$new_path"; then 52655 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 52656 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 52657 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 52658 fi 52659 52660 # Save the first 10 bytes of this path to the storage, so fixpath can work. 52661 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 52662 52663 else 52664 # We're on a unix platform. Hooray! :) 52665 path="$POTENTIAL_FREETYPE_LIB_PATH" 52666 has_space=`$ECHO "$path" | $GREP " "` 52667 if test "x$has_space" != x; then 52668 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 52669 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 52670 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 52671 fi 52672 52673 # Use eval to expand a potential ~ 52674 eval path="$path" 52675 if test ! -f "$path" && test ! -d "$path"; then 52676 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 52677 fi 52678 52679 if test -d "$path"; then 52680 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 52681 else 52682 dir="`$DIRNAME "$path"`" 52683 base="`$BASENAME "$path"`" 52684 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 52685 fi 52686 fi 52687 fi 52688 52689 52690 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 52691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 52692 $as_echo_n "checking for freetype includes... " >&6; } 52693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 52694 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 52695 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 52696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 52697 $as_echo_n "checking for freetype libraries... " >&6; } 52698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 52699 $as_echo "$FREETYPE_LIB_PATH" >&6; } 52700 fi 52701 52702 if test "x$FOUND_FREETYPE" != xyes; then 52703 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 52704 fi 52705 else 52706 # User specified only one of lib or include. This is an error. 52707 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 52708 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 52709 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 52710 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 52711 else 52712 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 52713 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 52714 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 52715 fi 52716 fi 52717 else 52718 # User did not specify settings, but we need freetype. Try to locate it. 52719 52720 if test "x$BUNDLE_FREETYPE" = x; then 52721 # If not specified, default is to bundle freetype only on windows 52722 if test "x$OPENJDK_TARGET_OS" = xwindows; then 52723 BUNDLE_FREETYPE=yes 52724 else 52725 BUNDLE_FREETYPE=no 52726 fi 52727 fi 52728 52729 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 52730 if test "x$SYSROOT" = x; then 52731 if test "x$FOUND_FREETYPE" != xyes; then 52732 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 52733 if test "x$PKG_CONFIG" != x; then 52734 52735 pkg_failed=no 52736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 52737 $as_echo_n "checking for FREETYPE... " >&6; } 52738 52739 if test -n "$FREETYPE_CFLAGS"; then 52740 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 52741 elif test -n "$PKG_CONFIG"; then 52742 if test -n "$PKG_CONFIG" && \ 52743 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 52744 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 52745 ac_status=$? 52746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 52747 test $ac_status = 0; }; then 52748 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 52749 else 52750 pkg_failed=yes 52751 fi 52752 else 52753 pkg_failed=untried 52754 fi 52755 if test -n "$FREETYPE_LIBS"; then 52756 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 52757 elif test -n "$PKG_CONFIG"; then 52758 if test -n "$PKG_CONFIG" && \ 52759 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 52760 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 52761 ac_status=$? 52762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 52763 test $ac_status = 0; }; then 52764 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 52765 else 52766 pkg_failed=yes 52767 fi 52768 else 52769 pkg_failed=untried 52770 fi 52771 52772 52773 52774 if test $pkg_failed = yes; then 52775 52776 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 52777 _pkg_short_errors_supported=yes 52778 else 52779 _pkg_short_errors_supported=no 52780 fi 52781 if test $_pkg_short_errors_supported = yes; then 52782 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 52783 else 52784 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 52785 fi 52786 # Put the nasty error message in config.log where it belongs 52787 echo "$FREETYPE_PKG_ERRORS" >&5 52788 52789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52790 $as_echo "no" >&6; } 52791 FOUND_FREETYPE=no 52792 elif test $pkg_failed = untried; then 52793 FOUND_FREETYPE=no 52794 else 52795 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 52796 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 52797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52798 $as_echo "yes" >&6; } 52799 FOUND_FREETYPE=yes 52800 fi 52801 if test "x$FOUND_FREETYPE" = xyes; then 52802 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 52803 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 52804 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 52805 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 52806 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 52807 fi 52808 # PKG_CHECK_MODULES will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 52809 if test "x$BUNDLE_FREETYPE" = xyes; then 52810 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 52811 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 52812 FOUND_FREETYPE=no 52813 else 52814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 52815 $as_echo_n "checking for freetype... " >&6; } 52816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 52817 $as_echo "yes (using pkg-config)" >&6; } 52818 fi 52819 fi 52820 fi 52821 fi 52822 fi 52823 52824 if test "x$FOUND_FREETYPE" != xyes; then 52825 # Check in well-known locations 52826 if test "x$OPENJDK_TARGET_OS" = xwindows; then 52827 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 52828 52829 windows_path="$FREETYPE_BASE_DIR" 52830 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52831 unix_path=`$CYGPATH -u "$windows_path"` 52832 FREETYPE_BASE_DIR="$unix_path" 52833 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52834 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 52835 FREETYPE_BASE_DIR="$unix_path" 52836 fi 52837 52838 52839 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 52840 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 52841 METHOD="well-known location" 52842 52843 # Let's start with an optimistic view of the world :-) 52844 FOUND_FREETYPE=yes 52845 52846 # First look for the canonical freetype main include file ft2build.h. 52847 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 52848 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 52849 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 52850 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 52851 # Fail. 52852 FOUND_FREETYPE=no 52853 fi 52854 fi 52855 52856 if test "x$FOUND_FREETYPE" = xyes; then 52857 # Include file found, let's continue the sanity check. 52858 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 52859 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 52860 52861 # Reset to default value 52862 FREETYPE_BASE_NAME=freetype 52863 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 52864 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 52865 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 52866 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 52867 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 52868 # for the .6 version explicitly. 52869 FREETYPE_BASE_NAME=freetype.6 52870 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 52871 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 52872 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 52873 else 52874 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 52875 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 52876 FOUND_FREETYPE=no 52877 fi 52878 else 52879 if test "x$OPENJDK_TARGET_OS" = xwindows; then 52880 # On Windows, we will need both .lib and .dll file. 52881 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 52882 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 52883 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 52884 FOUND_FREETYPE=no 52885 fi 52886 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 52887 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 52888 # Found lib in isa dir, use that instead. 52889 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 52890 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 52891 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 52892 fi 52893 fi 52894 fi 52895 52896 if test "x$FOUND_FREETYPE" = xyes; then 52897 52898 # Only process if variable expands to non-empty 52899 52900 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 52901 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52902 52903 # Input might be given as Windows format, start by converting to 52904 # unix format. 52905 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 52906 new_path=`$CYGPATH -u "$path"` 52907 52908 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 52909 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 52910 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 52911 # "foo.exe" is OK but "foo" is an error. 52912 # 52913 # This test is therefore slightly more accurate than "test -f" to check for file precense. 52914 # It is also a way to make sure we got the proper file name for the real test later on. 52915 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 52916 if test "x$test_shortpath" = x; then 52917 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 52918 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 52919 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 52920 fi 52921 52922 # Call helper function which possibly converts this using DOS-style short mode. 52923 # If so, the updated path is stored in $new_path. 52924 52925 input_path="$new_path" 52926 # Check if we need to convert this using DOS-style short mode. If the path 52927 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52928 # take no chances and rewrite it. 52929 # Note: m4 eats our [], so we need to use [ and ] instead. 52930 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 52931 if test "x$has_forbidden_chars" != x; then 52932 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52933 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 52934 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 52935 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 52936 # Going to short mode and back again did indeed matter. Since short mode is 52937 # case insensitive, let's make it lowercase to improve readability. 52938 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52939 # Now convert it back to Unix-style (cygpath) 52940 input_path=`$CYGPATH -u "$shortmode_path"` 52941 new_path="$input_path" 52942 fi 52943 fi 52944 52945 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 52946 if test "x$test_cygdrive_prefix" = x; then 52947 # As a simple fix, exclude /usr/bin since it's not a real path. 52948 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 52949 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 52950 # a path prefixed by /cygdrive for fixpath to work. 52951 new_path="$CYGWIN_ROOT_PATH$input_path" 52952 fi 52953 fi 52954 52955 52956 if test "x$path" != "x$new_path"; then 52957 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 52958 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 52959 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 52960 fi 52961 52962 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52963 52964 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 52965 has_colon=`$ECHO $path | $GREP ^.:` 52966 new_path="$path" 52967 if test "x$has_colon" = x; then 52968 # Not in mixed or Windows style, start by that. 52969 new_path=`cmd //c echo $path` 52970 fi 52971 52972 52973 input_path="$new_path" 52974 # Check if we need to convert this using DOS-style short mode. If the path 52975 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52976 # take no chances and rewrite it. 52977 # Note: m4 eats our [], so we need to use [ and ] instead. 52978 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 52979 if test "x$has_forbidden_chars" != x; then 52980 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52981 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52982 fi 52983 52984 52985 windows_path="$new_path" 52986 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52987 unix_path=`$CYGPATH -u "$windows_path"` 52988 new_path="$unix_path" 52989 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52990 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 52991 new_path="$unix_path" 52992 fi 52993 52994 if test "x$path" != "x$new_path"; then 52995 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 52996 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 52997 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 52998 fi 52999 53000 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53001 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53002 53003 else 53004 # We're on a unix platform. Hooray! :) 53005 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 53006 has_space=`$ECHO "$path" | $GREP " "` 53007 if test "x$has_space" != x; then 53008 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 53009 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 53010 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53011 fi 53012 53013 # Use eval to expand a potential ~ 53014 eval path="$path" 53015 if test ! -f "$path" && test ! -d "$path"; then 53016 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 53017 fi 53018 53019 if test -d "$path"; then 53020 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 53021 else 53022 dir="`$DIRNAME "$path"`" 53023 base="`$BASENAME "$path"`" 53024 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 53025 fi 53026 fi 53027 fi 53028 53029 53030 # Only process if variable expands to non-empty 53031 53032 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 53033 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53034 53035 # Input might be given as Windows format, start by converting to 53036 # unix format. 53037 path="$POTENTIAL_FREETYPE_LIB_PATH" 53038 new_path=`$CYGPATH -u "$path"` 53039 53040 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53041 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53042 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53043 # "foo.exe" is OK but "foo" is an error. 53044 # 53045 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53046 # It is also a way to make sure we got the proper file name for the real test later on. 53047 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53048 if test "x$test_shortpath" = x; then 53049 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 53050 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 53051 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 53052 fi 53053 53054 # Call helper function which possibly converts this using DOS-style short mode. 53055 # If so, the updated path is stored in $new_path. 53056 53057 input_path="$new_path" 53058 # Check if we need to convert this using DOS-style short mode. If the path 53059 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53060 # take no chances and rewrite it. 53061 # Note: m4 eats our [], so we need to use [ and ] instead. 53062 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53063 if test "x$has_forbidden_chars" != x; then 53064 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53065 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53066 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53067 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53068 # Going to short mode and back again did indeed matter. Since short mode is 53069 # case insensitive, let's make it lowercase to improve readability. 53070 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53071 # Now convert it back to Unix-style (cygpath) 53072 input_path=`$CYGPATH -u "$shortmode_path"` 53073 new_path="$input_path" 53074 fi 53075 fi 53076 53077 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53078 if test "x$test_cygdrive_prefix" = x; then 53079 # As a simple fix, exclude /usr/bin since it's not a real path. 53080 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53081 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53082 # a path prefixed by /cygdrive for fixpath to work. 53083 new_path="$CYGWIN_ROOT_PATH$input_path" 53084 fi 53085 fi 53086 53087 53088 if test "x$path" != "x$new_path"; then 53089 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 53090 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 53091 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 53092 fi 53093 53094 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53095 53096 path="$POTENTIAL_FREETYPE_LIB_PATH" 53097 has_colon=`$ECHO $path | $GREP ^.:` 53098 new_path="$path" 53099 if test "x$has_colon" = x; then 53100 # Not in mixed or Windows style, start by that. 53101 new_path=`cmd //c echo $path` 53102 fi 53103 53104 53105 input_path="$new_path" 53106 # Check if we need to convert this using DOS-style short mode. If the path 53107 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53108 # take no chances and rewrite it. 53109 # Note: m4 eats our [], so we need to use [ and ] instead. 53110 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53111 if test "x$has_forbidden_chars" != x; then 53112 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53113 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53114 fi 53115 53116 53117 windows_path="$new_path" 53118 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53119 unix_path=`$CYGPATH -u "$windows_path"` 53120 new_path="$unix_path" 53121 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53122 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53123 new_path="$unix_path" 53124 fi 53125 53126 if test "x$path" != "x$new_path"; then 53127 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 53128 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 53129 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 53130 fi 53131 53132 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53133 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53134 53135 else 53136 # We're on a unix platform. Hooray! :) 53137 path="$POTENTIAL_FREETYPE_LIB_PATH" 53138 has_space=`$ECHO "$path" | $GREP " "` 53139 if test "x$has_space" != x; then 53140 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 53141 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 53142 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53143 fi 53144 53145 # Use eval to expand a potential ~ 53146 eval path="$path" 53147 if test ! -f "$path" && test ! -d "$path"; then 53148 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 53149 fi 53150 53151 if test -d "$path"; then 53152 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 53153 else 53154 dir="`$DIRNAME "$path"`" 53155 base="`$BASENAME "$path"`" 53156 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 53157 fi 53158 fi 53159 fi 53160 53161 53162 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 53163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 53164 $as_echo_n "checking for freetype includes... " >&6; } 53165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 53166 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 53167 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 53168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 53169 $as_echo_n "checking for freetype libraries... " >&6; } 53170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 53171 $as_echo "$FREETYPE_LIB_PATH" >&6; } 53172 fi 53173 53174 if test "x$FOUND_FREETYPE" != xyes; then 53175 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 53176 53177 windows_path="$FREETYPE_BASE_DIR" 53178 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53179 unix_path=`$CYGPATH -u "$windows_path"` 53180 FREETYPE_BASE_DIR="$unix_path" 53181 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53182 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53183 FREETYPE_BASE_DIR="$unix_path" 53184 fi 53185 53186 53187 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 53188 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 53189 METHOD="well-known location" 53190 53191 # Let's start with an optimistic view of the world :-) 53192 FOUND_FREETYPE=yes 53193 53194 # First look for the canonical freetype main include file ft2build.h. 53195 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 53196 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 53197 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 53198 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 53199 # Fail. 53200 FOUND_FREETYPE=no 53201 fi 53202 fi 53203 53204 if test "x$FOUND_FREETYPE" = xyes; then 53205 # Include file found, let's continue the sanity check. 53206 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 53207 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 53208 53209 # Reset to default value 53210 FREETYPE_BASE_NAME=freetype 53211 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 53212 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 53213 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 53214 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 53215 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 53216 # for the .6 version explicitly. 53217 FREETYPE_BASE_NAME=freetype.6 53218 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 53219 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 53220 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 53221 else 53222 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 53223 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 53224 FOUND_FREETYPE=no 53225 fi 53226 else 53227 if test "x$OPENJDK_TARGET_OS" = xwindows; then 53228 # On Windows, we will need both .lib and .dll file. 53229 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 53230 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 53231 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 53232 FOUND_FREETYPE=no 53233 fi 53234 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 53235 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 53236 # Found lib in isa dir, use that instead. 53237 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 53238 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 53239 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 53240 fi 53241 fi 53242 fi 53243 53244 if test "x$FOUND_FREETYPE" = xyes; then 53245 53246 # Only process if variable expands to non-empty 53247 53248 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 53249 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53250 53251 # Input might be given as Windows format, start by converting to 53252 # unix format. 53253 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 53254 new_path=`$CYGPATH -u "$path"` 53255 53256 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53257 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53258 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53259 # "foo.exe" is OK but "foo" is an error. 53260 # 53261 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53262 # It is also a way to make sure we got the proper file name for the real test later on. 53263 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53264 if test "x$test_shortpath" = x; then 53265 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 53266 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 53267 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 53268 fi 53269 53270 # Call helper function which possibly converts this using DOS-style short mode. 53271 # If so, the updated path is stored in $new_path. 53272 53273 input_path="$new_path" 53274 # Check if we need to convert this using DOS-style short mode. If the path 53275 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53276 # take no chances and rewrite it. 53277 # Note: m4 eats our [], so we need to use [ and ] instead. 53278 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53279 if test "x$has_forbidden_chars" != x; then 53280 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53281 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53282 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53283 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53284 # Going to short mode and back again did indeed matter. Since short mode is 53285 # case insensitive, let's make it lowercase to improve readability. 53286 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53287 # Now convert it back to Unix-style (cygpath) 53288 input_path=`$CYGPATH -u "$shortmode_path"` 53289 new_path="$input_path" 53290 fi 53291 fi 53292 53293 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53294 if test "x$test_cygdrive_prefix" = x; then 53295 # As a simple fix, exclude /usr/bin since it's not a real path. 53296 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53297 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53298 # a path prefixed by /cygdrive for fixpath to work. 53299 new_path="$CYGWIN_ROOT_PATH$input_path" 53300 fi 53301 fi 53302 53303 53304 if test "x$path" != "x$new_path"; then 53305 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 53306 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 53307 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 53308 fi 53309 53310 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53311 53312 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 53313 has_colon=`$ECHO $path | $GREP ^.:` 53314 new_path="$path" 53315 if test "x$has_colon" = x; then 53316 # Not in mixed or Windows style, start by that. 53317 new_path=`cmd //c echo $path` 53318 fi 53319 53320 53321 input_path="$new_path" 53322 # Check if we need to convert this using DOS-style short mode. If the path 53323 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53324 # take no chances and rewrite it. 53325 # Note: m4 eats our [], so we need to use [ and ] instead. 53326 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53327 if test "x$has_forbidden_chars" != x; then 53328 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53329 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53330 fi 53331 53332 53333 windows_path="$new_path" 53334 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53335 unix_path=`$CYGPATH -u "$windows_path"` 53336 new_path="$unix_path" 53337 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53338 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53339 new_path="$unix_path" 53340 fi 53341 53342 if test "x$path" != "x$new_path"; then 53343 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 53344 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 53345 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 53346 fi 53347 53348 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53349 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53350 53351 else 53352 # We're on a unix platform. Hooray! :) 53353 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 53354 has_space=`$ECHO "$path" | $GREP " "` 53355 if test "x$has_space" != x; then 53356 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 53357 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 53358 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53359 fi 53360 53361 # Use eval to expand a potential ~ 53362 eval path="$path" 53363 if test ! -f "$path" && test ! -d "$path"; then 53364 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 53365 fi 53366 53367 if test -d "$path"; then 53368 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 53369 else 53370 dir="`$DIRNAME "$path"`" 53371 base="`$BASENAME "$path"`" 53372 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 53373 fi 53374 fi 53375 fi 53376 53377 53378 # Only process if variable expands to non-empty 53379 53380 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 53381 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53382 53383 # Input might be given as Windows format, start by converting to 53384 # unix format. 53385 path="$POTENTIAL_FREETYPE_LIB_PATH" 53386 new_path=`$CYGPATH -u "$path"` 53387 53388 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53389 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53390 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53391 # "foo.exe" is OK but "foo" is an error. 53392 # 53393 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53394 # It is also a way to make sure we got the proper file name for the real test later on. 53395 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53396 if test "x$test_shortpath" = x; then 53397 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 53398 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 53399 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 53400 fi 53401 53402 # Call helper function which possibly converts this using DOS-style short mode. 53403 # If so, the updated path is stored in $new_path. 53404 53405 input_path="$new_path" 53406 # Check if we need to convert this using DOS-style short mode. If the path 53407 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53408 # take no chances and rewrite it. 53409 # Note: m4 eats our [], so we need to use [ and ] instead. 53410 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53411 if test "x$has_forbidden_chars" != x; then 53412 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53413 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53414 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53415 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53416 # Going to short mode and back again did indeed matter. Since short mode is 53417 # case insensitive, let's make it lowercase to improve readability. 53418 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53419 # Now convert it back to Unix-style (cygpath) 53420 input_path=`$CYGPATH -u "$shortmode_path"` 53421 new_path="$input_path" 53422 fi 53423 fi 53424 53425 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53426 if test "x$test_cygdrive_prefix" = x; then 53427 # As a simple fix, exclude /usr/bin since it's not a real path. 53428 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53429 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53430 # a path prefixed by /cygdrive for fixpath to work. 53431 new_path="$CYGWIN_ROOT_PATH$input_path" 53432 fi 53433 fi 53434 53435 53436 if test "x$path" != "x$new_path"; then 53437 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 53438 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 53439 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 53440 fi 53441 53442 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53443 53444 path="$POTENTIAL_FREETYPE_LIB_PATH" 53445 has_colon=`$ECHO $path | $GREP ^.:` 53446 new_path="$path" 53447 if test "x$has_colon" = x; then 53448 # Not in mixed or Windows style, start by that. 53449 new_path=`cmd //c echo $path` 53450 fi 53451 53452 53453 input_path="$new_path" 53454 # Check if we need to convert this using DOS-style short mode. If the path 53455 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53456 # take no chances and rewrite it. 53457 # Note: m4 eats our [], so we need to use [ and ] instead. 53458 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53459 if test "x$has_forbidden_chars" != x; then 53460 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53461 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53462 fi 53463 53464 53465 windows_path="$new_path" 53466 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53467 unix_path=`$CYGPATH -u "$windows_path"` 53468 new_path="$unix_path" 53469 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53470 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53471 new_path="$unix_path" 53472 fi 53473 53474 if test "x$path" != "x$new_path"; then 53475 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 53476 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 53477 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 53478 fi 53479 53480 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53481 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53482 53483 else 53484 # We're on a unix platform. Hooray! :) 53485 path="$POTENTIAL_FREETYPE_LIB_PATH" 53486 has_space=`$ECHO "$path" | $GREP " "` 53487 if test "x$has_space" != x; then 53488 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 53489 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 53490 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53491 fi 53492 53493 # Use eval to expand a potential ~ 53494 eval path="$path" 53495 if test ! -f "$path" && test ! -d "$path"; then 53496 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 53497 fi 53498 53499 if test -d "$path"; then 53500 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 53501 else 53502 dir="`$DIRNAME "$path"`" 53503 base="`$BASENAME "$path"`" 53504 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 53505 fi 53506 fi 53507 fi 53508 53509 53510 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 53511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 53512 $as_echo_n "checking for freetype includes... " >&6; } 53513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 53514 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 53515 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 53516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 53517 $as_echo_n "checking for freetype libraries... " >&6; } 53518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 53519 $as_echo "$FREETYPE_LIB_PATH" >&6; } 53520 fi 53521 53522 fi 53523 else 53524 FREETYPE_BASE_DIR="$SYSROOT/usr" 53525 53526 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 53527 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 53528 METHOD="well-known location" 53529 53530 # Let's start with an optimistic view of the world :-) 53531 FOUND_FREETYPE=yes 53532 53533 # First look for the canonical freetype main include file ft2build.h. 53534 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 53535 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 53536 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 53537 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 53538 # Fail. 53539 FOUND_FREETYPE=no 53540 fi 53541 fi 53542 53543 if test "x$FOUND_FREETYPE" = xyes; then 53544 # Include file found, let's continue the sanity check. 53545 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 53546 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 53547 53548 # Reset to default value 53549 FREETYPE_BASE_NAME=freetype 53550 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 53551 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 53552 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 53553 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 53554 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 53555 # for the .6 version explicitly. 53556 FREETYPE_BASE_NAME=freetype.6 53557 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 53558 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 53559 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 53560 else 53561 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 53562 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 53563 FOUND_FREETYPE=no 53564 fi 53565 else 53566 if test "x$OPENJDK_TARGET_OS" = xwindows; then 53567 # On Windows, we will need both .lib and .dll file. 53568 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 53569 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 53570 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 53571 FOUND_FREETYPE=no 53572 fi 53573 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 53574 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 53575 # Found lib in isa dir, use that instead. 53576 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 53577 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 53578 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 53579 fi 53580 fi 53581 fi 53582 53583 if test "x$FOUND_FREETYPE" = xyes; then 53584 53585 # Only process if variable expands to non-empty 53586 53587 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 53588 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53589 53590 # Input might be given as Windows format, start by converting to 53591 # unix format. 53592 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 53593 new_path=`$CYGPATH -u "$path"` 53594 53595 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53596 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53597 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53598 # "foo.exe" is OK but "foo" is an error. 53599 # 53600 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53601 # It is also a way to make sure we got the proper file name for the real test later on. 53602 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53603 if test "x$test_shortpath" = x; then 53604 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 53605 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 53606 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 53607 fi 53608 53609 # Call helper function which possibly converts this using DOS-style short mode. 53610 # If so, the updated path is stored in $new_path. 53611 53612 input_path="$new_path" 53613 # Check if we need to convert this using DOS-style short mode. If the path 53614 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53615 # take no chances and rewrite it. 53616 # Note: m4 eats our [], so we need to use [ and ] instead. 53617 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53618 if test "x$has_forbidden_chars" != x; then 53619 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53620 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53621 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53622 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53623 # Going to short mode and back again did indeed matter. Since short mode is 53624 # case insensitive, let's make it lowercase to improve readability. 53625 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53626 # Now convert it back to Unix-style (cygpath) 53627 input_path=`$CYGPATH -u "$shortmode_path"` 53628 new_path="$input_path" 53629 fi 53630 fi 53631 53632 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53633 if test "x$test_cygdrive_prefix" = x; then 53634 # As a simple fix, exclude /usr/bin since it's not a real path. 53635 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53636 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53637 # a path prefixed by /cygdrive for fixpath to work. 53638 new_path="$CYGWIN_ROOT_PATH$input_path" 53639 fi 53640 fi 53641 53642 53643 if test "x$path" != "x$new_path"; then 53644 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 53645 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 53646 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 53647 fi 53648 53649 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53650 53651 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 53652 has_colon=`$ECHO $path | $GREP ^.:` 53653 new_path="$path" 53654 if test "x$has_colon" = x; then 53655 # Not in mixed or Windows style, start by that. 53656 new_path=`cmd //c echo $path` 53657 fi 53658 53659 53660 input_path="$new_path" 53661 # Check if we need to convert this using DOS-style short mode. If the path 53662 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53663 # take no chances and rewrite it. 53664 # Note: m4 eats our [], so we need to use [ and ] instead. 53665 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53666 if test "x$has_forbidden_chars" != x; then 53667 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53668 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53669 fi 53670 53671 53672 windows_path="$new_path" 53673 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53674 unix_path=`$CYGPATH -u "$windows_path"` 53675 new_path="$unix_path" 53676 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53677 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53678 new_path="$unix_path" 53679 fi 53680 53681 if test "x$path" != "x$new_path"; then 53682 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 53683 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 53684 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 53685 fi 53686 53687 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53688 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53689 53690 else 53691 # We're on a unix platform. Hooray! :) 53692 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 53693 has_space=`$ECHO "$path" | $GREP " "` 53694 if test "x$has_space" != x; then 53695 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 53696 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 53697 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53698 fi 53699 53700 # Use eval to expand a potential ~ 53701 eval path="$path" 53702 if test ! -f "$path" && test ! -d "$path"; then 53703 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 53704 fi 53705 53706 if test -d "$path"; then 53707 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 53708 else 53709 dir="`$DIRNAME "$path"`" 53710 base="`$BASENAME "$path"`" 53711 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 53712 fi 53713 fi 53714 fi 53715 53716 53717 # Only process if variable expands to non-empty 53718 53719 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 53720 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53721 53722 # Input might be given as Windows format, start by converting to 53723 # unix format. 53724 path="$POTENTIAL_FREETYPE_LIB_PATH" 53725 new_path=`$CYGPATH -u "$path"` 53726 53727 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53728 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53729 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53730 # "foo.exe" is OK but "foo" is an error. 53731 # 53732 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53733 # It is also a way to make sure we got the proper file name for the real test later on. 53734 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53735 if test "x$test_shortpath" = x; then 53736 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 53737 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 53738 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 53739 fi 53740 53741 # Call helper function which possibly converts this using DOS-style short mode. 53742 # If so, the updated path is stored in $new_path. 53743 53744 input_path="$new_path" 53745 # Check if we need to convert this using DOS-style short mode. If the path 53746 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53747 # take no chances and rewrite it. 53748 # Note: m4 eats our [], so we need to use [ and ] instead. 53749 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53750 if test "x$has_forbidden_chars" != x; then 53751 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53752 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53753 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53754 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53755 # Going to short mode and back again did indeed matter. Since short mode is 53756 # case insensitive, let's make it lowercase to improve readability. 53757 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53758 # Now convert it back to Unix-style (cygpath) 53759 input_path=`$CYGPATH -u "$shortmode_path"` 53760 new_path="$input_path" 53761 fi 53762 fi 53763 53764 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53765 if test "x$test_cygdrive_prefix" = x; then 53766 # As a simple fix, exclude /usr/bin since it's not a real path. 53767 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53768 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53769 # a path prefixed by /cygdrive for fixpath to work. 53770 new_path="$CYGWIN_ROOT_PATH$input_path" 53771 fi 53772 fi 53773 53774 53775 if test "x$path" != "x$new_path"; then 53776 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 53777 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 53778 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 53779 fi 53780 53781 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53782 53783 path="$POTENTIAL_FREETYPE_LIB_PATH" 53784 has_colon=`$ECHO $path | $GREP ^.:` 53785 new_path="$path" 53786 if test "x$has_colon" = x; then 53787 # Not in mixed or Windows style, start by that. 53788 new_path=`cmd //c echo $path` 53789 fi 53790 53791 53792 input_path="$new_path" 53793 # Check if we need to convert this using DOS-style short mode. If the path 53794 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53795 # take no chances and rewrite it. 53796 # Note: m4 eats our [], so we need to use [ and ] instead. 53797 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53798 if test "x$has_forbidden_chars" != x; then 53799 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53800 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53801 fi 53802 53803 53804 windows_path="$new_path" 53805 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53806 unix_path=`$CYGPATH -u "$windows_path"` 53807 new_path="$unix_path" 53808 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53809 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53810 new_path="$unix_path" 53811 fi 53812 53813 if test "x$path" != "x$new_path"; then 53814 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 53815 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 53816 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 53817 fi 53818 53819 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53820 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53821 53822 else 53823 # We're on a unix platform. Hooray! :) 53824 path="$POTENTIAL_FREETYPE_LIB_PATH" 53825 has_space=`$ECHO "$path" | $GREP " "` 53826 if test "x$has_space" != x; then 53827 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 53828 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 53829 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53830 fi 53831 53832 # Use eval to expand a potential ~ 53833 eval path="$path" 53834 if test ! -f "$path" && test ! -d "$path"; then 53835 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 53836 fi 53837 53838 if test -d "$path"; then 53839 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 53840 else 53841 dir="`$DIRNAME "$path"`" 53842 base="`$BASENAME "$path"`" 53843 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 53844 fi 53845 fi 53846 fi 53847 53848 53849 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 53850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 53851 $as_echo_n "checking for freetype includes... " >&6; } 53852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 53853 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 53854 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 53855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 53856 $as_echo_n "checking for freetype libraries... " >&6; } 53857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 53858 $as_echo "$FREETYPE_LIB_PATH" >&6; } 53859 fi 53860 53861 53862 if test "x$FOUND_FREETYPE" != xyes; then 53863 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 53864 53865 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 53866 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 53867 METHOD="well-known location" 53868 53869 # Let's start with an optimistic view of the world :-) 53870 FOUND_FREETYPE=yes 53871 53872 # First look for the canonical freetype main include file ft2build.h. 53873 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 53874 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 53875 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 53876 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 53877 # Fail. 53878 FOUND_FREETYPE=no 53879 fi 53880 fi 53881 53882 if test "x$FOUND_FREETYPE" = xyes; then 53883 # Include file found, let's continue the sanity check. 53884 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 53885 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 53886 53887 # Reset to default value 53888 FREETYPE_BASE_NAME=freetype 53889 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 53890 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 53891 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 53892 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 53893 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 53894 # for the .6 version explicitly. 53895 FREETYPE_BASE_NAME=freetype.6 53896 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 53897 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 53898 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 53899 else 53900 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 53901 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 53902 FOUND_FREETYPE=no 53903 fi 53904 else 53905 if test "x$OPENJDK_TARGET_OS" = xwindows; then 53906 # On Windows, we will need both .lib and .dll file. 53907 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 53908 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 53909 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 53910 FOUND_FREETYPE=no 53911 fi 53912 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 53913 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 53914 # Found lib in isa dir, use that instead. 53915 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 53916 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 53917 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 53918 fi 53919 fi 53920 fi 53921 53922 if test "x$FOUND_FREETYPE" = xyes; then 53923 53924 # Only process if variable expands to non-empty 53925 53926 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 53927 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53928 53929 # Input might be given as Windows format, start by converting to 53930 # unix format. 53931 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 53932 new_path=`$CYGPATH -u "$path"` 53933 53934 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53935 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53936 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53937 # "foo.exe" is OK but "foo" is an error. 53938 # 53939 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53940 # It is also a way to make sure we got the proper file name for the real test later on. 53941 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53942 if test "x$test_shortpath" = x; then 53943 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 53944 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 53945 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 53946 fi 53947 53948 # Call helper function which possibly converts this using DOS-style short mode. 53949 # If so, the updated path is stored in $new_path. 53950 53951 input_path="$new_path" 53952 # Check if we need to convert this using DOS-style short mode. If the path 53953 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53954 # take no chances and rewrite it. 53955 # Note: m4 eats our [], so we need to use [ and ] instead. 53956 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53957 if test "x$has_forbidden_chars" != x; then 53958 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53959 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53960 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53961 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53962 # Going to short mode and back again did indeed matter. Since short mode is 53963 # case insensitive, let's make it lowercase to improve readability. 53964 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53965 # Now convert it back to Unix-style (cygpath) 53966 input_path=`$CYGPATH -u "$shortmode_path"` 53967 new_path="$input_path" 53968 fi 53969 fi 53970 53971 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53972 if test "x$test_cygdrive_prefix" = x; then 53973 # As a simple fix, exclude /usr/bin since it's not a real path. 53974 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53975 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53976 # a path prefixed by /cygdrive for fixpath to work. 53977 new_path="$CYGWIN_ROOT_PATH$input_path" 53978 fi 53979 fi 53980 53981 53982 if test "x$path" != "x$new_path"; then 53983 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 53984 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 53985 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 53986 fi 53987 53988 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53989 53990 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 53991 has_colon=`$ECHO $path | $GREP ^.:` 53992 new_path="$path" 53993 if test "x$has_colon" = x; then 53994 # Not in mixed or Windows style, start by that. 53995 new_path=`cmd //c echo $path` 53996 fi 53997 53998 53999 input_path="$new_path" 54000 # Check if we need to convert this using DOS-style short mode. If the path 54001 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54002 # take no chances and rewrite it. 54003 # Note: m4 eats our [], so we need to use [ and ] instead. 54004 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54005 if test "x$has_forbidden_chars" != x; then 54006 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54007 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54008 fi 54009 54010 54011 windows_path="$new_path" 54012 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54013 unix_path=`$CYGPATH -u "$windows_path"` 54014 new_path="$unix_path" 54015 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54016 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54017 new_path="$unix_path" 54018 fi 54019 54020 if test "x$path" != "x$new_path"; then 54021 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 54022 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 54023 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 54024 fi 54025 54026 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54027 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54028 54029 else 54030 # We're on a unix platform. Hooray! :) 54031 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 54032 has_space=`$ECHO "$path" | $GREP " "` 54033 if test "x$has_space" != x; then 54034 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 54035 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 54036 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54037 fi 54038 54039 # Use eval to expand a potential ~ 54040 eval path="$path" 54041 if test ! -f "$path" && test ! -d "$path"; then 54042 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 54043 fi 54044 54045 if test -d "$path"; then 54046 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 54047 else 54048 dir="`$DIRNAME "$path"`" 54049 base="`$BASENAME "$path"`" 54050 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 54051 fi 54052 fi 54053 fi 54054 54055 54056 # Only process if variable expands to non-empty 54057 54058 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 54059 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54060 54061 # Input might be given as Windows format, start by converting to 54062 # unix format. 54063 path="$POTENTIAL_FREETYPE_LIB_PATH" 54064 new_path=`$CYGPATH -u "$path"` 54065 54066 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54067 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54068 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54069 # "foo.exe" is OK but "foo" is an error. 54070 # 54071 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54072 # It is also a way to make sure we got the proper file name for the real test later on. 54073 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54074 if test "x$test_shortpath" = x; then 54075 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 54076 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 54077 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 54078 fi 54079 54080 # Call helper function which possibly converts this using DOS-style short mode. 54081 # If so, the updated path is stored in $new_path. 54082 54083 input_path="$new_path" 54084 # Check if we need to convert this using DOS-style short mode. If the path 54085 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54086 # take no chances and rewrite it. 54087 # Note: m4 eats our [], so we need to use [ and ] instead. 54088 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54089 if test "x$has_forbidden_chars" != x; then 54090 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54091 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54092 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54093 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54094 # Going to short mode and back again did indeed matter. Since short mode is 54095 # case insensitive, let's make it lowercase to improve readability. 54096 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54097 # Now convert it back to Unix-style (cygpath) 54098 input_path=`$CYGPATH -u "$shortmode_path"` 54099 new_path="$input_path" 54100 fi 54101 fi 54102 54103 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54104 if test "x$test_cygdrive_prefix" = x; then 54105 # As a simple fix, exclude /usr/bin since it's not a real path. 54106 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54107 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54108 # a path prefixed by /cygdrive for fixpath to work. 54109 new_path="$CYGWIN_ROOT_PATH$input_path" 54110 fi 54111 fi 54112 54113 54114 if test "x$path" != "x$new_path"; then 54115 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 54116 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 54117 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 54118 fi 54119 54120 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54121 54122 path="$POTENTIAL_FREETYPE_LIB_PATH" 54123 has_colon=`$ECHO $path | $GREP ^.:` 54124 new_path="$path" 54125 if test "x$has_colon" = x; then 54126 # Not in mixed or Windows style, start by that. 54127 new_path=`cmd //c echo $path` 54128 fi 54129 54130 54131 input_path="$new_path" 54132 # Check if we need to convert this using DOS-style short mode. If the path 54133 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54134 # take no chances and rewrite it. 54135 # Note: m4 eats our [], so we need to use [ and ] instead. 54136 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54137 if test "x$has_forbidden_chars" != x; then 54138 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54139 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54140 fi 54141 54142 54143 windows_path="$new_path" 54144 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54145 unix_path=`$CYGPATH -u "$windows_path"` 54146 new_path="$unix_path" 54147 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54148 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54149 new_path="$unix_path" 54150 fi 54151 54152 if test "x$path" != "x$new_path"; then 54153 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 54154 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 54155 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 54156 fi 54157 54158 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54159 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54160 54161 else 54162 # We're on a unix platform. Hooray! :) 54163 path="$POTENTIAL_FREETYPE_LIB_PATH" 54164 has_space=`$ECHO "$path" | $GREP " "` 54165 if test "x$has_space" != x; then 54166 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 54167 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 54168 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54169 fi 54170 54171 # Use eval to expand a potential ~ 54172 eval path="$path" 54173 if test ! -f "$path" && test ! -d "$path"; then 54174 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 54175 fi 54176 54177 if test -d "$path"; then 54178 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 54179 else 54180 dir="`$DIRNAME "$path"`" 54181 base="`$BASENAME "$path"`" 54182 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 54183 fi 54184 fi 54185 fi 54186 54187 54188 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 54189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 54190 $as_echo_n "checking for freetype includes... " >&6; } 54191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 54192 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 54193 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 54194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 54195 $as_echo_n "checking for freetype libraries... " >&6; } 54196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 54197 $as_echo "$FREETYPE_LIB_PATH" >&6; } 54198 fi 54199 54200 fi 54201 54202 if test "x$FOUND_FREETYPE" != xyes; then 54203 FREETYPE_BASE_DIR="$SYSROOT/usr/sfw" 54204 54205 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 54206 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 54207 METHOD="well-known location" 54208 54209 # Let's start with an optimistic view of the world :-) 54210 FOUND_FREETYPE=yes 54211 54212 # First look for the canonical freetype main include file ft2build.h. 54213 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 54214 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 54215 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 54216 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 54217 # Fail. 54218 FOUND_FREETYPE=no 54219 fi 54220 fi 54221 54222 if test "x$FOUND_FREETYPE" = xyes; then 54223 # Include file found, let's continue the sanity check. 54224 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 54225 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 54226 54227 # Reset to default value 54228 FREETYPE_BASE_NAME=freetype 54229 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 54230 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 54231 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 54232 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 54233 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 54234 # for the .6 version explicitly. 54235 FREETYPE_BASE_NAME=freetype.6 54236 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 54237 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 54238 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 54239 else 54240 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 54241 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 54242 FOUND_FREETYPE=no 54243 fi 54244 else 54245 if test "x$OPENJDK_TARGET_OS" = xwindows; then 54246 # On Windows, we will need both .lib and .dll file. 54247 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 54248 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 54249 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 54250 FOUND_FREETYPE=no 54251 fi 54252 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 54253 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 54254 # Found lib in isa dir, use that instead. 54255 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 54256 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 54257 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 54258 fi 54259 fi 54260 fi 54261 54262 if test "x$FOUND_FREETYPE" = xyes; then 54263 54264 # Only process if variable expands to non-empty 54265 54266 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 54267 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54268 54269 # Input might be given as Windows format, start by converting to 54270 # unix format. 54271 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 54272 new_path=`$CYGPATH -u "$path"` 54273 54274 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54275 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54276 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54277 # "foo.exe" is OK but "foo" is an error. 54278 # 54279 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54280 # It is also a way to make sure we got the proper file name for the real test later on. 54281 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54282 if test "x$test_shortpath" = x; then 54283 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 54284 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 54285 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 54286 fi 54287 54288 # Call helper function which possibly converts this using DOS-style short mode. 54289 # If so, the updated path is stored in $new_path. 54290 54291 input_path="$new_path" 54292 # Check if we need to convert this using DOS-style short mode. If the path 54293 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54294 # take no chances and rewrite it. 54295 # Note: m4 eats our [], so we need to use [ and ] instead. 54296 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54297 if test "x$has_forbidden_chars" != x; then 54298 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54299 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54300 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54301 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54302 # Going to short mode and back again did indeed matter. Since short mode is 54303 # case insensitive, let's make it lowercase to improve readability. 54304 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54305 # Now convert it back to Unix-style (cygpath) 54306 input_path=`$CYGPATH -u "$shortmode_path"` 54307 new_path="$input_path" 54308 fi 54309 fi 54310 54311 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54312 if test "x$test_cygdrive_prefix" = x; then 54313 # As a simple fix, exclude /usr/bin since it's not a real path. 54314 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54315 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54316 # a path prefixed by /cygdrive for fixpath to work. 54317 new_path="$CYGWIN_ROOT_PATH$input_path" 54318 fi 54319 fi 54320 54321 54322 if test "x$path" != "x$new_path"; then 54323 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 54324 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 54325 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 54326 fi 54327 54328 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54329 54330 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 54331 has_colon=`$ECHO $path | $GREP ^.:` 54332 new_path="$path" 54333 if test "x$has_colon" = x; then 54334 # Not in mixed or Windows style, start by that. 54335 new_path=`cmd //c echo $path` 54336 fi 54337 54338 54339 input_path="$new_path" 54340 # Check if we need to convert this using DOS-style short mode. If the path 54341 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54342 # take no chances and rewrite it. 54343 # Note: m4 eats our [], so we need to use [ and ] instead. 54344 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54345 if test "x$has_forbidden_chars" != x; then 54346 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54347 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54348 fi 54349 54350 54351 windows_path="$new_path" 54352 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54353 unix_path=`$CYGPATH -u "$windows_path"` 54354 new_path="$unix_path" 54355 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54356 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54357 new_path="$unix_path" 54358 fi 54359 54360 if test "x$path" != "x$new_path"; then 54361 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 54362 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 54363 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 54364 fi 54365 54366 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54367 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54368 54369 else 54370 # We're on a unix platform. Hooray! :) 54371 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 54372 has_space=`$ECHO "$path" | $GREP " "` 54373 if test "x$has_space" != x; then 54374 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 54375 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 54376 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54377 fi 54378 54379 # Use eval to expand a potential ~ 54380 eval path="$path" 54381 if test ! -f "$path" && test ! -d "$path"; then 54382 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 54383 fi 54384 54385 if test -d "$path"; then 54386 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 54387 else 54388 dir="`$DIRNAME "$path"`" 54389 base="`$BASENAME "$path"`" 54390 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 54391 fi 54392 fi 54393 fi 54394 54395 54396 # Only process if variable expands to non-empty 54397 54398 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 54399 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54400 54401 # Input might be given as Windows format, start by converting to 54402 # unix format. 54403 path="$POTENTIAL_FREETYPE_LIB_PATH" 54404 new_path=`$CYGPATH -u "$path"` 54405 54406 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54407 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54408 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54409 # "foo.exe" is OK but "foo" is an error. 54410 # 54411 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54412 # It is also a way to make sure we got the proper file name for the real test later on. 54413 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54414 if test "x$test_shortpath" = x; then 54415 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 54416 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 54417 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 54418 fi 54419 54420 # Call helper function which possibly converts this using DOS-style short mode. 54421 # If so, the updated path is stored in $new_path. 54422 54423 input_path="$new_path" 54424 # Check if we need to convert this using DOS-style short mode. If the path 54425 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54426 # take no chances and rewrite it. 54427 # Note: m4 eats our [], so we need to use [ and ] instead. 54428 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54429 if test "x$has_forbidden_chars" != x; then 54430 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54431 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54432 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54433 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54434 # Going to short mode and back again did indeed matter. Since short mode is 54435 # case insensitive, let's make it lowercase to improve readability. 54436 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54437 # Now convert it back to Unix-style (cygpath) 54438 input_path=`$CYGPATH -u "$shortmode_path"` 54439 new_path="$input_path" 54440 fi 54441 fi 54442 54443 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54444 if test "x$test_cygdrive_prefix" = x; then 54445 # As a simple fix, exclude /usr/bin since it's not a real path. 54446 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54447 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54448 # a path prefixed by /cygdrive for fixpath to work. 54449 new_path="$CYGWIN_ROOT_PATH$input_path" 54450 fi 54451 fi 54452 54453 54454 if test "x$path" != "x$new_path"; then 54455 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 54456 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 54457 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 54458 fi 54459 54460 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54461 54462 path="$POTENTIAL_FREETYPE_LIB_PATH" 54463 has_colon=`$ECHO $path | $GREP ^.:` 54464 new_path="$path" 54465 if test "x$has_colon" = x; then 54466 # Not in mixed or Windows style, start by that. 54467 new_path=`cmd //c echo $path` 54468 fi 54469 54470 54471 input_path="$new_path" 54472 # Check if we need to convert this using DOS-style short mode. If the path 54473 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54474 # take no chances and rewrite it. 54475 # Note: m4 eats our [], so we need to use [ and ] instead. 54476 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54477 if test "x$has_forbidden_chars" != x; then 54478 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54479 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54480 fi 54481 54482 54483 windows_path="$new_path" 54484 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54485 unix_path=`$CYGPATH -u "$windows_path"` 54486 new_path="$unix_path" 54487 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54488 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54489 new_path="$unix_path" 54490 fi 54491 54492 if test "x$path" != "x$new_path"; then 54493 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 54494 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 54495 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 54496 fi 54497 54498 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54499 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54500 54501 else 54502 # We're on a unix platform. Hooray! :) 54503 path="$POTENTIAL_FREETYPE_LIB_PATH" 54504 has_space=`$ECHO "$path" | $GREP " "` 54505 if test "x$has_space" != x; then 54506 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 54507 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 54508 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54509 fi 54510 54511 # Use eval to expand a potential ~ 54512 eval path="$path" 54513 if test ! -f "$path" && test ! -d "$path"; then 54514 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 54515 fi 54516 54517 if test -d "$path"; then 54518 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 54519 else 54520 dir="`$DIRNAME "$path"`" 54521 base="`$BASENAME "$path"`" 54522 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 54523 fi 54524 fi 54525 fi 54526 54527 54528 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 54529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 54530 $as_echo_n "checking for freetype includes... " >&6; } 54531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 54532 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 54533 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 54534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 54535 $as_echo_n "checking for freetype libraries... " >&6; } 54536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 54537 $as_echo "$FREETYPE_LIB_PATH" >&6; } 54538 fi 54539 54540 fi 54541 54542 if test "x$FOUND_FREETYPE" != xyes; then 54543 FREETYPE_BASE_DIR="$SYSROOT/usr" 54544 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 54545 54546 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 54547 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 54548 METHOD="well-known location" 54549 54550 # Let's start with an optimistic view of the world :-) 54551 FOUND_FREETYPE=yes 54552 54553 # First look for the canonical freetype main include file ft2build.h. 54554 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 54555 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 54556 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 54557 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 54558 # Fail. 54559 FOUND_FREETYPE=no 54560 fi 54561 fi 54562 54563 if test "x$FOUND_FREETYPE" = xyes; then 54564 # Include file found, let's continue the sanity check. 54565 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 54566 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 54567 54568 # Reset to default value 54569 FREETYPE_BASE_NAME=freetype 54570 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 54571 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 54572 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 54573 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 54574 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 54575 # for the .6 version explicitly. 54576 FREETYPE_BASE_NAME=freetype.6 54577 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 54578 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 54579 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 54580 else 54581 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 54582 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 54583 FOUND_FREETYPE=no 54584 fi 54585 else 54586 if test "x$OPENJDK_TARGET_OS" = xwindows; then 54587 # On Windows, we will need both .lib and .dll file. 54588 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 54589 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 54590 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 54591 FOUND_FREETYPE=no 54592 fi 54593 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 54594 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 54595 # Found lib in isa dir, use that instead. 54596 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 54597 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 54598 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 54599 fi 54600 fi 54601 fi 54602 54603 if test "x$FOUND_FREETYPE" = xyes; then 54604 54605 # Only process if variable expands to non-empty 54606 54607 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 54608 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54609 54610 # Input might be given as Windows format, start by converting to 54611 # unix format. 54612 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 54613 new_path=`$CYGPATH -u "$path"` 54614 54615 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54616 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54617 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54618 # "foo.exe" is OK but "foo" is an error. 54619 # 54620 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54621 # It is also a way to make sure we got the proper file name for the real test later on. 54622 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54623 if test "x$test_shortpath" = x; then 54624 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 54625 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 54626 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 54627 fi 54628 54629 # Call helper function which possibly converts this using DOS-style short mode. 54630 # If so, the updated path is stored in $new_path. 54631 54632 input_path="$new_path" 54633 # Check if we need to convert this using DOS-style short mode. If the path 54634 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54635 # take no chances and rewrite it. 54636 # Note: m4 eats our [], so we need to use [ and ] instead. 54637 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54638 if test "x$has_forbidden_chars" != x; then 54639 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54640 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54641 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54642 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54643 # Going to short mode and back again did indeed matter. Since short mode is 54644 # case insensitive, let's make it lowercase to improve readability. 54645 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54646 # Now convert it back to Unix-style (cygpath) 54647 input_path=`$CYGPATH -u "$shortmode_path"` 54648 new_path="$input_path" 54649 fi 54650 fi 54651 54652 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54653 if test "x$test_cygdrive_prefix" = x; then 54654 # As a simple fix, exclude /usr/bin since it's not a real path. 54655 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54656 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54657 # a path prefixed by /cygdrive for fixpath to work. 54658 new_path="$CYGWIN_ROOT_PATH$input_path" 54659 fi 54660 fi 54661 54662 54663 if test "x$path" != "x$new_path"; then 54664 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 54665 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 54666 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 54667 fi 54668 54669 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54670 54671 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 54672 has_colon=`$ECHO $path | $GREP ^.:` 54673 new_path="$path" 54674 if test "x$has_colon" = x; then 54675 # Not in mixed or Windows style, start by that. 54676 new_path=`cmd //c echo $path` 54677 fi 54678 54679 54680 input_path="$new_path" 54681 # Check if we need to convert this using DOS-style short mode. If the path 54682 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54683 # take no chances and rewrite it. 54684 # Note: m4 eats our [], so we need to use [ and ] instead. 54685 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54686 if test "x$has_forbidden_chars" != x; then 54687 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54688 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54689 fi 54690 54691 54692 windows_path="$new_path" 54693 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54694 unix_path=`$CYGPATH -u "$windows_path"` 54695 new_path="$unix_path" 54696 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54697 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54698 new_path="$unix_path" 54699 fi 54700 54701 if test "x$path" != "x$new_path"; then 54702 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 54703 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 54704 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 54705 fi 54706 54707 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54708 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54709 54710 else 54711 # We're on a unix platform. Hooray! :) 54712 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 54713 has_space=`$ECHO "$path" | $GREP " "` 54714 if test "x$has_space" != x; then 54715 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 54716 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 54717 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54718 fi 54719 54720 # Use eval to expand a potential ~ 54721 eval path="$path" 54722 if test ! -f "$path" && test ! -d "$path"; then 54723 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 54724 fi 54725 54726 if test -d "$path"; then 54727 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 54728 else 54729 dir="`$DIRNAME "$path"`" 54730 base="`$BASENAME "$path"`" 54731 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 54732 fi 54733 fi 54734 fi 54735 54736 54737 # Only process if variable expands to non-empty 54738 54739 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 54740 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54741 54742 # Input might be given as Windows format, start by converting to 54743 # unix format. 54744 path="$POTENTIAL_FREETYPE_LIB_PATH" 54745 new_path=`$CYGPATH -u "$path"` 54746 54747 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54748 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54749 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54750 # "foo.exe" is OK but "foo" is an error. 54751 # 54752 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54753 # It is also a way to make sure we got the proper file name for the real test later on. 54754 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54755 if test "x$test_shortpath" = x; then 54756 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 54757 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 54758 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 54759 fi 54760 54761 # Call helper function which possibly converts this using DOS-style short mode. 54762 # If so, the updated path is stored in $new_path. 54763 54764 input_path="$new_path" 54765 # Check if we need to convert this using DOS-style short mode. If the path 54766 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54767 # take no chances and rewrite it. 54768 # Note: m4 eats our [], so we need to use [ and ] instead. 54769 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54770 if test "x$has_forbidden_chars" != x; then 54771 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54772 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54773 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54774 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54775 # Going to short mode and back again did indeed matter. Since short mode is 54776 # case insensitive, let's make it lowercase to improve readability. 54777 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54778 # Now convert it back to Unix-style (cygpath) 54779 input_path=`$CYGPATH -u "$shortmode_path"` 54780 new_path="$input_path" 54781 fi 54782 fi 54783 54784 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54785 if test "x$test_cygdrive_prefix" = x; then 54786 # As a simple fix, exclude /usr/bin since it's not a real path. 54787 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54788 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54789 # a path prefixed by /cygdrive for fixpath to work. 54790 new_path="$CYGWIN_ROOT_PATH$input_path" 54791 fi 54792 fi 54793 54794 54795 if test "x$path" != "x$new_path"; then 54796 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 54797 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 54798 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 54799 fi 54800 54801 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54802 54803 path="$POTENTIAL_FREETYPE_LIB_PATH" 54804 has_colon=`$ECHO $path | $GREP ^.:` 54805 new_path="$path" 54806 if test "x$has_colon" = x; then 54807 # Not in mixed or Windows style, start by that. 54808 new_path=`cmd //c echo $path` 54809 fi 54810 54811 54812 input_path="$new_path" 54813 # Check if we need to convert this using DOS-style short mode. If the path 54814 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54815 # take no chances and rewrite it. 54816 # Note: m4 eats our [], so we need to use [ and ] instead. 54817 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54818 if test "x$has_forbidden_chars" != x; then 54819 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54820 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54821 fi 54822 54823 54824 windows_path="$new_path" 54825 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54826 unix_path=`$CYGPATH -u "$windows_path"` 54827 new_path="$unix_path" 54828 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54829 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54830 new_path="$unix_path" 54831 fi 54832 54833 if test "x$path" != "x$new_path"; then 54834 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 54835 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 54836 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 54837 fi 54838 54839 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54840 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54841 54842 else 54843 # We're on a unix platform. Hooray! :) 54844 path="$POTENTIAL_FREETYPE_LIB_PATH" 54845 has_space=`$ECHO "$path" | $GREP " "` 54846 if test "x$has_space" != x; then 54847 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 54848 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 54849 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54850 fi 54851 54852 # Use eval to expand a potential ~ 54853 eval path="$path" 54854 if test ! -f "$path" && test ! -d "$path"; then 54855 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 54856 fi 54857 54858 if test -d "$path"; then 54859 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 54860 else 54861 dir="`$DIRNAME "$path"`" 54862 base="`$BASENAME "$path"`" 54863 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 54864 fi 54865 fi 54866 fi 54867 54868 54869 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 54870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 54871 $as_echo_n "checking for freetype includes... " >&6; } 54872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 54873 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 54874 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 54875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 54876 $as_echo_n "checking for freetype libraries... " >&6; } 54877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 54878 $as_echo "$FREETYPE_LIB_PATH" >&6; } 54879 fi 54880 54881 else 54882 54883 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 54884 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 54885 METHOD="well-known location" 54886 54887 # Let's start with an optimistic view of the world :-) 54888 FOUND_FREETYPE=yes 54889 54890 # First look for the canonical freetype main include file ft2build.h. 54891 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 54892 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 54893 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 54894 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 54895 # Fail. 54896 FOUND_FREETYPE=no 54897 fi 54898 fi 54899 54900 if test "x$FOUND_FREETYPE" = xyes; then 54901 # Include file found, let's continue the sanity check. 54902 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 54903 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 54904 54905 # Reset to default value 54906 FREETYPE_BASE_NAME=freetype 54907 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 54908 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 54909 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 54910 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 54911 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 54912 # for the .6 version explicitly. 54913 FREETYPE_BASE_NAME=freetype.6 54914 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 54915 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 54916 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 54917 else 54918 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 54919 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 54920 FOUND_FREETYPE=no 54921 fi 54922 else 54923 if test "x$OPENJDK_TARGET_OS" = xwindows; then 54924 # On Windows, we will need both .lib and .dll file. 54925 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 54926 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 54927 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 54928 FOUND_FREETYPE=no 54929 fi 54930 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 54931 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 54932 # Found lib in isa dir, use that instead. 54933 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 54934 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 54935 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 54936 fi 54937 fi 54938 fi 54939 54940 if test "x$FOUND_FREETYPE" = xyes; then 54941 54942 # Only process if variable expands to non-empty 54943 54944 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 54945 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54946 54947 # Input might be given as Windows format, start by converting to 54948 # unix format. 54949 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 54950 new_path=`$CYGPATH -u "$path"` 54951 54952 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54953 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54954 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54955 # "foo.exe" is OK but "foo" is an error. 54956 # 54957 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54958 # It is also a way to make sure we got the proper file name for the real test later on. 54959 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54960 if test "x$test_shortpath" = x; then 54961 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 54962 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 54963 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 54964 fi 54965 54966 # Call helper function which possibly converts this using DOS-style short mode. 54967 # If so, the updated path is stored in $new_path. 54968 54969 input_path="$new_path" 54970 # Check if we need to convert this using DOS-style short mode. If the path 54971 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54972 # take no chances and rewrite it. 54973 # Note: m4 eats our [], so we need to use [ and ] instead. 54974 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54975 if test "x$has_forbidden_chars" != x; then 54976 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54977 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54978 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54979 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54980 # Going to short mode and back again did indeed matter. Since short mode is 54981 # case insensitive, let's make it lowercase to improve readability. 54982 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54983 # Now convert it back to Unix-style (cygpath) 54984 input_path=`$CYGPATH -u "$shortmode_path"` 54985 new_path="$input_path" 54986 fi 54987 fi 54988 54989 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54990 if test "x$test_cygdrive_prefix" = x; then 54991 # As a simple fix, exclude /usr/bin since it's not a real path. 54992 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54993 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54994 # a path prefixed by /cygdrive for fixpath to work. 54995 new_path="$CYGWIN_ROOT_PATH$input_path" 54996 fi 54997 fi 54998 54999 55000 if test "x$path" != "x$new_path"; then 55001 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 55002 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 55003 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 55004 fi 55005 55006 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55007 55008 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 55009 has_colon=`$ECHO $path | $GREP ^.:` 55010 new_path="$path" 55011 if test "x$has_colon" = x; then 55012 # Not in mixed or Windows style, start by that. 55013 new_path=`cmd //c echo $path` 55014 fi 55015 55016 55017 input_path="$new_path" 55018 # Check if we need to convert this using DOS-style short mode. If the path 55019 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55020 # take no chances and rewrite it. 55021 # Note: m4 eats our [], so we need to use [ and ] instead. 55022 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55023 if test "x$has_forbidden_chars" != x; then 55024 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55025 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55026 fi 55027 55028 55029 windows_path="$new_path" 55030 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55031 unix_path=`$CYGPATH -u "$windows_path"` 55032 new_path="$unix_path" 55033 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55034 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55035 new_path="$unix_path" 55036 fi 55037 55038 if test "x$path" != "x$new_path"; then 55039 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 55040 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 55041 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 55042 fi 55043 55044 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55045 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55046 55047 else 55048 # We're on a unix platform. Hooray! :) 55049 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 55050 has_space=`$ECHO "$path" | $GREP " "` 55051 if test "x$has_space" != x; then 55052 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 55053 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 55054 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55055 fi 55056 55057 # Use eval to expand a potential ~ 55058 eval path="$path" 55059 if test ! -f "$path" && test ! -d "$path"; then 55060 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 55061 fi 55062 55063 if test -d "$path"; then 55064 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 55065 else 55066 dir="`$DIRNAME "$path"`" 55067 base="`$BASENAME "$path"`" 55068 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 55069 fi 55070 fi 55071 fi 55072 55073 55074 # Only process if variable expands to non-empty 55075 55076 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 55077 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55078 55079 # Input might be given as Windows format, start by converting to 55080 # unix format. 55081 path="$POTENTIAL_FREETYPE_LIB_PATH" 55082 new_path=`$CYGPATH -u "$path"` 55083 55084 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55085 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55086 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55087 # "foo.exe" is OK but "foo" is an error. 55088 # 55089 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55090 # It is also a way to make sure we got the proper file name for the real test later on. 55091 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55092 if test "x$test_shortpath" = x; then 55093 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 55094 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 55095 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 55096 fi 55097 55098 # Call helper function which possibly converts this using DOS-style short mode. 55099 # If so, the updated path is stored in $new_path. 55100 55101 input_path="$new_path" 55102 # Check if we need to convert this using DOS-style short mode. If the path 55103 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55104 # take no chances and rewrite it. 55105 # Note: m4 eats our [], so we need to use [ and ] instead. 55106 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55107 if test "x$has_forbidden_chars" != x; then 55108 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55109 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55110 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55111 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55112 # Going to short mode and back again did indeed matter. Since short mode is 55113 # case insensitive, let's make it lowercase to improve readability. 55114 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55115 # Now convert it back to Unix-style (cygpath) 55116 input_path=`$CYGPATH -u "$shortmode_path"` 55117 new_path="$input_path" 55118 fi 55119 fi 55120 55121 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55122 if test "x$test_cygdrive_prefix" = x; then 55123 # As a simple fix, exclude /usr/bin since it's not a real path. 55124 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55125 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55126 # a path prefixed by /cygdrive for fixpath to work. 55127 new_path="$CYGWIN_ROOT_PATH$input_path" 55128 fi 55129 fi 55130 55131 55132 if test "x$path" != "x$new_path"; then 55133 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 55134 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 55135 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 55136 fi 55137 55138 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55139 55140 path="$POTENTIAL_FREETYPE_LIB_PATH" 55141 has_colon=`$ECHO $path | $GREP ^.:` 55142 new_path="$path" 55143 if test "x$has_colon" = x; then 55144 # Not in mixed or Windows style, start by that. 55145 new_path=`cmd //c echo $path` 55146 fi 55147 55148 55149 input_path="$new_path" 55150 # Check if we need to convert this using DOS-style short mode. If the path 55151 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55152 # take no chances and rewrite it. 55153 # Note: m4 eats our [], so we need to use [ and ] instead. 55154 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55155 if test "x$has_forbidden_chars" != x; then 55156 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55157 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55158 fi 55159 55160 55161 windows_path="$new_path" 55162 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55163 unix_path=`$CYGPATH -u "$windows_path"` 55164 new_path="$unix_path" 55165 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55166 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55167 new_path="$unix_path" 55168 fi 55169 55170 if test "x$path" != "x$new_path"; then 55171 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 55172 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 55173 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 55174 fi 55175 55176 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55177 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55178 55179 else 55180 # We're on a unix platform. Hooray! :) 55181 path="$POTENTIAL_FREETYPE_LIB_PATH" 55182 has_space=`$ECHO "$path" | $GREP " "` 55183 if test "x$has_space" != x; then 55184 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 55185 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 55186 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55187 fi 55188 55189 # Use eval to expand a potential ~ 55190 eval path="$path" 55191 if test ! -f "$path" && test ! -d "$path"; then 55192 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 55193 fi 55194 55195 if test -d "$path"; then 55196 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 55197 else 55198 dir="`$DIRNAME "$path"`" 55199 base="`$BASENAME "$path"`" 55200 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 55201 fi 55202 fi 55203 fi 55204 55205 55206 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 55207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 55208 $as_echo_n "checking for freetype includes... " >&6; } 55209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 55210 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 55211 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 55212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 55213 $as_echo_n "checking for freetype libraries... " >&6; } 55214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 55215 $as_echo "$FREETYPE_LIB_PATH" >&6; } 55216 fi 55217 55218 if test "x$FOUND_FREETYPE" != xyes; then 55219 55220 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 55221 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 55222 METHOD="well-known location" 55223 55224 # Let's start with an optimistic view of the world :-) 55225 FOUND_FREETYPE=yes 55226 55227 # First look for the canonical freetype main include file ft2build.h. 55228 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 55229 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 55230 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 55231 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 55232 # Fail. 55233 FOUND_FREETYPE=no 55234 fi 55235 fi 55236 55237 if test "x$FOUND_FREETYPE" = xyes; then 55238 # Include file found, let's continue the sanity check. 55239 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 55240 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 55241 55242 # Reset to default value 55243 FREETYPE_BASE_NAME=freetype 55244 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 55245 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 55246 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 55247 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 55248 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 55249 # for the .6 version explicitly. 55250 FREETYPE_BASE_NAME=freetype.6 55251 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 55252 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 55253 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 55254 else 55255 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 55256 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 55257 FOUND_FREETYPE=no 55258 fi 55259 else 55260 if test "x$OPENJDK_TARGET_OS" = xwindows; then 55261 # On Windows, we will need both .lib and .dll file. 55262 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 55263 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 55264 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 55265 FOUND_FREETYPE=no 55266 fi 55267 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 55268 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 55269 # Found lib in isa dir, use that instead. 55270 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 55271 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 55272 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 55273 fi 55274 fi 55275 fi 55276 55277 if test "x$FOUND_FREETYPE" = xyes; then 55278 55279 # Only process if variable expands to non-empty 55280 55281 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 55282 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55283 55284 # Input might be given as Windows format, start by converting to 55285 # unix format. 55286 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 55287 new_path=`$CYGPATH -u "$path"` 55288 55289 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55290 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55291 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55292 # "foo.exe" is OK but "foo" is an error. 55293 # 55294 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55295 # It is also a way to make sure we got the proper file name for the real test later on. 55296 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55297 if test "x$test_shortpath" = x; then 55298 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 55299 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 55300 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 55301 fi 55302 55303 # Call helper function which possibly converts this using DOS-style short mode. 55304 # If so, the updated path is stored in $new_path. 55305 55306 input_path="$new_path" 55307 # Check if we need to convert this using DOS-style short mode. If the path 55308 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55309 # take no chances and rewrite it. 55310 # Note: m4 eats our [], so we need to use [ and ] instead. 55311 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55312 if test "x$has_forbidden_chars" != x; then 55313 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55314 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55315 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55316 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55317 # Going to short mode and back again did indeed matter. Since short mode is 55318 # case insensitive, let's make it lowercase to improve readability. 55319 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55320 # Now convert it back to Unix-style (cygpath) 55321 input_path=`$CYGPATH -u "$shortmode_path"` 55322 new_path="$input_path" 55323 fi 55324 fi 55325 55326 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55327 if test "x$test_cygdrive_prefix" = x; then 55328 # As a simple fix, exclude /usr/bin since it's not a real path. 55329 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55330 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55331 # a path prefixed by /cygdrive for fixpath to work. 55332 new_path="$CYGWIN_ROOT_PATH$input_path" 55333 fi 55334 fi 55335 55336 55337 if test "x$path" != "x$new_path"; then 55338 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 55339 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 55340 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 55341 fi 55342 55343 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55344 55345 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 55346 has_colon=`$ECHO $path | $GREP ^.:` 55347 new_path="$path" 55348 if test "x$has_colon" = x; then 55349 # Not in mixed or Windows style, start by that. 55350 new_path=`cmd //c echo $path` 55351 fi 55352 55353 55354 input_path="$new_path" 55355 # Check if we need to convert this using DOS-style short mode. If the path 55356 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55357 # take no chances and rewrite it. 55358 # Note: m4 eats our [], so we need to use [ and ] instead. 55359 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55360 if test "x$has_forbidden_chars" != x; then 55361 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55362 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55363 fi 55364 55365 55366 windows_path="$new_path" 55367 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55368 unix_path=`$CYGPATH -u "$windows_path"` 55369 new_path="$unix_path" 55370 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55371 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55372 new_path="$unix_path" 55373 fi 55374 55375 if test "x$path" != "x$new_path"; then 55376 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 55377 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 55378 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 55379 fi 55380 55381 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55382 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55383 55384 else 55385 # We're on a unix platform. Hooray! :) 55386 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 55387 has_space=`$ECHO "$path" | $GREP " "` 55388 if test "x$has_space" != x; then 55389 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 55390 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 55391 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55392 fi 55393 55394 # Use eval to expand a potential ~ 55395 eval path="$path" 55396 if test ! -f "$path" && test ! -d "$path"; then 55397 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 55398 fi 55399 55400 if test -d "$path"; then 55401 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 55402 else 55403 dir="`$DIRNAME "$path"`" 55404 base="`$BASENAME "$path"`" 55405 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 55406 fi 55407 fi 55408 fi 55409 55410 55411 # Only process if variable expands to non-empty 55412 55413 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 55414 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55415 55416 # Input might be given as Windows format, start by converting to 55417 # unix format. 55418 path="$POTENTIAL_FREETYPE_LIB_PATH" 55419 new_path=`$CYGPATH -u "$path"` 55420 55421 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55422 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55423 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55424 # "foo.exe" is OK but "foo" is an error. 55425 # 55426 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55427 # It is also a way to make sure we got the proper file name for the real test later on. 55428 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55429 if test "x$test_shortpath" = x; then 55430 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 55431 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 55432 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 55433 fi 55434 55435 # Call helper function which possibly converts this using DOS-style short mode. 55436 # If so, the updated path is stored in $new_path. 55437 55438 input_path="$new_path" 55439 # Check if we need to convert this using DOS-style short mode. If the path 55440 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55441 # take no chances and rewrite it. 55442 # Note: m4 eats our [], so we need to use [ and ] instead. 55443 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55444 if test "x$has_forbidden_chars" != x; then 55445 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55446 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55447 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55448 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55449 # Going to short mode and back again did indeed matter. Since short mode is 55450 # case insensitive, let's make it lowercase to improve readability. 55451 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55452 # Now convert it back to Unix-style (cygpath) 55453 input_path=`$CYGPATH -u "$shortmode_path"` 55454 new_path="$input_path" 55455 fi 55456 fi 55457 55458 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55459 if test "x$test_cygdrive_prefix" = x; then 55460 # As a simple fix, exclude /usr/bin since it's not a real path. 55461 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55462 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55463 # a path prefixed by /cygdrive for fixpath to work. 55464 new_path="$CYGWIN_ROOT_PATH$input_path" 55465 fi 55466 fi 55467 55468 55469 if test "x$path" != "x$new_path"; then 55470 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 55471 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 55472 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 55473 fi 55474 55475 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55476 55477 path="$POTENTIAL_FREETYPE_LIB_PATH" 55478 has_colon=`$ECHO $path | $GREP ^.:` 55479 new_path="$path" 55480 if test "x$has_colon" = x; then 55481 # Not in mixed or Windows style, start by that. 55482 new_path=`cmd //c echo $path` 55483 fi 55484 55485 55486 input_path="$new_path" 55487 # Check if we need to convert this using DOS-style short mode. If the path 55488 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55489 # take no chances and rewrite it. 55490 # Note: m4 eats our [], so we need to use [ and ] instead. 55491 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55492 if test "x$has_forbidden_chars" != x; then 55493 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55494 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55495 fi 55496 55497 55498 windows_path="$new_path" 55499 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55500 unix_path=`$CYGPATH -u "$windows_path"` 55501 new_path="$unix_path" 55502 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55503 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55504 new_path="$unix_path" 55505 fi 55506 55507 if test "x$path" != "x$new_path"; then 55508 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 55509 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 55510 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 55511 fi 55512 55513 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55514 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55515 55516 else 55517 # We're on a unix platform. Hooray! :) 55518 path="$POTENTIAL_FREETYPE_LIB_PATH" 55519 has_space=`$ECHO "$path" | $GREP " "` 55520 if test "x$has_space" != x; then 55521 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 55522 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 55523 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55524 fi 55525 55526 # Use eval to expand a potential ~ 55527 eval path="$path" 55528 if test ! -f "$path" && test ! -d "$path"; then 55529 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 55530 fi 55531 55532 if test -d "$path"; then 55533 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 55534 else 55535 dir="`$DIRNAME "$path"`" 55536 base="`$BASENAME "$path"`" 55537 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 55538 fi 55539 fi 55540 fi 55541 55542 55543 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 55544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 55545 $as_echo_n "checking for freetype includes... " >&6; } 55546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 55547 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 55548 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 55549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 55550 $as_echo_n "checking for freetype libraries... " >&6; } 55551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 55552 $as_echo "$FREETYPE_LIB_PATH" >&6; } 55553 fi 55554 55555 fi 55556 fi 55557 fi 55558 fi 55559 fi # end check in well-known locations 55560 55561 if test "x$FOUND_FREETYPE" != xyes; then 55562 55563 # Print a helpful message on how to acquire the necessary build dependency. 55564 # freetype is the help tag: freetype, cups, alsa etc 55565 MISSING_DEPENDENCY=freetype 55566 55567 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55568 cygwin_help $MISSING_DEPENDENCY 55569 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55570 msys_help $MISSING_DEPENDENCY 55571 else 55572 PKGHANDLER_COMMAND= 55573 55574 case $PKGHANDLER in 55575 apt-get) 55576 apt_help $MISSING_DEPENDENCY ;; 55577 yum) 55578 yum_help $MISSING_DEPENDENCY ;; 55579 port) 55580 port_help $MISSING_DEPENDENCY ;; 55581 pkgutil) 55582 pkgutil_help $MISSING_DEPENDENCY ;; 55583 pkgadd) 55584 pkgadd_help $MISSING_DEPENDENCY ;; 55585 esac 55586 55587 if test "x$PKGHANDLER_COMMAND" != x; then 55588 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 55589 fi 55590 fi 55591 55592 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 55593 fi 55594 fi # end user specified settings 55595 55596 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 55597 if test "x$FREETYPE_CFLAGS" = x; then 55598 55599 # Only process if variable expands to non-empty 55600 55601 if test "x$FREETYPE_INCLUDE_PATH" != x; then 55602 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55603 55604 # Input might be given as Windows format, start by converting to 55605 # unix format. 55606 path="$FREETYPE_INCLUDE_PATH" 55607 new_path=`$CYGPATH -u "$path"` 55608 55609 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55610 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55611 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55612 # "foo.exe" is OK but "foo" is an error. 55613 # 55614 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55615 # It is also a way to make sure we got the proper file name for the real test later on. 55616 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55617 if test "x$test_shortpath" = x; then 55618 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 55619 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 55620 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 55621 fi 55622 55623 # Call helper function which possibly converts this using DOS-style short mode. 55624 # If so, the updated path is stored in $new_path. 55625 55626 input_path="$new_path" 55627 # Check if we need to convert this using DOS-style short mode. If the path 55628 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55629 # take no chances and rewrite it. 55630 # Note: m4 eats our [], so we need to use [ and ] instead. 55631 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55632 if test "x$has_forbidden_chars" != x; then 55633 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55634 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55635 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55636 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55637 # Going to short mode and back again did indeed matter. Since short mode is 55638 # case insensitive, let's make it lowercase to improve readability. 55639 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55640 # Now convert it back to Unix-style (cygpath) 55641 input_path=`$CYGPATH -u "$shortmode_path"` 55642 new_path="$input_path" 55643 fi 55644 fi 55645 55646 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55647 if test "x$test_cygdrive_prefix" = x; then 55648 # As a simple fix, exclude /usr/bin since it's not a real path. 55649 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55650 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55651 # a path prefixed by /cygdrive for fixpath to work. 55652 new_path="$CYGWIN_ROOT_PATH$input_path" 55653 fi 55654 fi 55655 55656 55657 if test "x$path" != "x$new_path"; then 55658 FREETYPE_INCLUDE_PATH="$new_path" 55659 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 55660 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 55661 fi 55662 55663 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55664 55665 path="$FREETYPE_INCLUDE_PATH" 55666 has_colon=`$ECHO $path | $GREP ^.:` 55667 new_path="$path" 55668 if test "x$has_colon" = x; then 55669 # Not in mixed or Windows style, start by that. 55670 new_path=`cmd //c echo $path` 55671 fi 55672 55673 55674 input_path="$new_path" 55675 # Check if we need to convert this using DOS-style short mode. If the path 55676 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55677 # take no chances and rewrite it. 55678 # Note: m4 eats our [], so we need to use [ and ] instead. 55679 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55680 if test "x$has_forbidden_chars" != x; then 55681 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55682 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55683 fi 55684 55685 55686 windows_path="$new_path" 55687 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55688 unix_path=`$CYGPATH -u "$windows_path"` 55689 new_path="$unix_path" 55690 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55691 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55692 new_path="$unix_path" 55693 fi 55694 55695 if test "x$path" != "x$new_path"; then 55696 FREETYPE_INCLUDE_PATH="$new_path" 55697 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 55698 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 55699 fi 55700 55701 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55702 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55703 55704 else 55705 # We're on a unix platform. Hooray! :) 55706 path="$FREETYPE_INCLUDE_PATH" 55707 has_space=`$ECHO "$path" | $GREP " "` 55708 if test "x$has_space" != x; then 55709 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 55710 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 55711 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55712 fi 55713 55714 # Use eval to expand a potential ~ 55715 eval path="$path" 55716 if test ! -f "$path" && test ! -d "$path"; then 55717 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 55718 fi 55719 55720 if test -d "$path"; then 55721 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 55722 else 55723 dir="`$DIRNAME "$path"`" 55724 base="`$BASENAME "$path"`" 55725 FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 55726 fi 55727 fi 55728 fi 55729 55730 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 55731 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 55732 else 55733 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 55734 fi 55735 fi 55736 55737 if test "x$FREETYPE_LIBS" = x; then 55738 55739 # Only process if variable expands to non-empty 55740 55741 if test "x$FREETYPE_LIB_PATH" != x; then 55742 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55743 55744 # Input might be given as Windows format, start by converting to 55745 # unix format. 55746 path="$FREETYPE_LIB_PATH" 55747 new_path=`$CYGPATH -u "$path"` 55748 55749 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55750 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55751 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55752 # "foo.exe" is OK but "foo" is an error. 55753 # 55754 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55755 # It is also a way to make sure we got the proper file name for the real test later on. 55756 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55757 if test "x$test_shortpath" = x; then 55758 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 55759 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 55760 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 55761 fi 55762 55763 # Call helper function which possibly converts this using DOS-style short mode. 55764 # If so, the updated path is stored in $new_path. 55765 55766 input_path="$new_path" 55767 # Check if we need to convert this using DOS-style short mode. If the path 55768 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55769 # take no chances and rewrite it. 55770 # Note: m4 eats our [], so we need to use [ and ] instead. 55771 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55772 if test "x$has_forbidden_chars" != x; then 55773 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55774 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55775 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55776 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55777 # Going to short mode and back again did indeed matter. Since short mode is 55778 # case insensitive, let's make it lowercase to improve readability. 55779 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55780 # Now convert it back to Unix-style (cygpath) 55781 input_path=`$CYGPATH -u "$shortmode_path"` 55782 new_path="$input_path" 55783 fi 55784 fi 55785 55786 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55787 if test "x$test_cygdrive_prefix" = x; then 55788 # As a simple fix, exclude /usr/bin since it's not a real path. 55789 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55790 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55791 # a path prefixed by /cygdrive for fixpath to work. 55792 new_path="$CYGWIN_ROOT_PATH$input_path" 55793 fi 55794 fi 55795 55796 55797 if test "x$path" != "x$new_path"; then 55798 FREETYPE_LIB_PATH="$new_path" 55799 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 55800 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 55801 fi 55802 55803 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55804 55805 path="$FREETYPE_LIB_PATH" 55806 has_colon=`$ECHO $path | $GREP ^.:` 55807 new_path="$path" 55808 if test "x$has_colon" = x; then 55809 # Not in mixed or Windows style, start by that. 55810 new_path=`cmd //c echo $path` 55811 fi 55812 55813 55814 input_path="$new_path" 55815 # Check if we need to convert this using DOS-style short mode. If the path 55816 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55817 # take no chances and rewrite it. 55818 # Note: m4 eats our [], so we need to use [ and ] instead. 55819 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55820 if test "x$has_forbidden_chars" != x; then 55821 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55822 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55823 fi 55824 55825 55826 windows_path="$new_path" 55827 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55828 unix_path=`$CYGPATH -u "$windows_path"` 55829 new_path="$unix_path" 55830 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55831 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55832 new_path="$unix_path" 55833 fi 55834 55835 if test "x$path" != "x$new_path"; then 55836 FREETYPE_LIB_PATH="$new_path" 55837 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 55838 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 55839 fi 55840 55841 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55842 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55843 55844 else 55845 # We're on a unix platform. Hooray! :) 55846 path="$FREETYPE_LIB_PATH" 55847 has_space=`$ECHO "$path" | $GREP " "` 55848 if test "x$has_space" != x; then 55849 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 55850 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 55851 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55852 fi 55853 55854 # Use eval to expand a potential ~ 55855 eval path="$path" 55856 if test ! -f "$path" && test ! -d "$path"; then 55857 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 55858 fi 55859 55860 if test -d "$path"; then 55861 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 55862 else 55863 dir="`$DIRNAME "$path"`" 55864 base="`$BASENAME "$path"`" 55865 FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 55866 fi 55867 fi 55868 fi 55869 55870 if test "x$OPENJDK_TARGET_OS" = xwindows; then 55871 FREETYPE_LIBS="$FREETYPE_LIB_PATH/$FREETYPE_BASE_NAME.lib" 55872 else 55873 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -l$FREETYPE_BASE_NAME" 55874 fi 55875 fi 55876 55877 # Try to compile it 55878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 55879 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 55880 ac_ext=cpp 55881 ac_cpp='$CXXCPP $CPPFLAGS' 55882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 55883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 55884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 55885 55886 PREV_CXXCFLAGS="$CXXFLAGS" 55887 PREV_LIBS="$LIBS" 55888 PREV_CXX="$CXX" 55889 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 55890 LIBS="$LIBS $FREETYPE_LIBS" 55891 CXX="$FIXPATH $CXX" 55892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55893 /* end confdefs.h. */ 55894 55895 #include<ft2build.h> 55896 #include FT_FREETYPE_H 55897 int main () { 55898 FT_Init_FreeType(NULL); 55899 return 0; 55900 } 55901 55902 _ACEOF 55903 if ac_fn_cxx_try_link "$LINENO"; then : 55904 55905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 55906 $as_echo "yes" >&6; } 55907 55908 else 55909 55910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55911 $as_echo "no" >&6; } 55912 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 55913 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 55914 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 55915 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 55916 55917 55918 # Print a helpful message on how to acquire the necessary build dependency. 55919 # freetype is the help tag: freetype, cups, alsa etc 55920 MISSING_DEPENDENCY=freetype 55921 55922 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55923 cygwin_help $MISSING_DEPENDENCY 55924 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55925 msys_help $MISSING_DEPENDENCY 55926 else 55927 PKGHANDLER_COMMAND= 55928 55929 case $PKGHANDLER in 55930 apt-get) 55931 apt_help $MISSING_DEPENDENCY ;; 55932 yum) 55933 yum_help $MISSING_DEPENDENCY ;; 55934 port) 55935 port_help $MISSING_DEPENDENCY ;; 55936 pkgutil) 55937 pkgutil_help $MISSING_DEPENDENCY ;; 55938 pkgadd) 55939 pkgadd_help $MISSING_DEPENDENCY ;; 55940 esac 55941 55942 if test "x$PKGHANDLER_COMMAND" != x; then 55943 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 55944 fi 55945 fi 55946 55947 55948 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 55949 55950 55951 fi 55952 rm -f core conftest.err conftest.$ac_objext \ 55953 conftest$ac_exeext conftest.$ac_ext 55954 CXXCFLAGS="$PREV_CXXFLAGS" 55955 LIBS="$PREV_LIBS" 55956 CXX="$PREV_CXX" 55957 ac_ext=cpp 55958 ac_cpp='$CXXCPP $CPPFLAGS' 55959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 55960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 55961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 55962 55963 55964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 55965 $as_echo_n "checking if we should bundle freetype... " >&6; } 55966 if test "x$BUNDLE_FREETYPE" = xyes; then 55967 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 55968 fi 55969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 55970 $as_echo "$BUNDLE_FREETYPE" >&6; } 55971 55972 fi # end freetype needed 55973 55974 55975 55976 55977 55978 55979 55980 # Check whether --with-alsa was given. 55981 if test "${with_alsa+set}" = set; then : 55982 withval=$with_alsa; 55983 fi 55984 55985 55986 # Check whether --with-alsa-include was given. 55987 if test "${with_alsa_include+set}" = set; then : 55988 withval=$with_alsa_include; 55989 fi 55990 55991 55992 # Check whether --with-alsa-lib was given. 55993 if test "${with_alsa_lib+set}" = set; then : 55994 withval=$with_alsa_lib; 55995 fi 55996 55997 55998 if test "x$NEEDS_LIB_ALSA" = xfalse; then 55999 if (test "x${with_alsa}" != x && test "x${with_alsa}" != xno) || \ 56000 (test "x${with_alsa_include}" != x && test "x${with_alsa_include}" != xno) || \ 56001 (test "x${with_alsa_lib}" != x && test "x${with_alsa_lib}" != xno); then 56002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&5 56003 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&2;} 56004 fi 56005 ALSA_CFLAGS= 56006 ALSA_LIBS= 56007 else 56008 ALSA_FOUND=no 56009 56010 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 56011 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 56012 fi 56013 56014 if test "x${with_alsa}" != x; then 56015 ALSA_LIBS="-L${with_alsa}/lib -lasound" 56016 ALSA_CFLAGS="-I${with_alsa}/include" 56017 ALSA_FOUND=yes 56018 fi 56019 if test "x${with_alsa_include}" != x; then 56020 ALSA_CFLAGS="-I${with_alsa_include}" 56021 ALSA_FOUND=yes 56022 fi 56023 if test "x${with_alsa_lib}" != x; then 56024 ALSA_LIBS="-L${with_alsa_lib} -lasound" 56025 ALSA_FOUND=yes 56026 fi 56027 # Do not try pkg-config if we have a sysroot set. 56028 if test "x$SYSROOT" = x; then 56029 if test "x$ALSA_FOUND" = xno; then 56030 56031 pkg_failed=no 56032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 56033 $as_echo_n "checking for ALSA... " >&6; } 56034 56035 if test -n "$ALSA_CFLAGS"; then 56036 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 56037 elif test -n "$PKG_CONFIG"; then 56038 if test -n "$PKG_CONFIG" && \ 56039 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 56040 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 56041 ac_status=$? 56042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 56043 test $ac_status = 0; }; then 56044 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 56045 else 56046 pkg_failed=yes 56047 fi 56048 else 56049 pkg_failed=untried 56050 fi 56051 if test -n "$ALSA_LIBS"; then 56052 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 56053 elif test -n "$PKG_CONFIG"; then 56054 if test -n "$PKG_CONFIG" && \ 56055 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 56056 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 56057 ac_status=$? 56058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 56059 test $ac_status = 0; }; then 56060 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 56061 else 56062 pkg_failed=yes 56063 fi 56064 else 56065 pkg_failed=untried 56066 fi 56067 56068 56069 56070 if test $pkg_failed = yes; then 56071 56072 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 56073 _pkg_short_errors_supported=yes 56074 else 56075 _pkg_short_errors_supported=no 56076 fi 56077 if test $_pkg_short_errors_supported = yes; then 56078 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 56079 else 56080 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 56081 fi 56082 # Put the nasty error message in config.log where it belongs 56083 echo "$ALSA_PKG_ERRORS" >&5 56084 56085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 56086 $as_echo "no" >&6; } 56087 ALSA_FOUND=no 56088 elif test $pkg_failed = untried; then 56089 ALSA_FOUND=no 56090 else 56091 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 56092 ALSA_LIBS=$pkg_cv_ALSA_LIBS 56093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 56094 $as_echo "yes" >&6; } 56095 ALSA_FOUND=yes 56096 fi 56097 fi 56098 fi 56099 if test "x$ALSA_FOUND" = xno; then 56100 for ac_header in alsa/asoundlib.h 56101 do : 56102 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 56103 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 56104 cat >>confdefs.h <<_ACEOF 56105 #define HAVE_ALSA_ASOUNDLIB_H 1 56106 _ACEOF 56107 56108 ALSA_FOUND=yes 56109 ALSA_CFLAGS=-Iignoreme 56110 ALSA_LIBS=-lasound 56111 DEFAULT_ALSA=yes 56112 56113 else 56114 ALSA_FOUND=no 56115 56116 fi 56117 56118 done 56119 56120 fi 56121 if test "x$ALSA_FOUND" = xno; then 56122 56123 # Print a helpful message on how to acquire the necessary build dependency. 56124 # alsa is the help tag: freetype, cups, alsa etc 56125 MISSING_DEPENDENCY=alsa 56126 56127 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56128 cygwin_help $MISSING_DEPENDENCY 56129 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56130 msys_help $MISSING_DEPENDENCY 56131 else 56132 PKGHANDLER_COMMAND= 56133 56134 case $PKGHANDLER in 56135 apt-get) 56136 apt_help $MISSING_DEPENDENCY ;; 56137 yum) 56138 yum_help $MISSING_DEPENDENCY ;; 56139 port) 56140 port_help $MISSING_DEPENDENCY ;; 56141 pkgutil) 56142 pkgutil_help $MISSING_DEPENDENCY ;; 56143 pkgadd) 56144 pkgadd_help $MISSING_DEPENDENCY ;; 56145 esac 56146 56147 if test "x$PKGHANDLER_COMMAND" != x; then 56148 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 56149 fi 56150 fi 56151 56152 as_fn_error $? "Could not find alsa! $HELP_MSG" "$LINENO" 5 56153 fi 56154 fi 56155 56156 56157 56158 56159 56160 56161 # Check whether --with-libffi was given. 56162 if test "${with_libffi+set}" = set; then : 56163 withval=$with_libffi; 56164 fi 56165 56166 56167 # Check whether --with-libffi-include was given. 56168 if test "${with_libffi_include+set}" = set; then : 56169 withval=$with_libffi_include; 56170 fi 56171 56172 56173 # Check whether --with-libffi-lib was given. 56174 if test "${with_libffi_lib+set}" = set; then : 56175 withval=$with_libffi_lib; 56176 fi 56177 56178 56179 if test "x$NEEDS_LIB_FFI" = xfalse; then 56180 if (test "x${with_libffi}" != x && test "x${with_libffi}" != xno) || \ 56181 (test "x${with_libffi_include}" != x && test "x${with_libffi_include}" != xno) || \ 56182 (test "x${with_libffi_lib}" != x && test "x${with_libffi_lib}" != xno); then 56183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&5 56184 $as_echo "$as_me: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&2;} 56185 fi 56186 LIBFFI_CFLAGS= 56187 LIBFFI_LIBS= 56188 else 56189 LIBFFI_FOUND=no 56190 56191 if test "x${with_libffi}" = xno || test "x${with_libffi_include}" = xno || test "x${with_libffi_lib}" = xno; then 56192 as_fn_error $? "It is not possible to disable the use of libffi. Remove the --without-libffi option." "$LINENO" 5 56193 fi 56194 56195 if test "x${with_libffi}" != x; then 56196 LIBFFI_LIBS="-L${with_libffi}/lib -lffi" 56197 LIBFFI_CFLAGS="-I${with_libffi}/include" 56198 LIBFFI_FOUND=yes 56199 fi 56200 if test "x${with_libffi_include}" != x; then 56201 LIBFFI_CFLAGS="-I${with_libffi_include}" 56202 LIBFFI_FOUND=yes 56203 fi 56204 if test "x${with_libffi_lib}" != x; then 56205 LIBFFI_LIBS="-L${with_libffi_lib} -lffi" 56206 LIBFFI_FOUND=yes 56207 fi 56208 # Do not try pkg-config if we have a sysroot set. 56209 if test "x$SYSROOT" = x; then 56210 if test "x$LIBFFI_FOUND" = xno; then 56211 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 56212 56213 pkg_failed=no 56214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 56215 $as_echo_n "checking for LIBFFI... " >&6; } 56216 56217 if test -n "$LIBFFI_CFLAGS"; then 56218 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 56219 elif test -n "$PKG_CONFIG"; then 56220 if test -n "$PKG_CONFIG" && \ 56221 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 56222 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 56223 ac_status=$? 56224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 56225 test $ac_status = 0; }; then 56226 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 56227 else 56228 pkg_failed=yes 56229 fi 56230 else 56231 pkg_failed=untried 56232 fi 56233 if test -n "$LIBFFI_LIBS"; then 56234 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 56235 elif test -n "$PKG_CONFIG"; then 56236 if test -n "$PKG_CONFIG" && \ 56237 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 56238 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 56239 ac_status=$? 56240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 56241 test $ac_status = 0; }; then 56242 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 56243 else 56244 pkg_failed=yes 56245 fi 56246 else 56247 pkg_failed=untried 56248 fi 56249 56250 56251 56252 if test $pkg_failed = yes; then 56253 56254 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 56255 _pkg_short_errors_supported=yes 56256 else 56257 _pkg_short_errors_supported=no 56258 fi 56259 if test $_pkg_short_errors_supported = yes; then 56260 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 56261 else 56262 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 56263 fi 56264 # Put the nasty error message in config.log where it belongs 56265 echo "$LIBFFI_PKG_ERRORS" >&5 56266 56267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 56268 $as_echo "no" >&6; } 56269 LIBFFI_FOUND=no 56270 elif test $pkg_failed = untried; then 56271 LIBFFI_FOUND=no 56272 else 56273 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 56274 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 56275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 56276 $as_echo "yes" >&6; } 56277 LIBFFI_FOUND=yes 56278 fi 56279 fi 56280 fi 56281 if test "x$LIBFFI_FOUND" = xno; then 56282 for ac_header in ffi.h 56283 do : 56284 ac_fn_cxx_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default" 56285 if test "x$ac_cv_header_ffi_h" = xyes; then : 56286 cat >>confdefs.h <<_ACEOF 56287 #define HAVE_FFI_H 1 56288 _ACEOF 56289 56290 LIBFFI_FOUND=yes 56291 LIBFFI_CFLAGS= 56292 LIBFFI_LIBS=-lffi 56293 56294 else 56295 LIBFFI_FOUND=no 56296 56297 fi 56298 56299 done 56300 56301 fi 56302 if test "x$LIBFFI_FOUND" = xno; then 56303 56304 # Print a helpful message on how to acquire the necessary build dependency. 56305 # ffi is the help tag: freetype, cups, alsa etc 56306 MISSING_DEPENDENCY=ffi 56307 56308 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56309 cygwin_help $MISSING_DEPENDENCY 56310 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56311 msys_help $MISSING_DEPENDENCY 56312 else 56313 PKGHANDLER_COMMAND= 56314 56315 case $PKGHANDLER in 56316 apt-get) 56317 apt_help $MISSING_DEPENDENCY ;; 56318 yum) 56319 yum_help $MISSING_DEPENDENCY ;; 56320 port) 56321 port_help $MISSING_DEPENDENCY ;; 56322 pkgutil) 56323 pkgutil_help $MISSING_DEPENDENCY ;; 56324 pkgadd) 56325 pkgadd_help $MISSING_DEPENDENCY ;; 56326 esac 56327 56328 if test "x$PKGHANDLER_COMMAND" != x; then 56329 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 56330 fi 56331 fi 56332 56333 as_fn_error $? "Could not find libffi! $HELP_MSG" "$LINENO" 5 56334 fi 56335 56336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi works" >&5 56337 $as_echo_n "checking if libffi works... " >&6; } 56338 ac_ext=c 56339 ac_cpp='$CPP $CPPFLAGS' 56340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 56341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 56342 ac_compiler_gnu=$ac_cv_c_compiler_gnu 56343 56344 OLD_CFLAGS="$CFLAGS" 56345 CFLAGS="$CFLAGS $LIBFFI_CFLAGS" 56346 OLD_LIBS="$LIBS" 56347 LIBS="$LIBS $LIBFFI_LIBS" 56348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56349 /* end confdefs.h. */ 56350 #include <ffi.h> 56351 int 56352 main () 56353 { 56354 56355 ffi_call(NULL, NULL, NULL, NULL); 56356 return 0; 56357 56358 ; 56359 return 0; 56360 } 56361 _ACEOF 56362 if ac_fn_c_try_link "$LINENO"; then : 56363 LIBFFI_WORKS=yes 56364 else 56365 LIBFFI_WORKS=no 56366 56367 fi 56368 rm -f core conftest.err conftest.$ac_objext \ 56369 conftest$ac_exeext conftest.$ac_ext 56370 CFLAGS="$OLD_CFLAGS" 56371 LIBS="$OLD_LIBS" 56372 ac_ext=cpp 56373 ac_cpp='$CXXCPP $CPPFLAGS' 56374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 56375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 56376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 56377 56378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBFFI_WORKS" >&5 56379 $as_echo "$LIBFFI_WORKS" >&6; } 56380 56381 if test "x$LIBFFI_WORKS" = xno; then 56382 56383 # Print a helpful message on how to acquire the necessary build dependency. 56384 # ffi is the help tag: freetype, cups, alsa etc 56385 MISSING_DEPENDENCY=ffi 56386 56387 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56388 cygwin_help $MISSING_DEPENDENCY 56389 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56390 msys_help $MISSING_DEPENDENCY 56391 else 56392 PKGHANDLER_COMMAND= 56393 56394 case $PKGHANDLER in 56395 apt-get) 56396 apt_help $MISSING_DEPENDENCY ;; 56397 yum) 56398 yum_help $MISSING_DEPENDENCY ;; 56399 port) 56400 port_help $MISSING_DEPENDENCY ;; 56401 pkgutil) 56402 pkgutil_help $MISSING_DEPENDENCY ;; 56403 pkgadd) 56404 pkgadd_help $MISSING_DEPENDENCY ;; 56405 esac 56406 56407 if test "x$PKGHANDLER_COMMAND" != x; then 56408 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 56409 fi 56410 fi 56411 56412 as_fn_error $? "Found libffi but could not link and compile with it. $HELP_MSG" "$LINENO" 5 56413 fi 56414 fi 56415 56416 56417 56418 56419 56420 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 56421 # Extract the first word of "llvm-config", so it can be a program name with args. 56422 set dummy llvm-config; ac_word=$2 56423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 56424 $as_echo_n "checking for $ac_word... " >&6; } 56425 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 56426 $as_echo_n "(cached) " >&6 56427 else 56428 if test -n "$LLVM_CONFIG"; then 56429 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 56430 else 56431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 56432 for as_dir in $PATH 56433 do 56434 IFS=$as_save_IFS 56435 test -z "$as_dir" && as_dir=. 56436 for ac_exec_ext in '' $ac_executable_extensions; do 56437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 56438 ac_cv_prog_LLVM_CONFIG="llvm-config" 56439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 56440 break 2 56441 fi 56442 done 56443 done 56444 IFS=$as_save_IFS 56445 56446 fi 56447 fi 56448 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 56449 if test -n "$LLVM_CONFIG"; then 56450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 56451 $as_echo "$LLVM_CONFIG" >&6; } 56452 else 56453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 56454 $as_echo "no" >&6; } 56455 fi 56456 56457 56458 56459 if test "x$LLVM_CONFIG" != xllvm-config; then 56460 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 56461 fi 56462 56463 llvm_components="jit mcjit engine nativecodegen native" 56464 unset LLVM_CFLAGS 56465 for flag in $("$LLVM_CONFIG" --cxxflags); do 56466 if echo "${flag}" | grep -q '^-[ID]'; then 56467 if test "${flag}" != "-D_DEBUG" ; then 56468 if test "${LLVM_CFLAGS}" != "" ; then 56469 LLVM_CFLAGS="${LLVM_CFLAGS} " 56470 fi 56471 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 56472 fi 56473 fi 56474 done 56475 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') 56476 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 56477 56478 unset LLVM_LDFLAGS 56479 for flag in $("${LLVM_CONFIG}" --ldflags); do 56480 if echo "${flag}" | grep -q '^-L'; then 56481 if test "${LLVM_LDFLAGS}" != ""; then 56482 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 56483 fi 56484 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 56485 fi 56486 done 56487 56488 unset LLVM_LIBS 56489 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 56490 if echo "${flag}" | grep -q '^-l'; then 56491 if test "${LLVM_LIBS}" != ""; then 56492 LLVM_LIBS="${LLVM_LIBS} " 56493 fi 56494 LLVM_LIBS="${LLVM_LIBS}${flag}" 56495 fi 56496 done 56497 56498 56499 56500 56501 fi 56502 56503 56504 56505 # Check whether --with-libjpeg was given. 56506 if test "${with_libjpeg+set}" = set; then : 56507 withval=$with_libjpeg; 56508 fi 56509 56510 56511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 56512 $as_echo_n "checking for which libjpeg to use... " >&6; } 56513 # default is bundled 56514 DEFAULT_LIBJPEG=bundled 56515 # if user didn't specify, use DEFAULT_LIBJPEG 56516 if test "x${with_libjpeg}" = "x"; then 56517 with_libjpeg=${DEFAULT_LIBJPEG} 56518 fi 56519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 56520 $as_echo "${with_libjpeg}" >&6; } 56521 56522 if test "x${with_libjpeg}" = "xbundled"; then 56523 USE_EXTERNAL_LIBJPEG=false 56524 elif test "x${with_libjpeg}" = "xsystem"; then 56525 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 56526 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 56527 56528 else 56529 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 56530 fi 56531 56532 56533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 56534 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 56535 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 56536 $as_echo_n "(cached) " >&6 56537 else 56538 ac_check_lib_save_LIBS=$LIBS 56539 LIBS="-ljpeg $LIBS" 56540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56541 /* end confdefs.h. */ 56542 56543 /* Override any GCC internal prototype to avoid an error. 56544 Use char because int might match the return type of a GCC 56545 builtin and then its argument prototype would still apply. */ 56546 #ifdef __cplusplus 56547 extern "C" 56548 #endif 56549 char jpeg_CreateDecompress (); 56550 int 56551 main () 56552 { 56553 return jpeg_CreateDecompress (); 56554 ; 56555 return 0; 56556 } 56557 _ACEOF 56558 if ac_fn_cxx_try_link "$LINENO"; then : 56559 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 56560 else 56561 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 56562 fi 56563 rm -f core conftest.err conftest.$ac_objext \ 56564 conftest$ac_exeext conftest.$ac_ext 56565 LIBS=$ac_check_lib_save_LIBS 56566 fi 56567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 56568 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 56569 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 56570 cat >>confdefs.h <<_ACEOF 56571 #define HAVE_LIBJPEG 1 56572 _ACEOF 56573 56574 LIBS="-ljpeg $LIBS" 56575 56576 else 56577 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 56578 fi 56579 56580 56581 USE_EXTERNAL_LIBJPEG=true 56582 else 56583 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 56584 fi 56585 56586 56587 56588 56589 56590 # Check whether --with-giflib was given. 56591 if test "${with_giflib+set}" = set; then : 56592 withval=$with_giflib; 56593 fi 56594 56595 56596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 56597 $as_echo_n "checking for which giflib to use... " >&6; } 56598 # default is bundled 56599 DEFAULT_GIFLIB=bundled 56600 # if user didn't specify, use DEFAULT_GIFLIB 56601 if test "x${with_giflib}" = "x"; then 56602 with_giflib=${DEFAULT_GIFLIB} 56603 fi 56604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 56605 $as_echo "${with_giflib}" >&6; } 56606 56607 if test "x${with_giflib}" = "xbundled"; then 56608 USE_EXTERNAL_LIBGIF=false 56609 elif test "x${with_giflib}" = "xsystem"; then 56610 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 56611 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 56612 56613 else 56614 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 56615 fi 56616 56617 56618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 56619 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 56620 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 56621 $as_echo_n "(cached) " >&6 56622 else 56623 ac_check_lib_save_LIBS=$LIBS 56624 LIBS="-lgif $LIBS" 56625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56626 /* end confdefs.h. */ 56627 56628 /* Override any GCC internal prototype to avoid an error. 56629 Use char because int might match the return type of a GCC 56630 builtin and then its argument prototype would still apply. */ 56631 #ifdef __cplusplus 56632 extern "C" 56633 #endif 56634 char DGifGetCode (); 56635 int 56636 main () 56637 { 56638 return DGifGetCode (); 56639 ; 56640 return 0; 56641 } 56642 _ACEOF 56643 if ac_fn_cxx_try_link "$LINENO"; then : 56644 ac_cv_lib_gif_DGifGetCode=yes 56645 else 56646 ac_cv_lib_gif_DGifGetCode=no 56647 fi 56648 rm -f core conftest.err conftest.$ac_objext \ 56649 conftest$ac_exeext conftest.$ac_ext 56650 LIBS=$ac_check_lib_save_LIBS 56651 fi 56652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 56653 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 56654 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 56655 cat >>confdefs.h <<_ACEOF 56656 #define HAVE_LIBGIF 1 56657 _ACEOF 56658 56659 LIBS="-lgif $LIBS" 56660 56661 else 56662 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 56663 fi 56664 56665 56666 USE_EXTERNAL_LIBGIF=true 56667 else 56668 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 56669 fi 56670 56671 56672 56673 56674 56675 # Check whether --with-libpng was given. 56676 if test "${with_libpng+set}" = set; then : 56677 withval=$with_libpng; 56678 fi 56679 56680 56681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 56682 $as_echo_n "checking for which libpng to use... " >&6; } 56683 56684 # default is bundled 56685 DEFAULT_LIBPNG=bundled 56686 # if user didn't specify, use DEFAULT_LIBPNG 56687 if test "x${with_libpng}" = "x"; then 56688 with_libpng=${DEFAULT_LIBPNG} 56689 fi 56690 56691 if test "x${with_libpng}" = "xbundled"; then 56692 USE_EXTERNAL_LIBPNG=false 56693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 56694 $as_echo "bundled" >&6; } 56695 elif test "x${with_libpng}" = "xsystem"; then 56696 56697 pkg_failed=no 56698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 56699 $as_echo_n "checking for PNG... " >&6; } 56700 56701 if test -n "$PNG_CFLAGS"; then 56702 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 56703 elif test -n "$PKG_CONFIG"; then 56704 if test -n "$PKG_CONFIG" && \ 56705 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 56706 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 56707 ac_status=$? 56708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 56709 test $ac_status = 0; }; then 56710 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 56711 else 56712 pkg_failed=yes 56713 fi 56714 else 56715 pkg_failed=untried 56716 fi 56717 if test -n "$PNG_LIBS"; then 56718 pkg_cv_PNG_LIBS="$PNG_LIBS" 56719 elif test -n "$PKG_CONFIG"; then 56720 if test -n "$PKG_CONFIG" && \ 56721 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 56722 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 56723 ac_status=$? 56724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 56725 test $ac_status = 0; }; then 56726 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 56727 else 56728 pkg_failed=yes 56729 fi 56730 else 56731 pkg_failed=untried 56732 fi 56733 56734 56735 56736 if test $pkg_failed = yes; then 56737 56738 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 56739 _pkg_short_errors_supported=yes 56740 else 56741 _pkg_short_errors_supported=no 56742 fi 56743 if test $_pkg_short_errors_supported = yes; then 56744 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 56745 else 56746 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 56747 fi 56748 # Put the nasty error message in config.log where it belongs 56749 echo "$PNG_PKG_ERRORS" >&5 56750 56751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 56752 $as_echo "no" >&6; } 56753 LIBPNG_FOUND=no 56754 elif test $pkg_failed = untried; then 56755 LIBPNG_FOUND=no 56756 else 56757 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 56758 PNG_LIBS=$pkg_cv_PNG_LIBS 56759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 56760 $as_echo "yes" >&6; } 56761 LIBPNG_FOUND=yes 56762 fi 56763 if test "x${LIBPNG_FOUND}" = "xyes"; then 56764 USE_EXTERNAL_LIBPNG=true 56765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 56766 $as_echo "system" >&6; } 56767 else 56768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 56769 $as_echo "system not found" >&6; } 56770 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 56771 fi 56772 else 56773 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 56774 fi 56775 56776 56777 56778 56779 56780 # Check whether --with-zlib was given. 56781 if test "${with_zlib+set}" = set; then : 56782 withval=$with_zlib; 56783 fi 56784 56785 56786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 56787 $as_echo_n "checking for compress in -lz... " >&6; } 56788 if ${ac_cv_lib_z_compress+:} false; then : 56789 $as_echo_n "(cached) " >&6 56790 else 56791 ac_check_lib_save_LIBS=$LIBS 56792 LIBS="-lz $LIBS" 56793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56794 /* end confdefs.h. */ 56795 56796 /* Override any GCC internal prototype to avoid an error. 56797 Use char because int might match the return type of a GCC 56798 builtin and then its argument prototype would still apply. */ 56799 #ifdef __cplusplus 56800 extern "C" 56801 #endif 56802 char compress (); 56803 int 56804 main () 56805 { 56806 return compress (); 56807 ; 56808 return 0; 56809 } 56810 _ACEOF 56811 if ac_fn_cxx_try_link "$LINENO"; then : 56812 ac_cv_lib_z_compress=yes 56813 else 56814 ac_cv_lib_z_compress=no 56815 fi 56816 rm -f core conftest.err conftest.$ac_objext \ 56817 conftest$ac_exeext conftest.$ac_ext 56818 LIBS=$ac_check_lib_save_LIBS 56819 fi 56820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 56821 $as_echo "$ac_cv_lib_z_compress" >&6; } 56822 if test "x$ac_cv_lib_z_compress" = xyes; then : 56823 ZLIB_FOUND=yes 56824 else 56825 ZLIB_FOUND=no 56826 fi 56827 56828 56829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 56830 $as_echo_n "checking for which zlib to use... " >&6; } 56831 56832 DEFAULT_ZLIB=bundled 56833 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 56834 # On macosx default is system...on others default is bundled 56835 DEFAULT_ZLIB=system 56836 fi 56837 56838 if test "x${ZLIB_FOUND}" != "xyes"; then 56839 # If we don't find any system...set default to bundled 56840 DEFAULT_ZLIB=bundled 56841 fi 56842 56843 # If user didn't specify, use DEFAULT_ZLIB 56844 if test "x${with_zlib}" = "x"; then 56845 with_zlib=${DEFAULT_ZLIB} 56846 fi 56847 56848 if test "x${with_zlib}" = "xbundled"; then 56849 USE_EXTERNAL_LIBZ=false 56850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 56851 $as_echo "bundled" >&6; } 56852 elif test "x${with_zlib}" = "xsystem"; then 56853 if test "x${ZLIB_FOUND}" = "xyes"; then 56854 USE_EXTERNAL_LIBZ=true 56855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 56856 $as_echo "system" >&6; } 56857 else 56858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 56859 $as_echo "system not found" >&6; } 56860 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 56861 fi 56862 else 56863 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 56864 fi 56865 56866 56867 56868 56869 56870 # Check whether --with-lcms was given. 56871 if test "${with_lcms+set}" = set; then : 56872 withval=$with_lcms; 56873 fi 56874 56875 56876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 56877 $as_echo_n "checking for which lcms to use... " >&6; } 56878 56879 DEFAULT_LCMS=bundled 56880 # If user didn't specify, use DEFAULT_LCMS 56881 if test "x${with_lcms}" = "x"; then 56882 with_lcms=${DEFAULT_LCMS} 56883 fi 56884 56885 if test "x${with_lcms}" = "xbundled"; then 56886 USE_EXTERNAL_LCMS=false 56887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 56888 $as_echo "bundled" >&6; } 56889 elif test "x${with_lcms}" = "xsystem"; then 56890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 56891 $as_echo "system" >&6; } 56892 56893 pkg_failed=no 56894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 56895 $as_echo_n "checking for LCMS... " >&6; } 56896 56897 if test -n "$LCMS_CFLAGS"; then 56898 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 56899 elif test -n "$PKG_CONFIG"; then 56900 if test -n "$PKG_CONFIG" && \ 56901 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 56902 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 56903 ac_status=$? 56904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 56905 test $ac_status = 0; }; then 56906 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 56907 else 56908 pkg_failed=yes 56909 fi 56910 else 56911 pkg_failed=untried 56912 fi 56913 if test -n "$LCMS_LIBS"; then 56914 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 56915 elif test -n "$PKG_CONFIG"; then 56916 if test -n "$PKG_CONFIG" && \ 56917 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 56918 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 56919 ac_status=$? 56920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 56921 test $ac_status = 0; }; then 56922 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 56923 else 56924 pkg_failed=yes 56925 fi 56926 else 56927 pkg_failed=untried 56928 fi 56929 56930 56931 56932 if test $pkg_failed = yes; then 56933 56934 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 56935 _pkg_short_errors_supported=yes 56936 else 56937 _pkg_short_errors_supported=no 56938 fi 56939 if test $_pkg_short_errors_supported = yes; then 56940 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 56941 else 56942 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 56943 fi 56944 # Put the nasty error message in config.log where it belongs 56945 echo "$LCMS_PKG_ERRORS" >&5 56946 56947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 56948 $as_echo "no" >&6; } 56949 LCMS_FOUND=no 56950 elif test $pkg_failed = untried; then 56951 LCMS_FOUND=no 56952 else 56953 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 56954 LCMS_LIBS=$pkg_cv_LCMS_LIBS 56955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 56956 $as_echo "yes" >&6; } 56957 LCMS_FOUND=yes 56958 fi 56959 if test "x${LCMS_FOUND}" = "xyes"; then 56960 USE_EXTERNAL_LCMS=true 56961 else 56962 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 56963 fi 56964 else 56965 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 56966 fi 56967 56968 56969 56970 56971 56972 56973 56974 56975 56976 56977 56978 # Setup libm (the maths library) 56979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 56980 $as_echo_n "checking for cos in -lm... " >&6; } 56981 if ${ac_cv_lib_m_cos+:} false; then : 56982 $as_echo_n "(cached) " >&6 56983 else 56984 ac_check_lib_save_LIBS=$LIBS 56985 LIBS="-lm $LIBS" 56986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56987 /* end confdefs.h. */ 56988 56989 /* Override any GCC internal prototype to avoid an error. 56990 Use char because int might match the return type of a GCC 56991 builtin and then its argument prototype would still apply. */ 56992 #ifdef __cplusplus 56993 extern "C" 56994 #endif 56995 char cos (); 56996 int 56997 main () 56998 { 56999 return cos (); 57000 ; 57001 return 0; 57002 } 57003 _ACEOF 57004 if ac_fn_cxx_try_link "$LINENO"; then : 57005 ac_cv_lib_m_cos=yes 57006 else 57007 ac_cv_lib_m_cos=no 57008 fi 57009 rm -f core conftest.err conftest.$ac_objext \ 57010 conftest$ac_exeext conftest.$ac_ext 57011 LIBS=$ac_check_lib_save_LIBS 57012 fi 57013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 57014 $as_echo "$ac_cv_lib_m_cos" >&6; } 57015 if test "x$ac_cv_lib_m_cos" = xyes; then : 57016 cat >>confdefs.h <<_ACEOF 57017 #define HAVE_LIBM 1 57018 _ACEOF 57019 57020 LIBS="-lm $LIBS" 57021 57022 else 57023 57024 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 57025 $as_echo "$as_me: Maths library was not found" >&6;} 57026 57027 fi 57028 57029 LIBM=-lm 57030 57031 57032 # Setup libdl (for dynamic library loading) 57033 save_LIBS="$LIBS" 57034 LIBS="" 57035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 57036 $as_echo_n "checking for dlopen in -ldl... " >&6; } 57037 if ${ac_cv_lib_dl_dlopen+:} false; then : 57038 $as_echo_n "(cached) " >&6 57039 else 57040 ac_check_lib_save_LIBS=$LIBS 57041 LIBS="-ldl $LIBS" 57042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57043 /* end confdefs.h. */ 57044 57045 /* Override any GCC internal prototype to avoid an error. 57046 Use char because int might match the return type of a GCC 57047 builtin and then its argument prototype would still apply. */ 57048 #ifdef __cplusplus 57049 extern "C" 57050 #endif 57051 char dlopen (); 57052 int 57053 main () 57054 { 57055 return dlopen (); 57056 ; 57057 return 0; 57058 } 57059 _ACEOF 57060 if ac_fn_cxx_try_link "$LINENO"; then : 57061 ac_cv_lib_dl_dlopen=yes 57062 else 57063 ac_cv_lib_dl_dlopen=no 57064 fi 57065 rm -f core conftest.err conftest.$ac_objext \ 57066 conftest$ac_exeext conftest.$ac_ext 57067 LIBS=$ac_check_lib_save_LIBS 57068 fi 57069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 57070 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 57071 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 57072 cat >>confdefs.h <<_ACEOF 57073 #define HAVE_LIBDL 1 57074 _ACEOF 57075 57076 LIBS="-ldl $LIBS" 57077 57078 fi 57079 57080 LIBDL="$LIBS" 57081 57082 LIBS="$save_LIBS" 57083 57084 # Deprecated libraries, keep the flags for backwards compatibility 57085 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 57086 57087 57088 # Check whether --with-dxsdk was given. 57089 if test "${with_dxsdk+set}" = set; then : 57090 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 57091 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 57092 fi 57093 57094 57095 57096 57097 # Check whether --with-dxsdk-lib was given. 57098 if test "${with_dxsdk_lib+set}" = set; then : 57099 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 57100 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 57101 fi 57102 57103 57104 57105 57106 # Check whether --with-dxsdk-include was given. 57107 if test "${with_dxsdk_include+set}" = set; then : 57108 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 57109 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 57110 fi 57111 57112 57113 fi 57114 57115 # Control if libzip can use mmap. Available for purposes of overriding. 57116 LIBZIP_CAN_USE_MMAP=true 57117 57118 57119 57120 57121 57122 57123 57124 57125 57126 57127 57128 57129 57130 57131 ############################################################################### 57132 # 57133 # We need to do some final tweaking, when everything else is done. 57134 # 57135 ############################################################################### 57136 57137 57138 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 57139 57140 57141 57142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 57143 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 57144 57145 if test -d "${SRC_ROOT}/jdk/src/jdk.crypto.ec/share/native/libsunec/impl"; then 57146 ENABLE_INTREE_EC=yes 57147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 57148 $as_echo "yes" >&6; } 57149 else 57150 ENABLE_INTREE_EC=no 57151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 57152 $as_echo "no" >&6; } 57153 fi 57154 57155 57156 57157 57158 ############################################################################### 57159 # 57160 # Configure parts of the build that only affect the build performance, 57161 # not the result. 57162 # 57163 ############################################################################### 57164 57165 57166 # How many cores do we have on this build system? 57167 57168 # Check whether --with-num-cores was given. 57169 if test "${with_num_cores+set}" = set; then : 57170 withval=$with_num_cores; 57171 fi 57172 57173 if test "x$with_num_cores" = x; then 57174 # The number of cores were not specified, try to probe them. 57175 57176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 57177 $as_echo_n "checking for number of cores... " >&6; } 57178 NUM_CORES=1 57179 FOUND_CORES=no 57180 57181 if test -f /proc/cpuinfo; then 57182 # Looks like a Linux (or cygwin) system 57183 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 57184 FOUND_CORES=yes 57185 elif test -x /usr/sbin/psrinfo; then 57186 # Looks like a Solaris system 57187 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 57188 FOUND_CORES=yes 57189 elif test -x /usr/sbin/system_profiler; then 57190 # Looks like a MacOSX system 57191 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` 57192 FOUND_CORES=yes 57193 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 57194 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 57195 FOUND_CORES=yes 57196 elif test -n "$NUMBER_OF_PROCESSORS"; then 57197 # On windows, look in the env 57198 NUM_CORES=$NUMBER_OF_PROCESSORS 57199 FOUND_CORES=yes 57200 fi 57201 57202 if test "x$FOUND_CORES" = xyes; then 57203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 57204 $as_echo "$NUM_CORES" >&6; } 57205 else 57206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 57207 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 57208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 57209 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 57210 fi 57211 57212 else 57213 NUM_CORES=$with_num_cores 57214 fi 57215 57216 57217 57218 # How much memory do we have on this build system? 57219 57220 # Check whether --with-memory-size was given. 57221 if test "${with_memory_size+set}" = set; then : 57222 withval=$with_memory_size; 57223 fi 57224 57225 if test "x$with_memory_size" = x; then 57226 # The memory size was not specified, try to probe it. 57227 57228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 57229 $as_echo_n "checking for memory size... " >&6; } 57230 # Default to 1024 MB 57231 MEMORY_SIZE=1024 57232 FOUND_MEM=no 57233 57234 if test -f /proc/meminfo; then 57235 # Looks like a Linux (or cygwin) system 57236 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 57237 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 57238 FOUND_MEM=yes 57239 elif test -x /usr/sbin/prtconf; then 57240 # Looks like a Solaris or AIX system 57241 MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 57242 FOUND_MEM=yes 57243 elif test -x /usr/sbin/system_profiler; then 57244 # Looks like a MacOSX system 57245 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'` 57246 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` 57247 FOUND_MEM=yes 57248 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 57249 # Windows, but without cygwin 57250 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 57251 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 57252 FOUND_MEM=yes 57253 fi 57254 57255 if test "x$FOUND_MEM" = xyes; then 57256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 57257 $as_echo "$MEMORY_SIZE MB" >&6; } 57258 else 57259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 57260 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 57261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 57262 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 57263 fi 57264 57265 else 57266 MEMORY_SIZE=$with_memory_size 57267 fi 57268 57269 57270 57271 # Provide a decent default number of parallel jobs for make depending on 57272 # number of cores, amount of memory and machine architecture. 57273 57274 # Check whether --with-jobs was given. 57275 if test "${with_jobs+set}" = set; then : 57276 withval=$with_jobs; 57277 fi 57278 57279 if test "x$with_jobs" = x; then 57280 # Number of jobs was not specified, calculate. 57281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 57282 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 57283 # Approximate memory in GB. 57284 memory_gb=`expr $MEMORY_SIZE / 1024` 57285 # Pick the lowest of memory in gb and number of cores. 57286 if test "$memory_gb" -lt "$NUM_CORES"; then 57287 JOBS="$memory_gb" 57288 else 57289 JOBS="$NUM_CORES" 57290 fi 57291 if test "$JOBS" -eq "0"; then 57292 JOBS=1 57293 fi 57294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 57295 $as_echo "$JOBS" >&6; } 57296 else 57297 JOBS=$with_jobs 57298 fi 57299 57300 57301 57302 # The number of test jobs will be chosen automatically if TEST_JOBS is 0 57303 57304 # Check whether --with-test-jobs was given. 57305 if test "${with_test_jobs+set}" = set; then : 57306 withval=$with_test_jobs; 57307 fi 57308 57309 if test "x$with_test_jobs" = x; then 57310 TEST_JOBS=0 57311 else 57312 TEST_JOBS=$with_test_jobs 57313 fi 57314 57315 57316 57317 # Setup arguments for the boot jdk (after cores and memory have been setup) 57318 57319 ############################################################################## 57320 # 57321 # Specify jvm options for anything that is run with the Boot JDK. 57322 # Not all JVM:s accept the same arguments on the command line. 57323 # 57324 57325 # Check whether --with-boot-jdk-jvmargs was given. 57326 if test "${with_boot_jdk_jvmargs+set}" = set; then : 57327 withval=$with_boot_jdk_jvmargs; 57328 fi 57329 57330 57331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 57332 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 57333 57334 # Disable special log output when a debug build is used as Boot JDK... 57335 57336 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 57337 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 57338 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 57339 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 57340 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 57341 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 57342 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 57343 JVM_ARG_OK=true 57344 else 57345 $ECHO "Arg failed:" >&5 57346 $ECHO "$OUTPUT" >&5 57347 JVM_ARG_OK=false 57348 fi 57349 57350 57351 # Apply user provided options. 57352 57353 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 57354 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 57355 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 57356 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 57357 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 57358 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 57359 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 57360 JVM_ARG_OK=true 57361 else 57362 $ECHO "Arg failed:" >&5 57363 $ECHO "$OUTPUT" >&5 57364 JVM_ARG_OK=false 57365 fi 57366 57367 57368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 57369 $as_echo "$boot_jdk_jvmargs" >&6; } 57370 57371 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 57372 JAVA_FLAGS=$boot_jdk_jvmargs 57373 57374 57375 57376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 57377 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 57378 57379 # Starting amount of heap memory. 57380 57381 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 57382 $ECHO "Command: $JAVA -Xms64M -version" >&5 57383 OUTPUT=`$JAVA -Xms64M -version 2>&1` 57384 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 57385 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 57386 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 57387 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 57388 JVM_ARG_OK=true 57389 else 57390 $ECHO "Arg failed:" >&5 57391 $ECHO "$OUTPUT" >&5 57392 JVM_ARG_OK=false 57393 fi 57394 57395 57396 # Maximum amount of heap memory. 57397 # Maximum stack size. 57398 JVM_MAX_HEAP=`expr $MEMORY_SIZE / 2` 57399 if test "x$BOOT_JDK_BITS" = "x32"; then 57400 if test "$JVM_MAX_HEAP" -gt "1100"; then 57401 JVM_MAX_HEAP=1100 57402 elif test "$JVM_MAX_HEAP" -lt "512"; then 57403 JVM_MAX_HEAP=512 57404 fi 57405 STACK_SIZE=768 57406 else 57407 # Running a 64 bit JVM allows for and requires a bigger heap 57408 if test "$JVM_MAX_HEAP" -gt "1600"; then 57409 JVM_MAX_HEAP=1600 57410 elif test "$JVM_MAX_HEAP" -lt "512"; then 57411 JVM_MAX_HEAP=512 57412 fi 57413 STACK_SIZE=1536 57414 fi 57415 57416 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 57417 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 57418 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 57419 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 57420 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 57421 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 57422 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 57423 JVM_ARG_OK=true 57424 else 57425 $ECHO "Arg failed:" >&5 57426 $ECHO "$OUTPUT" >&5 57427 JVM_ARG_OK=false 57428 fi 57429 57430 57431 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 57432 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 57433 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 57434 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 57435 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 57436 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 57437 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 57438 JVM_ARG_OK=true 57439 else 57440 $ECHO "Arg failed:" >&5 57441 $ECHO "$OUTPUT" >&5 57442 JVM_ARG_OK=false 57443 fi 57444 57445 57446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 57447 $as_echo "$boot_jdk_jvmargs_big" >&6; } 57448 57449 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 57450 57451 57452 # By default, the main javac compilations use big 57453 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_BIG" 57454 57455 57456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 57457 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 57458 57459 # Use serial gc for small short lived tools if possible 57460 57461 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 57462 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 57463 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 57464 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 57465 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 57466 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 57467 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 57468 JVM_ARG_OK=true 57469 else 57470 $ECHO "Arg failed:" >&5 57471 $ECHO "$OUTPUT" >&5 57472 JVM_ARG_OK=false 57473 fi 57474 57475 57476 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 57477 $ECHO "Command: $JAVA -Xms32M -version" >&5 57478 OUTPUT=`$JAVA -Xms32M -version 2>&1` 57479 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 57480 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 57481 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 57482 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 57483 JVM_ARG_OK=true 57484 else 57485 $ECHO "Arg failed:" >&5 57486 $ECHO "$OUTPUT" >&5 57487 JVM_ARG_OK=false 57488 fi 57489 57490 57491 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 57492 $ECHO "Command: $JAVA -Xmx512M -version" >&5 57493 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 57494 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 57495 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 57496 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 57497 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 57498 JVM_ARG_OK=true 57499 else 57500 $ECHO "Arg failed:" >&5 57501 $ECHO "$OUTPUT" >&5 57502 JVM_ARG_OK=false 57503 fi 57504 57505 57506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 57507 $as_echo "$boot_jdk_jvmargs_small" >&6; } 57508 57509 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 57510 57511 57512 JAVA_TOOL_FLAGS_SMALL="" 57513 for f in $JAVA_FLAGS_SMALL; do 57514 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 57515 done 57516 57517 57518 57519 # Setup smart javac (after cores and memory have been setup) 57520 57521 57522 # Check whether --with-sjavac-server-java was given. 57523 if test "${with_sjavac_server_java+set}" = set; then : 57524 withval=$with_sjavac_server_java; 57525 fi 57526 57527 57528 if test "x$with_sjavac_server_java" != x; then 57529 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 57530 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 57531 if test "x$FOUND_VERSION" = x; then 57532 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 57533 fi 57534 else 57535 SJAVAC_SERVER_JAVA="$JAVA" 57536 fi 57537 57538 57539 if test "$MEMORY_SIZE" -gt "3000"; then 57540 57541 $ECHO "Check if jvm arg is ok: -d64" >&5 57542 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 57543 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 57544 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 57545 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 57546 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 57547 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -d64" 57548 JVM_ARG_OK=true 57549 else 57550 $ECHO "Arg failed:" >&5 57551 $ECHO "$OUTPUT" >&5 57552 JVM_ARG_OK=false 57553 fi 57554 57555 if test "$JVM_ARG_OK" = true; then 57556 JVM_64BIT=true 57557 JVM_ARG_OK=false 57558 fi 57559 fi 57560 57561 MX_VALUE=`expr $MEMORY_SIZE / 2` 57562 if test "$JVM_64BIT" = true; then 57563 # Set ms lower than mx since more than one instance of the server might 57564 # get launched at the same time before they figure out which instance won. 57565 MS_VALUE=512 57566 if test "$MX_VALUE" -gt "2048"; then 57567 MX_VALUE=2048 57568 fi 57569 else 57570 MS_VALUE=256 57571 if test "$MX_VALUE" -gt "1500"; then 57572 MX_VALUE=1500 57573 fi 57574 fi 57575 if test "$MX_VALUE" -lt "512"; then 57576 MX_VALUE=512 57577 fi 57578 57579 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 57580 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 57581 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 57582 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 57583 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 57584 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 57585 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 57586 JVM_ARG_OK=true 57587 else 57588 $ECHO "Arg failed:" >&5 57589 $ECHO "$OUTPUT" >&5 57590 JVM_ARG_OK=false 57591 fi 57592 57593 57594 57595 # Check whether --enable-sjavac was given. 57596 if test "${enable_sjavac+set}" = set; then : 57597 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 57598 else 57599 ENABLE_SJAVAC="no" 57600 fi 57601 57602 if test "x$JVM_ARG_OK" = "xfalse"; then 57603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 57604 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 57605 ENABLE_SJAVAC="no" 57606 fi 57607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 57608 $as_echo_n "checking whether to use sjavac... " >&6; } 57609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 57610 $as_echo "$ENABLE_SJAVAC" >&6; } 57611 57612 57613 # Check whether --enable-javac-server was given. 57614 if test "${enable_javac_server+set}" = set; then : 57615 enableval=$enable_javac_server; ENABLE_JAVAC_SERVER="${enableval}" 57616 else 57617 ENABLE_JAVAC_SERVER="yes" 57618 fi 57619 57620 if test "x$JVM_ARG_OK" = "xfalse"; then 57621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&5 57622 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&2;} 57623 ENABLE_JAVAC_SERVER="no" 57624 fi 57625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use javac server" >&5 57626 $as_echo_n "checking whether to use javac server... " >&6; } 57627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_SERVER" >&5 57628 $as_echo "$ENABLE_JAVAC_SERVER" >&6; } 57629 57630 57631 if test "x$ENABLE_JAVAC_SERVER" = "xyes" || "x$ENABLE_SJAVAC" = "xyes"; then 57632 # When using a server javac, the small client instances do not need much 57633 # resources. 57634 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_SMALL" 57635 fi 57636 57637 57638 # Setup use of icecc if requested 57639 57640 # Check whether --enable-icecc was given. 57641 if test "${enable_icecc+set}" = set; then : 57642 enableval=$enable_icecc; 57643 fi 57644 57645 57646 if test "x${enable_icecc}" = "xyes"; then 57647 57648 57649 57650 # Publish this variable in the help. 57651 57652 57653 if [ -z "${ICECC_CMD+x}" ]; then 57654 # The variable is not set by user, try to locate tool using the code snippet 57655 for ac_prog in icecc 57656 do 57657 # Extract the first word of "$ac_prog", so it can be a program name with args. 57658 set dummy $ac_prog; ac_word=$2 57659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 57660 $as_echo_n "checking for $ac_word... " >&6; } 57661 if ${ac_cv_path_ICECC_CMD+:} false; then : 57662 $as_echo_n "(cached) " >&6 57663 else 57664 case $ICECC_CMD in 57665 [\\/]* | ?:[\\/]*) 57666 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 57667 ;; 57668 *) 57669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 57670 for as_dir in $PATH 57671 do 57672 IFS=$as_save_IFS 57673 test -z "$as_dir" && as_dir=. 57674 for ac_exec_ext in '' $ac_executable_extensions; do 57675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 57676 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 57677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 57678 break 2 57679 fi 57680 done 57681 done 57682 IFS=$as_save_IFS 57683 57684 ;; 57685 esac 57686 fi 57687 ICECC_CMD=$ac_cv_path_ICECC_CMD 57688 if test -n "$ICECC_CMD"; then 57689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 57690 $as_echo "$ICECC_CMD" >&6; } 57691 else 57692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 57693 $as_echo "no" >&6; } 57694 fi 57695 57696 57697 test -n "$ICECC_CMD" && break 57698 done 57699 57700 else 57701 # The variable is set, but is it from the command line or the environment? 57702 57703 # Try to remove the string !ICECC_CMD! from our list. 57704 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CMD!/} 57705 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 57706 # If it failed, the variable was not from the command line. Ignore it, 57707 # but warn the user (except for BASH, which is always set by the calling BASH). 57708 if test "xICECC_CMD" != xBASH; then 57709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&5 57710 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&2;} 57711 fi 57712 # Try to locate tool using the code snippet 57713 for ac_prog in icecc 57714 do 57715 # Extract the first word of "$ac_prog", so it can be a program name with args. 57716 set dummy $ac_prog; ac_word=$2 57717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 57718 $as_echo_n "checking for $ac_word... " >&6; } 57719 if ${ac_cv_path_ICECC_CMD+:} false; then : 57720 $as_echo_n "(cached) " >&6 57721 else 57722 case $ICECC_CMD in 57723 [\\/]* | ?:[\\/]*) 57724 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 57725 ;; 57726 *) 57727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 57728 for as_dir in $PATH 57729 do 57730 IFS=$as_save_IFS 57731 test -z "$as_dir" && as_dir=. 57732 for ac_exec_ext in '' $ac_executable_extensions; do 57733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 57734 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 57735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 57736 break 2 57737 fi 57738 done 57739 done 57740 IFS=$as_save_IFS 57741 57742 ;; 57743 esac 57744 fi 57745 ICECC_CMD=$ac_cv_path_ICECC_CMD 57746 if test -n "$ICECC_CMD"; then 57747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 57748 $as_echo "$ICECC_CMD" >&6; } 57749 else 57750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 57751 $as_echo "no" >&6; } 57752 fi 57753 57754 57755 test -n "$ICECC_CMD" && break 57756 done 57757 57758 else 57759 # If it succeeded, then it was overridden by the user. We will use it 57760 # for the tool. 57761 57762 # First remove it from the list of overridden variables, so we can test 57763 # for unknown variables in the end. 57764 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 57765 57766 # Check if we try to supply an empty value 57767 if test "x$ICECC_CMD" = x; then 57768 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CMD= (no value)" >&5 57769 $as_echo "$as_me: Setting user supplied tool ICECC_CMD= (no value)" >&6;} 57770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 57771 $as_echo_n "checking for ICECC_CMD... " >&6; } 57772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 57773 $as_echo "disabled" >&6; } 57774 else 57775 # Check if the provided tool contains a complete path. 57776 tool_specified="$ICECC_CMD" 57777 tool_basename="${tool_specified##*/}" 57778 if test "x$tool_basename" = "x$tool_specified"; then 57779 # A command without a complete path is provided, search $PATH. 57780 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CMD=$tool_basename" >&5 57781 $as_echo "$as_me: Will search for user supplied tool ICECC_CMD=$tool_basename" >&6;} 57782 # Extract the first word of "$tool_basename", so it can be a program name with args. 57783 set dummy $tool_basename; ac_word=$2 57784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 57785 $as_echo_n "checking for $ac_word... " >&6; } 57786 if ${ac_cv_path_ICECC_CMD+:} false; then : 57787 $as_echo_n "(cached) " >&6 57788 else 57789 case $ICECC_CMD in 57790 [\\/]* | ?:[\\/]*) 57791 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 57792 ;; 57793 *) 57794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 57795 for as_dir in $PATH 57796 do 57797 IFS=$as_save_IFS 57798 test -z "$as_dir" && as_dir=. 57799 for ac_exec_ext in '' $ac_executable_extensions; do 57800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 57801 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 57802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 57803 break 2 57804 fi 57805 done 57806 done 57807 IFS=$as_save_IFS 57808 57809 ;; 57810 esac 57811 fi 57812 ICECC_CMD=$ac_cv_path_ICECC_CMD 57813 if test -n "$ICECC_CMD"; then 57814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 57815 $as_echo "$ICECC_CMD" >&6; } 57816 else 57817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 57818 $as_echo "no" >&6; } 57819 fi 57820 57821 57822 if test "x$ICECC_CMD" = x; then 57823 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 57824 fi 57825 else 57826 # Otherwise we believe it is a complete path. Use it as it is. 57827 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CMD=$tool_specified" >&5 57828 $as_echo "$as_me: Will use user supplied tool ICECC_CMD=$tool_specified" >&6;} 57829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 57830 $as_echo_n "checking for ICECC_CMD... " >&6; } 57831 if test ! -x "$tool_specified"; then 57832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 57833 $as_echo "not found" >&6; } 57834 as_fn_error $? "User supplied tool ICECC_CMD=$tool_specified does not exist or is not executable" "$LINENO" 5 57835 fi 57836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 57837 $as_echo "$tool_specified" >&6; } 57838 fi 57839 fi 57840 fi 57841 57842 fi 57843 57844 57845 57846 if test "x$ICECC_CMD" = x; then 57847 as_fn_error $? "Could not find required tool for ICECC_CMD" "$LINENO" 5 57848 fi 57849 57850 57851 old_path="$PATH" 57852 57853 # Look for icecc-create-env in some known places 57854 PATH="$PATH:/usr/lib/icecc:/usr/lib64/icecc" 57855 57856 57857 57858 # Publish this variable in the help. 57859 57860 57861 if [ -z "${ICECC_CREATE_ENV+x}" ]; then 57862 # The variable is not set by user, try to locate tool using the code snippet 57863 for ac_prog in icecc-create-env 57864 do 57865 # Extract the first word of "$ac_prog", so it can be a program name with args. 57866 set dummy $ac_prog; ac_word=$2 57867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 57868 $as_echo_n "checking for $ac_word... " >&6; } 57869 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 57870 $as_echo_n "(cached) " >&6 57871 else 57872 case $ICECC_CREATE_ENV in 57873 [\\/]* | ?:[\\/]*) 57874 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 57875 ;; 57876 *) 57877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 57878 for as_dir in $PATH 57879 do 57880 IFS=$as_save_IFS 57881 test -z "$as_dir" && as_dir=. 57882 for ac_exec_ext in '' $ac_executable_extensions; do 57883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 57884 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 57885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 57886 break 2 57887 fi 57888 done 57889 done 57890 IFS=$as_save_IFS 57891 57892 ;; 57893 esac 57894 fi 57895 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 57896 if test -n "$ICECC_CREATE_ENV"; then 57897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 57898 $as_echo "$ICECC_CREATE_ENV" >&6; } 57899 else 57900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 57901 $as_echo "no" >&6; } 57902 fi 57903 57904 57905 test -n "$ICECC_CREATE_ENV" && break 57906 done 57907 57908 else 57909 # The variable is set, but is it from the command line or the environment? 57910 57911 # Try to remove the string !ICECC_CREATE_ENV! from our list. 57912 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CREATE_ENV!/} 57913 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 57914 # If it failed, the variable was not from the command line. Ignore it, 57915 # but warn the user (except for BASH, which is always set by the calling BASH). 57916 if test "xICECC_CREATE_ENV" != xBASH; then 57917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&5 57918 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&2;} 57919 fi 57920 # Try to locate tool using the code snippet 57921 for ac_prog in icecc-create-env 57922 do 57923 # Extract the first word of "$ac_prog", so it can be a program name with args. 57924 set dummy $ac_prog; ac_word=$2 57925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 57926 $as_echo_n "checking for $ac_word... " >&6; } 57927 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 57928 $as_echo_n "(cached) " >&6 57929 else 57930 case $ICECC_CREATE_ENV in 57931 [\\/]* | ?:[\\/]*) 57932 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 57933 ;; 57934 *) 57935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 57936 for as_dir in $PATH 57937 do 57938 IFS=$as_save_IFS 57939 test -z "$as_dir" && as_dir=. 57940 for ac_exec_ext in '' $ac_executable_extensions; do 57941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 57942 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 57943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 57944 break 2 57945 fi 57946 done 57947 done 57948 IFS=$as_save_IFS 57949 57950 ;; 57951 esac 57952 fi 57953 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 57954 if test -n "$ICECC_CREATE_ENV"; then 57955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 57956 $as_echo "$ICECC_CREATE_ENV" >&6; } 57957 else 57958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 57959 $as_echo "no" >&6; } 57960 fi 57961 57962 57963 test -n "$ICECC_CREATE_ENV" && break 57964 done 57965 57966 else 57967 # If it succeeded, then it was overridden by the user. We will use it 57968 # for the tool. 57969 57970 # First remove it from the list of overridden variables, so we can test 57971 # for unknown variables in the end. 57972 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 57973 57974 # Check if we try to supply an empty value 57975 if test "x$ICECC_CREATE_ENV" = x; then 57976 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&5 57977 $as_echo "$as_me: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&6;} 57978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 57979 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 57980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 57981 $as_echo "disabled" >&6; } 57982 else 57983 # Check if the provided tool contains a complete path. 57984 tool_specified="$ICECC_CREATE_ENV" 57985 tool_basename="${tool_specified##*/}" 57986 if test "x$tool_basename" = "x$tool_specified"; then 57987 # A command without a complete path is provided, search $PATH. 57988 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&5 57989 $as_echo "$as_me: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&6;} 57990 # Extract the first word of "$tool_basename", so it can be a program name with args. 57991 set dummy $tool_basename; ac_word=$2 57992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 57993 $as_echo_n "checking for $ac_word... " >&6; } 57994 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 57995 $as_echo_n "(cached) " >&6 57996 else 57997 case $ICECC_CREATE_ENV in 57998 [\\/]* | ?:[\\/]*) 57999 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 58000 ;; 58001 *) 58002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 58003 for as_dir in $PATH 58004 do 58005 IFS=$as_save_IFS 58006 test -z "$as_dir" && as_dir=. 58007 for ac_exec_ext in '' $ac_executable_extensions; do 58008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 58009 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 58010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 58011 break 2 58012 fi 58013 done 58014 done 58015 IFS=$as_save_IFS 58016 58017 ;; 58018 esac 58019 fi 58020 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 58021 if test -n "$ICECC_CREATE_ENV"; then 58022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 58023 $as_echo "$ICECC_CREATE_ENV" >&6; } 58024 else 58025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58026 $as_echo "no" >&6; } 58027 fi 58028 58029 58030 if test "x$ICECC_CREATE_ENV" = x; then 58031 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 58032 fi 58033 else 58034 # Otherwise we believe it is a complete path. Use it as it is. 58035 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&5 58036 $as_echo "$as_me: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&6;} 58037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 58038 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 58039 if test ! -x "$tool_specified"; then 58040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 58041 $as_echo "not found" >&6; } 58042 as_fn_error $? "User supplied tool ICECC_CREATE_ENV=$tool_specified does not exist or is not executable" "$LINENO" 5 58043 fi 58044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 58045 $as_echo "$tool_specified" >&6; } 58046 fi 58047 fi 58048 fi 58049 58050 fi 58051 58052 58053 58054 if test "x$ICECC_CREATE_ENV" = x; then 58055 as_fn_error $? "Could not find required tool for ICECC_CREATE_ENV" "$LINENO" 5 58056 fi 58057 58058 58059 # Use icecc-create-env to create a minimal compilation environment that can 58060 # be sent to the other hosts in the icecream cluster. 58061 icecc_create_env_log="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env.log" 58062 ${MKDIR} -p ${CONFIGURESUPPORT_OUTPUTDIR}/icecc 58063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for target compiler" >&5 58064 $as_echo_n "checking for icecc build environment for target compiler... " >&6; } 58065 if test "x${TOOLCHAIN_TYPE}" = "xgcc"; then 58066 cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 58067 && ${ICECC_CREATE_ENV} --gcc ${CC} ${CXX} > ${icecc_create_env_log} 58068 elif test "x$TOOLCHAIN_TYPE" = "xclang"; then 58069 # For clang, the icecc compilerwrapper is needed. It usually resides next 58070 # to icecc-create-env. 58071 58072 58073 58074 # Publish this variable in the help. 58075 58076 58077 if [ -z "${ICECC_WRAPPER+x}" ]; then 58078 # The variable is not set by user, try to locate tool using the code snippet 58079 for ac_prog in compilerwrapper 58080 do 58081 # Extract the first word of "$ac_prog", so it can be a program name with args. 58082 set dummy $ac_prog; ac_word=$2 58083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 58084 $as_echo_n "checking for $ac_word... " >&6; } 58085 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 58086 $as_echo_n "(cached) " >&6 58087 else 58088 case $ICECC_WRAPPER in 58089 [\\/]* | ?:[\\/]*) 58090 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 58091 ;; 58092 *) 58093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 58094 for as_dir in $PATH 58095 do 58096 IFS=$as_save_IFS 58097 test -z "$as_dir" && as_dir=. 58098 for ac_exec_ext in '' $ac_executable_extensions; do 58099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 58100 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 58101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 58102 break 2 58103 fi 58104 done 58105 done 58106 IFS=$as_save_IFS 58107 58108 ;; 58109 esac 58110 fi 58111 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 58112 if test -n "$ICECC_WRAPPER"; then 58113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 58114 $as_echo "$ICECC_WRAPPER" >&6; } 58115 else 58116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58117 $as_echo "no" >&6; } 58118 fi 58119 58120 58121 test -n "$ICECC_WRAPPER" && break 58122 done 58123 58124 else 58125 # The variable is set, but is it from the command line or the environment? 58126 58127 # Try to remove the string !ICECC_WRAPPER! from our list. 58128 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_WRAPPER!/} 58129 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 58130 # If it failed, the variable was not from the command line. Ignore it, 58131 # but warn the user (except for BASH, which is always set by the calling BASH). 58132 if test "xICECC_WRAPPER" != xBASH; then 58133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&5 58134 $as_echo "$as_me: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&2;} 58135 fi 58136 # Try to locate tool using the code snippet 58137 for ac_prog in compilerwrapper 58138 do 58139 # Extract the first word of "$ac_prog", so it can be a program name with args. 58140 set dummy $ac_prog; ac_word=$2 58141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 58142 $as_echo_n "checking for $ac_word... " >&6; } 58143 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 58144 $as_echo_n "(cached) " >&6 58145 else 58146 case $ICECC_WRAPPER in 58147 [\\/]* | ?:[\\/]*) 58148 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 58149 ;; 58150 *) 58151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 58152 for as_dir in $PATH 58153 do 58154 IFS=$as_save_IFS 58155 test -z "$as_dir" && as_dir=. 58156 for ac_exec_ext in '' $ac_executable_extensions; do 58157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 58158 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 58159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 58160 break 2 58161 fi 58162 done 58163 done 58164 IFS=$as_save_IFS 58165 58166 ;; 58167 esac 58168 fi 58169 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 58170 if test -n "$ICECC_WRAPPER"; then 58171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 58172 $as_echo "$ICECC_WRAPPER" >&6; } 58173 else 58174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58175 $as_echo "no" >&6; } 58176 fi 58177 58178 58179 test -n "$ICECC_WRAPPER" && break 58180 done 58181 58182 else 58183 # If it succeeded, then it was overridden by the user. We will use it 58184 # for the tool. 58185 58186 # First remove it from the list of overridden variables, so we can test 58187 # for unknown variables in the end. 58188 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 58189 58190 # Check if we try to supply an empty value 58191 if test "x$ICECC_WRAPPER" = x; then 58192 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_WRAPPER= (no value)" >&5 58193 $as_echo "$as_me: Setting user supplied tool ICECC_WRAPPER= (no value)" >&6;} 58194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 58195 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 58196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 58197 $as_echo "disabled" >&6; } 58198 else 58199 # Check if the provided tool contains a complete path. 58200 tool_specified="$ICECC_WRAPPER" 58201 tool_basename="${tool_specified##*/}" 58202 if test "x$tool_basename" = "x$tool_specified"; then 58203 # A command without a complete path is provided, search $PATH. 58204 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&5 58205 $as_echo "$as_me: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&6;} 58206 # Extract the first word of "$tool_basename", so it can be a program name with args. 58207 set dummy $tool_basename; ac_word=$2 58208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 58209 $as_echo_n "checking for $ac_word... " >&6; } 58210 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 58211 $as_echo_n "(cached) " >&6 58212 else 58213 case $ICECC_WRAPPER in 58214 [\\/]* | ?:[\\/]*) 58215 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 58216 ;; 58217 *) 58218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 58219 for as_dir in $PATH 58220 do 58221 IFS=$as_save_IFS 58222 test -z "$as_dir" && as_dir=. 58223 for ac_exec_ext in '' $ac_executable_extensions; do 58224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 58225 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 58226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 58227 break 2 58228 fi 58229 done 58230 done 58231 IFS=$as_save_IFS 58232 58233 ;; 58234 esac 58235 fi 58236 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 58237 if test -n "$ICECC_WRAPPER"; then 58238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 58239 $as_echo "$ICECC_WRAPPER" >&6; } 58240 else 58241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58242 $as_echo "no" >&6; } 58243 fi 58244 58245 58246 if test "x$ICECC_WRAPPER" = x; then 58247 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 58248 fi 58249 else 58250 # Otherwise we believe it is a complete path. Use it as it is. 58251 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&5 58252 $as_echo "$as_me: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&6;} 58253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 58254 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 58255 if test ! -x "$tool_specified"; then 58256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 58257 $as_echo "not found" >&6; } 58258 as_fn_error $? "User supplied tool ICECC_WRAPPER=$tool_specified does not exist or is not executable" "$LINENO" 5 58259 fi 58260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 58261 $as_echo "$tool_specified" >&6; } 58262 fi 58263 fi 58264 fi 58265 58266 fi 58267 58268 58269 58270 if test "x$ICECC_WRAPPER" = x; then 58271 as_fn_error $? "Could not find required tool for ICECC_WRAPPER" "$LINENO" 5 58272 fi 58273 58274 58275 cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 58276 && ${ICECC_CREATE_ENV} --clang ${CC} ${ICECC_WRAPPER} > ${icecc_create_env_log} 58277 else 58278 as_fn_error $? "Can only create icecc compiler packages for toolchain types gcc and clang" "$LINENO" 5 58279 fi 58280 PATH="$old_path" 58281 # The bundle with the compiler gets a name based on checksums. Parse log file 58282 # to find it. 58283 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log}`" 58284 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 58285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 58286 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 58287 ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${CC} ICECC_CXX=${CXX} ${ICECC_CMD}" 58288 58289 if test "x${COMPILE_TYPE}" = "xcross"; then 58290 # If cross compiling, create a separate env package for the build compiler 58291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for build compiler" >&5 58292 $as_echo_n "checking for icecc build environment for build compiler... " >&6; } 58293 # Assume "gcc" or "cc" is gcc and "clang" is clang. Otherwise bail. 58294 if test "x${BUILD_CC##*/}" = "xgcc" || test "x${BUILD_CC##*/}" = "xcc"; then 58295 cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 58296 && ${ICECC_CREATE_ENV} --gcc ${BUILD_CC} ${BUILD_CXX} > ${icecc_create_env_log} 58297 elif test "x${BUILD_CC##*/}" = "xclang"; then 58298 cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 58299 && ${ICECC_CREATE_ENV} --clang ${BUILD_CC} ${ICECC_WRAPPER} > ${icecc_create_env_log} 58300 else 58301 as_fn_error $? "Cannot create icecc compiler package for ${BUILD_CC}" "$LINENO" 5 58302 fi 58303 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log}`" 58304 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 58305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 58306 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 58307 BUILD_ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${BUILD_CC} \ 58308 ICECC_CXX=${BUILD_CXX} ${ICECC_CMD}" 58309 else 58310 BUILD_ICECC="${ICECC}" 58311 fi 58312 58313 58314 fi 58315 58316 58317 # Can the C/C++ compiler use precompiled headers? 58318 58319 58320 ############################################################################### 58321 # 58322 # Can the C/C++ compiler use precompiled headers? 58323 # 58324 # Check whether --enable-precompiled-headers was given. 58325 if test "${enable_precompiled_headers+set}" = set; then : 58326 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 58327 else 58328 ENABLE_PRECOMPH=yes 58329 fi 58330 58331 58332 USE_PRECOMPILED_HEADER=1 58333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If precompiled header is enabled" >&5 58334 $as_echo_n "checking If precompiled header is enabled... " >&6; } 58335 if test "x$ENABLE_PRECOMPH" = xno; then 58336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 58337 $as_echo "no, forced" >&6; } 58338 USE_PRECOMPILED_HEADER=0 58339 elif test "x$ICECC" != "x"; then 58340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work effectively with icecc" >&5 58341 $as_echo "no, does not work effectively with icecc" >&6; } 58342 USE_PRECOMPILED_HEADER=0 58343 else 58344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 58345 $as_echo "yes" >&6; } 58346 fi 58347 58348 if test "x$ENABLE_PRECOMPH" = xyes; then 58349 # Check that the compiler actually supports precomp headers. 58350 if test "x$TOOLCHAIN_TYPE" = xgcc; then 58351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 58352 $as_echo_n "checking that precompiled headers work... " >&6; } 58353 echo "int alfa();" > conftest.h 58354 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 58355 if test ! -f conftest.hpp.gch; then 58356 USE_PRECOMPILED_HEADER=0 58357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58358 $as_echo "no" >&6; } 58359 else 58360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 58361 $as_echo "yes" >&6; } 58362 fi 58363 rm -f conftest.h conftest.hpp.gch 58364 fi 58365 fi 58366 58367 58368 58369 58370 # Setup use of ccache, if available 58371 58372 # Check whether --enable-ccache was given. 58373 if test "${enable_ccache+set}" = set; then : 58374 enableval=$enable_ccache; 58375 fi 58376 58377 58378 CCACHE= 58379 CCACHE_STATUS= 58380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 58381 $as_echo_n "checking is ccache enabled... " >&6; } 58382 if test "x$enable_ccache" = xyes; then 58383 if test "x$TOOLCHAIN_TYPE" = "xgcc" -o "x$TOOLCHAIN_TYPE" = "xclang"; then 58384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 58385 $as_echo "yes" >&6; } 58386 OLD_PATH="$PATH" 58387 if test "x$TOOLCHAIN_PATH" != x; then 58388 PATH=$TOOLCHAIN_PATH:$PATH 58389 fi 58390 58391 58392 58393 # Publish this variable in the help. 58394 58395 58396 if [ -z "${CCACHE+x}" ]; then 58397 # The variable is not set by user, try to locate tool using the code snippet 58398 for ac_prog in ccache 58399 do 58400 # Extract the first word of "$ac_prog", so it can be a program name with args. 58401 set dummy $ac_prog; ac_word=$2 58402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 58403 $as_echo_n "checking for $ac_word... " >&6; } 58404 if ${ac_cv_path_CCACHE+:} false; then : 58405 $as_echo_n "(cached) " >&6 58406 else 58407 case $CCACHE in 58408 [\\/]* | ?:[\\/]*) 58409 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 58410 ;; 58411 *) 58412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 58413 for as_dir in $PATH 58414 do 58415 IFS=$as_save_IFS 58416 test -z "$as_dir" && as_dir=. 58417 for ac_exec_ext in '' $ac_executable_extensions; do 58418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 58419 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 58420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 58421 break 2 58422 fi 58423 done 58424 done 58425 IFS=$as_save_IFS 58426 58427 ;; 58428 esac 58429 fi 58430 CCACHE=$ac_cv_path_CCACHE 58431 if test -n "$CCACHE"; then 58432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 58433 $as_echo "$CCACHE" >&6; } 58434 else 58435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58436 $as_echo "no" >&6; } 58437 fi 58438 58439 58440 test -n "$CCACHE" && break 58441 done 58442 58443 else 58444 # The variable is set, but is it from the command line or the environment? 58445 58446 # Try to remove the string !CCACHE! from our list. 58447 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 58448 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 58449 # If it failed, the variable was not from the command line. Ignore it, 58450 # but warn the user (except for BASH, which is always set by the calling BASH). 58451 if test "xCCACHE" != xBASH; then 58452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 58453 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 58454 fi 58455 # Try to locate tool using the code snippet 58456 for ac_prog in ccache 58457 do 58458 # Extract the first word of "$ac_prog", so it can be a program name with args. 58459 set dummy $ac_prog; ac_word=$2 58460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 58461 $as_echo_n "checking for $ac_word... " >&6; } 58462 if ${ac_cv_path_CCACHE+:} false; then : 58463 $as_echo_n "(cached) " >&6 58464 else 58465 case $CCACHE in 58466 [\\/]* | ?:[\\/]*) 58467 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 58468 ;; 58469 *) 58470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 58471 for as_dir in $PATH 58472 do 58473 IFS=$as_save_IFS 58474 test -z "$as_dir" && as_dir=. 58475 for ac_exec_ext in '' $ac_executable_extensions; do 58476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 58477 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 58478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 58479 break 2 58480 fi 58481 done 58482 done 58483 IFS=$as_save_IFS 58484 58485 ;; 58486 esac 58487 fi 58488 CCACHE=$ac_cv_path_CCACHE 58489 if test -n "$CCACHE"; then 58490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 58491 $as_echo "$CCACHE" >&6; } 58492 else 58493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58494 $as_echo "no" >&6; } 58495 fi 58496 58497 58498 test -n "$CCACHE" && break 58499 done 58500 58501 else 58502 # If it succeeded, then it was overridden by the user. We will use it 58503 # for the tool. 58504 58505 # First remove it from the list of overridden variables, so we can test 58506 # for unknown variables in the end. 58507 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 58508 58509 # Check if we try to supply an empty value 58510 if test "x$CCACHE" = x; then 58511 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CCACHE= (no value)" >&5 58512 $as_echo "$as_me: Setting user supplied tool CCACHE= (no value)" >&6;} 58513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 58514 $as_echo_n "checking for CCACHE... " >&6; } 58515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 58516 $as_echo "disabled" >&6; } 58517 else 58518 # Check if the provided tool contains a complete path. 58519 tool_specified="$CCACHE" 58520 tool_basename="${tool_specified##*/}" 58521 if test "x$tool_basename" = "x$tool_specified"; then 58522 # A command without a complete path is provided, search $PATH. 58523 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 58524 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 58525 # Extract the first word of "$tool_basename", so it can be a program name with args. 58526 set dummy $tool_basename; ac_word=$2 58527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 58528 $as_echo_n "checking for $ac_word... " >&6; } 58529 if ${ac_cv_path_CCACHE+:} false; then : 58530 $as_echo_n "(cached) " >&6 58531 else 58532 case $CCACHE in 58533 [\\/]* | ?:[\\/]*) 58534 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 58535 ;; 58536 *) 58537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 58538 for as_dir in $PATH 58539 do 58540 IFS=$as_save_IFS 58541 test -z "$as_dir" && as_dir=. 58542 for ac_exec_ext in '' $ac_executable_extensions; do 58543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 58544 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 58545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 58546 break 2 58547 fi 58548 done 58549 done 58550 IFS=$as_save_IFS 58551 58552 ;; 58553 esac 58554 fi 58555 CCACHE=$ac_cv_path_CCACHE 58556 if test -n "$CCACHE"; then 58557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 58558 $as_echo "$CCACHE" >&6; } 58559 else 58560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58561 $as_echo "no" >&6; } 58562 fi 58563 58564 58565 if test "x$CCACHE" = x; then 58566 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 58567 fi 58568 else 58569 # Otherwise we believe it is a complete path. Use it as it is. 58570 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 58571 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 58572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 58573 $as_echo_n "checking for CCACHE... " >&6; } 58574 if test ! -x "$tool_specified"; then 58575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 58576 $as_echo "not found" >&6; } 58577 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 58578 fi 58579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 58580 $as_echo "$tool_specified" >&6; } 58581 fi 58582 fi 58583 fi 58584 58585 fi 58586 58587 58588 58589 if test "x$CCACHE" = x; then 58590 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 58591 fi 58592 58593 58594 PATH="$OLD_PATH" 58595 CCACHE_VERSION=`$CCACHE --version | head -n1 | $SED 's/[A-Za-z ]*//'` 58596 CCACHE_STATUS="Active ($CCACHE_VERSION)" 58597 else 58598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58599 $as_echo "no" >&6; } 58600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&5 58601 $as_echo "$as_me: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&2;} 58602 fi 58603 elif test "x$enable_ccache" = xno; then 58604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 58605 $as_echo "no, explicitly disabled" >&6; } 58606 CCACHE_STATUS="Disabled" 58607 elif test "x$enable_ccache" = x; then 58608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58609 $as_echo "no" >&6; } 58610 else 58611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 58612 $as_echo "unknown" >&6; } 58613 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 58614 fi 58615 58616 58617 58618 # Check whether --with-ccache-dir was given. 58619 if test "${with_ccache_dir+set}" = set; then : 58620 withval=$with_ccache_dir; 58621 fi 58622 58623 58624 if test "x$with_ccache_dir" != x; then 58625 # When using a non home ccache directory, assume the use is to share ccache files 58626 # with other users. Thus change the umask. 58627 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 58628 if test "x$CCACHE" = x; then 58629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 58630 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 58631 fi 58632 fi 58633 58634 if test "x$CCACHE" != x; then 58635 58636 if test "x$CCACHE" != x; then 58637 if test "x$USE_PRECOMPILED_HEADER" = "x1"; then 58638 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 58639 $GREP -e '^1.*' -e '^2.*' -e '^3\.0.*' -e '^3\.1\.[0123]$'` 58640 if test "x$HAS_BAD_CCACHE" != "x"; then 58641 as_fn_error $? "Precompiled headers requires ccache 3.1.4 or later, found $CCACHE_VERSION" "$LINENO" 5 58642 fi 58643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 58644 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 58645 CCACHE_PRECOMP_FLAG="-fpch-preprocess" 58646 PUSHED_FLAGS="$CXXFLAGS" 58647 CXXFLAGS="$CCACHE_PRECOMP_FLAG $CXXFLAGS" 58648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58649 /* end confdefs.h. */ 58650 58651 int 58652 main () 58653 { 58654 58655 ; 58656 return 0; 58657 } 58658 _ACEOF 58659 if ac_fn_cxx_try_compile "$LINENO"; then : 58660 CC_KNOWS_CCACHE_TRICK=yes 58661 else 58662 CC_KNOWS_CCACHE_TRICK=no 58663 fi 58664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 58665 CXXFLAGS="$PUSHED_FLAGS" 58666 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 58667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 58668 $as_echo "yes" >&6; } 58669 CFLAGS_CCACHE="$CCACHE_PRECOMP_FLAG" 58670 58671 CCACHE_SLOPPINESS=pch_defines,time_macros 58672 else 58673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58674 $as_echo "no" >&6; } 58675 as_fn_error $? "Cannot use ccache with precompiled headers without compiler support for $CCACHE_PRECOMP_FLAG" "$LINENO" 5 58676 fi 58677 fi 58678 58679 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR \ 58680 CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$TOPDIR $CCACHE" 58681 58682 if test "x$SET_CCACHE_DIR" != x; then 58683 mkdir -p $CCACHE_DIR > /dev/null 2>&1 58684 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 58685 fi 58686 fi 58687 58688 fi 58689 58690 58691 ############################################################################### 58692 # 58693 # And now the finish... 58694 # 58695 ############################################################################### 58696 58697 # Check for some common pitfalls 58698 58699 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58700 file_to_test="$SRC_ROOT/LICENSE" 58701 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 58702 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 58703 fi 58704 fi 58705 58706 58707 # Did user specify any unknown variables? 58708 58709 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 58710 # Replace the separating ! with spaces before presenting for end user. 58711 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 58712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 58713 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 58714 fi 58715 58716 58717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 58718 $as_echo_n "checking if build directory is on local disk... " >&6; } 58719 58720 # df -l lists only local disks; if the given directory is not found then 58721 # a non-zero exit code is given 58722 if test "x$DF" = x; then 58723 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58724 # msys does not have df; use Windows "net use" instead. 58725 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 58726 if test "x$IS_NETWORK_DISK" = x; then 58727 OUTPUT_DIR_IS_LOCAL="yes" 58728 else 58729 OUTPUT_DIR_IS_LOCAL="no" 58730 fi 58731 else 58732 # No df here, say it's local 58733 OUTPUT_DIR_IS_LOCAL="yes" 58734 fi 58735 else 58736 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 58737 OUTPUT_DIR_IS_LOCAL="yes" 58738 else 58739 OUTPUT_DIR_IS_LOCAL="no" 58740 fi 58741 fi 58742 58743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 58744 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 58745 58746 58747 58748 # Check if the user has any old-style ALT_ variables set. 58749 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 58750 58751 # Before generating output files, test if they exist. If they do, this is a reconfigure. 58752 # Since we can't properly handle the dependencies for this, warn the user about the situation 58753 if test -e $OUTPUT_ROOT/spec.gmk; then 58754 IS_RECONFIGURE=yes 58755 else 58756 IS_RECONFIGURE=no 58757 fi 58758 58759 58760 # At the end, call the custom hook. (Dummy macro if no custom sources available) 58761 58762 58763 # We're messing a bit with internal autoconf variables to put the config.status 58764 # in the output directory instead of the current directory. 58765 CONFIG_STATUS="$CONFIGURESUPPORT_OUTPUTDIR/config.status" 58766 58767 # Create the actual output files. Now the main work of configure is done. 58768 cat >confcache <<\_ACEOF 58769 # This file is a shell script that caches the results of configure 58770 # tests run on this system so they can be shared between configure 58771 # scripts and configure runs, see configure's option --config-cache. 58772 # It is not useful on other systems. If it contains results you don't 58773 # want to keep, you may remove or edit it. 58774 # 58775 # config.status only pays attention to the cache file if you give it 58776 # the --recheck option to rerun configure. 58777 # 58778 # `ac_cv_env_foo' variables (set or unset) will be overridden when 58779 # loading this file, other *unset* `ac_cv_foo' will be assigned the 58780 # following values. 58781 58782 _ACEOF 58783 58784 # The following way of writing the cache mishandles newlines in values, 58785 # but we know of no workaround that is simple, portable, and efficient. 58786 # So, we kill variables containing newlines. 58787 # Ultrix sh set writes to stderr and can't be redirected directly, 58788 # and sets the high bit in the cache file unless we assign to the vars. 58789 ( 58790 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 58791 eval ac_val=\$$ac_var 58792 case $ac_val in #( 58793 *${as_nl}*) 58794 case $ac_var in #( 58795 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 58796 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 58797 esac 58798 case $ac_var in #( 58799 _ | IFS | as_nl) ;; #( 58800 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 58801 *) { eval $ac_var=; unset $ac_var;} ;; 58802 esac ;; 58803 esac 58804 done 58805 58806 (set) 2>&1 | 58807 case $as_nl`(ac_space=' '; set) 2>&1` in #( 58808 *${as_nl}ac_space=\ *) 58809 # `set' does not quote correctly, so add quotes: double-quote 58810 # substitution turns \\\\ into \\, and sed turns \\ into \. 58811 sed -n \ 58812 "s/'/'\\\\''/g; 58813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 58814 ;; #( 58815 *) 58816 # `set' quotes correctly as required by POSIX, so do not add quotes. 58817 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 58818 ;; 58819 esac | 58820 sort 58821 ) | 58822 sed ' 58823 /^ac_cv_env_/b end 58824 t clear 58825 :clear 58826 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 58827 t end 58828 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 58829 :end' >>confcache 58830 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 58831 if test -w "$cache_file"; then 58832 if test "x$cache_file" != "x/dev/null"; then 58833 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 58834 $as_echo "$as_me: updating cache $cache_file" >&6;} 58835 if test ! -f "$cache_file" || test -h "$cache_file"; then 58836 cat confcache >"$cache_file" 58837 else 58838 case $cache_file in #( 58839 */* | ?:*) 58840 mv -f confcache "$cache_file"$$ && 58841 mv -f "$cache_file"$$ "$cache_file" ;; #( 58842 *) 58843 mv -f confcache "$cache_file" ;; 58844 esac 58845 fi 58846 fi 58847 else 58848 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 58849 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 58850 fi 58851 fi 58852 rm -f confcache 58853 58854 test "x$prefix" = xNONE && prefix=$ac_default_prefix 58855 # Let make expand exec_prefix. 58856 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 58857 58858 # Transform confdefs.h into DEFS. 58859 # Protect against shell expansion while executing Makefile rules. 58860 # Protect against Makefile macro expansion. 58861 # 58862 # If the first sed substitution is executed (which looks for macros that 58863 # take arguments), then branch to the quote section. Otherwise, 58864 # look for a macro that doesn't take arguments. 58865 ac_script=' 58866 :mline 58867 /\\$/{ 58868 N 58869 s,\\\n,, 58870 b mline 58871 } 58872 t clear 58873 :clear 58874 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 58875 t quote 58876 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 58877 t quote 58878 b any 58879 :quote 58880 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 58881 s/\[/\\&/g 58882 s/\]/\\&/g 58883 s/\$/$$/g 58884 H 58885 :any 58886 ${ 58887 g 58888 s/^\n// 58889 s/\n/ /g 58890 p 58891 } 58892 ' 58893 DEFS=`sed -n "$ac_script" confdefs.h` 58894 58895 58896 ac_libobjs= 58897 ac_ltlibobjs= 58898 U= 58899 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 58900 # 1. Remove the extension, and $U if already installed. 58901 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 58902 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 58903 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 58904 # will be set to the directory where LIBOBJS objects are built. 58905 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 58906 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 58907 done 58908 LIBOBJS=$ac_libobjs 58909 58910 LTLIBOBJS=$ac_ltlibobjs 58911 58912 58913 58914 : "${CONFIG_STATUS=./config.status}" 58915 ac_write_fail=0 58916 ac_clean_files_save=$ac_clean_files 58917 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 58918 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 58919 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 58920 as_write_fail=0 58921 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 58922 #! $SHELL 58923 # Generated by $as_me. 58924 # Run this file to recreate the current configuration. 58925 # Compiler output produced by configure, useful for debugging 58926 # configure, is in config.log if it exists. 58927 58928 debug=false 58929 ac_cs_recheck=false 58930 ac_cs_silent=false 58931 58932 SHELL=\${CONFIG_SHELL-$SHELL} 58933 export SHELL 58934 _ASEOF 58935 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 58936 ## -------------------- ## 58937 ## M4sh Initialization. ## 58938 ## -------------------- ## 58939 58940 # Be more Bourne compatible 58941 DUALCASE=1; export DUALCASE # for MKS sh 58942 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 58943 emulate sh 58944 NULLCMD=: 58945 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 58946 # is contrary to our usage. Disable this feature. 58947 alias -g '${1+"$@"}'='"$@"' 58948 setopt NO_GLOB_SUBST 58949 else 58950 case `(set -o) 2>/dev/null` in #( 58951 *posix*) : 58952 set -o posix ;; #( 58953 *) : 58954 ;; 58955 esac 58956 fi 58957 58958 58959 as_nl=' 58960 ' 58961 export as_nl 58962 # Printing a long string crashes Solaris 7 /usr/bin/printf. 58963 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 58964 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 58965 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 58966 # Prefer a ksh shell builtin over an external printf program on Solaris, 58967 # but without wasting forks for bash or zsh. 58968 if test -z "$BASH_VERSION$ZSH_VERSION" \ 58969 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 58970 as_echo='print -r --' 58971 as_echo_n='print -rn --' 58972 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 58973 as_echo='printf %s\n' 58974 as_echo_n='printf %s' 58975 else 58976 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 58977 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 58978 as_echo_n='/usr/ucb/echo -n' 58979 else 58980 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58981 as_echo_n_body='eval 58982 arg=$1; 58983 case $arg in #( 58984 *"$as_nl"*) 58985 expr "X$arg" : "X\\(.*\\)$as_nl"; 58986 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 58987 esac; 58988 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 58989 ' 58990 export as_echo_n_body 58991 as_echo_n='sh -c $as_echo_n_body as_echo' 58992 fi 58993 export as_echo_body 58994 as_echo='sh -c $as_echo_body as_echo' 58995 fi 58996 58997 # The user is always right. 58998 if test "${PATH_SEPARATOR+set}" != set; then 58999 PATH_SEPARATOR=: 59000 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 59001 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 59002 PATH_SEPARATOR=';' 59003 } 59004 fi 59005 59006 59007 # IFS 59008 # We need space, tab and new line, in precisely that order. Quoting is 59009 # there to prevent editors from complaining about space-tab. 59010 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 59011 # splitting by setting IFS to empty value.) 59012 IFS=" "" $as_nl" 59013 59014 # Find who we are. Look in the path if we contain no directory separator. 59015 as_myself= 59016 case $0 in #(( 59017 *[\\/]* ) as_myself=$0 ;; 59018 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 59019 for as_dir in $PATH 59020 do 59021 IFS=$as_save_IFS 59022 test -z "$as_dir" && as_dir=. 59023 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 59024 done 59025 IFS=$as_save_IFS 59026 59027 ;; 59028 esac 59029 # We did not find ourselves, most probably we were run as `sh COMMAND' 59030 # in which case we are not to be found in the path. 59031 if test "x$as_myself" = x; then 59032 as_myself=$0 59033 fi 59034 if test ! -f "$as_myself"; then 59035 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 59036 exit 1 59037 fi 59038 59039 # Unset variables that we do not need and which cause bugs (e.g. in 59040 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 59041 # suppresses any "Segmentation fault" message there. '((' could 59042 # trigger a bug in pdksh 5.2.14. 59043 for as_var in BASH_ENV ENV MAIL MAILPATH 59044 do eval test x\${$as_var+set} = xset \ 59045 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 59046 done 59047 PS1='$ ' 59048 PS2='> ' 59049 PS4='+ ' 59050 59051 # NLS nuisances. 59052 LC_ALL=C 59053 export LC_ALL 59054 LANGUAGE=C 59055 export LANGUAGE 59056 59057 # CDPATH. 59058 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 59059 59060 59061 # as_fn_error STATUS ERROR [LINENO LOG_FD] 59062 # ---------------------------------------- 59063 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 59064 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 59065 # script with STATUS, using 1 if that was 0. 59066 as_fn_error () 59067 { 59068 as_status=$1; test $as_status -eq 0 && as_status=1 59069 if test "$4"; then 59070 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 59071 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 59072 fi 59073 $as_echo "$as_me: error: $2" >&2 59074 as_fn_exit $as_status 59075 } # as_fn_error 59076 59077 59078 # as_fn_set_status STATUS 59079 # ----------------------- 59080 # Set $? to STATUS, without forking. 59081 as_fn_set_status () 59082 { 59083 return $1 59084 } # as_fn_set_status 59085 59086 # as_fn_exit STATUS 59087 # ----------------- 59088 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 59089 as_fn_exit () 59090 { 59091 set +e 59092 as_fn_set_status $1 59093 exit $1 59094 } # as_fn_exit 59095 59096 # as_fn_unset VAR 59097 # --------------- 59098 # Portably unset VAR. 59099 as_fn_unset () 59100 { 59101 { eval $1=; unset $1;} 59102 } 59103 as_unset=as_fn_unset 59104 # as_fn_append VAR VALUE 59105 # ---------------------- 59106 # Append the text in VALUE to the end of the definition contained in VAR. Take 59107 # advantage of any shell optimizations that allow amortized linear growth over 59108 # repeated appends, instead of the typical quadratic growth present in naive 59109 # implementations. 59110 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 59111 eval 'as_fn_append () 59112 { 59113 eval $1+=\$2 59114 }' 59115 else 59116 as_fn_append () 59117 { 59118 eval $1=\$$1\$2 59119 } 59120 fi # as_fn_append 59121 59122 # as_fn_arith ARG... 59123 # ------------------ 59124 # Perform arithmetic evaluation on the ARGs, and store the result in the 59125 # global $as_val. Take advantage of shells that can avoid forks. The arguments 59126 # must be portable across $(()) and expr. 59127 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 59128 eval 'as_fn_arith () 59129 { 59130 as_val=$(( $* )) 59131 }' 59132 else 59133 as_fn_arith () 59134 { 59135 as_val=`expr "$@" || test $? -eq 1` 59136 } 59137 fi # as_fn_arith 59138 59139 59140 if expr a : '\(a\)' >/dev/null 2>&1 && 59141 test "X`expr 00001 : '.*\(...\)'`" = X001; then 59142 as_expr=expr 59143 else 59144 as_expr=false 59145 fi 59146 59147 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 59148 as_basename=basename 59149 else 59150 as_basename=false 59151 fi 59152 59153 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 59154 as_dirname=dirname 59155 else 59156 as_dirname=false 59157 fi 59158 59159 as_me=`$as_basename -- "$0" || 59160 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 59161 X"$0" : 'X\(//\)$' \| \ 59162 X"$0" : 'X\(/\)' \| . 2>/dev/null || 59163 $as_echo X/"$0" | 59164 sed '/^.*\/\([^/][^/]*\)\/*$/{ 59165 s//\1/ 59166 q 59167 } 59168 /^X\/\(\/\/\)$/{ 59169 s//\1/ 59170 q 59171 } 59172 /^X\/\(\/\).*/{ 59173 s//\1/ 59174 q 59175 } 59176 s/.*/./; q'` 59177 59178 # Avoid depending upon Character Ranges. 59179 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 59180 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 59181 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 59182 as_cr_digits='0123456789' 59183 as_cr_alnum=$as_cr_Letters$as_cr_digits 59184 59185 ECHO_C= ECHO_N= ECHO_T= 59186 case `echo -n x` in #((((( 59187 -n*) 59188 case `echo 'xy\c'` in 59189 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 59190 xy) ECHO_C='\c';; 59191 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 59192 ECHO_T=' ';; 59193 esac;; 59194 *) 59195 ECHO_N='-n';; 59196 esac 59197 59198 rm -f conf$$ conf$$.exe conf$$.file 59199 if test -d conf$$.dir; then 59200 rm -f conf$$.dir/conf$$.file 59201 else 59202 rm -f conf$$.dir 59203 mkdir conf$$.dir 2>/dev/null 59204 fi 59205 if (echo >conf$$.file) 2>/dev/null; then 59206 if ln -s conf$$.file conf$$ 2>/dev/null; then 59207 as_ln_s='ln -s' 59208 # ... but there are two gotchas: 59209 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 59210 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 59211 # In both cases, we have to default to `cp -pR'. 59212 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 59213 as_ln_s='cp -pR' 59214 elif ln conf$$.file conf$$ 2>/dev/null; then 59215 as_ln_s=ln 59216 else 59217 as_ln_s='cp -pR' 59218 fi 59219 else 59220 as_ln_s='cp -pR' 59221 fi 59222 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 59223 rmdir conf$$.dir 2>/dev/null 59224 59225 59226 # as_fn_mkdir_p 59227 # ------------- 59228 # Create "$as_dir" as a directory, including parents if necessary. 59229 as_fn_mkdir_p () 59230 { 59231 59232 case $as_dir in #( 59233 -*) as_dir=./$as_dir;; 59234 esac 59235 test -d "$as_dir" || eval $as_mkdir_p || { 59236 as_dirs= 59237 while :; do 59238 case $as_dir in #( 59239 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 59240 *) as_qdir=$as_dir;; 59241 esac 59242 as_dirs="'$as_qdir' $as_dirs" 59243 as_dir=`$as_dirname -- "$as_dir" || 59244 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 59245 X"$as_dir" : 'X\(//\)[^/]' \| \ 59246 X"$as_dir" : 'X\(//\)$' \| \ 59247 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 59248 $as_echo X"$as_dir" | 59249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 59250 s//\1/ 59251 q 59252 } 59253 /^X\(\/\/\)[^/].*/{ 59254 s//\1/ 59255 q 59256 } 59257 /^X\(\/\/\)$/{ 59258 s//\1/ 59259 q 59260 } 59261 /^X\(\/\).*/{ 59262 s//\1/ 59263 q 59264 } 59265 s/.*/./; q'` 59266 test -d "$as_dir" && break 59267 done 59268 test -z "$as_dirs" || eval "mkdir $as_dirs" 59269 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 59270 59271 59272 } # as_fn_mkdir_p 59273 if mkdir -p . 2>/dev/null; then 59274 as_mkdir_p='mkdir -p "$as_dir"' 59275 else 59276 test -d ./-p && rmdir ./-p 59277 as_mkdir_p=false 59278 fi 59279 59280 59281 # as_fn_executable_p FILE 59282 # ----------------------- 59283 # Test if FILE is an executable regular file. 59284 as_fn_executable_p () 59285 { 59286 test -f "$1" && test -x "$1" 59287 } # as_fn_executable_p 59288 as_test_x='test -x' 59289 as_executable_p=as_fn_executable_p 59290 59291 # Sed expression to map a string onto a valid CPP name. 59292 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 59293 59294 # Sed expression to map a string onto a valid variable name. 59295 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 59296 59297 59298 exec 6>&1 59299 ## ----------------------------------- ## 59300 ## Main body of $CONFIG_STATUS script. ## 59301 ## ----------------------------------- ## 59302 _ASEOF 59303 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 59304 59305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 59306 # Save the log message, to keep $0 and so on meaningful, and to 59307 # report actual input values of CONFIG_FILES etc. instead of their 59308 # values after options handling. 59309 ac_log=" 59310 This file was extended by OpenJDK $as_me jdk9, which was 59311 generated by GNU Autoconf 2.69. Invocation command line was 59312 59313 CONFIG_FILES = $CONFIG_FILES 59314 CONFIG_HEADERS = $CONFIG_HEADERS 59315 CONFIG_LINKS = $CONFIG_LINKS 59316 CONFIG_COMMANDS = $CONFIG_COMMANDS 59317 $ $0 $@ 59318 59319 on `(hostname || uname -n) 2>/dev/null | sed 1q` 59320 " 59321 59322 _ACEOF 59323 59324 case $ac_config_files in *" 59325 "*) set x $ac_config_files; shift; ac_config_files=$*;; 59326 esac 59327 59328 59329 59330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 59331 # Files that config.status was made for. 59332 config_files="$ac_config_files" 59333 59334 _ACEOF 59335 59336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 59337 ac_cs_usage="\ 59338 \`$as_me' instantiates files and other configuration actions 59339 from templates according to the current configuration. Unless the files 59340 and actions are specified as TAGs, all are instantiated by default. 59341 59342 Usage: $0 [OPTION]... [TAG]... 59343 59344 -h, --help print this help, then exit 59345 -V, --version print version number and configuration settings, then exit 59346 --config print configuration, then exit 59347 -q, --quiet, --silent 59348 do not print progress messages 59349 -d, --debug don't remove temporary files 59350 --recheck update $as_me by reconfiguring in the same conditions 59351 --file=FILE[:TEMPLATE] 59352 instantiate the configuration file FILE 59353 59354 Configuration files: 59355 $config_files 59356 59357 Report bugs to <build-dev@openjdk.java.net>. 59358 OpenJDK home page: <http://openjdk.java.net>." 59359 59360 _ACEOF 59361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 59362 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 59363 ac_cs_version="\\ 59364 OpenJDK config.status jdk9 59365 configured by $0, generated by GNU Autoconf 2.69, 59366 with options \\"\$ac_cs_config\\" 59367 59368 Copyright (C) 2012 Free Software Foundation, Inc. 59369 This config.status script is free software; the Free Software Foundation 59370 gives unlimited permission to copy, distribute and modify it." 59371 59372 ac_pwd='$ac_pwd' 59373 srcdir='$srcdir' 59374 AWK='$AWK' 59375 test -n "\$AWK" || AWK=awk 59376 _ACEOF 59377 59378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 59379 # The default lists apply if the user does not specify any file. 59380 ac_need_defaults=: 59381 while test $# != 0 59382 do 59383 case $1 in 59384 --*=?*) 59385 ac_option=`expr "X$1" : 'X\([^=]*\)='` 59386 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 59387 ac_shift=: 59388 ;; 59389 --*=) 59390 ac_option=`expr "X$1" : 'X\([^=]*\)='` 59391 ac_optarg= 59392 ac_shift=: 59393 ;; 59394 *) 59395 ac_option=$1 59396 ac_optarg=$2 59397 ac_shift=shift 59398 ;; 59399 esac 59400 59401 case $ac_option in 59402 # Handling of the options. 59403 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 59404 ac_cs_recheck=: ;; 59405 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 59406 $as_echo "$ac_cs_version"; exit ;; 59407 --config | --confi | --conf | --con | --co | --c ) 59408 $as_echo "$ac_cs_config"; exit ;; 59409 --debug | --debu | --deb | --de | --d | -d ) 59410 debug=: ;; 59411 --file | --fil | --fi | --f ) 59412 $ac_shift 59413 case $ac_optarg in 59414 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 59415 '') as_fn_error $? "missing file argument" ;; 59416 esac 59417 as_fn_append CONFIG_FILES " '$ac_optarg'" 59418 ac_need_defaults=false;; 59419 --he | --h | --help | --hel | -h ) 59420 $as_echo "$ac_cs_usage"; exit ;; 59421 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 59422 | -silent | --silent | --silen | --sile | --sil | --si | --s) 59423 ac_cs_silent=: ;; 59424 59425 # This is an error. 59426 -*) as_fn_error $? "unrecognized option: \`$1' 59427 Try \`$0 --help' for more information." ;; 59428 59429 *) as_fn_append ac_config_targets " $1" 59430 ac_need_defaults=false ;; 59431 59432 esac 59433 shift 59434 done 59435 59436 ac_configure_extra_args= 59437 59438 if $ac_cs_silent; then 59439 exec 6>/dev/null 59440 ac_configure_extra_args="$ac_configure_extra_args --silent" 59441 fi 59442 59443 _ACEOF 59444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 59445 if \$ac_cs_recheck; then 59446 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 59447 shift 59448 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 59449 CONFIG_SHELL='$SHELL' 59450 export CONFIG_SHELL 59451 exec "\$@" 59452 fi 59453 59454 _ACEOF 59455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 59456 exec 5>>config.log 59457 { 59458 echo 59459 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 59460 ## Running $as_me. ## 59461 _ASBOX 59462 $as_echo "$ac_log" 59463 } >&5 59464 59465 _ACEOF 59466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 59467 _ACEOF 59468 59469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 59470 59471 # Handling of arguments. 59472 for ac_config_target in $ac_config_targets 59473 do 59474 case $ac_config_target in 59475 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 59476 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 59477 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 59478 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 59479 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 59480 59481 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 59482 esac 59483 done 59484 59485 59486 # If the user did not use the arguments to specify the items to instantiate, 59487 # then the envvar interface is used. Set only those that are not. 59488 # We use the long form for the default assignment because of an extremely 59489 # bizarre bug on SunOS 4.1.3. 59490 if $ac_need_defaults; then 59491 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 59492 fi 59493 59494 # Have a temporary directory for convenience. Make it in the build tree 59495 # simply because there is no reason against having it here, and in addition, 59496 # creating and moving files from /tmp can sometimes cause problems. 59497 # Hook for its removal unless debugging. 59498 # Note that there is a small window in which the directory will not be cleaned: 59499 # after its creation but before its name has been assigned to `$tmp'. 59500 $debug || 59501 { 59502 tmp= ac_tmp= 59503 trap 'exit_status=$? 59504 : "${ac_tmp:=$tmp}" 59505 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 59506 ' 0 59507 trap 'as_fn_exit 1' 1 2 13 15 59508 } 59509 # Create a (secure) tmp directory for tmp files. 59510 59511 { 59512 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 59513 test -d "$tmp" 59514 } || 59515 { 59516 tmp=./conf$$-$RANDOM 59517 (umask 077 && mkdir "$tmp") 59518 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 59519 ac_tmp=$tmp 59520 59521 # Set up the scripts for CONFIG_FILES section. 59522 # No need to generate them if there are no CONFIG_FILES. 59523 # This happens for instance with `./config.status config.h'. 59524 if test -n "$CONFIG_FILES"; then 59525 59526 59527 ac_cr=`echo X | tr X '\015'` 59528 # On cygwin, bash can eat \r inside `` if the user requested igncr. 59529 # But we know of no other shell where ac_cr would be empty at this 59530 # point, so we can use a bashism as a fallback. 59531 if test "x$ac_cr" = x; then 59532 eval ac_cr=\$\'\\r\' 59533 fi 59534 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 59535 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 59536 ac_cs_awk_cr='\\r' 59537 else 59538 ac_cs_awk_cr=$ac_cr 59539 fi 59540 59541 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 59542 _ACEOF 59543 59544 59545 { 59546 echo "cat >conf$$subs.awk <<_ACEOF" && 59547 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 59548 echo "_ACEOF" 59549 } >conf$$subs.sh || 59550 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 59551 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 59552 ac_delim='%!_!# ' 59553 for ac_last_try in false false false false false :; do 59554 . ./conf$$subs.sh || 59555 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 59556 59557 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 59558 if test $ac_delim_n = $ac_delim_num; then 59559 break 59560 elif $ac_last_try; then 59561 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 59562 else 59563 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 59564 fi 59565 done 59566 rm -f conf$$subs.sh 59567 59568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 59569 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 59570 _ACEOF 59571 sed -n ' 59572 h 59573 s/^/S["/; s/!.*/"]=/ 59574 p 59575 g 59576 s/^[^!]*!// 59577 :repl 59578 t repl 59579 s/'"$ac_delim"'$// 59580 t delim 59581 :nl 59582 h 59583 s/\(.\{148\}\)..*/\1/ 59584 t more1 59585 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 59586 p 59587 n 59588 b repl 59589 :more1 59590 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 59591 p 59592 g 59593 s/.\{148\}// 59594 t nl 59595 :delim 59596 h 59597 s/\(.\{148\}\)..*/\1/ 59598 t more2 59599 s/["\\]/\\&/g; s/^/"/; s/$/"/ 59600 p 59601 b 59602 :more2 59603 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 59604 p 59605 g 59606 s/.\{148\}// 59607 t delim 59608 ' <conf$$subs.awk | sed ' 59609 /^[^""]/{ 59610 N 59611 s/\n// 59612 } 59613 ' >>$CONFIG_STATUS || ac_write_fail=1 59614 rm -f conf$$subs.awk 59615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 59616 _ACAWK 59617 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 59618 for (key in S) S_is_set[key] = 1 59619 FS = "" 59620 59621 } 59622 { 59623 line = $ 0 59624 nfields = split(line, field, "@") 59625 substed = 0 59626 len = length(field[1]) 59627 for (i = 2; i < nfields; i++) { 59628 key = field[i] 59629 keylen = length(key) 59630 if (S_is_set[key]) { 59631 value = S[key] 59632 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 59633 len += length(value) + length(field[++i]) 59634 substed = 1 59635 } else 59636 len += 1 + keylen 59637 } 59638 59639 print line 59640 } 59641 59642 _ACAWK 59643 _ACEOF 59644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 59645 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 59646 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 59647 else 59648 cat 59649 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 59650 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 59651 _ACEOF 59652 59653 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 59654 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 59655 # trailing colons and then remove the whole line if VPATH becomes empty 59656 # (actually we leave an empty line to preserve line numbers). 59657 if test "x$srcdir" = x.; then 59658 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 59659 h 59660 s/// 59661 s/^/:/ 59662 s/[ ]*$/:/ 59663 s/:\$(srcdir):/:/g 59664 s/:\${srcdir}:/:/g 59665 s/:@srcdir@:/:/g 59666 s/^:*// 59667 s/:*$// 59668 x 59669 s/\(=[ ]*\).*/\1/ 59670 G 59671 s/\n// 59672 s/^[^=]*=[ ]*$// 59673 }' 59674 fi 59675 59676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 59677 fi # test -n "$CONFIG_FILES" 59678 59679 59680 eval set X " :F $CONFIG_FILES " 59681 shift 59682 for ac_tag 59683 do 59684 case $ac_tag in 59685 :[FHLC]) ac_mode=$ac_tag; continue;; 59686 esac 59687 case $ac_mode$ac_tag in 59688 :[FHL]*:*);; 59689 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 59690 :[FH]-) ac_tag=-:-;; 59691 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 59692 esac 59693 ac_save_IFS=$IFS 59694 IFS=: 59695 set x $ac_tag 59696 IFS=$ac_save_IFS 59697 shift 59698 ac_file=$1 59699 shift 59700 59701 case $ac_mode in 59702 :L) ac_source=$1;; 59703 :[FH]) 59704 ac_file_inputs= 59705 for ac_f 59706 do 59707 case $ac_f in 59708 -) ac_f="$ac_tmp/stdin";; 59709 *) # Look for the file first in the build tree, then in the source tree 59710 # (if the path is not absolute). The absolute path cannot be DOS-style, 59711 # because $ac_f cannot contain `:'. 59712 test -f "$ac_f" || 59713 case $ac_f in 59714 [\\/$]*) false;; 59715 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 59716 esac || 59717 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 59718 esac 59719 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 59720 as_fn_append ac_file_inputs " '$ac_f'" 59721 done 59722 59723 # Let's still pretend it is `configure' which instantiates (i.e., don't 59724 # use $as_me), people would be surprised to read: 59725 # /* config.h. Generated by config.status. */ 59726 configure_input='Generated from '` 59727 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 59728 `' by configure.' 59729 if test x"$ac_file" != x-; then 59730 configure_input="$ac_file. $configure_input" 59731 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 59732 $as_echo "$as_me: creating $ac_file" >&6;} 59733 fi 59734 # Neutralize special characters interpreted by sed in replacement strings. 59735 case $configure_input in #( 59736 *\&* | *\|* | *\\* ) 59737 ac_sed_conf_input=`$as_echo "$configure_input" | 59738 sed 's/[\\\\&|]/\\\\&/g'`;; #( 59739 *) ac_sed_conf_input=$configure_input;; 59740 esac 59741 59742 case $ac_tag in 59743 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 59744 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 59745 esac 59746 ;; 59747 esac 59748 59749 ac_dir=`$as_dirname -- "$ac_file" || 59750 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 59751 X"$ac_file" : 'X\(//\)[^/]' \| \ 59752 X"$ac_file" : 'X\(//\)$' \| \ 59753 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 59754 $as_echo X"$ac_file" | 59755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 59756 s//\1/ 59757 q 59758 } 59759 /^X\(\/\/\)[^/].*/{ 59760 s//\1/ 59761 q 59762 } 59763 /^X\(\/\/\)$/{ 59764 s//\1/ 59765 q 59766 } 59767 /^X\(\/\).*/{ 59768 s//\1/ 59769 q 59770 } 59771 s/.*/./; q'` 59772 as_dir="$ac_dir"; as_fn_mkdir_p 59773 ac_builddir=. 59774 59775 case "$ac_dir" in 59776 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 59777 *) 59778 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 59779 # A ".." for each directory in $ac_dir_suffix. 59780 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 59781 case $ac_top_builddir_sub in 59782 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 59783 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 59784 esac ;; 59785 esac 59786 ac_abs_top_builddir=$ac_pwd 59787 ac_abs_builddir=$ac_pwd$ac_dir_suffix 59788 # for backward compatibility: 59789 ac_top_builddir=$ac_top_build_prefix 59790 59791 case $srcdir in 59792 .) # We are building in place. 59793 ac_srcdir=. 59794 ac_top_srcdir=$ac_top_builddir_sub 59795 ac_abs_top_srcdir=$ac_pwd ;; 59796 [\\/]* | ?:[\\/]* ) # Absolute name. 59797 ac_srcdir=$srcdir$ac_dir_suffix; 59798 ac_top_srcdir=$srcdir 59799 ac_abs_top_srcdir=$srcdir ;; 59800 *) # Relative name. 59801 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 59802 ac_top_srcdir=$ac_top_build_prefix$srcdir 59803 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 59804 esac 59805 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 59806 59807 59808 case $ac_mode in 59809 :F) 59810 # 59811 # CONFIG_FILE 59812 # 59813 59814 _ACEOF 59815 59816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 59817 # If the template does not know about datarootdir, expand it. 59818 # FIXME: This hack should be removed a few years after 2.60. 59819 ac_datarootdir_hack=; ac_datarootdir_seen= 59820 ac_sed_dataroot=' 59821 /datarootdir/ { 59822 p 59823 q 59824 } 59825 /@datadir@/p 59826 /@docdir@/p 59827 /@infodir@/p 59828 /@localedir@/p 59829 /@mandir@/p' 59830 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 59831 *datarootdir*) ac_datarootdir_seen=yes;; 59832 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 59833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 59834 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 59835 _ACEOF 59836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 59837 ac_datarootdir_hack=' 59838 s&@datadir@&$datadir&g 59839 s&@docdir@&$docdir&g 59840 s&@infodir@&$infodir&g 59841 s&@localedir@&$localedir&g 59842 s&@mandir@&$mandir&g 59843 s&\\\${datarootdir}&$datarootdir&g' ;; 59844 esac 59845 _ACEOF 59846 59847 # Neutralize VPATH when `$srcdir' = `.'. 59848 # Shell code in configure.ac might set extrasub. 59849 # FIXME: do we really want to maintain this feature? 59850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 59851 ac_sed_extra="$ac_vpsub 59852 $extrasub 59853 _ACEOF 59854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 59855 :t 59856 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 59857 s|@configure_input@|$ac_sed_conf_input|;t t 59858 s&@top_builddir@&$ac_top_builddir_sub&;t t 59859 s&@top_build_prefix@&$ac_top_build_prefix&;t t 59860 s&@srcdir@&$ac_srcdir&;t t 59861 s&@abs_srcdir@&$ac_abs_srcdir&;t t 59862 s&@top_srcdir@&$ac_top_srcdir&;t t 59863 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 59864 s&@builddir@&$ac_builddir&;t t 59865 s&@abs_builddir@&$ac_abs_builddir&;t t 59866 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 59867 $ac_datarootdir_hack 59868 " 59869 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 59870 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 59871 59872 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 59873 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 59874 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 59875 "$ac_tmp/out"`; test -z "$ac_out"; } && 59876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 59877 which seems to be undefined. Please make sure it is defined" >&5 59878 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 59879 which seems to be undefined. Please make sure it is defined" >&2;} 59880 59881 rm -f "$ac_tmp/stdin" 59882 case $ac_file in 59883 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 59884 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 59885 esac \ 59886 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 59887 ;; 59888 59889 59890 59891 esac 59892 59893 done # for ac_tag 59894 59895 59896 as_fn_exit 0 59897 _ACEOF 59898 ac_clean_files=$ac_clean_files_save 59899 59900 test $ac_write_fail = 0 || 59901 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 59902 59903 59904 # configure is writing to config.log, and then calls config.status. 59905 # config.status does its own redirection, appending to config.log. 59906 # Unfortunately, on DOS this fails, as config.log is still kept open 59907 # by configure, so config.status won't be able to write to it; its 59908 # output is simply discarded. So we exec the FD to /dev/null, 59909 # effectively closing config.log, so it can be properly (re)opened and 59910 # appended to by config.status. When coming back to configure, we 59911 # need to make the FD available again. 59912 if test "$no_create" != yes; then 59913 ac_cs_success=: 59914 ac_config_status_args= 59915 test "$silent" = yes && 59916 ac_config_status_args="$ac_config_status_args --quiet" 59917 exec 5>/dev/null 59918 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 59919 exec 5>>config.log 59920 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 59921 # would make configure fail if this is the last instruction. 59922 $ac_cs_success || as_fn_exit 1 59923 fi 59924 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 59925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 59926 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 59927 fi 59928 59929 59930 # After AC_OUTPUT, we need to do final work 59931 59932 59933 # Try to move config.log (generated by autoconf) to the configure-support directory. 59934 if test -e ./config.log; then 59935 $MV -f ./config.log "$CONFIGURESUPPORT_OUTPUTDIR/config.log" 2> /dev/null 59936 fi 59937 59938 # Rotate our log file (configure.log) 59939 if test -e "$OUTPUT_ROOT/configure.log.old"; then 59940 $RM -f "$OUTPUT_ROOT/configure.log.old" 59941 fi 59942 if test -e "$OUTPUT_ROOT/configure.log"; then 59943 $MV -f "$OUTPUT_ROOT/configure.log" "$OUTPUT_ROOT/configure.log.old" 2> /dev/null 59944 fi 59945 59946 # Move configure.log from current directory to the build output root 59947 if test -e ./configure.log; then 59948 echo found it 59949 $MV -f ./configure.log "$OUTPUT_ROOT/configure.log" 2> /dev/null 59950 fi 59951 59952 # Make the compare script executable 59953 $CHMOD +x $OUTPUT_ROOT/compare.sh 59954 59955 59956 # Finally output some useful information to the user 59957 59958 # Finally output some useful information to the user 59959 59960 printf "\n" 59961 printf "====================================================\n" 59962 if test "x$no_create" != "xyes"; then 59963 if test "x$IS_RECONFIGURE" != "xyes"; then 59964 printf "A new configuration has been successfully created in\n%s\n" "$OUTPUT_ROOT" 59965 else 59966 printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUT_ROOT" 59967 fi 59968 else 59969 if test "x$IS_RECONFIGURE" != "xyes"; then 59970 printf "A configuration has been successfully checked but not created\n" 59971 else 59972 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUT_ROOT" 59973 fi 59974 fi 59975 if test "x$CONFIGURE_COMMAND_LINE" != x; then 59976 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 59977 else 59978 printf "using default settings.\n" 59979 fi 59980 59981 printf "\n" 59982 printf "Configuration summary:\n" 59983 printf "* Debug level: $DEBUG_LEVEL\n" 59984 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 59985 printf "* JDK variant: $JDK_VARIANT\n" 59986 printf "* JVM variants: $with_jvm_variants\n" 59987 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 59988 printf "* Version string: $VERSION_STRING ($VERSION_SHORT)\n" 59989 59990 printf "\n" 59991 printf "Tools summary:\n" 59992 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 59993 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 59994 fi 59995 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 59996 if test "x$TOOLCHAIN_VERSION" != "x"; then 59997 print_version=" $TOOLCHAIN_VERSION" 59998 fi 59999 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION$print_version)\n" 60000 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 60001 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 60002 60003 printf "\n" 60004 printf "Build performance summary:\n" 60005 printf "* Cores to use: $JOBS\n" 60006 printf "* Memory limit: $MEMORY_SIZE MB\n" 60007 if test "x$CCACHE_STATUS" != "x"; then 60008 printf "* ccache status: $CCACHE_STATUS\n" 60009 fi 60010 printf "\n" 60011 60012 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 60013 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 60014 printf "will result in longer build times.\n" 60015 printf "\n" 60016 fi 60017 60018 if test "x$FOUND_ALT_VARIABLES" != "x"; then 60019 printf "WARNING: You have old-style ALT_ environment variables set.\n" 60020 printf "These are not respected, and will be ignored. It is recommended\n" 60021 printf "that you clean your environment. The following variables are set:\n" 60022 printf "$FOUND_ALT_VARIABLES\n" 60023 printf "\n" 60024 fi 60025 60026 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 60027 printf "WARNING: Your build output directory is not on a local disk.\n" 60028 printf "This will severely degrade build performance!\n" 60029 printf "It is recommended that you create an output directory on a local disk,\n" 60030 printf "and run the configure script again from that directory.\n" 60031 printf "\n" 60032 fi 60033 60034 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 60035 printf "WARNING: The result of this configuration has overridden an older\n" 60036 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 60037 printf "proper build. Failure to do so might result in strange build problems.\n" 60038 printf "\n" 60039 fi 60040 60041 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 60042 printf "WARNING: The result of this configuration was not saved.\n" 60043 printf "You should run without '--no-create | -n' to create the configuration.\n" 60044 printf "\n" 60045 fi 60046 60047 60048 60049 # Locate config.log. 60050 if test -e "$CONFIGURESUPPORT_OUTPUTDIR/config.log"; then 60051 CONFIG_LOG_PATH="$CONFIGURESUPPORT_OUTPUTDIR" 60052 elif test -e "./config.log"; then 60053 CONFIG_LOG_PATH="." 60054 fi 60055 60056 if test -e "$CONFIG_LOG_PATH/config.log"; then 60057 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" > /dev/null 2>&1 60058 if test $? -eq 0; then 60059 printf "The following warnings were produced. Repeated here for convenience:\n" 60060 # We must quote sed expression (using []) to stop m4 from eating the []. 60061 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" | $SED -e 's/^configure:[0-9]*: //' 60062 printf "\n" 60063 fi 60064 fi 60065